From b91e9c1da53f840e370c4f73692d7b053af60e81 Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 31 Oct 2023 15:40:20 +0000 Subject: [PATCH] Add webapp-schulverwaltung build #7df2dc845e138f824a150c0e880c2e3c9b2d75b3 --- public/apps/webapp-schulverwaltung/218.js | 2 +- public/apps/webapp-schulverwaltung/373.js | 2 +- public/apps/webapp-schulverwaltung/main.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/apps/webapp-schulverwaltung/218.js b/public/apps/webapp-schulverwaltung/218.js index 9c5e35e0..7f7948e2 100644 --- a/public/apps/webapp-schulverwaltung/218.js +++ b/public/apps/webapp-schulverwaltung/218.js @@ -1 +1 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[218],{6218:(gt,w,o)=>{o.r(w),o.d(w,{EventsModule:()=>An});var N=o(6486),_=o(1523),J=o(5301),x=o(5619),O=o(7081),C=o(2572),c=o(7398),T=o(4664),b=o(4141),F=o(1389),Z=o(6031),v=o(2547);function K(n){const{HasEvaluationStarted:a,EvaluationUntil:e,HasTestGrading:s}=n.EvaluationStatusRef;if(!0===a&&(14030===n.StatusId||10350===n.StatusId))return{value:f.Rating};if(!0===a&&!1===s){if(e)return{value:f.RatingUntil};if(10300===n.StatusId)return{value:f.IntermediateRating}}return!1===a&&!0===s&&10260!==n.StatusId&&10250!==n.StatusId?{value:f.Tests}:!0===a&&!0===s?e?{value:f.Tests,label:f.RatingUntil}:{value:f.Tests,label:f.IntermediateRating}:null}function vt(n){return!0===n.EvaluationStatusRef.HasEvaluationStarted}var t=o(5879),U=o(1074),Tt=o(9018),B=o(3005),X=o(8173),g=o(9515),V=o(654),f=function(n){return n.Rating="rating",n.RatingUntil="rating-until",n.IntermediateRating="intermediate-rating",n.Tests="add-tests",n}(f||{});let j=(()=>{class n{constructor(e,s,i,r,l,d,m){this.coursesRestService=e,this.studyClassRestService=s,this.loadingService=i,this.storage=r,this.translate=l,this.eventsRestService=d,this.settings=m,this.loading$=this.loadingService.loading$,this.search$=new x.X(""),this.roles$=new x.X(void 0),this.formativeAssessments$=this.studyClassRestService.getActiveFormativeAssessments(),this.studyClasses$=this.studyClassRestService.getActive(),this.events$=this.loadEvents().pipe((0,O.d)(1)),this.filteredEvents$=(0,C.a)([this.events$,this.search$]).pipe((0,c.U)((0,F.h)(v.P)))}getEvents(e=!1){return this.filteredEvents$.pipe((0,c.U)(s=>e?s.filter(i=>i.evaluationText):s))}loadEvents(){return this.roles$.pipe((0,T.w)(e=>this.loadingService.load(this.loadEventsForRoles(e))))}loadEventsForRoles(e){return(0,Z.n)(e,"ClassTeacherRole")?(0,C.a)([this.loadCoursesNotRated(e),this.formativeAssessments$,this.studyClasses$]).pipe((0,c.U)((0,F.h)(this.createAndSortEvents.bind(this)))):this.loadCoursesNotRated(e).pipe((0,c.U)(s=>this.createAndSortEvents(s)))}loadCoursesNotRated(e){return this.coursesRestService.getExpandedCourses(e).pipe((0,c.U)(s=>s.filter(i=>!function xt(n){return!0===n.EvaluationStatusRef.HasReviewOfEvaluationStarted&&!!n.FinalGrades?.length}(i))))}createAndSortEvents(e,s=[],i=[]){const r=i.filter(l=>!s.map(d=>d.Id).includes(l.Id));return[...this.createFromCourses(e),...this.createFromAssessments(s),...this.createFromStudyClasses(r)].sort((l,d)=>l.Designation.localeCompare(d.Designation))}createFromStudyClasses(e){return e.map(s=>({id:s.Id,Designation:s.Number,detailLink:this.buildLink(s.Id,"eventdetail"),studentCount:s.StudentCount,state:null}))}createFromAssessments(e){return this.createFromStudyClasses(e).map(i=>({...i,state:f.Rating,evaluationText:this.translate.instant("events.state.rating"),evaluationLink:this.buildLink(i.id,"evaluation")}))}createFromCourses(e){return e.map(s=>{const i=K(s);return{id:s.Id,Designation:this.eventsRestService.getDesignation(s),detailLink:this.buildLink(s.Id,"eventdetail"),studentCount:s.AttendanceRef.StudentCount||0,dateFrom:s.DateFrom,dateTo:s.DateTo,state:i?.value||null,evaluationText:this.getEvaluationText(i,s.EvaluationStatusRef.EvaluationUntil),evaluationLink:this.getEvaluationLink(i?.value,s)}})}getEvaluationText(e,s){const i=e?.label||e?.value;return i?this.translate.instant(`events.state.${i}`)+(i===f.RatingUntil?` ${s?(0,J.Z)(s,"dd.MM.yyyy"):""}`:""):""}getEvaluationLink(e,s){return e&&e!==f.Tests?this.buildLink(s.Id,"evaluation"):null}buildLink(e,s){return(this.settings.eventlist[s]??"").replace(":id",String(e))}static#t=this.\u0275fac=function(s){return new(s||n)(t.LFG(U.s),t.LFG(Tt.R),t.LFG(B.b),t.LFG(X.V),t.LFG(g.sK),t.LFG(V.O),t.LFG(b.L6))};static#e=this.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Ct=(()=>{class n{constructor(){}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-events"]],features:[t._Bn([j])],decls:1,vars:0,template:function(s,i){1&s&&t._UZ(0,"router-outlet")},dependencies:[_.lC]})}return n})();var W=o(7328),tt=o(3019),bt=o(6699),I=o(2096),et=o(2181),G=o(8180),Zt=o(3942),A=o(7483);function At(n,a){return[...a.filter(e=>e.Id!==n?.Id),n].filter(e=>null!=e)}function yt({id:n,selectedGradeId:a},e){return e.map(s=>s.Id!==n?s:{...s,GradeId:a})}function It(n,a){switch(a.type){case"reset":return a.payload;case"updateResult":return n?{...n,Tests:(0,A.De)(a.payload.testResult,n.Tests||[]),Gradings:At(a.payload.grading,n.Gradings||[])}:null;case"toggle-test-state":return n?{...n,Tests:(0,A.P2)(a.payload,n.Tests||[])}:null;case"final-grade-overwritten":return n?{...n,Gradings:yt({id:a.payload.id,selectedGradeId:a.payload.selectedGradeId},n.Gradings||[])}:null;case"replace-grades":return n?{...n,Gradings:a.payload}:null;case"delete-test":return n?{...n,Tests:(0,A.yY)(a.payload,n.Tests||[])}:null;default:return n}}var Ot=o(2194),nt=o(3986);function st(n){return n.map(({finalGrade:a})=>a).filter(Gt)}function Gt(n){return null!==n}function $t(n,a){return a.map(e=>{if(void 0===e.Results||0===e.Results?.length)return{kind:"no-result",test:e};const s=e.Results?.find(i=>i.StudentId===n.Id);return void 0!==s?{kind:"grade",result:s,test:e}:{kind:"no-result",test:e}})}function Lt(n,a,e){const s=a.find(r=>r.StudentId===n.Id),i=e.find(r=>r.StudentId===n.Id);return s?{id:s.Id,average:Mt(s),finalGradeId:s.GradeId,freeHandGrade:i?Number(i.Grade):null,canGrade:s.CanGrade}:null}function Mt(n){return 0===n.AverageTestResult?null:n.AverageTestResult}function it(n,a){return n===a?0:n{class n extends Nt.v{constructor(e,s){super(e,s,qt.Ly,"Gradings")}updateGrade(e,s){return this.http.put(`${this.baseUrl}/${e}`,{GradeId:s}).pipe((0,c.U)(()=>e))}static#t=this.\u0275fac=function(s){return new(s||n)(t.LFG(Jt.eN),t.LFG(b.L6))};static#e=this.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var jt=o(1608);let P=(()=>{class n{constructor(e,s,i,r,l){this.coursesRestService=e,this.gradingScalesRestService=s,this.gradingsRestService=i,this.loadingService=r,this.sortService=l,this.action$=new W.t(1),this.loading$=this.loadingService.loading$,this._courseId$=new W.t(1),this.courseId$=this._courseId$.asObservable(),this.fetchedCourse$=this._courseId$.pipe((0,T.w)(d=>this.loadingService.load(this.coursesRestService.getExpandedCourse(d))),(0,O.d)(1)),this.course$=(0,tt.T)(this.action$,this.fetchedCourse$).pipe((0,c.U)(d=>"type"in d?d:{type:"reset",payload:d}),(0,bt.R)(It,null),(0,et.h)(Zt.Nf)),this.tests$=this.course$.pipe((0,c.U)(d=>d.Tests||[]),(0,c.U)(A.df)),this.filter$=new x.X("all-tests"),this.expandedHeader$=new x.X(!1),this.filteredTests$=(0,C.a)([this.tests$,this.filter$]).pipe((0,c.U)(([d,m])=>d.filter(h=>"all-tests"===m||h.IsOwner))),this.sorting$=this.sortService.sorting$,this.studentGrades$=(0,C.a)([this.course$,this.filteredTests$,this.sorting$]).pipe((0,c.U)((0,F.h)(this.toStudentGrades.bind(this)))),this.canSetFinalGrade$=this.course$.pipe((0,c.U)(vt)),this.gradingScaleIds$=this.course$.pipe((0,c.U)(d=>(0,Ot.Z)([...(d.Tests??[]).map(m=>m.GradingScaleId),d.GradingScaleId]))),this.gradingScales$=this.gradingScalesRestService.loadGradingScales(this.gradingScaleIds$),this.UNDEFINED_GRADINGSCALE_ID=-1,this.gradingScalesOptions$=this.gradingScales$.pipe((0,c.U)(d=>d.map(m=>({id:m?.Id||this.UNDEFINED_GRADINGSCALE_ID,options:m?.Grades.map(q=>({Key:q.Id,Value:q.Designation}))||[]})).reduce((m,h)=>({...m,[h.id]:h.options}),{})),(0,O.d)(1)),this.meanOfStudentGradesForCourse$=this.studentGrades$.pipe((0,c.U)(d=>function Ft(n){const a=n.map(e=>e.average).filter(e=>null!=e&&0!==e).map(Number);return(0,nt.Y)(a)}(st(d)))),this.meanOfFinalGradesForCourse$=(0,C.a)([this.gradingScalesOptions$,this.studentGrades$]).pipe((0,T.w)((0,F.h)(this.meanOfOverwrittenGradesForCourse.bind(this))))}setCourseId(e){this._courseId$.next(e)}gradingOptionsForTest$(e){return this.gradingOptions$(e.GradingScaleId)}gradingOptionsForCourse$(){return this.course$.pipe((0,T.w)(e=>this.gradingOptions$(e.GradingScaleId)))}toStudentGrades(e,s=[],i){return function Pt(n,a,e,s){return n?.map(i=>({student:i,finalGrade:Lt(i,e,s),grades:$t(i,a)}))}(e.ParticipatingStudents??[],s,e.Gradings??[],e.FinalGrades??[]).sort((({key:n,ascending:a})=>(e,s)=>{const i=a?1:-1;switch(n){case"FullName":return i*e.student.FullName.localeCompare(s.student.FullName);case"FinalGrade":return e.finalGrade?.finalGradeId&&s.finalGrade?.finalGradeId?i*it(e.finalGrade.finalGradeId,s.finalGrade.finalGradeId):-1*i;case"TestsMean":return e.finalGrade?.average&&s.finalGrade?.average?i*it(e.finalGrade.average,s.finalGrade.average):-1*i}return i*((n,a,e)=>{const s=a.grades.filter(at).find(r=>r.test.Id===n.Id),i=e.grades.filter(at).find(r=>r.test.Id===n.Id);return n.IsPointGrading&&s?.result.GradeId===i?.result.GradeId?(s?.result.Points??0)-(i?.result.Points??0):-1*((s?.result.GradeId??Number.POSITIVE_INFINITY)-(i?.result.GradeId??Number.POSITIVE_INFINITY))})(n,e,s)})(i))}setSorting(e){this.sortService.setSorting(e)}getSortingChar$(e){return this.sortService.getSortingChar$(e)}sortBy(e){this.sortService.toggleSorting(e)}toggleHeader(e){this.expandedHeader$.next(e)}saveGrade(e){this.course$.pipe((0,G.q)(1),(0,T.w)(s=>this.coursesRestService.updateTestResult(s.Id,e))).subscribe(s=>this.updateStudentGrades(s))}publish(e){this.coursesRestService.publishTest(e.Id).subscribe(this.toggleTestPublishedState.bind(this))}unpublish(e){this.coursesRestService.unpublishTest(e.Id).subscribe(this.toggleTestPublishedState.bind(this))}deleteTest(e){this.action$.next({type:"delete-test",payload:e})}overwriteFinalGrade({id:e,selectedGradeId:s}){this.gradingsRestService.updateGrade(e,s).subscribe(()=>{this.action$.next({type:"final-grade-overwritten",payload:{id:e,selectedGradeId:s}})})}setAveragesAsFinalGrades(e){this.coursesRestService.setAverageAsFinalGrade(e).subscribe(s=>this.action$.next({type:"replace-grades",payload:s.Gradings}))}updateStudentGrades(e){const s=e.body.Gradings.find(i=>i.EventId===e.courseId);void 0!==s&&this.action$.next({type:"updateResult",payload:{testResult:e.body.TestResults[0],grading:s}})}toggleTestPublishedState(e){this.action$.next({type:"toggle-test-state",payload:e})}gradingOptions$(e){return null===e?(0,I.of)(null):this.gradingScalesOptions$.pipe((0,c.U)(s=>s[e]),(0,O.d)(1))}meanOfOverwrittenGradesForCourse(e,s){return this.course$.pipe((0,c.U)(i=>{if(null===i.GradingScaleId||void 0===e[i.GradingScaleId])return null;const r=e[i.GradingScaleId];return function Ut(n,a){const e=n.map(i=>i.freeHandGrade).filter(i=>!!i),s=n.map(i=>i.finalGradeId).filter(i=>null!==i).map(i=>a.find(r=>r.Key===i)).filter(i=>void 0!==i).map(i=>i?.Value).filter(i=>void 0!==i).map(Number).filter(i=>!isNaN(i));return(0,nt.Y)([...s,...e])}(st(s),r)}))}static#t=this.\u0275fac=function(s){return new(s||n)(t.LFG(U.s),t.LFG(kt.R),t.LFG(zt),t.LFG(B.b),t.LFG(jt.K))};static#e=this.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac})}return n})();var $=o(8645),L=o(3997),k=o(9773);let R=(()=>{class n{constructor(e,s){this.state=e,this.route=s,this.courseId$=this.route.paramMap.pipe((0,c.U)(i=>Number(i.get("id"))),(0,L.x)()),this.destroy$=new $.x}ngOnInit(){this.courseId$.pipe((0,k.R)(this.destroy$)).subscribe(e=>this.state.setCourseId(e))}ngOnDestroy(){this.destroy$.next()}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(P),t.Y36(_.gz))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests"]],features:[t._Bn([P])],decls:1,vars:0,template:function(s,i){1&s&&t._UZ(0,"router-outlet")},dependencies:[_.lC]})}return n})();var u=o(6814),M=o(6567),Q=o(59),Y=o(4229),Rt=o(6016),Qt=o(7625);const Yt=function(n){return{count:n}};function Dt(n,a){if(1&n&&(t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij(" ",t.xi3(2,1,1===e.course.ParticipatingStudents.length?"courses.registration":"courses.registrations",t.VKq(4,Yt,e.course.ParticipatingStudents.length))," ")}}const Ht=function(){return["/events"]};let Kt=(()=>{class n{constructor(e,s){this.reportsService=e,this.eventsRestService=s}loadReportUrl(){return this.reportsService.getEventReportUrl(this.course.Id)}getDesignation(){return this.eventsRestService.getDesignation(this.course)}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(Rt.F),t.Y36(V.O))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests-header"]],inputs:{course:"course"},decls:12,vars:5,consts:[[3,"routerLink"],[1,"d-flex"],["routerLink","add",1,"edit","btn","btn-primary","btn-icon","ms-2"],[1,"material-icons"],["target","_blank",1,"edit","btn","btn-primary","btn-icon","ms-2",3,"href"],[1,"d-flex","flex-column","header"],["class","additional-info",4,"ngIf"],[1,"additional-info"]],template:function(s,i){1&s&&(t.TgZ(0,"erz-backlink",0)(1,"div",1)(2,"a",2)(3,"i",3),t._uU(4,"add"),t.qZA()(),t.TgZ(5,"a",4)(6,"i",3),t._uU(7,"description"),t.qZA()()()(),t.TgZ(8,"div",5)(9,"h1"),t._uU(10),t.qZA(),t.YNc(11,Dt,3,6,"div",6),t.qZA()),2&s&&(t.Q6J("routerLink",t.DdM(4,Ht)),t.xp6(5),t.Q6J("href",i.loadReportUrl(),t.LSH),t.xp6(5),t.Oqu(i.getDesignation()),t.xp6(1),t.Q6J("ngIf",i.course.ParticipatingStudents))},dependencies:[u.O5,_.rH,Qt.I,g.X$],styles:[".header[_ngcontent-%COMP%]{padding-bottom:1rem;border-bottom:1px solid #dee2e6}h1[_ngcontent-%COMP%]{margin-bottom:0}.additional-info[_ngcontent-%COMP%]{color:#adb5bd}"]})}return n})();var y=o(253);const Bt=function(n){return{designation:n}};let Xt=(()=>{class n{constructor(e){this.activeModal=e}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(y.Kz))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-publish-test"]],inputs:{test:"test"},decls:11,vars:12,consts:[[1,"modal-body"],["data-testid","confirmation-message"],[1,"modal-footer"],["data-testid","cancel-button","type","button",1,"btn","btn-outline-secondary",3,"click"],["data-testid","confirm-button","type","button",1,"btn","btn-primary",3,"click"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0)(1,"p",1),t._uU(2),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"div",2)(5,"button",3),t.NdJ("click",function(){return i.activeModal.dismiss()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",4),t.NdJ("click",function(){return i.activeModal.close(!0)}),t._uU(9),t.ALo(10,"translate"),t.qZA()()),2&s&&(t.xp6(2),t.hij(" ",t.xi3(3,3,i.test.IsPublished?"tests.publishing.unpublish":"tests.publishing.publish",t.VKq(10,Bt,i.test.Designation))," "),t.xp6(4),t.hij(" ",t.lcZ(7,6,"tests.publishing.cancel")," "),t.xp6(3),t.hij(" ",t.lcZ(10,8,"tests.publishing.confirm")," "))},dependencies:[g.X$],encapsulation:2})}return n})();var rt=o(3620),p=o(6223);const Vt=function(n){return{maxPoints:n}};function Wt(n,a){if(1&n&&(t.TgZ(0,"div",8),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.xi3(2,1,"global.validation-errors.invalidPoints",t.VKq(4,Vt,e.maxPoints))," ")}}function te(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",4)(1,"input",5,6),t.NdJ("ngModelChange",function(){t.CHM(e);const i=t.MAs(2),r=t.oxw();return t.KtG(r.onPointsChange(i.value))}),t.qZA(),t.YNc(3,Wt,3,6,"div",7),t.qZA()}if(2&n){const e=t.MAs(2),s=t.oxw();t.xp6(1),t.ekj("is-invalid",e.errors),t.s9C("max",s.maxPoints),t.s9C("tabindex",s.tabIndex),t.Q6J("disabled",s.grade.test.IsPublished)("ngModel","grade"===s.grade.kind?s.grade.result.Points:null),t.xp6(2),t.Q6J("ngIf",e.errors)}}let ee=(()=>{class n{constructor(){this.gradeChanged=new t.vpe,this.maxPoints=0,this.pointsSubject$=new $.x,this.gradeSubject$=new $.x,this.gradingScaleDisabledSubject$=new x.X(!0),this.gradingScaleDisabled$=this.gradingScaleDisabledSubject$.asObservable(),this.points$=this.pointsSubject$.pipe((0,rt.b)(1250),(0,et.h)(this.isValid.bind(this))),this.grade$=this.gradeSubject$.pipe((0,rt.b)(1250)),this.destroy$=new $.x}ngOnInit(){this.gradingScaleDisabledSubject$.next(this.disableGradingScale()),this.maxPoints=function wt(n){return(n?.test?.MaxPointsAdjusted||n?.test?.MaxPoints)??0}(this.grade),this.points$.pipe((0,k.R)(this.destroy$),(0,c.U)(this.buildRequestBodyPointsChange.bind(this))).subscribe(e=>this.gradeChanged.emit(e)),this.grade$.pipe((0,k.R)(this.destroy$),(0,c.U)(this.buildRequestBodyForGradeChange.bind(this))).subscribe(e=>this.gradeChanged.emit(e))}ngOnChanges(){this.gradingScaleDisabledSubject$.next(this.disableGradingScale())}ngOnDestroy(){this.destroy$.next()}onPointsChange(e){this.pointsSubject$.next(e),this.gradingScaleDisabledSubject$.next(!(null===e||""===e))}onGradeChange(e){this.gradeSubject$.next(e)}isValid(e){return""===e||null===e||!isNaN(Number(e))&&!(Number(e)<0||Number(e)>this.maxPoints)}buildRequestBodyPointsChange(e){const s=null===e||""===e?null:Number(e);return{StudentIds:[this.student.Id],TestId:this.grade.test.Id,Points:s}}buildRequestBodyForGradeChange(e){return{StudentIds:[this.student.Id],TestId:this.grade.test.Id,GradeId:e}}disableGradingScale(){return!!this.grade.test.IsPublished||"no-result"!==this.grade.kind&&null!=this.grade.result.Points&&this.grade.test.IsPointGrading}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-grade"]],inputs:{grade:"grade",student:"student",tabIndex:"tabIndex",gradeOptions:"gradeOptions"},outputs:{gradeChanged:"gradeChanged"},features:[t.TTD],decls:5,vars:8,consts:[[1,"d-flex","flex-column","w-100"],[1,"d-flex","flex-row"],["class","point-input-container me-2 me-md-3",4,"ngIf"],["data-testid","grade-select",1,"grade-select",3,"options","allowEmpty","value","disabled","tabindex","valueChange"],[1,"point-input-container","me-2","me-md-3"],["type","number","step","0.01","min","0","data-testid","point-input",1,"form-control",3,"max","disabled","tabindex","ngModel","ngModelChange"],["points","ngModel"],["class","invalid-feedback","data-testid","validation-error-message",4,"ngIf"],["data-testid","validation-error-message",1,"invalid-feedback"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,te,4,7,"div",2),t.TgZ(3,"erz-select",3),t.NdJ("valueChange",function(l){return i.onGradeChange(l)}),t.ALo(4,"async"),t.qZA()()()),2&s&&(t.xp6(2),t.Q6J("ngIf",i.grade.test.IsPointGrading),t.xp6(1),t.Q6J("options",i.gradeOptions)("allowEmpty",!0)("value","grade"===i.grade.kind?i.grade.result.GradeId:null)("disabled",t.lcZ(4,6,i.gradingScaleDisabled$))("tabindex",i.tabIndex))},dependencies:[u.O5,p.Fj,p.wV,p.JJ,p.qQ,p.Fd,p.On,Y.H,u.Ov,g.X$],styles:[".point-input-container[_ngcontent-%COMP%]{width:4em}[_nghost-%COMP%] select{min-width:13ch}@media (min-width: 576px){.point-input-container[_ngcontent-%COMP%]{width:5em}}"]})}return n})();var ne=o(9707);let se=(()=>{class n{constructor(e){this.translate=e}transform(e){return`${e.Weight} (${e.WeightPercent}%)${this.getPoints(e)}`}getPoints(e){return e.IsPointGrading?`, ${e.MaxPointsAdjusted??e.MaxPoints} ${this.translate.instant("tests.summary.points")}`:""}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(g.sK,16))};static#e=this.\u0275pipe=t.Yjl({name:"testSummaryShort",type:n,pure:!0})}return n})();function ie(n,a){1&n&&(t.TgZ(0,"i",12),t._uU(1,"edit"),t.qZA())}const ae=function(n){return[n,"edit"]};function re(n,a){if(1&n&&(t.TgZ(0,"div",8)(1,"div",9)(2,"erz-preserve-line-height"),t._uU(3),t.ALo(4,"date"),t.qZA(),t.TgZ(5,"a",10),t.YNc(6,ie,2,0,"i",11),t.qZA()(),t.TgZ(7,"erz-preserve-line-height"),t._uU(8),t.ALo(9,"testSummaryShort"),t.qZA(),t.TgZ(10,"erz-preserve-line-height"),t._uU(11),t.qZA()()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.xi3(4,5,e.test.Date,"dd.MM.yyyy")),t.xp6(2),t.Q6J("routerLink",t.VKq(10,ae,e.test.Id)),t.xp6(1),t.Q6J("ngIf",e.test.IsOwner&&!1===e.test.IsPublished),t.xp6(2),t.hij(" ",t.lcZ(9,8,e.test)," "),t.xp6(3),t.Oqu(e.test.Owner)}}function oe(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",13)(1,"a",14),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.unpublishTest())}),t.ALo(2,"translate"),t.TgZ(3,"i",15),t._uU(4,"lock"),t.qZA(),t.TgZ(5,"span"),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"i",16),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.toggleHeader())}),t._uU(9),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.s9C("title",t.lcZ(2,3,"tests.edit")),t.xp6(5),t.Oqu(t.lcZ(7,5,"tests.published")),t.xp6(3),t.Oqu(e.expanded?"expand_more":"expand_less")}}function de(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",13)(1,"a",17),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.publishTest())}),t.ALo(2,"translate"),t.TgZ(3,"i",15),t._uU(4,"lock_open"),t.qZA(),t.TgZ(5,"span"),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"i",18),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.toggleHeader())}),t._uU(9),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.s9C("title",t.lcZ(2,3,"tests.publish")),t.xp6(5),t.Oqu(t.lcZ(7,5,"tests.not-published")),t.xp6(3),t.Oqu(e.expanded?"expand_more":"expand_less")}}let le=(()=>{class n{constructor(){this.toggle=new t.vpe,this.publish=new t.vpe,this.unpublish=new t.vpe}toggleHeader(){this.toggle.emit(!this.expanded)}publishTest(){this.publish.emit(this.test)}unpublishTest(){this.unpublish.emit(this.test)}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-test-table-header"]],inputs:{test:"test",expanded:"expanded"},outputs:{toggle:"toggle",publish:"publish",unpublish:"unpublish"},decls:11,vars:6,consts:[[1,"d-flex","flex-column","h-100","justify-content-between"],["role","button",1,"test-designation","d-flex","flex-row","my-3","align-items-end","justify-content-between",3,"click"],[3,"ngClass"],[1,"material-icons","align-self-start"],[1,"d-flex","flex-column"],["class","d-flex flex-column mb-3",4,"ngIf"],["class","d-flex align-items-center justify-content-between test-status",4,"ngIf","ngIfElse"],["notPublished",""],[1,"d-flex","flex-column","mb-3"],[1,"d-flex","flex-row","justify-content-between"],[1,"btn","btn-link","p-0","edit",3,"routerLink"],["class","material-icons",4,"ngIf"],[1,"material-icons"],[1,"d-flex","align-items-center","justify-content-between","test-status"],[1,"d-flex","btn","btn-link","ps-0","edit",3,"title","click"],[1,"material-icons","me-1"],["role","button",1,"material-icons","expand-mobile",3,"click"],[1,"d-flex","btn","btn-link","ps-0",3,"title","click"],[1,"material-icons","expand-mobile",3,"click"]],template:function(s,i){if(1&s&&(t.TgZ(0,"div",0)(1,"div",1),t.NdJ("click",function(){return i.toggleHeader()}),t.TgZ(2,"div",2),t._uU(3),t.qZA(),t.TgZ(4,"i",3),t._uU(5),t.qZA()(),t.TgZ(6,"div",4),t.YNc(7,re,12,12,"div",5),t.YNc(8,oe,10,7,"div",6),t.YNc(9,de,10,7,"ng-template",null,7,t.W1O),t.qZA()()),2&s){const r=t.MAs(10);t.xp6(2),t.Q6J("ngClass",i.expanded?"expanded":"collapsed"),t.xp6(1),t.hij(" ",i.test.Designation," "),t.xp6(2),t.Oqu(i.expanded?"expand_more":"expand_less"),t.xp6(2),t.Q6J("ngIf",i.expanded),t.xp6(1),t.Q6J("ngIf",i.test.IsPublished)("ngIfElse",r)}},dependencies:[u.mk,u.O5,_.rH,ne.r,u.uU,g.X$,se],styles:["[_nghost-%COMP%]{font-weight:300}.collapsed[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.test-designation[_ngcontent-%COMP%]{display:none!important}.test-status[_ngcontent-%COMP%]{order:-1;padding-bottom:1rem}.test-status[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}.test-status[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#000}.test-status[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:underline}.test-status[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{text-decoration-color:#ea161f}.edit[_ngcontent-%COMP%]{color:#00000080;text-decoration:none}@media (min-width: 750px){.test-designation[_ngcontent-%COMP%]{display:inherit!important}.test-status[_ngcontent-%COMP%]{order:initial}.expand-mobile[_ngcontent-%COMP%]{display:none!important}}"]})}return n})();var D=o(6651);function ce(n,a){if(1&n&&(t.TgZ(0,"span",3),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.calculatePointsAverage(e.test))}}let ue=(()=>{class n{constructor(e){this.locale=e}calculatePointsAverage(e){return this.safeAverage(e,2,A.dw)}calculateGradeAverage(e){return this.safeAverage(e,3,A.dP)}safeAverage(e,s,i){try{return(0,D.ey)(i(e),this.locale,s)}catch{return D.GR}}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(t.soG))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-average-grades"]],inputs:{test:"test"},decls:4,vars:2,consts:[[1,"d-flex","flex-row","w-100"],["class","mr-2 mr-md-3 average-points","data-testid","average-points",4,"ngIf"],["data-testid","average-grade"],["data-testid","average-points",1,"mr-2","mr-md-3","average-points"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0),t.YNc(1,ce,2,1,"span",1),t.TgZ(2,"span",2),t._uU(3),t.qZA()()),2&s&&(t.xp6(1),t.Q6J("ngIf",i.test.IsPointGrading),t.xp6(2),t.Oqu(i.calculateGradeAverage(i.test)))},dependencies:[u.O5],styles:[".average-points[_ngcontent-%COMP%]{min-width:4em}@media (min-width: 576px){.average-points[_ngcontent-%COMP%]{min-width:5em}}"]})}return n})(),pe=(()=>{class n{constructor(){this.disabled=!1,this.gradeIdSelected=new t.vpe}onGradeChange(e){void 0!==this.gradeId?.valueOf()&&this.gradeIdSelected.emit({id:this.gradeId?.valueOf(),selectedGradeId:e})}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-grade-select"]],inputs:{options:"options",valueId:"valueId",gradeId:"gradeId",disabled:"disabled"},outputs:{gradeIdSelected:"gradeIdSelected"},decls:1,vars:4,consts:[["data-testid","grade-select",3,"options","allowEmpty","value","disabled","valueChange"]],template:function(s,i){1&s&&(t.TgZ(0,"erz-select",0),t.NdJ("valueChange",function(l){return i.onGradeChange(l)}),t.qZA()),2&s&&t.Q6J("options",i.options)("allowEmpty",!0)("value",i.valueId)("disabled",i.disabled)},dependencies:[Y.H],styles:["[_nghost-%COMP%] select{min-width:13ch}"]})}return n})();function ge(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",25)(1,"erz-test-table-header",26),t.NdJ("toggle",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.state.toggleHeader(i))})("publish",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.publish(i))})("unpublish",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.unpublish(i))}),t.qZA()()}if(2&n){const e=a.$implicit,s=t.oxw().erzLet,i=t.oxw();t.Q6J("ngClass",e.Id===(null==i.selectedTest?null:i.selectedTest.Id)?"selected":""),t.xp6(1),t.Q6J("test",e)("expanded",s.expanded)}}function _e(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",27)(1,"erz-test-table-header",26),t.NdJ("toggle",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.state.toggleHeader(i))})("publish",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.publish(i))})("unpublish",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.unpublish(i))}),t.qZA()()}if(2&n){const e=a.$implicit,s=t.oxw().erzLet,i=t.oxw();t.Q6J("ngClass",e.Id===(null==i.selectedTest?null:i.selectedTest.Id)?"selected":""),t.xp6(1),t.Q6J("test",e)("expanded",s.expanded)}}function me(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",31)(1,"span",30),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,r=t.oxw(2);return t.KtG(r.state.sortBy(i))}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&n&&(t.xp6(2),t.hij("",t.lcZ(3,1,"tests.points")," "))}function he(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",28)(1,"div",11),t.YNc(2,me,4,3,"div",29),t.TgZ(3,"div",12)(4,"span",30),t.NdJ("click",function(){const r=t.CHM(e).$implicit,l=t.oxw(2);return t.KtG(l.state.sortBy(r))}),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"div",13),t._uU(8),t.ALo(9,"async"),t.qZA()()()}if(2&n){const e=a.$implicit,s=t.oxw(2);t.Q6J("ngClass",e.Id===(null==s.selectedTest?null:s.selectedTest.Id)?"selected":""),t.xp6(2),t.Q6J("ngIf",e.IsPointGrading),t.xp6(3),t.Oqu(t.lcZ(6,4,"tests.grade")),t.xp6(3),t.hij(" ",t.lcZ(9,6,s.state.getSortingChar$(e))," ")}}function fe(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"erz-grade-select",39),t.NdJ("gradeIdSelected",function(i){t.CHM(e);const r=t.oxw(3);return t.KtG(r.state.overwriteFinalGrade(i))}),t.ALo(1,"async"),t.ALo(2,"async"),t.qZA()}if(2&n){const e=t.oxw().$implicit,s=t.oxw(2);t.Q6J("options",t.lcZ(1,4,s.state.gradingOptionsForCourse$()))("valueId",e.finalGrade.finalGradeId)("gradeId",e.finalGrade.id)("disabled",!1===t.lcZ(2,6,s.isEditFinalGradesAllowed(e)))}}function ve(n,a){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.finalGrade.freeHandGrade," ")}}function xe(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",40)(1,"erz-grade",41),t.NdJ("gradeChanged",function(i){t.CHM(e);const r=t.oxw(3);return t.KtG(r.saveGrade(i))}),t.ALo(2,"async"),t.qZA()()}if(2&n){const e=a.$implicit,s=a.index,i=t.oxw(),r=i.$implicit,l=i.index,d=t.oxw(2);t.Q6J("ngClass",void 0!==d.selectedTest&&e.test.Id===(null==d.selectedTest?null:d.selectedTest.Id)?"selected":""),t.xp6(1),t.Q6J("grade",e)("gradeOptions",t.lcZ(2,5,d.state.gradingOptionsForTest$(e.test)))("student",r.student)("tabIndex",1e3*(1+s)+l)}}const Te=function(n){return["student",n,"grades"]},H=function(n){return{selected:n}};function Ce(n,a){if(1&n&&(t.TgZ(0,"tr")(1,"td",32)(2,"a",33)(3,"span"),t._uU(4),t.qZA(),t.TgZ(5,"span",20),t._uU(6),t.ALo(7,"translate"),t.ALo(8,"decimalOrDash"),t.qZA()()(),t.TgZ(9,"td",34),t.YNc(10,fe,3,8,"erz-grade-select",35),t.YNc(11,ve,2,1,"div",36),t.qZA(),t.TgZ(12,"td",37),t._uU(13),t.ALo(14,"decimalOrDash"),t.qZA(),t.YNc(15,xe,3,7,"td",38),t.qZA()),2&n){const e=a.$implicit,s=t.oxw(2);t.xp6(2),t.Q6J("routerLink",t.VKq(18,Te,e.student.Id)),t.xp6(2),t.Oqu(e.student.FullName),t.xp6(2),t.AsE(" ",t.lcZ(7,10,"tests.mean"),": ",t.xi3(8,12,null==e.finalGrade?null:e.finalGrade.average,"1-3")," "),t.xp6(3),t.Q6J("ngClass",t.VKq(20,H,void 0===s.selectedTest)),t.xp6(1),t.Q6J("ngIf",e.finalGrade&&!e.finalGrade.freeHandGrade),t.xp6(1),t.Q6J("ngIf",e.finalGrade&&e.finalGrade.freeHandGrade),t.xp6(2),t.hij(" ",t.xi3(14,15,null==e.finalGrade?null:e.finalGrade.average,"1-3")," "),t.xp6(2),t.Q6J("ngForOf",e.grades)("ngForTrackBy",s.trackGradeOf(e.student))}}function be(n,a){if(1&n&&(t.TgZ(0,"td",40),t._UZ(1,"erz-average-grades",42),t.qZA()),2&n){const e=a.$implicit,s=t.oxw(2);t.Q6J("ngClass",e.Id===(null==s.selectedTest?null:s.selectedTest.Id)||e.Id===(null==s.selectedTest?null:s.selectedTest.Id)?"selected":""),t.xp6(1),t.Q6J("test",e)}}function Ze(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",43),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setAverageAsFinalGrade())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"tests.set-final-grade")," "))}const dt=function(n,a){return{"btn-primary":n,"btn-outline-secondary":a}};function Ae(n,a){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr",4)(5,"th",5)(6,"button",6),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.changeFilter("all-tests"))}),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"button",7),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.changeFilter("my-tests"))}),t._uU(10),t.ALo(11,"translate"),t.qZA()(),t.YNc(12,ge,2,3,"th",8),t.YNc(13,_e,2,3,"th",9),t.qZA(),t.TgZ(14,"tr")(15,"th",10),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.state.sortBy("FullName"))}),t.TgZ(16,"div",11)(17,"div",12),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"div",13),t._uU(21),t.ALo(22,"async"),t.qZA()()(),t.TgZ(23,"th",14),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.state.sortBy("FinalGrade"))}),t.TgZ(24,"div",11)(25,"div",12),t._uU(26),t.ALo(27,"translate"),t.qZA(),t.TgZ(28,"div",13),t._uU(29),t.ALo(30,"async"),t.qZA()()(),t.TgZ(31,"th",15),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.state.sortBy("TestsMean"))}),t.TgZ(32,"div",11)(33,"div",12),t._uU(34),t.ALo(35,"translate"),t.qZA(),t.TgZ(36,"div",13),t._uU(37),t.ALo(38,"async"),t.qZA()()(),t.YNc(39,he,10,8,"th",16),t.qZA()(),t.TgZ(40,"tbody"),t.YNc(41,Ce,16,22,"tr",17),t.TgZ(42,"tr")(43,"td",18)(44,"div",19)(45,"div"),t._uU(46),t.ALo(47,"translate"),t.qZA(),t.TgZ(48,"div",20),t._uU(49),t.ALo(50,"translate"),t.ALo(51,"decimalOrDash"),t.ALo(52,"async"),t.qZA()()(),t.TgZ(53,"td",21),t._uU(54),t.ALo(55,"decimalOrDash"),t.ALo(56,"async"),t.qZA(),t.TgZ(57,"td",22),t._uU(58),t.ALo(59,"decimalOrDash"),t.ALo(60,"async"),t.qZA(),t.YNc(61,be,2,2,"td",23),t.qZA()()(),t.YNc(62,Ze,3,3,"button",24),t.ALo(63,"async"),t.qZA(),t.BQk()}if(2&n){const e=a.erzLet,s=t.oxw();t.xp6(6),t.Q6J("ngClass",t.WLB(61,dt,"all-tests"===e.filter,"all-tests"!==e.filter)),t.xp6(1),t.hij(" ",t.lcZ(8,24,"tests.all-tests")," "),t.xp6(2),t.Q6J("ngClass",t.WLB(64,dt,"my-tests"===e.filter,"my-tests"!==e.filter)),t.xp6(1),t.hij(" ",t.lcZ(11,26,"tests.owned-tests")," "),t.xp6(2),t.Q6J("ngForOf",e.tests),t.xp6(1),t.Q6J("ngForOf",e.tests),t.xp6(5),t.hij(" ",t.lcZ(19,28,"tests.student.name")," "),t.xp6(3),t.hij(" ",t.lcZ(22,30,s.state.getSortingChar$("FullName"))," "),t.xp6(2),t.Q6J("ngClass",t.VKq(67,H,void 0===s.selectedTest)),t.xp6(3),t.hij(" ",t.lcZ(27,32,"tests.grade")," "),t.xp6(3),t.hij(" ",t.lcZ(30,34,s.state.getSortingChar$("FinalGrade"))," "),t.xp6(5),t.hij(" ",t.lcZ(35,36,"tests.mean")," "),t.xp6(3),t.hij(" ",t.lcZ(38,38,s.state.getSortingChar$("TestsMean"))," "),t.xp6(2),t.Q6J("ngForOf",e.tests),t.xp6(2),t.Q6J("ngForOf",e.studentGrades)("ngForTrackBy",s.trackStudentGrade),t.xp6(5),t.Oqu(t.lcZ(47,40,"tests.average")),t.xp6(3),t.AsE(" ",t.lcZ(50,42,"tests.mean"),": ",t.xi3(51,44,t.lcZ(52,47,s.state.meanOfStudentGradesForCourse$),"1-3")," "),t.xp6(4),t.Q6J("ngClass",t.VKq(69,H,void 0===s.selectedTest)),t.xp6(1),t.hij(" ",t.xi3(55,49,t.lcZ(56,52,s.state.meanOfFinalGradesForCourse$),"1-3")," "),t.xp6(4),t.hij(" ",t.xi3(59,54,t.lcZ(60,57,s.state.meanOfStudentGradesForCourse$),"1-3")," "),t.xp6(3),t.Q6J("ngForOf",e.tests),t.xp6(1),t.Q6J("ngIf",t.lcZ(63,59,s.state.canSetFinalGrade$))}}const ye=function(n,a,e,s){return{tests:n,studentGrades:a,filter:e,expanded:s}};let Ie=(()=>{class n{constructor(e,s){this.state=e,this.modalService=s}ngOnInit(){this.state.setSorting({key:"FullName",ascending:!0})}changeFilter(e){this.state.filter$.next(e)}saveGrade(e){this.state.saveGrade(e)}setAverageAsFinalGrade(){this.state.course$.pipe((0,G.q)(1)).subscribe(e=>this.state.setAveragesAsFinalGrades({CourseIds:[e.Id]}))}isEditFinalGradesAllowed(e){return this.state.course$.pipe((0,c.U)(s=>!(!K(s)?.value||!e.finalGrade?.canGrade)))}publish(e){const s=this.openModal(e);this.onCloseModal(s,()=>this.state.publish(e))}unpublish(e){const s=this.openModal(e);this.onCloseModal(s,()=>this.state.unpublish(e))}trackStudentGrade(e){return e}trackGradeOf(e){return function(s,i){return`${e.Id}_${i.test.Id}`}}calculatePointsAverage(e){return this.safeAverage(e,A.dw)}calculateGradeAverage(e){return this.safeAverage(e,A.dP)}safeAverage(e,s){try{return s(e).toString()}catch{return"\u2013"}}openModal(e){const s=this.modalService.open(Xt);return s.componentInstance.test=e,s}onCloseModal(e,s){e.result.then(i=>{i&&s()},()=>{})}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(P),t.Y36(y.FF))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-test-edit-grades"]],inputs:{selectedTest:"selectedTest"},features:[t._Bn([j])],decls:5,vars:14,consts:[[4,"erzLet"],[1,"table-responsive-wrapper"],[1,"table","table-hover","h-100"],[1,"h-100"],[1,"h-100","header-collapsible"],["colspan","3",1,"desktop","pt-3","sticky"],["type","button",1,"btn","desktop",3,"ngClass","click"],["type","button",1,"btn","ms-2","desktop",3,"ngClass","click"],["container","body","class","grade h-100 test-info-desktop",3,"ngClass",4,"ngFor","ngForOf"],["container","body","class","grade h-100 header-mobile test-info-mobile","colspan","3",3,"ngClass",4,"ngFor","ngForOf"],[1,"primary-column-width","sticky",3,"click"],[1,"d-flex"],[1,"column-title"],[1,"sort-direction","ms-1"],[1,"secondary-column-width","sticky","sticky-col-2","desktop",3,"ngClass","click"],[1,"secondary-column-width","border-end","sticky","sticky-col-3","desktop",3,"click"],["container","body","class","grade h-100",3,"ngClass",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"sticky"],[1,"d-flex","flex-column"],[1,"mobile","mean"],[1,"desktop","sticky","sticky","sticky-col-2",3,"ngClass"],[1,"desktop","border-end","sticky","sticky-col-3"],["class","grade",3,"ngClass",4,"ngFor","ngForOf"],["data-testId","apply-average-button","class","btn btn-primary m-3","type","button",3,"click",4,"ngIf"],["container","body",1,"grade","h-100","test-info-desktop",3,"ngClass"],[3,"test","expanded","toggle","publish","unpublish"],["container","body","colspan","3",1,"grade","h-100","header-mobile","test-info-mobile",3,"ngClass"],["container","body",1,"grade","h-100",3,"ngClass"],["class","column-title me-3 point-input-container",4,"ngIf"],[3,"click"],[1,"column-title","me-3","point-input-container"],[1,"primary-column-width","sticky","name"],[3,"routerLink"],[1,"grade","sticky","sticky-col-2",3,"ngClass"],[3,"options","valueId","gradeId","disabled","gradeIdSelected",4,"ngIf"],[4,"ngIf"],[1,"grade","border-end","sticky","sticky-col-3"],["class","grade",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],[3,"options","valueId","gradeId","disabled","gradeIdSelected"],[1,"grade",3,"ngClass"],[3,"grade","gradeOptions","student","tabIndex","gradeChanged"],[3,"test"],["data-testId","apply-average-button","type","button",1,"btn","btn-primary","m-3",3,"click"]],template:function(s,i){1&s&&(t.YNc(0,Ae,64,71,"ng-container",0),t.ALo(1,"async"),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async")),2&s&&t.Q6J("erzLet",t.l5B(9,ye,t.lcZ(1,1,i.state.filteredTests$),t.lcZ(2,3,i.state.studentGrades$),t.lcZ(3,5,i.state.filter$),t.lcZ(4,7,i.state.expandedHeader$)))},dependencies:[u.mk,u.sg,u.O5,_.rH,M.e,ee,le,ue,pe,u.Ov,g.X$,D.fY],styles:[".filter-hover[_ngcontent-%COMP%]:hover{background-color:#dedede}table[_ngcontent-%COMP%] th.grade.selected[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td.grade.selected[_ngcontent-%COMP%]{display:table-cell!important}table[_ngcontent-%COMP%] th.grade[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td.grade[_ngcontent-%COMP%], .desktop[_ngcontent-%COMP%]{display:none!important}.desktop.selected[_ngcontent-%COMP%]{display:table-cell!important}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:none;vertical-align:top}.header-collapsible[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:1px solid #dee2e6;padding:0 1rem}.mobile[_ngcontent-%COMP%]{display:block!important}.mean[_ngcontent-%COMP%]{color:#4e4e4ef2;font-size:.875rem;line-height:1}td.name[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}td.name[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{text-decoration:underline}td.name[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child:hover{text-decoration-color:#ea161f}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th.test-info-desktop[_ngcontent-%COMP%]{display:none!important}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:1rem}table[_ngcontent-%COMP%] td.name[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td.average[_ngcontent-%COMP%]{max-width:18ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:0}.point-input-container[_ngcontent-%COMP%]{width:5em}@media (min-width: 576px){.table-responsive-wrapper[_ngcontent-%COMP%]{display:block;overflow-x:auto}table[_ngcontent-%COMP%]{border-collapse:separate;border-spacing:0}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th.test-info-mobile[_ngcontent-%COMP%]{display:none!important}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th.test-info-desktop[_ngcontent-%COMP%], table[_ngcontent-%COMP%] th.grade[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td.grade[_ngcontent-%COMP%], .desktop[_ngcontent-%COMP%]{display:table-cell!important}table[_ngcontent-%COMP%] td.name[_ngcontent-%COMP%]{max-width:auto;overflow:visible}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:none;padding-top:.25rem;padding-bottom:.25rem;border-top:initial;min-width:100px;max-width:100px}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th.grade[_ngcontent-%COMP%]{min-width:300px;max-width:300px}.mobile[_ngcontent-%COMP%]{display:none!important}.primary-column-width[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:300px;max-width:300px}.secondary-column-width[_ngcontent-%COMP%]{min-width:100px;max-width:100px}table[_ngcontent-%COMP%] .sticky[_ngcontent-%COMP%]{position:sticky;left:0;background-color:#fff}table[_ngcontent-%COMP%] .sticky.sticky-col-2[_ngcontent-%COMP%]{left:300px}table[_ngcontent-%COMP%] .sticky.sticky-col-3[_ngcontent-%COMP%]{left:452px}}"]})}return n})();function Oe(n,a){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"erz-select",7),t.NdJ("valueChange",function(i){t.CHM(e);const r=t.oxw(3);return t.KtG(r.testSelected(i))}),t.qZA(),t._UZ(2,"erz-test-edit-grades",8),t.BQk()}if(2&n){const e=t.oxw(2).erzLet;t.xp6(1),t.Q6J("options",e.testOptions)("value",e.selectedTestId)("allowEmpty",!1),t.xp6(1),t.Q6J("selectedTest",e.selectedTest)}}function Ge(n,a){if(1&n&&(t.TgZ(0,"a",9),t.ALo(1,"async"),t.TgZ(2,"i",10),t._uU(3,"arrow_right_alt"),t.qZA(),t.TgZ(4,"span",11),t._uU(5),t.ALo(6,"translate"),t.qZA()()),2&n){const e=t.oxw(3);t.s9C("href",t.lcZ(1,2,e.buildLinkToRatingOverview()),t.LSH),t.xp6(5),t.Oqu(t.lcZ(6,4,"tests.link-to-rating-overview"))}}function Pe(n,a){if(1&n&&(t.ynx(0),t._UZ(1,"erz-tests-header",5),t.YNc(2,Oe,3,4,"ng-container",4),t.YNc(3,Ge,7,6,"a",6),t.ALo(4,"async"),t.BQk()),2&n){const e=t.oxw().erzLet,s=t.oxw(),i=t.MAs(8);t.xp6(1),t.Q6J("course",e.course),t.xp6(1),t.Q6J("ngIf",e.tests.length>0)("ngIfElse",i),t.xp6(1),t.Q6J("ngIf",t.lcZ(4,4,s.state.canSetFinalGrade$))}}function $e(n,a){if(1&n&&(t.ynx(0),t.YNc(1,Pe,5,6,"ng-container",4),t.ALo(2,"async"),t.BQk()),2&n){const e=t.oxw(),s=t.MAs(10);t.xp6(1),t.Q6J("ngIf",!1===t.lcZ(2,2,e.state.loading$))("ngIfElse",s)}}function Le(n,a){1&n&&(t.TgZ(0,"p",12),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"tests.no-tests")))}function Me(n,a){1&n&&t._UZ(0,"erz-spinner")}const Se=function(n,a,e,s,i){return{course:n,tests:a,testOptions:e,selectedTestId:s,selectedTest:i}};let Ee=(()=>{class n{constructor(e,s,i){this.settings=e,this.state=s,this.translate=i,this.selectTest$=new $.x,this.testOptions$=this.state.tests$.pipe((0,c.U)(r=>[{Key:-1,Value:this.translate.instant("tests.grade")},...r.map(l=>({Key:l.Id,Value:l.Designation}))]),(0,L.x)()),this.selectedTestId$=(0,tt.T)(this.selectTest$,this.state.tests$.pipe((0,G.q)(1),(0,c.U)(r=>r[0]?.Id))).pipe((0,L.x)()),this.selectedTest$=this.selectedTestId$.pipe((0,T.w)(r=>this.state.tests$.pipe((0,c.U)(l=>l.find(d=>d.Id===r)))),(0,L.x)())}testSelected(e){this.selectTest$.next(e)}buildLinkToRatingOverview(){return this.state.course$.pipe((0,G.q)(1),(0,c.U)(e=>this.settings.eventlist.evaluation.replace(":id",String(e.Id))))}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(b.L6),t.Y36(P),t.Y36(g.sK))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests-list"]],decls:11,vars:17,consts:[[1,"erz-container"],[4,"erzLet"],["noTests",""],["loading",""],[4,"ngIf","ngIfElse"],[3,"course"],["class","d-flex justify-content-end pe-3 border-top pt-3","data-testId","link-to-rating-overview",3,"href",4,"ngIf"],[1,"tests-dropdown",3,"options","value","allowEmpty","valueChange"],[3,"selectedTest"],["data-testId","link-to-rating-overview",1,"d-flex","justify-content-end","pe-3","border-top","pt-3",3,"href"],[1,"material-icons","fw-bold"],[1,"ps-1"],[1,"mt-3","px-3"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0),t.YNc(1,$e,3,4,"ng-container",1),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.ALo(5,"async"),t.ALo(6,"async"),t.YNc(7,Le,3,3,"ng-template",null,2,t.W1O),t.YNc(9,Me,1,0,"ng-template",null,3,t.W1O),t.qZA()),2&s&&(t.xp6(1),t.Q6J("erzLet",t.qbA(11,Se,t.lcZ(2,1,i.state.course$),t.lcZ(3,3,i.state.tests$),t.lcZ(4,5,i.testOptions$),t.lcZ(5,7,i.selectedTestId$),t.lcZ(6,9,i.selectedTest$))))},dependencies:[u.O5,M.e,Q.O,Y.H,Kt,Ie,u.Ov,g.X$],styles:[".tests-dropdown[_ngcontent-%COMP%]{display:block;padding:1rem 0}@media (min-width: 576px){.tests-dropdown[_ngcontent-%COMP%]{display:none}}a.rating-overview[_ngcontent-%COMP%]{text-decoration:none}a.rating-overview[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:underline}a.rating-overview[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{text-decoration-color:#ea161f}"]})}return n})();var lt=o(4716);let we=(()=>{class n{constructor(e){this.activeModal=e}get canDeleteTest(){return 0===(this.test?.Results?.filter(s=>null!==s.GradeId||null!==s.GradeValue||null!==s.Points)||[]).length}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(y.Kz))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests-delete"]],inputs:{test:"test"},decls:13,vars:10,consts:[[1,"modal-body"],["data-testid","confirmation-message"],[1,"modal-footer"],["data-testid","cancel-button","type","button",1,"btn","btn-outline-secondary",3,"hidden","click"],[1,"px-2"],["data-testid","confirm-button","type","button",1,"btn","btn-primary",3,"click"],[1,"px-3"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0)(1,"p",1),t._uU(2),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"div",2)(5,"button",3),t.NdJ("click",function(){return i.activeModal.dismiss()}),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"translate"),t.qZA()(),t.TgZ(9,"button",5),t.NdJ("click",function(){return i.activeModal.close(i.canDeleteTest?i.test:null)}),t.TgZ(10,"span",6),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&s&&(t.xp6(2),t.hij(" ",t.lcZ(3,4,i.canDeleteTest?"tests.form.confirm":"tests.form.delete-not-allowed")," "),t.xp6(3),t.Q6J("hidden",!i.canDeleteTest),t.xp6(2),t.hij(" ",t.lcZ(8,6,"tests.dialog.no")," "),t.xp6(4),t.hij(" ",t.lcZ(12,8,i.canDeleteTest?"tests.dialog.yes":"tests.dialog.ok")," "))},dependencies:[g.X$]})}return n})();var ct=o(6869),Fe=o(902),Ue=o(3296),S=o(1257);function ke(n){return a=>{const e=Number(a.value);return e<=n?{greaterThan:{value:e,greaterThanValue:n}}:null}}function qe(n,a){if(1&n&&(t.TgZ(0,"div",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,"global.validation-errors."+e.error,e.params)," ")}}function Ne(n,a){if(1&n&&(t.TgZ(0,"div",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,"global.validation-errors."+e.error,e.params)," ")}}function Je(n,a){if(1&n&&(t.TgZ(0,"div",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,"global.validation-errors."+e.error,e.params)," ")}}function ze(n,a){if(1&n&&(t.TgZ(0,"div",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,"global.validation-errors."+e.error,e.params)," ")}}function je(n,a){if(1&n&&(t.TgZ(0,"div",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,"global.validation-errors."+e.error,e.params)," ")}}function Re(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"div",32)(2,"div",33)(3,"div",17)(4,"label",34),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",35),t._UZ(8,"input",36),t.ALo(9,"async"),t.YNc(10,ze,3,4,"div",7),t.ALo(11,"async"),t.qZA()()(),t.TgZ(12,"div",33)(13,"div",17)(14,"label",37),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"div",35),t._UZ(18,"input",38),t.ALo(19,"async"),t.YNc(20,je,3,4,"div",7),t.ALo(21,"async"),t.qZA()()()(),t.TgZ(22,"div",39),t.pZz(),t.TgZ(23,"math")(24,"mi"),t._uU(25),t.ALo(26,"translate"),t.qZA(),t.TgZ(27,"mo"),t._uU(28,"="),t.qZA(),t.TgZ(29,"mfrac")(30,"mrow")(31,"mi"),t._uU(32),t.ALo(33,"translate"),t.qZA(),t.TgZ(34,"mo"),t._uU(35,"\xd7"),t.qZA(),t.TgZ(36,"mn"),t._uU(37,"5"),t.qZA()(),t.TgZ(38,"mi"),t._uU(39),t.ALo(40,"translate"),t.qZA()(),t.TgZ(41,"mo"),t._uU(42,"+"),t.qZA(),t.TgZ(43,"mn"),t._uU(44,"1"),t.qZA()()(),t.BQk()),2&n){const e=t.oxw(3);let s,i;t.xp6(5),t.Oqu(t.lcZ(6,11,"tests.form.max-points")),t.xp6(3),t.ekj("is-invalid",(null==(s=t.lcZ(9,13,e.maxPointsErrors$))?null:s.length)>0),t.xp6(2),t.Q6J("ngForOf",t.lcZ(11,15,e.maxPointsErrors$)),t.xp6(5),t.Oqu(t.lcZ(16,17,"tests.form.max-points-adjusted")),t.xp6(3),t.ekj("is-invalid",(null==(i=t.lcZ(19,19,e.maxPointsAdjustedErrors$))?null:i.length)>0),t.xp6(2),t.Q6J("ngForOf",t.lcZ(21,21,e.maxPointsAdjustedErrors$)),t.xp6(5),t.hij(" ",t.lcZ(26,23,"tests.form.math.grade")," "),t.xp6(7),t.hij(" ",t.lcZ(33,25,"tests.form.math.points")," "),t.xp6(7),t.Oqu(t.lcZ(40,27,"tests.form.math.max-points"))}}function Qe(n,a){1&n&&(t.TgZ(0,"div",40)(1,"span",41),t._uU(2,"Loading..."),t.qZA()())}const Ye=function(n){return["/events",n,"tests"]};function De(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"form",2),t.NdJ("ngSubmit",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.onSubmit())}),t.TgZ(1,"div",3)(2,"div",4)(3,"label",5),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._UZ(6,"input",6),t.ALo(7,"async"),t.ALo(8,"translate"),t.YNc(9,qe,3,4,"div",7),t.ALo(10,"async"),t.qZA(),t.TgZ(11,"div",8)(12,"label",9),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"div",10)(16,"span",11)(17,"i",12),t._uU(18,"calendar_today"),t.qZA()(),t.TgZ(19,"input",13,14),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(20);return t.KtG(i.toggle())}),t.ALo(21,"async"),t.ALo(22,"translate"),t.qZA(),t.YNc(23,Ne,3,4,"div",7),t.ALo(24,"async"),t.qZA()()(),t.TgZ(25,"div",15)(26,"label",16),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"div",4)(30,"div",17)(31,"label",18),t._uU(32),t.ALo(33,"translate"),t.qZA(),t.TgZ(34,"div",19),t._UZ(35,"input",20),t.ALo(36,"async"),t.YNc(37,Je,3,4,"div",7),t.ALo(38,"async"),t.qZA()()()(),t.TgZ(39,"div")(40,"label",16),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"div",21),t._UZ(44,"input",22),t.TgZ(45,"label",23),t._uU(46),t.ALo(47,"translate"),t.qZA()(),t.TgZ(48,"div",21),t._UZ(49,"input",24),t.TgZ(50,"label",25),t._uU(51),t.ALo(52,"translate"),t.qZA()(),t.YNc(53,Re,45,29,"ng-container",26),t.qZA(),t.TgZ(54,"div",27)(55,"button",28),t.ALo(56,"async"),t._uU(57),t.ALo(58,"translate"),t.qZA(),t.TgZ(59,"button",29),t._uU(60),t.ALo(61,"translate"),t.YNc(62,Qe,3,0,"div",30),t.qZA()()()}if(2&n){const e=t.oxw().erzLet,s=t.oxw();let i,r,l;t.Q6J("formGroup",e.formGroup),t.xp6(4),t.Oqu(t.lcZ(5,29,"tests.form.designation")),t.xp6(2),t.ekj("is-invalid",(null==(i=t.lcZ(7,31,s.designationErrors$))?null:i.length)>0),t.Q6J("placeholder",t.lcZ(8,33,"tests.form.designation-placeholder")),t.xp6(3),t.Q6J("ngForOf",t.lcZ(10,35,s.designationErrors$)),t.xp6(4),t.Oqu(t.lcZ(14,37,"tests.form.date")),t.xp6(3),t.Q6J("id",s.componentId),t.xp6(3),t.ekj("is-invalid",(null==(r=t.lcZ(21,39,s.dateErrors$))?null:r.length)>0),t.Q6J("placeholder",t.lcZ(22,41,"shared.date-select.default-placeholder")),t.xp6(4),t.Q6J("ngForOf",t.lcZ(24,43,s.dateErrors$)),t.xp6(4),t.Oqu(t.lcZ(28,45,"tests.form.weight")),t.xp6(5),t.Oqu(t.lcZ(33,47,"tests.form.factor")),t.xp6(3),t.ekj("is-invalid",(null==(l=t.lcZ(36,49,s.weightErrors$))?null:l.length)>0),t.xp6(2),t.Q6J("ngForOf",t.lcZ(38,51,s.weightErrors$)),t.xp6(4),t.Oqu(t.lcZ(42,53,"tests.form.grading-type")),t.xp6(3),t.Q6J("value",!1),t.xp6(2),t.Oqu(t.lcZ(47,55,"tests.form.grades")),t.xp6(3),t.Q6J("value",!0),t.xp6(2),t.Oqu(t.lcZ(52,57,"tests.form.points")),t.xp6(2),t.Q6J("ngIf",e.formGroup.get("isPointGrading").value),t.xp6(2),t.Q6J("disabled",s.saving)("routerLink",t.VKq(65,Ye,t.lcZ(56,59,s.courseId$))),t.xp6(2),t.hij(" ",t.lcZ(58,61,"tests.form.cancel")," "),t.xp6(2),t.Q6J("disabled",s.saving),t.xp6(1),t.hij(" ",t.lcZ(61,63,"tests.form.save")," "),t.xp6(2),t.Q6J("ngIf",s.saving)}}function He(n,a){if(1&n&&(t.ynx(0),t.YNc(1,De,63,67,"form",1),t.BQk()),2&n){const e=a.erzLet;t.xp6(1),t.Q6J("ngIf",e.formGroup)}}const Ke=function(n){return{formGroup:n}};let ut=(()=>{class n{constructor(e,s,i){this.fb=e,this.translate=s,this.testStateService=i,this.test=null,this.saving=!1,this.save=new t.vpe,this.componentId=(0,Fe.Z)("erz-tests-edit-form"),this.formGroup=this.createFormGroup(),this.submitted$=new x.X(!1),this.destroy$=new $.x,this.designationErrors$=(0,S.Z6)((0,I.of)(this.formGroup),this.submitted$,"designation"),this.dateErrors$=(0,S.Z6)((0,I.of)(this.formGroup),this.submitted$,"date"),this.maxPointsErrors$=(0,S.Z6)((0,I.of)(this.formGroup),this.submitted$,"maxPoints"),this.maxPointsAdjustedErrors$=(0,S.Z6)((0,I.of)(this.formGroup),this.submitted$,"maxPointsAdjusted"),this.weightErrors$=(0,S.Z6)((0,I.of)(this.formGroup),this.submitted$,"weight"),this.courseId$=this.testStateService.courseId$}ngOnInit(){this.test&&this.setInitialValues(this.test),(0,S.ZX)((0,I.of)(this.formGroup),"isPointGrading").pipe((0,k.R)(this.destroy$)).subscribe(this.togglePointFieldsDisability.bind(this))}ngOnDestroy(){this.destroy$.next()}onSubmit(){this.submitted$.next(!0),this.formGroup.valid&&this.save.emit(this.formGroup.value)}createFormGroup(){return this.fb.group({designation:["",p.kI.required],date:[null,p.kI.required],weight:[1,p.kI.compose([p.kI.required,ke(0)])],isPointGrading:[!1],maxPoints:[{value:null,disabled:!0},p.kI.required],maxPointsAdjusted:[{value:null,disabled:!0},null]})}setInitialValues(e){this.formGroup.patchValue({designation:e.Designation,date:e.Date,weight:e.Weight,isPointGrading:e.IsPointGrading,maxPoints:e.MaxPoints,maxPointsAdjusted:e.MaxPointsAdjusted}),e.Results&&e.Results.length>0&&(this.formGroup.get("isPointGrading")?.disable(),this.formGroup.get("maxPoints")?.disable(),this.formGroup.get("maxPointsAdjusted")?.disable()),this.togglePointFieldsDisability()}togglePointFieldsDisability(){const e=this.formGroup.get("maxPoints"),s=this.formGroup.get("maxPointsAdjusted");this.formGroup.get("isPointGrading")?.value?(e?.enable(),s?.enable()):(e?.reset({value:this.test?.MaxPoints,disabled:!0}),s?.reset({value:this.test?.MaxPointsAdjusted,disabled:!0}))}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(p.QS),t.Y36(g.sK),t.Y36(P))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests-edit-form"]],inputs:{test:"test",saving:"saving"},outputs:{save:"save"},features:[t._Bn([{provide:y.DO,useClass:y.s5},{provide:y.NG,useClass:Ue.n}])],decls:1,vars:3,consts:[[4,"erzLet"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"formGroup","ngSubmit"],[1,"row","g-3","mb-3"],[1,"col-md-6"],["for","designation",1,"form-label"],["id","designation","name","designation","type","text","formControlName","designation","required","",1,"form-control",3,"placeholder"],["class","invalid-feedback",4,"ngFor","ngForOf"],[1,"col-md-6","mb-3"],["for","date",1,"form-label"],[1,"input-group"],[1,"input-group-text",3,"id"],[1,"material-icons"],["id","date","name","date","type","text","ngbDatepicker","","formControlName","date","required","",1,"form-control",3,"placeholder","click"],["dp","ngbDatepicker"],[1,"row","mb-3"],[1,"form-label"],[1,"row"],["for","factor",1,"form-label","col-3","col-sm-2"],[1,"col-9","col-sm-10"],["id","factor","name","factor","type","number","formControlName","weight","step","0.05","min","0","required","",1,"form-control"],[1,"form-check"],["type","radio","formControlName","isPointGrading","id","type-grades",1,"form-check-input",3,"value"],["for","type-grades",1,"form-check-label"],["type","radio","formControlName","isPointGrading","id","type-points",1,"form-check-input",3,"value"],["for","type-points",1,"form-check-label"],[4,"ngIf"],[1,"d-flex","justify-content-end","mt-4"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","routerLink"],["type","submit",1,"btn","btn-primary","ms-2",3,"disabled"],["class","spinner-border spinner-border-sm align-middle","role","status",4,"ngIf"],[1,"invalid-feedback"],[1,"row","ms-4","mb-3","g-3"],[1,"col-sm-6","col-md-4"],["for","max-points",1,"ms-2","col-4","col-form-label"],[1,"col-6"],["type","number","name","maxPoints","id","max-points","formControlName","maxPoints","step","0.01","min","0","max","999","required","",1,"form-control"],["for","max-points-adjusted",1,"ms-2","col-4","col-form-label"],["type","number","name","maxPointsAdjusted","id","max-points-adjusted","formControlName","maxPointsAdjusted","step","0.01","min","0","max","999",1,"form-control"],[1,"ms-4","ps-3","py-3"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(s,i){1&s&&t.YNc(0,He,2,1,"ng-container",0),2&s&&t.Q6J("erzLet",t.VKq(1,Ke,i.formGroup))},dependencies:[u.sg,u.O5,p._Y,p.Fj,p.wV,p._,p.JJ,p.JL,p.Q7,p.qQ,p.Fd,p.sg,p.u,_.rH,y.J4,M.e,u.Ov,g.X$],styles:["#factor[_ngcontent-%COMP%], #max-points[_ngcontent-%COMP%], #max-points-adjusted[_ngcontent-%COMP%]{width:5em}"]})}return n})();const Be=function(n){return{test:n}};function Xe(n,a){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",4)(2,"h1"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"button",5),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().erzLet,r=t.oxw();return t.KtG(r.openDeleteModal(i.test))}),t.TgZ(6,"i",6),t._uU(7,"delete"),t.qZA()()(),t.TgZ(8,"erz-tests-edit-form",7),t.NdJ("save",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.save(i))}),t.qZA(),t.BQk()}if(2&n){const e=t.oxw().erzLet;t.xp6(3),t.hij(" ",t.xi3(4,3,"tests.edit-title",t.VKq(6,Be,e.test.Designation))," "),t.xp6(5),t.Q6J("test",e.test)("saving",e.saving)}}function Ve(n,a){1&n&&t._UZ(0,"erz-spinner")}function We(n,a){if(1&n&&(t.TgZ(0,"div",1),t.YNc(1,Xe,9,8,"ng-container",2),t.ALo(2,"async"),t.YNc(3,Ve,1,0,"ng-template",null,3,t.W1O),t.qZA()),2&n){const e=t.MAs(4),s=t.oxw();t.xp6(1),t.Q6J("ngIf",!1===t.lcZ(2,2,s.state.loading$))("ngIfElse",e)}}const tn=function(n,a,e){return{courseId:n,test:a,saving:e}};let en=(()=>{class n{constructor(e,s,i,r,l,d,m){this.state=e,this.courseService=s,this.route=i,this.toastService=r,this.translate=l,this.router=d,this.modalService=m,this.saving$=new x.X(!1),this.testId$=this.route.paramMap.pipe((0,c.U)(h=>Number(h.get("testId"))),(0,L.x)()),this.test$=(0,C.a)([this.state.tests$,this.testId$]).pipe((0,c.U)(([h,E])=>h.find(q=>q.Id===E)))}openDeleteModal(e){const s=this.modalService.open(we);s.componentInstance.test=e,s.result.then(i=>{i&&this.courseService.delete(e.CourseId,e.Id).subscribe(this.onDeleteSuccess.bind(this))},()=>{})}save(e){this.saving$.next(!0);const{designation:s,date:i,weight:r,isPointGrading:l,maxPoints:d,maxPointsAdjusted:m}=e;(0,C.a)([this.state.courseId$,this.testId$]).pipe((0,G.q)(1),(0,T.w)(([h,E])=>this.courseService.update(h,E,s,i,r,l,d,m)),(0,lt.x)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.toastService.success(this.translate.instant("tests.form.save-success")),this.navigateBack()}onDeleteSuccess(e){this.toastService.success(this.translate.instant("tests.form.delete-success")),this.state.deleteTest(e),this.navigateBack()}navigateBack(){this.state.courseId$.pipe((0,G.q)(1)).subscribe(e=>this.router.navigate(["events",e,"tests"]))}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(P),t.Y36(U.s),t.Y36(_.gz),t.Y36(ct.k),t.Y36(g.sK),t.Y36(_.F0),t.Y36(y.FF))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests-edit"]],decls:4,vars:11,consts:[["class","erz-container erz-container-limited",4,"erzLet"],[1,"erz-container","erz-container-limited"],[4,"ngIf","ngIfElse"],["loading",""],[1,"d-flex","justify-content-between","align-items-center"],["type","button",1,"btn","btn-primary","btn-icon",3,"click"],[1,"material-icons"],[3,"test","saving","save"]],template:function(s,i){1&s&&(t.YNc(0,We,5,4,"div",0),t.ALo(1,"async"),t.ALo(2,"async"),t.ALo(3,"async")),2&s&&t.Q6J("erzLet",t.kEZ(7,tn,t.lcZ(1,1,i.state.courseId$),t.lcZ(2,3,i.test$),t.lcZ(3,5,i.saving$)))},dependencies:[u.O5,M.e,Q.O,ut,u.Ov,g.X$]})}return n})();function nn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",1)(1,"erz-tests-edit-form",2),t.NdJ("save",function(i){t.CHM(e);const r=t.oxw();return t.KtG(r.save(i))}),t.qZA()()}if(2&n){const e=a.erzLet;t.xp6(1),t.Q6J("saving",e.saving)}}const sn=function(n,a){return{courseId:n,saving:a}};let an=(()=>{class n{constructor(e,s,i,r,l){this.route=e,this.courseService=s,this.toastService=i,this.translate=r,this.router=l,this.saving$=new x.X(!1),this.courseId$=this.route.paramMap.pipe((0,c.U)(d=>Number(d.get("id"))),(0,L.x)())}save(e){this.saving$.next(!0);const{designation:s,date:i,weight:r,isPointGrading:l,maxPoints:d,maxPointsAdjusted:m}=e;this.courseId$.pipe((0,T.w)(h=>this.courseService.add(h,i,s,r,l,d,m)),(0,lt.x)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.toastService.success(this.translate.instant("tests.form.save-success")),this.navigateBack()}navigateBack(){this.courseId$.subscribe(e=>this.router.navigate(["events",e,"tests"]))}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(_.gz),t.Y36(U.s),t.Y36(ct.k),t.Y36(g.sK),t.Y36(_.F0))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests-add"]],decls:6,vars:11,consts:[["class","erz-container erz-container-limited",4,"erzLet"],[1,"erz-container","erz-container-limited"],[3,"saving","save"]],template:function(s,i){1&s&&(t.TgZ(0,"h1"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,nn,2,1,"div",0),t.ALo(4,"async"),t.ALo(5,"async")),2&s&&(t.xp6(1),t.Oqu(t.lcZ(2,2,"tests.add-title")),t.xp6(2),t.Q6J("erzLet",t.WLB(8,sn,t.lcZ(4,4,i.courseId$),t.lcZ(5,6,i.saving$))))},dependencies:[M.e,ut,u.Ov,g.X$]})}return n})();var rn=o(1162),on=o(7163);function dn(n,a){1&n&&(t.TgZ(0,"div",12),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"events.rating")," "))}function ln(n,a){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"date"),t._UZ(3,"wbr"),t._uU(4),t.ALo(5,"date"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("",t.xi3(2,2,e.dateFrom,"dd.MM.yyyy"),"\u2013"),t.xp6(3),t.Oqu(t.xi3(5,5,e.dateTo,"dd.MM.yyyy"))}}const cn=function(n){return[n,"tests"]};function un(n,a){if(1&n&&(t.TgZ(0,"a",19)(1,"i",20),t._uU(2,"arrow_right_alt"),t.qZA(),t.TgZ(3,"span",21),t._uU(4),t.qZA()()),2&n){const e=t.oxw(2).$implicit;t.Q6J("routerLink",t.VKq(2,cn,e.id)),t.xp6(4),t.Oqu(e.evaluationText)}}function pn(n,a){if(1&n&&(t.TgZ(0,"a",22)(1,"i",20),t._uU(2,"arrow_right_alt"),t.qZA(),t.TgZ(3,"span",21),t._uU(4),t.qZA()()),2&n){const e=t.oxw(2).$implicit;t.Q6J("href",e.evaluationLink,t.LSH),t.xp6(4),t.hij("",e.evaluationText," ")}}function gn(n,a){if(1&n&&(t.TgZ(0,"div",12),t.YNc(1,un,5,4,"a",17),t.YNc(2,pn,5,2,"a",18),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",!e.evaluationLink),t.xp6(1),t.Q6J("ngIf",e.evaluationLink)}}function _n(n,a){if(1&n&&(t.TgZ(0,"div",13)(1,"div",7)(2,"a",14),t._uU(3),t.qZA()(),t.TgZ(4,"div",8),t.YNc(5,ln,6,8,"span",15),t.qZA(),t.TgZ(6,"div",9),t._uU(7),t.TgZ(8,"span",16),t._uU(9),t.ALo(10,"translate"),t.qZA()(),t.YNc(11,gn,3,2,"div",10),t.qZA()),2&n){const e=a.$implicit,s=t.oxw(4);t.xp6(2),t.Q6J("href",e.detailLink,t.LSH),t.xp6(1),t.Oqu(e.Designation),t.xp6(2),t.Q6J("ngIf",e.dateFrom&&e.dateTo),t.xp6(2),t.hij(" ",e.studentCount," "),t.xp6(2),t.Oqu(t.lcZ(10,6,1===e.studentCount?"events.registration":"events.registrations")),t.xp6(2),t.Q6J("ngIf",s.withRatings&&e.evaluationText)}}function mn(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"div",6)(2,"div",7),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",8),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"div",9),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,dn,3,3,"div",10),t.qZA(),t.YNc(12,_n,12,8,"div",11),t.BQk()),2&n){const e=t.oxw(2).erzLet,s=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,5,"events.designation")),t.xp6(3),t.Oqu(t.lcZ(7,7,"events.date")),t.xp6(3),t.hij(" ",t.lcZ(10,9,"events.registrations")," "),t.xp6(2),t.Q6J("ngIf",s.withRatings),t.xp6(1),t.Q6J("ngForOf",e.events)}}function hn(n,a){1&n&&(t.TgZ(0,"p",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"events.no-events")))}function fn(n,a){if(1&n&&(t.ynx(0),t.YNc(1,mn,13,11,"ng-container",3),t.YNc(2,hn,3,3,"ng-template",null,5,t.W1O),t.BQk()),2&n){const e=t.MAs(3),s=t.oxw().erzLet;t.xp6(1),t.Q6J("ngIf",(null==s.events?null:s.events.length)>0)("ngIfElse",e)}}function vn(n,a){1&n&&t._UZ(0,"erz-spinner")}function xn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",1)(1,"erz-resettable-input",2),t.NdJ("valueChange",function(i){t.CHM(e);const r=t.oxw();return t.KtG(r.state.search$.next(i))}),t.ALo(2,"async"),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.YNc(5,fn,4,2,"ng-container",3),t.ALo(6,"async"),t.YNc(7,vn,1,0,"ng-template",null,4,t.W1O),t.qZA()}if(2&n){const e=a.erzLet,s=t.MAs(8),i=t.oxw();t.xp6(1),t.Q6J("value",t.lcZ(2,6,i.state.search$))("placeholder",t.lcZ(3,8,"events.search-by"))("label",t.lcZ(4,10,"events.search"))("disabled",!e.events),t.xp6(4),t.Q6J("ngIf",!1===t.lcZ(6,12,i.state.loading$))("ngIfElse",s)}}const Tn=function(n){return{events:n}};let pt=(()=>{class n{constructor(e,s){this.state=e,this.storage=s,this.withRatings=!0,this.state.roles$.next(this.storage.getPayload()?.roles)}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(j),t.Y36(X.V))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-events-list"]],inputs:{withRatings:"withRatings"},decls:2,vars:5,consts:[["class","erz-container",4,"erzLet"],[1,"erz-container"],[1,"d-flex","search",3,"value","placeholder","label","disabled","valueChange"],[4,"ngIf","ngIfElse"],["loading",""],["noEvents",""],[1,"event-header"],[1,"designation"],[1,"date"],[1,"registrations"],["class","rating",4,"ngIf"],["class","event-entry",4,"ngFor","ngForOf"],[1,"rating"],[1,"event-entry"],[3,"href"],[4,"ngIf"],[1,"registrations-label"],["class","d-flex",3,"routerLink",4,"ngIf"],["class","d-flex",3,"href",4,"ngIf"],[1,"d-flex",3,"routerLink"],[1,"material-icons"],[1,"ps-1"],[1,"d-flex",3,"href"],[1,"mt-3"]],template:function(s,i){1&s&&(t.YNc(0,xn,9,14,"div",0),t.ALo(1,"async")),2&s&&t.Q6J("erzLet",t.VKq(3,Tn,t.lcZ(1,1,i.state.getEvents(i.withRatings))))},dependencies:[u.sg,u.O5,_.rH,M.e,Q.O,on.w,u.Ov,u.uU,g.X$],styles:['.search[_ngcontent-%COMP%]{max-width:500px}.event-header[_ngcontent-%COMP%]{display:grid;padding:1rem;border-bottom:2px solid #dee2e6;grid-template-areas:"designation date registrations rating";grid-template-columns:4fr 2fr 2fr 3fr}.event-entry[_ngcontent-%COMP%]{display:grid;padding:1rem;border-bottom:1px solid #dee2e6;grid-template-areas:"designation date registrations rating";grid-template-columns:4fr 2fr 2fr 3fr}.designation[_ngcontent-%COMP%]{grid-area:designation;padding-right:1rem}.date[_ngcontent-%COMP%]{grid-area:date;padding-right:1rem}.registrations[_ngcontent-%COMP%]{grid-area:registrations;padding-right:1rem}.rating[_ngcontent-%COMP%]{grid-area:rating}.rating[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}.rating[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:underline}.rating[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{text-decoration-color:#ea161f}.registrations-label[_ngcontent-%COMP%]{display:none}@media (max-width: 575.98px){.event-header[_ngcontent-%COMP%]{display:none}.registrations-label[_ngcontent-%COMP%]{display:inline}.designation[_ngcontent-%COMP%], .date[_ngcontent-%COMP%], .registrations[_ngcontent-%COMP%]{padding-right:0}.event-entry[_ngcontent-%COMP%]{grid-template-areas:"designation" "date" "registrations" "rating";grid-template-columns:1fr}}']})}return n})();const Cn=[{path:"",component:Ct,children:[{path:"",component:(()=>{class n{constructor(){}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-events-tests"]],decls:4,vars:4,consts:[[3,"withRatings"]],template:function(s,i){1&s&&(t.TgZ(0,"h1"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"erz-events-list",0)),2&s&&(t.xp6(1),t.Oqu(t.lcZ(2,2,"events.title")),t.xp6(2),t.Q6J("withRatings",!0))},dependencies:[pt,g.X$]})}return n})()},{path:"current",component:(()=>{class n{constructor(){}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-events-current"]],decls:4,vars:4,consts:[[3,"withRatings"]],template:function(s,i){1&s&&(t.TgZ(0,"h1"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"erz-events-list",0)),2&s&&(t.xp6(1),t.Oqu(t.lcZ(2,2,"events.current.title")),t.xp6(2),t.Q6J("withRatings",!1))},dependencies:[pt,g.X$]})}return n})()},{path:":id",component:R,children:[{path:"tests",component:Ee}]},{path:":id/tests/:testId/edit",component:R,children:[{path:"",component:en}]},{path:":id/tests/add",component:R,children:[{path:"",component:an}]},{path:":id/tests",children:[rn.H]}]}];let bn=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275mod=t.oAB({type:n});static#n=this.\u0275inj=t.cJS({imports:[_.Bz.forChild(Cn),_.Bz]})}return n})();var Zn=o(8393);let An=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275mod=t.oAB({type:n});static#n=this.\u0275inj=t.cJS({providers:[Zn.o],imports:[N.m,bn]})}return n})()},1608:(gt,w,o)=>{o.d(w,{K:()=>T});var N=o(8658),_=o(7398),J=o(5619),x=o(3997),O=o(7081),C=o(8180),c=o(5879);let T=(()=>{class b{getSortingChar$(Z){return this.sorting$.pipe((0,_.U)(v=>v&&Z===v.key?v.ascending?"\u2193":"\u2191":""))}constructor(){this.sortingSubject$=new J.X(null),this.sorting$=this.sortingSubject$.asObservable().pipe((0,x.x)(N.Z),(0,O.d)(1))}setSorting(Z){this.sortingSubject$.next(Z)}toggleSorting(Z){this.sorting$.pipe((0,C.q)(1)).subscribe(v=>{this.sortingSubject$.next({key:Z,ascending:!v||v.key!==Z||!v.ascending})})}static#t=this.\u0275fac=function(v){return new(v||b)};static#e=this.\u0275prov=c.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[218],{6218:(gt,w,o)=>{o.r(w),o.d(w,{EventsModule:()=>yn});var q=o(6486),_=o(1523),J=o(5301),x=o(5619),O=o(7081),C=o(2572),c=o(7398),T=o(4664),b=o(4141),F=o(1389),Z=o(6031),v=o(2547);function K(n){const{HasEvaluationStarted:a,EvaluationUntil:e,HasTestGrading:s}=n.EvaluationStatusRef;if(!0===a&&(14030===n.StatusId||10350===n.StatusId))return{value:f.Rating};if(!0===a&&!1===s){if(e)return{value:f.RatingUntil};if(10300===n.StatusId)return{value:f.IntermediateRating}}return!1===a&&!0===s&&10260!==n.StatusId&&10250!==n.StatusId?{value:f.Tests}:!0===a&&!0===s?e?{value:f.Tests,label:f.RatingUntil}:{value:f.Tests,label:f.IntermediateRating}:null}function vt(n){return!0===n.EvaluationStatusRef.HasEvaluationStarted}var t=o(5879),U=o(1074),Tt=o(9018),B=o(3005),X=o(8173),g=o(9515),V=o(654),f=function(n){return n.Rating="rating",n.RatingUntil="rating-until",n.IntermediateRating="intermediate-rating",n.Tests="add-tests",n}(f||{});let j=(()=>{class n{constructor(e,s,i,r,l,d,m){this.coursesRestService=e,this.studyClassRestService=s,this.loadingService=i,this.storage=r,this.translate=l,this.eventsRestService=d,this.settings=m,this.loading$=this.loadingService.loading$,this.search$=new x.X(""),this.roles$=new x.X(void 0),this.formativeAssessments$=this.studyClassRestService.getActiveFormativeAssessments(),this.studyClasses$=this.studyClassRestService.getActive(),this.events$=this.loadEvents().pipe((0,O.d)(1)),this.filteredEvents$=(0,C.a)([this.events$,this.search$]).pipe((0,c.U)((0,F.h)(v.P)))}getEvents(e=!1){return this.filteredEvents$.pipe((0,c.U)(s=>e?s.filter(i=>i.evaluationText):s))}loadEvents(){return this.roles$.pipe((0,T.w)(e=>this.loadingService.load(this.loadEventsForRoles(e))))}loadEventsForRoles(e){return(0,Z.n)(e,"ClassTeacherRole")?(0,C.a)([this.loadCoursesNotRated(e),this.formativeAssessments$,this.studyClasses$]).pipe((0,c.U)((0,F.h)(this.createAndSortEvents.bind(this)))):this.loadCoursesNotRated(e).pipe((0,c.U)(s=>this.createAndSortEvents(s)))}loadCoursesNotRated(e){return this.coursesRestService.getExpandedCourses(e).pipe((0,c.U)(s=>s.filter(i=>!function xt(n){return!0===n.EvaluationStatusRef.HasReviewOfEvaluationStarted&&!!n.FinalGrades?.length}(i))))}createAndSortEvents(e,s=[],i=[]){const r=i.filter(l=>!s.map(d=>d.Id).includes(l.Id));return[...this.createFromCourses(e),...this.createFromAssessments(s),...this.createFromStudyClasses(r)].sort((l,d)=>l.Designation.localeCompare(d.Designation))}createFromStudyClasses(e){return e.map(s=>({id:s.Id,Designation:s.Number,detailLink:this.buildLink(s.Id,"eventdetail"),studentCount:s.StudentCount,state:null}))}createFromAssessments(e){return this.createFromStudyClasses(e).map(i=>({...i,state:f.Rating,evaluationText:this.translate.instant("events.state.rating"),evaluationLink:this.buildLink(i.id,"evaluation")}))}createFromCourses(e){return e.map(s=>{const i=K(s);return{id:s.Id,Designation:this.eventsRestService.getDesignation(s),detailLink:this.buildLink(s.Id,"eventdetail"),studentCount:s.AttendanceRef.StudentCount||0,dateFrom:s.DateFrom,dateTo:s.DateTo,state:i?.value||null,evaluationText:this.getEvaluationText(i,s.EvaluationStatusRef.EvaluationUntil),evaluationLink:this.getEvaluationLink(i?.value,s)}})}getEvaluationText(e,s){const i=e?.label||e?.value;return i?this.translate.instant(`events.state.${i}`)+(i===f.RatingUntil?` ${s?(0,J.Z)(s,"dd.MM.yyyy"):""}`:""):""}getEvaluationLink(e,s){return e&&e!==f.Tests?this.buildLink(s.Id,"evaluation"):null}buildLink(e,s){return(this.settings.eventlist[s]??"").replace(":id",String(e))}static#t=this.\u0275fac=function(s){return new(s||n)(t.LFG(U.s),t.LFG(Tt.R),t.LFG(B.b),t.LFG(X.V),t.LFG(g.sK),t.LFG(V.O),t.LFG(b.L6))};static#e=this.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Ct=(()=>{class n{constructor(){}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-events"]],features:[t._Bn([j])],decls:1,vars:0,template:function(s,i){1&s&&t._UZ(0,"router-outlet")},dependencies:[_.lC]})}return n})();var W=o(7328),tt=o(3019),bt=o(6699),I=o(2096),et=o(2181),G=o(8180),Zt=o(3942),A=o(7483);function At(n,a){return[...a.filter(e=>e.Id!==n?.Id),n].filter(e=>null!=e)}function yt({id:n,selectedGradeId:a},e){return e.map(s=>s.Id!==n?s:{...s,GradeId:a})}function It(n,a){switch(a.type){case"reset":return a.payload;case"updateResult":return n?{...n,Tests:(0,A.De)(a.payload.testResult,n.Tests||[]),Gradings:At(a.payload.grading,n.Gradings||[])}:null;case"toggle-test-state":return n?{...n,Tests:(0,A.P2)(a.payload,n.Tests||[])}:null;case"final-grade-overwritten":return n?{...n,Gradings:yt({id:a.payload.id,selectedGradeId:a.payload.selectedGradeId},n.Gradings||[])}:null;case"replace-grades":return n?{...n,Gradings:a.payload}:null;case"delete-test":return n?{...n,Tests:(0,A.yY)(a.payload,n.Tests||[])}:null;default:return n}}var Ot=o(2194),nt=o(3986);function st(n){return n.map(({finalGrade:a})=>a).filter(Gt)}function Gt(n){return null!==n}function $t(n,a){return a.map(e=>{if(void 0===e.Results||0===e.Results?.length)return{kind:"no-result",test:e};const s=e.Results?.find(i=>i.StudentId===n.Id);return void 0!==s?{kind:"grade",result:s,test:e}:{kind:"no-result",test:e}})}function Lt(n,a,e){const s=a.find(r=>r.StudentId===n.Id),i=e.find(r=>r.StudentId===n.Id);return s?{id:s.Id,average:Mt(s),finalGradeId:s.GradeId,freeHandGrade:i?Number(i.Grade):null,canGrade:s.CanGrade}:null}function Mt(n){return 0===n.AverageTestResult?null:n.AverageTestResult}function it(n,a){return n===a?0:n{class n extends qt.v{constructor(e,s){super(e,s,Nt.Ly,"Gradings")}updateGrade(e,s){return this.http.put(`${this.baseUrl}/${e}`,{GradeId:s}).pipe((0,c.U)(()=>e))}static#t=this.\u0275fac=function(s){return new(s||n)(t.LFG(Jt.eN),t.LFG(b.L6))};static#e=this.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var jt=o(1608);let P=(()=>{class n{constructor(e,s,i,r,l){this.coursesRestService=e,this.gradingScalesRestService=s,this.gradingsRestService=i,this.loadingService=r,this.sortService=l,this.action$=new W.t(1),this.loading$=this.loadingService.loading$,this._courseId$=new W.t(1),this.courseId$=this._courseId$.asObservable(),this.fetchedCourse$=this._courseId$.pipe((0,T.w)(d=>this.loadingService.load(this.coursesRestService.getExpandedCourse(d))),(0,O.d)(1)),this.course$=(0,tt.T)(this.action$,this.fetchedCourse$).pipe((0,c.U)(d=>"type"in d?d:{type:"reset",payload:d}),(0,bt.R)(It,null),(0,et.h)(Zt.Nf)),this.tests$=this.course$.pipe((0,c.U)(d=>d.Tests||[]),(0,c.U)(A.df)),this.filter$=new x.X("all-tests"),this.expandedHeader$=new x.X(!1),this.filteredTests$=(0,C.a)([this.tests$,this.filter$]).pipe((0,c.U)(([d,m])=>d.filter(h=>"all-tests"===m||h.IsOwner))),this.sorting$=this.sortService.sorting$,this.studentGrades$=(0,C.a)([this.course$,this.filteredTests$,this.sorting$]).pipe((0,c.U)((0,F.h)(this.toStudentGrades.bind(this)))),this.canSetFinalGrade$=this.course$.pipe((0,c.U)(vt)),this.gradingScaleIds$=this.course$.pipe((0,c.U)(d=>(0,Ot.Z)([...(d.Tests??[]).map(m=>m.GradingScaleId),d.GradingScaleId]))),this.gradingScales$=this.gradingScalesRestService.loadGradingScales(this.gradingScaleIds$),this.UNDEFINED_GRADINGSCALE_ID=-1,this.gradingScalesOptions$=this.gradingScales$.pipe((0,c.U)(d=>d.map(m=>({id:m?.Id||this.UNDEFINED_GRADINGSCALE_ID,options:m?.Grades.map(N=>({Key:N.Id,Value:N.Designation}))||[]})).reduce((m,h)=>({...m,[h.id]:h.options}),{})),(0,O.d)(1)),this.meanOfStudentGradesForCourse$=this.studentGrades$.pipe((0,c.U)(d=>function Ft(n){const a=n.map(e=>e.average).filter(e=>null!=e&&0!==e).map(Number);return(0,nt.Y)(a)}(st(d)))),this.meanOfFinalGradesForCourse$=(0,C.a)([this.gradingScalesOptions$,this.studentGrades$]).pipe((0,T.w)((0,F.h)(this.meanOfOverwrittenGradesForCourse.bind(this))))}setCourseId(e){this._courseId$.next(e)}gradingOptionsForTest$(e){return this.gradingOptions$(e.GradingScaleId)}gradingOptionsForCourse$(){return this.course$.pipe((0,T.w)(e=>this.gradingOptions$(e.GradingScaleId)))}toStudentGrades(e,s=[],i){return function Pt(n,a,e,s){return n?.map(i=>({student:i,finalGrade:Lt(i,e,s),grades:$t(i,a)}))}(e.ParticipatingStudents??[],s,e.Gradings??[],e.FinalGrades??[]).sort((({key:n,ascending:a})=>(e,s)=>{const i=a?1:-1;switch(n){case"FullName":return i*e.student.FullName.localeCompare(s.student.FullName);case"FinalGrade":return e.finalGrade?.finalGradeId&&s.finalGrade?.finalGradeId?i*it(e.finalGrade.finalGradeId,s.finalGrade.finalGradeId):-1*i;case"TestsMean":return e.finalGrade?.average&&s.finalGrade?.average?i*it(e.finalGrade.average,s.finalGrade.average):-1*i}return i*((n,a,e)=>{const s=a.grades.filter(at).find(r=>r.test.Id===n.Id),i=e.grades.filter(at).find(r=>r.test.Id===n.Id);return n.IsPointGrading&&s?.result.GradeId===i?.result.GradeId?(s?.result.Points??0)-(i?.result.Points??0):-1*((s?.result.GradeId??Number.POSITIVE_INFINITY)-(i?.result.GradeId??Number.POSITIVE_INFINITY))})(n,e,s)})(i))}setSorting(e){this.sortService.setSorting(e)}getSortingChar$(e){return this.sortService.getSortingChar$(e)}sortBy(e){this.sortService.toggleSorting(e)}toggleHeader(e){this.expandedHeader$.next(e)}saveGrade(e){this.course$.pipe((0,G.q)(1),(0,T.w)(s=>this.coursesRestService.updateTestResult(s.Id,e))).subscribe(s=>this.updateStudentGrades(s))}publish(e){this.coursesRestService.publishTest(e.Id).subscribe(this.toggleTestPublishedState.bind(this))}unpublish(e){this.coursesRestService.unpublishTest(e.Id).subscribe(this.toggleTestPublishedState.bind(this))}deleteTest(e){this.action$.next({type:"delete-test",payload:e})}overwriteFinalGrade({id:e,selectedGradeId:s}){this.gradingsRestService.updateGrade(e,s).subscribe(()=>{this.action$.next({type:"final-grade-overwritten",payload:{id:e,selectedGradeId:s}})})}setAveragesAsFinalGrades(e){this.coursesRestService.setAverageAsFinalGrade(e).subscribe(s=>this.action$.next({type:"replace-grades",payload:s.Gradings}))}updateStudentGrades(e){const s=e.body.Gradings.find(i=>i.EventId===e.courseId);void 0!==s&&this.action$.next({type:"updateResult",payload:{testResult:e.body.TestResults[0],grading:s}})}toggleTestPublishedState(e){this.action$.next({type:"toggle-test-state",payload:e})}gradingOptions$(e){return null===e?(0,I.of)(null):this.gradingScalesOptions$.pipe((0,c.U)(s=>s[e]),(0,O.d)(1))}meanOfOverwrittenGradesForCourse(e,s){return this.course$.pipe((0,c.U)(i=>{if(null===i.GradingScaleId||void 0===e[i.GradingScaleId])return null;const r=e[i.GradingScaleId];return function Ut(n,a){const e=n.map(i=>i.freeHandGrade).filter(i=>!!i),s=n.map(i=>i.finalGradeId).filter(i=>null!==i).map(i=>a.find(r=>r.Key===i)).filter(i=>void 0!==i).map(i=>i?.Value).filter(i=>void 0!==i).map(Number).filter(i=>!isNaN(i));return(0,nt.Y)([...s,...e])}(st(s),r)}))}static#t=this.\u0275fac=function(s){return new(s||n)(t.LFG(U.s),t.LFG(kt.R),t.LFG(zt),t.LFG(B.b),t.LFG(jt.K))};static#e=this.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac})}return n})();var $=o(8645),L=o(3997),k=o(9773);let R=(()=>{class n{constructor(e,s){this.state=e,this.route=s,this.courseId$=this.route.paramMap.pipe((0,c.U)(i=>Number(i.get("id"))),(0,L.x)()),this.destroy$=new $.x}ngOnInit(){this.courseId$.pipe((0,k.R)(this.destroy$)).subscribe(e=>this.state.setCourseId(e))}ngOnDestroy(){this.destroy$.next()}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(P),t.Y36(_.gz))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests"]],features:[t._Bn([P])],decls:1,vars:0,template:function(s,i){1&s&&t._UZ(0,"router-outlet")},dependencies:[_.lC]})}return n})();var u=o(6814),M=o(6567),Q=o(59),Y=o(4229),Rt=o(6016),Qt=o(7625);const Yt=function(n){return{count:n}};function Dt(n,a){if(1&n&&(t.TgZ(0,"div",7),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij(" ",t.xi3(2,1,1===e.course.ParticipatingStudents.length?"courses.registration":"courses.registrations",t.VKq(4,Yt,e.course.ParticipatingStudents.length))," ")}}const Ht=function(){return["/events"]};let Kt=(()=>{class n{constructor(e,s){this.reportsService=e,this.eventsRestService=s}loadReportUrl(){return this.reportsService.getEventReportUrl(this.course.Id)}getDesignation(){return this.eventsRestService.getDesignation(this.course)}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(Rt.F),t.Y36(V.O))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests-header"]],inputs:{course:"course"},decls:12,vars:5,consts:[[3,"routerLink"],[1,"d-flex"],["routerLink","add",1,"edit","btn","btn-primary","btn-icon","ms-2"],[1,"material-icons"],["target","_blank",1,"edit","btn","btn-primary","btn-icon","ms-2",3,"href"],[1,"d-flex","flex-column","header"],["class","additional-info",4,"ngIf"],[1,"additional-info"]],template:function(s,i){1&s&&(t.TgZ(0,"erz-backlink",0)(1,"div",1)(2,"a",2)(3,"i",3),t._uU(4,"add"),t.qZA()(),t.TgZ(5,"a",4)(6,"i",3),t._uU(7,"description"),t.qZA()()()(),t.TgZ(8,"div",5)(9,"h1"),t._uU(10),t.qZA(),t.YNc(11,Dt,3,6,"div",6),t.qZA()),2&s&&(t.Q6J("routerLink",t.DdM(4,Ht)),t.xp6(5),t.Q6J("href",i.loadReportUrl(),t.LSH),t.xp6(5),t.Oqu(i.getDesignation()),t.xp6(1),t.Q6J("ngIf",i.course.ParticipatingStudents))},dependencies:[u.O5,_.rH,Qt.I,g.X$],styles:[".header[_ngcontent-%COMP%]{padding-bottom:1rem;border-bottom:1px solid #dee2e6}h1[_ngcontent-%COMP%]{margin-bottom:0}.additional-info[_ngcontent-%COMP%]{color:#adb5bd}"]})}return n})();var y=o(253);const Bt=function(n){return{designation:n}};let Xt=(()=>{class n{constructor(e){this.activeModal=e}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(y.Kz))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-publish-test"]],inputs:{test:"test"},decls:11,vars:12,consts:[[1,"modal-body"],["data-testid","confirmation-message"],[1,"modal-footer"],["data-testid","cancel-button","type","button",1,"btn","btn-outline-secondary",3,"click"],["data-testid","confirm-button","type","button",1,"btn","btn-primary",3,"click"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0)(1,"p",1),t._uU(2),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"div",2)(5,"button",3),t.NdJ("click",function(){return i.activeModal.dismiss()}),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"button",4),t.NdJ("click",function(){return i.activeModal.close(!0)}),t._uU(9),t.ALo(10,"translate"),t.qZA()()),2&s&&(t.xp6(2),t.hij(" ",t.xi3(3,3,i.test.IsPublished?"tests.publishing.unpublish":"tests.publishing.publish",t.VKq(10,Bt,i.test.Designation))," "),t.xp6(4),t.hij(" ",t.lcZ(7,6,"tests.publishing.cancel")," "),t.xp6(3),t.hij(" ",t.lcZ(10,8,"tests.publishing.confirm")," "))},dependencies:[g.X$],encapsulation:2})}return n})();var rt=o(3620),p=o(6223);const Vt=function(n){return{maxPoints:n}};function Wt(n,a){if(1&n&&(t.TgZ(0,"div",8),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.hij(" ",t.xi3(2,1,"global.validation-errors.invalidPoints",t.VKq(4,Vt,e.maxPoints))," ")}}function te(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",4)(1,"input",5,6),t.NdJ("ngModelChange",function(){t.CHM(e);const i=t.MAs(2),r=t.oxw();return t.KtG(r.onPointsChange(i.value))}),t.qZA(),t.YNc(3,Wt,3,6,"div",7),t.qZA()}if(2&n){const e=t.MAs(2),s=t.oxw();t.xp6(1),t.ekj("is-invalid",e.errors),t.s9C("max",s.maxPoints),t.s9C("tabindex",s.tabIndex),t.Q6J("disabled",s.grade.test.IsPublished)("ngModel","grade"===s.grade.kind?s.grade.result.Points:null),t.xp6(2),t.Q6J("ngIf",e.errors)}}let ee=(()=>{class n{constructor(){this.gradeChanged=new t.vpe,this.maxPoints=0,this.pointsSubject$=new $.x,this.gradeSubject$=new $.x,this.gradingScaleDisabledSubject$=new x.X(!0),this.gradingScaleDisabled$=this.gradingScaleDisabledSubject$.asObservable(),this.points$=this.pointsSubject$.pipe((0,rt.b)(1250),(0,et.h)(this.isValid.bind(this))),this.grade$=this.gradeSubject$.pipe((0,rt.b)(1250)),this.destroy$=new $.x}ngOnInit(){this.gradingScaleDisabledSubject$.next(this.disableGradingScale()),this.maxPoints=function wt(n){return(n?.test?.MaxPointsAdjusted||n?.test?.MaxPoints)??0}(this.grade),this.points$.pipe((0,k.R)(this.destroy$),(0,c.U)(this.buildRequestBodyPointsChange.bind(this))).subscribe(e=>this.gradeChanged.emit(e)),this.grade$.pipe((0,k.R)(this.destroy$),(0,c.U)(this.buildRequestBodyForGradeChange.bind(this))).subscribe(e=>this.gradeChanged.emit(e))}ngOnChanges(){this.gradingScaleDisabledSubject$.next(this.disableGradingScale())}ngOnDestroy(){this.destroy$.next()}onPointsChange(e){this.pointsSubject$.next(e),this.gradingScaleDisabledSubject$.next(!(null===e||""===e))}onGradeChange(e){this.gradeSubject$.next(e)}isValid(e){return""===e||null===e||!isNaN(Number(e))&&!(Number(e)<0||Number(e)>this.maxPoints)}buildRequestBodyPointsChange(e){const s=null===e||""===e?null:Number(e);return{StudentIds:[this.student.Id],TestId:this.grade.test.Id,Points:s}}buildRequestBodyForGradeChange(e){return{StudentIds:[this.student.Id],TestId:this.grade.test.Id,GradeId:e}}disableGradingScale(){return!!this.grade.test.IsPublished||"no-result"!==this.grade.kind&&null!=this.grade.result.Points&&this.grade.test.IsPointGrading}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-grade"]],inputs:{grade:"grade",student:"student",tabIndex:"tabIndex",gradeOptions:"gradeOptions"},outputs:{gradeChanged:"gradeChanged"},features:[t.TTD],decls:5,vars:8,consts:[[1,"d-flex","flex-column","w-100"],[1,"d-flex","flex-row"],["class","point-input-container me-2 me-md-3",4,"ngIf"],["data-testid","grade-select",1,"grade-select",3,"options","allowEmpty","value","disabled","tabindex","valueChange"],[1,"point-input-container","me-2","me-md-3"],["type","number","step","0.01","min","0","data-testid","point-input",1,"form-control",3,"max","disabled","tabindex","ngModel","ngModelChange"],["points","ngModel"],["class","invalid-feedback","data-testid","validation-error-message",4,"ngIf"],["data-testid","validation-error-message",1,"invalid-feedback"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,te,4,7,"div",2),t.TgZ(3,"erz-select",3),t.NdJ("valueChange",function(l){return i.onGradeChange(l)}),t.ALo(4,"async"),t.qZA()()()),2&s&&(t.xp6(2),t.Q6J("ngIf",i.grade.test.IsPointGrading),t.xp6(1),t.Q6J("options",i.gradeOptions)("allowEmpty",!0)("value","grade"===i.grade.kind?i.grade.result.GradeId:null)("disabled",t.lcZ(4,6,i.gradingScaleDisabled$))("tabindex",i.tabIndex))},dependencies:[u.O5,p.Fj,p.wV,p.JJ,p.qQ,p.Fd,p.On,Y.H,u.Ov,g.X$],styles:[".point-input-container[_ngcontent-%COMP%]{width:4em}[_nghost-%COMP%] select{min-width:13ch}@media (min-width: 576px){.point-input-container[_ngcontent-%COMP%]{width:5em}}"]})}return n})();var ne=o(5791),se=o(9707);let ie=(()=>{class n{constructor(e){this.translate=e}transform(e){return`${e.Weight} (${e.WeightPercent}%)${this.getPoints(e)}`}getPoints(e){return e.IsPointGrading?`, ${e.MaxPointsAdjusted??e.MaxPoints} ${this.translate.instant("tests.summary.points")}`:""}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(g.sK,16))};static#e=this.\u0275pipe=t.Yjl({name:"testSummaryShort",type:n,pure:!0})}return n})();function ae(n,a){1&n&&(t.TgZ(0,"i",12),t._uU(1,"edit"),t.qZA())}const re=function(n){return[n,"edit"]};function oe(n,a){if(1&n&&(t.TgZ(0,"div",8)(1,"div",9)(2,"erz-preserve-line-height"),t._uU(3),t.ALo(4,"date"),t.qZA(),t.TgZ(5,"a",10),t.YNc(6,ae,2,0,"i",11),t.qZA()(),t.TgZ(7,"erz-preserve-line-height"),t._uU(8),t.ALo(9,"testSummaryShort"),t.qZA(),t.TgZ(10,"erz-preserve-line-height"),t._uU(11),t.qZA()()),2&n){const e=t.oxw();t.xp6(3),t.Oqu(t.xi3(4,5,e.test.Date,"dd.MM.yyyy")),t.xp6(2),t.Q6J("routerLink",t.VKq(10,re,e.test.Id)),t.xp6(1),t.Q6J("ngIf",e.test.IsOwner&&!1===e.test.IsPublished),t.xp6(2),t.hij(" ",t.lcZ(9,8,e.test)," "),t.xp6(3),t.Oqu(e.test.Owner)}}function de(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",13)(1,"a",14),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.unpublishTest())}),t.ALo(2,"translate"),t.TgZ(3,"i",15),t._uU(4,"lock"),t.qZA(),t.TgZ(5,"span"),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"erz-caret",16),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.toggleHeader())}),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.s9C("title",t.lcZ(2,3,"tests.edit")),t.xp6(5),t.Oqu(t.lcZ(7,5,"tests.published")),t.xp6(2),t.Q6J("expanded",e.expanded)}}function le(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",13)(1,"a",17),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.publishTest())}),t.ALo(2,"translate"),t.TgZ(3,"i",15),t._uU(4,"lock_open"),t.qZA(),t.TgZ(5,"span"),t._uU(6),t.ALo(7,"translate"),t.qZA()(),t.TgZ(8,"erz-caret",16),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.toggleHeader())}),t.qZA()()}if(2&n){const e=t.oxw();t.xp6(1),t.s9C("title",t.lcZ(2,3,"tests.publish")),t.xp6(5),t.Oqu(t.lcZ(7,5,"tests.not-published")),t.xp6(2),t.Q6J("expanded",e.expanded)}}let ce=(()=>{class n{constructor(){this.toggle=new t.vpe,this.publish=new t.vpe,this.unpublish=new t.vpe}toggleHeader(){this.toggle.emit(!this.expanded)}publishTest(){this.publish.emit(this.test)}unpublishTest(){this.unpublish.emit(this.test)}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-test-table-header"]],inputs:{test:"test",expanded:"expanded"},outputs:{toggle:"toggle",publish:"publish",unpublish:"unpublish"},decls:10,vars:6,consts:[[1,"d-flex","flex-column","h-100","justify-content-between"],["role","button",1,"test-designation","d-flex","flex-row","my-3","align-items-end","justify-content-between",3,"click"],[3,"ngClass"],[1,"align-self-start",3,"expanded"],[1,"d-flex","flex-column"],["class","d-flex flex-column mb-3",4,"ngIf"],["class","d-flex align-items-center justify-content-between test-status",4,"ngIf","ngIfElse"],["notPublished",""],[1,"d-flex","flex-column","mb-3"],[1,"d-flex","flex-row","justify-content-between"],[1,"btn","btn-link","p-0","edit",3,"routerLink"],["class","material-icons",4,"ngIf"],[1,"material-icons"],[1,"d-flex","align-items-center","justify-content-between","test-status"],[1,"d-flex","btn","btn-link","ps-0","edit",3,"title","click"],[1,"material-icons","me-1"],[1,"expand-mobile",3,"expanded","click"],[1,"d-flex","btn","btn-link","ps-0",3,"title","click"]],template:function(s,i){if(1&s&&(t.TgZ(0,"div",0)(1,"div",1),t.NdJ("click",function(){return i.toggleHeader()}),t.TgZ(2,"div",2),t._uU(3),t.qZA(),t._UZ(4,"erz-caret",3),t.qZA(),t.TgZ(5,"div",4),t.YNc(6,oe,12,12,"div",5),t.YNc(7,de,9,7,"div",6),t.YNc(8,le,9,7,"ng-template",null,7,t.W1O),t.qZA()()),2&s){const r=t.MAs(9);t.xp6(2),t.Q6J("ngClass",i.expanded?"expanded":"collapsed"),t.xp6(1),t.hij(" ",i.test.Designation," "),t.xp6(1),t.Q6J("expanded",i.expanded),t.xp6(2),t.Q6J("ngIf",i.expanded),t.xp6(1),t.Q6J("ngIf",i.test.IsPublished)("ngIfElse",r)}},dependencies:[u.mk,u.O5,_.rH,ne.Q,se.r,u.uU,g.X$,ie],styles:["[_nghost-%COMP%]{font-weight:300}.collapsed[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.test-designation[_ngcontent-%COMP%]{display:none!important}.test-status[_ngcontent-%COMP%]{order:-1;padding-bottom:1rem}.test-status[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}.test-status[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#000}.test-status[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:underline}.test-status[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{text-decoration-color:#ea161f}.edit[_ngcontent-%COMP%]{color:#00000080;text-decoration:none}@media (min-width: 750px){.test-designation[_ngcontent-%COMP%]{display:inherit!important}.test-status[_ngcontent-%COMP%]{order:initial}.expand-mobile[_ngcontent-%COMP%]{display:none!important}}"]})}return n})();var D=o(6651);function ue(n,a){if(1&n&&(t.TgZ(0,"span",3),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.calculatePointsAverage(e.test))}}let pe=(()=>{class n{constructor(e){this.locale=e}calculatePointsAverage(e){return this.safeAverage(e,2,A.dw)}calculateGradeAverage(e){return this.safeAverage(e,3,A.dP)}safeAverage(e,s,i){try{return(0,D.ey)(i(e),this.locale,s)}catch{return D.GR}}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(t.soG))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-average-grades"]],inputs:{test:"test"},decls:4,vars:2,consts:[[1,"d-flex","flex-row","w-100"],["class","mr-2 mr-md-3 average-points","data-testid","average-points",4,"ngIf"],["data-testid","average-grade"],["data-testid","average-points",1,"mr-2","mr-md-3","average-points"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0),t.YNc(1,ue,2,1,"span",1),t.TgZ(2,"span",2),t._uU(3),t.qZA()()),2&s&&(t.xp6(1),t.Q6J("ngIf",i.test.IsPointGrading),t.xp6(2),t.Oqu(i.calculateGradeAverage(i.test)))},dependencies:[u.O5],styles:[".average-points[_ngcontent-%COMP%]{min-width:4em}@media (min-width: 576px){.average-points[_ngcontent-%COMP%]{min-width:5em}}"]})}return n})(),ge=(()=>{class n{constructor(){this.disabled=!1,this.gradeIdSelected=new t.vpe}onGradeChange(e){void 0!==this.gradeId?.valueOf()&&this.gradeIdSelected.emit({id:this.gradeId?.valueOf(),selectedGradeId:e})}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-grade-select"]],inputs:{options:"options",valueId:"valueId",gradeId:"gradeId",disabled:"disabled"},outputs:{gradeIdSelected:"gradeIdSelected"},decls:1,vars:4,consts:[["data-testid","grade-select",3,"options","allowEmpty","value","disabled","valueChange"]],template:function(s,i){1&s&&(t.TgZ(0,"erz-select",0),t.NdJ("valueChange",function(l){return i.onGradeChange(l)}),t.qZA()),2&s&&t.Q6J("options",i.options)("allowEmpty",!0)("value",i.valueId)("disabled",i.disabled)},dependencies:[Y.H],styles:["[_nghost-%COMP%] select{min-width:13ch}"]})}return n})();function _e(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",25)(1,"erz-test-table-header",26),t.NdJ("toggle",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.state.toggleHeader(i))})("publish",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.publish(i))})("unpublish",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.unpublish(i))}),t.qZA()()}if(2&n){const e=a.$implicit,s=t.oxw().erzLet,i=t.oxw();t.Q6J("ngClass",e.Id===(null==i.selectedTest?null:i.selectedTest.Id)?"selected":""),t.xp6(1),t.Q6J("test",e)("expanded",s.expanded)}}function me(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",27)(1,"erz-test-table-header",26),t.NdJ("toggle",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.state.toggleHeader(i))})("publish",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.publish(i))})("unpublish",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.unpublish(i))}),t.qZA()()}if(2&n){const e=a.$implicit,s=t.oxw().erzLet,i=t.oxw();t.Q6J("ngClass",e.Id===(null==i.selectedTest?null:i.selectedTest.Id)?"selected":""),t.xp6(1),t.Q6J("test",e)("expanded",s.expanded)}}function he(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",31)(1,"span",30),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().$implicit,r=t.oxw(2);return t.KtG(r.state.sortBy(i))}),t._uU(2),t.ALo(3,"translate"),t.qZA()()}2&n&&(t.xp6(2),t.hij("",t.lcZ(3,1,"tests.points")," "))}function fe(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",28)(1,"div",11),t.YNc(2,he,4,3,"div",29),t.TgZ(3,"div",12)(4,"span",30),t.NdJ("click",function(){const r=t.CHM(e).$implicit,l=t.oxw(2);return t.KtG(l.state.sortBy(r))}),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.TgZ(7,"div",13),t._uU(8),t.ALo(9,"async"),t.qZA()()()}if(2&n){const e=a.$implicit,s=t.oxw(2);t.Q6J("ngClass",e.Id===(null==s.selectedTest?null:s.selectedTest.Id)?"selected":""),t.xp6(2),t.Q6J("ngIf",e.IsPointGrading),t.xp6(3),t.Oqu(t.lcZ(6,4,"tests.grade")),t.xp6(3),t.hij(" ",t.lcZ(9,6,s.state.getSortingChar$(e))," ")}}function ve(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"erz-grade-select",39),t.NdJ("gradeIdSelected",function(i){t.CHM(e);const r=t.oxw(3);return t.KtG(r.state.overwriteFinalGrade(i))}),t.ALo(1,"async"),t.ALo(2,"async"),t.qZA()}if(2&n){const e=t.oxw().$implicit,s=t.oxw(2);t.Q6J("options",t.lcZ(1,4,s.state.gradingOptionsForCourse$()))("valueId",e.finalGrade.finalGradeId)("gradeId",e.finalGrade.id)("disabled",!1===t.lcZ(2,6,s.isEditFinalGradesAllowed(e)))}}function xe(n,a){if(1&n&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.finalGrade.freeHandGrade," ")}}function Te(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",40)(1,"erz-grade",41),t.NdJ("gradeChanged",function(i){t.CHM(e);const r=t.oxw(3);return t.KtG(r.saveGrade(i))}),t.ALo(2,"async"),t.qZA()()}if(2&n){const e=a.$implicit,s=a.index,i=t.oxw(),r=i.$implicit,l=i.index,d=t.oxw(2);t.Q6J("ngClass",void 0!==d.selectedTest&&e.test.Id===(null==d.selectedTest?null:d.selectedTest.Id)?"selected":""),t.xp6(1),t.Q6J("grade",e)("gradeOptions",t.lcZ(2,5,d.state.gradingOptionsForTest$(e.test)))("student",r.student)("tabIndex",1e3*(1+s)+l)}}const Ce=function(n){return["student",n,"grades"]},H=function(n){return{selected:n}};function be(n,a){if(1&n&&(t.TgZ(0,"tr")(1,"td",32)(2,"a",33)(3,"span"),t._uU(4),t.qZA(),t.TgZ(5,"span",20),t._uU(6),t.ALo(7,"translate"),t.ALo(8,"decimalOrDash"),t.qZA()()(),t.TgZ(9,"td",34),t.YNc(10,ve,3,8,"erz-grade-select",35),t.YNc(11,xe,2,1,"div",36),t.qZA(),t.TgZ(12,"td",37),t._uU(13),t.ALo(14,"decimalOrDash"),t.qZA(),t.YNc(15,Te,3,7,"td",38),t.qZA()),2&n){const e=a.$implicit,s=t.oxw(2);t.xp6(2),t.Q6J("routerLink",t.VKq(18,Ce,e.student.Id)),t.xp6(2),t.Oqu(e.student.FullName),t.xp6(2),t.AsE(" ",t.lcZ(7,10,"tests.mean"),": ",t.xi3(8,12,null==e.finalGrade?null:e.finalGrade.average,"1-3")," "),t.xp6(3),t.Q6J("ngClass",t.VKq(20,H,void 0===s.selectedTest)),t.xp6(1),t.Q6J("ngIf",e.finalGrade&&!e.finalGrade.freeHandGrade),t.xp6(1),t.Q6J("ngIf",e.finalGrade&&e.finalGrade.freeHandGrade),t.xp6(2),t.hij(" ",t.xi3(14,15,null==e.finalGrade?null:e.finalGrade.average,"1-3")," "),t.xp6(2),t.Q6J("ngForOf",e.grades)("ngForTrackBy",s.trackGradeOf(e.student))}}function Ze(n,a){if(1&n&&(t.TgZ(0,"td",40),t._UZ(1,"erz-average-grades",42),t.qZA()),2&n){const e=a.$implicit,s=t.oxw(2);t.Q6J("ngClass",e.Id===(null==s.selectedTest?null:s.selectedTest.Id)||e.Id===(null==s.selectedTest?null:s.selectedTest.Id)?"selected":""),t.xp6(1),t.Q6J("test",e)}}function Ae(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",43),t.NdJ("click",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.setAverageAsFinalGrade())}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"tests.set-final-grade")," "))}const dt=function(n,a){return{"btn-primary":n,"btn-outline-secondary":a}};function ye(n,a){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr",4)(5,"th",5)(6,"button",6),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.changeFilter("all-tests"))}),t._uU(7),t.ALo(8,"translate"),t.qZA(),t.TgZ(9,"button",7),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.changeFilter("my-tests"))}),t._uU(10),t.ALo(11,"translate"),t.qZA()(),t.YNc(12,_e,2,3,"th",8),t.YNc(13,me,2,3,"th",9),t.qZA(),t.TgZ(14,"tr")(15,"th",10),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.state.sortBy("FullName"))}),t.TgZ(16,"div",11)(17,"div",12),t._uU(18),t.ALo(19,"translate"),t.qZA(),t.TgZ(20,"div",13),t._uU(21),t.ALo(22,"async"),t.qZA()()(),t.TgZ(23,"th",14),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.state.sortBy("FinalGrade"))}),t.TgZ(24,"div",11)(25,"div",12),t._uU(26),t.ALo(27,"translate"),t.qZA(),t.TgZ(28,"div",13),t._uU(29),t.ALo(30,"async"),t.qZA()()(),t.TgZ(31,"th",15),t.NdJ("click",function(){t.CHM(e);const i=t.oxw();return t.KtG(i.state.sortBy("TestsMean"))}),t.TgZ(32,"div",11)(33,"div",12),t._uU(34),t.ALo(35,"translate"),t.qZA(),t.TgZ(36,"div",13),t._uU(37),t.ALo(38,"async"),t.qZA()()(),t.YNc(39,fe,10,8,"th",16),t.qZA()(),t.TgZ(40,"tbody"),t.YNc(41,be,16,22,"tr",17),t.TgZ(42,"tr")(43,"td",18)(44,"div",19)(45,"div"),t._uU(46),t.ALo(47,"translate"),t.qZA(),t.TgZ(48,"div",20),t._uU(49),t.ALo(50,"translate"),t.ALo(51,"decimalOrDash"),t.ALo(52,"async"),t.qZA()()(),t.TgZ(53,"td",21),t._uU(54),t.ALo(55,"decimalOrDash"),t.ALo(56,"async"),t.qZA(),t.TgZ(57,"td",22),t._uU(58),t.ALo(59,"decimalOrDash"),t.ALo(60,"async"),t.qZA(),t.YNc(61,Ze,2,2,"td",23),t.qZA()()(),t.YNc(62,Ae,3,3,"button",24),t.ALo(63,"async"),t.qZA(),t.BQk()}if(2&n){const e=a.erzLet,s=t.oxw();t.xp6(6),t.Q6J("ngClass",t.WLB(61,dt,"all-tests"===e.filter,"all-tests"!==e.filter)),t.xp6(1),t.hij(" ",t.lcZ(8,24,"tests.all-tests")," "),t.xp6(2),t.Q6J("ngClass",t.WLB(64,dt,"my-tests"===e.filter,"my-tests"!==e.filter)),t.xp6(1),t.hij(" ",t.lcZ(11,26,"tests.owned-tests")," "),t.xp6(2),t.Q6J("ngForOf",e.tests),t.xp6(1),t.Q6J("ngForOf",e.tests),t.xp6(5),t.hij(" ",t.lcZ(19,28,"tests.student.name")," "),t.xp6(3),t.hij(" ",t.lcZ(22,30,s.state.getSortingChar$("FullName"))," "),t.xp6(2),t.Q6J("ngClass",t.VKq(67,H,void 0===s.selectedTest)),t.xp6(3),t.hij(" ",t.lcZ(27,32,"tests.grade")," "),t.xp6(3),t.hij(" ",t.lcZ(30,34,s.state.getSortingChar$("FinalGrade"))," "),t.xp6(5),t.hij(" ",t.lcZ(35,36,"tests.mean")," "),t.xp6(3),t.hij(" ",t.lcZ(38,38,s.state.getSortingChar$("TestsMean"))," "),t.xp6(2),t.Q6J("ngForOf",e.tests),t.xp6(2),t.Q6J("ngForOf",e.studentGrades)("ngForTrackBy",s.trackStudentGrade),t.xp6(5),t.Oqu(t.lcZ(47,40,"tests.average")),t.xp6(3),t.AsE(" ",t.lcZ(50,42,"tests.mean"),": ",t.xi3(51,44,t.lcZ(52,47,s.state.meanOfStudentGradesForCourse$),"1-3")," "),t.xp6(4),t.Q6J("ngClass",t.VKq(69,H,void 0===s.selectedTest)),t.xp6(1),t.hij(" ",t.xi3(55,49,t.lcZ(56,52,s.state.meanOfFinalGradesForCourse$),"1-3")," "),t.xp6(4),t.hij(" ",t.xi3(59,54,t.lcZ(60,57,s.state.meanOfStudentGradesForCourse$),"1-3")," "),t.xp6(3),t.Q6J("ngForOf",e.tests),t.xp6(1),t.Q6J("ngIf",t.lcZ(63,59,s.state.canSetFinalGrade$))}}const Ie=function(n,a,e,s){return{tests:n,studentGrades:a,filter:e,expanded:s}};let Oe=(()=>{class n{constructor(e,s){this.state=e,this.modalService=s}ngOnInit(){this.state.setSorting({key:"FullName",ascending:!0})}changeFilter(e){this.state.filter$.next(e)}saveGrade(e){this.state.saveGrade(e)}setAverageAsFinalGrade(){this.state.course$.pipe((0,G.q)(1)).subscribe(e=>this.state.setAveragesAsFinalGrades({CourseIds:[e.Id]}))}isEditFinalGradesAllowed(e){return this.state.course$.pipe((0,c.U)(s=>!(!K(s)?.value||!e.finalGrade?.canGrade)))}publish(e){const s=this.openModal(e);this.onCloseModal(s,()=>this.state.publish(e))}unpublish(e){const s=this.openModal(e);this.onCloseModal(s,()=>this.state.unpublish(e))}trackStudentGrade(e){return e}trackGradeOf(e){return function(s,i){return`${e.Id}_${i.test.Id}`}}calculatePointsAverage(e){return this.safeAverage(e,A.dw)}calculateGradeAverage(e){return this.safeAverage(e,A.dP)}safeAverage(e,s){try{return s(e).toString()}catch{return"\u2013"}}openModal(e){const s=this.modalService.open(Xt);return s.componentInstance.test=e,s}onCloseModal(e,s){e.result.then(i=>{i&&s()},()=>{})}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(P),t.Y36(y.FF))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-test-edit-grades"]],inputs:{selectedTest:"selectedTest"},features:[t._Bn([j])],decls:5,vars:14,consts:[[4,"erzLet"],[1,"table-responsive-wrapper"],[1,"table","table-hover","h-100"],[1,"h-100"],[1,"h-100","header-collapsible"],["colspan","3",1,"desktop","pt-3","sticky"],["type","button",1,"btn","desktop",3,"ngClass","click"],["type","button",1,"btn","ms-2","desktop",3,"ngClass","click"],["container","body","class","grade h-100 test-info-desktop",3,"ngClass",4,"ngFor","ngForOf"],["container","body","class","grade h-100 header-mobile test-info-mobile","colspan","3",3,"ngClass",4,"ngFor","ngForOf"],[1,"primary-column-width","sticky",3,"click"],[1,"d-flex"],[1,"column-title"],[1,"sort-direction","ms-1"],[1,"secondary-column-width","sticky","sticky-col-2","desktop",3,"ngClass","click"],[1,"secondary-column-width","border-end","sticky","sticky-col-3","desktop",3,"click"],["container","body","class","grade h-100",3,"ngClass",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"sticky"],[1,"d-flex","flex-column"],[1,"mobile","mean"],[1,"desktop","sticky","sticky","sticky-col-2",3,"ngClass"],[1,"desktop","border-end","sticky","sticky-col-3"],["class","grade",3,"ngClass",4,"ngFor","ngForOf"],["data-testId","apply-average-button","class","btn btn-primary m-3","type","button",3,"click",4,"ngIf"],["container","body",1,"grade","h-100","test-info-desktop",3,"ngClass"],[3,"test","expanded","toggle","publish","unpublish"],["container","body","colspan","3",1,"grade","h-100","header-mobile","test-info-mobile",3,"ngClass"],["container","body",1,"grade","h-100",3,"ngClass"],["class","column-title me-3 point-input-container",4,"ngIf"],[3,"click"],[1,"column-title","me-3","point-input-container"],[1,"primary-column-width","sticky","name"],[3,"routerLink"],[1,"grade","sticky","sticky-col-2",3,"ngClass"],[3,"options","valueId","gradeId","disabled","gradeIdSelected",4,"ngIf"],[4,"ngIf"],[1,"grade","border-end","sticky","sticky-col-3"],["class","grade",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],[3,"options","valueId","gradeId","disabled","gradeIdSelected"],[1,"grade",3,"ngClass"],[3,"grade","gradeOptions","student","tabIndex","gradeChanged"],[3,"test"],["data-testId","apply-average-button","type","button",1,"btn","btn-primary","m-3",3,"click"]],template:function(s,i){1&s&&(t.YNc(0,ye,64,71,"ng-container",0),t.ALo(1,"async"),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async")),2&s&&t.Q6J("erzLet",t.l5B(9,Ie,t.lcZ(1,1,i.state.filteredTests$),t.lcZ(2,3,i.state.studentGrades$),t.lcZ(3,5,i.state.filter$),t.lcZ(4,7,i.state.expandedHeader$)))},dependencies:[u.mk,u.sg,u.O5,_.rH,M.e,ee,ce,pe,ge,u.Ov,g.X$,D.fY],styles:[".filter-hover[_ngcontent-%COMP%]:hover{background-color:#dedede}table[_ngcontent-%COMP%] th.grade.selected[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td.grade.selected[_ngcontent-%COMP%]{display:table-cell!important}table[_ngcontent-%COMP%] th.grade[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td.grade[_ngcontent-%COMP%], .desktop[_ngcontent-%COMP%]{display:none!important}.desktop.selected[_ngcontent-%COMP%]{display:table-cell!important}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:none;vertical-align:top}.header-collapsible[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:1px solid #dee2e6;padding:0 1rem}.mobile[_ngcontent-%COMP%]{display:block!important}.mean[_ngcontent-%COMP%]{color:#4e4e4ef2;font-size:.875rem;line-height:1}td.name[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}td.name[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{text-decoration:underline}td.name[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child:hover{text-decoration-color:#ea161f}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th.test-info-desktop[_ngcontent-%COMP%]{display:none!important}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:1rem}table[_ngcontent-%COMP%] td.name[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td.average[_ngcontent-%COMP%]{max-width:18ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:0}.point-input-container[_ngcontent-%COMP%]{width:5em}@media (min-width: 576px){.table-responsive-wrapper[_ngcontent-%COMP%]{display:block;overflow-x:auto}table[_ngcontent-%COMP%]{border-collapse:separate;border-spacing:0}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th.test-info-mobile[_ngcontent-%COMP%]{display:none!important}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th.test-info-desktop[_ngcontent-%COMP%], table[_ngcontent-%COMP%] th.grade[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td.grade[_ngcontent-%COMP%], .desktop[_ngcontent-%COMP%]{display:table-cell!important}table[_ngcontent-%COMP%] td.name[_ngcontent-%COMP%]{max-width:auto;overflow:visible}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:none;padding-top:.25rem;padding-bottom:.25rem;border-top:initial;min-width:100px;max-width:100px}thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th.grade[_ngcontent-%COMP%]{min-width:300px;max-width:300px}.mobile[_ngcontent-%COMP%]{display:none!important}.primary-column-width[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:300px;max-width:300px}.secondary-column-width[_ngcontent-%COMP%]{min-width:100px;max-width:100px}table[_ngcontent-%COMP%] .sticky[_ngcontent-%COMP%]{position:sticky;left:0;background-color:#fff}table[_ngcontent-%COMP%] .sticky.sticky-col-2[_ngcontent-%COMP%]{left:300px}table[_ngcontent-%COMP%] .sticky.sticky-col-3[_ngcontent-%COMP%]{left:452px}}"]})}return n})();function Ge(n,a){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"erz-select",7),t.NdJ("valueChange",function(i){t.CHM(e);const r=t.oxw(3);return t.KtG(r.testSelected(i))}),t.qZA(),t._UZ(2,"erz-test-edit-grades",8),t.BQk()}if(2&n){const e=t.oxw(2).erzLet;t.xp6(1),t.Q6J("options",e.testOptions)("value",e.selectedTestId)("allowEmpty",!1),t.xp6(1),t.Q6J("selectedTest",e.selectedTest)}}function Pe(n,a){if(1&n&&(t.TgZ(0,"a",9),t.ALo(1,"async"),t.TgZ(2,"i",10),t._uU(3,"arrow_right_alt"),t.qZA(),t.TgZ(4,"span",11),t._uU(5),t.ALo(6,"translate"),t.qZA()()),2&n){const e=t.oxw(3);t.s9C("href",t.lcZ(1,2,e.buildLinkToRatingOverview()),t.LSH),t.xp6(5),t.Oqu(t.lcZ(6,4,"tests.link-to-rating-overview"))}}function $e(n,a){if(1&n&&(t.ynx(0),t._UZ(1,"erz-tests-header",5),t.YNc(2,Ge,3,4,"ng-container",4),t.YNc(3,Pe,7,6,"a",6),t.ALo(4,"async"),t.BQk()),2&n){const e=t.oxw().erzLet,s=t.oxw(),i=t.MAs(8);t.xp6(1),t.Q6J("course",e.course),t.xp6(1),t.Q6J("ngIf",e.tests.length>0)("ngIfElse",i),t.xp6(1),t.Q6J("ngIf",t.lcZ(4,4,s.state.canSetFinalGrade$))}}function Le(n,a){if(1&n&&(t.ynx(0),t.YNc(1,$e,5,6,"ng-container",4),t.ALo(2,"async"),t.BQk()),2&n){const e=t.oxw(),s=t.MAs(10);t.xp6(1),t.Q6J("ngIf",!1===t.lcZ(2,2,e.state.loading$))("ngIfElse",s)}}function Me(n,a){1&n&&(t.TgZ(0,"p",12),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"tests.no-tests")))}function Se(n,a){1&n&&t._UZ(0,"erz-spinner")}const Ee=function(n,a,e,s,i){return{course:n,tests:a,testOptions:e,selectedTestId:s,selectedTest:i}};let we=(()=>{class n{constructor(e,s,i){this.settings=e,this.state=s,this.translate=i,this.selectTest$=new $.x,this.testOptions$=this.state.tests$.pipe((0,c.U)(r=>[{Key:-1,Value:this.translate.instant("tests.grade")},...r.map(l=>({Key:l.Id,Value:l.Designation}))]),(0,L.x)()),this.selectedTestId$=(0,tt.T)(this.selectTest$,this.state.tests$.pipe((0,G.q)(1),(0,c.U)(r=>r[0]?.Id))).pipe((0,L.x)()),this.selectedTest$=this.selectedTestId$.pipe((0,T.w)(r=>this.state.tests$.pipe((0,c.U)(l=>l.find(d=>d.Id===r)))),(0,L.x)())}testSelected(e){this.selectTest$.next(e)}buildLinkToRatingOverview(){return this.state.course$.pipe((0,G.q)(1),(0,c.U)(e=>this.settings.eventlist.evaluation.replace(":id",String(e.Id))))}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(b.L6),t.Y36(P),t.Y36(g.sK))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests-list"]],decls:11,vars:17,consts:[[1,"erz-container"],[4,"erzLet"],["noTests",""],["loading",""],[4,"ngIf","ngIfElse"],[3,"course"],["class","d-flex justify-content-end pe-3 border-top pt-3","data-testId","link-to-rating-overview",3,"href",4,"ngIf"],[1,"tests-dropdown",3,"options","value","allowEmpty","valueChange"],[3,"selectedTest"],["data-testId","link-to-rating-overview",1,"d-flex","justify-content-end","pe-3","border-top","pt-3",3,"href"],[1,"material-icons","fw-bold"],[1,"ps-1"],[1,"mt-3","px-3"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0),t.YNc(1,Le,3,4,"ng-container",1),t.ALo(2,"async"),t.ALo(3,"async"),t.ALo(4,"async"),t.ALo(5,"async"),t.ALo(6,"async"),t.YNc(7,Me,3,3,"ng-template",null,2,t.W1O),t.YNc(9,Se,1,0,"ng-template",null,3,t.W1O),t.qZA()),2&s&&(t.xp6(1),t.Q6J("erzLet",t.qbA(11,Ee,t.lcZ(2,1,i.state.course$),t.lcZ(3,3,i.state.tests$),t.lcZ(4,5,i.testOptions$),t.lcZ(5,7,i.selectedTestId$),t.lcZ(6,9,i.selectedTest$))))},dependencies:[u.O5,M.e,Q.O,Y.H,Kt,Oe,u.Ov,g.X$],styles:[".tests-dropdown[_ngcontent-%COMP%]{display:block;padding:1rem 0}@media (min-width: 576px){.tests-dropdown[_ngcontent-%COMP%]{display:none}}a.rating-overview[_ngcontent-%COMP%]{text-decoration:none}a.rating-overview[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:underline}a.rating-overview[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{text-decoration-color:#ea161f}"]})}return n})();var lt=o(4716);let Fe=(()=>{class n{constructor(e){this.activeModal=e}get canDeleteTest(){return 0===(this.test?.Results?.filter(s=>null!==s.GradeId||null!==s.GradeValue||null!==s.Points)||[]).length}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(y.Kz))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests-delete"]],inputs:{test:"test"},decls:13,vars:10,consts:[[1,"modal-body"],["data-testid","confirmation-message"],[1,"modal-footer"],["data-testid","cancel-button","type","button",1,"btn","btn-outline-secondary",3,"hidden","click"],[1,"px-2"],["data-testid","confirm-button","type","button",1,"btn","btn-primary",3,"click"],[1,"px-3"]],template:function(s,i){1&s&&(t.TgZ(0,"div",0)(1,"p",1),t._uU(2),t.ALo(3,"translate"),t.qZA()(),t.TgZ(4,"div",2)(5,"button",3),t.NdJ("click",function(){return i.activeModal.dismiss()}),t.TgZ(6,"span",4),t._uU(7),t.ALo(8,"translate"),t.qZA()(),t.TgZ(9,"button",5),t.NdJ("click",function(){return i.activeModal.close(i.canDeleteTest?i.test:null)}),t.TgZ(10,"span",6),t._uU(11),t.ALo(12,"translate"),t.qZA()()()),2&s&&(t.xp6(2),t.hij(" ",t.lcZ(3,4,i.canDeleteTest?"tests.form.confirm":"tests.form.delete-not-allowed")," "),t.xp6(3),t.Q6J("hidden",!i.canDeleteTest),t.xp6(2),t.hij(" ",t.lcZ(8,6,"tests.dialog.no")," "),t.xp6(4),t.hij(" ",t.lcZ(12,8,i.canDeleteTest?"tests.dialog.yes":"tests.dialog.ok")," "))},dependencies:[g.X$]})}return n})();var ct=o(6869),Ue=o(902),ke=o(3296),S=o(1257);function Ne(n){return a=>{const e=Number(a.value);return e<=n?{greaterThan:{value:e,greaterThanValue:n}}:null}}function qe(n,a){if(1&n&&(t.TgZ(0,"div",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,"global.validation-errors."+e.error,e.params)," ")}}function Je(n,a){if(1&n&&(t.TgZ(0,"div",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,"global.validation-errors."+e.error,e.params)," ")}}function ze(n,a){if(1&n&&(t.TgZ(0,"div",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,"global.validation-errors."+e.error,e.params)," ")}}function je(n,a){if(1&n&&(t.TgZ(0,"div",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,"global.validation-errors."+e.error,e.params)," ")}}function Re(n,a){if(1&n&&(t.TgZ(0,"div",31),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,"global.validation-errors."+e.error,e.params)," ")}}function Qe(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"div",32)(2,"div",33)(3,"div",17)(4,"label",34),t._uU(5),t.ALo(6,"translate"),t.qZA(),t.TgZ(7,"div",35),t._UZ(8,"input",36),t.ALo(9,"async"),t.YNc(10,je,3,4,"div",7),t.ALo(11,"async"),t.qZA()()(),t.TgZ(12,"div",33)(13,"div",17)(14,"label",37),t._uU(15),t.ALo(16,"translate"),t.qZA(),t.TgZ(17,"div",35),t._UZ(18,"input",38),t.ALo(19,"async"),t.YNc(20,Re,3,4,"div",7),t.ALo(21,"async"),t.qZA()()()(),t.TgZ(22,"div",39),t.pZz(),t.TgZ(23,"math")(24,"mi"),t._uU(25),t.ALo(26,"translate"),t.qZA(),t.TgZ(27,"mo"),t._uU(28,"="),t.qZA(),t.TgZ(29,"mfrac")(30,"mrow")(31,"mi"),t._uU(32),t.ALo(33,"translate"),t.qZA(),t.TgZ(34,"mo"),t._uU(35,"\xd7"),t.qZA(),t.TgZ(36,"mn"),t._uU(37,"5"),t.qZA()(),t.TgZ(38,"mi"),t._uU(39),t.ALo(40,"translate"),t.qZA()(),t.TgZ(41,"mo"),t._uU(42,"+"),t.qZA(),t.TgZ(43,"mn"),t._uU(44,"1"),t.qZA()()(),t.BQk()),2&n){const e=t.oxw(3);let s,i;t.xp6(5),t.Oqu(t.lcZ(6,11,"tests.form.max-points")),t.xp6(3),t.ekj("is-invalid",(null==(s=t.lcZ(9,13,e.maxPointsErrors$))?null:s.length)>0),t.xp6(2),t.Q6J("ngForOf",t.lcZ(11,15,e.maxPointsErrors$)),t.xp6(5),t.Oqu(t.lcZ(16,17,"tests.form.max-points-adjusted")),t.xp6(3),t.ekj("is-invalid",(null==(i=t.lcZ(19,19,e.maxPointsAdjustedErrors$))?null:i.length)>0),t.xp6(2),t.Q6J("ngForOf",t.lcZ(21,21,e.maxPointsAdjustedErrors$)),t.xp6(5),t.hij(" ",t.lcZ(26,23,"tests.form.math.grade")," "),t.xp6(7),t.hij(" ",t.lcZ(33,25,"tests.form.math.points")," "),t.xp6(7),t.Oqu(t.lcZ(40,27,"tests.form.math.max-points"))}}function Ye(n,a){1&n&&(t.TgZ(0,"div",40)(1,"span",41),t._uU(2,"Loading..."),t.qZA()())}const De=function(n){return["/events",n,"tests"]};function He(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"form",2),t.NdJ("ngSubmit",function(){t.CHM(e);const i=t.oxw(2);return t.KtG(i.onSubmit())}),t.TgZ(1,"div",3)(2,"div",4)(3,"label",5),t._uU(4),t.ALo(5,"translate"),t.qZA(),t._UZ(6,"input",6),t.ALo(7,"async"),t.ALo(8,"translate"),t.YNc(9,qe,3,4,"div",7),t.ALo(10,"async"),t.qZA(),t.TgZ(11,"div",8)(12,"label",9),t._uU(13),t.ALo(14,"translate"),t.qZA(),t.TgZ(15,"div",10)(16,"span",11)(17,"i",12),t._uU(18,"calendar_today"),t.qZA()(),t.TgZ(19,"input",13,14),t.NdJ("click",function(){t.CHM(e);const i=t.MAs(20);return t.KtG(i.toggle())}),t.ALo(21,"async"),t.ALo(22,"translate"),t.qZA(),t.YNc(23,Je,3,4,"div",7),t.ALo(24,"async"),t.qZA()()(),t.TgZ(25,"div",15)(26,"label",16),t._uU(27),t.ALo(28,"translate"),t.qZA(),t.TgZ(29,"div",4)(30,"div",17)(31,"label",18),t._uU(32),t.ALo(33,"translate"),t.qZA(),t.TgZ(34,"div",19),t._UZ(35,"input",20),t.ALo(36,"async"),t.YNc(37,ze,3,4,"div",7),t.ALo(38,"async"),t.qZA()()()(),t.TgZ(39,"div")(40,"label",16),t._uU(41),t.ALo(42,"translate"),t.qZA(),t.TgZ(43,"div",21),t._UZ(44,"input",22),t.TgZ(45,"label",23),t._uU(46),t.ALo(47,"translate"),t.qZA()(),t.TgZ(48,"div",21),t._UZ(49,"input",24),t.TgZ(50,"label",25),t._uU(51),t.ALo(52,"translate"),t.qZA()(),t.YNc(53,Qe,45,29,"ng-container",26),t.qZA(),t.TgZ(54,"div",27)(55,"button",28),t.ALo(56,"async"),t._uU(57),t.ALo(58,"translate"),t.qZA(),t.TgZ(59,"button",29),t._uU(60),t.ALo(61,"translate"),t.YNc(62,Ye,3,0,"div",30),t.qZA()()()}if(2&n){const e=t.oxw().erzLet,s=t.oxw();let i,r,l;t.Q6J("formGroup",e.formGroup),t.xp6(4),t.Oqu(t.lcZ(5,29,"tests.form.designation")),t.xp6(2),t.ekj("is-invalid",(null==(i=t.lcZ(7,31,s.designationErrors$))?null:i.length)>0),t.Q6J("placeholder",t.lcZ(8,33,"tests.form.designation-placeholder")),t.xp6(3),t.Q6J("ngForOf",t.lcZ(10,35,s.designationErrors$)),t.xp6(4),t.Oqu(t.lcZ(14,37,"tests.form.date")),t.xp6(3),t.Q6J("id",s.componentId),t.xp6(3),t.ekj("is-invalid",(null==(r=t.lcZ(21,39,s.dateErrors$))?null:r.length)>0),t.Q6J("placeholder",t.lcZ(22,41,"shared.date-select.default-placeholder")),t.xp6(4),t.Q6J("ngForOf",t.lcZ(24,43,s.dateErrors$)),t.xp6(4),t.Oqu(t.lcZ(28,45,"tests.form.weight")),t.xp6(5),t.Oqu(t.lcZ(33,47,"tests.form.factor")),t.xp6(3),t.ekj("is-invalid",(null==(l=t.lcZ(36,49,s.weightErrors$))?null:l.length)>0),t.xp6(2),t.Q6J("ngForOf",t.lcZ(38,51,s.weightErrors$)),t.xp6(4),t.Oqu(t.lcZ(42,53,"tests.form.grading-type")),t.xp6(3),t.Q6J("value",!1),t.xp6(2),t.Oqu(t.lcZ(47,55,"tests.form.grades")),t.xp6(3),t.Q6J("value",!0),t.xp6(2),t.Oqu(t.lcZ(52,57,"tests.form.points")),t.xp6(2),t.Q6J("ngIf",e.formGroup.get("isPointGrading").value),t.xp6(2),t.Q6J("disabled",s.saving)("routerLink",t.VKq(65,De,t.lcZ(56,59,s.courseId$))),t.xp6(2),t.hij(" ",t.lcZ(58,61,"tests.form.cancel")," "),t.xp6(2),t.Q6J("disabled",s.saving),t.xp6(1),t.hij(" ",t.lcZ(61,63,"tests.form.save")," "),t.xp6(2),t.Q6J("ngIf",s.saving)}}function Ke(n,a){if(1&n&&(t.ynx(0),t.YNc(1,He,63,67,"form",1),t.BQk()),2&n){const e=a.erzLet;t.xp6(1),t.Q6J("ngIf",e.formGroup)}}const Be=function(n){return{formGroup:n}};let ut=(()=>{class n{constructor(e,s,i){this.fb=e,this.translate=s,this.testStateService=i,this.test=null,this.saving=!1,this.save=new t.vpe,this.componentId=(0,Ue.Z)("erz-tests-edit-form"),this.formGroup=this.createFormGroup(),this.submitted$=new x.X(!1),this.destroy$=new $.x,this.designationErrors$=(0,S.Z6)((0,I.of)(this.formGroup),this.submitted$,"designation"),this.dateErrors$=(0,S.Z6)((0,I.of)(this.formGroup),this.submitted$,"date"),this.maxPointsErrors$=(0,S.Z6)((0,I.of)(this.formGroup),this.submitted$,"maxPoints"),this.maxPointsAdjustedErrors$=(0,S.Z6)((0,I.of)(this.formGroup),this.submitted$,"maxPointsAdjusted"),this.weightErrors$=(0,S.Z6)((0,I.of)(this.formGroup),this.submitted$,"weight"),this.courseId$=this.testStateService.courseId$}ngOnInit(){this.test&&this.setInitialValues(this.test),(0,S.ZX)((0,I.of)(this.formGroup),"isPointGrading").pipe((0,k.R)(this.destroy$)).subscribe(this.togglePointFieldsDisability.bind(this))}ngOnDestroy(){this.destroy$.next()}onSubmit(){this.submitted$.next(!0),this.formGroup.valid&&this.save.emit(this.formGroup.value)}createFormGroup(){return this.fb.group({designation:["",p.kI.required],date:[null,p.kI.required],weight:[1,p.kI.compose([p.kI.required,Ne(0)])],isPointGrading:[!1],maxPoints:[{value:null,disabled:!0},p.kI.required],maxPointsAdjusted:[{value:null,disabled:!0},null]})}setInitialValues(e){this.formGroup.patchValue({designation:e.Designation,date:e.Date,weight:e.Weight,isPointGrading:e.IsPointGrading,maxPoints:e.MaxPoints,maxPointsAdjusted:e.MaxPointsAdjusted}),e.Results&&e.Results.length>0&&(this.formGroup.get("isPointGrading")?.disable(),this.formGroup.get("maxPoints")?.disable(),this.formGroup.get("maxPointsAdjusted")?.disable()),this.togglePointFieldsDisability()}togglePointFieldsDisability(){const e=this.formGroup.get("maxPoints"),s=this.formGroup.get("maxPointsAdjusted");this.formGroup.get("isPointGrading")?.value?(e?.enable(),s?.enable()):(e?.reset({value:this.test?.MaxPoints,disabled:!0}),s?.reset({value:this.test?.MaxPointsAdjusted,disabled:!0}))}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(p.QS),t.Y36(g.sK),t.Y36(P))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests-edit-form"]],inputs:{test:"test",saving:"saving"},outputs:{save:"save"},features:[t._Bn([{provide:y.DO,useClass:y.s5},{provide:y.NG,useClass:ke.n}])],decls:1,vars:3,consts:[[4,"erzLet"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"formGroup","ngSubmit"],[1,"row","g-3","mb-3"],[1,"col-md-6"],["for","designation",1,"form-label"],["id","designation","name","designation","type","text","formControlName","designation","required","",1,"form-control",3,"placeholder"],["class","invalid-feedback",4,"ngFor","ngForOf"],[1,"col-md-6","mb-3"],["for","date",1,"form-label"],[1,"input-group"],[1,"input-group-text",3,"id"],[1,"material-icons"],["id","date","name","date","type","text","ngbDatepicker","","formControlName","date","required","",1,"form-control",3,"placeholder","click"],["dp","ngbDatepicker"],[1,"row","mb-3"],[1,"form-label"],[1,"row"],["for","factor",1,"form-label","col-3","col-sm-2"],[1,"col-9","col-sm-10"],["id","factor","name","factor","type","number","formControlName","weight","step","0.05","min","0","required","",1,"form-control"],[1,"form-check"],["type","radio","formControlName","isPointGrading","id","type-grades",1,"form-check-input",3,"value"],["for","type-grades",1,"form-check-label"],["type","radio","formControlName","isPointGrading","id","type-points",1,"form-check-input",3,"value"],["for","type-points",1,"form-check-label"],[4,"ngIf"],[1,"d-flex","justify-content-end","mt-4"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","routerLink"],["type","submit",1,"btn","btn-primary","ms-2",3,"disabled"],["class","spinner-border spinner-border-sm align-middle","role","status",4,"ngIf"],[1,"invalid-feedback"],[1,"row","ms-4","mb-3","g-3"],[1,"col-sm-6","col-md-4"],["for","max-points",1,"ms-2","col-4","col-form-label"],[1,"col-6"],["type","number","name","maxPoints","id","max-points","formControlName","maxPoints","step","0.01","min","0","max","999","required","",1,"form-control"],["for","max-points-adjusted",1,"ms-2","col-4","col-form-label"],["type","number","name","maxPointsAdjusted","id","max-points-adjusted","formControlName","maxPointsAdjusted","step","0.01","min","0","max","999",1,"form-control"],[1,"ms-4","ps-3","py-3"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(s,i){1&s&&t.YNc(0,Ke,2,1,"ng-container",0),2&s&&t.Q6J("erzLet",t.VKq(1,Be,i.formGroup))},dependencies:[u.sg,u.O5,p._Y,p.Fj,p.wV,p._,p.JJ,p.JL,p.Q7,p.qQ,p.Fd,p.sg,p.u,_.rH,y.J4,M.e,u.Ov,g.X$],styles:["#factor[_ngcontent-%COMP%], #max-points[_ngcontent-%COMP%], #max-points-adjusted[_ngcontent-%COMP%]{width:5em}"]})}return n})();const Xe=function(n){return{test:n}};function Ve(n,a){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",4)(2,"h1"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"button",5),t.NdJ("click",function(){t.CHM(e);const i=t.oxw().erzLet,r=t.oxw();return t.KtG(r.openDeleteModal(i.test))}),t.TgZ(6,"i",6),t._uU(7,"delete"),t.qZA()()(),t.TgZ(8,"erz-tests-edit-form",7),t.NdJ("save",function(i){t.CHM(e);const r=t.oxw(2);return t.KtG(r.save(i))}),t.qZA(),t.BQk()}if(2&n){const e=t.oxw().erzLet;t.xp6(3),t.hij(" ",t.xi3(4,3,"tests.edit-title",t.VKq(6,Xe,e.test.Designation))," "),t.xp6(5),t.Q6J("test",e.test)("saving",e.saving)}}function We(n,a){1&n&&t._UZ(0,"erz-spinner")}function tn(n,a){if(1&n&&(t.TgZ(0,"div",1),t.YNc(1,Ve,9,8,"ng-container",2),t.ALo(2,"async"),t.YNc(3,We,1,0,"ng-template",null,3,t.W1O),t.qZA()),2&n){const e=t.MAs(4),s=t.oxw();t.xp6(1),t.Q6J("ngIf",!1===t.lcZ(2,2,s.state.loading$))("ngIfElse",e)}}const en=function(n,a,e){return{courseId:n,test:a,saving:e}};let nn=(()=>{class n{constructor(e,s,i,r,l,d,m){this.state=e,this.courseService=s,this.route=i,this.toastService=r,this.translate=l,this.router=d,this.modalService=m,this.saving$=new x.X(!1),this.testId$=this.route.paramMap.pipe((0,c.U)(h=>Number(h.get("testId"))),(0,L.x)()),this.test$=(0,C.a)([this.state.tests$,this.testId$]).pipe((0,c.U)(([h,E])=>h.find(N=>N.Id===E)))}openDeleteModal(e){const s=this.modalService.open(Fe);s.componentInstance.test=e,s.result.then(i=>{i&&this.courseService.delete(e.CourseId,e.Id).subscribe(this.onDeleteSuccess.bind(this))},()=>{})}save(e){this.saving$.next(!0);const{designation:s,date:i,weight:r,isPointGrading:l,maxPoints:d,maxPointsAdjusted:m}=e;(0,C.a)([this.state.courseId$,this.testId$]).pipe((0,G.q)(1),(0,T.w)(([h,E])=>this.courseService.update(h,E,s,i,r,l,d,m)),(0,lt.x)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.toastService.success(this.translate.instant("tests.form.save-success")),this.navigateBack()}onDeleteSuccess(e){this.toastService.success(this.translate.instant("tests.form.delete-success")),this.state.deleteTest(e),this.navigateBack()}navigateBack(){this.state.courseId$.pipe((0,G.q)(1)).subscribe(e=>this.router.navigate(["events",e,"tests"]))}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(P),t.Y36(U.s),t.Y36(_.gz),t.Y36(ct.k),t.Y36(g.sK),t.Y36(_.F0),t.Y36(y.FF))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests-edit"]],decls:4,vars:11,consts:[["class","erz-container erz-container-limited",4,"erzLet"],[1,"erz-container","erz-container-limited"],[4,"ngIf","ngIfElse"],["loading",""],[1,"d-flex","justify-content-between","align-items-center"],["type","button",1,"btn","btn-primary","btn-icon",3,"click"],[1,"material-icons"],[3,"test","saving","save"]],template:function(s,i){1&s&&(t.YNc(0,tn,5,4,"div",0),t.ALo(1,"async"),t.ALo(2,"async"),t.ALo(3,"async")),2&s&&t.Q6J("erzLet",t.kEZ(7,en,t.lcZ(1,1,i.state.courseId$),t.lcZ(2,3,i.test$),t.lcZ(3,5,i.saving$)))},dependencies:[u.O5,M.e,Q.O,ut,u.Ov,g.X$]})}return n})();function sn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",1)(1,"erz-tests-edit-form",2),t.NdJ("save",function(i){t.CHM(e);const r=t.oxw();return t.KtG(r.save(i))}),t.qZA()()}if(2&n){const e=a.erzLet;t.xp6(1),t.Q6J("saving",e.saving)}}const an=function(n,a){return{courseId:n,saving:a}};let rn=(()=>{class n{constructor(e,s,i,r,l){this.route=e,this.courseService=s,this.toastService=i,this.translate=r,this.router=l,this.saving$=new x.X(!1),this.courseId$=this.route.paramMap.pipe((0,c.U)(d=>Number(d.get("id"))),(0,L.x)())}save(e){this.saving$.next(!0);const{designation:s,date:i,weight:r,isPointGrading:l,maxPoints:d,maxPointsAdjusted:m}=e;this.courseId$.pipe((0,T.w)(h=>this.courseService.add(h,i,s,r,l,d,m)),(0,lt.x)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.toastService.success(this.translate.instant("tests.form.save-success")),this.navigateBack()}navigateBack(){this.courseId$.subscribe(e=>this.router.navigate(["events",e,"tests"]))}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(_.gz),t.Y36(U.s),t.Y36(ct.k),t.Y36(g.sK),t.Y36(_.F0))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-tests-add"]],decls:6,vars:11,consts:[["class","erz-container erz-container-limited",4,"erzLet"],[1,"erz-container","erz-container-limited"],[3,"saving","save"]],template:function(s,i){1&s&&(t.TgZ(0,"h1"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t.YNc(3,sn,2,1,"div",0),t.ALo(4,"async"),t.ALo(5,"async")),2&s&&(t.xp6(1),t.Oqu(t.lcZ(2,2,"tests.add-title")),t.xp6(2),t.Q6J("erzLet",t.WLB(8,an,t.lcZ(4,4,i.courseId$),t.lcZ(5,6,i.saving$))))},dependencies:[M.e,ut,u.Ov,g.X$]})}return n})();var on=o(1162),dn=o(7163);function ln(n,a){1&n&&(t.TgZ(0,"div",12),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"events.rating")," "))}function cn(n,a){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"date"),t._UZ(3,"wbr"),t._uU(4),t.ALo(5,"date"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("",t.xi3(2,2,e.dateFrom,"dd.MM.yyyy"),"\u2013"),t.xp6(3),t.Oqu(t.xi3(5,5,e.dateTo,"dd.MM.yyyy"))}}const un=function(n){return[n,"tests"]};function pn(n,a){if(1&n&&(t.TgZ(0,"a",19)(1,"i",20),t._uU(2,"arrow_right_alt"),t.qZA(),t.TgZ(3,"span",21),t._uU(4),t.qZA()()),2&n){const e=t.oxw(2).$implicit;t.Q6J("routerLink",t.VKq(2,un,e.id)),t.xp6(4),t.Oqu(e.evaluationText)}}function gn(n,a){if(1&n&&(t.TgZ(0,"a",22)(1,"i",20),t._uU(2,"arrow_right_alt"),t.qZA(),t.TgZ(3,"span",21),t._uU(4),t.qZA()()),2&n){const e=t.oxw(2).$implicit;t.Q6J("href",e.evaluationLink,t.LSH),t.xp6(4),t.hij("",e.evaluationText," ")}}function _n(n,a){if(1&n&&(t.TgZ(0,"div",12),t.YNc(1,pn,5,4,"a",17),t.YNc(2,gn,5,2,"a",18),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",!e.evaluationLink),t.xp6(1),t.Q6J("ngIf",e.evaluationLink)}}function mn(n,a){if(1&n&&(t.TgZ(0,"div",13)(1,"div",7)(2,"a",14),t._uU(3),t.qZA()(),t.TgZ(4,"div",8),t.YNc(5,cn,6,8,"span",15),t.qZA(),t.TgZ(6,"div",9),t._uU(7),t.TgZ(8,"span",16),t._uU(9),t.ALo(10,"translate"),t.qZA()(),t.YNc(11,_n,3,2,"div",10),t.qZA()),2&n){const e=a.$implicit,s=t.oxw(4);t.xp6(2),t.Q6J("href",e.detailLink,t.LSH),t.xp6(1),t.Oqu(e.Designation),t.xp6(2),t.Q6J("ngIf",e.dateFrom&&e.dateTo),t.xp6(2),t.hij(" ",e.studentCount," "),t.xp6(2),t.Oqu(t.lcZ(10,6,1===e.studentCount?"events.registration":"events.registrations")),t.xp6(2),t.Q6J("ngIf",s.withRatings&&e.evaluationText)}}function hn(n,a){if(1&n&&(t.ynx(0),t.TgZ(1,"div",6)(2,"div",7),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",8),t._uU(6),t.ALo(7,"translate"),t.qZA(),t.TgZ(8,"div",9),t._uU(9),t.ALo(10,"translate"),t.qZA(),t.YNc(11,ln,3,3,"div",10),t.qZA(),t.YNc(12,mn,12,8,"div",11),t.BQk()),2&n){const e=t.oxw(2).erzLet,s=t.oxw();t.xp6(3),t.Oqu(t.lcZ(4,5,"events.designation")),t.xp6(3),t.Oqu(t.lcZ(7,7,"events.date")),t.xp6(3),t.hij(" ",t.lcZ(10,9,"events.registrations")," "),t.xp6(2),t.Q6J("ngIf",s.withRatings),t.xp6(1),t.Q6J("ngForOf",e.events)}}function fn(n,a){1&n&&(t.TgZ(0,"p",23),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&n&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"events.no-events")))}function vn(n,a){if(1&n&&(t.ynx(0),t.YNc(1,hn,13,11,"ng-container",3),t.YNc(2,fn,3,3,"ng-template",null,5,t.W1O),t.BQk()),2&n){const e=t.MAs(3),s=t.oxw().erzLet;t.xp6(1),t.Q6J("ngIf",(null==s.events?null:s.events.length)>0)("ngIfElse",e)}}function xn(n,a){1&n&&t._UZ(0,"erz-spinner")}function Tn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",1)(1,"erz-resettable-input",2),t.NdJ("valueChange",function(i){t.CHM(e);const r=t.oxw();return t.KtG(r.state.search$.next(i))}),t.ALo(2,"async"),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA(),t.YNc(5,vn,4,2,"ng-container",3),t.ALo(6,"async"),t.YNc(7,xn,1,0,"ng-template",null,4,t.W1O),t.qZA()}if(2&n){const e=a.erzLet,s=t.MAs(8),i=t.oxw();t.xp6(1),t.Q6J("value",t.lcZ(2,6,i.state.search$))("placeholder",t.lcZ(3,8,"events.search-by"))("label",t.lcZ(4,10,"events.search"))("disabled",!e.events),t.xp6(4),t.Q6J("ngIf",!1===t.lcZ(6,12,i.state.loading$))("ngIfElse",s)}}const Cn=function(n){return{events:n}};let pt=(()=>{class n{constructor(e,s){this.state=e,this.storage=s,this.withRatings=!0,this.state.roles$.next(this.storage.getPayload()?.roles)}static#t=this.\u0275fac=function(s){return new(s||n)(t.Y36(j),t.Y36(X.V))};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-events-list"]],inputs:{withRatings:"withRatings"},decls:2,vars:5,consts:[["class","erz-container",4,"erzLet"],[1,"erz-container"],[1,"d-flex","search",3,"value","placeholder","label","disabled","valueChange"],[4,"ngIf","ngIfElse"],["loading",""],["noEvents",""],[1,"event-header"],[1,"designation"],[1,"date"],[1,"registrations"],["class","rating",4,"ngIf"],["class","event-entry",4,"ngFor","ngForOf"],[1,"rating"],[1,"event-entry"],[3,"href"],[4,"ngIf"],[1,"registrations-label"],["class","d-flex",3,"routerLink",4,"ngIf"],["class","d-flex",3,"href",4,"ngIf"],[1,"d-flex",3,"routerLink"],[1,"material-icons"],[1,"ps-1"],[1,"d-flex",3,"href"],[1,"mt-3"]],template:function(s,i){1&s&&(t.YNc(0,Tn,9,14,"div",0),t.ALo(1,"async")),2&s&&t.Q6J("erzLet",t.VKq(3,Cn,t.lcZ(1,1,i.state.getEvents(i.withRatings))))},dependencies:[u.sg,u.O5,_.rH,M.e,Q.O,dn.w,u.Ov,u.uU,g.X$],styles:['.search[_ngcontent-%COMP%]{max-width:500px}.event-header[_ngcontent-%COMP%]{display:grid;padding:1rem;border-bottom:2px solid #dee2e6;grid-template-areas:"designation date registrations rating";grid-template-columns:4fr 2fr 2fr 3fr}.event-entry[_ngcontent-%COMP%]{display:grid;padding:1rem;border-bottom:1px solid #dee2e6;grid-template-areas:"designation date registrations rating";grid-template-columns:4fr 2fr 2fr 3fr}.designation[_ngcontent-%COMP%]{grid-area:designation;padding-right:1rem}.date[_ngcontent-%COMP%]{grid-area:date;padding-right:1rem}.registrations[_ngcontent-%COMP%]{grid-area:registrations;padding-right:1rem}.rating[_ngcontent-%COMP%]{grid-area:rating}.rating[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}.rating[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:underline}.rating[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{text-decoration-color:#ea161f}.registrations-label[_ngcontent-%COMP%]{display:none}@media (max-width: 575.98px){.event-header[_ngcontent-%COMP%]{display:none}.registrations-label[_ngcontent-%COMP%]{display:inline}.designation[_ngcontent-%COMP%], .date[_ngcontent-%COMP%], .registrations[_ngcontent-%COMP%]{padding-right:0}.event-entry[_ngcontent-%COMP%]{grid-template-areas:"designation" "date" "registrations" "rating";grid-template-columns:1fr}}']})}return n})();const bn=[{path:"",component:Ct,children:[{path:"",component:(()=>{class n{constructor(){}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-events-tests"]],decls:4,vars:4,consts:[[3,"withRatings"]],template:function(s,i){1&s&&(t.TgZ(0,"h1"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"erz-events-list",0)),2&s&&(t.xp6(1),t.Oqu(t.lcZ(2,2,"events.title")),t.xp6(2),t.Q6J("withRatings",!0))},dependencies:[pt,g.X$]})}return n})()},{path:"current",component:(()=>{class n{constructor(){}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.Xpm({type:n,selectors:[["erz-events-current"]],decls:4,vars:4,consts:[[3,"withRatings"]],template:function(s,i){1&s&&(t.TgZ(0,"h1"),t._uU(1),t.ALo(2,"translate"),t.qZA(),t._UZ(3,"erz-events-list",0)),2&s&&(t.xp6(1),t.Oqu(t.lcZ(2,2,"events.current.title")),t.xp6(2),t.Q6J("withRatings",!1))},dependencies:[pt,g.X$]})}return n})()},{path:":id",component:R,children:[{path:"tests",component:we}]},{path:":id/tests/:testId/edit",component:R,children:[{path:"",component:nn}]},{path:":id/tests/add",component:R,children:[{path:"",component:rn}]},{path:":id/tests",children:[on.H]}]}];let Zn=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275mod=t.oAB({type:n});static#n=this.\u0275inj=t.cJS({imports:[_.Bz.forChild(bn),_.Bz]})}return n})();var An=o(8393);let yn=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275mod=t.oAB({type:n});static#n=this.\u0275inj=t.cJS({providers:[An.o],imports:[q.m,Zn]})}return n})()},1608:(gt,w,o)=>{o.d(w,{K:()=>T});var q=o(8658),_=o(7398),J=o(5619),x=o(3997),O=o(7081),C=o(8180),c=o(5879);let T=(()=>{class b{getSortingChar$(Z){return this.sorting$.pipe((0,_.U)(v=>v&&Z===v.key?v.ascending?"\u2193":"\u2191":""))}constructor(){this.sortingSubject$=new J.X(null),this.sorting$=this.sortingSubject$.asObservable().pipe((0,x.x)(q.Z),(0,O.d)(1))}setSorting(Z){this.sortingSubject$.next(Z)}toggleSorting(Z){this.sorting$.pipe((0,C.q)(1)).subscribe(v=>{this.sortingSubject$.next({key:Z,ascending:!v||v.key!==Z||!v.ascending})})}static#t=this.\u0275fac=function(v){return new(v||b)};static#e=this.\u0275prov=c.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})()}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/373.js b/public/apps/webapp-schulverwaltung/373.js index 33d81c23..a0af87cf 100644 --- a/public/apps/webapp-schulverwaltung/373.js +++ b/public/apps/webapp-schulverwaltung/373.js @@ -1 +1 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[373],{3373:(Ze,R,r)=>{r.r(R),r.d(R,{PresenceControlModule:()=>mn});var I=r(6486),L=r(1523),K=r(1162),O=r(5619),_=r(2572),A=r(9315),l=r(7398),P=r(8180),v=r(4664),$=r(1389),w=r(1342),D=r(6561),e=r(5879);let N=(()=>{class s extends D.z{static#e=this.\u0275fac=function(){let t;return function(o){return(t||(t=e.n5z(s)))(o||s)}}();static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac})}return s})();function W(s,c){return[...s].sort(function V(s){return(c,t)=>{switch(s.primarySortKey){case"name":{const n=c.name.localeCompare(t.name);return s.ascending?-1*n:n}case"group":{const n=(c.detail.Value||"").localeCompare(t.detail.Value||"");return s.ascending?-1*n:n}}}}(c))}function X(s,c){return s.map(t=>function b(s,c){return{id:s.IdPerson,name:c.find(t=>t.StudentRef.Id===s.IdPerson)?.StudentFullName||"",group:s.Value,detail:s}}(t,c))}function g(s,c){return s.find(t=>t.VssId===c.subscriptionDetailGroupId)}var d=r(253),m=r(9515),f=r(6814),x=r(6223);function we(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",5)(1,"input",6),e.NdJ("change",function(){const i=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.onSelectionChange(i))}),e.qZA(),e.TgZ(2,"label",7),e._uU(3),e.qZA()()}if(2&s){const t=c.$implicit,n=c.index,o=e.oxw();e.xp6(1),e.MGl("id","group-",n,""),e.Q6J("checked",t.id===o.selected.id)("value",t.id),e.xp6(1),e.MGl("for","group-",n,""),e.xp6(1),e.hij(" ",t.label," ")}}var J=function(s){return s.Select="select",s.Assign="assign",s}(J||{});let Ue=(()=>{class s{constructor(t,n){this.activeModal=t,this.translate=n,this.groupOptions=[]}ngOnInit(){this.title=`presence-control.groups.${this.dialogMode}.title`;const t=this.createEmtpyOption();this.groupOptions=this.createGroupOptions(this.subscriptionDetailsDefinitions),this.groupOptions.unshift(t),this.selected=this.groupOptions.find(n=>n.id===this.group)||t}createEmtpyOption(){return{id:null,label:this.translate.instant(this.dialogMode===J.Select?"presence-control.groups.all":"presence-control.groups.none")}}createGroupOptions(t){return t.DropdownItems?t.DropdownItems.map(n=>({id:n.Key,label:`${this.translate.instant("presence-control.groups.group")} ${n.Value}`})):[]}getSelectedGroup(){return this.selected}onSelectionChange(t){this.selected=t}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(d.Kz),e.Y36(m.sK))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-group-dialog"]],inputs:{dialogMode:"dialogMode",subscriptionDetailsDefinitions:"subscriptionDetailsDefinitions",group:"group"},decls:13,vars:10,consts:[[1,"modal-body"],["class","form-check",4,"ngFor","ngForOf"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-primary",3,"click"],[1,"form-check"],["type","radio","name","groups",1,"form-check-input",3,"id","checked","value","change"],[1,"form-check-label",3,"for"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"form"),e.YNc(5,we,4,5,"div",1),e.qZA()(),e.TgZ(6,"div",2)(7,"button",3),e.NdJ("click",function(){return o.activeModal.dismiss()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",4),e.NdJ("click",function(){return o.activeModal.close(o.getSelectedGroup())}),e._uU(11),e.ALo(12,"translate"),e.qZA()()),2&n&&(e.xp6(2),e.hij(" ",e.lcZ(3,4,o.title)," "),e.xp6(3),e.Q6J("ngForOf",o.groupOptions),e.xp6(3),e.hij(" ",e.lcZ(9,6,"presence-control.groups.cancel")," "),e.xp6(3),e.hij(" ",e.lcZ(12,8,"presence-control.groups.save")," "))},dependencies:[f.sg,x._Y,x.JL,x.F,m.X$]})}return s})();var De=r(9189),Ee=r(5301),ee=r(8658),te=r(2194),M=r(8645),B=r(3019),E=r(2096),Fe=r(4825),ne=r(3997),y=r(7081),ge=r(836),S=r(9773),se=r(2181),U=r(4141),Ge=r(6191),he=r(4067),oe=r(8484);function Ne(s){return{Id:s?s.Id:null,HRef:null}}var me=r(6747);function ie(s){return c=>c.reduce((t,n)=>t+(n.presenceCategory===s?1:0),0)}var Y=r(3786),re=r(7105),ce=r(7938),fe=r(7575),_e=r(8366),Be=r(275),Ce=r(8952),ve=r(9862);let Ye=(()=>{class s extends _e.v{constructor(t,n){super(t,n,Ce.C,"LessonTeachers")}loadOtherTeachersLessonAbsences(t,n,o){let i=`${this.baseUrl}/except/${t}/LessonAbsences?expand=LessonRef`;return n&&n.length>0&&(i=i.concat("&filter.StudentRef=;"+n.join(";"))),this.http.get(i,{params:o}).pipe((0,v.w)((0,Be.Y0)(Ce.C)))}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(ve.eN),e.LFG(U.L6))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var ae=r(905),le=r(7328),de=r(7921),Pe=r(6055),ze=r(654),je=r(3219),He=r(6514);let ye=(()=>{class s extends _e.v{constructor(t,n){super(t,n,He.t,"SubscriptionDetails")}getListForEvent(t){return this.getList({params:{IdEvent:String(t)}})}update(t,n){return this.http.put(`${this.baseUrl}/${n.Id}`,{IdPerson:n.IdPerson,EventId:n.EventId,Value:t}).pipe((0,l.U)(()=>{}))}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(ve.eN),e.LFG(U.L6))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var z=r(3005);const be="presence-control-group";let j=(()=>{class s{constructor(t,n,o,i,a,p){this.userSettings=t,this.eventService=n,this.subscriptionService=o,this.subscriptionDetailsService=i,this.loadingService=a,this.settings=p,this.selectGroup$=new M.x,this.selectedLesson$=new le.t,this.lessonPresences$=new le.t,this.reloadSubscriptionDetails$=new M.x,this.defaultGroup=null,this.savedGroup$=this.selectedLesson$.pipe((0,v.w)(u=>this.userSettings.getPresenceControlGroupView().pipe((0,l.U)(C=>this.findGroupByLesson(C,u))))),this.group$=(0,B.T)(this.selectGroup$,this.savedGroup$).pipe((0,de.O)(this.defaultGroup),(0,y.d)(1)),this.loading$=this.loadingService.loading(be),this.subscriptionDetailsDefinitions$=this.selectedLesson$.pipe((0,l.U)(u=>u?.getEventIds()||[]),(0,v.w)(u=>(0,A.D)(u.map(C=>this.eventService.getSubscriptionDetailsDefinitions(C)))),(0,y.d)(1)),this.groupsAvailability$=this.subscriptionDetailsDefinitions$.pipe((0,l.U)(u=>u.every(C=>g(C,this.settings))),(0,y.d)(1)),this.subscriptionDetails$=(0,_.a)([this.selectedLesson$,this.groupsAvailability$,this.reloadSubscriptionDetails$.pipe((0,l.U)(()=>!1),(0,de.O)(!0))]).pipe((0,v.w)(([u,C,T])=>u&&C?this.loadSubscriptionDetailsForLesson(u,T):(0,E.of)([])),(0,l.U)(u=>function Ie(s,c){return s.filter(t=>t.VssId===c.subscriptionDetailGroupId)}(u,this.settings)),(0,y.d)(1)),this.subscriptionDetailPersonIds$=(0,_.a)([this.group$,this.subscriptionDetails$]).pipe((0,l.U)(([u,C])=>C.filter(T=>T.Value===u).map(T=>T.IdPerson)),(0,de.O)([]))}selectGroup(t){this.selectGroup$.next(t)}setSelectedLesson(t){this.selectedLesson$.next(t)}setLessonPresences(t){this.lessonPresences$.next(t)}getSubscriptionDetailsDefinitions(){return this.subscriptionDetailsDefinitions$.pipe((0,l.U)(Pe.Z),(0,l.U)(t=>g(t,this.settings)))}getSubscriptionDetailsForStudents(){return(0,_.a)([this.subscriptionDetails$,this.lessonPresences$]).pipe((0,l.U)((0,$.h)(X)))}reloadSubscriptionDetails(){this.reloadSubscriptionDetails$.next(void 0)}loadSubscriptionDetailsForLesson(t,n=!0){return this.loadingService.load((0,A.D)((0,te.Z)(t.getEventIds()).map(o=>this.subscriptionDetailsService.getListForEvent(o))),n?void 0:be).pipe((0,l.U)(Pe.Z))}findGroupByLesson(t,n){return t.find(i=>i.eventId===n?.getEventIds()[0])?.group||this.defaultGroup}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(ce.s),e.LFG(ze.O),e.LFG(je.o),e.LFG(ye),e.LFG(z.b),e.LFG(U.L6))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac})}return s})();var Qe=r(5001),Ke=r(8173);const qe=Object.values(Y.PW);let Z=(()=>{class s{constructor(t,n,o,i,a,p,u,C,T,G){this.userSettings=t,this.lessonPresencesService=n,this.lessonTeacherService=o,this.presenceTypesService=i,this.groupService=a,this.dropDownItemsService=p,this.loadingService=u,this.storageService=C,this.settings=T,this.location=G,this.selectedDateSubject$=new O.X(new Date),this.selectedDate$=this.selectedDateSubject$.asObservable().pipe((0,l.U)(De.Z),(0,ne.x)(ee.Z)),this.viewModeSubject$=new M.x,this.viewMode$=(0,B.T)(this.viewModeSubject$,this.userSettings.getPresenceControlViewMode().pipe((0,P.q)(1))),this.lessons$=this.selectedDate$.pipe((0,v.w)(h=>this.loadLessonsByDate(h)),(0,y.d)(1)),this.selectLessonId$=new M.x,this.selectLesson$=this.selectLessonId$.pipe((0,v.w)(h=>this.getLessonById(h))),this.selectedLesson$=(0,_.a)([(0,re.eG)(this.selectLesson$.pipe((0,ne.x)((h,k)=>(0,ee.Z)(h,k))),(0,re.re)(this.settings.lessonPresencesRefreshTime)),this.lessons$]).pipe((0,l.U)(([h,k])=>k.find(fn=>fn.id===h.id)?h:null),(0,y.d)(1)),this.updateLessonPresences$=new M.x,this.lessonPresences$=(0,B.T)(this.selectedLesson$.pipe((0,v.w)(h=>h?this.loadLessonPresencesByLesson(h):(0,E.of)([]))),this.updateLessonPresences$).pipe((0,y.d)(1)),this.presenceTypes$=this.loadPresenceTypes().pipe((0,y.d)(1)),this.studentIdsWithUnconfirmedAbsences$=(0,re.eG)(this.selectedDate$,this.selectedLesson$.pipe((0,ge.T)(1))).pipe((0,v.w)(()=>this.loadStudentIdsWithUnconfirmedAbsences()),(0,y.d)(1)),this.loading$=this.loadingService.loading$,this.absenceConfirmationStates$=this.dropDownItemsService.getAbsenceConfirmationStates().pipe((0,y.d)(1)),this.studentIds$=this.lessonPresences$.pipe((0,l.U)(h=>(0,te.Z)(h.map(k=>k.StudentRef.Id))),(0,y.d)(1)),this.otherTeachersAbsences$=this.studentIds$.pipe((0,ne.x)(ee.Z),(0,v.w)(h=>h.length>0?this.lessonTeacherService.loadOtherTeachersLessonAbsences(this.getMyself(),h):(0,E.of)([])),(0,y.d)(1)),this.groupsAvailability$=this.groupService.groupsAvailability$,this.presenceControlEntries$=(0,_.a)([this.selectedLesson$,this.lessonPresences$,this.presenceTypes$,this.absenceConfirmationStates$,this.otherTeachersAbsences$]).pipe((0,l.U)((0,$.h)(me.bL))),this.presenceControlEntriesByGroup$=(0,_.a)([this.groupService.group$,this.presenceControlEntries$,this.groupService.subscriptionDetailPersonIds$]).pipe((0,l.U)((0,$.h)(Ge.C)),(0,y.d)(1)),this.presentCount$=this.presenceControlEntriesByGroup$.pipe((0,l.U)(ie("present"))),this.absentCount$=this.presenceControlEntriesByGroup$.pipe((0,l.U)(ie("absent"))),this.unapprovedCount$=this.presenceControlEntriesByGroup$.pipe((0,l.U)(ie("unapproved"))),this.absentPrecedingCount$=this.presenceControlEntriesByGroup$.pipe((0,l.U)(s=>s.reduce((c,t)=>c+(t.precedingAbsences&&t.precedingAbsences.length>0?1:0),0))),this.queryParamsString$=(0,_.a)([this.selectedDate$,this.selectedLesson$,this.viewMode$]).pipe((0,l.U)((0,$.h)(this.buildQueryParams.bind(this))),(0,l.U)(w.tW)),this.destroy$=new M.x,this.queryParamsString$.pipe((0,S.R)(this.destroy$)).subscribe(h=>{this.location.replaceState("/presence-control",h),this.confirmBackLinkParams={returnparams:h}}),this.viewMode$.pipe((0,ge.T)(1),(0,v.w)(h=>this.userSettings.savePresenceControlViewMode(h)),(0,S.R)(this.destroy$)).subscribe(),this.selectedLesson$.pipe((0,S.R)(this.destroy$)).subscribe(h=>{this.groupService.setSelectedLesson(h)}),this.lessonPresences$.pipe((0,S.R)(this.destroy$)).subscribe(h=>this.groupService.setLessonPresences(h))}ngOnDestroy(){this.destroy$.next()}setDate(t){this.selectedDateSubject$.next(t)}setLessonId(t){this.selectLessonId$.next(t)}setViewMode(t){this.viewModeSubject$.next(t)}updateLessonPresencesTypes(t){(0,_.a)([this.lessonPresences$.pipe((0,P.q)(1)),this.presenceTypes$.pipe((0,P.q)(1))]).pipe((0,l.U)(([n,o])=>function ke(s,c,t,n){return s.map(o=>{const i=c.find(a=>function Re(s,c){return s.LessonRef.Id===c.LessonRef.Id&&s.StudentRef.Id===c.StudentRef.Id}(a.presence,o));if(i){let a;return a=!i.newPresenceTypeId&&o.Comment?t.find(p=>p.IsComment)||null:t.find(p=>p.Id===i.newPresenceTypeId)||null,{...o,TypeRef:Ne(a),Date:null,Type:a?a.Designation:null,ConfirmationStateId:(0,oe.LO)(a,n)}}return o})}(n,t,o,this.settings))).subscribe(n=>this.updateLessonPresences$.next(n))}getNextPresenceType(t){return this.presenceTypes$.pipe((0,P.q)(1),(0,l.U)(n=>t.getNextPresenceType(n)))}hasUnconfirmedAbsences(t){return this.studentIdsWithUnconfirmedAbsences$.pipe((0,l.U)(n=>n.includes(t.lessonPresence.StudentRef.Id)))}loadLessonPresencesByLesson(t){return this.loadingService.load(this.lessonPresencesService.getListByLessons(t.lessons))}loadLessonsByDate(t){return this.loadingService.load(this.lessonPresencesService.getLessonsByDate(t)).pipe((0,l.U)(he.sm))}loadPresenceTypes(){return this.loadingService.load(this.presenceTypesService.presenceTypes$)}loadStudentIdsWithUnconfirmedAbsences(){return(0,Fe.H)(0,this.settings.unconfirmedAbsencesRefreshTime||-1).pipe((0,v.w)(()=>this.lessonPresencesService.getListOfUnconfirmed()),(0,l.U)(t=>(0,te.Z)(t.map(n=>n.StudentRef.Id))))}buildQueryParams(t,n,o){const i={date:(0,Ee.Z)(t,"yyyy-MM-dd"),viewMode:o};return n&&(i.lesson=String(n.id)),i}getLessonById(t){const n=String(t);return this.lessons$.pipe((0,l.U)(o=>n&&o.find(i=>i.id===n)||(0,he.S9)(o)),(0,se.h)(Boolean))}getMyself(){const t=this.storageService.getPayload();return Number(t?.holder_id||t?.id_person)}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(ce.s),e.LFG(fe.q),e.LFG(Ye),e.LFG(ae.c),e.LFG(j),e.LFG(Qe.R),e.LFG(z.b),e.LFG(Ke.V),e.LFG(U.L6),e.LFG(f.Ye))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac})}return s})();var pe=r(6869),H=r(6567),ue=r(59),We=r(7625);function Ve(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",13),e.NdJ("click",function(){const i=e.CHM(t).$implicit,a=e.oxw(2);return e.KtG(a.toggleSort(i))}),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",14),e._uU(4),e.qZA()()}if(2&s){const t=c.$implicit,n=e.oxw().erzLet,o=e.oxw();e.Q6J("className",t),e.xp6(1),e.hij(" ",e.lcZ(2,3,"presence-control.groups.list.header."+t)," "),e.xp6(3),e.Oqu(o.getSortDirectionCharacter(n.sortCriteria,t))}}function Xe(s,c){1&s&&e._UZ(0,"erz-spinner",23)}function et(s,c){if(1&s){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",16)(2,"div",17)(3,"input",18,19),e.NdJ("change",function(){const i=e.CHM(t).$implicit,a=e.oxw(3);return e.KtG(a.selectionService.toggle(i))}),e.ALo(5,"async"),e.qZA()(),e.TgZ(6,"div",20),e._uU(7),e.qZA(),e.TgZ(8,"div",21)(9,"span"),e._uU(10),e.qZA(),e.YNc(11,Xe,1,0,"erz-spinner",22),e.ALo(12,"async"),e.qZA()(),e.BQk()}if(2&s){const t=c.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("checked",e.lcZ(5,4,n.selectionService.isSelected$(t))),e.xp6(4),e.hij(" ",t.name," "),e.xp6(3),e.Oqu(t.group?t.group:""),e.xp6(1),e.Q6J("ngIf",e.lcZ(12,6,n.groupService.loading$))}}function tt(s,c){if(1&s&&(e.ynx(0),e.YNc(1,et,13,8,"ng-container",15),e.BQk()),2&s){const t=e.oxw().erzLet;e.xp6(1),e.Q6J("ngForOf",t.sortedEntries)}}function nt(s,c){1&s&&e._UZ(0,"erz-spinner")}const st=function(){return["/presence-control"]},ot=function(){return["name","group"]};function it(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div"),e._UZ(1,"erz-backlink",1),e.ALo(2,"async"),e.TgZ(3,"h1"),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"div",2)(7,"div",3)(8,"span",4),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"button",5),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.selectGroup())}),e._uU(12),e.ALo(13,"translate"),e.ALo(14,"translate"),e.qZA()(),e.TgZ(15,"a",6),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.assignGroup())}),e.TgZ(16,"i",7),e._uU(17,"edit"),e.qZA()()(),e.TgZ(18,"div",8)(19,"div",9),e.YNc(20,Ve,5,5,"div",10),e.qZA(),e.YNc(21,tt,2,1,"ng-container",11),e.ALo(22,"async"),e.YNc(23,nt,1,0,"ng-template",null,12,e.W1O),e.qZA()()}if(2&s){const t=c.erzLet,n=e.MAs(24),o=e.oxw();e.xp6(1),e.Q6J("routerLink",e.DdM(22,st))("queryParams",e.lcZ(2,10,o.backlinkQueryParams$)),e.xp6(3),e.Oqu(e.lcZ(5,12,"presence-control.groups.title")),e.xp6(5),e.Oqu(e.lcZ(10,14,"presence-control.groups.show")),e.xp6(3),e.hij(" ",t.group?e.lcZ(13,16,"presence-control.groups.group")+" "+t.group:e.lcZ(14,18,"presence-control.groups.all")," "),e.xp6(3),e.ekj("disabled",0===t.selection.length),e.xp6(5),e.Q6J("ngForOf",e.DdM(23,ot)),e.xp6(1),e.Q6J("ngIf",!1===e.lcZ(22,20,o.state.loading$))("ngIfElse",n)}}const rt=function(s,c,t,n){return{sortCriteria:s,sortedEntries:c,selection:t,group:n}};let ct=(()=>{class s{constructor(t,n,o,i,a,p,u,C,T){this.route=t,this.state=n,this.selectionService=o,this.groupService=i,this.userSettings=a,this.subscriptionDetailService=p,this.toastService=u,this.translate=C,this.modalService=T,this.backlinkQueryParams$=this.route.queryParams.pipe((0,l.U)(({returnparams:G})=>G),(0,l.U)(w.dD)),this.eventIds$=this.state.selectedLesson$.pipe((0,l.U)(G=>G?.getEventIds()||[])),this.sortCriteriaSubject$=new O.X({primarySortKey:"name",ascending:!1}),this.sortCriteria$=this.sortCriteriaSubject$.asObservable(),this.sortedEntries$=(0,_.a)([this.groupService.getSubscriptionDetailsForStudents(),this.sortCriteria$]).pipe((0,l.U)((0,$.h)(W))),this.selected=[]}ngOnInit(){this.selectionService.selection$.subscribe(t=>this.selected=t)}selectGroup(){this.openGroupModal(J.Select,this.selectCallback.bind(this))}assignGroup(){this.openGroupModal(J.Assign,this.assignCallback.bind(this))}openGroupModal(t,n){(0,_.a)([this.groupService.getSubscriptionDetailsDefinitions(),this.groupService.group$]).pipe((0,P.q)(1)).subscribe(([o,i])=>{const a=this.modalService.open(Ue);a.componentInstance.dialogMode=t,a.componentInstance.subscriptionDetailsDefinitions=o,a.componentInstance.group=i,a.result.then(p=>{n(p)},()=>{})})}selectCallback(t){(0,_.a)([this.eventIds$,this.userSettings.getPresenceControlGroupView()]).pipe((0,P.q)(1),(0,v.w)(([n,o])=>this.userSettings.savePresenceControlGroupView(function q(s,c,t){const n=c.map(i=>({eventId:i,group:s})),o=t.map(i=>n.find(a=>a.eventId===i.eventId)||i);return[...new Set([...o,...n])].filter(i=>null!==i.group)}(t.id,n,o))),(0,l.U)(()=>t.id)).subscribe(n=>this.groupService.selectGroup(n))}assignCallback(t){(0,A.D)(this.selected.map(n=>this.subscriptionDetailService.update(t.id,n.detail))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.groupService.reloadSubscriptionDetails(),this.selectionService.clear(),this.toastService.success(this.translate.instant("presence-control.groups.notifications.save-success"))}getSortDirectionCharacter(t,n){return t.primarySortKey!==n?"":t.ascending?"\u2193":"\u2191"}toggleSort(t){this.sortCriteriaSubject$.pipe((0,P.q)(1)).subscribe(n=>{this.sortCriteriaSubject$.next(n.primarySortKey===t?{primarySortKey:t,ascending:!n.ascending}:{primarySortKey:t,ascending:"name"===t})})}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(L.gz),e.Y36(Z),e.Y36(N),e.Y36(j),e.Y36(ce.s),e.Y36(ye),e.Y36(pe.k),e.Y36(m.sK),e.Y36(d.FF))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-group"]],features:[e._Bn([N])],decls:5,vars:14,consts:[[4,"erzLet"],[3,"routerLink","queryParams"],[1,"group-header","mb-2","d-flex","justify-content-between"],[1,"d-flex","align-items-baseline"],[1,"ps-3"],["type","button",1,"show","btn","btn-link",3,"click"],["aria-label","edit",1,"btn","btn-primary","btn-icon","me-2",3,"click"],[1,"material-icons"],[1,"group-list"],[1,"group-list-header"],[3,"className","click",4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],["loading",""],[3,"className","click"],[1,"sort-direction"],[4,"ngFor","ngForOf"],[1,"group-list-entry"],[1,"checkbox"],["type","checkbox",1,"form-check-input",3,"checked","change"],["checkbox",""],[1,"name","pe-2"],[1,"group","d-flex","justify-content-between"],["class","inline small",4,"ngIf"],[1,"inline","small"]],template:function(n,o){1&n&&(e.YNc(0,it,25,24,"div",0),e.ALo(1,"async"),e.ALo(2,"async"),e.ALo(3,"async"),e.ALo(4,"async")),2&n&&e.Q6J("erzLet",e.l5B(9,rt,e.lcZ(1,1,o.sortCriteria$),e.lcZ(2,3,o.sortedEntries$),e.lcZ(3,5,o.selectionService.selection$),e.lcZ(4,7,o.groupService.group$)))},dependencies:[f.sg,f.O5,L.rH,H.e,ue.O,We.I,f.Ov,m.X$],styles:['[_nghost-%COMP%]{display:block;padding-left:1rem;padding-right:1rem}.group-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#000;font-weight:300;text-decoration:underline;padding-left:.5rem}.group-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{text-decoration-color:#ea161f}.group-list-header[_ngcontent-%COMP%]{cursor:pointer;padding:1rem;display:grid;grid-template-areas:"name group";grid-template-columns:3fr 2fr;border-top:1px solid #dee2e6;border-bottom:2px solid #dee2e6}.group-list-entry[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid #dee2e6;display:grid;grid-template-areas:"checkbox name group";grid-template-columns:min-content 3fr 2fr}.checkbox[_ngcontent-%COMP%]{grid-area:checkbox;margin:0;padding:.3rem 1rem 0 0}.checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important;display:block}.name[_ngcontent-%COMP%]{grid-area:name;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.group[_ngcontent-%COMP%]{grid-area:group}@media (max-width: 750px){.group-list[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.group-list-header[_ngcontent-%COMP%]{grid-template-columns:3fr 1fr}.group-list-entry[_ngcontent-%COMP%]{grid-template-columns:min-content 3fr 1fr}}'],changeDetection:0})}return s})();var at=r(2547),xe=r(581),lt=r(2816);function pt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",3)(1,"input",4),e.NdJ("change",function(){const i=e.CHM(t).$implicit;return e.KtG(i.selected=!i.selected)}),e.qZA(),e.TgZ(2,"label",5)(3,"i"),e._uU(4),e.qZA(),e.TgZ(5,"div",6),e._uU(6),e.ALo(7,"date"),e.ALo(8,"date"),e.qZA()()()}if(2&s){const t=c.$implicit,n=c.index,o=e.oxw();e.xp6(1),e.MGl("id","lesson-presence-",n,""),e.Q6J("checked",t.selected),e.xp6(1),e.ekj("fw-bold",o.isCurrentLesson(t)),e.MGl("for","lesson-presence-",n,""),e.xp6(1),e.Gre("",t.entry.presenceCategory," material-icons pe-2"),e.xp6(1),e.Oqu(t.entry.presenceCategoryIcon),e.xp6(2),e.lnq(" ",e.xi3(7,12,t.entry.lessonPresence.LessonDateTimeFrom,"HH:mm"),"\u2013",e.xi3(8,15,t.entry.lessonPresence.LessonDateTimeTo,"HH:mm")," ",t.entry.lessonPresence.EventDesignation," ")}}function ut(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",7)(1,"button",8),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.activeModal.close())}),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"button",9),e.NdJ("click",function(){const i=e.CHM(t).erzLet,a=e.oxw();return e.KtG(a.activeModal.close(i))}),e._uU(5),e.ALo(6,"translate"),e.qZA()()}if(2&s){const t=c.erzLet;e.xp6(2),e.hij(" ",e.lcZ(3,3,"presence-control.block-lesson.cancel")," "),e.xp6(2),e.Q6J("disabled",0===t.length),e.xp6(1),e.hij(" ",e.lcZ(6,5,"presence-control.block-lesson.save")," ")}}let gt=(()=>{class s{constructor(t){this.activeModal=t,this.blockLessonOptions=[]}ngOnInit(){this.blockLessonOptions=this.buildLessonPresenceOptions()}getSelectedEntries(){return this.blockLessonOptions.filter(({selected:t})=>t).map(({entry:t})=>t)}isCurrentLesson(t){return function dt(s,c){(0,lt.Z)(2,arguments);var t=(0,xe.Z)(s),n=(0,xe.Z)(c);return t.getTime()===n.getTime()}(t.entry.lessonPresence.LessonDateTimeFrom,this.entry.lessonPresence.LessonDateTimeFrom)}buildLessonPresenceOptions(){return this.blockPresenceControlEntries.map(t=>({entry:t,selected:this.entry.confirmationState===t.confirmationState}))}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(d.Kz))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-block-lesson-component"]],inputs:{entry:"entry",blockPresenceControlEntries:"blockPresenceControlEntries"},decls:7,vars:5,consts:[[1,"modal-body"],["class","form-check",4,"ngFor","ngForOf"],["class","modal-footer",4,"erzLet"],[1,"form-check"],["type","checkbox",1,"form-check-input",3,"id","checked","change"],[1,"form-check-label","d-flex",3,"for"],[1,"d-block","text-truncate"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-primary",3,"disabled","click"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"form"),e.YNc(5,pt,9,18,"div",1),e.qZA()(),e.YNc(6,ut,7,7,"div",2)),2&n&&(e.xp6(2),e.hij(" ",e.lcZ(3,3,"presence-control.block-lesson.text")," "),e.xp6(3),e.Q6J("ngForOf",o.blockLessonOptions),e.xp6(1),e.Q6J("erzLet",o.getSelectedEntries()))},dependencies:[f.sg,x._Y,x.JL,x.F,H.e,f.uU,m.X$],styles:[".checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important;display:block}.absent[_ngcontent-%COMP%]{color:#d01018}.present[_ngcontent-%COMP%]{color:#3d8608}.unapproved[_ngcontent-%COMP%]{color:#ffa814}"]})}return s})();var ht=r(2220);function mt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",5)(1,"input",6),e.NdJ("change",function(){const i=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.onSelectionChange(i))}),e.qZA(),e.TgZ(2,"label",7),e._uU(3),e.qZA()()}if(2&s){const t=c.$implicit,n=c.index,o=e.oxw();e.xp6(1),e.MGl("id","incident-",n,""),e.Q6J("checked",t.id===o.selected.id)("value",t.id),e.xp6(1),e.MGl("for","incident-",n,""),e.xp6(1),e.hij(" ",t.label," ")}}let ft=(()=>{class s{constructor(t,n){this.activeModal=t,this.translate=n,this.incidentOptions=[]}ngOnInit(){const t=this.createIncidentOption();this.incidentOptions=this.incidentTypes.map(n=>this.createIncidentOption(n)),this.incidentOptions.unshift(t),this.selected=this.incidentOptions.find(n=>n.id===this.incident?.Id)||t}createIncidentOption(t){return{id:t?t.Id:null,label:t?t.Designation:this.translate.instant("presence-control.incident.no-incident")}}onSelectionChange(t){this.selected=t}getSelectedIncident(){return this.incidentTypes.find(t=>t.Id===this.selected?.id)||null}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(d.Kz),e.Y36(m.sK))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-incident"]],inputs:{incident:"incident",incidentTypes:"incidentTypes"},decls:13,vars:10,consts:[[1,"modal-body"],["class","form-check",4,"ngFor","ngForOf"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-primary",3,"click"],[1,"form-check"],["type","radio","name","incident",1,"form-check-input",3,"id","checked","value","change"],[1,"form-check-label",3,"for"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"form"),e.YNc(5,mt,4,5,"div",1),e.qZA()(),e.TgZ(6,"div",2)(7,"button",3),e.NdJ("click",function(){return o.activeModal.dismiss()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",4),e.NdJ("click",function(){return o.activeModal.close(o.getSelectedIncident())}),e._uU(11),e.ALo(12,"translate"),e.qZA()()),2&n&&(e.xp6(2),e.hij(" ",e.lcZ(3,4,"presence-control.incident.text")," "),e.xp6(3),e.Q6J("ngForOf",o.incidentOptions),e.xp6(3),e.hij(" ",e.lcZ(9,6,"presence-control.incident.cancel")," "),e.xp6(3),e.hij(" ",e.lcZ(12,8,"presence-control.incident.save")," "))},dependencies:[f.sg,x._Y,x.JL,x.F,m.X$],styles:["form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{border-bottom:1px solid #dee2e6;padding-bottom:1rem;margin-bottom:1rem}"]})}return s})();function Me(s){return`blockLesson${s.lessonPresence.Id}`}let Le=(()=>{class s{constructor(t,n,o,i){this.state=t,this.lessonPresencesService=n,this.loadingService=o,this.settings=i}getBlockLessonPresenceControlEntries(t){return(0,_.a)([this.state.lessons$.pipe((0,P.q)(1)),this.loadChangeableLessonPresences(t),this.state.presenceTypes$.pipe((0,P.q)(1)),this.state.absenceConfirmationStates$.pipe((0,P.q)(1)),this.state.otherTeachersAbsences$.pipe((0,P.q)(1))]).pipe((0,l.U)(([n,o,i,a,p])=>this.filterBlockLessonPresences(t,o).map(u=>(0,me.uP)(n.find(C=>C.id===u.LessonRef.Id.toString()),u,i,a,p))))}filterBlockLessonPresences(t,n){return[...n].sort((o,i)=>o.LessonDateTimeFrom>i.LessonDateTimeFrom?1:-1).reduce((o,i)=>this.isWithinBlockTime(i,o[o.length-1])?(o.push(i),o):o.find(p=>p.Id===t.lessonPresence.Id)?o:[i],[])}isWithinBlockTime(t,n){return!n||t.LessonDateTimeFrom.getTime()-n.LessonDateTimeTo.getTime()<=18e5}loadChangeableLessonPresences(t){return(0,_.a)([this.loadLessonPresences(t),this.state.presenceTypes$.pipe((0,P.q)(1))]).pipe((0,l.U)(([n,o])=>n.filter(i=>(0,oe.NF)(i,o.find(a=>a.Id===i.TypeRef.Id)||null,this.settings))))}loadLessonPresences(t){return this.loadingService.load(this.lessonPresencesService.getListByDateStudentClass(t.lessonPresence.LessonDateTimeFrom,t.lessonPresence.StudentRef.Id,t.lessonPresence.StudyClassRef.Id??void 0).pipe((0,l.U)(n=>n.filter(o=>o.TeacherInformation===t.lessonPresence.TeacherInformation))),Me(t))}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(Z),e.LFG(fe.q),e.LFG(z.b),e.LFG(U.L6))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac})}return s})();var Ct=r(6699),vt=r(3020),Te=r(3620),Pt=r(6328),yt=r(6306),Oe=r(2769),$e=r(6100),Q=r(3942),bt=r(6023),F=function(s){return s.AddUpdateAction="ADD",s.RemoveUpdateAction="REMOVE",s}(F||{});let Ae=(()=>{class s{constructor(t,n,o,i,a){this.toastService=t,this.translate=n,this.restService=o,this.presenceTypesService=i,this.settings=a,this.destroy$=new M.x,this.action$=new M.x,this.pendingUpdates$=this.action$.pipe((0,Ct.R)(this.reduceUpdates.bind(this),[]),(0,vt.B)()),this.revertUpdates$=new M.x,this.performUpdates$=this.pendingUpdates$.pipe((0,Te.b)(100),(0,se.h)((0,Q.ff)($e.yD)),(0,Pt.b)(this.performUpdates.bind(this))),this.stateUpdates$=(0,B.T)(this.pendingUpdates$,this.revertUpdates$).pipe((0,Te.b)(20),(0,se.h)((0,Q.ff)($e.yD))),this.performUpdates$.pipe((0,S.R)(this.destroy$)).subscribe()}ngOnDestroy(){this.destroy$.next()}updatePresenceType(t,n=null){this.dispatchAddUpdate(t.lessonPresence,n)}performUpdates(t){const n=this.groupUpdates(t);return(0,_.a)(Object.keys(n).reduce((o,i)=>{const a=n[i];return Object.keys(a).forEach(p=>{o.push(this.performUpdateForGroup(a[p]))}),o},[])).pipe((0,l.U)(()=>n))}performUpdateForGroup(t){return t.forEach(n=>this.dispatchRemoveUpdate(n.presence)),this.performLessonPresencesUpdatesByIds(t[0].presence.LessonRef.Id,t.map(n=>n.presence.StudentRef.Id),t[0].newPresenceTypeId).pipe((0,yt.K)(n=>this.revertUpdatesAfterError(t,n)))}performLessonPresencesUpdatesByIds(t,n,o=null){return o?(o?this.presenceTypesService.getPresenceType(o):(0,E.of)(null)).pipe((0,v.w)(a=>this.restService.editLessonPresences([t],n,a?.Id,(0,oe.LO)(a,this.settings)||void 0,(0,Oe.I)({disableErrorHandling:!0})))):this.restService.removeLessonPresences([t],n,(0,Oe.I)({disableErrorHandling:!0}))}revertUpdatesAfterError(t,n){return console.error("Bulk-update of lesson presences failed"),console.error(n),this.toastService.error(this.translate.instant("shared.lesson-presences-update.error")),this.revertUpdates$.next(t.map(o=>({...o,newPresenceTypeId:o.presence.TypeRef.Id}))),(0,E.of)(void 0)}groupUpdates(t){return t.reduce((n,o)=>{const i=String(o.newPresenceTypeId&&o.newPresenceTypeId);return n[i]||(n[i]={}),Array.isArray(n[i][o.presence.LessonRef.Id])||(n[i][o.presence.LessonRef.Id]=[]),n[i][o.presence.LessonRef.Id].push(o),n},{})}reduceUpdates(t,n){switch(n.type){case F.AddUpdateAction:{const{presence:o,newPresenceTypeId:i}=n.payload,a=t.findIndex(Se(o));return-1===a?[...t,{presence:o,newPresenceTypeId:i}]:[...t.slice(0,a),{presence:t[a].presence,newPresenceTypeId:i},...t.slice(a+1)]}case F.RemoveUpdateAction:return t.filter((0,Q.ff)(Se(n.payload)));default:return t}}dispatchAddUpdate(t,n){this.action$.next({type:F.AddUpdateAction,payload:{presence:t,newPresenceTypeId:n}})}dispatchRemoveUpdate(t){this.action$.next({type:F.RemoveUpdateAction,payload:t})}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(pe.k),e.LFG(m.sK),e.LFG(bt.O),e.LFG(ae.c),e.LFG(U.L6))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function Se(s){return c=>c.presence.LessonRef.Id===s.LessonRef.Id&&c.presence.StudentRef.Id===s.StudentRef.Id}var Lt=r(412),Tt=r(3296),Ot=r(7163);function $t(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",22),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.lessonDropdown.toggle())}),e._uU(1),e.ALo(2,"date"),e.TgZ(3,"span",23),e._uU(4),e.ALo(5,"date"),e.qZA()()}if(2&s){const t=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,2,t.selectedLesson.LessonDateTimeFrom,"HH:mm"),"\u2013"),e.xp6(3),e.Oqu(e.xi3(5,5,t.selectedLesson.LessonDateTimeTo,"HH:mm"))}}function At(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",29),e.NdJ("click",function(){const i=e.CHM(t).$implicit,a=e.oxw(2);return e.KtG(a.selectLessonChange.emit(i))}),e.TgZ(1,"div",30)(2,"div"),e._uU(3),e.ALo(4,"date"),e.ALo(5,"date"),e.qZA(),e.TgZ(6,"div",26),e._uU(7),e.qZA(),e.TgZ(8,"div",26),e._uU(9),e.qZA()()()}if(2&s){const t=c.$implicit,n=e.oxw(2);e.ekj("active",t.id===n.selectedLesson.id),e.xp6(3),e.AsE(" ",e.xi3(4,6,t.LessonDateTimeFrom,"HH:mm"),"\u2013",e.xi3(5,9,t.LessonDateTimeTo,"HH:mm")," "),e.xp6(4),e.Oqu(t.eventDesignations),e.xp6(2),e.Oqu(t.studyClassNumbers)}}function St(s,c){if(1&s&&(e.TgZ(0,"div",24)(1,"div",25)(2,"div",26),e._uU(3),e.qZA(),e.TgZ(4,"div",26),e._uU(5),e.qZA()(),e.TgZ(6,"div",27),e.YNc(7,At,10,12,"div",28),e.qZA()()),2&s){const t=e.oxw();e.xp6(3),e.Oqu(t.selectedLesson.eventDesignations),e.xp6(2),e.Oqu(t.selectedLesson.studyClassNumbers),e.xp6(2),e.Q6J("ngForOf",t.lessons)}}function Zt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"button",31),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(null==o.lessonDropdown?null:o.lessonDropdown.toggle())}),e.TgZ(1,"i",3),e._uU(2),e.qZA()()}if(2&s){const t=e.oxw();e.xp6(2),e.hij(" ",null!=t.lessonDropdown&&t.lessonDropdown.isOpen()?"keyboard_arrow_up":"keyboard_arrow_down"," ")}}const It=function(s,c){return{"btn-link":s,"btn-danger":c}},wt=function(s){return["groups",s]},Ut=function(s){return{returnparams:s}};function Dt(s,c){if(1&s&&(e.TgZ(0,"a",32),e.ALo(1,"async"),e.ALo(2,"async"),e.ALo(3,"async"),e.TgZ(4,"i",33),e._uU(5,"groups"),e.qZA()()),2&s){const t=e.oxw();e.Q6J("ngClass",e.WLB(9,It,!1===e.lcZ(1,3,t.isGroupSelected$),e.lcZ(2,5,t.isGroupSelected$)))("routerLink",e.VKq(12,wt,t.selectedLesson.id))("queryParams",e.VKq(14,Ut,e.lcZ(3,7,t.state.queryParamsString$)))}}function Et(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"button",34),e.NdJ("click",function(){const i=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.viewModeChange.emit(i.viewMode))}),e.TgZ(1,"i",33),e._uU(2),e.qZA()()}if(2&s){const t=c.$implicit,n=e.oxw();e.ekj("btn-outline-secondary",t.viewMode===n.viewMode)("btn-link",t.viewMode!==n.viewMode)("active",t.viewMode===n.viewMode),e.Q6J("disabled",!n.selectedLesson),e.xp6(2),e.Oqu(t.icon)}}const Ft=d.jt.prototype._positionMenu;d.jt.prototype._positionMenu=function(...c){const t=Ft.apply(this,c);if("lesson-dropdown"===this._anchor.nativeElement.id){const n=this._bodyContainer||this._menu.nativeElement,o=n.style.transform?.match(/translate\(([0-9-.]+)px, ([0-9-.]+)px\)/);o&&parseFloat(o[1])<0&&(n.style.transform=`translate(0px, ${o[2]}px)`)}return t};let Gt=(()=>{class s{constructor(t,n,o){this.state=t,this.groupService=n,this.presentCount=null,this.absentCount=null,this.unapprovedCount=null,this.absentPrecedingCount=null,this.search="",this.selectLessonChange=new e.vpe,this.selectDateChange=new e.vpe,this.searchChange=new e.vpe,this.viewModeChange=new e.vpe,this.viewModeOptions=[{viewMode:Y.PW.List,icon:"list"},{viewMode:Y.PW.Grid,icon:"view_module"}],this.isGroupSelected$=this.groupService.group$.pipe((0,l.U)(Q.Nf)),o.popperOptions=i=>({...i,modifiers:i.modifiers?.map(a=>("offset"===a.name&&(a.options={offset:({placement:p,reference:u,popper:C})=>"bottom-start"===p?[(window.innerWidth-C.width)/2-u.x,0]:[]}),a))})}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(Z),e.Y36(j),e.Y36(d.Be))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-header"]],viewQuery:function(n,o){if(1&n&&e.Gf(d.jt,5),2&n){let i;e.iGM(i=e.CRH())&&(o.lessonDropdown=i.first)}},inputs:{selectedLesson:"selectedLesson",lessons:"lessons",presentCount:"presentCount",absentCount:"absentCount",unapprovedCount:"unapprovedCount",absentPrecedingCount:"absentPrecedingCount",viewMode:"viewMode",selectDate:"selectDate",search:"search"},outputs:{selectLessonChange:"selectLessonChange",selectDateChange:"selectDateChange",searchChange:"searchChange",viewModeChange:"viewModeChange"},features:[e._Bn([d.Be,{provide:d.DO,useClass:d.s5},{provide:d.NG,useClass:Tt.n}])],decls:40,vars:20,consts:[[1,"navigation"],[1,"lesson-date"],["type","button",1,"btn","btn-link",3,"click"],[1,"material-icons"],["positionTarget",".lesson-date-input","ngbDatepicker","","placement","bottom-start",1,"lesson-date-input",3,"ngModel","ngModelChange"],["d","ngbDatepicker"],["class","lesson-time",3,"click",4,"ngIf"],["ngbDropdown","","class","lesson-description","container","body","display","dynamic","placement","bottom",4,"ngIf"],["type","button","class","dropdown-caret btn btn-link",3,"click",4,"ngIf"],[1,"states"],[1,"state","present"],[1,"count"],[1,"state","absent"],[1,"state","unapproved"],[1,"state","previously-absent"],[1,"material-icons-outlined"],[1,"search-and-views"],[1,"search",3,"value","disabled","placeholder","label","valueChange"],[1,"group-and-views","d-flex","align-items-center"],["type","button","class","group btn me-xs-0 me-sm-4",3,"ngClass","routerLink","queryParams",4,"ngIf"],[1,"views"],["type","button","class","view btn btn-primary btn-icon",3,"disabled","btn-outline-secondary","btn-link","active","click",4,"ngFor","ngForOf"],[1,"lesson-time",3,"click"],[1,"lesson-time-to"],["ngbDropdown","","container","body","display","dynamic","placement","bottom",1,"lesson-description"],["id","lesson-dropdown","ngbDropdownToggle",""],[1,"text-truncate"],["ngbDropdownMenu","","aria-labelledby","lesson-dropdown"],["ngbDropdownItem","",3,"active","click",4,"ngFor","ngForOf"],["ngbDropdownItem","",3,"click"],[1,"lesson-entry"],["type","button",1,"dropdown-caret","btn","btn-link",3,"click"],["type","button",1,"group","btn","me-xs-0","me-sm-4",3,"ngClass","routerLink","queryParams"],[1,"material-icons","align-middle"],["type","button",1,"view","btn","btn-primary","btn-icon",3,"disabled","click"]],template:function(n,o){if(1&n){const i=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"button",2),e.NdJ("click",function(){e.CHM(i);const p=e.MAs(6);return e.KtG(p.toggle())}),e.TgZ(3,"i",3),e._uU(4,"calendar_today"),e.qZA()(),e.TgZ(5,"input",4,5),e.NdJ("ngModelChange",function(p){return o.selectDateChange.emit(p)}),e.qZA()(),e.YNc(7,$t,6,8,"div",6),e.YNc(8,St,8,3,"div",7),e.YNc(9,Zt,3,1,"button",8),e.qZA(),e.TgZ(10,"div",9)(11,"div",10)(12,"i",3),e._uU(13,"check_circle"),e.qZA(),e.TgZ(14,"span",11),e._uU(15),e.qZA()(),e.TgZ(16,"div",12)(17,"i",3),e._uU(18,"cancel"),e.qZA(),e.TgZ(19,"span",11),e._uU(20),e.qZA()(),e.TgZ(21,"div",13)(22,"i",3),e._uU(23,"help"),e.qZA(),e.TgZ(24,"span",11),e._uU(25),e.qZA()(),e.TgZ(26,"div",14)(27,"i",15),e._uU(28,"info"),e.qZA(),e.TgZ(29,"span",11),e._uU(30),e.qZA()()(),e.TgZ(31,"div",16)(32,"erz-resettable-input",17),e.NdJ("valueChange",function(p){return o.searchChange.emit(p)}),e.ALo(33,"translate"),e.ALo(34,"translate"),e.qZA(),e.TgZ(35,"div",18),e.YNc(36,Dt,6,16,"a",19),e.ALo(37,"async"),e.TgZ(38,"div",20),e.YNc(39,Et,3,8,"button",21),e.qZA()()()}2&n&&(e.xp6(5),e.Q6J("ngModel",o.selectDate),e.xp6(2),e.Q6J("ngIf",o.selectedLesson),e.xp6(1),e.Q6J("ngIf",o.selectedLesson),e.xp6(1),e.Q6J("ngIf",o.lessons.length>0),e.xp6(6),e.Oqu(null!==o.presentCount?o.presentCount:"?"),e.xp6(5),e.Oqu(null!==o.absentCount?o.absentCount:"?"),e.xp6(5),e.Oqu(null!==o.unapprovedCount?o.unapprovedCount:"?"),e.xp6(5),e.Oqu(null!==o.absentPrecedingCount?o.absentPrecedingCount:"?"),e.xp6(2),e.Q6J("value",o.search)("disabled",!o.selectedLesson)("placeholder",e.lcZ(33,14,"presence-control.header.search-by-name"))("label",e.lcZ(34,16,"presence-control.header.search")),e.xp6(4),e.Q6J("ngIf",e.lcZ(37,18,o.selectedLesson&&o.state.groupsAvailability$)),e.xp6(3),e.Q6J("ngForOf",o.viewModeOptions))},dependencies:[f.mk,f.sg,f.O5,x.Fj,x.JJ,x.On,L.rH,d.J4,d.jt,d.iD,d.Vi,d.TH,Ot.w,f.Ov,f.uU,m.X$],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;padding:.75rem 0}.navigation[_ngcontent-%COMP%]{display:grid;grid-template-areas:". date time dropdown-caret" ". description description dropdown-caret";grid-template-columns:1fr auto auto 1fr;align-items:center}.lesson-date[_ngcontent-%COMP%]{grid-area:date;justify-self:end;display:flex;align-items:center;justify-content:flex-end}.lesson-date[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:0 .5ch 0 0}.lesson-date[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#000;position:relative}.lesson-date-input[_ngcontent-%COMP%]{font-weight:600;background:transparent;border:none;width:11ch}.lesson-time[_ngcontent-%COMP%]{grid-area:time;cursor:pointer}.lesson-description[_ngcontent-%COMP%]{grid-area:description;overflow:hidden;text-align:center;cursor:pointer}.dropdown-toggle[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.dropdown-toggle[_ngcontent-%COMP%]:after{display:none}.dropdown-caret[_ngcontent-%COMP%]{grid-area:dropdown-caret;line-height:100%;text-align:left;color:#000}.dropdown-menu[_ngcontent-%COMP%]{width:50ch;padding:0;box-shadow:2px 2px 3px -1px #0003}@media (max-width: 800px){.dropdown-menu[_ngcontent-%COMP%]{width:100vw}}.dropdown-item[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid #dee2e6}.states[_ngcontent-%COMP%]{margin:.75rem 0;display:flex;justify-content:center}.state[_ngcontent-%COMP%]{margin-right:7%;display:flex}.state[_ngcontent-%COMP%]:last-child{margin-right:0}@media (min-width: 1000px){.state[_ngcontent-%COMP%]{margin-right:4rem}}.state.present[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#3d8608}.state.absent[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#d01018}.state.unapproved[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#ffa814}.state.previously-absent[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#00000080}.state[_ngcontent-%COMP%] .count[_ngcontent-%COMP%]{margin-left:.3em;margin-top:1px}.search-and-views[_ngcontent-%COMP%]{padding-top:.75rem;display:flex;justify-content:space-between;border-top:1px solid #dee2e6}.search[_ngcontent-%COMP%]{flex:auto;max-width:300px;margin-right:1rem}.views[_ngcontent-%COMP%]{display:flex}.view[_ngcontent-%COMP%]{color:#4e4e4ef2;background-color:#fff}.view.active[_ngcontent-%COMP%]{color:#fff;background-color:#4e4e4ef2;border:none}.group[_ngcontent-%COMP%], .view[_ngcontent-%COMP%]{text-decoration:none;padding-left:0;padding-right:0;aspect-ratio:1/1;width:calc(.75rem + 2 * var(--bs-border-width) + 1.625rem);border-radius:50%}.group.btn-link[_ngcontent-%COMP%]{color:#000}@media (max-width: 380px){[_nghost-%COMP%]{padding-left:.5rem;padding-right:.5rem}#search-addon[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem}}@media (max-width: 365px){.lesson-time[_ngcontent-%COMP%]{line-height:1}.lesson-time-to[_ngcontent-%COMP%]{display:block}.dropdown-caret[_ngcontent-%COMP%]{padding-left:0}}']})}return s})();var kt=r(500);function Rt(s,c){if(1&s&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"date"),e.ALo(3,"date"),e.ALo(4,"addSpace"),e.qZA()),2&s){const t=c.$implicit;e.xp6(1),e.xDo(" ",e.xi3(2,5,t.LessonRef.From,"HH:mm"),"\u2013",e.xi3(3,8,t.LessonRef.To,"HH:mm")," ",t.LessonRef.EventDesignation,"",e.xi3(4,11,":",":")," ",t.Type," ")}}let Nt=(()=>{class s{constructor(t){this.activeModal=t}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(d.Kz))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-preceding-absence"]],inputs:{precedingAbsences:"precedingAbsences"},decls:9,vars:7,consts:[[1,"modal-body"],[4,"ngFor","ngForOf"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,Rt,5,14,"div",1),e.qZA(),e.TgZ(5,"div",2)(6,"button",3),e.NdJ("click",function(){return o.activeModal.dismiss()}),e._uU(7),e.ALo(8,"translate"),e.qZA()()),2&n&&(e.xp6(2),e.hij(" ",e.lcZ(3,3,"presence-control.preceding-absence.text")," "),e.xp6(2),e.Q6J("ngForOf",o.precedingAbsences),e.xp6(3),e.hij(" ",e.lcZ(8,5,"presence-control.preceding-absence.cancel")," "))},dependencies:[f.sg,f.uU,m.X$,kt.u]})}return s})();var Jt=r(2628);const Bt=function(s){return["/presence-control/student",s,"absences"]};function Yt(s,c){if(1&s&&(e._UZ(0,"erz-avatar",8),e.ALo(1,"async")),2&s){const t=e.oxw();e.Q6J("studentId",e.lcZ(1,3,t.studentId$))("link",e.VKq(5,Bt,t.entry.lessonPresence.StudentRef.Id.toString()))("linkParams",t.profileReturnParams)}}function zt(s,c){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&s){const t=e.oxw(2);e.xp6(1),e.Oqu(null==t.entry.presenceType?null:t.entry.presenceType.Designation)}}function jt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"button",9),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.updatePresenceType(o.entry))}),e.YNc(1,zt,2,1,"span",10),e.qZA()}if(2&s){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=t.entry.presenceType&&t.entry.presenceType.IsIncident))}}function Ht(s,c){1&s&&e._UZ(0,"erz-spinner",15)}function Qt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.updatePresenceType(o.entry))}),e.TgZ(1,"div",12)(2,"i",13),e._uU(3),e.qZA(),e.YNc(4,Ht,1,0,"erz-spinner",14),e.qZA()()}if(2&s){const t=c.erzLet,n=e.oxw();e.Q6J("disabled",t),e.xp6(2),e.ekj("invisible",t),e.xp6(1),e.Oqu(n.entry.presenceCategoryIcon),e.xp6(1),e.Q6J("ngIf",t)}}function Kt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"button",16),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.showPrecedingAbsences(o.entry))}),e.TgZ(1,"i",17),e._uU(2,"info"),e.qZA()()}}function qt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"a",18),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.updateIncident(o.entry))}),e.TgZ(1,"i",13),e._uU(2,"edit"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&s){const t=e.oxw();e.xp6(4),e.Oqu(e.lcZ(5,1,(null==t.entry.presenceType?null:t.entry.presenceType.IsIncident)&&(null==t.entry.presenceType?null:t.entry.presenceType.Designation)||"presence-control.entry.incident"))}}const Wt=function(s){return["student",s,"absences"]};let Vt=(()=>{class s{get classNames(){return[this.entry.presenceCategory,this.viewMode].join(" ")}constructor(t,n,o,i){this.toastService=t,this.translate=n,this.modalService=o,this.loadingService=i,this.hasUnconfirmedAbsences=!1,this.togglePresenceType=new e.vpe,this.changeIncident=new e.vpe,this.entry$=new le.t(1),this.studentId$=this.entry$.pipe((0,l.U)(({lessonPresence:a})=>a.StudentRef.Id)),this.loading$=this.entry$.pipe((0,v.w)(a=>this.loadingService.loading(Me(a))))}ngOnChanges(t){t.entry&&this.entry$.next(t.entry.currentValue)}get isListViewMode(){return this.viewMode===Y.PW.List}updatePresenceType(t){t.canChangePresenceType?this.togglePresenceType.emit(t):this.toastService.warning(this.translate.instant("presence-control.entry.update-warning"))}updateIncident(t){t.canChangeIncident&&this.changeIncident.emit(t)}showPrecedingAbsences(t){this.modalService.open(Nt).componentInstance.precedingAbsences=t.precedingAbsences}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(pe.k),e.Y36(m.sK),e.Y36(d.FF),e.Y36(z.b))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-entry"]],hostVars:2,hostBindings:function(n,o){2&n&&e.Tol(o.classNames)},inputs:{entry:"entry",hasUnconfirmedAbsences:"hasUnconfirmedAbsences",viewMode:"viewMode",profileReturnParams:"profileReturnParams"},outputs:{togglePresenceType:"togglePresenceType",changeIncident:"changeIncident"},features:[e.TTD],decls:12,vars:15,consts:[["class","avatar large",3,"studentId","link","linkParams",4,"ngIf"],["type","button","class","presence-category designation btn btn-link",3,"click",4,"ngIf"],["type","button","class","presence-category status btn btn-link",3,"disabled","click",4,"erzLet"],["type","button","class","previously-absent btn btn-link",3,"click",4,"ngIf"],[1,"student-name",3,"routerLink","queryParams"],[1,"text-truncate"],[1,"unconfirmed-absences"],["class","incident btn btn-link",3,"click",4,"ngIf"],[1,"avatar","large",3,"studentId","link","linkParams"],["type","button",1,"presence-category","designation","btn","btn-link",3,"click"],[4,"ngIf"],["type","button",1,"presence-category","status","btn","btn-link",3,"disabled","click"],[1,"position-relative"],[1,"material-icons"],["class","inline small",4,"ngIf"],[1,"inline","small"],["type","button",1,"previously-absent","btn","btn-link",3,"click"],[1,"material-icons-outlined"],[1,"incident","btn","btn-link",3,"click"]],template:function(n,o){1&n&&(e.YNc(0,Yt,2,7,"erz-avatar",0),e.YNc(1,jt,2,1,"button",1),e.YNc(2,Qt,5,5,"button",2),e.ALo(3,"async"),e.YNc(4,Kt,3,0,"button",3),e.TgZ(5,"a",4)(6,"span",5),e._uU(7),e.qZA(),e.TgZ(8,"span",6),e._uU(9),e.ALo(10,"translate"),e.qZA()(),e.YNc(11,qt,6,3,"a",7)),2&n&&(e.Q6J("ngIf",!o.isListViewMode),e.xp6(1),e.Q6J("ngIf",o.entry.showDesignation),e.xp6(1),e.Q6J("erzLet",e.lcZ(3,9,o.loading$)),e.xp6(2),e.Q6J("ngIf",(null==o.entry.precedingAbsences?null:o.entry.precedingAbsences.length)>0),e.xp6(1),e.Q6J("routerLink",e.VKq(13,Wt,o.entry.lessonPresence.StudentRef.Id))("queryParams",o.profileReturnParams),e.xp6(2),e.Oqu(o.entry.lessonPresence.StudentFullName),e.xp6(2),e.hij(" ",o.hasUnconfirmedAbsences?e.lcZ(10,11,"presence-control.entry.unconfirmed-absences"):""," "),e.xp6(2),e.Q6J("ngIf",o.entry.canChangeIncident))},dependencies:[f.O5,L.rH,H.e,ue.O,Jt.A,f.Ov,m.X$],styles:['[_nghost-%COMP%]{padding:2rem 1rem;background-color:#fff;display:grid;grid-template-areas:"avatar status designation previously-absent" "avatar student-name student-name student-name" "avatar incident incident incident";grid-template-columns:min-content min-content 3fr min-content}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{align-self:center}.presence-category[_ngcontent-%COMP%]{text-decoration:none}.presence-category[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{top:.1875rem}.absent[_nghost-%COMP%] .presence-category[_ngcontent-%COMP%]{color:#d01018}.present[_nghost-%COMP%] .presence-category[_ngcontent-%COMP%]{color:#3d8608}.unapproved[_nghost-%COMP%] .presence-category[_ngcontent-%COMP%]{color:#ffa814}.presence-category[_ngcontent-%COMP%] erz-spinner[_ngcontent-%COMP%]{color:#000;position:absolute;top:4px;left:5px}.designation[_ngcontent-%COMP%], .student-name[_ngcontent-%COMP%], a.incident[_ngcontent-%COMP%], .incident[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.avatar[_ngcontent-%COMP%]{grid-area:avatar;margin-right:1.5rem}.status[_ngcontent-%COMP%]{grid-area:status}.status[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:2rem}.designation[_ngcontent-%COMP%]{grid-area:designation;text-align:left;line-height:2.375rem}.previously-absent[_ngcontent-%COMP%]{grid-area:previously-absent;text-decoration:none;color:#00000080;justify-self:end}.student-name[_ngcontent-%COMP%]{grid-area:student-name;display:flex;flex-direction:column;text-decoration:none}.student-name[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{text-decoration:underline}.student-name[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child:hover{text-decoration-color:#ea161f}.unconfirmed-absences[_ngcontent-%COMP%]{color:#d01018;font-size:.875rem;line-height:1}.incident[_ngcontent-%COMP%]{color:#00000080;padding-right:1.5rem;grid-area:incident;display:flex;text-decoration:none}.incident[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:underline}.incident[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{text-decoration-color:#ea161f}.incident[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:.3em}.grid[_nghost-%COMP%] .status[_ngcontent-%COMP%], .grid[_nghost-%COMP%] .designation[_ngcontent-%COMP%]{align-self:start;margin-left:-1.5rem;margin-top:-.375rem}.grid[_nghost-%COMP%] .incident[_ngcontent-%COMP%]{align-self:end;margin-left:-1.5rem;margin-bottom:-.375rem}.grid[_nghost-%COMP%] .previously-absent[_ngcontent-%COMP%]{padding-right:0;align-self:start}.grid[_nghost-%COMP%] .unconfirmed-absences[_ngcontent-%COMP%]{height:.875rem}.list[_nghost-%COMP%]{grid-template-areas:"student-name status designation incident previously-absent";grid-template-columns:3fr min-content 3fr 2fr 3em;padding:.5rem .5rem .5rem 1rem}.list[_nghost-%COMP%] .status[_ngcontent-%COMP%]{justify-self:start}@media (max-width: 750px){.list[_nghost-%COMP%]{grid-template-areas:"student-name student-name student-name previously-absent" "status incidentordesignation incidentordesignation incidentordesignation";grid-template-columns:min-content 1fr 1fr min-content;row-gap:1rem}.list[_nghost-%COMP%] .status[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.list[_nghost-%COMP%] .incident[_ngcontent-%COMP%], .list[_nghost-%COMP%] .designation[_ngcontent-%COMP%]{grid-area:incidentordesignation}.list[_nghost-%COMP%] .incident[_ngcontent-%COMP%]{justify-self:end}.list[_nghost-%COMP%] .previously-absent[_ngcontent-%COMP%]{padding-top:0;align-self:start}}']})}return s})();const Xt=function(s){return{returnparams:s}};function en(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"erz-presence-control-entry",7),e.NdJ("togglePresenceType",function(o){e.CHM(t);const i=e.oxw(5);return e.KtG(i.togglePresenceType(o))})("changeIncident",function(o){e.CHM(t);const i=e.oxw(5);return e.KtG(i.changeIncident(o))}),e.ALo(1,"async"),e.ALo(2,"async"),e.ALo(3,"async"),e.qZA()}if(2&s){const t=c.$implicit,n=e.oxw(5);e.Q6J("entry",t)("hasUnconfirmedAbsences",e.lcZ(1,4,n.state.hasUnconfirmedAbsences(t)))("viewMode",e.lcZ(2,6,n.state.viewMode$))("profileReturnParams",e.VKq(10,Xt,e.lcZ(3,8,n.state.queryParamsString$)))}}function tn(s,c){if(1&s&&(e.ynx(0),e.TgZ(1,"div"),e.ALo(2,"async"),e.YNc(3,en,4,12,"erz-presence-control-entry",6),e.qZA(),e.BQk()),2&s){const t=e.oxw(3).erzLet,n=e.oxw();e.xp6(1),e.Gre("default-entries entries view-mode-",e.lcZ(2,4,n.state.viewMode$),""),e.xp6(2),e.Q6J("ngForOf",t.entries)}}function nn(s,c){1&s&&(e.TgZ(0,"p",8),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"presence-control.no-lesson-presences")," "))}function sn(s,c){if(1&s&&(e.ynx(0),e.YNc(1,tn,4,6,"ng-container",1),e.YNc(2,nn,3,3,"ng-template",null,5,e.W1O),e.BQk()),2&s){const t=e.MAs(3),n=e.oxw(2).erzLet;e.xp6(1),e.Q6J("ngIf",(null==n.entries?null:n.entries.length)>0)("ngIfElse",t)}}function on(s,c){1&s&&(e.TgZ(0,"p",8),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"presence-control.no-lessons")))}function rn(s,c){if(1&s){const t=e.EpF();e.ynx(0),e.TgZ(1,"erz-presence-control-header",3),e.NdJ("searchChange",function(o){e.CHM(t);const i=e.oxw(2);return e.KtG(i.search$.next(o))})("viewModeChange",function(o){e.CHM(t);const i=e.oxw(2);return e.KtG(i.state.setViewMode(o))})("selectDateChange",function(o){e.CHM(t);const i=e.oxw(2);return e.KtG(i.state.setDate(o))})("selectLessonChange",function(o){e.CHM(t);const i=e.oxw(2);return e.KtG(i.state.setLessonId(o.id))}),e.ALo(2,"async"),e.ALo(3,"async"),e.ALo(4,"async"),e.ALo(5,"async"),e.ALo(6,"async"),e.ALo(7,"async"),e.ALo(8,"async"),e.qZA(),e.YNc(9,sn,4,2,"ng-container",1),e.YNc(10,on,3,3,"ng-template",null,4,e.W1O),e.BQk()}if(2&s){const t=e.MAs(11),n=e.oxw().erzLet,o=e.oxw();e.xp6(1),e.Q6J("selectedLesson",n.lesson)("lessons",n.lessons)("presentCount",e.lcZ(2,11,o.state.presentCount$))("absentCount",e.lcZ(3,13,o.state.absentCount$))("unapprovedCount",e.lcZ(4,15,o.state.unapprovedCount$))("absentPrecedingCount",e.lcZ(5,17,o.state.absentPrecedingCount$))("viewMode",e.lcZ(6,19,o.state.viewMode$))("selectDate",e.lcZ(7,21,o.state.selectedDate$))("search",e.lcZ(8,23,o.search$)),e.xp6(8),e.Q6J("ngIf",n.lesson)("ngIfElse",t)}}function cn(s,c){1&s&&e._UZ(0,"erz-spinner")}function an(s,c){if(1&s&&(e.ynx(0),e.YNc(1,rn,12,25,"ng-container",1),e.ALo(2,"async"),e.YNc(3,cn,1,0,"ng-template",null,2,e.W1O),e.BQk()),2&s){const t=e.MAs(4),n=e.oxw();e.xp6(1),e.Q6J("ngIf",!1===e.lcZ(2,2,n.state.loading$))("ngIfElse",t)}}const ln=function(s,c,t){return{lesson:s,lessons:c,entries:t}};let dn=(()=>{class s{constructor(t,n,o,i,a,p,u){this.state=t,this.blockLessons=n,this.lessonPresencesUpdateService=o,this.presenceTypesService=i,this.modalService=a,this.scrollPosition=p,this.route=u,this.search$=new O.X(""),this.entries$=(0,_.a)([this.state.presenceControlEntriesByGroup$,this.search$]).pipe((0,l.U)((0,$.h)(at.P)),(0,y.d)(1)),this.destroy$=new M.x}ngOnInit(){this.route.queryParams.pipe((0,S.R)(this.destroy$)).subscribe(this.restoreStateFromParams.bind(this))}ngAfterViewInit(){this.scrollPosition.restore()}ngOnDestroy(){this.destroy$.next()}doTogglePresenceType(t){t.forEach(n=>this.state.getNextPresenceType(n).subscribe(o=>this.lessonPresencesUpdateService.updatePresenceType(n,o?o.Id:null)))}togglePresenceType(t){this.blockLessons.getBlockLessonPresenceControlEntries(t).pipe((0,P.q)(1)).subscribe(n=>{if(1===n.length)this.doTogglePresenceType([n[0]]);else{const o=this.modalService.open(gt);o.componentInstance.entry=t,o.componentInstance.blockPresenceControlEntries=n,o.result.then(i=>{i&&this.doTogglePresenceType(i)},()=>{})}})}updateIncident(t,n){this.lessonPresencesUpdateService.updatePresenceType(t,n)}changeIncident(t){this.presenceTypesService.incidentTypes$.subscribe(n=>{const o=this.modalService.open(ft);o.componentInstance.incident=n.find(i=>i.Id===t.presenceType?.Id)||null,o.componentInstance.incidentTypes=n,o.result.then(i=>{this.updateIncident(t,i?.Id||null)},()=>{})})}restoreStateFromParams(t){t.date&&this.state.setDate((0,ht.nx)(t.date));const n=String(t.lesson);n&&this.state.setLessonId(n),t.viewMode&&qe.includes(t.viewMode)&&this.state.setViewMode(t.viewMode)}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(Z),e.Y36(Le),e.Y36(Ae),e.Y36(ae.c),e.Y36(d.FF),e.Y36(Lt.X),e.Y36(L.gz))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-list"]],decls:7,vars:14,consts:[[4,"erzLet"],[4,"ngIf","ngIfElse"],["loading",""],[3,"selectedLesson","lessons","presentCount","absentCount","unapprovedCount","absentPrecedingCount","viewMode","selectDate","search","searchChange","viewModeChange","selectDateChange","selectLessonChange"],["noLessons",""],["noLessonPresences",""],[3,"entry","hasUnconfirmedAbsences","viewMode","profileReturnParams","togglePresenceType","changeIncident",4,"ngFor","ngForOf"],[3,"entry","hasUnconfirmedAbsences","viewMode","profileReturnParams","togglePresenceType","changeIncident"],[1,"mt-3"]],template:function(n,o){1&n&&(e.TgZ(0,"h1"),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.YNc(3,an,5,4,"ng-container",0),e.ALo(4,"async"),e.ALo(5,"async"),e.ALo(6,"async")),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,2,"presence-control.title")),e.xp6(2),e.Q6J("erzLet",e.kEZ(10,ln,e.lcZ(4,4,o.state.selectedLesson$),e.lcZ(5,6,o.state.lessons$),e.lcZ(6,8,o.entries$))))},dependencies:[f.sg,f.O5,H.e,ue.O,Gt,Vt,f.Ov,m.X$],styles:["erz-presence-control-entry[_ngcontent-%COMP%]{border-bottom:1px solid #dee2e6}.entries.view-mode-grid[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}@media (min-width: 400px){.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%;border-right:1px solid #dee2e6}}@media (min-width: 800px){.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:50%;border-right:1px solid #dee2e6}}@media (min-width: 1200px){.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:33.3333333333%;border-right:1px solid #dee2e6}}@media (min-width: 1600px){.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:25%;border-right:1px solid #dee2e6}}@media (min-width: 2000px){.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:20%;border-right:1px solid #dee2e6}}@media (min-width: 2400px){.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:16.6666666667%;border-right:1px solid #dee2e6}}[_nghost-%COMP%]{display:block;overflow:hidden;width:100%}.entries.view-mode-grid[_ngcontent-%COMP%]{width:calc(100% + 1px)}"],changeDetection:0})}return s})();var pn=r(6163);const un=[{path:"",component:(()=>{class s{constructor(t,n){this.state=t,this.lessonPresencesUpdateService=n,this.destroy$=new M.x}ngOnInit(){this.lessonPresencesUpdateService.stateUpdates$.pipe((0,S.R)(this.destroy$)).subscribe(t=>this.state.updateLessonPresencesTypes(t))}ngOnDestroy(){this.destroy$.next()}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(Z),e.Y36(Ae))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control"]],features:[e._Bn([Z,Le,j,{provide:pn.m,useExisting:Z}])],decls:1,vars:0,template:function(n,o){1&n&&e._UZ(0,"router-outlet")},dependencies:[L.lC],changeDetection:0})}return s})(),children:[{path:"",component:dn,data:{restoreScrollPositionFrom:["/presence-control/student/:id/addresses","/presence-control/student/:id/absences","/presence-control/student/:id/grades"]}},K.H,{path:"groups/:id",component:ct}]}];let gn=(()=>{class s{static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275mod=e.oAB({type:s});static#n=this.\u0275inj=e.cJS({imports:[L.Bz.forChild(un),L.Bz]})}return s})();var hn=r(8393);let mn=(()=>{class s{static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275mod=e.oAB({type:s});static#n=this.\u0275inj=e.cJS({providers:[hn.o],imports:[I.m,gn]})}return s})()},412:(Ze,R,r)=>{r.d(R,{X:()=>N});var I=r(1523),L=r(8645),K=r(2096),O=r(2181),_=r(7398),A=r(8180),l=r(1631),P=r(4664),v=r(2689),$=r(7081),w=r(9773),q=r(836),D=r(5879),e=r(6814);let N=(()=>{class b{constructor(g,d){this.router=g,this.viewportScroller=d,this.scrollPositions={},this.previousRoute=null,this.currentRoute=null,this.currentScrollPosition=[0,0],this.destroy$=new L.x,this.scrollPosition$=this.router.events.pipe((0,O.h)(V),(0,_.U)(this.getScrollPosition.bind(this))),this.activationEnd$=this.router.events.pipe((0,O.h)(W)),this.navigationEnd$=this.router.events.pipe((0,O.h)(X)),this.route$=this.activationEnd$.pipe((0,A.q)(1)).pipe((0,l.z)(m=>[(0,K.of)(m),this.navigationEnd$.pipe((0,P.w)(()=>this.activationEnd$.pipe((0,A.q)(1))))]),(0,v.B)(),(0,_.U)(m=>m.snapshot),(0,$.d)(1)),this.scrollPosition$.pipe((0,w.R)(this.destroy$)).subscribe(m=>this.currentScrollPosition=m),this.route$.pipe((0,w.R)(this.destroy$)).subscribe(m=>{this.previousRoute=this.currentRoute,this.currentRoute=m})}ngOnDestroy(){this.destroy$.next()}restore(){if(!this.currentRoute||!this.requiresStoring(this.currentRoute))return;if(this.previousRoute&&this.shouldStoreFor(this.currentRoute,this.previousRoute)){const d=this.getPath(this.currentRoute);this.scrollToPosition(this.scrollPositions[d]||[0,0])}const g=this.currentRoute;this.route$.pipe((0,q.T)(1),(0,A.q)(1),(0,w.R)(this.destroy$),(0,O.h)(d=>this.shouldStoreFor(g,d))).subscribe(()=>{const d=this.getPath(g);this.scrollPositions[d]=this.currentScrollPosition})}getScrollPosition(){return this.viewportScroller.getScrollPosition()}scrollToPosition(g){this.viewportScroller.scrollToPosition(g)}getPath(g){return g?"/"+g.pathFromRoot.map(d=>d.routeConfig&&d.routeConfig.path).filter(d=>d).join("/"):"/"}requiresStoring(g){return!!(g&&g.routeConfig&&g.routeConfig.data&&Array.isArray(g.routeConfig.data.restoreScrollPositionFrom)&&g.routeConfig.data.restoreScrollPositionFrom.length>0)}shouldStoreFor(g,d){return(g&&g.routeConfig&&g.routeConfig.data&&Array.isArray(g.routeConfig.data.restoreScrollPositionFrom)?g.routeConfig.data.restoreScrollPositionFrom:[]).includes(this.getPath(d))}static#e=this.\u0275fac=function(d){return new(d||b)(D.LFG(I.F0),D.LFG(e.EM))};static#t=this.\u0275prov=D.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})();function W(b){return b instanceof I.jw}function V(b){return b instanceof I.OD}function X(b){return b instanceof I.m2}}}]); \ No newline at end of file +"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[373],{3373:(Ze,R,r)=>{r.r(R),r.d(R,{PresenceControlModule:()=>fn});var I=r(6486),L=r(1523),K=r(1162),T=r(5619),_=r(2572),A=r(9315),l=r(7398),P=r(8180),v=r(4664),$=r(1389),w=r(1342),D=r(6561),e=r(5879);let N=(()=>{class s extends D.z{static#e=this.\u0275fac=function(){let t;return function(o){return(t||(t=e.n5z(s)))(o||s)}}();static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac})}return s})();function W(s,c){return[...s].sort(function V(s){return(c,t)=>{switch(s.primarySortKey){case"name":{const n=c.name.localeCompare(t.name);return s.ascending?-1*n:n}case"group":{const n=(c.detail.Value||"").localeCompare(t.detail.Value||"");return s.ascending?-1*n:n}}}}(c))}function X(s,c){return s.map(t=>function b(s,c){return{id:s.IdPerson,name:c.find(t=>t.StudentRef.Id===s.IdPerson)?.StudentFullName||"",group:s.Value,detail:s}}(t,c))}function g(s,c){return s.find(t=>t.VssId===c.subscriptionDetailGroupId)}var d=r(253),m=r(9515),f=r(6814),x=r(6223);function we(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",5)(1,"input",6),e.NdJ("change",function(){const i=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.onSelectionChange(i))}),e.qZA(),e.TgZ(2,"label",7),e._uU(3),e.qZA()()}if(2&s){const t=c.$implicit,n=c.index,o=e.oxw();e.xp6(1),e.MGl("id","group-",n,""),e.Q6J("checked",t.id===o.selected.id)("value",t.id),e.xp6(1),e.MGl("for","group-",n,""),e.xp6(1),e.hij(" ",t.label," ")}}var J=function(s){return s.Select="select",s.Assign="assign",s}(J||{});let Ue=(()=>{class s{constructor(t,n){this.activeModal=t,this.translate=n,this.groupOptions=[]}ngOnInit(){this.title=`presence-control.groups.${this.dialogMode}.title`;const t=this.createEmtpyOption();this.groupOptions=this.createGroupOptions(this.subscriptionDetailsDefinitions),this.groupOptions.unshift(t),this.selected=this.groupOptions.find(n=>n.id===this.group)||t}createEmtpyOption(){return{id:null,label:this.translate.instant(this.dialogMode===J.Select?"presence-control.groups.all":"presence-control.groups.none")}}createGroupOptions(t){return t.DropdownItems?t.DropdownItems.map(n=>({id:n.Key,label:`${this.translate.instant("presence-control.groups.group")} ${n.Value}`})):[]}getSelectedGroup(){return this.selected}onSelectionChange(t){this.selected=t}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(d.Kz),e.Y36(m.sK))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-group-dialog"]],inputs:{dialogMode:"dialogMode",subscriptionDetailsDefinitions:"subscriptionDetailsDefinitions",group:"group"},decls:13,vars:10,consts:[[1,"modal-body"],["class","form-check",4,"ngFor","ngForOf"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-primary",3,"click"],[1,"form-check"],["type","radio","name","groups",1,"form-check-input",3,"id","checked","value","change"],[1,"form-check-label",3,"for"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"form"),e.YNc(5,we,4,5,"div",1),e.qZA()(),e.TgZ(6,"div",2)(7,"button",3),e.NdJ("click",function(){return o.activeModal.dismiss()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",4),e.NdJ("click",function(){return o.activeModal.close(o.getSelectedGroup())}),e._uU(11),e.ALo(12,"translate"),e.qZA()()),2&n&&(e.xp6(2),e.hij(" ",e.lcZ(3,4,o.title)," "),e.xp6(3),e.Q6J("ngForOf",o.groupOptions),e.xp6(3),e.hij(" ",e.lcZ(9,6,"presence-control.groups.cancel")," "),e.xp6(3),e.hij(" ",e.lcZ(12,8,"presence-control.groups.save")," "))},dependencies:[f.sg,x._Y,x.JL,x.F,m.X$]})}return s})();var De=r(9189),Ee=r(5301),ee=r(8658),te=r(2194),M=r(8645),z=r(3019),E=r(2096),Fe=r(4825),ne=r(3997),y=r(7081),ge=r(836),S=r(9773),se=r(2181),U=r(4141),Ge=r(6191),he=r(4067),oe=r(8484);function Ne(s){return{Id:s?s.Id:null,HRef:null}}var me=r(6747);function ie(s){return c=>c.reduce((t,n)=>t+(n.presenceCategory===s?1:0),0)}var B=r(3786),re=r(7105),ce=r(7938),fe=r(7575),_e=r(8366),ze=r(275),Ce=r(8952),ve=r(9862);let Be=(()=>{class s extends _e.v{constructor(t,n){super(t,n,Ce.C,"LessonTeachers")}loadOtherTeachersLessonAbsences(t,n,o){let i=`${this.baseUrl}/except/${t}/LessonAbsences?expand=LessonRef`;return n&&n.length>0&&(i=i.concat("&filter.StudentRef=;"+n.join(";"))),this.http.get(i,{params:o}).pipe((0,v.w)((0,ze.Y0)(Ce.C)))}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(ve.eN),e.LFG(U.L6))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var ae=r(905),le=r(7328),de=r(7921),Pe=r(6055),Ye=r(654),je=r(3219),He=r(6514);let ye=(()=>{class s extends _e.v{constructor(t,n){super(t,n,He.t,"SubscriptionDetails")}getListForEvent(t){return this.getList({params:{IdEvent:String(t)}})}update(t,n){return this.http.put(`${this.baseUrl}/${n.Id}`,{IdPerson:n.IdPerson,EventId:n.EventId,Value:t}).pipe((0,l.U)(()=>{}))}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(ve.eN),e.LFG(U.L6))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var Y=r(3005);const be="presence-control-group";let j=(()=>{class s{constructor(t,n,o,i,a,p){this.userSettings=t,this.eventService=n,this.subscriptionService=o,this.subscriptionDetailsService=i,this.loadingService=a,this.settings=p,this.selectGroup$=new M.x,this.selectedLesson$=new le.t,this.lessonPresences$=new le.t,this.reloadSubscriptionDetails$=new M.x,this.defaultGroup=null,this.savedGroup$=this.selectedLesson$.pipe((0,v.w)(u=>this.userSettings.getPresenceControlGroupView().pipe((0,l.U)(C=>this.findGroupByLesson(C,u))))),this.group$=(0,z.T)(this.selectGroup$,this.savedGroup$).pipe((0,de.O)(this.defaultGroup),(0,y.d)(1)),this.loading$=this.loadingService.loading(be),this.subscriptionDetailsDefinitions$=this.selectedLesson$.pipe((0,l.U)(u=>u?.getEventIds()||[]),(0,v.w)(u=>(0,A.D)(u.map(C=>this.eventService.getSubscriptionDetailsDefinitions(C)))),(0,y.d)(1)),this.groupsAvailability$=this.subscriptionDetailsDefinitions$.pipe((0,l.U)(u=>u.every(C=>g(C,this.settings))),(0,y.d)(1)),this.subscriptionDetails$=(0,_.a)([this.selectedLesson$,this.groupsAvailability$,this.reloadSubscriptionDetails$.pipe((0,l.U)(()=>!1),(0,de.O)(!0))]).pipe((0,v.w)(([u,C,O])=>u&&C?this.loadSubscriptionDetailsForLesson(u,O):(0,E.of)([])),(0,l.U)(u=>function Ie(s,c){return s.filter(t=>t.VssId===c.subscriptionDetailGroupId)}(u,this.settings)),(0,y.d)(1)),this.subscriptionDetailPersonIds$=(0,_.a)([this.group$,this.subscriptionDetails$]).pipe((0,l.U)(([u,C])=>C.filter(O=>O.Value===u).map(O=>O.IdPerson)),(0,de.O)([]))}selectGroup(t){this.selectGroup$.next(t)}setSelectedLesson(t){this.selectedLesson$.next(t)}setLessonPresences(t){this.lessonPresences$.next(t)}getSubscriptionDetailsDefinitions(){return this.subscriptionDetailsDefinitions$.pipe((0,l.U)(Pe.Z),(0,l.U)(t=>g(t,this.settings)))}getSubscriptionDetailsForStudents(){return(0,_.a)([this.subscriptionDetails$,this.lessonPresences$]).pipe((0,l.U)((0,$.h)(X)))}reloadSubscriptionDetails(){this.reloadSubscriptionDetails$.next(void 0)}loadSubscriptionDetailsForLesson(t,n=!0){return this.loadingService.load((0,A.D)((0,te.Z)(t.getEventIds()).map(o=>this.subscriptionDetailsService.getListForEvent(o))),n?void 0:be).pipe((0,l.U)(Pe.Z))}findGroupByLesson(t,n){return t.find(i=>i.eventId===n?.getEventIds()[0])?.group||this.defaultGroup}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(ce.s),e.LFG(Ye.O),e.LFG(je.o),e.LFG(ye),e.LFG(Y.b),e.LFG(U.L6))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac})}return s})();var Qe=r(5001),Ke=r(8173);const qe=Object.values(B.PW);let Z=(()=>{class s{constructor(t,n,o,i,a,p,u,C,O,G){this.userSettings=t,this.lessonPresencesService=n,this.lessonTeacherService=o,this.presenceTypesService=i,this.groupService=a,this.dropDownItemsService=p,this.loadingService=u,this.storageService=C,this.settings=O,this.location=G,this.selectedDateSubject$=new T.X(new Date),this.selectedDate$=this.selectedDateSubject$.asObservable().pipe((0,l.U)(De.Z),(0,ne.x)(ee.Z)),this.viewModeSubject$=new M.x,this.viewMode$=(0,z.T)(this.viewModeSubject$,this.userSettings.getPresenceControlViewMode().pipe((0,P.q)(1))),this.lessons$=this.selectedDate$.pipe((0,v.w)(h=>this.loadLessonsByDate(h)),(0,y.d)(1)),this.selectLessonId$=new M.x,this.selectLesson$=this.selectLessonId$.pipe((0,v.w)(h=>this.getLessonById(h))),this.selectedLesson$=(0,_.a)([(0,re.eG)(this.selectLesson$.pipe((0,ne.x)((h,k)=>(0,ee.Z)(h,k))),(0,re.re)(this.settings.lessonPresencesRefreshTime)),this.lessons$]).pipe((0,l.U)(([h,k])=>k.find(_n=>_n.id===h.id)?h:null),(0,y.d)(1)),this.updateLessonPresences$=new M.x,this.lessonPresences$=(0,z.T)(this.selectedLesson$.pipe((0,v.w)(h=>h?this.loadLessonPresencesByLesson(h):(0,E.of)([]))),this.updateLessonPresences$).pipe((0,y.d)(1)),this.presenceTypes$=this.loadPresenceTypes().pipe((0,y.d)(1)),this.studentIdsWithUnconfirmedAbsences$=(0,re.eG)(this.selectedDate$,this.selectedLesson$.pipe((0,ge.T)(1))).pipe((0,v.w)(()=>this.loadStudentIdsWithUnconfirmedAbsences()),(0,y.d)(1)),this.loading$=this.loadingService.loading$,this.absenceConfirmationStates$=this.dropDownItemsService.getAbsenceConfirmationStates().pipe((0,y.d)(1)),this.studentIds$=this.lessonPresences$.pipe((0,l.U)(h=>(0,te.Z)(h.map(k=>k.StudentRef.Id))),(0,y.d)(1)),this.otherTeachersAbsences$=this.studentIds$.pipe((0,ne.x)(ee.Z),(0,v.w)(h=>h.length>0?this.lessonTeacherService.loadOtherTeachersLessonAbsences(this.getMyself(),h):(0,E.of)([])),(0,y.d)(1)),this.groupsAvailability$=this.groupService.groupsAvailability$,this.presenceControlEntries$=(0,_.a)([this.selectedLesson$,this.lessonPresences$,this.presenceTypes$,this.absenceConfirmationStates$,this.otherTeachersAbsences$]).pipe((0,l.U)((0,$.h)(me.bL))),this.presenceControlEntriesByGroup$=(0,_.a)([this.groupService.group$,this.presenceControlEntries$,this.groupService.subscriptionDetailPersonIds$]).pipe((0,l.U)((0,$.h)(Ge.C)),(0,y.d)(1)),this.presentCount$=this.presenceControlEntriesByGroup$.pipe((0,l.U)(ie("present"))),this.absentCount$=this.presenceControlEntriesByGroup$.pipe((0,l.U)(ie("absent"))),this.unapprovedCount$=this.presenceControlEntriesByGroup$.pipe((0,l.U)(ie("unapproved"))),this.absentPrecedingCount$=this.presenceControlEntriesByGroup$.pipe((0,l.U)(s=>s.reduce((c,t)=>c+(t.precedingAbsences&&t.precedingAbsences.length>0?1:0),0))),this.queryParamsString$=(0,_.a)([this.selectedDate$,this.selectedLesson$,this.viewMode$]).pipe((0,l.U)((0,$.h)(this.buildQueryParams.bind(this))),(0,l.U)(w.tW)),this.destroy$=new M.x,this.queryParamsString$.pipe((0,S.R)(this.destroy$)).subscribe(h=>{this.location.replaceState("/presence-control",h),this.confirmBackLinkParams={returnparams:h}}),this.viewMode$.pipe((0,ge.T)(1),(0,v.w)(h=>this.userSettings.savePresenceControlViewMode(h)),(0,S.R)(this.destroy$)).subscribe(),this.selectedLesson$.pipe((0,S.R)(this.destroy$)).subscribe(h=>{this.groupService.setSelectedLesson(h)}),this.lessonPresences$.pipe((0,S.R)(this.destroy$)).subscribe(h=>this.groupService.setLessonPresences(h))}ngOnDestroy(){this.destroy$.next()}setDate(t){this.selectedDateSubject$.next(t)}setLessonId(t){this.selectLessonId$.next(t)}setViewMode(t){this.viewModeSubject$.next(t)}updateLessonPresencesTypes(t){(0,_.a)([this.lessonPresences$.pipe((0,P.q)(1)),this.presenceTypes$.pipe((0,P.q)(1))]).pipe((0,l.U)(([n,o])=>function ke(s,c,t,n){return s.map(o=>{const i=c.find(a=>function Re(s,c){return s.LessonRef.Id===c.LessonRef.Id&&s.StudentRef.Id===c.StudentRef.Id}(a.presence,o));if(i){let a;return a=!i.newPresenceTypeId&&o.Comment?t.find(p=>p.IsComment)||null:t.find(p=>p.Id===i.newPresenceTypeId)||null,{...o,TypeRef:Ne(a),Date:null,Type:a?a.Designation:null,ConfirmationStateId:(0,oe.LO)(a,n)}}return o})}(n,t,o,this.settings))).subscribe(n=>this.updateLessonPresences$.next(n))}getNextPresenceType(t){return this.presenceTypes$.pipe((0,P.q)(1),(0,l.U)(n=>t.getNextPresenceType(n)))}hasUnconfirmedAbsences(t){return this.studentIdsWithUnconfirmedAbsences$.pipe((0,l.U)(n=>n.includes(t.lessonPresence.StudentRef.Id)))}loadLessonPresencesByLesson(t){return this.loadingService.load(this.lessonPresencesService.getListByLessons(t.lessons))}loadLessonsByDate(t){return this.loadingService.load(this.lessonPresencesService.getLessonsByDate(t)).pipe((0,l.U)(he.sm))}loadPresenceTypes(){return this.loadingService.load(this.presenceTypesService.presenceTypes$)}loadStudentIdsWithUnconfirmedAbsences(){return(0,Fe.H)(0,this.settings.unconfirmedAbsencesRefreshTime||-1).pipe((0,v.w)(()=>this.lessonPresencesService.getListOfUnconfirmed()),(0,l.U)(t=>(0,te.Z)(t.map(n=>n.StudentRef.Id))))}buildQueryParams(t,n,o){const i={date:(0,Ee.Z)(t,"yyyy-MM-dd"),viewMode:o};return n&&(i.lesson=String(n.id)),i}getLessonById(t){const n=String(t);return this.lessons$.pipe((0,l.U)(o=>n&&o.find(i=>i.id===n)||(0,he.S9)(o)),(0,se.h)(Boolean))}getMyself(){const t=this.storageService.getPayload();return Number(t?.holder_id||t?.id_person)}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(ce.s),e.LFG(fe.q),e.LFG(Be),e.LFG(ae.c),e.LFG(j),e.LFG(Qe.R),e.LFG(Y.b),e.LFG(Ke.V),e.LFG(U.L6),e.LFG(f.Ye))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac})}return s})();var pe=r(6869),H=r(6567),ue=r(59),We=r(7625);function Ve(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",13),e.NdJ("click",function(){const i=e.CHM(t).$implicit,a=e.oxw(2);return e.KtG(a.toggleSort(i))}),e._uU(1),e.ALo(2,"translate"),e.TgZ(3,"span",14),e._uU(4),e.qZA()()}if(2&s){const t=c.$implicit,n=e.oxw().erzLet,o=e.oxw();e.Q6J("className",t),e.xp6(1),e.hij(" ",e.lcZ(2,3,"presence-control.groups.list.header."+t)," "),e.xp6(3),e.Oqu(o.getSortDirectionCharacter(n.sortCriteria,t))}}function Xe(s,c){1&s&&e._UZ(0,"erz-spinner",23)}function et(s,c){if(1&s){const t=e.EpF();e.ynx(0),e.TgZ(1,"div",16)(2,"div",17)(3,"input",18,19),e.NdJ("change",function(){const i=e.CHM(t).$implicit,a=e.oxw(3);return e.KtG(a.selectionService.toggle(i))}),e.ALo(5,"async"),e.qZA()(),e.TgZ(6,"div",20),e._uU(7),e.qZA(),e.TgZ(8,"div",21)(9,"span"),e._uU(10),e.qZA(),e.YNc(11,Xe,1,0,"erz-spinner",22),e.ALo(12,"async"),e.qZA()(),e.BQk()}if(2&s){const t=c.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("checked",e.lcZ(5,4,n.selectionService.isSelected$(t))),e.xp6(4),e.hij(" ",t.name," "),e.xp6(3),e.Oqu(t.group?t.group:""),e.xp6(1),e.Q6J("ngIf",e.lcZ(12,6,n.groupService.loading$))}}function tt(s,c){if(1&s&&(e.ynx(0),e.YNc(1,et,13,8,"ng-container",15),e.BQk()),2&s){const t=e.oxw().erzLet;e.xp6(1),e.Q6J("ngForOf",t.sortedEntries)}}function nt(s,c){1&s&&e._UZ(0,"erz-spinner")}const st=function(){return["/presence-control"]},ot=function(){return["name","group"]};function it(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div"),e._UZ(1,"erz-backlink",1),e.ALo(2,"async"),e.TgZ(3,"h1"),e._uU(4),e.ALo(5,"translate"),e.qZA(),e.TgZ(6,"div",2)(7,"div",3)(8,"span",4),e._uU(9),e.ALo(10,"translate"),e.qZA(),e.TgZ(11,"button",5),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.selectGroup())}),e._uU(12),e.ALo(13,"translate"),e.ALo(14,"translate"),e.qZA()(),e.TgZ(15,"a",6),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.assignGroup())}),e.TgZ(16,"i",7),e._uU(17,"edit"),e.qZA()()(),e.TgZ(18,"div",8)(19,"div",9),e.YNc(20,Ve,5,5,"div",10),e.qZA(),e.YNc(21,tt,2,1,"ng-container",11),e.ALo(22,"async"),e.YNc(23,nt,1,0,"ng-template",null,12,e.W1O),e.qZA()()}if(2&s){const t=c.erzLet,n=e.MAs(24),o=e.oxw();e.xp6(1),e.Q6J("routerLink",e.DdM(22,st))("queryParams",e.lcZ(2,10,o.backlinkQueryParams$)),e.xp6(3),e.Oqu(e.lcZ(5,12,"presence-control.groups.title")),e.xp6(5),e.Oqu(e.lcZ(10,14,"presence-control.groups.show")),e.xp6(3),e.hij(" ",t.group?e.lcZ(13,16,"presence-control.groups.group")+" "+t.group:e.lcZ(14,18,"presence-control.groups.all")," "),e.xp6(3),e.ekj("disabled",0===t.selection.length),e.xp6(5),e.Q6J("ngForOf",e.DdM(23,ot)),e.xp6(1),e.Q6J("ngIf",!1===e.lcZ(22,20,o.state.loading$))("ngIfElse",n)}}const rt=function(s,c,t,n){return{sortCriteria:s,sortedEntries:c,selection:t,group:n}};let ct=(()=>{class s{constructor(t,n,o,i,a,p,u,C,O){this.route=t,this.state=n,this.selectionService=o,this.groupService=i,this.userSettings=a,this.subscriptionDetailService=p,this.toastService=u,this.translate=C,this.modalService=O,this.backlinkQueryParams$=this.route.queryParams.pipe((0,l.U)(({returnparams:G})=>G),(0,l.U)(w.dD)),this.eventIds$=this.state.selectedLesson$.pipe((0,l.U)(G=>G?.getEventIds()||[])),this.sortCriteriaSubject$=new T.X({primarySortKey:"name",ascending:!1}),this.sortCriteria$=this.sortCriteriaSubject$.asObservable(),this.sortedEntries$=(0,_.a)([this.groupService.getSubscriptionDetailsForStudents(),this.sortCriteria$]).pipe((0,l.U)((0,$.h)(W))),this.selected=[]}ngOnInit(){this.selectionService.selection$.subscribe(t=>this.selected=t)}selectGroup(){this.openGroupModal(J.Select,this.selectCallback.bind(this))}assignGroup(){this.openGroupModal(J.Assign,this.assignCallback.bind(this))}openGroupModal(t,n){(0,_.a)([this.groupService.getSubscriptionDetailsDefinitions(),this.groupService.group$]).pipe((0,P.q)(1)).subscribe(([o,i])=>{const a=this.modalService.open(Ue);a.componentInstance.dialogMode=t,a.componentInstance.subscriptionDetailsDefinitions=o,a.componentInstance.group=i,a.result.then(p=>{n(p)},()=>{})})}selectCallback(t){(0,_.a)([this.eventIds$,this.userSettings.getPresenceControlGroupView()]).pipe((0,P.q)(1),(0,v.w)(([n,o])=>this.userSettings.savePresenceControlGroupView(function q(s,c,t){const n=c.map(i=>({eventId:i,group:s})),o=t.map(i=>n.find(a=>a.eventId===i.eventId)||i);return[...new Set([...o,...n])].filter(i=>null!==i.group)}(t.id,n,o))),(0,l.U)(()=>t.id)).subscribe(n=>this.groupService.selectGroup(n))}assignCallback(t){(0,A.D)(this.selected.map(n=>this.subscriptionDetailService.update(t.id,n.detail))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.groupService.reloadSubscriptionDetails(),this.selectionService.clear(),this.toastService.success(this.translate.instant("presence-control.groups.notifications.save-success"))}getSortDirectionCharacter(t,n){return t.primarySortKey!==n?"":t.ascending?"\u2193":"\u2191"}toggleSort(t){this.sortCriteriaSubject$.pipe((0,P.q)(1)).subscribe(n=>{this.sortCriteriaSubject$.next(n.primarySortKey===t?{primarySortKey:t,ascending:!n.ascending}:{primarySortKey:t,ascending:"name"===t})})}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(L.gz),e.Y36(Z),e.Y36(N),e.Y36(j),e.Y36(ce.s),e.Y36(ye),e.Y36(pe.k),e.Y36(m.sK),e.Y36(d.FF))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-group"]],features:[e._Bn([N])],decls:5,vars:14,consts:[[4,"erzLet"],[3,"routerLink","queryParams"],[1,"group-header","mb-2","d-flex","justify-content-between"],[1,"d-flex","align-items-baseline"],[1,"ps-3"],["type","button",1,"show","btn","btn-link",3,"click"],["aria-label","edit",1,"btn","btn-primary","btn-icon","me-2",3,"click"],[1,"material-icons"],[1,"group-list"],[1,"group-list-header"],[3,"className","click",4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],["loading",""],[3,"className","click"],[1,"sort-direction"],[4,"ngFor","ngForOf"],[1,"group-list-entry"],[1,"checkbox"],["type","checkbox",1,"form-check-input",3,"checked","change"],["checkbox",""],[1,"name","pe-2"],[1,"group","d-flex","justify-content-between"],["class","inline small",4,"ngIf"],[1,"inline","small"]],template:function(n,o){1&n&&(e.YNc(0,it,25,24,"div",0),e.ALo(1,"async"),e.ALo(2,"async"),e.ALo(3,"async"),e.ALo(4,"async")),2&n&&e.Q6J("erzLet",e.l5B(9,rt,e.lcZ(1,1,o.sortCriteria$),e.lcZ(2,3,o.sortedEntries$),e.lcZ(3,5,o.selectionService.selection$),e.lcZ(4,7,o.groupService.group$)))},dependencies:[f.sg,f.O5,L.rH,H.e,ue.O,We.I,f.Ov,m.X$],styles:['[_nghost-%COMP%]{display:block;padding-left:1rem;padding-right:1rem}.group-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#000;font-weight:300;text-decoration:underline;padding-left:.5rem}.group-header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{text-decoration-color:#ea161f}.group-list-header[_ngcontent-%COMP%]{cursor:pointer;padding:1rem;display:grid;grid-template-areas:"name group";grid-template-columns:3fr 2fr;border-top:1px solid #dee2e6;border-bottom:2px solid #dee2e6}.group-list-entry[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid #dee2e6;display:grid;grid-template-areas:"checkbox name group";grid-template-columns:min-content 3fr 2fr}.checkbox[_ngcontent-%COMP%]{grid-area:checkbox;margin:0;padding:.3rem 1rem 0 0}.checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important;display:block}.name[_ngcontent-%COMP%]{grid-area:name;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.group[_ngcontent-%COMP%]{grid-area:group}@media (max-width: 750px){.group-list[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.group-list-header[_ngcontent-%COMP%]{grid-template-columns:3fr 1fr}.group-list-entry[_ngcontent-%COMP%]{grid-template-columns:min-content 3fr 1fr}}'],changeDetection:0})}return s})();var at=r(2547),xe=r(581),lt=r(2816);function pt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",3)(1,"input",4),e.NdJ("change",function(){const i=e.CHM(t).$implicit;return e.KtG(i.selected=!i.selected)}),e.qZA(),e.TgZ(2,"label",5)(3,"i"),e._uU(4),e.qZA(),e.TgZ(5,"div",6),e._uU(6),e.ALo(7,"date"),e.ALo(8,"date"),e.qZA()()()}if(2&s){const t=c.$implicit,n=c.index,o=e.oxw();e.xp6(1),e.MGl("id","lesson-presence-",n,""),e.Q6J("checked",t.selected),e.xp6(1),e.ekj("fw-bold",o.isCurrentLesson(t)),e.MGl("for","lesson-presence-",n,""),e.xp6(1),e.Gre("",t.entry.presenceCategory," material-icons pe-2"),e.xp6(1),e.Oqu(t.entry.presenceCategoryIcon),e.xp6(2),e.lnq(" ",e.xi3(7,12,t.entry.lessonPresence.LessonDateTimeFrom,"HH:mm"),"\u2013",e.xi3(8,15,t.entry.lessonPresence.LessonDateTimeTo,"HH:mm")," ",t.entry.lessonPresence.EventDesignation," ")}}function ut(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",7)(1,"button",8),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.activeModal.close())}),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"button",9),e.NdJ("click",function(){const i=e.CHM(t).erzLet,a=e.oxw();return e.KtG(a.activeModal.close(i))}),e._uU(5),e.ALo(6,"translate"),e.qZA()()}if(2&s){const t=c.erzLet;e.xp6(2),e.hij(" ",e.lcZ(3,3,"presence-control.block-lesson.cancel")," "),e.xp6(2),e.Q6J("disabled",0===t.length),e.xp6(1),e.hij(" ",e.lcZ(6,5,"presence-control.block-lesson.save")," ")}}let gt=(()=>{class s{constructor(t){this.activeModal=t,this.blockLessonOptions=[]}ngOnInit(){this.blockLessonOptions=this.buildLessonPresenceOptions()}getSelectedEntries(){return this.blockLessonOptions.filter(({selected:t})=>t).map(({entry:t})=>t)}isCurrentLesson(t){return function dt(s,c){(0,lt.Z)(2,arguments);var t=(0,xe.Z)(s),n=(0,xe.Z)(c);return t.getTime()===n.getTime()}(t.entry.lessonPresence.LessonDateTimeFrom,this.entry.lessonPresence.LessonDateTimeFrom)}buildLessonPresenceOptions(){return this.blockPresenceControlEntries.map(t=>({entry:t,selected:this.entry.confirmationState===t.confirmationState}))}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(d.Kz))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-block-lesson-component"]],inputs:{entry:"entry",blockPresenceControlEntries:"blockPresenceControlEntries"},decls:7,vars:5,consts:[[1,"modal-body"],["class","form-check",4,"ngFor","ngForOf"],["class","modal-footer",4,"erzLet"],[1,"form-check"],["type","checkbox",1,"form-check-input",3,"id","checked","change"],[1,"form-check-label","d-flex",3,"for"],[1,"d-block","text-truncate"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-primary",3,"disabled","click"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"form"),e.YNc(5,pt,9,18,"div",1),e.qZA()(),e.YNc(6,ut,7,7,"div",2)),2&n&&(e.xp6(2),e.hij(" ",e.lcZ(3,3,"presence-control.block-lesson.text")," "),e.xp6(3),e.Q6J("ngForOf",o.blockLessonOptions),e.xp6(1),e.Q6J("erzLet",o.getSelectedEntries()))},dependencies:[f.sg,x._Y,x.JL,x.F,H.e,f.uU,m.X$],styles:[".checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important;display:block}.absent[_ngcontent-%COMP%]{color:#d01018}.present[_ngcontent-%COMP%]{color:#3d8608}.unapproved[_ngcontent-%COMP%]{color:#ffa814}"]})}return s})();var ht=r(2220);function mt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",5)(1,"input",6),e.NdJ("change",function(){const i=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.onSelectionChange(i))}),e.qZA(),e.TgZ(2,"label",7),e._uU(3),e.qZA()()}if(2&s){const t=c.$implicit,n=c.index,o=e.oxw();e.xp6(1),e.MGl("id","incident-",n,""),e.Q6J("checked",t.id===o.selected.id)("value",t.id),e.xp6(1),e.MGl("for","incident-",n,""),e.xp6(1),e.hij(" ",t.label," ")}}let ft=(()=>{class s{constructor(t,n){this.activeModal=t,this.translate=n,this.incidentOptions=[]}ngOnInit(){const t=this.createIncidentOption();this.incidentOptions=this.incidentTypes.map(n=>this.createIncidentOption(n)),this.incidentOptions.unshift(t),this.selected=this.incidentOptions.find(n=>n.id===this.incident?.Id)||t}createIncidentOption(t){return{id:t?t.Id:null,label:t?t.Designation:this.translate.instant("presence-control.incident.no-incident")}}onSelectionChange(t){this.selected=t}getSelectedIncident(){return this.incidentTypes.find(t=>t.Id===this.selected?.id)||null}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(d.Kz),e.Y36(m.sK))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-incident"]],inputs:{incident:"incident",incidentTypes:"incidentTypes"},decls:13,vars:10,consts:[[1,"modal-body"],["class","form-check",4,"ngFor","ngForOf"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-primary",3,"click"],[1,"form-check"],["type","radio","name","incident",1,"form-check-input",3,"id","checked","value","change"],[1,"form-check-label",3,"for"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.TgZ(4,"form"),e.YNc(5,mt,4,5,"div",1),e.qZA()(),e.TgZ(6,"div",2)(7,"button",3),e.NdJ("click",function(){return o.activeModal.dismiss()}),e._uU(8),e.ALo(9,"translate"),e.qZA(),e.TgZ(10,"button",4),e.NdJ("click",function(){return o.activeModal.close(o.getSelectedIncident())}),e._uU(11),e.ALo(12,"translate"),e.qZA()()),2&n&&(e.xp6(2),e.hij(" ",e.lcZ(3,4,"presence-control.incident.text")," "),e.xp6(3),e.Q6J("ngForOf",o.incidentOptions),e.xp6(3),e.hij(" ",e.lcZ(9,6,"presence-control.incident.cancel")," "),e.xp6(3),e.hij(" ",e.lcZ(12,8,"presence-control.incident.save")," "))},dependencies:[f.sg,x._Y,x.JL,x.F,m.X$],styles:["form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{border-bottom:1px solid #dee2e6;padding-bottom:1rem;margin-bottom:1rem}"]})}return s})();function Me(s){return`blockLesson${s.lessonPresence.Id}`}let Le=(()=>{class s{constructor(t,n,o,i){this.state=t,this.lessonPresencesService=n,this.loadingService=o,this.settings=i}getBlockLessonPresenceControlEntries(t){return(0,_.a)([this.state.lessons$.pipe((0,P.q)(1)),this.loadChangeableLessonPresences(t),this.state.presenceTypes$.pipe((0,P.q)(1)),this.state.absenceConfirmationStates$.pipe((0,P.q)(1)),this.state.otherTeachersAbsences$.pipe((0,P.q)(1))]).pipe((0,l.U)(([n,o,i,a,p])=>this.filterBlockLessonPresences(t,o).map(u=>(0,me.uP)(n.find(C=>C.id===u.LessonRef.Id.toString()),u,i,a,p))))}filterBlockLessonPresences(t,n){return[...n].sort((o,i)=>o.LessonDateTimeFrom>i.LessonDateTimeFrom?1:-1).reduce((o,i)=>this.isWithinBlockTime(i,o[o.length-1])?(o.push(i),o):o.find(p=>p.Id===t.lessonPresence.Id)?o:[i],[])}isWithinBlockTime(t,n){return!n||t.LessonDateTimeFrom.getTime()-n.LessonDateTimeTo.getTime()<=18e5}loadChangeableLessonPresences(t){return(0,_.a)([this.loadLessonPresences(t),this.state.presenceTypes$.pipe((0,P.q)(1))]).pipe((0,l.U)(([n,o])=>n.filter(i=>(0,oe.NF)(i,o.find(a=>a.Id===i.TypeRef.Id)||null,this.settings))))}loadLessonPresences(t){return this.loadingService.load(this.lessonPresencesService.getListByDateStudentClass(t.lessonPresence.LessonDateTimeFrom,t.lessonPresence.StudentRef.Id,t.lessonPresence.StudyClassRef.Id??void 0).pipe((0,l.U)(n=>n.filter(o=>o.TeacherInformation===t.lessonPresence.TeacherInformation))),Me(t))}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(Z),e.LFG(fe.q),e.LFG(Y.b),e.LFG(U.L6))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac})}return s})();var Ct=r(6699),vt=r(3020),Oe=r(3620),Pt=r(6328),yt=r(6306),Te=r(2769),$e=r(6100),Q=r(3942),bt=r(6023),F=function(s){return s.AddUpdateAction="ADD",s.RemoveUpdateAction="REMOVE",s}(F||{});let Ae=(()=>{class s{constructor(t,n,o,i,a){this.toastService=t,this.translate=n,this.restService=o,this.presenceTypesService=i,this.settings=a,this.destroy$=new M.x,this.action$=new M.x,this.pendingUpdates$=this.action$.pipe((0,Ct.R)(this.reduceUpdates.bind(this),[]),(0,vt.B)()),this.revertUpdates$=new M.x,this.performUpdates$=this.pendingUpdates$.pipe((0,Oe.b)(100),(0,se.h)((0,Q.ff)($e.yD)),(0,Pt.b)(this.performUpdates.bind(this))),this.stateUpdates$=(0,z.T)(this.pendingUpdates$,this.revertUpdates$).pipe((0,Oe.b)(20),(0,se.h)((0,Q.ff)($e.yD))),this.performUpdates$.pipe((0,S.R)(this.destroy$)).subscribe()}ngOnDestroy(){this.destroy$.next()}updatePresenceType(t,n=null){this.dispatchAddUpdate(t.lessonPresence,n)}performUpdates(t){const n=this.groupUpdates(t);return(0,_.a)(Object.keys(n).reduce((o,i)=>{const a=n[i];return Object.keys(a).forEach(p=>{o.push(this.performUpdateForGroup(a[p]))}),o},[])).pipe((0,l.U)(()=>n))}performUpdateForGroup(t){return t.forEach(n=>this.dispatchRemoveUpdate(n.presence)),this.performLessonPresencesUpdatesByIds(t[0].presence.LessonRef.Id,t.map(n=>n.presence.StudentRef.Id),t[0].newPresenceTypeId).pipe((0,yt.K)(n=>this.revertUpdatesAfterError(t,n)))}performLessonPresencesUpdatesByIds(t,n,o=null){return o?(o?this.presenceTypesService.getPresenceType(o):(0,E.of)(null)).pipe((0,v.w)(a=>this.restService.editLessonPresences([t],n,a?.Id,(0,oe.LO)(a,this.settings)||void 0,(0,Te.I)({disableErrorHandling:!0})))):this.restService.removeLessonPresences([t],n,(0,Te.I)({disableErrorHandling:!0}))}revertUpdatesAfterError(t,n){return console.error("Bulk-update of lesson presences failed"),console.error(n),this.toastService.error(this.translate.instant("shared.lesson-presences-update.error")),this.revertUpdates$.next(t.map(o=>({...o,newPresenceTypeId:o.presence.TypeRef.Id}))),(0,E.of)(void 0)}groupUpdates(t){return t.reduce((n,o)=>{const i=String(o.newPresenceTypeId&&o.newPresenceTypeId);return n[i]||(n[i]={}),Array.isArray(n[i][o.presence.LessonRef.Id])||(n[i][o.presence.LessonRef.Id]=[]),n[i][o.presence.LessonRef.Id].push(o),n},{})}reduceUpdates(t,n){switch(n.type){case F.AddUpdateAction:{const{presence:o,newPresenceTypeId:i}=n.payload,a=t.findIndex(Se(o));return-1===a?[...t,{presence:o,newPresenceTypeId:i}]:[...t.slice(0,a),{presence:t[a].presence,newPresenceTypeId:i},...t.slice(a+1)]}case F.RemoveUpdateAction:return t.filter((0,Q.ff)(Se(n.payload)));default:return t}}dispatchAddUpdate(t,n){this.action$.next({type:F.AddUpdateAction,payload:{presence:t,newPresenceTypeId:n}})}dispatchRemoveUpdate(t){this.action$.next({type:F.RemoveUpdateAction,payload:t})}static#e=this.\u0275fac=function(n){return new(n||s)(e.LFG(pe.k),e.LFG(m.sK),e.LFG(bt.O),e.LFG(ae.c),e.LFG(U.L6))};static#t=this.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function Se(s){return c=>c.presence.LessonRef.Id===s.LessonRef.Id&&c.presence.StudentRef.Id===s.StudentRef.Id}var Lt=r(412),Ot=r(3296),Tt=r(5791),$t=r(7163);function At(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",22),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.lessonDropdown.toggle())}),e._uU(1),e.ALo(2,"date"),e.TgZ(3,"span",23),e._uU(4),e.ALo(5,"date"),e.qZA()()}if(2&s){const t=e.oxw();e.xp6(1),e.hij(" ",e.xi3(2,2,t.selectedLesson.LessonDateTimeFrom,"HH:mm"),"\u2013"),e.xp6(3),e.Oqu(e.xi3(5,5,t.selectedLesson.LessonDateTimeTo,"HH:mm"))}}function St(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"div",29),e.NdJ("click",function(){const i=e.CHM(t).$implicit,a=e.oxw(2);return e.KtG(a.selectLessonChange.emit(i))}),e.TgZ(1,"div",30)(2,"div"),e._uU(3),e.ALo(4,"date"),e.ALo(5,"date"),e.qZA(),e.TgZ(6,"div",26),e._uU(7),e.qZA(),e.TgZ(8,"div",26),e._uU(9),e.qZA()()()}if(2&s){const t=c.$implicit,n=e.oxw(2);e.ekj("active",t.id===n.selectedLesson.id),e.xp6(3),e.AsE(" ",e.xi3(4,6,t.LessonDateTimeFrom,"HH:mm"),"\u2013",e.xi3(5,9,t.LessonDateTimeTo,"HH:mm")," "),e.xp6(4),e.Oqu(t.eventDesignations),e.xp6(2),e.Oqu(t.studyClassNumbers)}}function Zt(s,c){if(1&s&&(e.TgZ(0,"div",24)(1,"div",25)(2,"div",26),e._uU(3),e.qZA(),e.TgZ(4,"div",26),e._uU(5),e.qZA()(),e.TgZ(6,"div",27),e.YNc(7,St,10,12,"div",28),e.qZA()()),2&s){const t=e.oxw();e.xp6(3),e.Oqu(t.selectedLesson.eventDesignations),e.xp6(2),e.Oqu(t.selectedLesson.studyClassNumbers),e.xp6(2),e.Q6J("ngForOf",t.lessons)}}function It(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"erz-caret",31),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(null==o.lessonDropdown?null:o.lessonDropdown.toggle())}),e.qZA()}if(2&s){const t=e.oxw();e.Q6J("expanded",(null==t.lessonDropdown?null:t.lessonDropdown.isOpen())||!1)}}const wt=function(s,c){return{"btn-link":s,"btn-danger":c}},Ut=function(s){return["groups",s]},Dt=function(s){return{returnparams:s}};function Et(s,c){if(1&s&&(e.TgZ(0,"a",32),e.ALo(1,"async"),e.ALo(2,"async"),e.ALo(3,"async"),e.TgZ(4,"i",33),e._uU(5,"groups"),e.qZA()()),2&s){const t=e.oxw();e.Q6J("ngClass",e.WLB(9,wt,!1===e.lcZ(1,3,t.isGroupSelected$),e.lcZ(2,5,t.isGroupSelected$)))("routerLink",e.VKq(12,Ut,t.selectedLesson.id))("queryParams",e.VKq(14,Dt,e.lcZ(3,7,t.state.queryParamsString$)))}}function Ft(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"button",34),e.NdJ("click",function(){const i=e.CHM(t).$implicit,a=e.oxw();return e.KtG(a.viewModeChange.emit(i.viewMode))}),e.TgZ(1,"i",33),e._uU(2),e.qZA()()}if(2&s){const t=c.$implicit,n=e.oxw();e.ekj("btn-outline-secondary",t.viewMode===n.viewMode)("btn-link",t.viewMode!==n.viewMode)("active",t.viewMode===n.viewMode),e.Q6J("disabled",!n.selectedLesson),e.xp6(2),e.Oqu(t.icon)}}const Gt=d.jt.prototype._positionMenu;d.jt.prototype._positionMenu=function(...c){const t=Gt.apply(this,c);if("lesson-dropdown"===this._anchor.nativeElement.id){const n=this._bodyContainer||this._menu.nativeElement,o=n.style.transform?.match(/translate\(([0-9-.]+)px, ([0-9-.]+)px\)/);o&&parseFloat(o[1])<0&&(n.style.transform=`translate(0px, ${o[2]}px)`)}return t};let kt=(()=>{class s{constructor(t,n,o){this.state=t,this.groupService=n,this.presentCount=null,this.absentCount=null,this.unapprovedCount=null,this.absentPrecedingCount=null,this.search="",this.selectLessonChange=new e.vpe,this.selectDateChange=new e.vpe,this.searchChange=new e.vpe,this.viewModeChange=new e.vpe,this.viewModeOptions=[{viewMode:B.PW.List,icon:"list"},{viewMode:B.PW.Grid,icon:"view_module"}],this.isGroupSelected$=this.groupService.group$.pipe((0,l.U)(Q.Nf)),o.popperOptions=i=>({...i,modifiers:i.modifiers?.map(a=>("offset"===a.name&&(a.options={offset:({placement:p,reference:u,popper:C})=>"bottom-start"===p?[(window.innerWidth-C.width)/2-u.x,0]:[]}),a))})}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(Z),e.Y36(j),e.Y36(d.Be))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-header"]],viewQuery:function(n,o){if(1&n&&e.Gf(d.jt,5),2&n){let i;e.iGM(i=e.CRH())&&(o.lessonDropdown=i.first)}},inputs:{selectedLesson:"selectedLesson",lessons:"lessons",presentCount:"presentCount",absentCount:"absentCount",unapprovedCount:"unapprovedCount",absentPrecedingCount:"absentPrecedingCount",viewMode:"viewMode",selectDate:"selectDate",search:"search"},outputs:{selectLessonChange:"selectLessonChange",selectDateChange:"selectDateChange",searchChange:"searchChange",viewModeChange:"viewModeChange"},features:[e._Bn([d.Be,{provide:d.DO,useClass:d.s5},{provide:d.NG,useClass:Ot.n}])],decls:40,vars:20,consts:[[1,"navigation"],[1,"lesson-date"],["type","button",1,"btn","btn-link",3,"click"],[1,"material-icons"],["positionTarget",".lesson-date-input","ngbDatepicker","","placement","bottom-start",1,"lesson-date-input",3,"ngModel","ngModelChange"],["d","ngbDatepicker"],["class","lesson-time",3,"click",4,"ngIf"],["ngbDropdown","","class","lesson-description","container","body","display","dynamic","placement","bottom",4,"ngIf"],["class","dropdown-caret",3,"expanded","click",4,"ngIf"],[1,"states"],[1,"state","present"],[1,"count"],[1,"state","absent"],[1,"state","unapproved"],[1,"state","previously-absent"],[1,"material-icons-outlined"],[1,"search-and-views"],[1,"search",3,"value","disabled","placeholder","label","valueChange"],[1,"group-and-views","d-flex","align-items-center"],["type","button","class","group btn me-xs-0 me-sm-4",3,"ngClass","routerLink","queryParams",4,"ngIf"],[1,"views"],["type","button","class","view btn btn-primary btn-icon",3,"disabled","btn-outline-secondary","btn-link","active","click",4,"ngFor","ngForOf"],[1,"lesson-time",3,"click"],[1,"lesson-time-to"],["ngbDropdown","","container","body","display","dynamic","placement","bottom",1,"lesson-description"],["id","lesson-dropdown","ngbDropdownToggle",""],[1,"text-truncate"],["ngbDropdownMenu","","aria-labelledby","lesson-dropdown"],["ngbDropdownItem","",3,"active","click",4,"ngFor","ngForOf"],["ngbDropdownItem","",3,"click"],[1,"lesson-entry"],[1,"dropdown-caret",3,"expanded","click"],["type","button",1,"group","btn","me-xs-0","me-sm-4",3,"ngClass","routerLink","queryParams"],[1,"material-icons","align-middle"],["type","button",1,"view","btn","btn-primary","btn-icon",3,"disabled","click"]],template:function(n,o){if(1&n){const i=e.EpF();e.TgZ(0,"div",0)(1,"div",1)(2,"button",2),e.NdJ("click",function(){e.CHM(i);const p=e.MAs(6);return e.KtG(p.toggle())}),e.TgZ(3,"i",3),e._uU(4,"calendar_today"),e.qZA()(),e.TgZ(5,"input",4,5),e.NdJ("ngModelChange",function(p){return o.selectDateChange.emit(p)}),e.qZA()(),e.YNc(7,At,6,8,"div",6),e.YNc(8,Zt,8,3,"div",7),e.YNc(9,It,1,1,"erz-caret",8),e.qZA(),e.TgZ(10,"div",9)(11,"div",10)(12,"i",3),e._uU(13,"check_circle"),e.qZA(),e.TgZ(14,"span",11),e._uU(15),e.qZA()(),e.TgZ(16,"div",12)(17,"i",3),e._uU(18,"cancel"),e.qZA(),e.TgZ(19,"span",11),e._uU(20),e.qZA()(),e.TgZ(21,"div",13)(22,"i",3),e._uU(23,"help"),e.qZA(),e.TgZ(24,"span",11),e._uU(25),e.qZA()(),e.TgZ(26,"div",14)(27,"i",15),e._uU(28,"info"),e.qZA(),e.TgZ(29,"span",11),e._uU(30),e.qZA()()(),e.TgZ(31,"div",16)(32,"erz-resettable-input",17),e.NdJ("valueChange",function(p){return o.searchChange.emit(p)}),e.ALo(33,"translate"),e.ALo(34,"translate"),e.qZA(),e.TgZ(35,"div",18),e.YNc(36,Et,6,16,"a",19),e.ALo(37,"async"),e.TgZ(38,"div",20),e.YNc(39,Ft,3,8,"button",21),e.qZA()()()}2&n&&(e.xp6(5),e.Q6J("ngModel",o.selectDate),e.xp6(2),e.Q6J("ngIf",o.selectedLesson),e.xp6(1),e.Q6J("ngIf",o.selectedLesson),e.xp6(1),e.Q6J("ngIf",o.lessons.length>0),e.xp6(6),e.Oqu(null!==o.presentCount?o.presentCount:"?"),e.xp6(5),e.Oqu(null!==o.absentCount?o.absentCount:"?"),e.xp6(5),e.Oqu(null!==o.unapprovedCount?o.unapprovedCount:"?"),e.xp6(5),e.Oqu(null!==o.absentPrecedingCount?o.absentPrecedingCount:"?"),e.xp6(2),e.Q6J("value",o.search)("disabled",!o.selectedLesson)("placeholder",e.lcZ(33,14,"presence-control.header.search-by-name"))("label",e.lcZ(34,16,"presence-control.header.search")),e.xp6(4),e.Q6J("ngIf",e.lcZ(37,18,o.selectedLesson&&o.state.groupsAvailability$)),e.xp6(3),e.Q6J("ngForOf",o.viewModeOptions))},dependencies:[f.mk,f.sg,f.O5,x.Fj,x.JJ,x.On,L.rH,d.J4,d.jt,d.iD,d.Vi,d.TH,Tt.Q,$t.w,f.Ov,f.uU,m.X$],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;padding:.75rem 0}.navigation[_ngcontent-%COMP%]{display:grid;grid-template-areas:". date time dropdown-caret" ". description description dropdown-caret";grid-template-columns:1fr auto auto 1fr;align-items:center}.lesson-date[_ngcontent-%COMP%]{grid-area:date;justify-self:end;display:flex;align-items:center;justify-content:flex-end}.lesson-date[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:0 .5ch 0 0}.lesson-date[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#000;position:relative}.lesson-date-input[_ngcontent-%COMP%]{font-weight:600;background:transparent;border:none;width:11ch}.lesson-time[_ngcontent-%COMP%]{grid-area:time;cursor:pointer}.lesson-description[_ngcontent-%COMP%]{grid-area:description;overflow:hidden;text-align:center;cursor:pointer}.dropdown-toggle[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.dropdown-toggle[_ngcontent-%COMP%]:after{display:none}.dropdown-caret[_ngcontent-%COMP%]{grid-area:dropdown-caret;line-height:100%;text-align:left;color:#000}.dropdown-menu[_ngcontent-%COMP%]{width:50ch;padding:0;box-shadow:2px 2px 3px -1px #0003}@media (max-width: 800px){.dropdown-menu[_ngcontent-%COMP%]{width:100vw}}.dropdown-item[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid #dee2e6}.states[_ngcontent-%COMP%]{margin:.75rem 0;display:flex;justify-content:center}.state[_ngcontent-%COMP%]{margin-right:7%;display:flex}.state[_ngcontent-%COMP%]:last-child{margin-right:0}@media (min-width: 1000px){.state[_ngcontent-%COMP%]{margin-right:4rem}}.state.present[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#3d8608}.state.absent[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#d01018}.state.unapproved[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#ffa814}.state.previously-absent[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#00000080}.state[_ngcontent-%COMP%] .count[_ngcontent-%COMP%]{margin-left:.3em;margin-top:1px}.search-and-views[_ngcontent-%COMP%]{padding-top:.75rem;display:flex;justify-content:space-between;border-top:1px solid #dee2e6}.search[_ngcontent-%COMP%]{flex:auto;max-width:300px;margin-right:1rem}.views[_ngcontent-%COMP%]{display:flex}.view[_ngcontent-%COMP%]{color:#4e4e4ef2;background-color:#fff}.view.active[_ngcontent-%COMP%]{color:#fff;background-color:#4e4e4ef2;border:none}.group[_ngcontent-%COMP%], .view[_ngcontent-%COMP%]{text-decoration:none;padding-left:0;padding-right:0;aspect-ratio:1/1;width:calc(.75rem + 2 * var(--bs-border-width) + 1.625rem);border-radius:50%}.group.btn-link[_ngcontent-%COMP%]{color:#000}@media (max-width: 380px){[_nghost-%COMP%]{padding-left:.5rem;padding-right:.5rem}#search-addon[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem}}@media (max-width: 365px){.lesson-time[_ngcontent-%COMP%]{line-height:1}.lesson-time-to[_ngcontent-%COMP%]{display:block}.dropdown-caret[_ngcontent-%COMP%]{padding-left:0}}']})}return s})();var Rt=r(500);function Nt(s,c){if(1&s&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"date"),e.ALo(3,"date"),e.ALo(4,"addSpace"),e.qZA()),2&s){const t=c.$implicit;e.xp6(1),e.xDo(" ",e.xi3(2,5,t.LessonRef.From,"HH:mm"),"\u2013",e.xi3(3,8,t.LessonRef.To,"HH:mm")," ",t.LessonRef.EventDesignation,"",e.xi3(4,11,":",":")," ",t.Type," ")}}let Jt=(()=>{class s{constructor(t){this.activeModal=t}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(d.Kz))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-preceding-absence"]],inputs:{precedingAbsences:"precedingAbsences"},decls:9,vars:7,consts:[[1,"modal-body"],[4,"ngFor","ngForOf"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"]],template:function(n,o){1&n&&(e.TgZ(0,"div",0)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.qZA(),e.YNc(4,Nt,5,14,"div",1),e.qZA(),e.TgZ(5,"div",2)(6,"button",3),e.NdJ("click",function(){return o.activeModal.dismiss()}),e._uU(7),e.ALo(8,"translate"),e.qZA()()),2&n&&(e.xp6(2),e.hij(" ",e.lcZ(3,3,"presence-control.preceding-absence.text")," "),e.xp6(2),e.Q6J("ngForOf",o.precedingAbsences),e.xp6(3),e.hij(" ",e.lcZ(8,5,"presence-control.preceding-absence.cancel")," "))},dependencies:[f.sg,f.uU,m.X$,Rt.u]})}return s})();var zt=r(2628);const Bt=function(s){return["/presence-control/student",s,"absences"]};function Yt(s,c){if(1&s&&(e._UZ(0,"erz-avatar",8),e.ALo(1,"async")),2&s){const t=e.oxw();e.Q6J("studentId",e.lcZ(1,3,t.studentId$))("link",e.VKq(5,Bt,t.entry.lessonPresence.StudentRef.Id.toString()))("linkParams",t.profileReturnParams)}}function jt(s,c){if(1&s&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&s){const t=e.oxw(2);e.xp6(1),e.Oqu(null==t.entry.presenceType?null:t.entry.presenceType.Designation)}}function Ht(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"button",9),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.updatePresenceType(o.entry))}),e.YNc(1,jt,2,1,"span",10),e.qZA()}if(2&s){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=t.entry.presenceType&&t.entry.presenceType.IsIncident))}}function Qt(s,c){1&s&&e._UZ(0,"erz-spinner",15)}function Kt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"button",11),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.updatePresenceType(o.entry))}),e.TgZ(1,"div",12)(2,"i",13),e._uU(3),e.qZA(),e.YNc(4,Qt,1,0,"erz-spinner",14),e.qZA()()}if(2&s){const t=c.erzLet,n=e.oxw();e.Q6J("disabled",t),e.xp6(2),e.ekj("invisible",t),e.xp6(1),e.Oqu(n.entry.presenceCategoryIcon),e.xp6(1),e.Q6J("ngIf",t)}}function qt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"button",16),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.showPrecedingAbsences(o.entry))}),e.TgZ(1,"i",17),e._uU(2,"info"),e.qZA()()}}function Wt(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"a",18),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.updateIncident(o.entry))}),e.TgZ(1,"i",13),e._uU(2,"edit"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"translate"),e.qZA()()}if(2&s){const t=e.oxw();e.xp6(4),e.Oqu(e.lcZ(5,1,(null==t.entry.presenceType?null:t.entry.presenceType.IsIncident)&&(null==t.entry.presenceType?null:t.entry.presenceType.Designation)||"presence-control.entry.incident"))}}const Vt=function(s){return["student",s,"absences"]};let Xt=(()=>{class s{get classNames(){return[this.entry.presenceCategory,this.viewMode].join(" ")}constructor(t,n,o,i){this.toastService=t,this.translate=n,this.modalService=o,this.loadingService=i,this.hasUnconfirmedAbsences=!1,this.togglePresenceType=new e.vpe,this.changeIncident=new e.vpe,this.entry$=new le.t(1),this.studentId$=this.entry$.pipe((0,l.U)(({lessonPresence:a})=>a.StudentRef.Id)),this.loading$=this.entry$.pipe((0,v.w)(a=>this.loadingService.loading(Me(a))))}ngOnChanges(t){t.entry&&this.entry$.next(t.entry.currentValue)}get isListViewMode(){return this.viewMode===B.PW.List}updatePresenceType(t){t.canChangePresenceType?this.togglePresenceType.emit(t):this.toastService.warning(this.translate.instant("presence-control.entry.update-warning"))}updateIncident(t){t.canChangeIncident&&this.changeIncident.emit(t)}showPrecedingAbsences(t){this.modalService.open(Jt).componentInstance.precedingAbsences=t.precedingAbsences}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(pe.k),e.Y36(m.sK),e.Y36(d.FF),e.Y36(Y.b))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-entry"]],hostVars:2,hostBindings:function(n,o){2&n&&e.Tol(o.classNames)},inputs:{entry:"entry",hasUnconfirmedAbsences:"hasUnconfirmedAbsences",viewMode:"viewMode",profileReturnParams:"profileReturnParams"},outputs:{togglePresenceType:"togglePresenceType",changeIncident:"changeIncident"},features:[e.TTD],decls:12,vars:15,consts:[["class","avatar large",3,"studentId","link","linkParams",4,"ngIf"],["type","button","class","presence-category designation btn btn-link",3,"click",4,"ngIf"],["type","button","class","presence-category status btn btn-link",3,"disabled","click",4,"erzLet"],["type","button","class","previously-absent btn btn-link",3,"click",4,"ngIf"],[1,"student-name",3,"routerLink","queryParams"],[1,"text-truncate"],[1,"unconfirmed-absences"],["class","incident btn btn-link",3,"click",4,"ngIf"],[1,"avatar","large",3,"studentId","link","linkParams"],["type","button",1,"presence-category","designation","btn","btn-link",3,"click"],[4,"ngIf"],["type","button",1,"presence-category","status","btn","btn-link",3,"disabled","click"],[1,"position-relative"],[1,"material-icons"],["class","inline small",4,"ngIf"],[1,"inline","small"],["type","button",1,"previously-absent","btn","btn-link",3,"click"],[1,"material-icons-outlined"],[1,"incident","btn","btn-link",3,"click"]],template:function(n,o){1&n&&(e.YNc(0,Yt,2,7,"erz-avatar",0),e.YNc(1,Ht,2,1,"button",1),e.YNc(2,Kt,5,5,"button",2),e.ALo(3,"async"),e.YNc(4,qt,3,0,"button",3),e.TgZ(5,"a",4)(6,"span",5),e._uU(7),e.qZA(),e.TgZ(8,"span",6),e._uU(9),e.ALo(10,"translate"),e.qZA()(),e.YNc(11,Wt,6,3,"a",7)),2&n&&(e.Q6J("ngIf",!o.isListViewMode),e.xp6(1),e.Q6J("ngIf",o.entry.showDesignation),e.xp6(1),e.Q6J("erzLet",e.lcZ(3,9,o.loading$)),e.xp6(2),e.Q6J("ngIf",(null==o.entry.precedingAbsences?null:o.entry.precedingAbsences.length)>0),e.xp6(1),e.Q6J("routerLink",e.VKq(13,Vt,o.entry.lessonPresence.StudentRef.Id))("queryParams",o.profileReturnParams),e.xp6(2),e.Oqu(o.entry.lessonPresence.StudentFullName),e.xp6(2),e.hij(" ",o.hasUnconfirmedAbsences?e.lcZ(10,11,"presence-control.entry.unconfirmed-absences"):""," "),e.xp6(2),e.Q6J("ngIf",o.entry.canChangeIncident))},dependencies:[f.O5,L.rH,H.e,ue.O,zt.A,f.Ov,m.X$],styles:['[_nghost-%COMP%]{padding:2rem 1rem;background-color:#fff;display:grid;grid-template-areas:"avatar status designation previously-absent" "avatar student-name student-name student-name" "avatar incident incident incident";grid-template-columns:min-content min-content 3fr min-content}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{align-self:center}.presence-category[_ngcontent-%COMP%]{text-decoration:none}.presence-category[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{top:.1875rem}.absent[_nghost-%COMP%] .presence-category[_ngcontent-%COMP%]{color:#d01018}.present[_nghost-%COMP%] .presence-category[_ngcontent-%COMP%]{color:#3d8608}.unapproved[_nghost-%COMP%] .presence-category[_ngcontent-%COMP%]{color:#ffa814}.presence-category[_ngcontent-%COMP%] erz-spinner[_ngcontent-%COMP%]{color:#000;position:absolute;top:4px;left:5px}.designation[_ngcontent-%COMP%], .student-name[_ngcontent-%COMP%], a.incident[_ngcontent-%COMP%], .incident[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.avatar[_ngcontent-%COMP%]{grid-area:avatar;margin-right:1.5rem}.status[_ngcontent-%COMP%]{grid-area:status}.status[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{font-size:2rem}.designation[_ngcontent-%COMP%]{grid-area:designation;text-align:left;line-height:2.375rem}.previously-absent[_ngcontent-%COMP%]{grid-area:previously-absent;text-decoration:none;color:#00000080;justify-self:end}.student-name[_ngcontent-%COMP%]{grid-area:student-name;display:flex;flex-direction:column;text-decoration:none}.student-name[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{text-decoration:underline}.student-name[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child:hover{text-decoration-color:#ea161f}.unconfirmed-absences[_ngcontent-%COMP%]{color:#d01018;font-size:.875rem;line-height:1}.incident[_ngcontent-%COMP%]{color:#00000080;padding-right:1.5rem;grid-area:incident;display:flex;text-decoration:none}.incident[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:underline}.incident[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{text-decoration-color:#ea161f}.incident[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:.3em}.grid[_nghost-%COMP%] .status[_ngcontent-%COMP%], .grid[_nghost-%COMP%] .designation[_ngcontent-%COMP%]{align-self:start;margin-left:-1.5rem;margin-top:-.375rem}.grid[_nghost-%COMP%] .incident[_ngcontent-%COMP%]{align-self:end;margin-left:-1.5rem;margin-bottom:-.375rem}.grid[_nghost-%COMP%] .previously-absent[_ngcontent-%COMP%]{padding-right:0;align-self:start}.grid[_nghost-%COMP%] .unconfirmed-absences[_ngcontent-%COMP%]{height:.875rem}.list[_nghost-%COMP%]{grid-template-areas:"student-name status designation incident previously-absent";grid-template-columns:3fr min-content 3fr 2fr 3em;padding:.5rem .5rem .5rem 1rem}.list[_nghost-%COMP%] .status[_ngcontent-%COMP%]{justify-self:start}@media (max-width: 750px){.list[_nghost-%COMP%]{grid-template-areas:"student-name student-name student-name previously-absent" "status incidentordesignation incidentordesignation incidentordesignation";grid-template-columns:min-content 1fr 1fr min-content;row-gap:1rem}.list[_nghost-%COMP%] .status[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.list[_nghost-%COMP%] .incident[_ngcontent-%COMP%], .list[_nghost-%COMP%] .designation[_ngcontent-%COMP%]{grid-area:incidentordesignation}.list[_nghost-%COMP%] .incident[_ngcontent-%COMP%]{justify-self:end}.list[_nghost-%COMP%] .previously-absent[_ngcontent-%COMP%]{padding-top:0;align-self:start}}']})}return s})();const en=function(s){return{returnparams:s}};function tn(s,c){if(1&s){const t=e.EpF();e.TgZ(0,"erz-presence-control-entry",7),e.NdJ("togglePresenceType",function(o){e.CHM(t);const i=e.oxw(5);return e.KtG(i.togglePresenceType(o))})("changeIncident",function(o){e.CHM(t);const i=e.oxw(5);return e.KtG(i.changeIncident(o))}),e.ALo(1,"async"),e.ALo(2,"async"),e.ALo(3,"async"),e.qZA()}if(2&s){const t=c.$implicit,n=e.oxw(5);e.Q6J("entry",t)("hasUnconfirmedAbsences",e.lcZ(1,4,n.state.hasUnconfirmedAbsences(t)))("viewMode",e.lcZ(2,6,n.state.viewMode$))("profileReturnParams",e.VKq(10,en,e.lcZ(3,8,n.state.queryParamsString$)))}}function nn(s,c){if(1&s&&(e.ynx(0),e.TgZ(1,"div"),e.ALo(2,"async"),e.YNc(3,tn,4,12,"erz-presence-control-entry",6),e.qZA(),e.BQk()),2&s){const t=e.oxw(3).erzLet,n=e.oxw();e.xp6(1),e.Gre("default-entries entries view-mode-",e.lcZ(2,4,n.state.viewMode$),""),e.xp6(2),e.Q6J("ngForOf",t.entries)}}function sn(s,c){1&s&&(e.TgZ(0,"p",8),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"presence-control.no-lesson-presences")," "))}function on(s,c){if(1&s&&(e.ynx(0),e.YNc(1,nn,4,6,"ng-container",1),e.YNc(2,sn,3,3,"ng-template",null,5,e.W1O),e.BQk()),2&s){const t=e.MAs(3),n=e.oxw(2).erzLet;e.xp6(1),e.Q6J("ngIf",(null==n.entries?null:n.entries.length)>0)("ngIfElse",t)}}function rn(s,c){1&s&&(e.TgZ(0,"p",8),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&s&&(e.xp6(1),e.Oqu(e.lcZ(2,1,"presence-control.no-lessons")))}function cn(s,c){if(1&s){const t=e.EpF();e.ynx(0),e.TgZ(1,"erz-presence-control-header",3),e.NdJ("searchChange",function(o){e.CHM(t);const i=e.oxw(2);return e.KtG(i.search$.next(o))})("viewModeChange",function(o){e.CHM(t);const i=e.oxw(2);return e.KtG(i.state.setViewMode(o))})("selectDateChange",function(o){e.CHM(t);const i=e.oxw(2);return e.KtG(i.state.setDate(o))})("selectLessonChange",function(o){e.CHM(t);const i=e.oxw(2);return e.KtG(i.state.setLessonId(o.id))}),e.ALo(2,"async"),e.ALo(3,"async"),e.ALo(4,"async"),e.ALo(5,"async"),e.ALo(6,"async"),e.ALo(7,"async"),e.ALo(8,"async"),e.qZA(),e.YNc(9,on,4,2,"ng-container",1),e.YNc(10,rn,3,3,"ng-template",null,4,e.W1O),e.BQk()}if(2&s){const t=e.MAs(11),n=e.oxw().erzLet,o=e.oxw();e.xp6(1),e.Q6J("selectedLesson",n.lesson)("lessons",n.lessons)("presentCount",e.lcZ(2,11,o.state.presentCount$))("absentCount",e.lcZ(3,13,o.state.absentCount$))("unapprovedCount",e.lcZ(4,15,o.state.unapprovedCount$))("absentPrecedingCount",e.lcZ(5,17,o.state.absentPrecedingCount$))("viewMode",e.lcZ(6,19,o.state.viewMode$))("selectDate",e.lcZ(7,21,o.state.selectedDate$))("search",e.lcZ(8,23,o.search$)),e.xp6(8),e.Q6J("ngIf",n.lesson)("ngIfElse",t)}}function an(s,c){1&s&&e._UZ(0,"erz-spinner")}function ln(s,c){if(1&s&&(e.ynx(0),e.YNc(1,cn,12,25,"ng-container",1),e.ALo(2,"async"),e.YNc(3,an,1,0,"ng-template",null,2,e.W1O),e.BQk()),2&s){const t=e.MAs(4),n=e.oxw();e.xp6(1),e.Q6J("ngIf",!1===e.lcZ(2,2,n.state.loading$))("ngIfElse",t)}}const dn=function(s,c,t){return{lesson:s,lessons:c,entries:t}};let pn=(()=>{class s{constructor(t,n,o,i,a,p,u){this.state=t,this.blockLessons=n,this.lessonPresencesUpdateService=o,this.presenceTypesService=i,this.modalService=a,this.scrollPosition=p,this.route=u,this.search$=new T.X(""),this.entries$=(0,_.a)([this.state.presenceControlEntriesByGroup$,this.search$]).pipe((0,l.U)((0,$.h)(at.P)),(0,y.d)(1)),this.destroy$=new M.x}ngOnInit(){this.route.queryParams.pipe((0,S.R)(this.destroy$)).subscribe(this.restoreStateFromParams.bind(this))}ngAfterViewInit(){this.scrollPosition.restore()}ngOnDestroy(){this.destroy$.next()}doTogglePresenceType(t){t.forEach(n=>this.state.getNextPresenceType(n).subscribe(o=>this.lessonPresencesUpdateService.updatePresenceType(n,o?o.Id:null)))}togglePresenceType(t){this.blockLessons.getBlockLessonPresenceControlEntries(t).pipe((0,P.q)(1)).subscribe(n=>{if(1===n.length)this.doTogglePresenceType([n[0]]);else{const o=this.modalService.open(gt);o.componentInstance.entry=t,o.componentInstance.blockPresenceControlEntries=n,o.result.then(i=>{i&&this.doTogglePresenceType(i)},()=>{})}})}updateIncident(t,n){this.lessonPresencesUpdateService.updatePresenceType(t,n)}changeIncident(t){this.presenceTypesService.incidentTypes$.subscribe(n=>{const o=this.modalService.open(ft);o.componentInstance.incident=n.find(i=>i.Id===t.presenceType?.Id)||null,o.componentInstance.incidentTypes=n,o.result.then(i=>{this.updateIncident(t,i?.Id||null)},()=>{})})}restoreStateFromParams(t){t.date&&this.state.setDate((0,ht.nx)(t.date));const n=String(t.lesson);n&&this.state.setLessonId(n),t.viewMode&&qe.includes(t.viewMode)&&this.state.setViewMode(t.viewMode)}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(Z),e.Y36(Le),e.Y36(Ae),e.Y36(ae.c),e.Y36(d.FF),e.Y36(Lt.X),e.Y36(L.gz))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control-list"]],decls:7,vars:14,consts:[[4,"erzLet"],[4,"ngIf","ngIfElse"],["loading",""],[3,"selectedLesson","lessons","presentCount","absentCount","unapprovedCount","absentPrecedingCount","viewMode","selectDate","search","searchChange","viewModeChange","selectDateChange","selectLessonChange"],["noLessons",""],["noLessonPresences",""],[3,"entry","hasUnconfirmedAbsences","viewMode","profileReturnParams","togglePresenceType","changeIncident",4,"ngFor","ngForOf"],[3,"entry","hasUnconfirmedAbsences","viewMode","profileReturnParams","togglePresenceType","changeIncident"],[1,"mt-3"]],template:function(n,o){1&n&&(e.TgZ(0,"h1"),e._uU(1),e.ALo(2,"translate"),e.qZA(),e.YNc(3,ln,5,4,"ng-container",0),e.ALo(4,"async"),e.ALo(5,"async"),e.ALo(6,"async")),2&n&&(e.xp6(1),e.Oqu(e.lcZ(2,2,"presence-control.title")),e.xp6(2),e.Q6J("erzLet",e.kEZ(10,dn,e.lcZ(4,4,o.state.selectedLesson$),e.lcZ(5,6,o.state.lessons$),e.lcZ(6,8,o.entries$))))},dependencies:[f.sg,f.O5,H.e,ue.O,kt,Xt,f.Ov,m.X$],styles:["erz-presence-control-entry[_ngcontent-%COMP%]{border-bottom:1px solid #dee2e6}.entries.view-mode-grid[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}@media (min-width: 400px){.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%;border-right:1px solid #dee2e6}}@media (min-width: 800px){.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:50%;border-right:1px solid #dee2e6}}@media (min-width: 1200px){.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:33.3333333333%;border-right:1px solid #dee2e6}}@media (min-width: 1600px){.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:25%;border-right:1px solid #dee2e6}}@media (min-width: 2000px){.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:20%;border-right:1px solid #dee2e6}}@media (min-width: 2400px){.entries.view-mode-grid[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:16.6666666667%;border-right:1px solid #dee2e6}}[_nghost-%COMP%]{display:block;overflow:hidden;width:100%}.entries.view-mode-grid[_ngcontent-%COMP%]{width:calc(100% + 1px)}"],changeDetection:0})}return s})();var un=r(6163);const gn=[{path:"",component:(()=>{class s{constructor(t,n){this.state=t,this.lessonPresencesUpdateService=n,this.destroy$=new M.x}ngOnInit(){this.lessonPresencesUpdateService.stateUpdates$.pipe((0,S.R)(this.destroy$)).subscribe(t=>this.state.updateLessonPresencesTypes(t))}ngOnDestroy(){this.destroy$.next()}static#e=this.\u0275fac=function(n){return new(n||s)(e.Y36(Z),e.Y36(Ae))};static#t=this.\u0275cmp=e.Xpm({type:s,selectors:[["erz-presence-control"]],features:[e._Bn([Z,Le,j,{provide:un.m,useExisting:Z}])],decls:1,vars:0,template:function(n,o){1&n&&e._UZ(0,"router-outlet")},dependencies:[L.lC],changeDetection:0})}return s})(),children:[{path:"",component:pn,data:{restoreScrollPositionFrom:["/presence-control/student/:id/addresses","/presence-control/student/:id/absences","/presence-control/student/:id/grades"]}},K.H,{path:"groups/:id",component:ct}]}];let hn=(()=>{class s{static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275mod=e.oAB({type:s});static#n=this.\u0275inj=e.cJS({imports:[L.Bz.forChild(gn),L.Bz]})}return s})();var mn=r(8393);let fn=(()=>{class s{static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275mod=e.oAB({type:s});static#n=this.\u0275inj=e.cJS({providers:[mn.o],imports:[I.m,hn]})}return s})()},412:(Ze,R,r)=>{r.d(R,{X:()=>N});var I=r(1523),L=r(8645),K=r(2096),T=r(2181),_=r(7398),A=r(8180),l=r(1631),P=r(4664),v=r(2689),$=r(7081),w=r(9773),q=r(836),D=r(5879),e=r(6814);let N=(()=>{class b{constructor(g,d){this.router=g,this.viewportScroller=d,this.scrollPositions={},this.previousRoute=null,this.currentRoute=null,this.currentScrollPosition=[0,0],this.destroy$=new L.x,this.scrollPosition$=this.router.events.pipe((0,T.h)(V),(0,_.U)(this.getScrollPosition.bind(this))),this.activationEnd$=this.router.events.pipe((0,T.h)(W)),this.navigationEnd$=this.router.events.pipe((0,T.h)(X)),this.route$=this.activationEnd$.pipe((0,A.q)(1)).pipe((0,l.z)(m=>[(0,K.of)(m),this.navigationEnd$.pipe((0,P.w)(()=>this.activationEnd$.pipe((0,A.q)(1))))]),(0,v.B)(),(0,_.U)(m=>m.snapshot),(0,$.d)(1)),this.scrollPosition$.pipe((0,w.R)(this.destroy$)).subscribe(m=>this.currentScrollPosition=m),this.route$.pipe((0,w.R)(this.destroy$)).subscribe(m=>{this.previousRoute=this.currentRoute,this.currentRoute=m})}ngOnDestroy(){this.destroy$.next()}restore(){if(!this.currentRoute||!this.requiresStoring(this.currentRoute))return;if(this.previousRoute&&this.shouldStoreFor(this.currentRoute,this.previousRoute)){const d=this.getPath(this.currentRoute);this.scrollToPosition(this.scrollPositions[d]||[0,0])}const g=this.currentRoute;this.route$.pipe((0,q.T)(1),(0,A.q)(1),(0,w.R)(this.destroy$),(0,T.h)(d=>this.shouldStoreFor(g,d))).subscribe(()=>{const d=this.getPath(g);this.scrollPositions[d]=this.currentScrollPosition})}getScrollPosition(){return this.viewportScroller.getScrollPosition()}scrollToPosition(g){this.viewportScroller.scrollToPosition(g)}getPath(g){return g?"/"+g.pathFromRoot.map(d=>d.routeConfig&&d.routeConfig.path).filter(d=>d).join("/"):"/"}requiresStoring(g){return!!(g&&g.routeConfig&&g.routeConfig.data&&Array.isArray(g.routeConfig.data.restoreScrollPositionFrom)&&g.routeConfig.data.restoreScrollPositionFrom.length>0)}shouldStoreFor(g,d){return(g&&g.routeConfig&&g.routeConfig.data&&Array.isArray(g.routeConfig.data.restoreScrollPositionFrom)?g.routeConfig.data.restoreScrollPositionFrom:[]).includes(this.getPath(d))}static#e=this.\u0275fac=function(d){return new(d||b)(D.LFG(I.F0),D.LFG(e.EM))};static#t=this.\u0275prov=D.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})();function W(b){return b instanceof I.jw}function V(b){return b instanceof I.OD}function X(b){return b instanceof I.m2}}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/main.js b/public/apps/webapp-schulverwaltung/main.js index 76024ea2..a86d41c9 100644 --- a/public/apps/webapp-schulverwaltung/main.js +++ b/public/apps/webapp-schulverwaltung/main.js @@ -1 +1 @@ -(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[179],{7483:(Pe,V,a)=>{"use strict";a.d(V,{De:()=>d,P2:()=>w,Ps:()=>P,Re:()=>h,W3:()=>R,dP:()=>O,df:()=>B,dw:()=>L,fr:()=>$,yY:()=>F});var t=a(3986);function d(q,ie){return ie.map(k=>k.Id===q.TestId?P(q,k):k)}function w(q,ie){return ie.map(k=>k.Id===q?{...k,IsPublished:!k.IsPublished}:k)}function L(q){const ie=function j(q){return q.Results?.map(ie=>null!==ie.Points?ie.Points:M).filter(ie=>ie>M)||[]}(q);if(0===ie.length)throw new Error("unable to calculate averages without results");return(0,t.Y)(ie)}function h(q){return q.MaxPointsAdjusted||q.MaxPoints}function O(q){const ie=function f(q){return q.Results?.filter(ie=>null!==ie.GradeDesignation).map(ie=>Number(ie.GradeDesignation)).filter(ie=>!isNaN(ie))||[]}(q);if(0===ie.length)throw new Error("unable to calculate averages without results");return(0,t.Y)(ie)}function R(q,ie){return ie.Results?.find(k=>k.StudentId===q)}function F(q,ie){return null===ie?null:ie.filter(k=>k.Id!==q)}function P(q,ie){const k=ie.Results?.filter(Te=>q.Id!==Te.Id)||[];return{...ie,Results:[...k,q]}}function B(q){return q.slice().sort((ie,k)=>k.Date.getTime()-ie.Date.getTime())}function $(q,ie){return ie?.find(k=>k.Id===q.GradingScaleId)||null}const M=-1},2324:(Pe,V,a)=>{"use strict";a.d(V,{G:()=>w});var t=a(9189),d=a(5301);class w{constructor(h){if(this.absences=h,0===h.length)throw new Error("Absences array is empty");this.date=(0,t.Z)(this.absences[0].LessonDateTimeFrom),this.dateString=(0,d.Z)(this.date,"yyyy-MM-dd"),this.studentId=this.absences[0].StudentRef.Id,this.studentFullName=this.absences[0].StudentFullName,this.studyClassNumber=this.absences[0].StudyClassNumber,this.lessonsCount=this.absences.length}}},7727:(Pe,V,a)=>{"use strict";a.d(V,{Ob:()=>O,MX:()=>F,HM:()=>B,pE:()=>P,EA:()=>R});var t=a(5301),d=a(2324),w=a(6747);class L extends Error{constructor(M,q){super(`TypeScript thought we could never end up here\n${q}`)}}var h=a(4011);function O(j){const M=function f(j){return j.reduce((M,q)=>{const ie=(0,t.Z)(q.LessonDateTimeFrom,"yyyy-MM-dd"),k=q.StudentRef.Id;return M[ie]||(M[ie]={}),M[ie][k]||(M[ie][k]=[]),M[ie][k].push(q),M},{})}(j);return Object.keys(M).reduce((q,ie)=>(Object.keys(M[ie]).forEach(k=>{q=[...q,new d.G(M[ie][k].sort(w.kM))]}),q),[])}function R(j,M){return[...j].sort(function $(j){return(M,q)=>{switch(j.primarySortKey){case"date":{const ie=M.date.getTime(),k=q.date.getTime();return ie===k?M.studentFullName.localeCompare(q.studentFullName):j.ascending?ie-k:k-ie}case"name":{const ie=j.ascending?M.studentFullName.localeCompare(q.studentFullName):q.studentFullName.localeCompare(M.studentFullName);return 0===ie?q.date.getTime()-M.date.getTime():ie}default:throw new L(j.primarySortKey,"Unhandled sort criteria")}}}(M))}function F(j){return j.reduce((M,q)=>M.concat(q.absences),[])}function P(j,M){return j.filter(q=>!M.some(({lessonIds:ie,personId:k})=>ie.includes(q.LessonRef.Id)&&k===q.StudentRef.Id))}function B(j,M){return(0,h.Z)([...j,...M],"Id")}},3449:(Pe,V,a)=>{"use strict";a.d(V,{ES:()=>w,Ov:()=>d,Oz:()=>L});var t=a(8484),d=function(h){return h.Present="present",h.Unapproved="unapproved",h.Absent="absent",h}(d||{});function w(h){switch(h){case d.Absent:return"cancel";case d.Unapproved:return"help";default:return"check_circle"}}class L{constructor(O,R,F,P){this.lessonPresence=O,this.presenceType=R,this.precedingAbsences=F,this.confirmationState=P,this.studentFullName=O.StudentFullName}get presenceCategory(){return(0,t.fv)(this.settings,this.confirmationState&&Number(this.confirmationState.Key))?d.Unapproved:(0,t.qX)(this.presenceType)?d.Absent:d.Present}get nextPresenceCategory(){return this.presenceCategory===d.Absent?d.Present:d.Absent}getNextPresenceType(O){return this.nextPresenceCategory===d.Absent?this.presenceCategory===d.Unapproved?this.presenceType:O.find(R=>(0,t.xK)(R,this.settings))||null:null}get canChangePresenceType(){return(0,t.NF)(this.lessonPresence,this.presenceType,this.settings)}get canChangeIncident(){return!(0,t.qX)(this.presenceType)}get showDesignation(){return!this.canChangePresenceType||this.presenceCategory===d.Absent&&!(0,t.xK)(this.presenceType,this.settings)||this.presenceCategory===d.Unapproved}get presenceCategoryIcon(){return w(this.presenceCategory)}get settings(){return window.schulverwaltung.settings}}},6747:(Pe,V,a)=>{"use strict";a.d(V,{In:()=>w,bL:()=>R,kM:()=>P,uP:()=>F});var t=a(3449),d=a(4011);function w(f,j){return null===f&&null===j||null!==f&&null!==j&&f.LessonRef.Id===j.LessonRef.Id&&f.EventDesignation===j.EventDesignation&&f.StudyClassNumber===j.StudyClassNumber&&f.TeacherInformation===j.TeacherInformation&&f.LessonDateTimeFrom.getTime()===j.LessonDateTimeFrom.getTime()&&f.LessonDateTimeTo.getTime()===j.LessonDateTimeTo.getTime()}function R(f,j,M,q,ie){return function h(f,j){return f?j.filter(M=>f.lessons.map(q=>q.LessonRef.Id).indexOf(M.LessonRef.Id)>=0).sort(B):[]}(f,j).map(k=>F(f,k,M,q,ie))}function F(f,j,M,q,ie){let k=null;j.TypeRef.Id&&(k=M.find(ye=>ye.Id===j.TypeRef.Id)||null);const Te=function O(f,j,M){return(0,d.Z)(f.filter(q=>q.StudentRef.Id===j.StudentRef.Id&&q.LessonRef.From&&q.LessonRef.From.toDateString()===M?.LessonDateTimeFrom.toDateString()&&q.LessonRef.Fromye.Key===j.ConfirmationStateId)),new t.Oz(j,k,Te,Se)}function P(f,j){const M=f.LessonDateTimeFrom.getTime(),q=j.LessonDateTimeFrom.getTime();return M-q==0?f.LessonDateTimeTo.getTime()-j.LessonDateTimeTo.getTime():M-q}function B(f,j){return f.StudentFullName.localeCompare(j.StudentFullName)}function $(f,j){return f.LessonRef.From&&f.LessonRef.To&&j.LessonRef.From&&j.LessonRef.To?f.LessonRef.From.getTime()-j.LessonRef.From.getTime()==0?f.LessonRef.To.getTime()-j.LessonRef.To.getTime():f.LessonRef.From.getTime()-j.LessonRef.From.getTime():0}},8484:(Pe,V,a)=>{"use strict";function d(B){return!(!B||!B.IsComment)}function w(B){return!(!B||!B.IsIncident)}function L(B){return!(!B||!(B.IsAbsence||B.IsDispensation||B.IsHalfDay))}function h(B,$){return!(!B||!$||B.Id!==$.absencePresenceTypeId)}function O(B,$){return!(!B||!$||$!==B.checkableAbsenceStateId)}function F(B,$,f){return!!(function t(B){return!B}($)&&null===B.ConfirmationStateId||d($)||w($)||L($)&&B.ConfirmationStateId===f.unconfirmedAbsenceStateId||O(f,B.ConfirmationStateId))}function P(B,$){return B?.IsAbsence?$.unconfirmedAbsenceStateId:null}a.d(V,{C3:()=>d,LO:()=>P,NF:()=>F,fv:()=>O,hm:()=>w,qX:()=>L,xK:()=>h})},2769:(Pe,V,a)=>{"use strict";a.d(V,{I:()=>B,R:()=>f});var t=a(9862),d=a(6232),w=a(8504),L=a(6306),h=a(3942),O=a(5879),R=a(1523),F=a(6869),P=a(9515);function B(j,M={}){let q;return q=M instanceof t.LE?M:new t.LE({fromObject:M}),q.set("restConfig",JSON.stringify(j))}let f=(()=>{class j{constructor(q,ie,k){this.router=q,this.toastService=ie,this.translate=k}intercept(q,ie){const{config:k,params:Te}=function $(j){return{config:JSON.parse(j.get("restConfig")||"{}"),params:j.delete("restConfig")}}(q.params);return ie.handle(q.clone({params:Te})).pipe((0,L.K)(this.getErrorHandler(k)))}getErrorHandler(q){return ie=>{if(ie instanceof t.UA&&!q.disableErrorHandling&&(!q.disableErrorHandlingForStatus||!q.disableErrorHandlingForStatus.includes(ie.status)))switch(ie.status){case 401:return this.notifyError("noaccess"),this.router.navigate(["/unauthenticated"]),d.E;case 403:return this.notifyError("noaccess"),d.E;case 404:return this.notifyError("notfound"),d.E;case 0:case 503:case 504:return this.notifyError("unavailable"),d.E;case 409:return this.notifyConflictError(ie),d.E;default:return this.notifyError("server"),d.E}return(0,w._)(()=>ie)}}notifyError(q){this.toastService.error(this.translate.instant(`global.rest-errors.${q}-message`),this.translate.instant(`global.rest-errors.${q}-title`))}notifyConflictError(q){const ie=this.translate.instant("global.rest-errors.conflict-message"),k=this.parseConflictIssues(q);this.toastService.error(k.length>0?k.join("\n"):ie,this.translate.instant("global.rest-errors.conflict-title"))}parseConflictIssues(q){return Array.isArray(q.error?.Issues)?q.error.Issues.map(ie=>ie?.Message).filter(h.YO):[]}static#e=this.\u0275fac=function(ie){return new(ie||j)(O.LFG(R.F0),O.LFG(F.k),O.LFG(P.sK))};static#t=this.\u0275prov=O.Yz7({token:j,factory:j.\u0275fac})}return j})()},4141:(Pe,V,a)=>{"use strict";a.d(V,{L6:()=>P,Zr:()=>F});var t=a(5879),d=a(754),w=a(8121);const L=d.dt({de:d.dt({label:d.Z_,description:d.Z_}),fr:d.dt({label:d.Z_,description:d.Z_})}),h=d.IM(d.Z_,L),O=d.dt({roles:d.IX(d.Z_),types:d.IX(d.Z_)}),R=d.dt({substitutionsAdminLink:d.Z_}),F=d.dt({apiUrl:d.Z_,scriptsAndAssetsPath:d.Z_,paginationLimit:d.pk,absencePresenceTypeId:d.pk,latePresenceTypeId:d.pk,dispensationPresenceTypeId:d.pk,halfDayPresenceTypeId:d.pk,unconfirmedAbsenceStateId:d.pk,unexcusedAbsenceStateId:d.pk,excusedAbsenceStateId:d.pk,checkableAbsenceStateId:d.pk,lessonPresencesRefreshTime:d.pk,unconfirmedAbsencesRefreshTime:(0,w.Wx)(d.pk),personMasterDataReportId:d.pk,studentConfirmationReportId:d.pk,evaluateAbsencesReportId:d.pk,testsByCourseReportId:d.pk,testsBySubscriptionReportIdStudent:d.pk,testsBySubscriptionReportIdTeacher:d.pk,subscriptionDetailGroupId:d.pk,headerRoleRestriction:d.IM(d.Z_,d.Z_),notificationRefreshTime:d.pk,notificationTypes:h,notificationTypesAssignments:d.IX(O),eventlist:d.IM(d.Z_,d.Z_),dashboard:R,preventStudentAbsenceAfterLessonStart:d.IX(d.Z_)}),P=new t.OlP("Application Settings",{providedIn:"root",factory:()=>window.schulverwaltung.settings})},2628:(Pe,V,a)=>{"use strict";a.d(V,{A:()=>O});var t=a(4141),d=a(5879),w=a(8173),L=a(6814),h=a(1523);let O=(()=>{class R{constructor(P,B){this.settings=P,this.storageService=B,this.avatarStyles={}}ngOnChanges(P){P.studentId&&(this.avatarStyles=this.buildAvatarStyles(this.studentId))}buildAvatarStyles(P){return{"background-image":[this.buildAvatarUrl(P),this.fallbackAvatarUrl].map(B=>`url(${B})`).join(", ")}}buildAvatarUrl(P){const B=this.storageService.getAccessToken()||"";return`${this.settings.apiUrl}/Files/personPictures/${P}?token=${B}`}get fallbackAvatarUrl(){return`${this.settings.scriptsAndAssetsPath}/assets/images/avatar-placeholder.png`}static#e=this.\u0275fac=function(B){return new(B||R)(d.Y36(t.L6),d.Y36(w.V))};static#t=this.\u0275cmp=d.Xpm({type:R,selectors:[["erz-avatar"]],inputs:{studentId:"studentId",link:"link",linkParams:"linkParams"},features:[d.TTD],decls:1,vars:5,consts:[[1,"avatar",3,"routerLink","queryParams","ngStyle"]],template:function(B,$){1&B&&d._UZ(0,"a",0),2&B&&(d.ekj("disabled",!$.link),d.Q6J("routerLink",$.link)("queryParams",$.linkParams)("ngStyle",$.avatarStyles))},dependencies:[L.PC,h.rH],styles:["[_nghost-%COMP%]{display:flex}.small[_nghost-%COMP%]{width:40px;min-width:40px;height:50px}.medium[_nghost-%COMP%]{width:58px;min-width:58px;height:75px}.large[_nghost-%COMP%]{width:100px;min-width:100px;height:130px}.avatar[_ngcontent-%COMP%]{flex:1;border:1px solid rgba(0,0,0,.25);background-repeat:no-repeat;background-size:cover;background-position:center}a.disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:default}"]})}return R})()},7625:(Pe,V,a)=>{"use strict";a.d(V,{I:()=>h});var t=a(5879),d=a(1523),w=a(9515);const L=["*"];let h=(()=>{class O{constructor(){this.routerLink=[]}static#e=this.\u0275fac=function(P){return new(P||O)};static#t=this.\u0275cmp=t.Xpm({type:O,selectors:[["erz-backlink"]],inputs:{routerLink:"routerLink",queryParams:"queryParams"},ngContentSelectors:L,decls:8,vars:5,consts:[[1,"d-flex","align-items-start","justify-content-between","w-100","mb-3"],[3,"routerLink","queryParams"],[1,"material-icons"],[1,"label"]],template:function(P,B){1&P&&(t.F$t(),t.TgZ(0,"div",0)(1,"a",1)(2,"span",2),t._uU(3,"arrow_back"),t.qZA(),t.TgZ(4,"span",3),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.Hsn(7),t.qZA()),2&P&&(t.xp6(1),t.Q6J("routerLink",B.routerLink)("queryParams",B.queryParams),t.xp6(4),t.Oqu(t.lcZ(6,3,"global.back")))},dependencies:[d.rH,w.X$],styles:["[_nghost-%COMP%]{display:flex}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{height:calc(var(--bs-body-font-size) * var(--bs-body-line-height))}a[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.3rem}a[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus{text-decoration:none}a[_ngcontent-%COMP%]:hover .label[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:focus .label[_ngcontent-%COMP%]{text-decoration:underline;text-decoration-color:#ea161f}"]})}return O})()},917:(Pe,V,a)=>{"use strict";a.d(V,{A:()=>ae});var t=a(6223),d=a(5619),w=a(8645),L=a(2572),h=a(7398),O=a(7081),R=a(8180),F=a(9773),P=a(2181),B=a(4664),$=a(4716),f=a(3942),j=a(1257),M=a(4141),q=a(1140),ie=a(6163),k=a(5879),Te=a(1523),Se=a(6869),ye=a(9515),ce=a(8393),_e=a(5001),ve=a(905),xe=a(6023),be=a(6814),ke=a(6567);const vt=function(fe){return{count:fe}};function rt(fe,De){if(1&fe&&(k.TgZ(0,"div",4),k._uU(1),k.ALo(2,"translate"),k.qZA()),2&fe){const je=De.erzLet;k.xp6(1),k.hij(" ",k.xi3(2,1,1===je?"open-absences.edit.lesson-selected":"open-absences.edit.lessons-selected",k.VKq(4,vt,je))," ")}}function Mt(fe,De){if(1&fe&&(k.TgZ(0,"div",19),k._uU(1),k.ALo(2,"translate"),k.qZA()),2&fe){const je=De.$implicit;k.xp6(1),k.hij(" ",k.xi3(2,1,"global.validation-errors."+je.error,je.params)," ")}}function qe(fe,De){if(1&fe&&(k.TgZ(0,"div",27),k._uU(1),k.ALo(2,"translate"),k.qZA()),2&fe){const je=De.$implicit;k.xp6(1),k.hij(" ",k.xi3(2,1,"global.validation-errors."+je.error,je.params)," ")}}function _t(fe,De){if(1&fe&&(k.ynx(0),k.YNc(1,qe,3,4,"div",26),k.ALo(2,"async"),k.BQk()),2&fe){const je=k.oxw(5);k.xp6(1),k.Q6J("ngForOf",k.lcZ(2,1,je.absenceTypeIdErrors$))}}function $e(fe,De){if(1&fe&&(k.TgZ(0,"div",23),k._UZ(1,"input",24),k.ALo(2,"async"),k.TgZ(3,"label",25),k._uU(4),k.qZA(),k.YNc(5,_t,3,3,"ng-container",11),k.ALo(6,"async"),k.qZA()),2&fe){const je=De.$implicit,Xe=De.index,tt=k.oxw(4);let wt;k.xp6(1),k.ekj("is-invalid",k.lcZ(2,7,tt.absenceTypeIdErrors$).length>0),k.Q6J("id","absence-type-"+Xe)("value",je.Id),k.xp6(2),k.Q6J("for","absence-type-"+Xe),k.xp6(1),k.hij(" ",je.Designation," "),k.xp6(1),k.Q6J("ngIf",(null==(wt=k.lcZ(6,9,tt.absenceTypes$))?null:wt.length)-1===Xe)}}const Ee=function(){return["/edit-absences"]};function Ze(fe,De){if(1&fe&&(k.ynx(0),k.YNc(1,$e,7,11,"div",20),k.ALo(2,"async"),k.TgZ(3,"div",21),k._uU(4),k.ALo(5,"translate"),k.TgZ(6,"a",22),k._uU(7),k.ALo(8,"translate"),k.qZA()(),k.BQk()),2&fe){const je=k.oxw(3);k.xp6(1),k.Q6J("ngForOf",k.lcZ(2,4,je.absenceTypes$)),k.xp6(3),k.hij(" ",k.lcZ(5,6,"open-absences.edit.remark")," "),k.xp6(2),k.Q6J("routerLink",k.DdM(10,Ee)),k.xp6(1),k.hij(" ",k.lcZ(8,8,"edit-absences.title")," ")}}function J(fe,De){1&fe&&(k.TgZ(0,"div",28)(1,"span",29),k._uU(2,"Loading..."),k.qZA()())}function Q(fe,De){if(1&fe){const je=k.EpF();k.TgZ(0,"form",5),k.NdJ("ngSubmit",function(){k.CHM(je);const tt=k.oxw(2);return k.KtG(tt.onSubmit())}),k.YNc(1,Mt,3,4,"div",6),k.ALo(2,"async"),k.TgZ(3,"div",7)(4,"div",8),k._UZ(5,"input",9),k.TgZ(6,"label",10),k._uU(7),k.qZA(),k.YNc(8,Ze,9,11,"ng-container",11),k.qZA(),k.TgZ(9,"div",12),k._UZ(10,"input",13),k.TgZ(11,"label",14),k._uU(12),k.qZA()()(),k.TgZ(13,"div",15)(14,"button",16),k.NdJ("click",function(){k.CHM(je);const tt=k.oxw(2);return k.KtG(tt.cancel())}),k.ALo(15,"async"),k._uU(16),k.ALo(17,"translate"),k.qZA(),k.TgZ(18,"button",17),k.ALo(19,"async"),k._uU(20),k.ALo(21,"translate"),k.YNc(22,J,3,0,"div",18),k.ALo(23,"async"),k.qZA()()()}if(2&fe){const je=k.oxw().erzLet,Xe=k.oxw();k.Q6J("formGroup",je.formGroup),k.xp6(1),k.Q6J("ngForOf",k.lcZ(2,12,Xe.formErrors$)),k.xp6(4),k.Q6J("value",je.excusedState.Key),k.xp6(2),k.hij(" ",je.excusedState.Value," "),k.xp6(1),k.Q6J("ngIf",je.formGroup.get("absenceTypeId")),k.xp6(2),k.Q6J("value",je.unexcusedState.Key),k.xp6(2),k.hij(" ",je.unexcusedState.Value," "),k.xp6(2),k.Q6J("disabled",k.lcZ(15,14,Xe.saving$)),k.xp6(2),k.hij(" ",k.lcZ(17,16,"open-absences.edit.cancel")," "),k.xp6(2),k.Q6J("disabled",k.lcZ(19,18,Xe.saving$)),k.xp6(2),k.hij(" ",k.lcZ(21,20,"open-absences.edit.save")," "),k.xp6(2),k.Q6J("ngIf",k.lcZ(23,22,Xe.saving$))}}function oe(fe,De){if(1&fe&&(k.TgZ(0,"div",1)(1,"h1"),k._uU(2),k.ALo(3,"translate"),k.qZA(),k.YNc(4,rt,3,6,"div",2),k.ALo(5,"async"),k.YNc(6,Q,24,24,"form",3),k.qZA()),2&fe){const je=De.erzLet,Xe=k.oxw();k.xp6(2),k.Oqu(k.lcZ(3,3,"open-absences.edit.title")),k.xp6(2),k.Q6J("erzLet",k.lcZ(5,5,Xe.getSelectedCount())),k.xp6(2),k.Q6J("ngIf",je.formGroup&&je.unexcusedState&&je.excusedState)}}const se=function(fe,De,je){return{formGroup:fe,unexcusedState:De,excusedState:je}};let ae=(()=>{class fe{constructor(je,Xe,tt,wt,It,Je,Tt,et,Pt,Zt,dn){this.fb=je,this.router=Xe,this.activatedRoute=tt,this.toastService=wt,this.translate=It,this.selectionService=Je,this.dropDownItemsService=Tt,this.presenceTypesService=et,this.updateService=Pt,this.settings=Zt,this.openAbsencesEditService=dn,this.formGroup$=this.selectionService.selectedWithoutPresenceType$.pipe((0,h.U)(this.createFormGroup.bind(this)),(0,O.d)(1)),this.saving$=new d.X(!1),this.submitted$=new d.X(!1),this.formErrors$=(0,j.Z6)(this.formGroup$,this.submitted$),this.absenceTypeIdErrors$=(0,j.Z6)(this.formGroup$,this.submitted$,"absenceTypeId"),this.confirmationStates$=this.dropDownItemsService.getAbsenceConfirmationStates().pipe((0,O.d)(1)),this.excusedState$=(0,q.q)(this.confirmationStates$,this.settings.excusedAbsenceStateId),this.unexcusedState$=(0,q.q)(this.confirmationStates$,this.settings.unexcusedAbsenceStateId),this.absenceTypes$=this.presenceTypesService.confirmationTypes$,this.destroy$=new w.x}ngOnInit(){this.selectionService.selectedIds$.pipe((0,R.q)(1)).subscribe(je=>{0===je.length&&this.navigateBack()}),(0,j.ZX)(this.formGroup$,"confirmationValue").pipe((0,F.R)(this.destroy$)).subscribe(je=>{"number"==typeof je&&this.updateAbsenceTypeIdDisabled(je)}),(0,L.a)([(0,j.YV)(this.formGroup$,"confirmationValue").pipe((0,P.h)(f.Nf)),(0,j.YV)(this.formGroup$,"absenceTypeId").pipe((0,P.h)(f.Nf)),this.saving$]).pipe((0,F.R)(this.destroy$)).subscribe(([je,Xe,tt])=>{tt?(je.disable(),Xe.disable()):(je.enable(),this.updateAbsenceTypeIdDisabled(je.value))}),(0,L.a)([(0,j.YV)(this.formGroup$,"confirmationValue").pipe((0,P.h)(f.Nf)),this.excusedState$.pipe((0,R.q)(1),(0,P.h)(f.Nf))]).pipe((0,F.R)(this.destroy$)).subscribe(([je,Xe])=>je.setValue(Xe.Key))}ngOnDestroy(){this.destroy$.next()}onSubmit(){this.submitted$.next(!0),this.formGroup$.pipe((0,R.q)(1)).subscribe(je=>{if(je.valid){const{confirmationValue:Xe,absenceTypeId:tt}=je.value;this.save(Xe,tt)}})}cancel(){this.navigateBack()}getSelectedCount(){return this.selectionService.selectedLessons$.pipe((0,h.U)(je=>je.length))}createFormGroup(je){return this.fb.group(je.length>0?{confirmationValue:[null],absenceTypeId:[null,t.kI.required]}:{confirmationValue:[null]})}updateAbsenceTypeIdDisabled(je){(0,L.a)([(0,j.YV)(this.formGroup$,"absenceTypeId").pipe((0,R.q)(1),(0,P.h)(f.Nf)),this.excusedState$.pipe((0,R.q)(1),(0,P.h)(f.Nf))]).subscribe(([Xe,tt])=>{je===tt.Key?Xe.enable():Xe.disable()})}save(je,Xe){this.saving$.next(!0),(0,L.a)([this.selectionService.selectedIds$.pipe((0,R.q)(1)),this.unexcusedState$.pipe((0,R.q)(1),(0,P.h)(f.Nf))]).pipe((0,B.w)(([tt,wt])=>(0,L.a)(tt.map(({lessonIds:It,personId:Je,presenceTypeId:Tt})=>this.updateService.confirmLessonPresences(It,[Je],this.getNewAbsenceTypeId(Tt,je,Number(wt.Key),Xe),je)))),(0,$.x)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}getNewAbsenceTypeId(je,Xe,tt,wt){if(!je)throw new Error("absence type id cannot be null");return Xe===tt?this.settings.absencePresenceTypeId:je===this.settings.absencePresenceTypeId?wt:je}onSaveSuccess(){this.openAbsencesEditService?.updateAfterConfirm&&this.openAbsencesEditService.updateAfterConfirm(),this.toastService.success(this.translate.instant("open-absences.edit.save-success")),this.navigateBack()}navigateBack(){this.router.navigate(this.openAbsencesEditService?.confirmBackLink||[".."],{relativeTo:this.activatedRoute,queryParams:this.openAbsencesEditService?.confirmBackLinkParams})}static#e=this.\u0275fac=function(Xe){return new(Xe||fe)(k.Y36(t.QS),k.Y36(Te.F0),k.Y36(Te.gz),k.Y36(Se.k),k.Y36(ye.sK),k.Y36(ce.o),k.Y36(_e.R),k.Y36(ve.c),k.Y36(xe.O),k.Y36(M.L6),k.Y36(ie.m,8))};static#t=this.\u0275cmp=k.Xpm({type:fe,selectors:[["erz-confirm-absences"]],decls:4,vars:11,consts:[["class","erz-container erz-container-limited",4,"erzLet"],[1,"erz-container","erz-container-limited"],["class","mb-3 pb-3 border-bottom",4,"erzLet"],[3,"formGroup","ngSubmit",4,"ngIf"],[1,"mb-3","pb-3","border-bottom"],[3,"formGroup","ngSubmit"],["class","alert alert-danger",4,"ngFor","ngForOf"],[1,"form-group","pb-4"],[1,"form-check","mt-2","mb-3","pb-3","border-bottom"],["type","radio","id","excused","formControlName","confirmationValue",1,"form-check-input",3,"value"],["for","excused",1,"form-check-label"],[4,"ngIf"],[1,"form-check","mt-3","mb-3","pb-3","border-bottom"],["type","radio","id","unexcused","formControlName","confirmationValue",1,"form-check-input",3,"value"],["for","unexcused",1,"form-check-label"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["type","submit",1,"btn","btn-primary","ms-2",3,"disabled"],["class","spinner-border spinner-border-sm align-middle","role","status",4,"ngIf"],[1,"alert","alert-danger"],["class","form-check my-3",4,"ngFor","ngForOf"],[1,"remark"],[3,"routerLink"],[1,"form-check","my-3"],["type","radio","formControlName","absenceTypeId",1,"form-check-input",3,"id","value"],[1,"form-check-label",3,"for"],["class","invalid-feedback",4,"ngFor","ngForOf"],[1,"invalid-feedback"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(Xe,tt){1&Xe&&(k.YNc(0,oe,7,7,"div",0),k.ALo(1,"async"),k.ALo(2,"async"),k.ALo(3,"async")),2&Xe&&k.Q6J("erzLet",k.kEZ(7,se,k.lcZ(1,1,tt.formGroup$),k.lcZ(2,3,tt.unexcusedState$),k.lcZ(3,5,tt.excusedState$)))},dependencies:[be.sg,be.O5,t._Y,t.Fj,t._,t.JJ,t.JL,t.sg,t.u,Te.rH,ke.e,be.Ov,ye.X$],changeDetection:0})}return fe})()},1133:(Pe,V,a)=>{"use strict";a.d(V,{T:()=>O});var t=a(5879),d=a(902),w=a(6223),L=a(253),h=a(9515);let O=(()=>{class R{constructor(){this.value=null,this.placeholder="shared.date-select.default-placeholder",this.minDate=null,this.valueChange=new t.vpe,this.componentId=(0,d.Z)("erz-date-select-")}static#e=this.\u0275fac=function(B){return new(B||R)};static#t=this.\u0275cmp=t.Xpm({type:R,selectors:[["erz-date-select"]],inputs:{value:"value",placeholder:"placeholder",minDate:"minDate"},outputs:{valueChange:"valueChange"},decls:8,vars:10,consts:[[1,"input-group"],[1,"input-group-text",3,"id"],[1,"material-icons"],["type","text","ngbDatepicker","",1,"form-control",3,"minDate","ngModel","click","ngModelChange"],["dp","ngbDatepicker"]],template:function(B,$){if(1&B){const f=t.EpF();t.TgZ(0,"div",0)(1,"span",1)(2,"i",2),t._uU(3,"calendar_today"),t.qZA()(),t.TgZ(4,"input",3,4),t.NdJ("click",function(){t.CHM(f);const M=t.MAs(5);return t.KtG(M.toggle())})("ngModelChange",function(M){return $.valueChange.emit(M)}),t.ALo(6,"translate"),t.ALo(7,"translate"),t.qZA()()}2&B&&(t.xp6(1),t.Q6J("id",$.componentId),t.xp6(3),t.Q6J("minDate",$.minDate)("ngModel",$.value),t.uIk("placeholder",t.lcZ(6,6,$.placeholder))("aria-label",t.lcZ(7,8,$.placeholder))("aria-describedby",$.componentId))},dependencies:[w.Fj,w.JJ,w.On,L.J4,h.X$]})}return R})()},6001:(Pe,V,a)=>{"use strict";a.d(V,{z:()=>B});var t=a(5879),d=a(6814),w=a(6223),L=a(363),h=a(9515);function O($,f){if(1&$){const j=t.EpF();t.TgZ(0,"div",5),t._uU(1),t.TgZ(2,"span",6),t.NdJ("click",function(){const ie=t.CHM(j).$implicit,k=t.oxw().clear;return t.KtG(k(ie))}),t._uU(3,"\xd7"),t.qZA()()}if(2&$){const j=f.$implicit;t.xp6(1),t.hij(" ",j.Value," ")}}function R($,f){1&$&&t.YNc(0,O,4,1,"div",4),2&$&&t.Q6J("ngForOf",f.items)}function F($,f){if(1&$&&(t._UZ(0,"input",7),t._uU(1)),2&$){const j=f.item,M=f.item$;t.MGl("id","item-",f.index,""),t.Q6J("ngModel",M.selected),t.xp6(1),t.hij(" ",j.Group," ")}}function P($,f){if(1&$&&(t._UZ(0,"input",7),t._uU(1)),2&$){const j=f.item,M=f.item$;t.MGl("id","item-",f.index,""),t.Q6J("ngModel",M.selected),t.xp6(1),t.hij(" ",j.Value," ")}}let B=(()=>{class ${constructor(){this.options=[],this.values=[],this.valuesChange=new t.vpe}itemsChanged(){this.valuesChange.emit(this.values)}static#e=this.\u0275fac=function(M){return new(M||$)};static#t=this.\u0275cmp=t.Xpm({type:$,selectors:[["erz-multiselect"]],inputs:{options:"options",values:"values"},outputs:{valuesChange:"valuesChange"},decls:5,vars:10,consts:[["groupBy","Group","bindValue","Key","bindLabel","Value","dropdownPosition","bottom",1,"multiselect",3,"items","multiple","selectableGroup","selectableGroupAsModel","closeOnSelect","ngModel","placeholder","clearable","ngModelChange","click","clear"],["ng-multi-label-tmp",""],["ng-optgroup-tmp",""],["ng-option-tmp",""],["class","ng-value",4,"ngFor","ngForOf"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","right",3,"click"],["type","checkbox",3,"id","ngModel"]],template:function(M,q){1&M&&(t.TgZ(0,"ng-select",0),t.NdJ("ngModelChange",function(k){return q.values=k})("click",function(){return q.itemsChanged()})("clear",function(){return q.itemsChanged()}),t.ALo(1,"translate"),t.YNc(2,R,1,1,"ng-template",1),t.YNc(3,F,2,3,"ng-template",2),t.YNc(4,P,2,3,"ng-template",3),t.qZA()),2&M&&(t.s9C("placeholder",t.lcZ(1,8,"shared.select.empty-option")),t.Q6J("items",q.options)("multiple",!0)("selectableGroup",!0)("selectableGroupAsModel",!1)("closeOnSelect",!1)("ngModel",q.values)("clearable",!0))},dependencies:[d.sg,w.Wl,w.JJ,w.On,L.w9,L.C5,L.ir,L.zB,h.X$]})}return $})()},4229:(Pe,V,a)=>{"use strict";a.d(V,{H:()=>B});var t=a(5879),d=a(5619),w=a(2572),L=a(7398),h=a(6814),O=a(6223),R=a(9515);function F($,f){if(1&$&&(t.TgZ(0,"option",3),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&$){const j=t.oxw();t.Q6J("ngValue",null),t.xp6(1),t.hij(" ",t.lcZ(2,2,j.emptyLabel)," ")}}function P($,f){if(1&$&&(t.TgZ(0,"option",3),t._uU(1),t.qZA()),2&$){const j=f.$implicit;t.Q6J("ngValue",j),t.xp6(1),t.hij(" ",j.Value," ")}}let B=(()=>{class ${constructor(){this.options=[],this.allowEmpty=!0,this.emptyLabel="",this.value=null,this.disabled=!1,this.tabindex=0,this.valueChange=new t.vpe,this.options$=new d.X([]),this.rawValue$=new d.X(null),this.value$=(0,w.a)([this.rawValue$,this.options$]).pipe((0,L.U)(([j,M])=>M&&M.find(q=>q.Key===j)||null))}ngOnChanges(j){j.value&&this.rawValue$.next(j.value.currentValue),j.options&&this.options$.next(j.options.currentValue)}static#e=this.\u0275fac=function(M){return new(M||$)};static#t=this.\u0275cmp=t.Xpm({type:$,selectors:[["erz-select"]],inputs:{options:"options",allowEmpty:"allowEmpty",emptyLabel:"emptyLabel",value:"value",disabled:"disabled",tabindex:"tabindex"},outputs:{valueChange:"valueChange"},features:[t.TTD],decls:5,vars:7,consts:[[1,"form-select",3,"tabindex","disabled","ngModel","ngModelChange"],[3,"ngValue",4,"ngIf"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"]],template:function(M,q){1&M&&(t.TgZ(0,"select",0),t.NdJ("ngModelChange",function(k){return q.valueChange.emit(k&&k.Key)}),t.ALo(1,"async"),t.YNc(2,F,3,4,"option",1),t.YNc(3,P,2,2,"option",2),t._uU(4," >\n"),t.qZA()),2&M&&(t.s9C("tabindex",q.tabindex),t.Q6J("disabled",q.disabled)("ngModel",t.lcZ(1,5,q.value$)),t.xp6(2),t.Q6J("ngIf",q.allowEmpty),t.xp6(1),t.Q6J("ngForOf",q.options))},dependencies:[h.sg,h.O5,O.YN,O.Kr,O.EJ,O.JJ,O.On,h.Ov,R.X$]})}return $})()},59:(Pe,V,a)=>{"use strict";a.d(V,{O:()=>d});var t=a(5879);let d=(()=>{class w{constructor(){}static#e=this.\u0275fac=function(O){return new(O||w)};static#t=this.\u0275cmp=t.Xpm({type:w,selectors:[["erz-spinner"]],decls:4,vars:0,consts:[[1,"spinner-container"],["role","status",1,"spinner-border"],[1,"visually-hidden"]],template:function(O,R){1&O&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span",2),t._uU(3,"Loading..."),t.qZA()()())},styles:[".spinner-container[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%]:not(.inline) .spinner-container[_ngcontent-%COMP%]{top:-131px;min-height:200px}.spinner-border[_ngcontent-%COMP%]{width:4rem;height:4rem}[_nghost-%COMP%]:not(.inline) .spinner-border[_ngcontent-%COMP%]{margin-top:100px}.small[_nghost-%COMP%] .spinner-border[_ngcontent-%COMP%]{width:2rem;height:2rem;--bs-spinner-vertical-align: -.2em;--bs-spinner-border-width: .15em}"]})}return w})()},3388:(Pe,V,a)=>{"use strict";a.d(V,{t:()=>It});var t=a(8645),d=a(9773),w=a(7328),L=a(2572),h=a(2096),O=a(6232),R=a(4664),F=a(7921),P=a(3020),B=a(7398),$=a(4141),f=a(5879),j=a(7575),M=a(905),q=a(6869),ie=a(9515);let k=(()=>{class Je{constructor(et,Pt,Zt,dn,Rn){this.settings=et,this.lessonPresencesService=Pt,this.presenceTypesService=Zt,this.toastService=dn,this.translate=Rn,this.studentId$=new w.t(1),this.checkableAbsences$=this.getAbsences(this.loadCheckableAbsences.bind(this)),this.openAbsences$=this.getAbsences(this.loadOpenAbsences.bind(this)),this.excusedAbsences$=this.getAbsences(this.loadExcusedAbsences.bind(this)),this.unexcusedAbsences$=this.getAbsences(this.loadUnexcusedAbsences.bind(this)),this.incidents$=this.getAbsences(this.loadIncidents.bind(this)),this.halfDays$=this.getAbsences(this.loadHalfDays.bind(this)),this.counts$=this.getCounts()}setStudentId(et){this.studentId$.next(et)}getAbsences(et){return this.studentId$.pipe((0,R.w)(et),(0,F.O)(null),(0,P.B)({connector:()=>new w.t(1)}))}getCounts(){return this.studentId$.pipe((0,R.w)(et=>(0,L.a)([this.loadStatistics(et).pipe((0,F.O)(null)),this.openAbsences$.pipe((0,B.U)(Pt=>Pt?.length??null)),this.checkableAbsences$.pipe((0,B.U)(Pt=>Pt?.length??null))])),(0,B.U)(([et,Pt,Zt])=>({openAbsences:Pt,checkableAbsences:Zt,excusedAbsences:et?.TotalAbsencesValidExcuse??null,unexcusedAbsences:et?.TotalAbsencesWithoutExcuse??null,incidents:et?.TotalIncidents??null,halfDays:et?.TotalHalfDays??null})))}loadStatistics(et){return this.lessonPresencesService.getStatistics({student:et,educationalEvent:null,studyClass:null},null,0).pipe((0,R.w)(({entries:Pt})=>Pt.length>0?(0,h.of)(Pt[0]):(this.toastService.error(this.translate.instant("global.rest-errors.notfound-message"),this.translate.instant("global.rest-errors.notfound-title")),O.E)))}loadOpenAbsences(et){return this.lessonPresencesService.getListOfUnconfirmed(this.getBaseParams(et))}loadCheckableAbsences(et){return this.lessonPresencesService.getList({params:{...this.getBaseParams(et),"filter.ConfirmationStateId":`=${this.settings.checkableAbsenceStateId}`}})}loadExcusedAbsences(et){return this.lessonPresencesService.getList({params:{...this.getBaseParams(et),"filter.ConfirmationStateId":`=${this.settings.excusedAbsenceStateId}`}})}loadUnexcusedAbsences(et){return this.lessonPresencesService.getList({params:{...this.getBaseParams(et),"filter.ConfirmationStateId":`=${this.settings.unexcusedAbsenceStateId}`}})}loadIncidents(et){return this.presenceTypesService.incidentTypes$.pipe((0,B.U)(Pt=>({...this.getBaseParams(et),"filter.TypeRef":`;${Pt.map(Zt=>Zt.Id).join(";")}`})),(0,R.w)(Pt=>this.lessonPresencesService.getList({params:Pt})))}loadHalfDays(et){return this.lessonPresencesService.getList({params:{...this.getBaseParams(et),"filter.TypeRef":`=${this.settings.halfDayPresenceTypeId}`}})}getBaseParams(et){return{sort:"LessonDateTimeFrom.asc","filter.StudentRef":`=${et}`}}static#e=this.\u0275fac=function(Pt){return new(Pt||Je)(f.LFG($.L6),f.LFG(j.q),f.LFG(M.c),f.LFG(q.k),f.LFG(ie.sK))};static#t=this.\u0275prov=f.Yz7({token:Je,factory:Je.\u0275fac})}return Je})();var Te=a(4409),Se=a(8393),ye=a(6814),ce=a(253),_e=a(6567),ve=a(8898),xe=a(3036);function be(Je,Tt){if(1&Je&&(f.ynx(0),f._uU(1),f.BQk()),2&Je){const et=f.oxw(2).erzLet;f.xp6(1),f.hij("(",et.absenceCounts.checkableAbsences,")")}}function ke(Je,Tt){if(1&Je){const et=f.EpF();f.TgZ(0,"erz-student-dossier-entry-header",10),f.NdJ("click",function(){f.CHM(et),f.oxw();const Zt=f.MAs(2);return f.KtG(Zt.toggle("checkable-absences"))}),f._uU(1),f.ALo(2,"translate"),f.YNc(3,be,2,1,"ng-container",11),f.qZA()}if(2&Je){const et=Tt.opened,Pt=f.oxw().erzLet;f.Q6J("opened",et),f.xp6(1),f.hij(" ",f.lcZ(2,3,"shared.profile.checkable-absences")," "),f.xp6(2),f.Q6J("ngIf",null!==Pt.absenceCounts.checkableAbsences)}}function vt(Je,Tt){if(1&Je&&f._UZ(0,"erz-student-dossier-absences",12),2&Je){const et=f.oxw(2);f.Q6J("absences$",et.absencesService.checkableAbsences$)}}function rt(Je,Tt){if(1&Je&&(f.ynx(0),f._uU(1),f.BQk()),2&Je){const et=f.oxw(2).erzLet;f.xp6(1),f.hij("(",et.absenceCounts.openAbsences,")")}}function Mt(Je,Tt){if(1&Je){const et=f.EpF();f.TgZ(0,"erz-student-dossier-entry-header",10),f.NdJ("click",function(){f.CHM(et),f.oxw();const Zt=f.MAs(2);return f.KtG(Zt.toggle("open-absences"))}),f._uU(1),f.ALo(2,"translate"),f.YNc(3,rt,2,1,"ng-container",11),f.qZA()}if(2&Je){const et=Tt.opened,Pt=f.oxw().erzLet;f.Q6J("opened",et),f.xp6(1),f.hij(" ",f.lcZ(2,3,"shared.profile.open-absences")," "),f.xp6(2),f.Q6J("ngIf",null!==Pt.absenceCounts.openAbsences)}}function qe(Je,Tt){if(1&Je&&f._UZ(0,"erz-student-dossier-absences",13),2&Je){const et=f.oxw(2);f.Q6J("absences$",et.absencesService.openAbsences$)("selectionService",et.absencesSelectionService)}}function _t(Je,Tt){if(1&Je&&(f.ynx(0),f._uU(1),f.BQk()),2&Je){const et=f.oxw(2).erzLet;f.xp6(1),f.hij("(",et.absenceCounts.excusedAbsences,")")}}function $e(Je,Tt){if(1&Je){const et=f.EpF();f.TgZ(0,"erz-student-dossier-entry-header",10),f.NdJ("click",function(){f.CHM(et),f.oxw();const Zt=f.MAs(2);return f.KtG(Zt.toggle("excused-absences"))}),f._uU(1),f.ALo(2,"translate"),f.YNc(3,_t,2,1,"ng-container",11),f.qZA()}if(2&Je){const et=Tt.opened,Pt=f.oxw().erzLet;f.Q6J("opened",et),f.xp6(1),f.hij(" ",f.lcZ(2,3,"shared.profile.excused-absences")," "),f.xp6(2),f.Q6J("ngIf",null!==Pt.absenceCounts.excusedAbsences)}}function Ee(Je,Tt){if(1&Je&&f._UZ(0,"erz-student-dossier-absences",12),2&Je){const et=f.oxw(2);f.Q6J("absences$",et.absencesService.excusedAbsences$)}}function Ze(Je,Tt){if(1&Je&&(f.ynx(0),f._uU(1),f.BQk()),2&Je){const et=f.oxw(2).erzLet;f.xp6(1),f.hij("(",et.absenceCounts.unexcusedAbsences,")")}}function J(Je,Tt){if(1&Je){const et=f.EpF();f.TgZ(0,"erz-student-dossier-entry-header",10),f.NdJ("click",function(){f.CHM(et),f.oxw();const Zt=f.MAs(2);return f.KtG(Zt.toggle("unexcused-absences"))}),f._uU(1),f.ALo(2,"translate"),f.YNc(3,Ze,2,1,"ng-container",11),f.qZA()}if(2&Je){const et=Tt.opened,Pt=f.oxw().erzLet;f.Q6J("opened",et),f.xp6(1),f.hij(" ",f.lcZ(2,3,"shared.profile.unexcused-absences")," "),f.xp6(2),f.Q6J("ngIf",null!==Pt.absenceCounts.unexcusedAbsences)}}function Q(Je,Tt){if(1&Je&&f._UZ(0,"erz-student-dossier-absences",14),2&Je){const et=f.oxw(2);f.Q6J("absences$",et.absencesService.unexcusedAbsences$)("displayPresenceType",!1)}}function oe(Je,Tt){if(1&Je&&(f.ynx(0),f._uU(1),f.BQk()),2&Je){const et=f.oxw(2).erzLet;f.xp6(1),f.hij("(",et.absenceCounts.incidents,")")}}function se(Je,Tt){if(1&Je){const et=f.EpF();f.TgZ(0,"erz-student-dossier-entry-header",10),f.NdJ("click",function(){f.CHM(et),f.oxw();const Zt=f.MAs(2);return f.KtG(Zt.toggle("incidents"))}),f._uU(1),f.ALo(2,"translate"),f.YNc(3,oe,2,1,"ng-container",11),f.qZA()}if(2&Je){const et=Tt.opened,Pt=f.oxw().erzLet;f.Q6J("opened",et),f.xp6(1),f.hij(" ",f.lcZ(2,3,"shared.profile.incidents")," "),f.xp6(2),f.Q6J("ngIf",null!==Pt.absenceCounts.incidents)}}function ae(Je,Tt){if(1&Je&&f._UZ(0,"erz-student-dossier-absences",12),2&Je){const et=f.oxw(2);f.Q6J("absences$",et.absencesService.incidents$)}}function fe(Je,Tt){if(1&Je&&(f.ynx(0),f._uU(1),f.BQk()),2&Je){const et=f.oxw(3).erzLet;f.xp6(1),f.hij("(",et.absenceCounts.halfDays,")")}}function De(Je,Tt){if(1&Je){const et=f.EpF();f.TgZ(0,"erz-student-dossier-entry-header",10),f.NdJ("click",function(){f.CHM(et),f.oxw(2);const Zt=f.MAs(2);return f.KtG(Zt.toggle("half-days"))}),f._uU(1),f.ALo(2,"translate"),f.YNc(3,fe,2,1,"ng-container",11),f.qZA()}if(2&Je){const et=Tt.opened,Pt=f.oxw(2).erzLet;f.Q6J("opened",et),f.xp6(1),f.hij(" ",f.lcZ(2,3,"shared.profile.half-days")," "),f.xp6(2),f.Q6J("ngIf",null!==Pt.absenceCounts.halfDays)}}function je(Je,Tt){if(1&Je&&f._UZ(0,"erz-student-dossier-absences",14),2&Je){const et=f.oxw(3);f.Q6J("absences$",et.absencesService.halfDays$)("displayPresenceType",!1)}}function Xe(Je,Tt){1&Je&&(f.TgZ(0,"ngb-panel",15),f.YNc(1,De,4,5,"ng-template",3),f.YNc(2,je,1,2,"ng-template",4),f.qZA())}function tt(Je,Tt){if(1&Je&&(f.ynx(0),f.TgZ(1,"ngb-accordion",null,1)(3,"ngb-panel",2),f.YNc(4,ke,4,5,"ng-template",3),f.YNc(5,vt,1,1,"ng-template",4),f.qZA(),f.TgZ(6,"ngb-panel",5),f.YNc(7,Mt,4,5,"ng-template",3),f.YNc(8,qe,1,2,"ng-template",4),f.qZA(),f.TgZ(9,"ngb-panel",6),f.YNc(10,$e,4,5,"ng-template",3),f.YNc(11,Ee,1,1,"ng-template",4),f.qZA(),f.TgZ(12,"ngb-panel",7),f.YNc(13,J,4,5,"ng-template",3),f.YNc(14,Q,1,2,"ng-template",4),f.qZA(),f.TgZ(15,"ngb-panel",8),f.YNc(16,se,4,5,"ng-template",3),f.YNc(17,ae,1,1,"ng-template",4),f.qZA(),f.YNc(18,Xe,3,0,"ngb-panel",9),f.ALo(19,"async"),f.qZA(),f.BQk()),2&Je){const et=f.oxw();f.xp6(18),f.Q6J("ngIf",f.lcZ(19,1,et.halfDayActive$))}}const wt=function(Je){return{absenceCounts:Je}};let It=(()=>{class Je{constructor(et,Pt,Zt,dn){this.state=et,this.presenceTypesService=Pt,this.absencesService=Zt,this.absencesSelectionService=dn,this.halfDayActive$=this.presenceTypesService.halfDayActive$,this.destroy$=new t.x,this.state.currentDossier$.next("absences")}ngOnInit(){this.state.studentId$.pipe((0,d.R)(this.destroy$)).subscribe(et=>this.absencesService.setStudentId(et))}ngOnDestroy(){this.destroy$.next()}static#e=this.\u0275fac=function(Pt){return new(Pt||Je)(f.Y36(Te.j),f.Y36(M.c),f.Y36(k),f.Y36(Se.o))};static#t=this.\u0275cmp=f.Xpm({type:Je,selectors:[["erz-dossier-absences"]],features:[f._Bn([k])],decls:2,vars:5,consts:[[4,"erzLet"],["acc","ngbAccordion"],["id","checkable-absences"],["ngbPanelHeader",""],["ngbPanelContent",""],["id","open-absences"],["id","excused-absences"],["id","unexcused-absences"],["id","incidents"],["id","half-days",4,"ngIf"],[3,"opened","click"],[4,"ngIf"],[3,"absences$"],[3,"absences$","selectionService"],[3,"absences$","displayPresenceType"],["id","half-days"]],template:function(Pt,Zt){1&Pt&&(f.YNc(0,tt,20,3,"ng-container",0),f.ALo(1,"async")),2&Pt&&f.Q6J("erzLet",f.VKq(3,wt,f.lcZ(1,1,Zt.absencesService.counts$)))},dependencies:[ye.O5,ce.gY,ce.Gk,ce.gW,ce.k9,_e.e,ve.H,xe.u,ye.Ov,ie.X$],changeDetection:0})}return Je})()},8705:(Pe,V,a)=>{"use strict";a.d(V,{S:()=>ce});var t=a(5879),d=a(4409),w=a(6814),L=a(253),h=a(6567),O=a(8898),R=a(1442),F=a(9949),P=a(8075),B=a(9515);function $(_e,ve){if(1&_e){const xe=t.EpF();t.TgZ(0,"erz-student-dossier-entry-header",8),t.NdJ("click",function(){t.CHM(xe),t.oxw(2);const ke=t.MAs(3);return t.KtG(ke.toggle("legal-representatives"))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&_e&&(t.Q6J("opened",ve.opened),t.xp6(1),t.hij(" ",t.lcZ(2,2,"shared.profile.legal-representation")," "))}function f(_e,ve){1&_e&&t._UZ(0,"erz-student-dossier-legal-representative",10),2&_e&&t.Q6J("person",ve.$implicit)}function j(_e,ve){if(1&_e&&t.YNc(0,f,1,1,"erz-student-dossier-legal-representative",9),2&_e){const xe=t.oxw(2).erzLet;t.Q6J("ngForOf",xe.profile.legalRepresentativePersons)}}function M(_e,ve){1&_e&&(t.TgZ(0,"ngb-panel",5),t.YNc(1,$,3,4,"ng-template",6),t.YNc(2,j,1,1,"ng-template",7),t.qZA())}function q(_e,ve){if(1&_e&&(t.ynx(0),t._uU(1),t.BQk()),2&_e){const xe=t.oxw(2).index;t.xp6(1),t.Oqu(xe+1)}}function ie(_e,ve){if(1&_e){const xe=t.EpF();t.TgZ(0,"erz-student-dossier-entry-header",8),t.NdJ("click",function(){t.CHM(xe);const ke=t.oxw().index;t.oxw();const vt=t.MAs(3);return t.KtG(vt.toggle("apprenticeship-company-"+ke))}),t._uU(1),t.ALo(2,"translate"),t.YNc(3,q,2,1,"ng-container",12),t.qZA()}if(2&_e){const xe=ve.opened,be=t.oxw(2).erzLet;t.Q6J("opened",xe),t.xp6(1),t.hij(" ",t.lcZ(2,3,"shared.profile.apprenticeship-company")," "),t.xp6(2),t.Q6J("ngIf",be.profile.apprenticeshipCompanies.length>1)}}function k(_e,ve){if(1&_e&&t._UZ(0,"erz-student-dossier-apprenticeship-company",13),2&_e){const xe=t.oxw().$implicit;t.Q6J("company",xe)}}function Te(_e,ve){1&_e&&(t.TgZ(0,"ngb-panel",11),t.YNc(1,ie,4,5,"ng-template",6),t.YNc(2,k,1,1,"ng-template",7),t.qZA()),2&_e&&t.Q6J("id","apprenticeship-company-"+ve.index)}function Se(_e,ve){if(1&_e&&(t.ynx(0),t._UZ(1,"erz-student-dossier-address",1),t.TgZ(2,"ngb-accordion",null,2),t.YNc(4,M,3,0,"ngb-panel",3),t.YNc(5,Te,3,1,"ngb-panel",4),t.qZA(),t.BQk()),2&_e){const xe=ve.erzLet;t.xp6(1),t.Q6J("student",xe.profile.student),t.xp6(3),t.Q6J("ngIf",xe.profile.legalRepresentativePersons.length>0),t.xp6(1),t.Q6J("ngForOf",xe.profile.apprenticeshipCompanies)}}const ye=function(_e){return{profile:_e}};let ce=(()=>{class _e{constructor(xe){this.state=xe,this.state.currentDossier$.next("addresses")}static#e=this.\u0275fac=function(be){return new(be||_e)(t.Y36(d.j))};static#t=this.\u0275cmp=t.Xpm({type:_e,selectors:[["erz-dossier-addresses"]],decls:2,vars:5,consts:[[4,"erzLet"],[1,"profile-entry",3,"student"],["acc","ngbAccordion"],["id","legal-representatives",4,"ngIf"],[3,"id",4,"ngFor","ngForOf"],["id","legal-representatives"],["ngbPanelHeader",""],["ngbPanelContent",""],[3,"opened","click"],["class","profile-entry",3,"person",4,"ngFor","ngForOf"],[1,"profile-entry",3,"person"],[3,"id"],[4,"ngIf"],[1,"profile-entry",3,"company"]],template:function(be,ke){1&be&&(t.YNc(0,Se,6,3,"ng-container",0),t.ALo(1,"async")),2&be&&t.Q6J("erzLet",t.VKq(3,ye,t.lcZ(1,1,ke.state.profile$)))},dependencies:[w.sg,w.O5,L.gY,L.Gk,L.gW,L.k9,h.e,O.H,R.k,F.O,P.g,w.Ov,B.X$],styles:[".profile-entry[_ngcontent-%COMP%]{display:block;padding:0 1rem}"],changeDetection:0})}return _e})()},5841:(Pe,V,a)=>{"use strict";a.d(V,{d:()=>B});var t=a(8645),d=a(3986),w=a(5879),L=a(8405);function h($,f){if(1&$){const j=w.EpF();w.TgZ(0,"erz-student-dossier-entry-header",7),w.NdJ("click",function(){w.CHM(j);const q=w.oxw().index,ie=w.MAs(2);return w.KtG(ie.toggle("course-"+q))}),w._UZ(1,"erz-dossier-grades-course-header",8),w.qZA()}if(2&$){const j=f.opened,M=w.oxw().$implicit;w.Q6J("opened",j),w.xp6(1),w.Q6J("designation",M.course.Designation)("finalGrade",M.finalGrade)("grading",M.grading)("gradingScale",M.gradingScale)("average",M.average)}}function O($,f){if(1&$&&w._UZ(0,"erz-dossier-course-tests",9),2&$){const j=w.oxw().$implicit,M=w.oxw(2);w.Q6J("decoratedCourse",j)("studentId",M.studentId)("gradingScales",M.gradingScales)("isEditable",M.isEditable)}}function R($,f){if(1&$&&(w.TgZ(0,"div")(1,"ngb-accordion",null,3)(3,"ngb-panel",4),w.YNc(4,h,2,6,"ng-template",5),w.YNc(5,O,1,4,"ng-template",6),w.qZA()()()),2&$){const j=f.index;w.xp6(3),w.Q6J("id","course-"+j)}}function F($,f){if(1&$&&(w.ynx(0),w.YNc(1,R,6,1,"div",2),w.ALo(2,"async"),w.BQk()),2&$){const j=w.oxw();w.xp6(1),w.Q6J("ngForOf",w.lcZ(2,2,j.decoratedCoursesSubject$))("ngForTrackBy",j.trackByCourseId)}}function P($,f){1&$&&(w.TgZ(0,"p",10),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&$&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"dossier.no-courses")," "))}let B=(()=>{class ${constructor(j){this.dossierGradeService=j,this.isEditable=!0,this.decoratedCoursesSubject$=new t.x}ngOnChanges(){this.decoratedCoursesSubject$.next(this.decorateCourses())}trackByCourseId(j,M){return M.course.Id}decorateCourses(){return this.courses?.map(j=>{const M=this.dossierGradeService.getFinalGradeForStudent(j,this.studentId),q=this.dossierGradeService.getGradesForStudent(j,this.studentId,this.gradingScales);return{course:j,finalGrade:M,grading:this.dossierGradeService.getGradingForStudent(j,this.studentId),gradingScale:this.dossierGradeService.getGradingScaleOfCourse(j,this.gradingScales),average:M?.AverageTestResult||(0,d.S)(q)}})}static#e=this.\u0275fac=function(M){return new(M||$)(w.Y36(L.S))};static#t=this.\u0275cmp=w.Xpm({type:$,selectors:[["erz-dossier-grades-view"]],inputs:{courses:"courses",studentId:"studentId",gradingScales:"gradingScales",isEditable:"isEditable"},features:[w.TTD],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["noCourses",""],[4,"ngFor","ngForOf","ngForTrackBy"],["acc","ngbAccordion"],[3,"id"],["ngbPanelHeader",""],["ngbPanelContent",""],[3,"opened","click"],[3,"designation","finalGrade","grading","gradingScale","average"],[3,"decoratedCourse","studentId","gradingScales","isEditable"],["data-testid","message-no-courses",1,"py-3"]],template:function(M,q){if(1&M&&(w.YNc(0,F,3,4,"ng-container",0),w.YNc(1,P,3,3,"ng-template",null,1,w.W1O)),2&M){const ie=w.MAs(2);w.Q6J("ngIf",(null==q.courses?null:q.courses.length)>0)("ngIfElse",ie)}}})}return $})()},9608:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>F});var t=a(5879),d=a(6814),w=a(1523),L=a(2628),h=a(7625);function O(P,B){if(1&P&&(t.TgZ(0,"div",6)(1,"span",7),t._uU(2),t.ALo(3,"date"),t.qZA(),t.TgZ(4,"span",8),t._uU(5),t.qZA()()),2&P){const $=t.oxw();t.xp6(2),t.Oqu(t.xi3(3,2,$.student.Birthdate,"dd.MM.yyyy")),t.xp6(3),t.hij("(",$.student.Gender,")")}}const R=["*"];let F=(()=>{class P{constructor(){this.link="/"}static#e=this.\u0275fac=function(f){return new(f||P)};static#t=this.\u0275cmp=t.Xpm({type:P,selectors:[["erz-student-backlink"]],inputs:{link:"link",queryParams:"queryParams",studentId:"studentId",studentName:"studentName",student:"student"},ngContentSelectors:R,decls:9,vars:5,consts:[[1,"d-flex","flex-column","w-100"],[3,"routerLink","queryParams"],[1,"d-flex","flex-row","align-items-start"],[1,"me-3","medium",3,"studentId"],[1,"d-flex","flex-column"],["class","additional-info",4,"ngIf"],[1,"additional-info"],[1,"birthday"],[1,"gender"]],template:function(f,j){1&f&&(t.F$t(),t.TgZ(0,"div",0)(1,"erz-backlink",1),t.Hsn(2),t.qZA(),t.TgZ(3,"div",2),t._UZ(4,"erz-avatar",3),t.TgZ(5,"div",4)(6,"h1"),t._uU(7),t.qZA(),t.YNc(8,O,6,5,"div",5),t.qZA()()()),2&f&&(t.xp6(1),t.Q6J("routerLink",j.link)("queryParams",j.queryParams),t.xp6(3),t.Q6J("studentId",j.studentId),t.xp6(3),t.Oqu(j.student?j.student.FullName:j.studentName),t.xp6(1),t.Q6J("ngIf",j.student))},dependencies:[d.O5,w.rH,L.A,h.I,d.uU],styles:["[_nghost-%COMP%]{display:flex;align-items:center;width:100%}h1[_ngcontent-%COMP%]{margin:-3px 0 0;display:flex;align-items:baseline;line-height:1}.additional-info[_ngcontent-%COMP%]{color:#adb5bd}.gender[_ngcontent-%COMP%]{margin-left:.8ch}"],changeDetection:0})}return P})()},3036:(Pe,V,a)=>{"use strict";a.d(V,{u:()=>oe});var t=a(7328),d=a(5619),w=a(2572),L=a(2096),h=a(2689),O=a(7921),R=a(7081),F=a(7398),P=a(2181),B=a(4664),$=a(8180),f=a(3942),j=a(6100),M=a(5879),q=a(905),ie=a(6814),k=a(1523),Te=a(6567),Se=a(59),ye=a(9515),ce=a(238);const _e=["checkbox"];function ve(se,ae){if(1&se&&(M.TgZ(0,"a",16)(1,"i",12),M._uU(2,"description"),M.qZA()()),2&se){const fe=M.oxw(4);M.ekj("disabled",!fe.reportUrl),M.Q6J("href",fe.reportUrl,M.LSH)}}function xe(se,ae){if(1&se&&(M.TgZ(0,"a",17),M.ALo(1,"async"),M.TgZ(2,"i",12),M._uU(3,"mail"),M.qZA()()),2&se){const fe=M.oxw(4);M.MGl("href","mailto:",M.lcZ(1,1,fe.mailTo$),"",M.LSH)}}function be(se,ae){if(1&se&&(M.TgZ(0,"div",18),M._uU(1),M.qZA()),2&se){const fe=M.oxw(4);M.xp6(1),M.hij(" ",fe.defaultAbsenceSelectionMessage," ")}}function ke(se,ae){if(1&se){const fe=M.EpF();M.TgZ(0,"div",5),M.NdJ("click",function(je){M.CHM(fe);const Xe=M.MAs(3),tt=M.oxw(3);return M.KtG(tt.onRowClick(je,Xe))}),M.TgZ(1,"div",6)(2,"input",7,8),M.NdJ("change",function(je){M.CHM(fe);const Xe=M.oxw(3);return M.KtG(Xe.toggleAll(je.target.checked))}),M.ALo(4,"async"),M.qZA()(),M.TgZ(5,"div",9),M._uU(6),M.ALo(7,"translate"),M.qZA(),M.TgZ(8,"div",10)(9,"a",11),M.ALo(10,"async"),M.TgZ(11,"i",12),M._uU(12,"edit"),M.qZA()(),M.YNc(13,ve,3,3,"a",13),M.YNc(14,xe,4,3,"a",14),M.qZA(),M.YNc(15,be,2,1,"div",15),M.ALo(16,"async"),M.qZA()}if(2&se){const fe=M.oxw(3);let De;M.xp6(2),M.Q6J("checked",M.lcZ(4,8,fe.allSelected$)),M.xp6(4),M.Oqu(M.lcZ(7,10,"open-absences.detail.all")),M.xp6(3),M.ekj("disabled",0===M.lcZ(10,12,fe.selectionService.selection$).length),M.s9C("routerLink",fe.confirmLink),M.xp6(4),M.Q6J("ngIf",fe.reportAvailable),M.xp6(1),M.Q6J("ngIf",fe.displayEmail),M.xp6(1),M.Q6J("ngIf",fe.defaultAbsenceSelectionMessage&&(null==(De=M.lcZ(16,14,fe.selectionService.selectedWithoutPresenceType$))?null:De.length)>0)}}function vt(se,ae){if(1&se){const fe=M.EpF();M.TgZ(0,"div",6)(1,"input",7,29),M.NdJ("change",function(){M.CHM(fe);const je=M.oxw().$implicit,Xe=M.oxw(3);return M.KtG(Xe.selectionService.toggle(je))}),M.ALo(3,"async"),M.qZA()()}if(2&se){const fe=M.oxw().$implicit,De=M.oxw(3);M.xp6(1),M.Q6J("checked",M.lcZ(3,1,De.selectionService.isSelected$(fe)))}}function rt(se,ae){if(1&se&&(M.ynx(0),M._uU(1),M.BQk()),2&se){const fe=M.oxw().$implicit;M.xp6(1),M.hij(", ",fe.StudyClassNumber,"")}}function Mt(se,ae){if(1&se&&(M.TgZ(0,"div",32),M._uU(1),M.qZA()),2&se){const fe=M.oxw().erzLet;M.xp6(1),M.hij(" ",fe," ")}}function qe(se,ae){1&se&&(M.TgZ(0,"div",33),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&se&&(M.xp6(1),M.hij(" ",M.lcZ(2,1,"my-absences.show.confirm-presence-type")," "))}function _t(se,ae){if(1&se&&(M.ynx(0),M.YNc(1,Mt,2,1,"div",30),M.YNc(2,qe,3,3,"div",31),M.BQk()),2&se){const fe=ae.erzLet,De=M.oxw(4);M.xp6(1),M.Q6J("ngIf",fe),M.xp6(1),M.Q6J("ngIf",De.displayPresenceType&&!fe&&De.defaultAbsenceSelectionMessage)}}function $e(se,ae){if(1&se){const fe=M.EpF();M.TgZ(0,"div",19),M.NdJ("click",function(je){const tt=M.CHM(fe).index,wt=M.oxw(3);return M.KtG(wt.onRowClick(je,tt))}),M.YNc(1,vt,4,3,"div",20),M.ALo(2,"async"),M.TgZ(3,"div",21),M._uU(4),M.YNc(5,rt,2,1,"ng-container",22),M.qZA(),M.TgZ(6,"div",23),M._uU(7),M.ALo(8,"date"),M.ALo(9,"date"),M.qZA(),M.TgZ(10,"div",24),M._uU(11),M.qZA(),M.YNc(12,_t,3,2,"ng-container",25),M.ALo(13,"async"),M.TgZ(14,"div",26),M._uU(15),M.ALo(16,"date"),M.qZA(),M.TgZ(17,"div",27),M._uU(18),M.ALo(19,"erzDaysDifference"),M.qZA(),M.TgZ(20,"div",28),M._uU(21),M.ALo(22,"date"),M.ALo(23,"erzDaysDifference"),M.qZA()()}if(2&se){const fe=ae.$implicit,De=M.oxw(3);M.xp6(1),M.Q6J("ngIf",M.lcZ(2,11,De.editable$)),M.xp6(3),M.hij(" ",fe.EventDesignation,""),M.xp6(1),M.Q6J("ngIf",fe.StudyClassNumber),M.xp6(2),M.AsE(" ",M.xi3(8,13,fe.LessonDateTimeFrom,"HH:mm"),"\u2013",M.xi3(9,16,fe.LessonDateTimeTo,"HH:mm")," "),M.xp6(4),M.hij(" ",fe.TeacherInformation," "),M.xp6(1),M.Q6J("erzLet",M.lcZ(13,19,De.getPresenceTypeDesignation(fe))),M.xp6(3),M.hij(" ",M.xi3(16,21,fe.LessonDateTimeFrom,"dd.MM.yyyy")," "),M.xp6(3),M.hij(" ",M.lcZ(19,24,fe.LessonDateTimeFrom)," "),M.xp6(3),M.AsE(" ",M.xi3(22,26,fe.LessonDateTimeFrom,"dd.MM.yyyy"),", ",M.lcZ(23,29,fe.LessonDateTimeFrom)," ")}}function Ee(se,ae){if(1&se&&(M.ynx(0),M.YNc(1,ke,17,16,"div",3),M.ALo(2,"async"),M.YNc(3,$e,24,31,"div",4),M.ALo(4,"async"),M.BQk()),2&se){const fe=M.oxw(2);M.xp6(1),M.Q6J("ngIf",M.lcZ(2,2,fe.editable$)),M.xp6(2),M.Q6J("ngForOf",M.lcZ(4,4,fe.lessonPresences$))}}function Ze(se,ae){1&se&&(M.TgZ(0,"p",34),M._uU(1),M.ALo(2,"translate"),M.qZA()),2&se&&(M.xp6(1),M.Oqu(M.lcZ(2,1,"shared.profile.no-absences")))}function J(se,ae){if(1&se&&(M.ynx(0),M.YNc(1,Ee,5,6,"ng-container",0),M.ALo(2,"async"),M.YNc(3,Ze,3,3,"ng-template",null,2,M.W1O),M.BQk()),2&se){const fe=M.MAs(4),De=M.oxw();let je;M.xp6(1),M.Q6J("ngIf",(null==(je=M.lcZ(2,2,De.lessonPresences$))?null:je.length)>0)("ngIfElse",fe)}}function Q(se,ae){1&se&&M._UZ(0,"erz-spinner",35)}let oe=(()=>{class se{constructor(fe){this.presenceTypesService=fe,this.selectionService=null,this.displayPresenceType=!0,this.defaultAbsenceSelectionMessage=null,this.reportUrl=null,this.reportAvailable=!1,this.confirmLink="confirm",this.displayEmail=!1,this.lessonPresences$$=new t.t(1),this.lessonPresences$=this.lessonPresences$$.pipe((0,h.B)(),(0,O.O)(null),(0,R.d)(1)),this.loading$=this.lessonPresences$.pipe((0,F.U)((0,f.ff)(j.kJ))),this.selectionService$=new t.t(1),this.editable$=this.selectionService$.pipe((0,F.U)(()=>!0),(0,O.O)(!1)),this.displayPresenceType$=new d.X(!0),this.allSelected$=(0,w.a)([this.lessonPresences$.pipe((0,P.h)(f.Nf)),this.selectionService$.pipe((0,B.w)(De=>De.selection$))]).pipe((0,F.U)(([De,je])=>De.length===je.length))}ngOnChanges(fe){fe.absences$&&this.lessonPresences$$.next(fe.absences$.currentValue),fe.selectionService&&fe.selectionService.currentValue&&(fe.selectionService.currentValue.clear(),this.selectionService$.next(fe.selectionService.currentValue)),fe.displayPresenceType&&this.displayPresenceType$.next(fe.displayPresenceType.currentValue)}toggleAll(fe){fe?this.lessonPresences$.pipe((0,$.q)(1)).subscribe(De=>this.selectionService?.clear(De)):this.selectionService?.clear()}onRowClick(fe,De){if(0===this.checkboxes.length)return;let je;je="number"==typeof De?this.checkboxes.toArray()[De].nativeElement:De,fe.target!==je&&!fe.target.closest(".buttons")&&je.click()}getPresenceTypeDesignation(fe){return this.displayPresenceType$.pipe((0,B.w)(De=>De?this.presenceTypesService.displayedTypes$:(0,L.of)([])),(0,F.U)(De=>fe.TypeRef.Id&&De.find(je=>je.Id===fe.TypeRef.Id)?.Designation||null))}static#e=this.\u0275fac=function(De){return new(De||se)(M.Y36(q.c))};static#t=this.\u0275cmp=M.Xpm({type:se,selectors:[["erz-student-dossier-absences"]],viewQuery:function(De,je){if(1&De&&M.Gf(_e,5),2&De){let Xe;M.iGM(Xe=M.CRH())&&(je.checkboxes=Xe)}},inputs:{absences$:"absences$",selectionService:"selectionService",displayPresenceType:"displayPresenceType",defaultAbsenceSelectionMessage:"defaultAbsenceSelectionMessage",reportUrl:"reportUrl",reportAvailable:"reportAvailable",confirmLink:"confirmLink",displayEmail:"displayEmail",mailTo$:"mailTo$"},features:[M.TTD],decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["loading",""],["noAbsences",""],["class","absence-all",3,"click",4,"ngIf"],["class","absence-entry",3,"click",4,"ngFor","ngForOf"],[1,"absence-all",3,"click"],[1,"checkbox"],["type","checkbox",1,"form-check-input",3,"checked","change"],["allCheckbox",""],[1,"all"],[1,"buttons"],[1,"edit","btn","btn-primary","btn-icon","me-2",3,"routerLink"],[1,"material-icons"],["class","report btn btn-primary btn-icon me-2","target","_blank",3,"disabled","href",4,"ngIf"],["class","mail btn btn-primary btn-icon me-2","target","_blank",3,"href",4,"ngIf"],["class","validation",4,"ngIf"],["target","_blank",1,"report","btn","btn-primary","btn-icon","me-2",3,"href"],["target","_blank",1,"mail","btn","btn-primary","btn-icon","me-2",3,"href"],[1,"validation"],[1,"absence-entry",3,"click"],["class","checkbox",4,"ngIf"],[1,"lesson-class"],[4,"ngIf"],[1,"time","pe-2"],[1,"teacher"],[4,"erzLet"],[1,"date"],[1,"days-ago"],[1,"date-days-ago"],["checkbox",""],["class","presence-type",4,"ngIf"],["class","presence-type confirm",4,"ngIf"],[1,"presence-type"],[1,"presence-type","confirm"],[1,"mx-3"],[1,"inline","d-block","mb-3"]],template:function(De,je){if(1&De&&(M.YNc(0,J,5,4,"ng-container",0),M.ALo(1,"async"),M.YNc(2,Q,1,0,"ng-template",null,1,M.W1O)),2&De){const Xe=M.MAs(3);M.Q6J("ngIf",!1===M.lcZ(1,2,je.loading$))("ngIfElse",Xe)}},dependencies:[ie.sg,ie.O5,k.rH,Te.e,Se.O,ie.Ov,ie.uU,ye.X$,ce.Q],styles:['.absence-all[_ngcontent-%COMP%]{padding:0 0 .5rem 1rem;border-bottom:1px solid #dee2e6;display:grid;grid-template-areas:"checkbox all buttons" "validation validation validation";grid-template-columns:min-content 1fr min-content}.absence-entry[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid #dee2e6;display:grid;grid-template-areas:"checkbox lesson-class time teacher" "checkbox presence-type date days-ago";grid-template-columns:min-content 2fr 1fr 2fr}.absence-entry[_ngcontent-%COMP%]:first-child{padding-top:0}.absence-all[_ngcontent-%COMP%] + .absence-entry[_ngcontent-%COMP%]{padding-top:1rem}.checkbox[_ngcontent-%COMP%]{grid-area:checkbox;margin:0;padding:.3rem 1rem 0 0}.checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important;display:block}.all[_ngcontent-%COMP%]{grid-area:all}.buttons[_ngcontent-%COMP%]{grid-area:buttons;display:flex}.validation[_ngcontent-%COMP%]{grid-area:validation}.validation[_ngcontent-%COMP%], .presence-type.confirm[_ngcontent-%COMP%]{color:#d01018}.lesson-class[_ngcontent-%COMP%]{grid-area:lesson-class;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.time[_ngcontent-%COMP%]{grid-area:time}.teacher[_ngcontent-%COMP%]{grid-area:teacher}.presence-type[_ngcontent-%COMP%]{color:#adb5bd;grid-area:presence-type}.date[_ngcontent-%COMP%]{grid-area:date}.days-ago[_ngcontent-%COMP%]{color:#adb5bd;grid-area:days-ago}.date-days-ago[_ngcontent-%COMP%]{grid-area:date-days-ago;display:none}@media (max-width: 750px){.absence-entry[_ngcontent-%COMP%]{grid-template-areas:"checkbox lesson-class" "checkbox teacher" "checkbox date-days-ago" "checkbox time" "checkbox presence-type";grid-template-columns:min-content 1fr}.date-days-ago[_ngcontent-%COMP%]{display:block}.date[_ngcontent-%COMP%], .days-ago[_ngcontent-%COMP%]{display:none}}'],changeDetection:0})}return se})()},1442:(Pe,V,a)=>{"use strict";a.d(V,{k:()=>R});var t=a(5879),d=a(6814);function w(F,P){if(1&F&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&F){const B=t.oxw();t.xp6(1),t.hij(" ",B.student.AddressLine2,"")}}function L(F,P){if(1&F&&(t.ynx(0),t.TgZ(1,"a",2),t._uU(2),t.qZA(),t._UZ(3,"br"),t.BQk()),2&F){const B=t.oxw();t.xp6(1),t.MGl("href","tel:",B.student.PhonePrivate,"",t.LSH),t.xp6(1),t.hij(" ",B.student.PhonePrivate," ")}}function h(F,P){if(1&F&&(t.ynx(0),t.TgZ(1,"a",2),t._uU(2),t.qZA(),t._UZ(3,"br"),t.BQk()),2&F){const B=t.oxw();t.xp6(1),t.MGl("href","tel:",B.student.PhoneMobile,"",t.LSH),t.xp6(1),t.hij(" ",B.student.PhoneMobile," ")}}function O(F,P){if(1&F&&(t.TgZ(0,"a",2),t._uU(1),t.qZA()),2&F){const B=t.oxw();t.MGl("href","mailto:",B.email,"",t.LSH),t.xp6(1),t.hij(" ",B.email," ")}}let R=(()=>{class F{constructor(){this.emailProperty="DisplayEmail"}get postalCode(){return"PostalCode"in this.student?this.student.PostalCode:this.student.Zip}get email(){return"Email2"===this.emailProperty&&"Email2"in this.student?this.student.Email2||null:this.student.DisplayEmail}static#e=this.\u0275fac=function($){return new($||F)};static#t=this.\u0275cmp=t.Xpm({type:F,selectors:[["erz-student-dossier-address"]],inputs:{student:"student",emailProperty:"emailProperty"},decls:9,vars:7,consts:[[4,"ngIf"],[3,"href",4,"ngIf"],[3,"href"]],template:function($,f){1&$&&(t.TgZ(0,"address"),t._uU(1),t._UZ(2,"br"),t.YNc(3,w,3,1,"ng-container",0),t._uU(4),t._UZ(5,"br"),t.YNc(6,L,4,2,"ng-container",0),t.YNc(7,h,4,2,"ng-container",0),t.YNc(8,O,2,2,"a",1),t.qZA()),2&$&&(t.xp6(1),t.hij(" ",f.student.AddressLine1,""),t.xp6(2),t.Q6J("ngIf",f.student.AddressLine2),t.xp6(1),t.AsE(" ",f.postalCode||""," ",f.student.Location,""),t.xp6(2),t.Q6J("ngIf",f.student.PhonePrivate),t.xp6(1),t.Q6J("ngIf",f.student.PhoneMobile),t.xp6(1),t.Q6J("ngIf",f.email))},dependencies:[d.O5],changeDetection:0})}return F})()},8075:(Pe,V,a)=>{"use strict";a.d(V,{g:()=>ye});var t=a(5879),d=a(6814),w=a(9515),L=a(9753),h=a(500);function O(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.Oqu(null==ve.company.apprenticeshipManager?null:ve.company.apprenticeshipManager.CompanyName)}}function R(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.Oqu(null==ve.company.apprenticeshipManager?null:ve.company.apprenticeshipManager.CompanyNameAddition)}}function F(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.AsE(" ",ve.company.apprenticeshipManager.Lastname||""," ",ve.company.apprenticeshipManager.Firstname||"","")}}function P(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.Oqu(ve.company.apprenticeshipManager.AddressLine1)}}function B(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.Oqu(ve.company.apprenticeshipManager.AddressLine2)}}function $(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.AsE("",ve.company.apprenticeshipManager.PostalCode," ",ve.company.apprenticeshipManager.Location,"")}}function f(ce,_e){if(1&ce&&(t.ynx(0),t.TgZ(1,"a",2),t._uU(2),t._UZ(3,"br"),t.qZA(),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.MGl("href","tel:",ve.company.apprenticeshipManager.PhoneBusiness,"",t.LSH),t.xp6(1),t.Oqu(ve.company.apprenticeshipManager.PhoneBusiness)}}function j(ce,_e){if(1&ce&&(t.ynx(0),t.TgZ(1,"a",2),t.ALo(2,"erzPersonEmail"),t._uU(3),t.ALo(4,"erzPersonEmail"),t.qZA(),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.MGl("href","mailto:",t.lcZ(2,2,ve.company.apprenticeshipManager),"",t.LSH),t.xp6(2),t.Oqu(t.lcZ(4,4,ve.company.apprenticeshipManager))}}function M(ce,_e){if(1&ce&&(t.TgZ(0,"div",3),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"addSpace"),t._UZ(4,"br"),t._uU(5),t.ALo(6,"date"),t.ALo(7,"date"),t.qZA()),2&ce){const ve=t.oxw();t.xp6(1),t.AsE(" ",t.lcZ(2,4,"shared.profile.apprenticeship-period"),"",t.xi3(3,6,":",":"),""),t.xp6(4),t.AsE(" ",t.xi3(6,9,ve.company.apprenticeshipContract.ContractDateFrom,"dd.MM.yyyy"),"\u2013",t.xi3(7,12,ve.company.apprenticeshipContract.ContractDateTo,"dd.MM.yyyy"),"\n")}}function q(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw(2);t.xp6(1),t.AsE(" ",ve.company.jobTrainer.Lastname||""," ",ve.company.jobTrainer.Firstname||"","")}}function ie(ce,_e){if(1&ce&&(t.ynx(0),t.TgZ(1,"a",2),t._uU(2),t._UZ(3,"br"),t.qZA(),t.BQk()),2&ce){const ve=t.oxw(2);t.xp6(1),t.MGl("href","tel:",ve.company.jobTrainer.PhoneBusiness,"",t.LSH),t.xp6(1),t.Oqu(ve.company.jobTrainer.PhoneBusiness)}}function k(ce,_e){if(1&ce&&(t.ynx(0),t.TgZ(1,"a",2),t._uU(2),t._UZ(3,"br"),t.qZA(),t.BQk()),2&ce){const ve=t.oxw(2);t.xp6(1),t.MGl("href","tel:",ve.company.jobTrainer.PhoneMobile,"",t.LSH),t.xp6(1),t.Oqu(ve.company.jobTrainer.PhoneMobile)}}function Te(ce,_e){if(1&ce&&(t.ynx(0),t.TgZ(1,"a",2),t.ALo(2,"erzPersonEmail"),t._uU(3),t.ALo(4,"erzPersonEmail"),t.qZA(),t.BQk()),2&ce){const ve=t.oxw(2);t.xp6(1),t.MGl("href","mailto:",t.lcZ(2,2,ve.company.jobTrainer),"",t.LSH),t.xp6(2),t.Oqu(t.lcZ(4,4,ve.company.jobTrainer))}}function Se(ce,_e){if(1&ce&&(t.TgZ(0,"div",3),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"addSpace"),t.TgZ(4,"address"),t.YNc(5,q,3,2,"ng-container",0),t.YNc(6,ie,4,2,"ng-container",0),t.YNc(7,k,4,2,"ng-container",0),t.YNc(8,Te,5,6,"ng-container",0),t.ALo(9,"erzPersonEmail"),t.qZA()()),2&ce){const ve=t.oxw();t.xp6(1),t.AsE(" ",t.lcZ(2,6,"shared.profile.job-trainer"),"",t.xi3(3,8,":",":")," "),t.xp6(4),t.Q6J("ngIf",ve.company.jobTrainer.Lastname||ve.company.jobTrainer.Firstname),t.xp6(1),t.Q6J("ngIf",ve.company.jobTrainer.PhoneBusiness),t.xp6(1),t.Q6J("ngIf",ve.company.jobTrainer.PhoneMobile),t.xp6(1),t.Q6J("ngIf",t.lcZ(9,11,ve.company.jobTrainer))}}let ye=(()=>{class ce{constructor(){}static#e=this.\u0275fac=function(xe){return new(xe||ce)};static#t=this.\u0275cmp=t.Xpm({type:ce,selectors:[["erz-student-dossier-apprenticeship-company"]],inputs:{company:"company"},decls:12,vars:12,consts:[[4,"ngIf"],["class","subentry",4,"ngIf"],[3,"href"],[1,"subentry"]],template:function(xe,be){1&xe&&(t.TgZ(0,"address"),t.YNc(1,O,3,1,"ng-container",0),t.YNc(2,R,3,1,"ng-container",0),t.YNc(3,F,3,2,"ng-container",0),t.YNc(4,P,3,1,"ng-container",0),t.YNc(5,B,3,1,"ng-container",0),t.YNc(6,$,3,2,"ng-container",0),t.YNc(7,f,4,2,"ng-container",0),t.YNc(8,j,5,6,"ng-container",0),t.ALo(9,"erzPersonEmail"),t.qZA(),t.YNc(10,M,8,15,"div",1),t.YNc(11,Se,10,13,"div",1)),2&xe&&(t.xp6(1),t.Q6J("ngIf",null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.CompanyName),t.xp6(1),t.Q6J("ngIf",null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.CompanyNameAddition),t.xp6(1),t.Q6J("ngIf",(null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.Lastname)||(null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.Firstname)),t.xp6(1),t.Q6J("ngIf",null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.AddressLine1),t.xp6(1),t.Q6J("ngIf",null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.AddressLine2),t.xp6(1),t.Q6J("ngIf",(null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.PostalCode)&&(null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.Location)),t.xp6(1),t.Q6J("ngIf",null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.PhoneBusiness),t.xp6(1),t.Q6J("ngIf",t.lcZ(9,10,be.company.apprenticeshipManager)),t.xp6(2),t.Q6J("ngIf",be.company.apprenticeshipContract.ContractDateFrom),t.xp6(1),t.Q6J("ngIf",be.company.jobTrainer))},dependencies:[d.O5,d.uU,w.X$,L.U,h.u],styles:[".subentry[_ngcontent-%COMP%]{padding-bottom:1rem}"],changeDetection:0})}return ce})()},8898:(Pe,V,a)=>{"use strict";a.d(V,{H:()=>w});var t=a(5879);const d=["*"];let w=(()=>{class L{constructor(){this.opened=!1}static#e=this.\u0275fac=function(R){return new(R||L)};static#t=this.\u0275cmp=t.Xpm({type:L,selectors:[["erz-student-dossier-entry-header"]],inputs:{opened:"opened"},ngContentSelectors:d,decls:6,vars:1,consts:[[1,"m-0"],["type","button",1,"btn","btn-link","p-0"],[1,"d-flex","align-items-center"],[1,"material-icons"]],template:function(R,F){1&R&&(t.F$t(),t.TgZ(0,"h5",0),t.Hsn(1),t.qZA(),t.TgZ(2,"button",1)(3,"div",2)(4,"i",3),t._uU(5),t.qZA()()()),2&R&&(t.xp6(5),t.Oqu(F.opened?"keyboard_arrow_down":"keyboard_arrow_up"))},styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;border-top:1px solid #dee2e6;cursor:pointer}button[_ngcontent-%COMP%]{color:#000;text-decoration:none}.btn-link[_ngcontent-%COMP%]:hover{text-decoration:none}"],changeDetection:0})}return L})()},9949:(Pe,V,a)=>{"use strict";a.d(V,{O:()=>B});var t=a(5879),d=a(6814),w=a(9753);function L($,f){if(1&$&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&$){const j=t.oxw();t.xp6(1),t.Oqu(j.person.AddressLine1)}}function h($,f){if(1&$&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&$){const j=t.oxw();t.xp6(1),t.Oqu(j.person.AddressLine2)}}function O($,f){if(1&$&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&$){const j=t.oxw();t.xp6(1),t.AsE("",j.person.Zip," ",j.person.Location,"")}}function R($,f){if(1&$&&(t.ynx(0),t.TgZ(1,"a",1),t._uU(2),t._UZ(3,"br"),t.qZA(),t.BQk()),2&$){const j=t.oxw();t.xp6(1),t.MGl("href","tel:",j.person.PhonePrivate,"",t.LSH),t.xp6(1),t.Oqu(j.person.PhonePrivate)}}function F($,f){if(1&$&&(t.ynx(0),t.TgZ(1,"a",1),t._uU(2),t._UZ(3,"br"),t.qZA(),t.BQk()),2&$){const j=t.oxw();t.xp6(1),t.MGl("href","tel:",j.person.PhoneMobile,"",t.LSH),t.xp6(1),t.Oqu(j.person.PhoneMobile)}}function P($,f){if(1&$&&(t.ynx(0),t.TgZ(1,"a",1),t.ALo(2,"erzPersonEmail"),t._uU(3),t.ALo(4,"erzPersonEmail"),t.qZA(),t.BQk()),2&$){const j=t.oxw();t.xp6(1),t.MGl("href","mailto:",t.lcZ(2,2,j.person),"",t.LSH),t.xp6(2),t.Oqu(t.lcZ(4,4,j.person))}}let B=(()=>{class ${constructor(){}static#e=this.\u0275fac=function(M){return new(M||$)};static#t=this.\u0275cmp=t.Xpm({type:$,selectors:[["erz-student-dossier-legal-representative"]],inputs:{person:"person"},decls:10,vars:10,consts:[[4,"ngIf"],[3,"href"]],template:function(M,q){1&M&&(t.TgZ(0,"address"),t._uU(1),t._UZ(2,"br"),t.YNc(3,L,3,1,"ng-container",0),t.YNc(4,h,3,1,"ng-container",0),t.YNc(5,O,3,2,"ng-container",0),t.YNc(6,R,4,2,"ng-container",0),t.YNc(7,F,4,2,"ng-container",0),t.YNc(8,P,5,6,"ng-container",0),t.ALo(9,"erzPersonEmail"),t.qZA()),2&M&&(t.xp6(1),t.AsE(" ",q.person.LastName," ",q.person.FirstName,""),t.xp6(2),t.Q6J("ngIf",q.person.AddressLine1),t.xp6(1),t.Q6J("ngIf",q.person.AddressLine2),t.xp6(1),t.Q6J("ngIf",q.person.Zip&&q.person.Zip),t.xp6(1),t.Q6J("ngIf",q.person.PhonePrivate),t.xp6(1),t.Q6J("ngIf",q.person.PhoneMobile),t.xp6(1),t.Q6J("ngIf",t.lcZ(9,8,q.person)))},dependencies:[d.O5,w.U],changeDetection:0})}return $})()},5582:(Pe,V,a)=>{"use strict";a.d(V,{H:()=>ce});var t=a(8405),d=a(4409),w=a(5879),L=a(6814),h=a(1523),O=a(6567),R=a(59),F=a(9608),P=a(9515);function B(_e,ve){if(1&_e&&(w.TgZ(0,"a",9)(1,"i",10),w._uU(2,"description"),w.qZA()()),2&_e){const xe=w.oxw(2).erzLet;w.Q6J("href",xe.reportUrl,w.LSH)}}const $=function(_e){return{returnparams:_e}},f=function(_e){return[_e]};function j(_e,ve){if(1&_e&&(w.TgZ(0,"a",11),w.ALo(1,"async"),w.TgZ(2,"button",12,13),w._uU(4),w.ALo(5,"translate"),w.qZA()()),2&_e){const xe=ve.$implicit,be=w.MAs(3),ke=w.oxw(3);w.Q6J("queryParams",w.VKq(9,$,w.lcZ(1,5,ke.state.returnParams$)))("routerLink",w.VKq(11,f,xe)),w.xp6(2),w.ekj("btn-outline-secondary",!be.isActive),w.xp6(2),w.hij(" ",w.lcZ(5,7,"dossier."+xe)," ")}}function M(_e,ve){1&_e&&(w.TgZ(0,"div"),w._UZ(1,"router-outlet"),w.qZA())}function q(_e,ve){1&_e&&(w.TgZ(0,"p"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&_e&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"shared.profile.no-profile")))}const ie=function(){return["addresses","absences","grades"]};function k(_e,ve){if(1&_e&&(w.ynx(0),w.TgZ(1,"erz-student-backlink",4),w.ALo(2,"async"),w.ALo(3,"async"),w.YNc(4,B,3,1,"a",5),w.qZA(),w.TgZ(5,"div",6),w.YNc(6,j,6,13,"a",7),w.qZA(),w.YNc(7,M,2,0,"div",2),w.YNc(8,q,3,3,"ng-template",null,8,w.W1O),w.BQk()),2&_e){const xe=w.MAs(9),be=w.oxw().erzLet,ke=w.oxw();w.xp6(1),w.Q6J("link","../..")("queryParams",w.lcZ(2,8,ke.state.backlinkQueryParams$))("studentId",w.lcZ(3,10,ke.state.studentId$))("student",be.profile&&be.profile.student),w.xp6(3),w.Q6J("ngIf","grades"===be.currentDossierSection),w.xp6(2),w.Q6J("ngForOf",w.DdM(12,ie)),w.xp6(1),w.Q6J("ngIf",be.profile)("ngIfElse",xe)}}function Te(_e,ve){1&_e&&w._UZ(0,"erz-spinner")}function Se(_e,ve){if(1&_e&&(w.ynx(0),w.YNc(1,k,10,13,"ng-container",2),w.ALo(2,"async"),w.YNc(3,Te,1,0,"ng-template",null,3,w.W1O),w.BQk()),2&_e){const xe=w.MAs(4),be=w.oxw();w.xp6(1),w.Q6J("ngIf",!1===w.lcZ(2,2,be.state.loading$))("ngIfElse",xe)}}const ye=function(_e,ve,xe){return{profile:_e,currentDossierSection:ve,reportUrl:xe}};let ce=(()=>{class _e{constructor(xe,be){this.state=xe,this.dossierGradesService=be,this.state.currentDossier$.next("addresses")}static#e=this.\u0275fac=function(be){return new(be||_e)(w.Y36(d.j),w.Y36(t.S))};static#t=this.\u0275cmp=w.Xpm({type:_e,selectors:[["erz-student-dossier"]],features:[w._Bn([d.j,t.S])],decls:5,vars:11,consts:[[1,"erz-container","erz-container-limited"],[4,"erzLet"],[4,"ngIf","ngIfElse"],["loading",""],[1,"mb-2",3,"link","queryParams","studentId","student"],["class","edit btn btn-primary btn-icon ms-2","target","_blank",3,"href",4,"ngIf"],[1,"d-flex","flex-row","py-3","flex-wrap"],["class","me-1 mt-1 me-sm-2",3,"queryParams","routerLink",4,"ngFor","ngForOf"],["noProfile",""],["target","_blank",1,"edit","btn","btn-primary","btn-icon","ms-2",3,"href"],[1,"material-icons"],[1,"me-1","mt-1","me-sm-2",3,"queryParams","routerLink"],["data-test-id","dossier-section-button","type","button","routerLinkActive","btn-primary",1,"btn","btn-outline-secondary"],["rla","routerLinkActive"]],template:function(be,ke){1&be&&(w.TgZ(0,"div",0),w.YNc(1,Se,5,4,"ng-container",1),w.ALo(2,"async"),w.ALo(3,"async"),w.ALo(4,"async"),w.qZA()),2&be&&(w.xp6(1),w.Q6J("erzLet",w.kEZ(7,ye,w.lcZ(2,1,ke.state.profile$),w.lcZ(3,3,ke.state.currentDossier$),w.lcZ(4,5,ke.dossierGradesService.testReportUrl$))))},dependencies:[L.sg,L.O5,h.lC,h.rH,h.Od,O.e,R.O,F.b,L.Ov,P.X$],changeDetection:0})}return _e})()},1703:(Pe,V,a)=>{"use strict";a.d(V,{q:()=>L});var t=a(5879),d=a(902),w=a(6223);let L=(()=>{class h{constructor(){this.id=null,this.label=null,this.disabled=!1,this.value=!1,this.valueChange=new t.vpe,this.fallbackId=(0,d.Z)("erz-switch")}static#e=this.\u0275fac=function(F){return new(F||h)};static#t=this.\u0275cmp=t.Xpm({type:h,selectors:[["erz-switch"]],inputs:{id:"id",label:"label",disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange"},decls:3,vars:5,consts:[["type","checkbox",3,"disabled","ngModel","ngModelChange"]],template:function(F,P){if(1&F&&(t.TgZ(0,"input",0),t.NdJ("ngModelChange",function($){return P.valueChange.emit($)}),t.qZA(),t.TgZ(1,"label"),t._uU(2),t.qZA()),2&F){let B,$;t.Q6J("disabled",P.disabled)("ngModel",P.value),t.uIk("id",null!==(B=P.id)&&void 0!==B?B:P.fallbackId),t.xp6(1),t.uIk("for",null!==($=P.id)&&void 0!==$?$:P.fallbackId),t.xp6(1),t.Oqu(P.label)}},dependencies:[w.Wl,w.JJ,w.On],styles:['input[_ngcontent-%COMP%]{opacity:0;position:absolute}label[_ngcontent-%COMP%]{cursor:pointer;text-indent:-9999px;width:36px;height:18px;border:1px solid rgb(0,0,0);background:#fff;display:block;border-radius:18px;position:relative}label[_ngcontent-%COMP%]:after{content:"";position:absolute;top:1px;left:1px;width:14px;height:14px;background:rgb(0,0,0);border-radius:14px;transition:.3s}input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{border-color:#000;background:rgb(0,0,0)}input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{left:calc(100% - 1px);transform:translate(-100%);background:#fff}input[_ngcontent-%COMP%]:focus + label[_ngcontent-%COMP%]{box-shadow:0 0 0 .25rem #4e4e4e40}input[_ngcontent-%COMP%]:disabled + label[_ngcontent-%COMP%]{cursor:default;background:#fff;border-color:#dedede}input[_ngcontent-%COMP%]:disabled + label[_ngcontent-%COMP%]:after{background:rgb(222,222,222)}label[_ngcontent-%COMP%]:active:after{width:18.2px}'],changeDetection:0})}return h})()},9707:(Pe,V,a)=>{"use strict";a.d(V,{r:()=>w});var t=a(5879);const d=["*"];let w=(()=>{class L{static#e=this.\u0275fac=function(R){return new(R||L)};static#t=this.\u0275cmp=t.Xpm({type:L,selectors:[["erz-preserve-line-height"]],ngContentSelectors:d,decls:3,vars:0,template:function(R,F){1&R&&(t.F$t(),t.TgZ(0,"div"),t.Hsn(1),t._uU(2,"\xa0"),t.qZA())},encapsulation:2})}return L})()},2015:(Pe,V,a)=>{"use strict";a.d(V,{t:()=>Se});var t=a(5619),d=a(7398),w=a(3997),L=a(4664),h=a(4716),O=a(3620),R=a(2181),F=a(902),P=a(3942),B=a(5879),$=a(6814),f=a(6223),j=a(253),M=a(9515);function q(_e,ve){if(1&_e){const xe=B.EpF();B.TgZ(0,"button",6),B.NdJ("click",function(ke){B.CHM(xe);const vt=B.oxw();return B.KtG(vt.modelChange(ke))}),B.TgZ(1,"i",2),B._uU(2,"clear"),B.qZA()()}}function ie(_e,ve){1&_e&&(B.TgZ(0,"div",7)(1,"div",8)(2,"span",9),B._uU(3,"Loading..."),B.qZA()()())}let Se=(()=>{class _e{constructor(){this.selectedItem$=new t.X(null),this.placeholder="shared.typeahead.default-placeholder",this.valueChange=this.selectedItem$.pipe((0,d.U)(xe=>xe?xe.Key:null),(0,w.x)()),this.componentId=(0,F.Z)("erz-typeahead-"),this.loading$=new t.X(!1),this.search=xe=>xe.pipe(function ye(_e,ve){return xe=>xe.pipe((0,O.b)(ve),(0,d.U)(ce),(0,w.x)(),(0,R.h)((0,P.$L)(_e)))}(3,300),(0,L.w)(this.fetchItems.bind(this)))}ngOnChanges(xe){xe.value&&xe.value.currentValue&&xe.value.currentValue!==this.selectedItemKey&&this.fetchItem(xe.value.currentValue).subscribe(be=>{this.modelChange(be)})}format(xe){return xe.Value}modelChange(xe){this.selectedItem$.next(xe instanceof Object?xe:null)}get selectedItemKey(){return this.selectedItem$.value?this.selectedItem$.value.Key:null}fetchItems(xe){return this.loading$.next(!0),this.typeaheadService.getTypeaheadItems(xe,this.additionalHttpParams).pipe((0,h.x)(()=>this.loading$.next(!1)))}fetchItem(xe){return this.loading$.next(!0),this.typeaheadService.getTypeaheadItemByKey(xe).pipe((0,h.x)(()=>this.loading$.next(!1)))}static#e=this.\u0275fac=function(be){return new(be||_e)};static#t=this.\u0275cmp=B.Xpm({type:_e,selectors:[["erz-typeahead"]],inputs:{typeaheadService:"typeaheadService",placeholder:"placeholder",value:"value",additionalHttpParams:"additionalHttpParams"},outputs:{valueChange:"valueChange"},features:[B.TTD],decls:11,vars:18,consts:[[1,"input-group"],[1,"input-group-text",3,"id"],[1,"material-icons"],["type","text",1,"form-control",3,"ngbTypeahead","inputFormatter","resultFormatter","ngModel","ngModelChange"],["class","btn btn-link text-decoration-none","type","button",3,"click",4,"ngIf"],["class","spinner-container",4,"ngIf"],["type","button",1,"btn","btn-link","text-decoration-none",3,"click"],[1,"spinner-container"],["role","status",1,"spinner-border","spinner-border-sm"],[1,"visually-hidden"]],template:function(be,ke){1&be&&(B.TgZ(0,"div",0)(1,"span",1)(2,"i",2),B._uU(3,"search"),B.qZA()(),B.TgZ(4,"input",3),B.NdJ("ngModelChange",function(rt){return ke.modelChange(rt)}),B.ALo(5,"translate"),B.ALo(6,"translate"),B.ALo(7,"async"),B.qZA(),B.YNc(8,q,3,0,"button",4),B.qZA(),B.YNc(9,ie,4,0,"div",5),B.ALo(10,"async")),2&be&&(B.xp6(1),B.Q6J("id",ke.componentId),B.xp6(3),B.Q6J("ngbTypeahead",ke.search)("inputFormatter",ke.format)("resultFormatter",ke.format)("ngModel",B.lcZ(7,14,ke.selectedItem$)),B.uIk("placeholder",B.lcZ(5,10,ke.placeholder))("aria-label",B.lcZ(6,12,ke.placeholder))("aria-describedby",ke.componentId),B.xp6(4),B.Q6J("ngIf",ke.value),B.xp6(1),B.Q6J("ngIf",B.lcZ(10,16,ke.loading$)))},dependencies:[$.O5,f.Fj,f.JJ,f.On,j.dR,$.Ov,M.X$],styles:["[_nghost-%COMP%]{display:block;position:relative;background:rgb(255,255,255)}.spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;right:.75rem;display:flex;align-items:center;z-index:1001}.spinner-border[_ngcontent-%COMP%]{color:#6c757d}input[_ngcontent-%COMP%]{padding-right:2.5em}.input-group[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{position:absolute;right:0;z-index:5}"],changeDetection:0})}return _e})();function ce(_e){return _e.trim().toLowerCase()}},6567:(Pe,V,a)=>{"use strict";a.d(V,{e:()=>w});var t=a(5879);class d{constructor(){this.$implicit=null,this.erzLet=null}}let w=(()=>{class L{set erzLet(O){this.context.$implicit=this.context.erzLet=O}constructor(O,R){this.vcr=O,this.templateRef=R,this.context=new d}ngOnInit(){this.vcr.createEmbeddedView(this.templateRef,this.context)}static#e=this.\u0275fac=function(R){return new(R||L)(t.Y36(t.s_b),t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:L,selectors:[["","erzLet",""]],inputs:{erzLet:"erzLet"}})}return L})()},8121:(Pe,V,a)=>{"use strict";a.d(V,{X_:()=>j,jJ:()=>q,L9:()=>M,wS:()=>B,Wx:()=>P,$f:()=>f,s3:()=>$});var t=a(754),d=a(5040),w=a(5803),L=t.sH("JsonArray",function(){return t.Bk(O)}),h=t.sH("JsonRecord",function(){return t.IM(t.Z_,O)}),O=t.G0([t.O7,t.pk,t.Z_,t.lB,L,h],"Json"),R=new t.Dy("JsonFromString",O.is,function(ie,k){try{return t.Vp(JSON.parse(ie))}catch{return t.Rn(ie,k)}},function(ie){return JSON.stringify(ie)}),F=a(2220);function P(ie){return t.G0([t.lB,ie])}function B(ie){return t.G0([t.lB,t.S1,ie])}const $=t.dt({Id:t.pk,HRef:P(t.Z_)}),f=t.dt({Id:P(t.pk),HRef:P(t.Z_)}),j=t.Z_.pipe(R,"JsonFromUnknown"),M=new t.Dy("LocalDateTimeFromString",ie=>ie instanceof Date,(ie,k)=>(0,d.zG)(t.Z_.validate(ie,k),(0,w.tS)(Te=>{const Se=(0,F.Uy)(Te);return isNaN(Se.getTime())?t.Rn(ie,k):t.Vp(Se)})),ie=>(0,F.oZ)(ie)),q=new t.Dy("LocalDateTimeFromString",ie=>ie instanceof Date,(ie,k)=>(0,d.zG)(t.Z_.validate(ie,k),(0,w.tS)(Te=>{const Se=(0,F.nx)(Te);return isNaN(Se.getTime())?t.Rn(ie,k):t.Vp(Se)})),ie=>(0,F.Aq)(ie))},7379:(Pe,V,a)=>{"use strict";a.d(V,{Ff:()=>Se,T0:()=>q,Ly:()=>M,mJ:()=>Te});var t=a(754),d=a(8121),w=a(4717),L=a(2738);const h=t.dt({TestId:t.pk,CourseRegistrationId:t.pk,GradeId:(0,d.Wx)(t.pk),GradeValue:(0,d.Wx)(t.pk),GradeDesignation:(0,d.Wx)(t.Z_),Points:(0,d.Wx)(t.pk),StudentId:t.pk,Id:t.Z_}),O=t.dt({Id:t.pk,CourseId:t.pk,Date:d.L9,Designation:t.Z_,Weight:t.pk,WeightPercent:t.pk,IsPointGrading:t.O7,MaxPoints:(0,d.Wx)(t.pk),MaxPointsAdjusted:(0,d.Wx)(t.pk),IsPublished:t.O7,IsOwner:t.O7,Owner:(0,d.Wx)(t.Z_),Creation:t.Z_,GradingScaleId:(0,d.Wx)(t.pk),GradingScale:(0,d.Wx)(t.Z_),Results:(0,d.Wx)(t.IX(h))}),R=t.dt({Id:t.pk}),F=t.r$({HRef:(0,d.Wx)(t.Z_)}),P=t.r$({HasEvaluationStarted:t.O7,EvaluationUntil:(0,d.Wx)(d.L9),HasReviewOfEvaluationStarted:t.O7,HasTestGrading:t.O7,Id:t.pk}),B=t.jV([R,F,P]),$=t.r$({Id:t.pk,StudentCount:t.pk}),f=t.jV([R,F,$]),j=t.dt({EventDesignation:t.Z_,EventId:t.pk,EventNumber:t.Z_,Grade:t.Z_,GradeComment:(0,d.Wx)(t.Z_),GradeValue:(0,d.Wx)(t.pk),AverageTestResult:t.pk,Id:t.pk,IsAdequate:t.O7,StudentFullName:t.Z_,StudentId:t.pk,StudentMatriculationNumber:(0,d.Wx)(t.pk),StudentNameTooltip:t.Z_}),M=t.dt({AverageTestResult:t.pk,CanGrade:t.O7,EventDesignation:t.Z_,EventId:t.pk,EventNumber:t.Z_,GradeComment:(0,d.Wx)(t.Z_),GradeId:(0,d.Wx)(t.pk),GradeValue:(0,d.Wx)(t.pk),Id:t.pk,StudentFullName:t.Z_,StudentId:t.pk,StudentMatriculationNumber:(0,d.Wx)(t.pk),StudentNameTooltip:t.Z_}),q=t.dt({HRef:t.Z_,Id:t.pk,Number:t.Z_,Designation:t.Z_,DateFrom:(0,d.Wx)(d.L9),DateTo:(0,d.Wx)(d.L9),StatusId:t.pk,GradingScaleId:(0,d.Wx)(t.pk),FinalGrades:(0,d.Wx)(t.IX(j)),Gradings:(0,d.Wx)(t.IX(M)),Tests:(0,d.Wx)(t.IX(O)),EvaluationStatusRef:B,AttendanceRef:f,ParticipatingStudents:(0,d.Wx)(t.IX(w.Z)),Classes:(0,d.Wx)(t.IX(L.y))}),Te=(t.dt({StudentIds:t.IX(t.pk),TestId:t.pk,Points:(0,d.Wx)(t.pk)}),t.dt({StudentIds:t.IX(t.pk),TestId:t.pk,GradeId:(0,d.Wx)(t.pk)}),t.dt({TestResults:t.IX(h),Gradings:t.IX(M)})),Se=t.dt({Gradings:t.IX(M)})},8470:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>d});var t=a(754);const d=t.dt({Key:t.G0([t.pk,t.Z_]),Value:t.Z_})},8952:(Pe,V,a)=>{"use strict";a.d(V,{C:()=>R});var t=a(754),d=a(8121);const w=t.dt({Id:t.pk}),L=t.r$({HRef:(0,d.Wx)(t.Z_)}),h=t.r$({From:d.L9,To:d.L9,EventNumber:t.Z_,EventDesignation:t.Z_,Designation:(0,d.Wx)(t.Z_)}),O=t.jV([w,L,h]),R=t.dt({Id:t.Z_,LessonRef:O,StudentRef:d.s3,TypeRef:d.s3,Type:(0,d.Wx)(t.Z_),ConfirmationState:(0,d.Wx)(t.Z_),ConfirmationStateId:t.pk,Comment:(0,d.Wx)(t.Z_),StudentFullName:t.Z_,RegistrationId:t.pk,HRef:t.Z_})},4717:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});var t=a(754),d=a(8121);const w=t.dt({Id:t.pk,AddressLine1:(0,d.Wx)(t.Z_),AddressLine2:(0,d.wS)(t.Z_),Birthdate:(0,d.Wx)(d.L9),DisplayEmail:(0,d.Wx)(t.Z_),FullName:t.Z_,Gender:t.G0([t.i0("M"),t.i0("F"),t.i0("X")]),Location:(0,d.Wx)(t.Z_),PhoneMobile:(0,d.Wx)(t.Z_),PhonePrivate:(0,d.Wx)(t.Z_),PostalCode:(0,d.Wx)(t.Z_)})},2738:(Pe,V,a)=>{"use strict";a.d(V,{y:()=>d});var t=a(754);const d=t.dt({Id:t.pk,Designation:t.Z_,StudentCount:t.pk,Number:t.Z_})},6514:(Pe,V,a)=>{"use strict";a.d(V,{Y:()=>h,t:()=>L});var t=a(754),d=a(8121),w=a(8470);const L=t.dt({Id:t.Z_,SubscriptionId:t.pk,VssId:t.pk,EventId:t.pk,DropdownItems:(0,d.Wx)(t.IX(w.b)),IdPerson:t.pk,ShowAsRadioButtons:t.O7,Value:(0,d.Wx)(t.Z_)}),h=t.dt({Id:t.pk,CurrentWorkProgressId:(0,d.Wx)(t.Z_||(0,d.Wx)(t.pk)),EventId:(0,d.Wx)(t.pk),PersonId:(0,d.Wx)(t.pk),Status:t.Z_,StatusId:(0,d.Wx)(t.pk),IsOkay:(0,d.Wx)(t.O7),IsQueued:(0,d.Wx)(t.O7),EventDesignation:(0,d.Wx)(t.Z_),EventInformation:(0,d.Wx)(t.Z_||t.pk),EventNotes:(0,d.Wx)(t.Z_||t.pk),CheckPersonalInformation:(0,d.Wx)(t.O7),CorrespondencePersonId:(0,d.Wx)(t.pk),CorrespondenceAddressTypeId:(0,d.Wx)(t.Z_||t.pk),Billing1PersonId:(0,d.Wx)(t.pk),Billing1AddressTypeId:(0,d.Wx)(t.Z_||t.pk),Billing2PersonId:(0,d.Wx)(t.Z_||t.pk),Billing2AddressTypeId:(0,d.Wx)(t.Z_||t.pk),KindOfPaymentId1:(0,d.Wx)(t.Z_||t.pk),KindOfPaymentEmail1:(0,d.Wx)(t.Z_||t.pk),KindOfPaymentId2:(0,d.Wx)(t.Z_||t.pk),KindOfPaymentEmail2:(0,d.Wx)(t.Z_||t.pk),IdObject:(0,d.Wx)(t.pk),IdSubscription:(0,d.Wx)(t.pk),IdStatus:(0,d.Wx)(t.pk),AnsweredQuestions:(0,d.Wx)(t.Z_||t.pk),Messages:(0,d.Wx)(t.Z_||t.pk),SubscriptionDetails:(0,d.Wx)(t.IX(L)),HRef:(0,d.Wx)(t.Z_)})},3786:(Pe,V,a)=>{"use strict";a.d(V,{Az:()=>Te,b7:()=>B,zn:()=>j,k_:()=>$,Sx:()=>k,PW:()=>M,iu:()=>q,PG:()=>P});var t=a(754);var L=a(5803);function h(Se,ye,ce){return void 0===ce&&(ce="withFallback("+Se.name+")"),function w(Se,ye,ce){void 0===ce&&(ce=Se.name);var _e=function d(Se){var ye=Object.create(Object.getPrototypeOf(Se));return Object.assign(ye,Se),ye}(Se);return _e.validate=ye,_e.decode=function(ve){return ye(ve,t.Ju(_e))},_e.name=ce,_e}(Se,function(_e,ve){return(0,L.vx)(function(){return t.Vp(ye)})(Se.validate(_e,ve))},ce)}var O=a(8121),R=a(8470);const F=t.dt({Key:t.Z_,Value:t.Z_}),P=t.dt({Id:t.Z_,Settings:t.OT(t.IX(F))}),B=O.X_.pipe(t.dt({mail:h(t.O7,!1),gui:h(t.O7,!1),phoneMobile:h(t.O7,!1)})),$=new t.Dy("NotificationTypesInactive",Se=>Array.isArray(Se)&&Se.every(ye=>"string"==typeof ye),(Se,ye)=>"string"==typeof Se?t.Vp(Se.split(";").filter(Boolean)):t.Rn(Se,ye),Se=>Se.join(";")),f=t.dt({id:t.pk,subject:t.Z_,body:t.Z_}),j=O.X_.pipe(t.OT(t.IX(f)));var M=function(Se){return Se.Grid="grid",Se.List="list",Se}(M||{});const q=O.X_.pipe(t.dt({presenceControl:t.mM({grid:null,list:null})})),ie=t.dt({eventId:(0,O.Wx)(t.pk),group:(0,O.Wx)(R.b.props.Key)}),k=O.X_.pipe(t.OT(t.IX(ie))),Te=t.dt({AccessInfo:t.dt({Roles:t.IX(t.Z_),Permissions:t.IX(t.Z_)})})},500:(Pe,V,a)=>{"use strict";a.d(V,{u:()=>w});var t=a(5879),d=a(8299);let w=(()=>{class L{constructor(O){this.i18n=O}transform(O,R){return"fr-CH"===this.i18n.detectLanguage()?(Array.from(R).map(P=>O=O.replace(P," ".concat(P))),O):O}static#e=this.\u0275fac=function(R){return new(R||L)(t.Y36(d.D,16))};static#t=this.\u0275pipe=t.Yjl({name:"addSpace",type:L,pure:!0})}return L})()},238:(Pe,V,a)=>{"use strict";a.d(V,{Q:()=>F});var t=a(5351),d=a(9189),w=a(2816),O=a(5879),R=a(9515);let F=(()=>{class P{constructor($){this.translate=$}transform($){if(!$)return"";const f=function h(P,B){(0,w.Z)(2,arguments);var $=(0,d.Z)(P),f=(0,d.Z)(B),j=$.getTime()-(0,t.Z)($),M=f.getTime()-(0,t.Z)(f);return Math.round((j-M)/864e5)}($,new Date);return this.translate.instant(`shared.daysDifference.${this.getKey(f)}`,{count:Math.abs(f)})}getKey($){return 0===$?"today":1===$?"tomorrow":-1===$?"yesterday":$>0?"in":"ago"}static#e=this.\u0275fac=function(f){return new(f||P)(O.Y36(R.sK,16))};static#t=this.\u0275pipe=O.Yjl({name:"erzDaysDifference",type:P,pure:!0})}return P})()},6651:(Pe,V,a)=>{"use strict";a.d(V,{GR:()=>L,ey:()=>O,fY:()=>h});var t=a(6814),d=a(5879);const w="1-3",L="\u2013";let h=(()=>{class F{constructor(B){this.locale=B}transform(B,$,f){const j=Number(B??null);return isNaN(j)?L:O(Number(B??null),f??this.locale,$)}static#e=this.\u0275fac=function($){return new($||F)(d.Y36(d.soG,16))};static#t=this.\u0275pipe=d.Yjl({name:"decimalOrDash",type:F,pure:!0})}return F})();function O(F,P,B){return 0===F?L:(0,t.uf)(F,P,`1.${function R(F){return F?String(F).includes("-")?String(F):`${F}-${F}`:w}(B)}`)}},9753:(Pe,V,a)=>{"use strict";a.d(V,{U:()=>d});var t=a(5879);let d=(()=>{class w{transform(h){return h?.DisplayEmail||h?.Email||h?.Email2||null}static#e=this.\u0275fac=function(O){return new(O||w)};static#t=this.\u0275pipe=t.Yjl({name:"erzPersonEmail",type:w,pure:!0})}return w})()},4703:(Pe,V,a)=>{"use strict";a.d(V,{y:()=>w});var t=a(5879),d=a(6593);let w=(()=>{class L{constructor(O){this.sanitizer=O}transform(O,R){switch(R){case"html":return this.sanitizer.bypassSecurityTrustHtml(O);case"style":return this.sanitizer.bypassSecurityTrustStyle(O);case"script":return this.sanitizer.bypassSecurityTrustScript(O);case"url":return this.sanitizer.bypassSecurityTrustUrl(O);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(O);default:throw new Error(`Invalid safe type specified: ${R}`)}}static#e=this.\u0275fac=function(R){return new(R||L)(t.Y36(d.H7,16))};static#t=this.\u0275pipe=t.Yjl({name:"safe",type:L,pure:!0})}return L})()},9410:(Pe,V,a)=>{"use strict";a.d(V,{Q:()=>L});var t=a(7424),d=a.n(t),w=a(5879);let L=(()=>{class h{transform(R,F){return d()(R,F)}static#e=this.\u0275fac=function(F){return new(F||h)};static#t=this.\u0275pipe=w.Yjl({name:"xss",type:h,pure:!0})}return h})()},813:(Pe,V,a)=>{"use strict";a.d(V,{e:()=>w});var t=a(5879),d=a(8173);let w=(()=>{class L{constructor(O){this.storage=O}get isAuthenticated(){return!!this.accessToken}get accessToken(){return this.storage.getAccessToken()}static#e=this.\u0275fac=function(R){return new(R||L)(t.LFG(d.V))};static#t=this.\u0275prov=t.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})()},8393:(Pe,V,a)=>{"use strict";a.d(V,{o:()=>f});var t=a(7398),d=a(7081),w=a(8180),L=a(8706),h=a(6561),O=a(49),R=a(3942),F=a(2324),P=a(7727),B=a(4141),$=a(5879);let f=(()=>{class M extends h.z{constructor(ie){super(),this.settings=ie,this.selectedIds$=this.selection$.pipe((0,t.U)(j),(0,t.U)(({openAbsencesEntries:k,lessonPresences:Te})=>(0,O.PO)([...(0,P.MX)(k),...Te])),(0,d.d)(1)),this.selectedLessons$=this.selection$.pipe((0,t.U)(j),(0,t.U)(({openAbsencesEntries:k,lessonPresences:Te})=>[...(0,P.MX)(k),...Te]),(0,d.d)(1)),this.selectedWithoutPresenceType$=this.selection$.pipe((0,t.U)(j),(0,t.U)(({openAbsencesEntries:k,lessonPresences:Te})=>[...(0,P.MX)(k),...Te].filter(Se=>Se.TypeRef.Id===this.settings.absencePresenceTypeId)))}clearNonOpenAbsencesEntries(){this.selection$.pipe((0,w.q)(1),(0,t.U)(j)).subscribe(({openAbsencesEntries:ie})=>this.clear(ie))}clearNonLessonPresences(){this.selection$.pipe((0,w.q)(1),(0,t.U)(j)).subscribe(({lessonPresences:ie})=>this.clear(ie))}static#e=this.\u0275fac=function(k){return new(k||M)($.LFG(B.L6))};static#t=this.\u0275prov=$.Yz7({token:M,factory:M.\u0275fac})}return M})();function j(M){return{openAbsencesEntries:M.filter((0,R.V9)(F.G)),lessonPresences:M.filter((0,L.ff)((0,R.V9)(F.G)))}}},1074:(Pe,V,a)=>{"use strict";a.d(V,{s:()=>j});var t=a(4664),d=a(7398),w=a(2096),L=a(754),h=a(4141),O=a(7379),R=a(275),F=a(6031),P=a(8366),B=a(7470),$=a(5879),f=a(9862);let j=(()=>{class M extends P.v{constructor(ie,k){super(ie,k,O.T0,"Courses"),this.statusCodec=L.dt((0,B.e)(this.codec.props,["Id","StatusId","EvaluationStatusRef"]))}getNumberOfCoursesForRating(){return this.http.get(`${this.baseUrl}/?expand=EvaluationStatusRef&fields=Id,StatusId,EvaluationStatusRef&filter.StatusId=;10300;10240`,{headers:{"X-Role-Restriction":"TeacherRole"}}).pipe((0,t.w)((0,R.Y0)(this.statusCodec)),(0,d.U)(ie=>ie.filter(k=>!0===k.EvaluationStatusRef.HasEvaluationStarted)),(0,d.U)(ie=>ie.length))}getExpandedCourses(ie){return(0,F.n)(ie,"TeacherRole")?this.http.get(`${this.baseUrl}/?expand=EvaluationStatusRef,AttendanceRef,Classes,FinalGrades&filter.StatusId=;${this.settings.eventlist.statusfilter}`,{headers:{"X-Role-Restriction":"TeacherRole"}}).pipe((0,t.w)((0,R.Y0)(O.T0))):(0,w.of)([])}getExpandedCourse(ie){return this.http.get(`${this.baseUrl}/${ie}?expand=ParticipatingStudents,EvaluationStatusRef,Tests,Gradings,FinalGrades,Classes`).pipe((0,t.w)((0,R.Jx)(O.T0)))}getExpandedCoursesForDossier(){return this.http.get(`${this.baseUrl}/?expand=Tests,Gradings,FinalGrades,EvaluationStatusRef,ParticipatingStudents,Classes&filter.StatusId=;${this.settings.eventlist.statusfilter}`).pipe((0,t.w)((0,R.Y0)(O.T0)))}getExpandedCoursesForStudent(){return this.http.get(`${this.baseUrl}/?expand=Tests,Gradings,FinalGrades&filter.StatusId=;${this.settings.eventlist.statusfilter}`,{headers:{"X-Role-Restriction":"StudentRole"}}).pipe((0,t.w)((0,R.Y0)(O.T0)))}add(ie,k,Te,Se,ye,ce,_e){return this.http.put(`${this.baseUrl}/${ie}/Tests/New`,{Tests:[{Date:k,Designation:Te,Weight:Se,IsPointGrading:ye,MaxPoints:ce,MaxPointsAdjusted:_e}]}).pipe((0,d.U)(()=>{}))}update(ie,k,Te,Se,ye,ce,_e,ve){return this.http.put(`${this.baseUrl}/${ie}/Tests/Update`,{Tests:[{Id:k,Designation:Te,Date:Se,Weight:ye,IsPointGrading:ce,MaxPoints:_e,MaxPointsAdjusted:ve}]}).pipe((0,d.U)(()=>{}))}delete(ie,k){return this.http.put(`${this.baseUrl}/${ie}/Tests/Delete`,{TestIds:[k]}).pipe((0,d.U)(()=>k))}updateTestResult(ie,k){return this.http.put(`${this.baseUrl}/${ie}/SetTestResult`,k).pipe((0,t.w)((0,R.Jx)(O.mJ)),(0,t.w)(Te=>(0,w.of)({courseId:ie,body:Te})))}setAverageAsFinalGrade(ie){return this.http.put(`${this.baseUrl}/SetAverageTestResult`,ie).pipe((0,t.w)((0,R.Jx)(O.Ff)))}publishTest(ie){return this.http.put(`${this.baseUrl}/PublishTest`,{TestIds:[ie]}).pipe((0,d.U)(()=>ie))}unpublishTest(ie){return this.http.put(`${this.baseUrl}/UnpublishTest`,{TestIds:[ie]}).pipe((0,d.U)(()=>ie))}static#e=this.\u0275fac=function(k){return new(k||M)($.LFG(f.eN),$.LFG(h.L6))};static#t=this.\u0275prov=$.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"})}return M})()},8405:(Pe,V,a)=>{"use strict";a.d(V,{S:()=>ye});var t=a(7328),d=a(8645),w=a(3997),L=a(4664),h=a(7398),O=a(7081),R=a(3019),F=a(2572),P=a(9315),B=a(4141),$=a(3942),f=a(7483),j=a(2460),M=a(5879),q=a(1074),ie=a(3219),k=a(6016),Te=a(3005),Se=a(1760);let ye=(()=>{class ce{constructor(ve,xe,be,ke,vt,rt){this.coursesRestService=ve,this.subscriptionRestService=xe,this.reportsService=be,this.loadingService=ke,this.gradingScalesRestService=vt,this.settings=rt,this.studentId$=new t.t(1),this.updateTest$=new d.x,this.initialStudentCourses$=this.studentId$.pipe((0,w.x)(),(0,L.w)(this.loadCourses.bind(this)),(0,h.U)(Mt=>Mt.sort((qe,_t)=>qe.Designation.localeCompare(_t.Designation))),(0,O.d)(1)),this.updatedStudentCourses$=this.updateTest$.pipe((0,j.M)(this.initialStudentCourses$),(0,h.U)(([Mt,qe])=>this.updateCourses(qe,Mt))),this.studentCourses$=(0,R.T)(this.initialStudentCourses$,this.updatedStudentCourses$).pipe((0,O.d)(1)),this.loading$=this.loadingService.loading$,this.studentCourseIds$=this.studentCourses$.pipe((0,h.U)(Mt=>Mt.flatMap(qe=>qe.Id))),this.idSubscriptions$=(0,F.a)([this.studentId$,this.studentCourseIds$]).pipe((0,L.w)(([Mt,qe])=>this.subscriptionRestService.getIdSubscriptionsByStudentAndCourse(Mt,qe))),this.ids$=this.idSubscriptions$.pipe((0,h.U)(Mt=>Mt.map(qe=>qe.Id))),this.testReportUrl$=this.ids$.pipe((0,h.U)(Mt=>this.reportsService.getSubscriptionReportUrl(this.settings.testsBySubscriptionReportIdTeacher,Mt))),this.tests$=this.studentCourses$.pipe((0,h.U)(Mt=>Mt.flatMap(qe=>qe.Tests).filter($.Nf))),this.gradingScaleIdsFromTests$=this.tests$.pipe((0,h.U)(Mt=>[...Mt.map(qe=>qe.GradingScaleId)].filter($.Nf).filter($.Tw))),this.gradingScaleIdsFromCourses$=this.studentCourses$.pipe((0,h.U)(Mt=>Mt.flatMap(qe=>qe.GradingScaleId).filter($.Nf).filter($.Tw))),this.gradingScaleIds$=(0,F.a)([this.gradingScaleIdsFromCourses$,this.gradingScaleIdsFromTests$]).pipe((0,h.U)(([Mt,qe])=>Mt.concat(qe).filter($.Tw))),this.gradingScales$=this.gradingScaleIds$.pipe((0,L.w)(Mt=>(0,P.D)(Mt.map(qe=>this.gradingScalesRestService.getGradingScale(qe)))))}setStudentId(ve){this.studentId$.next(ve)}getFinalGradeForStudent(ve,xe){return ve?.FinalGrades?.find(be=>be.StudentId===xe)}getGradingForStudent(ve,xe){return ve?.Gradings?.find(be=>be.StudentId===xe)}getGradingScaleOfCourse(ve,xe){return xe?.find(be=>be.Id===ve.GradingScaleId)}getGradesForStudent(ve,xe,be){return ve.Tests?.flatMap(ke=>({value:Number((0,f.fr)(ke,be)?.Grades.find(rt=>rt.Id===(0,f.W3)(xe,ke)?.GradeId)?.Designation),weight:ke.Weight})).filter(({value:ke})=>!!ke)||[]}loadCourses(ve){return this.loadingService.load(this.coursesRestService.getExpandedCoursesForDossier().pipe((0,h.U)(xe=>xe.filter(be=>be.ParticipatingStudents?.find(ke=>ke.Id===ve)))))}updateCourses(ve,xe){return ve.map(be=>({...be,Tests:null!==be.Tests?be.Tests.map(ke=>ke.Id===xe.Id?xe:ke):null}))}static#e=this.\u0275fac=function(xe){return new(xe||ce)(M.LFG(q.s),M.LFG(ie.o),M.LFG(k.F),M.LFG(Te.b),M.LFG(Se.R),M.LFG(B.L6))};static#t=this.\u0275prov=M.Yz7({token:ce,factory:ce.\u0275fac})}return ce})()},4409:(Pe,V,a)=>{"use strict";a.d(V,{j:()=>P});var t=a(5619),d=a(7398),w=a(4664),L=a(7081),h=a(1342),O=a(5879),R=a(7909),F=a(1523);let P=(()=>{class B{constructor(f,j){this.profileService=f,this.route=j,this.currentDossier$=new t.X("addresses"),this.studentId$=this.route.paramMap.pipe((0,d.U)(M=>Number(M.get("id")))),this.profile$=this.studentId$.pipe((0,w.w)(M=>this.profileService.getProfile(M)),(0,L.d)(1)),this.returnParams$=this.route.queryParams.pipe((0,d.U)(({returnparams:M})=>M)),this.backlinkQueryParams$=this.returnParams$.pipe((0,d.U)(h.dD)),this.loading$=this.profileService.loading$}static#e=this.\u0275fac=function(j){return new(j||B)(O.LFG(R.J),O.LFG(F.gz))};static#t=this.\u0275prov=O.Yz7({token:B,factory:B.\u0275fac})}return B})()},5001:(Pe,V,a)=>{"use strict";a.d(V,{R:()=>F});var t=a(4664),d=a(7081),w=a(275),L=a(4141),h=a(8470),O=a(5879),R=a(9862);let F=(()=>{class P{constructor($,f){this.http=$,this.settings=f}getAbsenceConfirmationStates(){return this.http.get(`${this.baseUrl}/AbsenceConfirmationStates`).pipe((0,t.w)((0,w.Y0)(h.b)),(0,d.d)(1))}getStayPermits(){return this.http.get(`${this.baseUrl}/StayPermits`).pipe((0,t.w)((0,w.Y0)(h.b)),(0,d.d)(1))}get baseUrl(){return`${this.settings.apiUrl}/DropDownItems`}static#e=this.\u0275fac=function(f){return new(f||P)(O.LFG(R.eN),O.LFG(L.L6))};static#t=this.\u0275prov=O.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})()},1760:(Pe,V,a)=>{"use strict";a.d(V,{R:()=>M});var t=a(2096),d=a(4664),w=a(9315),L=a(7081),h=a(4141),O=a(754),R=a(8121);const F=O.dt({Id:O.pk,IdGradingScale:O.pk,Designation:O.Z_,Value:O.pk,Sufficient:O.O7,Sort:O.Z_,IdObject:O.pk,HRef:(0,R.Wx)(O.Z_)}),P=O.dt({Id:O.pk,Designation:O.Z_,MinGrade:(0,R.Wx)(O.pk),MaxGrade:(0,R.Wx)(O.pk),CommentsAllowed:O.O7,LowestSufficientGrade:O.pk,RisingGrades:O.O7,Grades:O.IX(F),IdObject:O.pk,FreeGrading:O.O7,HRef:O.Z_});var B=a(275),$=a(8366),f=a(5879),j=a(9862);let M=(()=>{class q extends $.v{constructor(k,Te){super(k,Te,P,"GradingScales")}getGradingScale(k){return null===k?(0,t.of)(null):this.http.get(`${this.baseUrl}/${k}`).pipe((0,d.w)((0,B.Jx)(P)))}loadGradingScales(k){return k.pipe((0,d.w)(Te=>(0,w.D)(Te.map(Se=>this.getGradingScale(Se)))),(0,L.d)(1))}static#e=this.\u0275fac=function(Te){return new(Te||q)(f.LFG(j.eN),f.LFG(h.L6))};static#t=this.\u0275prov=f.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"})}return q})()},8299:(Pe,V,a)=>{"use strict";a.d(V,{D:()=>O});var t=a(5879),d=a(9515),w=a(8173);const L=["de-CH","fr-CH"],h=L[0];let O=(()=>{class R{constructor(P,B){this.translate=P,this.storage=B}initialize(){this.translate.setDefaultLang(h),this.translate.use(this.detectLanguage())}detectLanguage(){return this.detectedLanguage||(this.detectedLanguage=this.getDocumentLanguage()||this.getStoredLanguage()||this.getBrowserLanguage()||h),this.detectedLanguage}getLocalizedLanguage(P){return(P=L.find(B=>B===`${(P||"").toLowerCase()}-CH`))||h}getDocumentLanguage(){const P=document.querySelector("[lang]");return this.normalizeLanguage(P&&P.lang)}getStoredLanguage(){return this.normalizeLanguage(this.storage.getLanguage())}getBrowserLanguage(){return this.normalizeLanguage(this.translate.getBrowserLang())}normalizeLanguage(P){return(P=(P||"").split("-")[0])&&L.find(B=>P===B.split("-")[0])||null}static#e=this.\u0275fac=function(B){return new(B||R)(t.LFG(d.sK),t.LFG(w.V))};static#t=this.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"})}return R})()},7575:(Pe,V,a)=>{"use strict";a.d(V,{q:()=>vt});var t=a(9862),d=a(5301),w=a(3166),L=a(4307),h=a(8584),O=a(754),R=a(2096),F=a(9315),P=a(4664),B=a(7398),$=a(7727),f=a(4141),j=a(8121);const M=O.dt({StudentRef:j.s3,StudentFullName:O.Z_,TotalAbsences:O.pk,TotalAbsencesUnconfirmed:O.pk,TotalAbsencesValidExcuse:O.pk,TotalAbsencesWithoutExcuse:O.pk,TotalAbsencesUnchecked:O.pk,TotalDispensations:O.pk,TotalHalfDays:O.pk,TotalIncidents:O.pk}),q=O.dt({Id:O.Z_,LessonRef:j.s3,StudentRef:j.s3,EventRef:j.s3,TypeRef:j.$f,RegistrationRef:j.$f,StudyClassRef:j.$f,ConfirmationStateId:(0,j.Wx)(O.pk),EventDesignation:O.Z_,HasStudyCourseConfirmationCode:O.O7,LessonDateTimeFrom:j.L9,LessonDateTimeTo:j.L9,Comment:(0,j.Wx)(O.Z_),Date:(0,j.Wx)(j.jJ),Type:(0,j.Wx)(O.Z_),StudentFullName:O.Z_,StudyClassNumber:O.Z_,TeacherInformation:O.Z_}),ie=O.dt({LessonRef:j.s3,EventRef:j.s3,EventDesignation:O.Z_,StudyClassNumber:O.Z_,TeacherInformation:O.Z_,LessonDateTimeFrom:j.L9,LessonDateTimeTo:j.L9});var k=a(275),Te=a(1389);function Se(qe){return _t=>_t.pipe((0,P.w)($e=>{const Ee=Number($e.headers.get("X-Pagination-Offset")),Ze=Number($e.headers.get("X-Pagination-Total"));return(0,k.Y0)(qe)($e.body).pipe((0,B.U)(J=>({offset:Ee,total:Ze,entries:J})))}))}function ye(qe,_t,$e=new t.LE){return $e.set("offset",String(qe)).set("limit",String(_t))}function ce(qe=new t.WM){return qe.set("X-Pagination-Total","on")}var _e=a(7470),ve=a(8366),xe=a(6031),be=a(5879),ke=a(8173);let vt=(()=>{class qe extends ve.v{constructor($e,Ee,Ze){super($e,Ee,q,"LessonPresences"),this.storage=Ze,this.lessonPresenceRefCodec=O.dt((0,_e.e)(this.codec.props,["LessonRef","RegistrationRef","StudentRef","EventRef","StudyClassRef","TypeRef"])),this.lessonPresenceIdCodec=O.dt((0,_e.e)(this.codec.props,["Id"]))}getLessonsByDate($e){const Ee={fields:Object.keys(ie.props).join(","),"filter.LessonDateTimeFrom":`=${(0,d.Z)($e,"yyyy-MM-dd")}`,sort:"LessonDateTimeFrom"};return this.http.get(`${this.baseUrl}/`,{params:Ee,headers:{"X-Role-Restriction":"LessonTeacherRole"}}).pipe((0,P.w)((0,k.Y0)(ie)))}getListByLessons($e){if(0===$e.length)return(0,R.of)([]);const Ze={"filter.LessonRef":`;${$e.map(J=>J.LessonRef.Id).join(";")}`};return this.getList({params:Ze,headers:{"X-Role-Restriction":"LessonTeacherRole"}})}getListByDateStudentClass($e,Ee,Ze){const J={"filter.LessonDateTimeFrom":`=${(0,d.Z)($e,"yyyy-MM-dd")}`,"filter.StudentRef":`=${Ee}`};return null!=Ze&&(J["filter.StudyClassRef"]=`=${Ze}`),this.getList({params:J,headers:{"X-Role-Restriction":"LessonTeacherRole"}})}getListForToday(){return this.http.get(`${this.baseUrl}/Today`,{headers:{"X-Role-Restriction":"LessonTeacherRole"}}).pipe((0,P.w)((0,k.Y0)(this.codec)))}getListOfUnconfirmed($e){return(0,xe.n)(this.storage.getPayload()?.roles,"ClassTeacherRole")?(0,F.D)([this.getListOfUnconfirmedClassTeacher($e),this.getListOfUnconfirmedLessonTeacher($e)]).pipe((0,B.U)((0,Te.h)($.HM))):(0,xe.n)(this.storage.getPayload()?.roles,"LessonTeacherRole")?this.getListOfUnconfirmedLessonTeacher($e):(0,xe.n)(this.storage.getPayload()?.roles,"AbsenceAdministratorRole")?this.getListOfUnconfirmedAbsenceAdministrator($e):(0,R.of)([])}getStatistics($e,Ee,Ze){let J=rt([[$e.student,"StudentRef"],[$e.educationalEvent,"EventRef"],[$e.studyClass,"StudyClassRef"]]);return J=function Mt(qe,_t=new t.LE){return qe?_t.set("sort",`${qe.key}.${qe.ascending?"asc":"desc"}`):_t}(Ee,J),J=ye(Ze,this.settings.paginationLimit,J),this.http.get(`${this.baseUrl}/Statistics`,{params:J,headers:ce(),observe:"response"}).pipe(Se(M))}getLessonRefs($e){let Ee=rt([[$e.student,"StudentRef"],[$e.educationalEvent,"EventRef"],[$e.studyClass,"StudyClassRef"]]);return Ee=Ee.set("filter.TypeRef",">0"),Ee=Ee.set("fields",["LessonRef","RegistrationRef","StudentRef","EventRef","StudyClassRef","TypeRef"].join(",")),this.http.get(`${this.baseUrl}/`,{params:Ee}).pipe((0,P.w)((0,k.Y0)(this.lessonPresenceRefCodec)))}getRegistrationRefsByEventIds($e){let Ee=new t.LE;return Ee.set("filter.EventRef",`;${$e.join(";")}`),Ee=Ee.set("fields",["LessonRef","RegistrationRef","StudentRef","EventRef","StudyClassRef","TypeRef"].join(",")),this.http.get(`${this.baseUrl}/`,{params:Ee}).pipe((0,P.w)((0,k.Y0)(this.lessonPresenceRefCodec)))}getFilteredList($e,Ee,Ze){let J=rt([[$e.student,"StudentRef"],[$e.educationalEvent,"EventRef"],[$e.studyClass,"StudyClassRef"]],new t.LE({fromObject:Ze}));return $e.teacher&&(J=J.set("filter.TeacherInformation",`~*${$e.teacher}*`)),$e.dateFrom&&$e.dateTo&&(0,w.Z)($e.dateFrom,$e.dateTo)?J=J.set("filter.LessonDateTimeFrom",`=${(0,d.Z)($e.dateFrom,"yyyy-MM-dd")}`):($e.dateFrom&&(J=J.set("filter.LessonDateTimeFrom",`>${(0,d.Z)((0,L.Z)($e.dateFrom,1),"yyyy-MM-dd")}`)),$e.dateTo&&(J=J.set("filter.LessonDateTimeTo",`<${(0,d.Z)((0,h.Z)($e.dateTo,1),"yyyy-MM-dd")}`))),$e.confirmationStates&&(J=J.set("filter.ConfirmationStateId",`;${$e.confirmationStates.join(";")}`)),$e.incidentTypes&&(J=J.set("filter.TypeRef",`;${$e.incidentTypes.join(";")}`)),$e.presenceTypes&&(J=J.set("filter.TypeRef",`;${$e.presenceTypes.join(";")}`)),$e.incidentTypes&&$e.presenceTypes&&(J=J.set("filter.TypeRef",`;${$e.presenceTypes.join(";")};${$e.incidentTypes.join(";")}`)),this.http.get(`${this.baseUrl}/`,{params:ye(Ee,this.settings.paginationLimit,J),headers:ce(),observe:"response"}).pipe(Se(q))}hasLessonsLessonTeacher(){const $e=(new t.LE).set("fields","Id");return this.http.get(`${this.baseUrl}/`,{params:ye(0,1,$e),headers:{"X-Role-Restriction":"LessonTeacherRole"}}).pipe((0,P.w)((0,k.Y0)(this.lessonPresenceIdCodec)),(0,B.U)(Ee=>Ee.length>0))}checkableAbsencesCount(){return this.http.get(`${this.baseUrl}/`,{headers:{"X-Role-Restriction":"LessonTeacherRole"},params:{"filter.ConfirmationStateId":`;${this.settings.checkableAbsenceStateId}`,fields:"Id,ConfirmationStateId"}}).pipe((0,P.w)((0,k.Y0)(this.lessonPresenceIdCodec)),(0,B.U)($e=>$e.length))}getListOfUnconfirmedLessonTeacher($e){return this.getList({headers:{"X-Role-Restriction":"LessonTeacherRole"},params:{...$e,"filter.ConfirmationStateId":`=${this.settings.unconfirmedAbsenceStateId}`,"filter.HasStudyCourseConfirmationCode":"=false"}})}getListOfUnconfirmedClassTeacher($e){return this.getList({headers:{"X-Role-Restriction":"ClassTeacherRole"},params:{...$e,"filter.ConfirmationStateId":`=${this.settings.unconfirmedAbsenceStateId}`,"filter.HasStudyCourseConfirmationCode":"=true"}})}getListOfUnconfirmedAbsenceAdministrator($e){return this.getList({headers:{"X-Role-Restriction":"AbsenceAdministratorRole"},params:{...$e,"filter.ConfirmationStateId":`=${this.settings.unconfirmedAbsenceStateId}`}})}static#e=this.\u0275fac=function(Ee){return new(Ee||qe)(be.LFG(t.eN),be.LFG(f.L6),be.LFG(ke.V))};static#t=this.\u0275prov=be.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();function rt(qe,_t=new t.LE){return qe.reduce(($e,[Ee,Ze])=>Ee&&Ze?$e.set(`filter.${Ze}`,`=${Ee}`):$e,_t)}},6023:(Pe,V,a)=>{"use strict";a.d(V,{O:()=>h});var t=a(7398),d=a(4141),w=a(5879),L=a(9862);let h=(()=>{class O{constructor(F,P){this.http=F,this.settings=P}editLessonPresences(F,P,B,$,f){const j={LessonIds:F,PersonIds:P};return void 0!==B&&(j.PresenceTypeId=B),void 0!==$&&(j.ConfirmationValue=$),this.http.put(`${this.settings.apiUrl}/LessonPresences/Edit`,j,{params:f}).pipe((0,t.U)(()=>{}))}removeLessonPresences(F,P,B){return this.http.put(`${this.settings.apiUrl}/LessonPresences/Reset`,{LessonIds:F,PersonIds:P,WithComment:!0},{params:B}).pipe((0,t.U)(()=>{}))}confirmLessonPresences(F,P,B,$){return this.http.put(`${this.settings.apiUrl}/LessonAbsences/Confirm`,{LessonIds:F,PersonIds:P,AbsenceTypeId:B,ConfirmationValue:$}).pipe((0,t.U)(()=>{}))}static#e=this.\u0275fac=function(P){return new(P||O)(w.LFG(L.eN),w.LFG(d.L6))};static#t=this.\u0275prov=w.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"})}return O})()},3005:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>f});var t=a(8645),d=a(7),w=a(7328),L=a(6699),h=a(7921),O=a(7398),R=a(3997),F=a(4716),P=a(7105),B=a(5879);const $="default";let f=(()=>{class M{constructor(){this.action$=new t.x,this.loadingCounts$=(0,d.b)(this.action$.pipe((0,L.R)((ie,{action:k,context:Te})=>{switch(k){case"increment":return ie[Te]=(ie[Te]||0)+1,ie;case"decrement":return ie[Te]=Math.max(0,(ie[Te]||0)-1),ie;default:return ie}},{}),(0,h.O)({})),{connector:()=>new w.t(1)}),this.loading$=this.loading(),this.loadingCountsSub=this.loadingCounts$.connect()}ngOnDestroy(){this.loadingCountsSub.unsubscribe()}loading(ie=$){return this.loadingCounts$.pipe((0,O.U)(k=>k[ie]),(0,O.U)(j),(0,R.x)())}load(ie,k=$){return ie.pipe((0,P.Pl)(this.incrementLoadingCount(k)),(0,F.x)(this.decrementLoadingCount(k)))}incrementLoadingCount(ie){return()=>this.action$.next({action:"increment",context:ie})}decrementLoadingCount(ie){return()=>this.action$.next({action:"decrement",context:ie})}static#e=this.\u0275fac=function(k){return new(k||M)};static#t=this.\u0275prov=B.Yz7({token:M,factory:M.\u0275fac,providedIn:"root"})}return M})();function j(M){return 0!==(M||0)}},5258:(Pe,V,a)=>{"use strict";a.d(V,{J:()=>f});var t=a(4664),d=a(7398),w=a(8366),L=a(4141),h=a(754),O=a(8121);const R=h.dt({Id:h.pk,FormOfAddress:h.Z_,Nationality:(0,O.Wx)(h.Z_),AddressLine1:(0,O.Wx)(h.Z_),AddressLine2:(0,O.Wx)(h.Z_),BillingAddress:(0,O.Wx)(h.Z_),Birthdate:(0,O.Wx)(O.L9),CorrespondenceAddress:(0,O.Wx)(h.Z_),DisplayEmail:(0,O.Wx)(h.Z_),Email:(0,O.wS)(h.Z_),Email2:(0,O.wS)(h.Z_),FirstName:(0,O.Wx)(h.Z_),Gender:(0,O.Wx)(h.G0([h.i0("M"),h.i0("F"),h.i0("X")])),HomeTown:(0,O.Wx)(h.Z_),LastName:(0,O.Wx)(h.Z_),FullName:(0,O.Wx)(h.Z_),Location:(0,O.Wx)(h.Z_),MiddleName:(0,O.Wx)(h.Z_),NativeLanguage:(0,O.Wx)(h.Z_),PhoneMobile:(0,O.Wx)(h.Z_),PhonePrivate:(0,O.Wx)(h.Z_),PhoneBusiness:(0,O.wS)(h.Z_),SocialSecurityNumber:(0,O.Wx)(h.Z_),StayPermit:(0,O.Wx)(h.pk),StayPermitExpiry:(0,O.Wx)(O.L9),Zip:(0,O.Wx)(h.Z_)});var F=a(275),P=a(7470),B=a(5879),$=a(9862);let f=(()=>{class j extends w.v{constructor(q,ie){super(q,ie,R,"Persons"),this.personEmailCodec=h.dt((0,P.e)(this.codec.props,["Email","FormOfAddress"]))}getListForIds(q){return this.getList({params:{"filter.Id":`;${q.join(";")}`}})}getMyself(){return this.http.get(`${this.baseUrl}/me`).pipe((0,t.w)((0,F.Jx)(this.codec)))}getByIdWithEmailInfos(q){return this.http.get(`${this.baseUrl}/`,{params:{"filter.Id=":q.toString(),fields:["FormOfAddress","Email"].join(",")}}).pipe((0,t.w)((0,F.Y0)(this.personEmailCodec)),(0,d.U)(ie=>ie[0]))}update(q,ie,k,Te){return this.http.put(`${this.baseUrl}/${q}`,{PhonePrivate:ie,PhoneMobile:k,Email2:Te}).pipe((0,d.U)(()=>{}))}static#e=this.\u0275fac=function(ie){return new(ie||j)(B.LFG($.eN),B.LFG(L.L6))};static#t=this.\u0275prov=B.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"})}return j})()},905:(Pe,V,a)=>{"use strict";a.d(V,{c:()=>M});var t=a(7081),d=a(7398),w=a(7921),L=a(3997),h=a(4141),O=a(7749),R=a(5879),F=a(8366),P=a(754),B=a(8121);const $=P.dt({Id:P.pk,Active:P.O7,Designation:(0,B.Wx)(P.Z_),IsAbsence:P.O7,IsComment:P.O7,IsDispensation:P.O7,IsIncident:P.O7,IsHalfDay:P.O7,NeedsConfirmation:P.O7,Sort:P.pk});var f=a(9862);let j=(()=>{class q extends F.v{constructor(k,Te){super(k,Te,$,"PresenceTypes")}static#e=this.\u0275fac=function(Te){return new(Te||q)(R.LFG(f.eN),R.LFG(h.L6))};static#t=this.\u0275prov=R.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"})}return q})(),M=(()=>{class q{constructor(k,Te){this.restService=k,this.settings=Te,this.presenceTypes$=this.loadPresenceTypes().pipe((0,t.d)(1)),this.activePresenceTypes$=this.presenceTypes$.pipe((0,d.U)(this.filterActiveTypes.bind(this)),(0,t.d)(1)),this.confirmationTypes$=this.presenceTypes$.pipe((0,d.U)(this.filterConfirmationTypes.bind(this)),(0,t.d)(1)),this.incidentTypes$=this.presenceTypes$.pipe((0,d.U)(this.filterIncidentTypes.bind(this)),(0,t.d)(1)),this.displayedTypes$=this.presenceTypes$.pipe((0,d.U)(this.filterDisplayedTypes.bind(this)),(0,t.d)(1)),this.halfDayActive$=this.presenceTypes$.pipe((0,d.U)(this.isHalfDayActive.bind(this)),(0,w.O)(!1),(0,L.x)(),(0,t.d)(1))}getPresenceType(k){return this.presenceTypes$.pipe((0,d.U)(Te=>{const Se=Te.find(ye=>ye.Id===k);if(!Se)throw new Error("presence type not found");return Se}))}loadPresenceTypes(){return this.restService.getList().pipe((0,d.U)(O.KV))}filterActiveTypes(k){return k.filter(Te=>Te.Active)}filterConfirmationTypes(k){return k.filter(Te=>Te.NeedsConfirmation&&Te.Active&&Te.Id!==this.settings.absencePresenceTypeId)}filterIncidentTypes(k){return k.filter(Te=>Te.IsIncident&&Te.Active)}filterDisplayedTypes(k){return k.filter(Te=>Te.Id!==this.settings.absencePresenceTypeId)}isHalfDayActive(k){return!!k.find(Te=>Te.Id===this.settings.halfDayPresenceTypeId)?.Active}static#e=this.\u0275fac=function(Te){return new(Te||q)(R.LFG(j),R.LFG(h.L6))};static#t=this.\u0275prov=R.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"})}return q})()},6016:(Pe,V,a)=>{"use strict";a.d(V,{F:()=>ie});var t=a(8645),d=a(7),w=a(7328),L=a(7081),h=a(7398),O=a(7921),R=a(3997),F=a(2181),P=a(4664),B=a(4141),$=a(3942),f=a(5879),j=a(8173),M=a(3219),q=a(9862);let ie=(()=>{class k{constructor(Se,ye,ce,_e){this.settings=Se,this.storageService=ye,this.subscriptionService=ce,this.http=_e,this.studentConfirmationAvailabilityRecordIds$=new t.x,this.personMasterDataAvailability$=this.loadReportAvailability("Person",this.settings.personMasterDataReportId,[Number(this.storageService.getPayload()?.id_person)]).pipe((0,L.d)(1)),this.studentConfirmationAvailability$=this.loadReportAvailabilityByAsyncRecordIds("Praesenzinformation",this.settings.studentConfirmationReportId,this.studentConfirmationAvailabilityRecordIds$),this.studentConfirmationAvailabilitySub=this.studentConfirmationAvailability$.connect()}ngOnDestroy(){this.studentConfirmationAvailabilitySub.unsubscribe()}getPersonMasterDataUrl(Se){return this.getReportUrl("Person",this.settings.personMasterDataReportId,[Se])}getStudentConfirmationUrl(Se){return this.getReportUrl("Praesenzinformation",this.settings.studentConfirmationReportId,Se)}getEvaluateAbsencesUrl(Se){return this.getReportUrl("Praesenzinformation",this.settings.evaluateAbsencesReportId,Se)}getEventReportUrl(Se){return this.getReportUrl("Anlass",this.settings.testsByCourseReportId,[Se])}getSubscriptionReportUrl(Se,ye){return`${this.settings.apiUrl}/Files/CrystalReports/Anmeldung/${Se}?ids=${ye}&token=${this.storageService.getAccessToken()}`}setStudentConfirmationAvailabilityRecordIds(Se){this.studentConfirmationAvailabilityRecordIds$.next(Se)}getReportUrl(Se,ye,ce){return`${this.settings.apiUrl}/Files/CrystalReports/${Se}/${ye}?ids=${ce.join(",")}&token=${this.storageService.getAccessToken()}`}loadReportAvailability(Se,ye,ce){return this.http.get(`${this.settings.apiUrl}/CrystalReports/AvailableReports/${Se}?ids=${ye}&keys=${ce.join(",")}`).pipe((0,h.U)($.Nf),(0,O.O)(!1),(0,R.x)())}loadReportAvailabilityByAsyncRecordIds(Se,ye,ce){return(0,d.b)(ce.pipe((0,F.h)((_e,ve)=>0===ve),(0,P.w)(_e=>this.loadReportAvailability(Se,ye,_e))),{connector:()=>new w.t(1)})}static#e=this.\u0275fac=function(ye){return new(ye||k)(f.LFG(B.L6),f.LFG(j.V),f.LFG(M.o),f.LFG(q.eN))};static#t=this.\u0275prov=f.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})()},8366:(Pe,V,a)=>{"use strict";a.d(V,{v:()=>w});var t=a(4664),d=a(275);class w{constructor(h,O,R,F){this.http=h,this.settings=O,this.codec=R,this.resourcePath=F}get(h,O){return this.http.get(`${this.baseUrl}/${h}`,O).pipe((0,t.w)((0,d.Jx)(this.codec)))}getList(h){return this.http.get(`${this.baseUrl}/`,h).pipe((0,t.w)((0,d.Y0)(this.codec)))}get baseUrl(){return`${this.settings.apiUrl}/${this.resourcePath}`}}},6561:(Pe,V,a)=>{"use strict";a.d(V,{z:()=>B});var t=a(8645),d=a(7),w=a(7328),L=a(6699),h=a(7921),O=a(7398),R=a(3997),F=a(5879),P=function($){return $.ToggleSelection="TOGGLE",$.ClearSelection="CLEAR",$}(P||{});let B=(()=>{class ${constructor(){this.action$=new t.x,this.selection$=(0,d.b)(this.action$.pipe((0,L.R)(this.reduceSelection.bind(this),[]),(0,h.O)([])),{connector:()=>new w.t(1)}),this.selectionSub=this.selection$.connect()}ngOnDestroy(){this.selectionSub.unsubscribe()}toggle(j){this.action$.next({type:P.ToggleSelection,payload:j})}clear(j=null){this.action$.next({type:P.ClearSelection,payload:j})}isSelected$(j){return this.selection$.pipe((0,O.U)(M=>M.includes(j)),(0,R.x)())}reduceSelection(j,M){switch(M.type){case P.ToggleSelection:return j.includes(M.payload)?j.filter(q=>q!==M.payload):[...j,M.payload];case P.ClearSelection:return M.payload||[];default:return j}}static#e=this.\u0275fac=function(M){return new(M||$)};static#t=this.\u0275prov=F.Yz7({token:$,factory:$.\u0275fac})}return $})()},8173:(Pe,V,a)=>{"use strict";a.d(V,{V:()=>O});var t=a(5879);let O=(()=>{class R{getLanguage(){return this.getValue("uiCulture")}getAccessToken(){const P=this.getValue("CLX.LoginToken");return P?P.replace(/^"+|"+$/g,""):null}getRefreshToken(){return this.getValue("CLX.RefreshToken")}getTokenExpire(){return this.getValue("CLX.TokenExpire")}getPayload(){const P=this.getAccessToken(),B=P?P.split(".")[1]:null,$=B?B.replace("-","+").replace("_","/"):null,f=JSON.parse(window.atob($||""));return f.roles="holder_roles"in f?f.holder_roles:f.roles,f}getValue(P){return sessionStorage.getItem(P)||localStorage.getItem(P)}static#e=this.\u0275fac=function(B){return new(B||R)};static#t=this.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"})}return R})()},7909:(Pe,V,a)=>{"use strict";a.d(V,{J:()=>_t});var t=a(2572),d=a(2096),w=a(4664),L=a(2181),h=a(7398),O=a(2769),R=a(1389),F=a(7105),P=a(3942),B=a(581),$=a(2816);function j($e,Ee){(0,$.Z)(2,arguments);var Ze=(0,B.Z)($e),J=(0,B.Z)(Ee),Q=Ze.getTime()-J.getTime();return Q<0?-1:Q>0?1:Q}var k=a(5879),Te=a(3779),Se=a(5258),ye=a(4141),ce=a(754),_e=a(8121);const ve=ce.dt({Email:(0,_e.Wx)(ce.Z_),Email2:(0,_e.Wx)(ce.Z_),PhoneBusiness:(0,_e.Wx)(ce.Z_),CompanyName:(0,_e.wS)(ce.Z_),CompanyNameAddition:(0,_e.wS)(ce.Z_),Firstname:(0,_e.Wx)(ce.Z_),Lastname:(0,_e.Wx)(ce.Z_),AddressLine1:(0,_e.wS)(ce.Z_),AddressLine2:(0,_e.wS)(ce.Z_),PostalCode:(0,_e.Wx)(ce.Z_),Location:(0,_e.Wx)(ce.Z_),Id:ce.pk});var xe=a(8366),be=a(9862);let ke=(()=>{class $e extends xe.v{constructor(Ze,J){super(Ze,J,ve,"ApprenticeshipManagers")}static#e=this.\u0275fac=function(J){return new(J||$e)(k.LFG(be.eN),k.LFG(ye.L6))};static#t=this.\u0275prov=k.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"})}return $e})();const vt=ce.dt({Email:(0,_e.Wx)(ce.Z_),Email2:(0,_e.Wx)(ce.Z_),PhoneBusiness:(0,_e.Wx)(ce.Z_),PhoneMobile:(0,_e.Wx)(ce.Z_),Firstname:(0,_e.Wx)(ce.Z_),Lastname:(0,_e.Wx)(ce.Z_),Id:ce.pk});let rt=(()=>{class $e extends xe.v{constructor(Ze,J){super(Ze,J,vt,"JobTrainers")}static#e=this.\u0275fac=function(J){return new(J||$e)(k.LFG(be.eN),k.LFG(ye.L6))};static#t=this.\u0275prov=k.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"})}return $e})();var Mt=a(3005),qe=a(5001);let _t=(()=>{class $e{constructor(Ze,J,Q,oe,se,ae){this.studentService=Ze,this.personsService=J,this.apprenticeshipManagersService=Q,this.jobTrainersService=oe,this.loadingService=se,this.dropDownItemsService=ae,this.loading$=this.loadingService.loading$}getProfile(Ze){return this.loadingService.load((0,t.a)([this.loadStudent(Ze),this.loadLegalRepresentatives(Ze),this.loadApprenticeshipContracts(Ze)]).pipe((0,w.w)((0,R.h)(this.mapToProfile.bind(this)))))}getMyProfile(){return this.loadingService.load(this.personsService.getMyself().pipe((0,w.w)(Ze=>(0,t.a)([(0,d.of)(Ze),this.loadLegalRepresentatives(Ze.Id),this.loadApprenticeshipContracts(Ze.Id),this.loadStayPermitValue(Ze.StayPermit)]))).pipe((0,w.w)((0,R.h)(this.mapToProfile.bind(this))),(0,L.h)(P.Nf)))}loadStudent(Ze){return this.studentService.get(Ze,{params:(0,O.I)({disableErrorHandlingForStatus:[404]})}).pipe((0,F.Qx)())}loadLegalRepresentatives(Ze){return this.studentService.getLegalRepresentatives(Ze)}loadApprenticeshipContracts(Ze){return this.studentService.getCurrentApprenticeshipContracts(Ze,(0,O.I)({disableErrorHandlingForStatus:[404]})).pipe((0,F.Qx)([]))}loadStayPermitValue(Ze){return this.dropDownItemsService.getStayPermits().pipe((0,h.U)(J=>J.find(Q=>Q.Key===Ze)?.Value||null))}mapToProfile(Ze,J,Q,oe=null){return Ze?(J=this.getRelevantLegalRepresentatives(Ze,J),(0,t.a)([this.loadLegalRepresentativPersons(J),this.loadJobTrainers(Q),this.loadApprenticeshipManagers(Q)]).pipe((0,h.U)(([se,ae,fe])=>this.createProfile(Ze,oe,J,se,Q,fe,ae)))):(0,d.of)(null)}loadLegalRepresentativPersons(Ze){return 0===Ze.length?(0,d.of)([]):this.personsService.getListForIds(Ze.map(J=>J.RepresentativeId))}loadJobTrainers(Ze){const J=Ze.map(Q=>Q.JobTrainer).filter(Q=>"number"==typeof Q);return 0===J.length?(0,d.of)([]):(0,t.a)(J.map(Q=>this.jobTrainersService.get(Q)))}loadApprenticeshipManagers(Ze){const J=Ze.map(Q=>Q.ApprenticeshipManagerId);return 0===J.length?(0,d.of)([]):(0,t.a)(J.map(Q=>this.apprenticeshipManagersService.get(Q)))}createProfile(Ze,J,Q,oe,se,ae,fe){return{student:Ze,stayPermitValue:J||void 0,legalRepresentativePersons:Q.map(je=>this.findPerson(je.RepresentativeId,oe)).filter(P.Nf),apprenticeshipCompanies:se.map(je=>this.createApprenticeshipCompany(je,ae,fe))}}getRelevantLegalRepresentatives(Ze,J){const Q=function ie($e){return function M($e,Ee){(0,$.Z)(2,arguments);var Ze=(0,B.Z)($e),J=(0,B.Z)(Ee),Q=j(Ze,J),oe=Math.abs(function f($e,Ee){(0,$.Z)(2,arguments);var Ze=(0,B.Z)($e),J=(0,B.Z)(Ee);return Ze.getFullYear()-J.getFullYear()}(Ze,J));Ze.setFullYear(1584),J.setFullYear(1584);var se=j(Ze,J)===-Q,ae=Q*(oe-Number(se));return 0===ae?0:ae}(new Date,$e.Birthdate||new Date)>=18}(Ze);return J.filter(oe=>!Q||oe.RepresentativeAfterMajority)}createApprenticeshipCompany(Ze,J,Q){return{apprenticeshipContract:Ze,jobTrainer:this.findPerson(Ze.JobTrainer,Q),apprenticeshipManager:this.findPerson(Ze.ApprenticeshipManagerId,J)}}findPerson(Ze,J){return Ze&&J.find(Q=>Q.Id===Ze)||null}static#e=this.\u0275fac=function(J){return new(J||$e)(k.LFG(Te.l),k.LFG(Se.J),k.LFG(ke),k.LFG(rt),k.LFG(Mt.b),k.LFG(qe.R))};static#t=this.\u0275prov=k.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"})}return $e})()},3779:(Pe,V,a)=>{"use strict";a.d(V,{l:()=>ie});var t=a(9862),d=a(4664),w=a(4141),L=a(7346),h=a(275),O=a(4717),R=a(754);const F=R.dt({Id:R.pk,RepresentativeId:R.pk,RepresentativeAfterMajority:R.O7});var P=a(8121);const B=R.dt({Id:R.pk,JobTrainer:(0,P.Wx)(R.pk),ApprenticeshipManagerId:R.pk,ContractDateFrom:(0,P.Wx)(P.L9),ContractDateTo:(0,P.Wx)(P.L9)}),$=R.dt({Id:R.pk,From:P.L9,To:P.L9,EventId:R.pk,EventNumber:R.Z_,EventDesignation:R.Z_,EventLocation:(0,P.Wx)(R.Z_),EventManagerInformation:R.Z_});var f=a(8952);const j=R.dt({LessonRef:P.s3,StudentRef:P.s3,TypeRef:P.s3,Comment:(0,P.Wx)(R.Z_),StudentFullName:R.Z_,Type:(0,P.Wx)(R.Z_),RegistrationId:R.pk,HRef:R.Z_}),M=R.dt({Id:R.Z_,LessonRef:P.s3,StudentRef:P.s3,TypeRef:P.s3,Type:(0,P.Wx)(R.Z_),Comment:(0,P.Wx)(R.Z_),StudentFullName:R.Z_,HRef:R.Z_});var q=a(5879);let ie=(()=>{class k extends L.r{constructor(Se,ye){super(Se,ye,O.Z,"Students","FullName")}getLegalRepresentatives(Se,ye){return this.http.get(`${this.baseUrl}/${Se}/LegalRepresentatives`,{params:ye}).pipe((0,d.w)((0,h.Y0)(F)))}getCurrentApprenticeshipContracts(Se,ye){return this.http.get(`${this.baseUrl}/${Se}/ApprenticeshipContracts/Current`,{params:ye}).pipe((0,d.w)((0,h.Y0)(B)))}getLessonAbsences(Se,ye){return this.http.get(`${this.baseUrl}/${Se}/LessonAbsences`,{params:ye}).pipe((0,d.w)((0,h.Y0)(f.C)))}getLessonIncidents(Se,ye){return this.http.get(`${this.baseUrl}/${Se}/LessonIncidents`,{params:ye}).pipe((0,d.w)((0,h.Y0)(j)))}getLessonDispensations(Se,ye){return this.http.get(`${this.baseUrl}/${Se}/LessonDispensations`,{params:ye}).pipe((0,d.w)((0,h.Y0)(M)))}getTimetableEntries(Se,ye={}){return ye instanceof t.LE||(ye=new t.LE({fromObject:ye})),ye=ye.set("fields","Id,From,To,EventId,EventNumber,EventDesignation,EventLocation,EventManagerInformation"),this.http.get(`${this.baseUrl}/${Se}/TimetableEntries/CurrentSemester`,{params:ye}).pipe((0,d.w)((0,h.Y0)($)))}static#e=this.\u0275fac=function(ye){return new(ye||k)(q.LFG(t.eN),q.LFG(w.L6))};static#t=this.\u0275prov=q.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})()},3219:(Pe,V,a)=>{"use strict";a.d(V,{o:()=>F});var t=a(4664),d=a(4141),w=a(6514),L=a(275),h=a(8366),O=a(5879),R=a(9862);let F=(()=>{class P extends h.v{constructor($,f){super($,f,w.t,"Subscriptions")}getIdSubscriptionsByStudentAndCourse($,f){return this.http.get(`${this.settings.apiUrl}/Subscriptions/?filter.PersonId==${$}&filter.EventId=;${f}`).pipe((0,t.w)((0,L.Y0)(w.Y)))}static#e=this.\u0275fac=function(f){return new(f||P)(O.LFG(R.eN),O.LFG(d.L6))};static#t=this.\u0275prov=O.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})()},6869:(Pe,V,a)=>{"use strict";a.d(V,{k:()=>h});var t=a(8658),d=a(5619),w=a(8180),L=a(5879);let h=(()=>{class O{constructor(){this.toastsSubject=new d.X([]),this.toasts$=this.toastsSubject.asObservable()}success(F,P){this.addUnique({message:F,header:P,classname:"bg-success text-light",icon:"check_circle"})}warning(F,P){this.addUnique({message:F,header:P,classname:"bg-warning",icon:"help"})}error(F,P){this.addUnique({message:F,header:P,classname:"bg-danger text-light",icon:"cancel"})}remove(F){this.updateToasts(P=>P.filter(B=>!(0,t.Z)(B,F)))}addUnique(F){this.updateToasts(P=>{if(!this.exists(P,F))return[...P,F]})}exists(F,P){return!!F.find(B=>B.message===P.message&&B.header===P.header)}updateToasts(F){this.toasts$.pipe((0,w.q)(1)).subscribe(P=>{const B=F(P);B&&this.toastsSubject.next(B)})}static#e=this.\u0275fac=function(P){return new(P||O)};static#t=this.\u0275prov=L.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"})}return O})()},7346:(Pe,V,a)=>{"use strict";a.d(V,{r:()=>F});var t=a(4664),d=a(7398),w=a(754),L=a(7470),h=a(275),O=a(8366);class F extends O.v{constructor(B,$,f,j,M,q="Id"){super(B,$,f,j),this.labelAttr=M,this.keyAttr=q,this.typeaheadCodec=w.dt((0,L.e)(this.codec.props,[this.keyAttr,this.labelAttr]))}getTypeaheadItems(B,$){const f={params:{fields:[this.keyAttr,this.labelAttr].join(","),[`filter.${this.labelAttr}`]:`~*${B}*`}};return this.http.get(`${this.baseUrl}/`,$?this.mergeHttpParams(f,$):f).pipe((0,t.w)((0,h.Y0)(this.typeaheadCodec)),(0,d.U)(j=>j.map(M=>({Key:M[this.keyAttr],Value:M[this.labelAttr]}))))}getTypeaheadItemByKey(B){return this.http.get(`${this.baseUrl}/${B}`,{params:{fields:[this.keyAttr,this.labelAttr].join(",")}}).pipe((0,t.w)((0,h.Jx)(this.typeaheadCodec)),(0,d.U)($=>({Key:$[this.keyAttr],Value:$[this.labelAttr]})))}mergeHttpParams(B,$){const f={params:{...B.params,...$.params}};return $.params.fields&&(f.params.fields=B.params.fields.concat(",",$.params.fields)),f}}},7938:(Pe,V,a)=>{"use strict";a.d(V,{s:()=>_e});var t=a(8645),d=a(7921),w=a(3620),L=a(4664),h=a(7398),O=a(7081),R=a(9397),F=a(3786),P=a(275),B=a(7105),$=a(5879),f=a(8366),j=a(4141),M=a(9862);let q=(()=>{class ve extends f.v{constructor(be,ke){super(be,ke,F.PG,"UserSettings")}getUserSettingsCst(be){return this.http.get(`${this.baseUrl}/Cst`,{params:be}).pipe((0,L.w)((0,P.Jx)(this.codec)))}updateUserSettingsCst(be){return this.http.patch(`${this.baseUrl}/Cst`,be)}getAccessInfo(){return this.http.get(`${this.baseUrl}/?expand=AccessInfo`).pipe((0,L.w)((0,P.Jx)(F.Az)),(0,h.U)(({AccessInfo:be})=>be))}static#e=this.\u0275fac=function(ke){return new(ke||ve)($.LFG(M.eN),$.LFG(j.L6))};static#t=this.\u0275prov=$.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"})}return ve})();const k="presenceControlViewMode",Te="presenceControlGroupView",Se="notification",ye="notificationTypesInactive",ce="notificationData";let _e=(()=>{class ve{constructor(be){this.settingsRestService=be,this.refetch$=new t.x,this.settings$=this.refetch$.pipe((0,d.O)(null),(0,w.b)(100),(0,L.w)(()=>this.settingsRestService.getUserSettingsCst()),(0,h.U)(ke=>ke.Settings),(0,O.d)(1)),this.accessInfo$=this.settingsRestService.getAccessInfo().pipe((0,O.d)(1))}refetch(){this.refetch$.next()}getSetting(be){return this.settings$.pipe((0,h.U)(ke=>ke.find(vt=>vt.Key===be)?.Value??null))}saveSetting(be,ke){return this.settingsRestService.updateUserSettingsCst(this.buildSettings(be,ke)).pipe((0,R.b)(()=>this.refetch$.next()))}getPresenceControlViewMode(){return this.getSetting(k).pipe((0,B.LS)('{"presenceControl":"grid"}'),(0,L.w)((0,P.Jx)(F.iu)),(0,h.U)(({presenceControl:be})=>be))}savePresenceControlViewMode(be){return this.saveSetting(k,F.iu.encode({presenceControl:be}))}getPresenceControlGroupView(){return this.getSetting(Te).pipe((0,B.LS)("[]"),(0,L.w)((0,P.Jx)(F.Sx)))}savePresenceControlGroupView(be){return this.saveSetting(Te,F.Sx.encode(be))}getNotificationChannels(){return this.getSetting(Se).pipe((0,B.LS)("{}"),(0,L.w)((0,P.Jx)(F.b7)))}saveNotificationChannels(be){return this.saveSetting(Se,F.b7.encode(be))}getNotificationTypesInactive(){return this.getSetting(ye).pipe((0,B.LS)(""),(0,L.w)((0,P.Jx)(F.k_)))}saveNotificationTypesInactive(be){return this.saveSetting(ye,F.k_.encode(be))}getNotificationData(){return this.getSetting(ce).pipe((0,B.LS)("[]"),(0,L.w)((0,P.Jx)(F.zn)))}saveNotificationData(be){return this.saveSetting(ce,F.zn.encode(be))}getRolesAndPermissions(){return this.accessInfo$.pipe((0,h.U)(({Roles:be,Permissions:ke})=>[...be,...ke]),(0,d.O)(null))}buildSettings(be,ke){return{Id:"Cst",Settings:[{Key:be,Value:ke}]}}static#e=this.\u0275fac=function(ke){return new(ke||ve)($.LFG(q))};static#t=this.\u0275prov=$.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"})}return ve})()},6486:(Pe,V,a)=>{"use strict";a.d(V,{m:()=>Ri});var t=a(6814),d=a(9862),w=a(6223),L=a(1523),h=a(253),O=a(9515),P=(a(2628),a(59),a(6567)),B=a(6283),$=a(4141),f=a(5879),j=a(813);let M=(()=>{class ht{constructor(lt,Ot){this.auth=lt,this.settings=Ot}intercept(lt,Ot){if(lt.url.startsWith(this.settings.apiUrl)&&this.auth.accessToken){const qt=lt.headers.set("CLX-Authorization",`token_type=urn:ietf:params:oauth:token-type:jwt-bearer, access_token=${this.auth.accessToken}`);return Ot.handle(lt.clone({headers:qt}))}return Ot.handle(lt)}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)(f.LFG(j.e),f.LFG($.L6))};static#t=this.\u0275prov=f.Yz7({token:ht,factory:ht.\u0275fac})}return ht})();var q=a(2769),ie=a(2394);const ye=function Se(ht,pn,lt){var Ot=ht.length;return lt=void 0===lt?Ot:lt,!pn&<>=Ot?ht:function k(ht,pn,lt){var Ot=-1,qt=ht.length;pn<0&&(pn=-pn>qt?0:qt+pn),(lt=lt>qt?qt:lt)<0&&(lt+=qt),qt=pn>lt?0:lt-pn>>>0,pn>>>=0;for(var Kr=Array(qt);++Ot{class ht{constructor(lt,Ot){this.router=lt,this.settings=Ot}intercept(lt,Ot){if(!lt.headers.has("X-Role-Restriction")&&this.settings.headerRoleRestriction){const qt=this.getCurrentModuleName();if(qt&&this.settings.headerRoleRestriction[qt]){const Kr=lt.headers.set("X-Role-Restriction",this.settings.headerRoleRestriction[qt]);return Ot.handle(lt.clone({headers:Kr}))}}return Ot.handle(lt)}getCurrentModuleName(){const lt=this.router.url?(0,Ae.D9)(this.router.url):null;return lt?Oe(lt):null}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)(f.LFG(L.F0),f.LFG($.L6))};static#t=this.\u0275prov=f.Yz7({token:ht,factory:ht.\u0275fac})}return ht})();a(2015),a(1133);var vn=a(4229),ir=(a(9608),a(5582),a(8898)),Wi=(a(1442),a(9949),a(8075),a(3036),a(917),a(9753),a(238),a(6651)),jn=(a(4703),a(9410),a(500),a(6001),a(363));let vr=(()=>{class ht{constructor(lt){this.translate=lt}transform(lt){return`${this.translate.instant("tests.factor")} ${lt.Weight} (${lt.WeightPercent}%)`}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)(f.Y36(O.sK,16))};static#t=this.\u0275pipe=f.Yjl({name:"erzTestWeight",type:ht,pure:!0})}return ht})();var Sr=a(7483);let vi=(()=>{class ht{constructor(lt){this.translate=lt}transform(lt,Ot,qt="tests.points"){return lt.IsPointGrading&<.IsPublished?`${(0,Sr.W3)(Ot,lt)?.Points||"\u2013"} / ${lt.MaxPointsAdjusted||lt.MaxPoints} ${this.translate.instant(qt)}`:""}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)(f.Y36(O.sK,16))};static#t=this.\u0275pipe=f.Yjl({name:"erzTestPoints",type:ht,pure:!0})}return ht})();a(9707),a(3388),a(8705);var ui=a(5619);function ys(ht,pn,lt){return pn?pn.Grade:function Ui(ht,pn){return pn?.Grades.find(lt=>lt.Id===ht?.GradeId)?.Designation}(ht,lt)||ht?.GradeValue}let xr=(()=>{class ht{constructor(){}getGradeForStudent(){return ys(this.grading,this.finalGrade,this.gradingScale)}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)};static#t=this.\u0275cmp=f.Xpm({type:ht,selectors:[["erz-dossier-grades-final-grade"]],inputs:{finalGrade:"finalGrade",grading:"grading",gradingScale:"gradingScale",average:"average"},features:[f._Bn([t.JJ])],decls:14,vars:11,consts:[[1,"final-entry"],["data-testid","final-grade"],["data-testid","average-test-results"]],template:function(Ot,qt){1&Ot&&(f.TgZ(0,"div",0)(1,"div"),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"div",1)(5,"span"),f._uU(6),f.qZA()(),f.TgZ(7,"div"),f._uU(8),f.ALo(9,"translate"),f.qZA(),f.TgZ(10,"div",2)(11,"span"),f._uU(12),f.ALo(13,"decimalOrDash"),f.qZA()()()),2&Ot&&(f.xp6(2),f.Oqu(f.lcZ(3,4,"dossier.grade")),f.xp6(4),f.Oqu(qt.getGradeForStudent()||"\u2013"),f.xp6(2),f.Oqu(f.lcZ(9,6,"dossier.average")),f.xp6(4),f.Oqu(f.xi3(13,8,qt.average,"1-3")))},dependencies:[O.X$,Wi.fY],styles:[".final-entry[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:repeat(2,1fr)}span[_ngcontent-%COMP%]{margin-left:2em}"]})}return ht})();var Kt=a(7328),Mn=a(7398),hr=a(8645),$r=a(3620),bi=a(2181),Nr=a(9773),ze=a(1074);const Ve=function(ht){return{maxPoints:ht}};function ct(ht,pn){if(1&ht&&(f.TgZ(0,"div",15),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ht){const lt=f.oxw(2);f.xp6(1),f.hij(" ",f.xi3(2,1,"global.validation-errors.invalidPoints",f.VKq(4,Ve,lt.maxPoints))," ")}}function Yt(ht,pn){if(1&ht){const lt=f.EpF();f.TgZ(0,"div",10)(1,"label",11),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"div",5)(5,"input",12,13),f.NdJ("input",function(){f.CHM(lt);const qt=f.MAs(6),Kr=f.oxw();return f.KtG(Kr.onPointsChange(qt.value))}),f.qZA()(),f.YNc(7,ct,3,6,"div",14),f.qZA()}if(2&ht){const lt=f.oxw();f.xp6(2),f.Oqu(f.lcZ(3,8,"dossier.dialog.points")),f.xp6(2),f.ekj("is-invalid",lt.pointsInput.errors),f.xp6(1),f.ekj("is-invalid",lt.pointsInput.errors),f.s9C("max",lt.maxPoints),f.Q6J("formControl",lt.pointsInput),f.xp6(2),f.Q6J("ngIf",lt.pointsInput.errors)}}let gr=(()=>{class ht{constructor(lt,Ot){this.activeModal=lt,this.courseService=Ot,this.maxPoints=0,this.gradeSubject$=new hr.x,this.pointsSubject$=new hr.x,this.closeButtonDisabled$=new ui.X(!1),this.gradingScaleDisabled$=new ui.X(!0),this.grade$=this.gradeSubject$.pipe((0,$r.b)(500)),this.points$=this.pointsSubject$.pipe((0,$r.b)(500),(0,bi.h)(this.isValid.bind(this)),(0,Mn.U)(Number)),this.destroy$=new hr.x}ngOnInit(){this.maxPoints=(0,Sr.Re)(this.test),this.pointsInput=new w.p4({value:this.points,disabled:!1},[w.kI.min(0),w.kI.pattern("[0-9]+([\\.][0-9]+)?"),this.maxPointValidator()]),this.gradingScaleDisabled$.next(this.test.IsPointGrading&&this.points>0),this.grade$.pipe((0,Nr.R)(this.destroy$),(0,Mn.U)(this.buildRuequestBodyForGradeChange.bind(this))).subscribe(lt=>this.updateTestResult(lt)),this.points$.pipe((0,Nr.R)(this.destroy$),(0,Mn.U)(this.buildRequestBodyPointsChange.bind(this))).subscribe(lt=>this.updateTestResult(lt))}onGradeChange(lt){this.gradeSubject$.next(lt)}onPointsChange(lt){this.pointsSubject$.next(lt),this.gradingScaleDisabled$.next(lt.length>0)}get updatedTestResult(){return this.updatedTest?.TestResults[0]}updateTestResult(lt){this.closeButtonDisabled$.next(!0),this.courseService.updateTestResult(this.test.CourseId,lt).subscribe(Ot=>{this.gradeId=Ot.body.TestResults[0]?.GradeId,this.updatedTest=Ot.body,this.closeButtonDisabled$.next(!1)})}buildRuequestBodyForGradeChange(lt){return{StudentIds:[this.studentId],TestId:this.test.Id,GradeId:lt}}buildRequestBodyPointsChange(lt){return{StudentIds:[this.studentId],TestId:this.test.Id,Points:lt}}isValid(lt){return""!==lt&&!isNaN(Number(lt))&&!(Number(lt)<0||Number(lt)>this.maxPoints)}maxPointValidator(){return lt=>Number(lt.value)>(0,Sr.Re)(this.test)?{customMax:!0}:null}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)(f.Y36(h.Kz),f.Y36(ze.s))};static#t=this.\u0275cmp=f.Xpm({type:ht,selectors:[["erz-dossier-grades-edit"]],inputs:{test:"test",gradeId:"gradeId",gradeOptions:"gradeOptions",points:"points",studentId:"studentId"},decls:19,vars:20,consts:[[1,"modal-body"],[1,"mb-4"],["class","form-group row",4,"ngIf"],[1,"form-group","row","mt-2"],["for","grade",1,"col-6","col-form-label"],[1,"col-6"],["id","grade",3,"options","value","allowEmpty","disabled","valueChange"],[1,"text-muted","mt-4"],[1,"modal-footer"],["type","button",1,"btn","btn-primary",3,"disabled","click"],[1,"form-group","row"],["for","points",1,"col-6","col-form-label"],["id","points","type","number","step","0.01","min","0",1,"form-control",3,"max","formControl","input"],["pointInput",""],["class","invalid-feedback col-6 offset-6","data-testid","validation-error-message",4,"ngIf"],["data-testid","validation-error-message",1,"invalid-feedback","col-6","offset-6"]],template:function(Ot,qt){1&Ot&&(f.TgZ(0,"div",0)(1,"p",1),f._uU(2),f.qZA(),f.YNc(3,Yt,8,10,"div",2),f.TgZ(4,"div",3)(5,"label",4),f._uU(6),f.ALo(7,"translate"),f.qZA(),f.TgZ(8,"div",5)(9,"erz-select",6),f.NdJ("valueChange",function(ji){return qt.onGradeChange(ji)}),f.ALo(10,"async"),f.qZA()()(),f.TgZ(11,"p",7),f._uU(12),f.ALo(13,"translate"),f.qZA()(),f.TgZ(14,"div",8)(15,"button",9),f.NdJ("click",function(){return qt.activeModal.close(qt.updatedTestResult)}),f.ALo(16,"async"),f._uU(17),f.ALo(18,"translate"),f.qZA()()),2&Ot&&(f.xp6(2),f.Oqu(qt.test.Designation),f.xp6(1),f.Q6J("ngIf",qt.test.IsPointGrading),f.xp6(3),f.Oqu(f.lcZ(7,10,"dossier.dialog.grade")),f.xp6(3),f.Q6J("options",qt.gradeOptions)("value",qt.gradeId)("allowEmpty",!1)("disabled",f.lcZ(10,12,qt.gradingScaleDisabled$)),f.xp6(3),f.hij(" ",f.lcZ(13,14,qt.test.IsPointGrading?"dossier.dialog.hint.points":"dossier.dialog.hint.grade")," "),f.xp6(3),f.Q6J("disabled",f.lcZ(16,16,qt.closeButtonDisabled$)),f.xp6(2),f.hij(" ",f.lcZ(18,18,"dossier.dialog.close")," "))},dependencies:[t.O5,w.Fj,w.wV,w.JJ,w.qQ,w.Fd,w.oH,vn.H,t.Ov,O.X$]})}return ht})();var Si=a(8405);function Yn(ht,pn){if(1&ht){const lt=f.EpF();f.TgZ(0,"a",11),f.NdJ("click",function(){f.CHM(lt);const qt=f.oxw().erzLet,Kr=f.oxw();return f.KtG(Kr.editGrading(qt))}),f.TgZ(1,"i",12),f._uU(2,"edit"),f.qZA(),f.TgZ(3,"span",13),f._uU(4),f.ALo(5,"async"),f.qZA()()}if(2&ht){const lt=f.oxw(2);f.xp6(4),f.Oqu(f.lcZ(5,1,lt.grading$))}}function sr(ht,pn){if(1&ht&&(f.TgZ(0,"span",13),f._uU(1),f.ALo(2,"async"),f.qZA()),2&ht){const lt=f.oxw(2);f.xp6(1),f.Oqu(f.lcZ(2,1,lt.grading$))}}function Wr(ht,pn){if(1&ht&&(f.TgZ(0,"div",14),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ht){const lt=f.oxw().erzLet;f.xp6(1),f.hij(" ",f.lcZ(2,1,lt.IsPublished?"tests.published":"tests.not-published")," ")}}function Mi(ht,pn){if(1&ht&&(f.TgZ(0,"div",1)(1,"div",2),f._uU(2),f.qZA(),f.TgZ(3,"div",3),f._uU(4),f.ALo(5,"date"),f.qZA(),f.TgZ(6,"div",4),f.YNc(7,Yn,6,3,"a",5),f.YNc(8,sr,3,3,"ng-template",null,6,f.W1O),f.qZA(),f.TgZ(10,"div",7),f._uU(11),f.ALo(12,"erzTestWeight"),f.qZA(),f.TgZ(13,"div",8)(14,"span"),f._uU(15),f.ALo(16,"erzTestPoints"),f.qZA()(),f.TgZ(17,"div",9),f._uU(18),f.qZA(),f.YNc(19,Wr,3,3,"div",10),f.qZA()),2&ht){const lt=pn.erzLet,Ot=f.MAs(9),qt=f.oxw();f.xp6(2),f.hij(" ",lt.Designation," "),f.xp6(2),f.hij(" ",f.xi3(5,8,lt.Date,"dd.MM.yyyy")," "),f.xp6(3),f.Q6J("ngIf",qt.isEditable&<.IsOwner)("ngIfElse",Ot),f.xp6(4),f.hij(" ",f.lcZ(12,11,lt)," "),f.xp6(4),f.Oqu(f.Dn7(16,13,lt,qt.studentId,"dossier.points")),f.xp6(3),f.hij(" ",lt.Owner," "),f.xp6(1),f.Q6J("ngIf",qt.isEditable)}}let di=(()=>{class ht{constructor(lt,Ot){this.gradeService=lt,this.modalService=Ot,this.test$=new Kt.t(1),this.grading$=this.test$.pipe((0,Mn.U)(this.getGrading.bind(this)))}ngOnChanges(lt){lt.test&&this.test$.next(this.test)}editGrading(lt){const Ot=this.modalService.open(gr,{backdrop:"static"});Ot.componentInstance.test=lt,Ot.componentInstance.gradeId=this.getGradeId(lt),Ot.componentInstance.gradeOptions=ht.mapToOptions(this.gradingScale),Ot.componentInstance.studentId=this.studentId,Ot.componentInstance.points=this.getPoints(lt),Ot.result.then(qt=>{qt&&this.updateStudentGrade(qt,lt)},()=>{})}updateStudentGrade(lt,Ot){const qt=(0,Sr.Ps)(lt,Ot);this.gradeService.updateTest$.next(qt)}getGrading(lt){return this.gradingScale?.Grades.find(Ot=>Ot.Id===this.getGradeId(lt))?.Designation||"\u2013"}getGradeId(lt){return(0,Sr.W3)(this.studentId,lt)?.GradeId||null}getPoints(lt){return(0,Sr.W3)(this.studentId,lt)?.Points||null}static mapToOptions(lt){return lt?.Grades.map(Ot=>({Key:Ot.Id,Value:Ot.Designation}))||null}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)(f.Y36(Si.S),f.Y36(h.FF))};static#t=this.\u0275cmp=f.Xpm({type:ht,selectors:[["erz-dossier-single-test"]],inputs:{test:"test",studentId:"studentId",gradingScale:"gradingScale",isEditable:"isEditable"},features:[f.TTD],decls:2,vars:3,consts:[["class","test-entry",4,"erzLet"],[1,"test-entry"],["data-testid","test-designation",1,"designation"],["data-testid","test-date",1,"date"],[1,"grade"],["class","btn btn-link","aria-label","edit grade",3,"click",4,"ngIf","ngIfElse"],["notEditable",""],["data-testid","test-factor",1,"factor"],["data-testid","test-points",1,"points"],["data-testid","test-teacher",1,"teacher"],["class","state","data-testid","test-status",4,"ngIf"],["aria-label","edit grade",1,"btn","btn-link",3,"click"],["data-testid","test-grade-edit-icon",1,"material-icons"],["data-testid","test-grade"],["data-testid","test-status",1,"state"]],template:function(Ot,qt){1&Ot&&(f.YNc(0,Mi,20,17,"div",0),f.ALo(1,"async")),2&Ot&&f.Q6J("erzLet",f.lcZ(1,1,qt.test$))},dependencies:[t.O5,P.e,t.Ov,t.uU,O.X$,vr,vi],styles:['.test-entry[_ngcontent-%COMP%]{border-top:1px solid #dee2e6;padding:1rem;display:grid;grid-template-areas:"designation designation grade factor" "date date points ." "teacher teacher . ." "state state . .";grid-template-columns:repeat(4,1fr)}span[_ngcontent-%COMP%]{margin-left:2em}.designation[_ngcontent-%COMP%]{grid-area:designation}.date[_ngcontent-%COMP%]{grid-area:date}.grade[_ngcontent-%COMP%]{grid-area:grade}.grade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;color:#000;padding:0;text-decoration:none}.grade[_ngcontent-%COMP%] a[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:underline}.grade[_ngcontent-%COMP%] a[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{text-decoration-color:#ea161f}.grade[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:-1em;color:#00000080}.points[_ngcontent-%COMP%]{grid-area:points;color:#00000080}.teacher[_ngcontent-%COMP%]{grid-area:teacher}.state[_ngcontent-%COMP%]{grid-area:state}@media (max-width: 575.98px){.test-entry[_ngcontent-%COMP%]{grid-template-areas:"designation designation" "date grade" "factor points" "teacher teacher" "state state";grid-template-columns:repeat(2,1fr)}}']})}return ht})();function ns(ht,pn){if(1&ht&&f._UZ(0,"erz-dossier-single-test",5),2&ht){const lt=pn.$implicit,Ot=f.oxw(3);f.Q6J("test",lt)("studentId",Ot.studentId)("gradingScale",Ot.getGradingScaleOfTest(lt))("isEditable",Ot.isEditable)}}function bs(ht,pn){if(1&ht&&(f.TgZ(0,"div"),f._UZ(1,"erz-dossier-grades-final-grade",3),f.YNc(2,ns,1,4,"erz-dossier-single-test",4),f.qZA()),2&ht){const lt=f.oxw().erzLet,Ot=f.oxw();f.xp6(1),f.Q6J("finalGrade",Ot.decoratedCourse.finalGrade)("grading",Ot.decoratedCourse.grading)("gradingScale",Ot.decoratedCourse.gradingScale)("average",Ot.decoratedCourse.average),f.xp6(1),f.Q6J("ngForOf",lt)}}function Zi(ht,pn){1&ht&&(f.TgZ(0,"p",6),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ht&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"dossier.no-tests")," "))}function Oi(ht,pn){if(1&ht&&(f.ynx(0),f.YNc(1,bs,3,5,"div",1),f.YNc(2,Zi,3,3,"ng-template",null,2,f.W1O),f.BQk()),2&ht){const lt=pn.erzLet,Ot=f.MAs(3);f.xp6(1),f.Q6J("ngIf",lt.length>0)("ngIfElse",Ot)}}let Ii=(()=>{class ht{ngOnChanges(lt){lt.decoratedCourse&&this.sortedTests$.next(this.sortedTests())}constructor(){this.sortedTests$=new ui.X([])}sortedTests(){return this.decoratedCourse.course.Tests?(0,Sr.df)(this.decoratedCourse.course.Tests):[]}getGradingScaleOfTest(lt){return(0,Sr.fr)(lt,this.gradingScales)}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)};static#t=this.\u0275cmp=f.Xpm({type:ht,selectors:[["erz-dossier-course-tests"]],inputs:{studentId:"studentId",decoratedCourse:"decoratedCourse",gradingScales:"gradingScales",isEditable:"isEditable"},features:[f.TTD],decls:2,vars:3,consts:[[4,"erzLet"],[4,"ngIf","ngIfElse"],["noTests",""],[3,"finalGrade","grading","gradingScale","average"],[3,"test","studentId","gradingScale","isEditable",4,"ngFor","ngForOf"],[3,"test","studentId","gradingScale","isEditable"],["data-testid","message-no-tests",1,"p-3"]],template:function(Ot,qt){1&Ot&&(f.YNc(0,Oi,4,2,"ng-container",0),f.ALo(1,"async")),2&Ot&&f.Q6J("erzLet",f.lcZ(1,1,qt.sortedTests$))},dependencies:[t.sg,t.O5,P.e,xr,di,t.Ov,O.X$]})}return ht})();var Pi=a(5841);function Gn(ht,pn){if(1&ht&&(f.TgZ(0,"span",2),f._uU(1),f.qZA()),2&ht){const lt=f.oxw();f.xp6(1),f.hij(" (",lt.grade,")")}}function Es(ht,pn){if(1&ht&&(f.TgZ(0,"span",3),f._uU(1),f.ALo(2,"number"),f.qZA()),2&ht){const lt=f.oxw();f.xp6(1),f.hij(" (",f.xi3(2,1,lt.average,"1.1-3"),")")}}let zi=(()=>{class ht{constructor(){}get grade(){return this.getGradeForStudent()}getGradeForStudent(){return ys(this.grading,this.finalGrade,this.gradingScale)}static#e=this.\u0275fac=function(Ot){return new(Ot||ht)};static#t=this.\u0275cmp=f.Xpm({type:ht,selectors:[["erz-dossier-grades-course-header"]],inputs:{designation:"designation",finalGrade:"finalGrade",grading:"grading",gradingScale:"gradingScale",average:"average"},decls:3,vars:3,consts:[["class","grade","data-testId","grade",4,"ngIf"],["class","average","data-testId","average",4,"ngIf"],["data-testId","grade",1,"grade"],["data-testId","average",1,"average"]],template:function(Ot,qt){1&Ot&&(f._uU(0),f.YNc(1,Gn,2,1,"span",0),f.YNc(2,Es,3,4,"span",1)),2&Ot&&(f.Oqu(qt.designation),f.xp6(1),f.Q6J("ngIf",qt.grade),f.xp6(1),f.Q6J("ngIf",!qt.grade&&qt.average))},dependencies:[t.O5,t.JJ],styles:[".average[_ngcontent-%COMP%]{color:#00000080}"]})}return ht})();a(1703),a(7625);let Ri=(()=>{class ht{static#e=this.\u0275fac=function(Ot){return new(Ot||ht)};static#t=this.\u0275mod=f.oAB({type:ht});static#n=this.\u0275inj=f.cJS({providers:[{provide:d.TP,useClass:q.R,multi:!0},{provide:d.TP,useClass:M,multi:!0},{provide:d.TP,useClass:mt,multi:!0}],imports:[t.ez,w.u5,w.UX,L.Bz,d.JF,O.aw.forChild(),h.IJ,B.Rq,jn.A0,t.ez,w.u5,w.UX,L.Bz,d.JF,O.aw,h.IJ,B.Rq,jn.A0]})}return ht})();f.B6R(Pi.d,function(){return[t.sg,t.O5,h.gY,h.Gk,h.gW,h.k9,ir.H,Ii,zi]},function(){return[t.Ov,O.X$]})},6163:(Pe,V,a)=>{"use strict";a.d(V,{m:()=>d});const d=new(a(5879).OlP)("Confirm Absences Service")},6100:(Pe,V,a)=>{"use strict";function h(F){return 0===F.length}function R(F){return Array.isArray(F)}a.d(V,{kJ:()=>R,yD:()=>h})},2220:(Pe,V,a)=>{"use strict";function t(O){const R=O.split(/\D/).map(F=>Number(F));return new Date(R[0],R[1]-1,R[2],R[3],R[4],R[5])}function d(O){const R=O.split(/\D/).map(F=>Number(F));return new Date(R[0],R[1]-1,R[2])}function w(O){return L(O)+`T${h(O.getHours())}:${h(O.getMinutes())}:${h(O.getSeconds())}`}function L(O){return`${O.getFullYear()}-${h(O.getMonth()+1)}-${h(O.getDate())}`}function h(O){return("0"+O).slice(-2)}a.d(V,{Aq:()=>L,Uy:()=>t,nx:()=>d,oZ:()=>w})},275:(Pe,V,a)=>{"use strict";a.d(V,{Jx:()=>j,Y0:()=>M});var t=a(754),d=a(5040),w=a(5803);function O(q){return void 0!==q.message?q.message:"Invalid value ".concat(function L(q){return"function"==typeof q?(0,t.$P)(q):"number"!=typeof q||isFinite(q)?JSON.stringify(q):isNaN(q)?"NaN":q>0?"Infinity":"-Infinity"}(q.value)," supplied to ").concat(function h(q){return q.map(function(ie){var Te=ie.type;return"".concat(ie.key,": ").concat(Te.name)}).join("/")}(q.context))}var P={report:(0,w.g_)(function R(q){return q.map(O)},function F(){return["No errors!"]})},B=a(8504),$=a(2096);class f extends Error{constructor(){super(...arguments),this.name="DecodeError"}}function j(q){return ie=>(0,d.zG)(q.decode(ie),(0,w.g_)(k=>(0,B._)(()=>new f(P.report((0,w.t$)(k)).join("\n"))),k=>(0,$.of)(k)))}function M(q){return j(t.IX(q))}},1140:(Pe,V,a)=>{"use strict";a.d(V,{I:()=>w,q:()=>d});var t=a(7398);function d(L,h){return L.pipe((0,t.U)(O=>O.find(R=>R.Key===h)||null))}function w(L){return L.slice().sort((h,O)=>h.Value.localeCompare(O.Value))}},3942:(Pe,V,a)=>{"use strict";function d(P){return null!==P}function w(P){return"string"==typeof P&&P.length>0}function L(P){return B=>!P(B)}function h(P){return B=>B.length>=P}function O(P){return!!P}function R(P){return B=>B instanceof P}function F(P,B,$){return $.indexOf(P)===B}a.d(V,{$L:()=>h,Nf:()=>d,Tw:()=>F,V9:()=>R,YO:()=>w,fQ:()=>O,ff:()=>L})},1257:(Pe,V,a)=>{"use strict";a.d(V,{YV:()=>B,Z6:()=>P,ZX:()=>$});var t=a(2572),d=a(2096),w=a(6232),L=a(2181),h=a(4664),O=a(7921),R=a(7398),F=a(7081);function P(j,M,q){return(0,t.a)([j,M]).pipe((0,L.h)(([ie,k])=>k),(0,h.w)(([ie,k])=>{const Te=q?ie?.get(q)||null:ie;return Te?Te.statusChanges.pipe((0,O.O)(Te.status),(0,R.U)(()=>function f(j){return j?Object.keys(j.errors||{}).map(M=>({error:M,params:j.errors&&j.errors[M]instanceof Object?j.errors[M]:null})):[]}(Te))):(0,d.of)([])}),(0,O.O)([]),(0,F.d)(1))}function B(j,M){return j.pipe((0,R.U)(q=>q.get(M)||null))}function $(j,M){return B(j,M).pipe((0,h.w)(q=>q?q.valueChanges:w.E))}},1389:(Pe,V,a)=>{"use strict";function t(d){return w=>d(...w)}a.d(V,{h:()=>t})},49:(Pe,V,a)=>{"use strict";a.d(V,{PO:()=>w,Qw:()=>h,fG:()=>d,kK:()=>O});var t=a(5301);function d(R){const F=R.reduce((P,B)=>(P[B.StudentRef.Id]||(P[B.StudentRef.Id]=[]),P[B.StudentRef.Id].push(B.LessonRef.Id),P),{});return Object.keys(F).map(P=>({personIds:[Number(P)],lessonIds:F[P]}))}function w(R){const F={};return R.forEach(P=>{F[P.StudentRef.Id]||(F[P.StudentRef.Id]={}),F[P.StudentRef.Id][String(P.TypeRef.Id)]||(F[P.StudentRef.Id][String(P.TypeRef.Id)]=[]),F[P.StudentRef.Id][String(P.TypeRef.Id)].push(P.LessonRef.Id)}),Object.keys(F).reduce((P,B)=>[...P,...Object.keys(F[B]).map($=>({personId:Number(B),presenceTypeId:"null"===$?null:Number($),lessonIds:F[B][String($)]}))],[])}function h(R){return R.slice().sort((F,P)=>F.LessonDateTimeFrom.getTime()-P.LessonDateTimeFrom.getTime())}function O(R){return`${R.EventDesignation}, ${(0,t.Z)(R.LessonDateTimeFrom,"dd.MM.yyyy")}, ${(0,t.Z)(R.LessonDateTimeFrom,"HH:mm")}-${(0,t.Z)(R.LessonDateTimeTo,"HH:mm")}`}},3986:(Pe,V,a)=>{"use strict";function t(h){return 0===h.length?0:w(h.map(({value:O,weight:R})=>O*R))/w(h.map(({weight:O})=>O))}function d(h){return 0===h.length?0:Number(w(h)/h.length)}function w(h){return h.reduce(L,0)}function L(h,O){return h+O}a.d(V,{S:()=>t,Y:()=>d})},7105:(Pe,V,a)=>{"use strict";a.d(V,{LS:()=>ie,Pl:()=>q,Qx:()=>j,eG:()=>k,re:()=>Te});var t=a(9862),d=a(2096),w=a(8504),L=a(4911),h=a(3019),O=a(2438),R=a(1687),F=a(6306),P=a(7398),B=a(3572),$=a(4664),f=a(7921);function j(Se){return(0,F.K)(ye=>ye instanceof t.UA&&404===ye.status?(0,d.of)(Se||null):(0,w._)(()=>ye))}function q(Se){return ye=>(0,L.P)(()=>(Se(),ye))}function ie(Se){return ye=>ye.pipe((0,P.U)(ce=>ce??Se),(0,B.d)(Se))}function k(Se,ye){return Se.pipe((0,$.w)(ce=>ye.pipe((0,f.O)(ce),(0,P.U)(()=>ce))))}function Te(Se,ye=window.document){return(0,h.T)(...["click","keydown"].map(ce=>(0,O.R)(ye,ce))).pipe((0,f.O)(null),(0,$.w)(()=>(0,R.F)(Se)),(0,P.U)(()=>{}))}},7749:(Pe,V,a)=>{"use strict";function t(L){return L.slice().sort((h,O)=>h.Sort-O.Sort)}function d(L){return L.map(h=>({Key:h.Id,Value:h.Designation||""}))}function w(L,h){return L.map(O=>Object.assign(O,{Group:h}))}a.d(V,{KV:()=>t,nC:()=>d,pt:()=>w})},6031:(Pe,V,a)=>{"use strict";function t(w,L){return d(w).includes(L)}function d(w){return w?w.split(";"):[]}a.d(V,{F:()=>d,n:()=>t})},7470:(Pe,V,a)=>{"use strict";function t(d,w){return w.reduce((L,h)=>({...L,[h]:d[h]}),{})}a.d(V,{e:()=>t})},1342:(Pe,V,a)=>{"use strict";a.d(V,{D9:()=>L,dD:()=>d,tW:()=>w});var t=a(1523);function d(h){return String(h||"").split("&").reduce((O,R)=>{const[F,P]=R.split("=");return{...O,[F]:P}},{})}function w(h){return Object.keys(h).reduce((O,R)=>{const F=h[R];return[...O,null==F?R:`${R}=${F}`]},[]).join("&")}function L(h){const P=(new t.sz).parse(h)?.root.children[t.eC]?.segments;return P?P[0].path:null}},4515:(Pe,V,a)=>{"use strict";var t=a(6593),d=a(5879),w=a(6814),L=a(9862);const h=void 0,R=["de-CH",[["AM","PM"],h,h],h,[["S","M","D","M","D","F","S"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So","Mo","Di","Mi","Do","Fr","Sa"]],[["S","M","D","M","D","F","S"],["So","Mo","Di","Mi","Do","Fr","Sa"],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan.","Feb.","M\xe4rz","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["v. Chr.","n. Chr."],h,h],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",h,"{1} 'um' {0}",h],[".","\u2019",";","%","+","-","E","\xb7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4\xa0#,##0.00;\xa4-#,##0.00","#E0"],"CHF","CHF","Schweizer Franken",{ATS:["\xf6S"],AUD:["AU$","$"],BGM:["BGK"],BGO:["BGJ"],BYN:[h,"\u0440."],CUC:[h,"Cub$"],DEM:["DM"],EUR:[],FKP:[h,"Fl\xa3"],GHS:[h,"\u20b5"],GNF:[h,"F.G."],KMF:[h,"FC"],PHP:[h,"\u20b1"],RON:[h,"L"],RUR:[h,"\u0440."],RWF:[h,"F.Rw"],SYP:[],THB:["\u0e3f"],TWD:["NT$"],XXX:[],ZMW:[h,"K"]},"ltr",function O(W){const v=Math.floor(Math.abs(W)),I=W.toString().replace(/^[^.]*\.?/,"").length;return 1===v&&0===I?1:5}],F=void 0,B=["fr-CH",[["AM","PM"],F,F],F,[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],F,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]],F,[["av. J.-C.","ap. J.-C."],F,["avant J\xe9sus-Christ","apr\xe8s J\xe9sus-Christ"]],1,[6,0],["dd.MM.yy","d MMM y","d MMMM y","EEEE, d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH.mm:ss 'h' zzzz"],["{1} {0}","{1}, {0}","{1} '\xe0' {0}",F],[",","\u202f",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":","."],["#,##0.###","#,##0%","#,##0.00\xa0\xa4","#E0"],"CHF","CHF","franc suisse",{ARS:["$AR","$"],AUD:["$AU","$"],BEF:["FB"],BMD:["$BM","$"],BND:["$BN","$"],BYN:[F,"\u0440."],BZD:["$BZ","$"],CAD:["$CA","$"],CLP:["$CL","$"],CNY:[F,"\xa5"],COP:["$CO","$"],CYP:["\xa3CY"],EGP:[F,"\xa3E"],FJD:["$FJ","$"],FKP:["\xa3FK","\xa3"],FRF:["F"],GBP:["\xa3GB","\xa3"],GIP:["\xa3GI","\xa3"],HKD:[F,"$"],IEP:["\xa3IE"],ILP:["\xa3IL"],ITL:["\u20a4IT"],JPY:[F,"\xa5"],KMF:[F,"FC"],LBP:["\xa3LB","\xa3L"],MTP:["\xa3MT"],MXN:["$MX","$"],NAD:["$NA","$"],NIO:[F,"$C"],NZD:["$NZ","$"],PHP:[F,"\u20b1"],RHD:["$RH"],RON:[F,"L"],RWF:[F,"FR"],SBD:["$SB","$"],SGD:["$SG","$"],SRD:["$SR","$"],TOP:[F,"$T"],TTD:["$TT","$"],TWD:[F,"NT$"],USD:["$US","$"],UYU:["$UY","$"],WST:["$WS"],XCD:[F,"$"],XPF:["FCFP"],ZMW:[F,"Kw"]},"ltr",function P(W){const v=Math.floor(Math.abs(W)),I=W.toString().replace(/^[^.]*\.?/,"").length,te=parseInt(W.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return 0===v||1===v?1:0===te&&0!==v&&v%1e6==0&&0===I||!(te>=0&&te<=5)?4:5}];var $=a(7328),f=a(3019),j=a(4664),M=a(7398);const q={schedule(W,p){const v=setTimeout(W,p);return()=>clearTimeout(v)},scheduleBeforeRender(W){if(typeof window>"u")return q.schedule(W,0);if(typeof window.requestAnimationFrame>"u")return q.schedule(W,16);const p=window.requestAnimationFrame(W);return()=>window.cancelAnimationFrame(p)}};let ye;function ke(W,p,v){let I=v;return function k(W){return!!W&&W.nodeType===Node.ELEMENT_NODE}(W)&&p.some((te,me)=>!("*"===te||!function ce(W,p){if(!ye){const v=Element.prototype;ye=v.matches||v.matchesSelector||v.mozMatchesSelector||v.msMatchesSelector||v.oMatchesSelector||v.webkitMatchesSelector}return W.nodeType===Node.ELEMENT_NODE&&ye.call(W,p)}(W,te)||(I=me,0))),I}class rt{constructor(p,v){this.componentFactory=v.get(d._Vd).resolveComponentFactory(p)}create(p){return new Mt(this.componentFactory,p)}}class Mt{constructor(p,v){this.componentFactory=p,this.injector=v,this.eventEmitters=new $.t(1),this.events=this.eventEmitters.pipe((0,j.w)(I=>(0,f.T)(...I))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:I})=>I)),this.ngZone=this.injector.get(d.R0b),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(p){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(p)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=q.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(p){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(p):this.componentRef.instance[p])}setInputValue(p,v,I){this.runInZone(()=>{I&&(v=I.call(this.componentRef?.instance,v)),null!==this.componentRef?function _e(W,p){return W===p||W!=W&&p!=p}(v,this.getInputValue(p))&&(void 0!==v||!this.unchangedInputs.has(p))||(this.recordInputChange(p,v),this.unchangedInputs.delete(p),this.hasInputChanges=!0,this.componentRef.instance[p]=v,this.scheduleDetectChanges()):this.initialInputValues.set(p,v)})}initializeComponent(p){const v=d.zs3.create({providers:[],parent:this.injector}),I=function be(W,p){const v=W.childNodes,I=p.map(()=>[]);let te=-1;p.some((me,Ne)=>"*"===me&&(te=Ne,!0));for(let me=0,Ne=v.length;me{this.initialInputValues.has(p)&&this.setInputValue(p,this.initialInputValues.get(p),v)}),this.initialInputValues.clear()}initializeOutputs(p){const v=this.componentFactory.outputs.map(({propName:I,templateName:te})=>p.instance[I].pipe((0,M.U)(Ne=>({name:te,value:Ne}))));this.eventEmitters.next(v)}callNgOnChanges(p){if(!this.implementsOnChanges||null===this.inputChanges)return;const v=this.inputChanges;this.inputChanges=null,p.instance.ngOnChanges(v)}markViewForCheck(p){this.hasInputChanges&&(this.hasInputChanges=!1,p.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=q.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(p,v){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const I=this.inputChanges[p];if(I)return void(I.currentValue=v);const te=this.unchangedInputs.has(p),me=te?void 0:this.getInputValue(p);this.inputChanges[p]=new d.WD2(me,v,te)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(p){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(p):p()}}class qe extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function _t(W,p){const v=function xe(W,p){return p.get(d._Vd).resolveComponentFactory(W).inputs}(W,p.injector),I=p.strategyFactory||new rt(W,p.injector),te=function ve(W){const p={};return W.forEach(({propName:v,templateName:I,transform:te})=>{p[function ie(W){return W.replace(/[A-Z]/g,p=>`-${p.toLowerCase()}`)}(I)]=[v,te]}),p}(v);class me extends qe{static#e=this.observedAttributes=Object.keys(te);get ngElementStrategy(){if(!this._ngElementStrategy){const Fe=this._ngElementStrategy=I.create(this.injector||p.injector);v.forEach(({propName:st,transform:Dt})=>{if(!this.hasOwnProperty(st))return;const rn=this[st];delete this[st],Fe.setInputValue(st,rn,Dt)})}return this._ngElementStrategy}constructor(Fe){super(),this.injector=Fe}attributeChangedCallback(Fe,st,Dt,rn){const[Xt,Tn]=te[Fe];this.ngElementStrategy.setInputValue(Xt,Dt,Tn)}connectedCallback(){let Fe=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),Fe=!0),this.ngElementStrategy.connect(this),Fe||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(Fe=>{const st=new CustomEvent(Fe.name,{detail:Fe.value});this.dispatchEvent(st)})}}return v.forEach(({propName:Ne,transform:Fe})=>{Object.defineProperty(me.prototype,Ne,{get(){return this.ngElementStrategy.getInputValue(Ne)},set(st){this.ngElementStrategy.setInputValue(Ne,st,Fe)},configurable:!0,enumerable:!0})}),me}class Ee{}class Ze{}const J="*";function ae(W,p=null){return{type:2,steps:W,options:p}}function fe(W){return{type:6,styles:W,offset:null}}class et{constructor(p=0,v=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=p+v}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(p=>p()),this._onDoneFns=[])}onStart(p){this._originalOnStartFns.push(p),this._onStartFns.push(p)}onDone(p){this._originalOnDoneFns.push(p),this._onDoneFns.push(p)}onDestroy(p){this._onDestroyFns.push(p)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(p=>p()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(p=>p()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(p){this._position=this.totalTime?p*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(p){const v="start"==p?this._onStartFns:this._onDoneFns;v.forEach(I=>I()),v.length=0}}class Pt{constructor(p){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=p;let v=0,I=0,te=0;const me=this.players.length;0==me?queueMicrotask(()=>this._onFinish()):this.players.forEach(Ne=>{Ne.onDone(()=>{++v==me&&this._onFinish()}),Ne.onDestroy(()=>{++I==me&&this._onDestroy()}),Ne.onStart(()=>{++te==me&&this._onStart()})}),this.totalTime=this.players.reduce((Ne,Fe)=>Math.max(Ne,Fe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(p=>p()),this._onDoneFns=[])}init(){this.players.forEach(p=>p.init())}onStart(p){this._onStartFns.push(p)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(p=>p()),this._onStartFns=[])}onDone(p){this._onDoneFns.push(p)}onDestroy(p){this._onDestroyFns.push(p)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(p=>p.play())}pause(){this.players.forEach(p=>p.pause())}restart(){this.players.forEach(p=>p.restart())}finish(){this._onFinish(),this.players.forEach(p=>p.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(p=>p.destroy()),this._onDestroyFns.forEach(p=>p()),this._onDestroyFns=[])}reset(){this.players.forEach(p=>p.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(p){const v=p*this.totalTime;this.players.forEach(I=>{const te=I.totalTime?Math.min(1,v/I.totalTime):1;I.setPosition(te)})}getPosition(){const p=this.players.reduce((v,I)=>null===v||I.totalTime>v.totalTime?I:v,null);return null!=p?p.getPosition():0}beforeDestroy(){this.players.forEach(p=>{p.beforeDestroy&&p.beforeDestroy()})}triggerCallback(p){const v="start"==p?this._onStartFns:this._onDoneFns;v.forEach(I=>I()),v.length=0}}function Rn(W){return new d.vHH(3e3,!1)}function Vt(W){switch(W.length){case 0:return new et;case 1:return W[0];default:return new Pt(W)}}function Un(W,p,v=new Map,I=new Map){const te=[],me=[];let Ne=-1,Fe=null;if(p.forEach(st=>{const Dt=st.get("offset"),rn=Dt==Ne,Xt=rn&&Fe||new Map;st.forEach((Tn,Vn)=>{let xn=Vn,Fn=Tn;if("offset"!==Vn)switch(xn=W.normalizePropertyName(xn,te),Fn){case"!":Fn=v.get(Vn);break;case J:Fn=I.get(Vn);break;default:Fn=W.normalizeStyleValue(Vn,xn,Fn,te)}Xt.set(xn,Fn)}),rn||me.push(Xt),Fe=Xt,Ne=Dt}),te.length)throw function Dr(W){return new d.vHH(3502,!1)}();return me}function on(W,p,v,I){switch(p){case"start":W.onStart(()=>I(v&&rr(v,"start",W)));break;case"done":W.onDone(()=>I(v&&rr(v,"done",W)));break;case"destroy":W.onDestroy(()=>I(v&&rr(v,"destroy",W)))}}function rr(W,p,v){const me=ln(W.element,W.triggerName,W.fromState,W.toState,p||W.phaseName,v.totalTime??W.totalTime,!!v.disabled),Ne=W._data;return null!=Ne&&(me._data=Ne),me}function ln(W,p,v,I,te="",me=0,Ne){return{element:W,triggerName:p,fromState:v,toState:I,phaseName:te,totalTime:me,disabled:!!Ne}}function $n(W,p,v){let I=W.get(p);return I||W.set(p,I=v),I}function Qe(W){const p=W.indexOf(":");return[W.substring(1,p),W.slice(p+1)]}const Le=(()=>typeof document>"u"?null:document.documentElement)();function Ue(W){const p=W.parentNode||W.host||null;return p===Le?null:p}let Rt=null,kt=!1;function pr(W,p){for(;p;){if(p===W)return!0;p=Ue(p)}return!1}function jr(W,p,v){if(v)return Array.from(W.querySelectorAll(p));const I=W.querySelector(p);return I?[I]:[]}let Ar=(()=>{class W{validateStyleProperty(v){return function Ft(W){Rt||(Rt=function wn(){return typeof document<"u"?document.body:null}()||{},kt=!!Rt.style&&"WebkitAppearance"in Rt.style);let p=!0;return Rt.style&&!function bt(W){return"ebkit"==W.substring(1,6)}(W)&&(p=W in Rt.style,!p&&kt&&(p="Webkit"+W.charAt(0).toUpperCase()+W.slice(1)in Rt.style)),p}(v)}matchesElement(v,I){return!1}containsElement(v,I){return pr(v,I)}getParentElement(v){return Ue(v)}query(v,I,te){return jr(v,I,te)}computeStyle(v,I,te){return te||""}animate(v,I,te,me,Ne,Fe=[],st){return new et(te,me)}static#e=this.\u0275fac=function(I){return new(I||W)};static#t=this.\u0275prov=d.Yz7({token:W,factory:W.\u0275fac})}return W})(),Hr=(()=>{class W{static#e=this.NOOP=new Ar}return W})();const Zr=1e3,Ur="ng-enter",ai="ng-leave",pe="ng-trigger",Z=".ng-trigger",K="ng-animating",D=".ng-animating";function X(W){if("number"==typeof W)return W;const p=W.match(/^(-?[\.\d]+)(m?s)/);return!p||p.length<2?0:de(parseFloat(p[1]),p[2])}function de(W,p){return"s"===p?W*Zr:W}function Oe(W,p,v){return W.hasOwnProperty("duration")?W:function Ae(W,p,v){let te,me=0,Ne="";if("string"==typeof W){const Fe=W.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Fe)return p.push(Rn()),{duration:0,delay:0,easing:""};te=de(parseFloat(Fe[1]),Fe[2]);const st=Fe[3];null!=st&&(me=de(parseFloat(st),Fe[4]));const Dt=Fe[5];Dt&&(Ne=Dt)}else te=W;if(!v){let Fe=!1,st=p.length;te<0&&(p.push(function We(){return new d.vHH(3100,!1)}()),Fe=!0),me<0&&(p.push(function Ye(){return new d.vHH(3101,!1)}()),Fe=!0),Fe&&p.splice(st,0,Rn())}return{duration:te,delay:me,easing:Ne}}(W,p,v)}function mt(W,p={}){return Object.keys(W).forEach(v=>{p[v]=W[v]}),p}function $t(W){const p=new Map;return Object.keys(W).forEach(v=>{p.set(v,W[v])}),p}function En(W,p=new Map,v){if(v)for(let[I,te]of v)p.set(I,te);for(let[I,te]of W)p.set(I,te);return p}function Nn(W,p,v){p.forEach((I,te)=>{const me=Wi(te);v&&!v.has(te)&&v.set(te,W.style[me]),W.style[me]=I})}function ir(W,p){p.forEach((v,I)=>{const te=Wi(I);W.style[te]=""})}function _r(W){return Array.isArray(W)?1==W.length?W[0]:ae(W):W}const Yr=new RegExp("{{\\s*(.+?)\\s*}}","g");function es(W){let p=[];if("string"==typeof W){let v;for(;v=Yr.exec(W);)p.push(v[1]);Yr.lastIndex=0}return p}function _i(W,p,v){const I=W.toString(),te=I.replace(Yr,(me,Ne)=>{let Fe=p[Ne];return null==Fe&&(v.push(function xt(W){return new d.vHH(3003,!1)}()),Fe=""),Fe.toString()});return te==I?W:te}function Ti(W){const p=[];let v=W.next();for(;!v.done;)p.push(v.value),v=W.next();return p}const hs=/-+([a-z0-9])/g;function Wi(W){return W.replace(hs,(...p)=>p[1].toUpperCase())}function Vr(W,p,v){switch(p.type){case 7:return W.visitTrigger(p,v);case 0:return W.visitState(p,v);case 1:return W.visitTransition(p,v);case 2:return W.visitSequence(p,v);case 3:return W.visitGroup(p,v);case 4:return W.visitAnimate(p,v);case 5:return W.visitKeyframes(p,v);case 6:return W.visitStyle(p,v);case 8:return W.visitReference(p,v);case 9:return W.visitAnimateChild(p,v);case 10:return W.visitAnimateRef(p,v);case 11:return W.visitQuery(p,v);case 12:return W.visitStagger(p,v);default:throw function nn(W){return new d.vHH(3004,!1)}()}}function jn(W,p){return window.getComputedStyle(W)[p]}const ui="*";function ys(W,p){const v=[];return"string"==typeof W?W.split(/\s*,\s*/).forEach(I=>function Ui(W,p,v){if(":"==W[0]){const st=function xr(W,p){switch(W){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(v,I)=>parseFloat(I)>parseFloat(v);case":decrement":return(v,I)=>parseFloat(I) *"}}(W,v);if("function"==typeof st)return void p.push(st);W=st}const I=W.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==I||I.length<4)return v.push(function Qt(W){return new d.vHH(3015,!1)}()),p;const te=I[1],me=I[2],Ne=I[3];p.push(hr(te,Ne));"<"==me[0]&&!(te==ui&&Ne==ui)&&p.push(hr(Ne,te))}(I,v,p)):v.push(W),v}const Kt=new Set(["true","1"]),Mn=new Set(["false","0"]);function hr(W,p){const v=Kt.has(W)||Mn.has(W),I=Kt.has(p)||Mn.has(p);return(te,me)=>{let Ne=W==ui||W==te,Fe=p==ui||p==me;return!Ne&&v&&"boolean"==typeof te&&(Ne=te?Kt.has(W):Mn.has(W)),!Fe&&I&&"boolean"==typeof me&&(Fe=me?Kt.has(p):Mn.has(p)),Ne&&Fe}}const bi=new RegExp("s*:selfs*,?","g");function Nr(W,p,v,I){return new Ve(W).build(p,v,I)}class Ve{constructor(p){this._driver=p}build(p,v,I){const te=new Bt(v);return this._resetContextStyleTimingState(te),Vr(this,_r(p),te)}_resetContextStyleTimingState(p){p.currentQuerySelector="",p.collectedStyles=new Map,p.collectedStyles.set("",new Map),p.currentTime=0}visitTrigger(p,v){let I=v.queryCount=0,te=v.depCount=0;const me=[],Ne=[];return"@"==p.name.charAt(0)&&v.errors.push(function Ht(){return new d.vHH(3006,!1)}()),p.definitions.forEach(Fe=>{if(this._resetContextStyleTimingState(v),0==Fe.type){const st=Fe,Dt=st.name;Dt.toString().split(/\s*,\s*/).forEach(rn=>{st.name=rn,me.push(this.visitState(st,v))}),st.name=Dt}else if(1==Fe.type){const st=this.visitTransition(Fe,v);I+=st.queryCount,te+=st.depCount,Ne.push(st)}else v.errors.push(function zt(){return new d.vHH(3007,!1)}())}),{type:7,name:p.name,states:me,transitions:Ne,queryCount:I,depCount:te,options:null}}visitState(p,v){const I=this.visitStyle(p.styles,v),te=p.options&&p.options.params||null;if(I.containsDynamicStyles){const me=new Set,Ne=te||{};I.styles.forEach(Fe=>{Fe instanceof Map&&Fe.forEach(st=>{es(st).forEach(Dt=>{Ne.hasOwnProperty(Dt)||me.add(Dt)})})}),me.size&&(Ti(me.values()),v.errors.push(function fn(W,p){return new d.vHH(3008,!1)}()))}return{type:0,name:p.name,style:I,options:te?{params:te}:null}}visitTransition(p,v){v.queryCount=0,v.depCount=0;const I=Vr(this,_r(p.animation),v);return{type:1,matchers:ys(p.expr,v.errors),animation:I,queryCount:v.queryCount,depCount:v.depCount,options:Yn(p.options)}}visitSequence(p,v){return{type:2,steps:p.steps.map(I=>Vr(this,I,v)),options:Yn(p.options)}}visitGroup(p,v){const I=v.currentTime;let te=0;const me=p.steps.map(Ne=>{v.currentTime=I;const Fe=Vr(this,Ne,v);return te=Math.max(te,v.currentTime),Fe});return v.currentTime=te,{type:3,steps:me,options:Yn(p.options)}}visitAnimate(p,v){const I=function Si(W,p){if(W.hasOwnProperty("duration"))return W;if("number"==typeof W)return sr(Oe(W,p).duration,0,"");const v=W;if(v.split(/\s+/).some(me=>"{"==me.charAt(0)&&"{"==me.charAt(1))){const me=sr(0,0,"");return me.dynamic=!0,me.strValue=v,me}const te=Oe(v,p);return sr(te.duration,te.delay,te.easing)}(p.timings,v.errors);v.currentAnimateTimings=I;let te,me=p.styles?p.styles:fe({});if(5==me.type)te=this.visitKeyframes(me,v);else{let Ne=p.styles,Fe=!1;if(!Ne){Fe=!0;const Dt={};I.easing&&(Dt.easing=I.easing),Ne=fe(Dt)}v.currentTime+=I.duration+I.delay;const st=this.visitStyle(Ne,v);st.isEmptyStep=Fe,te=st}return v.currentAnimateTimings=null,{type:4,timings:I,style:te,options:null}}visitStyle(p,v){const I=this._makeStyleAst(p,v);return this._validateStyleAst(I,v),I}_makeStyleAst(p,v){const I=[],te=Array.isArray(p.styles)?p.styles:[p.styles];for(let Fe of te)"string"==typeof Fe?Fe===J?I.push(Fe):v.errors.push(new d.vHH(3002,!1)):I.push($t(Fe));let me=!1,Ne=null;return I.forEach(Fe=>{if(Fe instanceof Map&&(Fe.has("easing")&&(Ne=Fe.get("easing"),Fe.delete("easing")),!me))for(let st of Fe.values())if(st.toString().indexOf("{{")>=0){me=!0;break}}),{type:6,styles:I,easing:Ne,offset:p.offset,containsDynamicStyles:me,options:null}}_validateStyleAst(p,v){const I=v.currentAnimateTimings;let te=v.currentTime,me=v.currentTime;I&&me>0&&(me-=I.duration+I.delay),p.styles.forEach(Ne=>{"string"!=typeof Ne&&Ne.forEach((Fe,st)=>{const Dt=v.collectedStyles.get(v.currentQuerySelector),rn=Dt.get(st);let Xt=!0;rn&&(me!=te&&me>=rn.startTime&&te<=rn.endTime&&(v.errors.push(function en(W,p,v,I,te){return new d.vHH(3010,!1)}()),Xt=!1),me=rn.startTime),Xt&&Dt.set(st,{startTime:me,endTime:te}),v.options&&function zr(W,p,v){const I=p.params||{},te=es(W);te.length&&te.forEach(me=>{I.hasOwnProperty(me)||v.push(function At(W){return new d.vHH(3001,!1)}())})}(Fe,v.options,v.errors)})})}visitKeyframes(p,v){const I={type:5,styles:[],options:null};if(!v.currentAnimateTimings)return v.errors.push(function Dn(){return new d.vHH(3011,!1)}()),I;let me=0;const Ne=[];let Fe=!1,st=!1,Dt=0;const rn=p.steps.map(S=>{const y=this._makeStyleAst(S,v);let x=null!=y.offset?y.offset:function gr(W){if("string"==typeof W)return null;let p=null;if(Array.isArray(W))W.forEach(v=>{if(v instanceof Map&&v.has("offset")){const I=v;p=parseFloat(I.get("offset")),I.delete("offset")}});else if(W instanceof Map&&W.has("offset")){const v=W;p=parseFloat(v.get("offset")),v.delete("offset")}return p}(y.styles),G=0;return null!=x&&(me++,G=y.offset=x),st=st||G<0||G>1,Fe=Fe||G0&&me{const x=Tn>0?y==Vn?1:Tn*y:Ne[y],G=x*E;v.currentTime=xn+Fn.delay+G,Fn.duration=G,this._validateStyleAst(S,v),S.offset=x,I.styles.push(S)}),I}visitReference(p,v){return{type:8,animation:Vr(this,_r(p.animation),v),options:Yn(p.options)}}visitAnimateChild(p,v){return v.depCount++,{type:9,options:Yn(p.options)}}visitAnimateRef(p,v){return{type:10,animation:this.visitReference(p.animation,v),options:Yn(p.options)}}visitQuery(p,v){const I=v.currentQuerySelector,te=p.options||{};v.queryCount++,v.currentQuery=p;const[me,Ne]=function ct(W){const p=!!W.split(/\s*,\s*/).find(v=>":self"==v);return p&&(W=W.replace(bi,"")),W=W.replace(/@\*/g,Z).replace(/@\w+/g,v=>Z+"-"+v.slice(1)).replace(/:animating/g,D),[W,p]}(p.selector);v.currentQuerySelector=I.length?I+" "+me:me,$n(v.collectedStyles,v.currentQuerySelector,new Map);const Fe=Vr(this,_r(p.animation),v);return v.currentQuery=null,v.currentQuerySelector=I,{type:11,selector:me,limit:te.limit||0,optional:!!te.optional,includeSelf:Ne,animation:Fe,originalSelector:p.selector,options:Yn(p.options)}}visitStagger(p,v){v.currentQuery||v.errors.push(function it(){return new d.vHH(3013,!1)}());const I="full"===p.timings?{duration:0,delay:0,easing:"full"}:Oe(p.timings,v.errors,!0);return{type:12,animation:Vr(this,_r(p.animation),v),timings:I,options:null}}}class Bt{constructor(p){this.errors=p,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 Yn(W){return W?(W=mt(W)).params&&(W.params=function Yt(W){return W?mt(W):null}(W.params)):W={},W}function sr(W,p,v){return{duration:W,delay:p,easing:v}}function Wr(W,p,v,I,te,me,Ne=null,Fe=!1){return{type:1,element:W,keyframes:p,preStyleProps:v,postStyleProps:I,duration:te,delay:me,totalTime:te+me,easing:Ne,subTimeline:Fe}}class Mi{constructor(){this._map=new Map}get(p){return this._map.get(p)||[]}append(p,v){let I=this._map.get(p);I||this._map.set(p,I=[]),I.push(...v)}has(p){return this._map.has(p)}clear(){this._map.clear()}}const bs=new RegExp(":enter","g"),Oi=new RegExp(":leave","g");function Ii(W,p,v,I,te,me=new Map,Ne=new Map,Fe,st,Dt=[]){return(new Pi).buildKeyframes(W,p,v,I,te,me,Ne,Fe,st,Dt)}class Pi{buildKeyframes(p,v,I,te,me,Ne,Fe,st,Dt,rn=[]){Dt=Dt||new Mi;const Xt=new Es(p,v,Dt,te,me,rn,[]);Xt.options=st;const Tn=st.delay?X(st.delay):0;Xt.currentTimeline.delayNextStep(Tn),Xt.currentTimeline.setStyles([Ne],null,Xt.errors,st),Vr(this,I,Xt);const Vn=Xt.timelines.filter(xn=>xn.containsAnimation());if(Vn.length&&Fe.size){let xn;for(let Fn=Vn.length-1;Fn>=0;Fn--){const E=Vn[Fn];if(E.element===v){xn=E;break}}xn&&!xn.allowOnlyTimelineStyles()&&xn.setStyles([Fe],null,Xt.errors,st)}return Vn.length?Vn.map(xn=>xn.buildKeyframes()):[Wr(v,[],[],[],0,Tn,"",!1)]}visitTrigger(p,v){}visitState(p,v){}visitTransition(p,v){}visitAnimateChild(p,v){const I=v.subInstructions.get(v.element);if(I){const te=v.createSubContext(p.options),me=v.currentTimeline.currentTime,Ne=this._visitSubInstructions(I,te,te.options);me!=Ne&&v.transformIntoNewTimeline(Ne)}v.previousNode=p}visitAnimateRef(p,v){const I=v.createSubContext(p.options);I.transformIntoNewTimeline(),this._applyAnimationRefDelays([p.options,p.animation.options],v,I),this.visitReference(p.animation,I),v.transformIntoNewTimeline(I.currentTimeline.currentTime),v.previousNode=p}_applyAnimationRefDelays(p,v,I){for(const te of p){const me=te?.delay;if(me){const Ne="number"==typeof me?me:X(_i(me,te?.params??{},v.errors));I.delayNextStep(Ne)}}}_visitSubInstructions(p,v,I){let me=v.currentTimeline.currentTime;const Ne=null!=I.duration?X(I.duration):null,Fe=null!=I.delay?X(I.delay):null;return 0!==Ne&&p.forEach(st=>{const Dt=v.appendInstructionToTimeline(st,Ne,Fe);me=Math.max(me,Dt.duration+Dt.delay)}),me}visitReference(p,v){v.updateOptions(p.options,!0),Vr(this,p.animation,v),v.previousNode=p}visitSequence(p,v){const I=v.subContextCount;let te=v;const me=p.options;if(me&&(me.params||me.delay)&&(te=v.createSubContext(me),te.transformIntoNewTimeline(),null!=me.delay)){6==te.previousNode.type&&(te.currentTimeline.snapshotCurrentStyles(),te.previousNode=Gn);const Ne=X(me.delay);te.delayNextStep(Ne)}p.steps.length&&(p.steps.forEach(Ne=>Vr(this,Ne,te)),te.currentTimeline.applyStylesToKeyframe(),te.subContextCount>I&&te.transformIntoNewTimeline()),v.previousNode=p}visitGroup(p,v){const I=[];let te=v.currentTimeline.currentTime;const me=p.options&&p.options.delay?X(p.options.delay):0;p.steps.forEach(Ne=>{const Fe=v.createSubContext(p.options);me&&Fe.delayNextStep(me),Vr(this,Ne,Fe),te=Math.max(te,Fe.currentTimeline.currentTime),I.push(Fe.currentTimeline)}),I.forEach(Ne=>v.currentTimeline.mergeTimelineCollectedStyles(Ne)),v.transformIntoNewTimeline(te),v.previousNode=p}_visitTiming(p,v){if(p.dynamic){const I=p.strValue;return Oe(v.params?_i(I,v.params,v.errors):I,v.errors)}return{duration:p.duration,delay:p.delay,easing:p.easing}}visitAnimate(p,v){const I=v.currentAnimateTimings=this._visitTiming(p.timings,v),te=v.currentTimeline;I.delay&&(v.incrementTime(I.delay),te.snapshotCurrentStyles());const me=p.style;5==me.type?this.visitKeyframes(me,v):(v.incrementTime(I.duration),this.visitStyle(me,v),te.applyStylesToKeyframe()),v.currentAnimateTimings=null,v.previousNode=p}visitStyle(p,v){const I=v.currentTimeline,te=v.currentAnimateTimings;!te&&I.hasCurrentStyleProperties()&&I.forwardFrame();const me=te&&te.easing||p.easing;p.isEmptyStep?I.applyEmptyStep(me):I.setStyles(p.styles,me,v.errors,v.options),v.previousNode=p}visitKeyframes(p,v){const I=v.currentAnimateTimings,te=v.currentTimeline.duration,me=I.duration,Fe=v.createSubContext().currentTimeline;Fe.easing=I.easing,p.styles.forEach(st=>{Fe.forwardTime((st.offset||0)*me),Fe.setStyles(st.styles,st.easing,v.errors,v.options),Fe.applyStylesToKeyframe()}),v.currentTimeline.mergeTimelineCollectedStyles(Fe),v.transformIntoNewTimeline(te+me),v.previousNode=p}visitQuery(p,v){const I=v.currentTimeline.currentTime,te=p.options||{},me=te.delay?X(te.delay):0;me&&(6===v.previousNode.type||0==I&&v.currentTimeline.hasCurrentStyleProperties())&&(v.currentTimeline.snapshotCurrentStyles(),v.previousNode=Gn);let Ne=I;const Fe=v.invokeQuery(p.selector,p.originalSelector,p.limit,p.includeSelf,!!te.optional,v.errors);v.currentQueryTotal=Fe.length;let st=null;Fe.forEach((Dt,rn)=>{v.currentQueryIndex=rn;const Xt=v.createSubContext(p.options,Dt);me&&Xt.delayNextStep(me),Dt===v.element&&(st=Xt.currentTimeline),Vr(this,p.animation,Xt),Xt.currentTimeline.applyStylesToKeyframe(),Ne=Math.max(Ne,Xt.currentTimeline.currentTime)}),v.currentQueryIndex=0,v.currentQueryTotal=0,v.transformIntoNewTimeline(Ne),st&&(v.currentTimeline.mergeTimelineCollectedStyles(st),v.currentTimeline.snapshotCurrentStyles()),v.previousNode=p}visitStagger(p,v){const I=v.parentContext,te=v.currentTimeline,me=p.timings,Ne=Math.abs(me.duration),Fe=Ne*(v.currentQueryTotal-1);let st=Ne*v.currentQueryIndex;switch(me.duration<0?"reverse":me.easing){case"reverse":st=Fe-st;break;case"full":st=I.currentStaggerTime}const rn=v.currentTimeline;st&&rn.delayNextStep(st);const Xt=rn.currentTime;Vr(this,p.animation,v),v.previousNode=p,I.currentStaggerTime=te.currentTime-Xt+(te.startTime-I.currentTimeline.startTime)}}const Gn={};class Es{constructor(p,v,I,te,me,Ne,Fe,st){this._driver=p,this.element=v,this.subInstructions=I,this._enterClassName=te,this._leaveClassName=me,this.errors=Ne,this.timelines=Fe,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Gn,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=st||new zi(this._driver,v,0),Fe.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(p,v){if(!p)return;const I=p;let te=this.options;null!=I.duration&&(te.duration=X(I.duration)),null!=I.delay&&(te.delay=X(I.delay));const me=I.params;if(me){let Ne=te.params;Ne||(Ne=this.options.params={}),Object.keys(me).forEach(Fe=>{(!v||!Ne.hasOwnProperty(Fe))&&(Ne[Fe]=_i(me[Fe],Ne,this.errors))})}}_copyOptions(){const p={};if(this.options){const v=this.options.params;if(v){const I=p.params={};Object.keys(v).forEach(te=>{I[te]=v[te]})}}return p}createSubContext(p=null,v,I){const te=v||this.element,me=new Es(this._driver,te,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(te,I||0));return me.previousNode=this.previousNode,me.currentAnimateTimings=this.currentAnimateTimings,me.options=this._copyOptions(),me.updateOptions(p),me.currentQueryIndex=this.currentQueryIndex,me.currentQueryTotal=this.currentQueryTotal,me.parentContext=this,this.subContextCount++,me}transformIntoNewTimeline(p){return this.previousNode=Gn,this.currentTimeline=this.currentTimeline.fork(this.element,p),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(p,v,I){const te={duration:v??p.duration,delay:this.currentTimeline.currentTime+(I??0)+p.delay,easing:""},me=new rs(this._driver,p.element,p.keyframes,p.preStyleProps,p.postStyleProps,te,p.stretchStartingKeyframe);return this.timelines.push(me),te}incrementTime(p){this.currentTimeline.forwardTime(this.currentTimeline.duration+p)}delayNextStep(p){p>0&&this.currentTimeline.delayNextStep(p)}invokeQuery(p,v,I,te,me,Ne){let Fe=[];if(te&&Fe.push(this.element),p.length>0){p=(p=p.replace(bs,"."+this._enterClassName)).replace(Oi,"."+this._leaveClassName);let Dt=this._driver.query(this.element,p,1!=I);0!==I&&(Dt=I<0?Dt.slice(Dt.length+I,Dt.length):Dt.slice(0,I)),Fe.push(...Dt)}return!me&&0==Fe.length&&Ne.push(function Ut(W){return new d.vHH(3014,!1)}()),Fe}}class zi{constructor(p,v,I,te){this._driver=p,this.element=v,this.startTime=I,this._elementTimelineStylesLookup=te,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(v),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(v,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(p){const v=1===this._keyframes.size&&this._pendingStyles.size;this.duration||v?(this.forwardTime(this.currentTime+p),v&&this.snapshotCurrentStyles()):this.startTime+=p}fork(p,v){return this.applyStylesToKeyframe(),new zi(this._driver,p,v||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(p){this.applyStylesToKeyframe(),this.duration=p,this._loadKeyframe()}_updateStyle(p,v){this._localTimelineStyles.set(p,v),this._globalTimelineStyles.set(p,v),this._styleSummary.set(p,{time:this.currentTime,value:v})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(p){p&&this._previousKeyframe.set("easing",p);for(let[v,I]of this._globalTimelineStyles)this._backFill.set(v,I||J),this._currentKeyframe.set(v,J);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(p,v,I,te){v&&this._previousKeyframe.set("easing",v);const me=te&&te.params||{},Ne=function gs(W,p){const v=new Map;let I;return W.forEach(te=>{if("*"===te){I=I||p.keys();for(let me of I)v.set(me,J)}else En(te,v)}),v}(p,this._globalTimelineStyles);for(let[Fe,st]of Ne){const Dt=_i(st,me,I);this._pendingStyles.set(Fe,Dt),this._localTimelineStyles.has(Fe)||this._backFill.set(Fe,this._globalTimelineStyles.get(Fe)??J),this._updateStyle(Fe,Dt)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((p,v)=>{this._currentKeyframe.set(v,p)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((p,v)=>{this._currentKeyframe.has(v)||this._currentKeyframe.set(v,p)}))}snapshotCurrentStyles(){for(let[p,v]of this._localTimelineStyles)this._pendingStyles.set(p,v),this._updateStyle(p,v)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const p=[];for(let v in this._currentKeyframe)p.push(v);return p}mergeTimelineCollectedStyles(p){p._styleSummary.forEach((v,I)=>{const te=this._styleSummary.get(I);(!te||v.time>te.time)&&this._updateStyle(I,v.value)})}buildKeyframes(){this.applyStylesToKeyframe();const p=new Set,v=new Set,I=1===this._keyframes.size&&0===this.duration;let te=[];this._keyframes.forEach((Fe,st)=>{const Dt=En(Fe,new Map,this._backFill);Dt.forEach((rn,Xt)=>{"!"===rn?p.add(Xt):rn===J&&v.add(Xt)}),I||Dt.set("offset",st/this.duration),te.push(Dt)});const me=p.size?Ti(p.values()):[],Ne=v.size?Ti(v.values()):[];if(I){const Fe=te[0],st=new Map(Fe);Fe.set("offset",0),st.set("offset",1),te=[Fe,st]}return Wr(this.element,te,me,Ne,this.duration,this.startTime,this.easing,!1)}}class rs extends zi{constructor(p,v,I,te,me,Ne,Fe=!1){super(p,v,Ne.delay),this.keyframes=I,this.preStyleProps=te,this.postStyleProps=me,this._stretchStartingKeyframe=Fe,this.timings={duration:Ne.duration,delay:Ne.delay,easing:Ne.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let p=this.keyframes,{delay:v,duration:I,easing:te}=this.timings;if(this._stretchStartingKeyframe&&v){const me=[],Ne=I+v,Fe=v/Ne,st=En(p[0]);st.set("offset",0),me.push(st);const Dt=En(p[0]);Dt.set("offset",Pr(Fe)),me.push(Dt);const rn=p.length-1;for(let Xt=1;Xt<=rn;Xt++){let Tn=En(p[Xt]);const Vn=Tn.get("offset");Tn.set("offset",Pr((v+Vn*I)/Ne)),me.push(Tn)}I=Ne,v=0,te="",p=me}return Wr(this.element,p,this.preStyleProps,this.postStyleProps,I,v,te,!0)}}function Pr(W,p=3){const v=Math.pow(10,p-1);return Math.round(W*v)/v}class ht{}const lt=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 Ot extends ht{normalizePropertyName(p,v){return Wi(p)}normalizeStyleValue(p,v,I,te){let me="";const Ne=I.toString().trim();if(lt.has(v)&&0!==I&&"0"!==I)if("number"==typeof I)me="px";else{const Fe=I.match(/^[+-]?[\d\.]+([a-z]*)$/);Fe&&0==Fe[1].length&&te.push(function Et(W,p){return new d.vHH(3005,!1)}())}return Ne+me}}function qt(W,p,v,I,te,me,Ne,Fe,st,Dt,rn,Xt,Tn){return{type:0,element:W,triggerName:p,isRemovalTransition:te,fromState:v,fromStyles:me,toState:I,toStyles:Ne,timelines:Fe,queriedElements:st,preStyleProps:Dt,postStyleProps:rn,totalTime:Xt,errors:Tn}}const Kr={};class ji{constructor(p,v,I){this._triggerName=p,this.ast=v,this._stateStyles=I}match(p,v,I,te){return function fi(W,p,v,I,te){return W.some(me=>me(p,v,I,te))}(this.ast.matchers,p,v,I,te)}buildStyles(p,v,I){let te=this._stateStyles.get("*");return void 0!==p&&(te=this._stateStyles.get(p?.toString())||te),te?te.buildStyles(v,I):new Map}build(p,v,I,te,me,Ne,Fe,st,Dt,rn){const Xt=[],Tn=this.ast.options&&this.ast.options.params||Kr,xn=this.buildStyles(I,Fe&&Fe.params||Kr,Xt),Fn=st&&st.params||Kr,E=this.buildStyles(te,Fn,Xt),S=new Set,y=new Map,x=new Map,G="void"===te,he={params:Hs(Fn,Tn),delay:this.ast.options?.delay},Me=rn?[]:Ii(p,v,this.ast.animation,me,Ne,xn,E,he,Dt,Xt);let at=0;if(Me.forEach(tn=>{at=Math.max(tn.duration+tn.delay,at)}),Xt.length)return qt(v,this._triggerName,I,te,G,xn,E,[],[],y,x,at,Xt);Me.forEach(tn=>{const kn=tn.element,Rr=$n(y,kn,new Set);tn.preStyleProps.forEach(hi=>Rr.add(hi));const or=$n(x,kn,new Set);tn.postStyleProps.forEach(hi=>or.add(hi)),kn!==v&&S.add(kn)});const ft=Ti(S.values());return qt(v,this._triggerName,I,te,G,xn,E,Me,ft,y,x,at)}}function Hs(W,p){const v=mt(p);for(const I in W)W.hasOwnProperty(I)&&null!=W[I]&&(v[I]=W[I]);return v}class po{constructor(p,v,I){this.styles=p,this.defaultParams=v,this.normalizer=I}buildStyles(p,v){const I=new Map,te=mt(this.defaultParams);return Object.keys(p).forEach(me=>{const Ne=p[me];null!==Ne&&(te[me]=Ne)}),this.styles.styles.forEach(me=>{"string"!=typeof me&&me.forEach((Ne,Fe)=>{Ne&&(Ne=_i(Ne,te,v));const st=this.normalizer.normalizePropertyName(Fe,v);Ne=this.normalizer.normalizeStyleValue(Fe,st,Ne,v),I.set(Fe,Ne)})}),I}}class Xs{constructor(p,v,I){this.name=p,this.ast=v,this._normalizer=I,this.transitionFactories=[],this.states=new Map,v.states.forEach(te=>{this.states.set(te.name,new po(te.style,te.options&&te.options.params||{},I))}),qs(this.states,"true","1"),qs(this.states,"false","0"),v.transitions.forEach(te=>{this.transitionFactories.push(new ji(p,te,this.states))}),this.fallbackTransition=function Co(W,p,v){return new ji(W,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Ne,Fe)=>!0],options:null,queryCount:0,depCount:0},p)}(p,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(p,v,I,te){return this.transitionFactories.find(Ne=>Ne.match(p,v,I,te))||null}matchStyles(p,v,I){return this.fallbackTransition.buildStyles(p,v,I)}}function qs(W,p,v){W.has(p)?W.has(v)||W.set(v,W.get(p)):W.has(v)&&W.set(p,W.get(v))}const Y=new Mi;class re{constructor(p,v,I){this.bodyNode=p,this._driver=v,this._normalizer=I,this._animations=new Map,this._playersById=new Map,this.players=[]}register(p,v){const I=[],me=Nr(this._driver,v,I,[]);if(I.length)throw function wr(W){return new d.vHH(3503,!1)}();this._animations.set(p,me)}_buildPlayer(p,v,I){const te=p.element,me=Un(this._normalizer,p.keyframes,v,I);return this._driver.animate(te,me,p.duration,p.delay,p.easing,[],!0)}create(p,v,I={}){const te=[],me=this._animations.get(p);let Ne;const Fe=new Map;if(me?(Ne=Ii(this._driver,v,me,Ur,ai,new Map,new Map,I,Y,te),Ne.forEach(rn=>{const Xt=$n(Fe,rn.element,new Map);rn.postStyleProps.forEach(Tn=>Xt.set(Tn,null))})):(te.push(function Or(){return new d.vHH(3300,!1)}()),Ne=[]),te.length)throw function Ir(W){return new d.vHH(3504,!1)}();Fe.forEach((rn,Xt)=>{rn.forEach((Tn,Vn)=>{rn.set(Vn,this._driver.computeStyle(Xt,Vn,J))})});const Dt=Vt(Ne.map(rn=>{const Xt=Fe.get(rn.element);return this._buildPlayer(rn,new Map,Xt)}));return this._playersById.set(p,Dt),Dt.onDestroy(()=>this.destroy(p)),this.players.push(Dt),Dt}destroy(p){const v=this._getPlayer(p);v.destroy(),this._playersById.delete(p);const I=this.players.indexOf(v);I>=0&&this.players.splice(I,1)}_getPlayer(p){const v=this._playersById.get(p);if(!v)throw function Br(W){return new d.vHH(3301,!1)}();return v}listen(p,v,I,te){const me=ln(v,"","","");return on(this._getPlayer(p),I,me,te),()=>{}}command(p,v,I,te){if("register"==I)return void this.register(p,te[0]);if("create"==I)return void this.create(p,v,te[0]||{});const me=this._getPlayer(p);switch(I){case"play":me.play();break;case"pause":me.pause();break;case"reset":me.reset();break;case"restart":me.restart();break;case"finish":me.finish();break;case"init":me.init();break;case"setPosition":me.setPosition(parseFloat(te[0]));break;case"destroy":this.destroy(p)}}}const N="ng-animate-queued",Re="ng-animate-disabled",is=[],eo={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Pa={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ss="__ng_removed";class to{get params(){return this.options.params}constructor(p,v=""){this.namespaceId=v;const I=p&&p.hasOwnProperty("value");if(this.value=function To(W){return W??null}(I?p.value:p),I){const me=mt(p);delete me.value,this.options=me}else this.options={};this.options.params||(this.options.params={})}absorbOptions(p){const v=p.params;if(v){const I=this.options.params;Object.keys(v).forEach(te=>{null==I[te]&&(I[te]=v[te])})}}}const Vs="void",Go=new to(Vs);class Ra{constructor(p,v,I){this.id=p,this.hostElement=v,this._engine=I,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+p,Li(v,this._hostClassName)}listen(p,v,I,te){if(!this._triggers.has(v))throw function oi(W,p){return new d.vHH(3302,!1)}();if(null==I||0==I.length)throw function Zn(W){return new d.vHH(3303,!1)}();if(!function pi(W){return"start"==W||"done"==W}(I))throw function dt(W,p){return new d.vHH(3400,!1)}();const me=$n(this._elementListeners,p,[]),Ne={name:v,phase:I,callback:te};me.push(Ne);const Fe=$n(this._engine.statesByElement,p,new Map);return Fe.has(v)||(Li(p,pe),Li(p,pe+"-"+v),Fe.set(v,Go)),()=>{this._engine.afterFlush(()=>{const st=me.indexOf(Ne);st>=0&&me.splice(st,1),this._triggers.has(v)||Fe.delete(v)})}}register(p,v){return!this._triggers.has(p)&&(this._triggers.set(p,v),!0)}_getTrigger(p){const v=this._triggers.get(p);if(!v)throw function ot(W){return new d.vHH(3401,!1)}();return v}trigger(p,v,I,te=!0){const me=this._getTrigger(v),Ne=new os(this.id,v,p);let Fe=this._engine.statesByElement.get(p);Fe||(Li(p,pe),Li(p,pe+"-"+v),this._engine.statesByElement.set(p,Fe=new Map));let st=Fe.get(v);const Dt=new to(I,this.id);if(!(I&&I.hasOwnProperty("value"))&&st&&Dt.absorbOptions(st.options),Fe.set(v,Dt),st||(st=Go),Dt.value!==Vs&&st.value===Dt.value){if(!function wo(W,p){const v=Object.keys(W),I=Object.keys(p);if(v.length!=I.length)return!1;for(let te=0;te{ir(p,E),Nn(p,S)})}return}const Tn=$n(this._engine.playersByElement,p,[]);Tn.forEach(Fn=>{Fn.namespaceId==this.id&&Fn.triggerName==v&&Fn.queued&&Fn.destroy()});let Vn=me.matchTransition(st.value,Dt.value,p,Dt.params),xn=!1;if(!Vn){if(!te)return;Vn=me.fallbackTransition,xn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:p,triggerName:v,transition:Vn,fromState:st,toState:Dt,player:Ne,isFallbackTransition:xn}),xn||(Li(p,N),Ne.onStart(()=>{Ps(p,N)})),Ne.onDone(()=>{let Fn=this.players.indexOf(Ne);Fn>=0&&this.players.splice(Fn,1);const E=this._engine.playersByElement.get(p);if(E){let S=E.indexOf(Ne);S>=0&&E.splice(S,1)}}),this.players.push(Ne),Tn.push(Ne),Ne}deregister(p){this._triggers.delete(p),this._engine.statesByElement.forEach(v=>v.delete(p)),this._elementListeners.forEach((v,I)=>{this._elementListeners.set(I,v.filter(te=>te.name!=p))})}clearElementCache(p){this._engine.statesByElement.delete(p),this._elementListeners.delete(p);const v=this._engine.playersByElement.get(p);v&&(v.forEach(I=>I.destroy()),this._engine.playersByElement.delete(p))}_signalRemovalForInnerTriggers(p,v){const I=this._engine.driver.query(p,Z,!0);I.forEach(te=>{if(te[ss])return;const me=this._engine.fetchNamespacesByElement(te);me.size?me.forEach(Ne=>Ne.triggerLeaveAnimation(te,v,!1,!0)):this.clearElementCache(te)}),this._engine.afterFlushAnimationsDone(()=>I.forEach(te=>this.clearElementCache(te)))}triggerLeaveAnimation(p,v,I,te){const me=this._engine.statesByElement.get(p),Ne=new Map;if(me){const Fe=[];if(me.forEach((st,Dt)=>{if(Ne.set(Dt,st.value),this._triggers.has(Dt)){const rn=this.trigger(p,Dt,Vs,te);rn&&Fe.push(rn)}}),Fe.length)return this._engine.markElementAsRemoved(this.id,p,!0,v,Ne),I&&Vt(Fe).onDone(()=>this._engine.processLeaveNode(p)),!0}return!1}prepareLeaveAnimationListeners(p){const v=this._elementListeners.get(p),I=this._engine.statesByElement.get(p);if(v&&I){const te=new Set;v.forEach(me=>{const Ne=me.name;if(te.has(Ne))return;te.add(Ne);const st=this._triggers.get(Ne).fallbackTransition,Dt=I.get(Ne)||Go,rn=new to(Vs),Xt=new os(this.id,Ne,p);this._engine.totalQueuedPlayers++,this._queue.push({element:p,triggerName:Ne,transition:st,fromState:Dt,toState:rn,player:Xt,isFallbackTransition:!0})})}}removeNode(p,v){const I=this._engine;if(p.childElementCount&&this._signalRemovalForInnerTriggers(p,v),this.triggerLeaveAnimation(p,v,!0))return;let te=!1;if(I.totalAnimations){const me=I.players.length?I.playersByQueriedElement.get(p):[];if(me&&me.length)te=!0;else{let Ne=p;for(;Ne=Ne.parentNode;)if(I.statesByElement.get(Ne)){te=!0;break}}}if(this.prepareLeaveAnimationListeners(p),te)I.markElementAsRemoved(this.id,p,!1,v);else{const me=p[ss];(!me||me===eo)&&(I.afterFlush(()=>this.clearElementCache(p)),I.destroyInnerAnimations(p),I._onRemovalComplete(p,v))}}insertNode(p,v){Li(p,this._hostClassName)}drainQueuedTransitions(p){const v=[];return this._queue.forEach(I=>{const te=I.player;if(te.destroyed)return;const me=I.element,Ne=this._elementListeners.get(me);Ne&&Ne.forEach(Fe=>{if(Fe.name==I.triggerName){const st=ln(me,I.triggerName,I.fromState.value,I.toState.value);st._data=p,on(I.player,Fe.phase,st,Fe.callback)}}),te.markedForDestroy?this._engine.afterFlush(()=>{te.destroy()}):v.push(I)}),this._queue=[],v.sort((I,te)=>{const me=I.transition.ast.depCount,Ne=te.transition.ast.depCount;return 0==me||0==Ne?me-Ne:this._engine.driver.containsElement(I.element,te.element)?1:-1})}destroy(p){this.players.forEach(v=>v.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,p)}}class ho{_onRemovalComplete(p,v){this.onRemovalComplete(p,v)}constructor(p,v,I){this.bodyNode=p,this.driver=v,this._normalizer=I,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=(te,me)=>{}}get queuedPlayers(){const p=[];return this._namespaceList.forEach(v=>{v.players.forEach(I=>{I.queued&&p.push(I)})}),p}createNamespace(p,v){const I=new Ra(p,v,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,v)?this._balanceNamespaceList(I,v):(this.newHostElements.set(v,I),this.collectEnterElement(v)),this._namespaceLookup[p]=I}_balanceNamespaceList(p,v){const I=this._namespaceList,te=this.namespacesByHostElement;if(I.length-1>=0){let Ne=!1,Fe=this.driver.getParentElement(v);for(;Fe;){const st=te.get(Fe);if(st){const Dt=I.indexOf(st);I.splice(Dt+1,0,p),Ne=!0;break}Fe=this.driver.getParentElement(Fe)}Ne||I.unshift(p)}else I.push(p);return te.set(v,p),p}register(p,v){let I=this._namespaceLookup[p];return I||(I=this.createNamespace(p,v)),I}registerTrigger(p,v,I){let te=this._namespaceLookup[p];te&&te.register(v,I)&&this.totalAnimations++}destroy(p,v){p&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const I=this._fetchNamespace(p);this.namespacesByHostElement.delete(I.hostElement);const te=this._namespaceList.indexOf(I);te>=0&&this._namespaceList.splice(te,1),I.destroy(v),delete this._namespaceLookup[p]}))}_fetchNamespace(p){return this._namespaceLookup[p]}fetchNamespacesByElement(p){const v=new Set,I=this.statesByElement.get(p);if(I)for(let te of I.values())if(te.namespaceId){const me=this._fetchNamespace(te.namespaceId);me&&v.add(me)}return v}trigger(p,v,I,te){if(Ki(v)){const me=this._fetchNamespace(p);if(me)return me.trigger(v,I,te),!0}return!1}insertNode(p,v,I,te){if(!Ki(v))return;const me=v[ss];if(me&&me.setForRemoval){me.setForRemoval=!1,me.setForMove=!0;const Ne=this.collectedLeaveElements.indexOf(v);Ne>=0&&this.collectedLeaveElements.splice(Ne,1)}if(p){const Ne=this._fetchNamespace(p);Ne&&Ne.insertNode(v,I)}te&&this.collectEnterElement(v)}collectEnterElement(p){this.collectedEnterElements.push(p)}markElementAsDisabled(p,v){v?this.disabledNodes.has(p)||(this.disabledNodes.add(p),Li(p,Re)):this.disabledNodes.has(p)&&(this.disabledNodes.delete(p),Ps(p,Re))}removeNode(p,v,I){if(Ki(v)){const te=p?this._fetchNamespace(p):null;te?te.removeNode(v,I):this.markElementAsRemoved(p,v,!1,I);const me=this.namespacesByHostElement.get(v);me&&me.id!==p&&me.removeNode(v,I)}else this._onRemovalComplete(v,I)}markElementAsRemoved(p,v,I,te,me){this.collectedLeaveElements.push(v),v[ss]={namespaceId:p,setForRemoval:te,hasAnimation:I,removedBeforeQueried:!1,previousTriggersValues:me}}listen(p,v,I,te,me){return Ki(v)?this._fetchNamespace(p).listen(v,I,te,me):()=>{}}_buildInstruction(p,v,I,te,me){return p.transition.build(this.driver,p.element,p.fromState.value,p.toState.value,I,te,p.fromState.options,p.toState.options,v,me)}destroyInnerAnimations(p){let v=this.driver.query(p,Z,!0);v.forEach(I=>this.destroyActiveAnimationsForElement(I)),0!=this.playersByQueriedElement.size&&(v=this.driver.query(p,D,!0),v.forEach(I=>this.finishActiveQueriedAnimationOnElement(I)))}destroyActiveAnimationsForElement(p){const v=this.playersByElement.get(p);v&&v.forEach(I=>{I.queued?I.markedForDestroy=!0:I.destroy()})}finishActiveQueriedAnimationOnElement(p){const v=this.playersByQueriedElement.get(p);v&&v.forEach(I=>I.finish())}whenRenderingDone(){return new Promise(p=>{if(this.players.length)return Vt(this.players).onDone(()=>p());p()})}processLeaveNode(p){const v=p[ss];if(v&&v.setForRemoval){if(p[ss]=eo,v.namespaceId){this.destroyInnerAnimations(p);const I=this._fetchNamespace(v.namespaceId);I&&I.clearElementCache(p)}this._onRemovalComplete(p,v.setForRemoval)}p.classList?.contains(Re)&&this.markElementAsDisabled(p,!1),this.driver.query(p,".ng-animate-disabled",!0).forEach(I=>{this.markElementAsDisabled(I,!1)})}flush(p=-1){let v=[];if(this.newHostElements.size&&(this.newHostElements.forEach((I,te)=>this._balanceNamespaceList(I,te)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let I=0;II()),this._flushFns=[],this._whenQuietFns.length){const I=this._whenQuietFns;this._whenQuietFns=[],v.length?Vt(v).onDone(()=>{I.forEach(te=>te())}):I.forEach(te=>te())}}reportError(p){throw function we(W){return new d.vHH(3402,!1)}()}_flushAnimations(p,v){const I=new Mi,te=[],me=new Map,Ne=[],Fe=new Map,st=new Map,Dt=new Map,rn=new Set;this.disabledNodes.forEach(mn=>{rn.add(mn);const On=this.driver.query(mn,".ng-animate-queued",!0);for(let bn=0;bn{const bn=Ur+Fn++;xn.set(On,bn),mn.forEach(tr=>Li(tr,bn))});const E=[],S=new Set,y=new Set;for(let mn=0;mnS.add(tr)):y.add(On))}const x=new Map,G=no(Tn,Array.from(S));G.forEach((mn,On)=>{const bn=ai+Fn++;x.set(On,bn),mn.forEach(tr=>Li(tr,bn))}),p.push(()=>{Vn.forEach((mn,On)=>{const bn=xn.get(On);mn.forEach(tr=>Ps(tr,bn))}),G.forEach((mn,On)=>{const bn=x.get(On);mn.forEach(tr=>Ps(tr,bn))}),E.forEach(mn=>{this.processLeaveNode(mn)})});const he=[],Me=[];for(let mn=this._namespaceList.length-1;mn>=0;mn--)this._namespaceList[mn].drainQueuedTransitions(v).forEach(bn=>{const tr=bn.player,ar=bn.element;if(he.push(tr),this.collectedEnterElements.length){const ri=ar[ss];if(ri&&ri.setForMove){if(ri.previousTriggersValues&&ri.previousTriggersValues.has(bn.triggerName)){const Qi=ri.previousTriggersValues.get(bn.triggerName),ds=this.statesByElement.get(bn.element);if(ds&&ds.has(bn.triggerName)){const ao=ds.get(bn.triggerName);ao.value=Qi,ds.set(bn.triggerName,ao)}}return void tr.destroy()}}const Ms=!Xt||!this.driver.containsElement(Xt,ar),Ji=x.get(ar),fr=xn.get(ar),ni=this._buildInstruction(bn,I,fr,Ji,Ms);if(ni.errors&&ni.errors.length)return void Me.push(ni);if(Ms)return tr.onStart(()=>ir(ar,ni.fromStyles)),tr.onDestroy(()=>Nn(ar,ni.toStyles)),void te.push(tr);if(bn.isFallbackTransition)return tr.onStart(()=>ir(ar,ni.fromStyles)),tr.onDestroy(()=>Nn(ar,ni.toStyles)),void te.push(tr);const Jo=[];ni.timelines.forEach(ri=>{ri.stretchStartingKeyframe=!0,this.disabledNodes.has(ri.element)||Jo.push(ri)}),ni.timelines=Jo,I.append(ar,ni.timelines),Ne.push({instruction:ni,player:tr,element:ar}),ni.queriedElements.forEach(ri=>$n(Fe,ri,[]).push(tr)),ni.preStyleProps.forEach((ri,Qi)=>{if(ri.size){let ds=st.get(Qi);ds||st.set(Qi,ds=new Set),ri.forEach((ao,lo)=>ds.add(lo))}}),ni.postStyleProps.forEach((ri,Qi)=>{let ds=Dt.get(Qi);ds||Dt.set(Qi,ds=new Set),ri.forEach((ao,lo)=>ds.add(lo))})});if(Me.length){const mn=[];Me.forEach(On=>{mn.push(function yt(W,p){return new d.vHH(3505,!1)}())}),he.forEach(On=>On.destroy()),this.reportError(mn)}const at=new Map,ft=new Map;Ne.forEach(mn=>{const On=mn.element;I.has(On)&&(ft.set(On,On),this._beforeAnimationBuild(mn.player.namespaceId,mn.instruction,at))}),te.forEach(mn=>{const On=mn.element;this._getPreviousPlayers(On,!1,mn.namespaceId,mn.triggerName,null).forEach(tr=>{$n(at,On,[]).push(tr),tr.destroy()})});const tn=E.filter(mn=>So(mn,st,Dt)),kn=new Map;yi(kn,this.driver,y,Dt,J).forEach(mn=>{So(mn,st,Dt)&&tn.push(mn)});const or=new Map;Vn.forEach((mn,On)=>{yi(or,this.driver,new Set(mn),st,"!")}),tn.forEach(mn=>{const On=kn.get(mn),bn=or.get(mn);kn.set(mn,new Map([...On?.entries()??[],...bn?.entries()??[]]))});const hi=[],Gs=[],Ns={};Ne.forEach(mn=>{const{element:On,player:bn,instruction:tr}=mn;if(I.has(On)){if(rn.has(On))return bn.onDestroy(()=>Nn(On,tr.toStyles)),bn.disabled=!0,bn.overrideTotalTime(tr.totalTime),void te.push(bn);let ar=Ns;if(ft.size>1){let Ji=On;const fr=[];for(;Ji=Ji.parentNode;){const ni=ft.get(Ji);if(ni){ar=ni;break}fr.push(Ji)}fr.forEach(ni=>ft.set(ni,ar))}const Ms=this._buildAnimation(bn.namespaceId,tr,at,me,or,kn);if(bn.setRealPlayer(Ms),ar===Ns)hi.push(bn);else{const Ji=this.playersByElement.get(ar);Ji&&Ji.length&&(bn.parentPlayer=Vt(Ji)),te.push(bn)}}else ir(On,tr.fromStyles),bn.onDestroy(()=>Nn(On,tr.toStyles)),Gs.push(bn),rn.has(On)&&te.push(bn)}),Gs.forEach(mn=>{const On=me.get(mn.element);if(On&&On.length){const bn=Vt(On);mn.setRealPlayer(bn)}}),te.forEach(mn=>{mn.parentPlayer?mn.syncPlayerEvents(mn.parentPlayer):mn.destroy()});for(let mn=0;mn!Ms.destroyed);ar.length?ro(this,On,ar):this.processLeaveNode(On)}return E.length=0,hi.forEach(mn=>{this.players.push(mn),mn.onDone(()=>{mn.destroy();const On=this.players.indexOf(mn);this.players.splice(On,1)}),mn.play()}),hi}afterFlush(p){this._flushFns.push(p)}afterFlushAnimationsDone(p){this._whenQuietFns.push(p)}_getPreviousPlayers(p,v,I,te,me){let Ne=[];if(v){const Fe=this.playersByQueriedElement.get(p);Fe&&(Ne=Fe)}else{const Fe=this.playersByElement.get(p);if(Fe){const st=!me||me==Vs;Fe.forEach(Dt=>{Dt.queued||!st&&Dt.triggerName!=te||Ne.push(Dt)})}}return(I||te)&&(Ne=Ne.filter(Fe=>!(I&&I!=Fe.namespaceId||te&&te!=Fe.triggerName))),Ne}_beforeAnimationBuild(p,v,I){const me=v.element,Ne=v.isRemovalTransition?void 0:p,Fe=v.isRemovalTransition?void 0:v.triggerName;for(const st of v.timelines){const Dt=st.element,rn=Dt!==me,Xt=$n(I,Dt,[]);this._getPreviousPlayers(Dt,rn,Ne,Fe,v.toState).forEach(Vn=>{const xn=Vn.getRealPlayer();xn.beforeDestroy&&xn.beforeDestroy(),Vn.destroy(),Xt.push(Vn)})}ir(me,v.fromStyles)}_buildAnimation(p,v,I,te,me,Ne){const Fe=v.triggerName,st=v.element,Dt=[],rn=new Set,Xt=new Set,Tn=v.timelines.map(xn=>{const Fn=xn.element;rn.add(Fn);const E=Fn[ss];if(E&&E.removedBeforeQueried)return new et(xn.duration,xn.delay);const S=Fn!==st,y=function io(W){const p=[];return go(W,p),p}((I.get(Fn)||is).map(at=>at.getRealPlayer())).filter(at=>!!at.element&&at.element===Fn),x=me.get(Fn),G=Ne.get(Fn),he=Un(this._normalizer,xn.keyframes,x,G),Me=this._buildPlayer(xn,he,y);if(xn.subTimeline&&te&&Xt.add(Fn),S){const at=new os(p,Fe,Fn);at.setRealPlayer(Me),Dt.push(at)}return Me});Dt.forEach(xn=>{$n(this.playersByQueriedElement,xn.element,[]).push(xn),xn.onDone(()=>function as(W,p,v){let I=W.get(p);if(I){if(I.length){const te=I.indexOf(v);I.splice(te,1)}0==I.length&&W.delete(p)}return I}(this.playersByQueriedElement,xn.element,xn))}),rn.forEach(xn=>Li(xn,K));const Vn=Vt(Tn);return Vn.onDestroy(()=>{rn.forEach(xn=>Ps(xn,K)),Nn(st,v.toStyles)}),Xt.forEach(xn=>{$n(te,xn,[]).push(Vn)}),Vn}_buildPlayer(p,v,I){return v.length>0?this.driver.animate(p.element,v,p.duration,p.delay,p.easing,I):new et(p.duration,p.delay)}}class os{constructor(p,v,I){this.namespaceId=p,this.triggerName=v,this.element=I,this._player=new et,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(p){this._containsRealPlayer||(this._player=p,this._queuedCallbacks.forEach((v,I)=>{v.forEach(te=>on(p,I,void 0,te))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(p.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(p){this.totalTime=p}syncPlayerEvents(p){const v=this._player;v.triggerCallback&&p.onStart(()=>v.triggerCallback("start")),p.onDone(()=>this.finish()),p.onDestroy(()=>this.destroy())}_queueEvent(p,v){$n(this._queuedCallbacks,p,[]).push(v)}onDone(p){this.queued&&this._queueEvent("done",p),this._player.onDone(p)}onStart(p){this.queued&&this._queueEvent("start",p),this._player.onStart(p)}onDestroy(p){this.queued&&this._queueEvent("destroy",p),this._player.onDestroy(p)}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(p){this.queued||this._player.setPosition(p)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(p){const v=this._player;v.triggerCallback&&v.triggerCallback(p)}}function Ki(W){return W&&1===W.nodeType}function ls(W,p){const v=W.style.display;return W.style.display=p??"none",v}function yi(W,p,v,I,te){const me=[];v.forEach(st=>me.push(ls(st)));const Ne=[];I.forEach((st,Dt)=>{const rn=new Map;st.forEach(Xt=>{const Tn=p.computeStyle(Dt,Xt,te);rn.set(Xt,Tn),(!Tn||0==Tn.length)&&(Dt[ss]=Pa,Ne.push(Dt))}),W.set(Dt,rn)});let Fe=0;return v.forEach(st=>ls(st,me[Fe++])),Ne}function no(W,p){const v=new Map;if(W.forEach(Fe=>v.set(Fe,[])),0==p.length)return v;const te=new Set(p),me=new Map;function Ne(Fe){if(!Fe)return 1;let st=me.get(Fe);if(st)return st;const Dt=Fe.parentNode;return st=v.has(Dt)?Dt:te.has(Dt)?1:Ne(Dt),me.set(Fe,st),st}return p.forEach(Fe=>{const st=Ne(Fe);1!==st&&v.get(st).push(Fe)}),v}function Li(W,p){W.classList?.add(p)}function Ps(W,p){W.classList?.remove(p)}function ro(W,p,v){Vt(v).onDone(()=>W.processLeaveNode(p))}function go(W,p){for(let v=0;vte.add(me)):p.set(W,I),v.delete(W),!0}class so{constructor(p,v,I){this.bodyNode=p,this._driver=v,this._normalizer=I,this._triggerCache={},this.onRemovalComplete=(te,me)=>{},this._transitionEngine=new ho(p,v,I),this._timelineEngine=new re(p,v,I),this._transitionEngine.onRemovalComplete=(te,me)=>this.onRemovalComplete(te,me)}registerTrigger(p,v,I,te,me){const Ne=p+"-"+te;let Fe=this._triggerCache[Ne];if(!Fe){const st=[],rn=Nr(this._driver,me,st,[]);if(st.length)throw function nr(W,p){return new d.vHH(3404,!1)}();Fe=function Ds(W,p,v){return new Xs(W,p,v)}(te,rn,this._normalizer),this._triggerCache[Ne]=Fe}this._transitionEngine.registerTrigger(v,te,Fe)}register(p,v){this._transitionEngine.register(p,v)}destroy(p,v){this._transitionEngine.destroy(p,v)}onInsert(p,v,I,te){this._transitionEngine.insertNode(p,v,I,te)}onRemove(p,v,I){this._transitionEngine.removeNode(p,v,I)}disableAnimations(p,v){this._transitionEngine.markElementAsDisabled(p,v)}process(p,v,I,te){if("@"==I.charAt(0)){const[me,Ne]=Qe(I);this._timelineEngine.command(me,v,Ne,te)}else this._transitionEngine.trigger(p,v,I,te)}listen(p,v,I,te,me){if("@"==I.charAt(0)){const[Ne,Fe]=Qe(I);return this._timelineEngine.listen(Ne,v,Fe,me)}return this._transitionEngine.listen(p,v,I,te,me)}flush(p=-1){this._transitionEngine.flush(p)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(p){this._transitionEngine.afterFlushAnimationsDone(p)}}let ua=(()=>{class W{static#e=this.initialStylesByElement=new WeakMap;constructor(v,I,te){this._element=v,this._startStyles=I,this._endStyles=te,this._state=0;let me=W.initialStylesByElement.get(v);me||W.initialStylesByElement.set(v,me=new Map),this._initialStyles=me}start(){this._state<1&&(this._startStyles&&Nn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Nn(this._element,this._initialStyles),this._endStyles&&(Nn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(W.initialStylesByElement.delete(this._element),this._startStyles&&(ir(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ir(this._element,this._endStyles),this._endStyles=null),Nn(this._element,this._initialStyles),this._state=3)}}return W})();function Cs(W){let p=null;return W.forEach((v,I)=>{(function mo(W){return"display"===W||"position"===W})(I)&&(p=p||new Map,p.set(I,v))}),p}class Rs{constructor(p,v,I,te){this.element=p,this.keyframes=v,this.options=I,this._specialStyles=te,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=I.duration,this._delay=I.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(p=>p()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const p=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,p,this.options),this._finalKeyframe=p.length?p[p.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(p){const v=[];return p.forEach(I=>{v.push(Object.fromEntries(I))}),v}_triggerWebAnimation(p,v,I){return p.animate(this._convertKeyframesToObject(v),I)}onStart(p){this._originalOnStartFns.push(p),this._onStartFns.push(p)}onDone(p){this._originalOnDoneFns.push(p),this._onDoneFns.push(p)}onDestroy(p){this._onDestroyFns.push(p)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(p=>p()),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(p=>p()),this._onDestroyFns=[])}setPosition(p){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=p*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const p=new Map;this.hasStarted()&&this._finalKeyframe.forEach((I,te)=>{"offset"!==te&&p.set(te,this._finished?I:jn(this.element,te))}),this.currentSnapshot=p}triggerCallback(p){const v="start"===p?this._onStartFns:this._onDoneFns;v.forEach(I=>I()),v.length=0}}class da{validateStyleProperty(p){return!0}validateAnimatableStyleProperty(p){return!0}matchesElement(p,v){return!1}containsElement(p,v){return pr(p,v)}getParentElement(p){return Ue(p)}query(p,v,I){return jr(p,v,I)}computeStyle(p,v,I){return window.getComputedStyle(p)[v]}animate(p,v,I,te,me,Ne=[]){const st={duration:I,delay:te,fill:0==te?"both":"forwards"};me&&(st.easing=me);const Dt=new Map,rn=Ne.filter(Vn=>Vn instanceof Rs);(function Bi(W,p){return 0===W||0===p})(I,te)&&rn.forEach(Vn=>{Vn.currentSnapshot.forEach((xn,Fn)=>Dt.set(Fn,xn))});let Xt=function cn(W){return W.length?W[0]instanceof Map?W:W.map(p=>$t(p)):[]}(v).map(Vn=>En(Vn));Xt=function Gi(W,p,v){if(v.size&&p.length){let I=p[0],te=[];if(v.forEach((me,Ne)=>{I.has(Ne)||te.push(Ne),I.set(Ne,me)}),te.length)for(let me=1;meNe.set(Fe,jn(W,Fe)))}}return p}(p,Xt,Dt);const Tn=function ca(W,p){let v=null,I=null;return Array.isArray(p)&&p.length?(v=Cs(p[0]),p.length>1&&(I=Cs(p[p.length-1]))):p instanceof Map&&(v=Cs(p)),v||I?new ua(W,v,I):null}(p,Xt);return new Rs(p,Xt,st,Tn)}}let fa=(()=>{class W extends Ee{constructor(v,I){super(),this._nextAnimationId=0,this._renderer=v.createRenderer(I.body,{id:"0",encapsulation:d.ifc.None,styles:[],data:{animation:[]}})}build(v){const I=this._nextAnimationId.toString();this._nextAnimationId++;const te=Array.isArray(v)?ae(v):v;return Zo(this._renderer,null,I,"register",[te]),new pa(I,this._renderer)}static#e=this.\u0275fac=function(I){return new(I||W)(d.LFG(d.FYo),d.LFG(w.K0))};static#t=this.\u0275prov=d.Yz7({token:W,factory:W.\u0275fac})}return W})();class pa extends Ze{constructor(p,v){super(),this._id=p,this._renderer=v}create(p,v){return new hl(this._id,p,v||{},this._renderer)}}class hl{constructor(p,v,I,te){this.id=p,this.element=v,this._renderer=te,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",I)}_listen(p,v){return this._renderer.listen(this.element,`@@${this.id}:${p}`,v)}_command(p,...v){return Zo(this._renderer,this.element,this.id,p,v)}onDone(p){this._listen("done",p)}onStart(p){this._listen("start",p)}onDestroy(p){this._listen("destroy",p)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(p){this._command("setPosition",p)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Zo(W,p,v,I,te){return W.setProperty(p,`@@${v}:${I}`,te)}const zo="@.disabled";let Ko=(()=>{class W{constructor(v,I,te){this.delegate=v,this.engine=I,this._zone=te,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,I.onRemovalComplete=(me,Ne)=>{const Fe=Ne?.parentNode(me);Fe&&Ne.removeChild(Fe,me)}}createRenderer(v,I){const me=this.delegate.createRenderer(v,I);if(!(v&&I&&I.data&&I.data.animation)){let rn=this._rendererCache.get(me);return rn||(rn=new _o("",me,this.engine,()=>this._rendererCache.delete(me)),this._rendererCache.set(me,rn)),rn}const Ne=I.id,Fe=I.id+"-"+this._currentId;this._currentId++,this.engine.register(Fe,v);const st=rn=>{Array.isArray(rn)?rn.forEach(st):this.engine.registerTrigger(Ne,Fe,v,rn.name,rn)};return I.data.animation.forEach(st),new ha(this,Fe,me,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(v,I,te){v>=0&&vI(te)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(me=>{const[Ne,Fe]=me;Ne(Fe)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([I,te]))}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()}static#e=this.\u0275fac=function(I){return new(I||W)(d.LFG(d.FYo),d.LFG(so),d.LFG(d.R0b))};static#t=this.\u0275prov=d.Yz7({token:W,factory:W.\u0275fac})}return W})();class _o{constructor(p,v,I,te){this.namespaceId=p,this.delegate=v,this.engine=I,this._onDestroy=te}get data(){return this.delegate.data}destroyNode(p){this.delegate.destroyNode?.(p)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(p,v){return this.delegate.createElement(p,v)}createComment(p){return this.delegate.createComment(p)}createText(p){return this.delegate.createText(p)}appendChild(p,v){this.delegate.appendChild(p,v),this.engine.onInsert(this.namespaceId,v,p,!1)}insertBefore(p,v,I,te=!0){this.delegate.insertBefore(p,v,I),this.engine.onInsert(this.namespaceId,v,p,te)}removeChild(p,v,I){this.engine.onRemove(this.namespaceId,v,this.delegate)}selectRootElement(p,v){return this.delegate.selectRootElement(p,v)}parentNode(p){return this.delegate.parentNode(p)}nextSibling(p){return this.delegate.nextSibling(p)}setAttribute(p,v,I,te){this.delegate.setAttribute(p,v,I,te)}removeAttribute(p,v,I){this.delegate.removeAttribute(p,v,I)}addClass(p,v){this.delegate.addClass(p,v)}removeClass(p,v){this.delegate.removeClass(p,v)}setStyle(p,v,I,te){this.delegate.setStyle(p,v,I,te)}removeStyle(p,v,I){this.delegate.removeStyle(p,v,I)}setProperty(p,v,I){"@"==v.charAt(0)&&v==zo?this.disableAnimations(p,!!I):this.delegate.setProperty(p,v,I)}setValue(p,v){this.delegate.setValue(p,v)}listen(p,v,I){return this.delegate.listen(p,v,I)}disableAnimations(p,v){this.engine.disableAnimations(p,v)}}class ha extends _o{constructor(p,v,I,te,me){super(v,I,te,me),this.factory=p,this.namespaceId=v}setProperty(p,v,I){"@"==v.charAt(0)?"."==v.charAt(1)&&v==zo?this.disableAnimations(p,I=void 0===I||!!I):this.engine.process(this.namespaceId,p,v.slice(1),I):this.delegate.setProperty(p,v,I)}listen(p,v,I){if("@"==v.charAt(0)){const te=function Ao(W){switch(W){case"body":return document.body;case"document":return document;case"window":return window;default:return W}}(p);let me=v.slice(1),Ne="";return"@"!=me.charAt(0)&&([me,Ne]=function Na(W){const p=W.indexOf(".");return[W.substring(0,p),W.slice(p+1)]}(me)),this.engine.listen(this.namespaceId,te,me,Ne,Fe=>{this.factory.scheduleListenerCallback(Fe._data||-1,I,Fe)})}return this.delegate.listen(p,v,I)}}const T=[{provide:Ee,useClass:fa},{provide:ht,useFactory:function oo(){return new Ot}},{provide:so,useClass:(()=>{class W extends so{constructor(v,I,te,me){super(v.body,I,te)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(I){return new(I||W)(d.LFG(w.K0),d.LFG(Hr),d.LFG(ht),d.LFG(d.z2F))};static#t=this.\u0275prov=d.Yz7({token:W,factory:W.\u0275fac})}return W})()},{provide:d.FYo,useFactory:function xo(W,p,v){return new Ko(W,p,v)},deps:[t.se,so,d.R0b]}],le=[{provide:Hr,useFactory:()=>new da},{provide:d.QbO,useValue:"BrowserAnimations"},...T],U=[{provide:Hr,useClass:Ar},{provide:d.QbO,useValue:"NoopAnimations"},...T];let ee=(()=>{class W{static withConfig(v){return{ngModule:W,providers:v.disableAnimations?U:le}}static#e=this.\u0275fac=function(I){return new(I||W)};static#t=this.\u0275mod=d.oAB({type:W});static#n=this.\u0275inj=d.cJS({providers:le,imports:[t.b2]})}return W})();var Jt=a(1523),Bn=a(9515);class dr{http;prefix;suffix;constructor(p,v="/assets/i18n/",I=".json"){this.http=p,this.prefix=v,this.suffix=I}getTranslation(p){return this.http.get(`${this.prefix}${p}${this.suffix}`)}}function yr(W,p){if(1&W&&(d.TgZ(0,"li")(1,"h2")(2,"a",2),d._uU(3),d.ALo(4,"translate"),d.qZA()()()),2&W){const v=p.$implicit;let I;d.xp6(2),d.Q6J("routerLink","/"+v.path),d.xp6(1),d.hij(" ",d.lcZ(4,2,(null!==(I=v.name)&&void 0!==I?I:v.path)+".title")," ")}}let Kn=(()=>{class W{constructor(){this.sections=[{path:"dashboard"},{path:"presence-control"},{path:"open-absences"},{path:"edit-absences"},{path:"evaluate-absences"},{path:"events"},{path:"events/current",name:"events.current"},{path:"my-absences"},{path:"my-profile"},{path:"my-grades"},{path:"my-settings"}]}static#e=this.\u0275fac=function(I){return new(I||W)};static#t=this.\u0275cmp=d.Xpm({type:W,selectors:[["erz-home"]],decls:2,vars:1,consts:[[1,"mt-3"],[4,"ngFor","ngForOf"],[3,"routerLink"]],template:function(I,te){1&I&&(d.TgZ(0,"ul",0),d.YNc(1,yr,5,4,"li",1),d.qZA()),2&I&&(d.xp6(1),d.Q6J("ngForOf",te.sections))},dependencies:[w.sg,Jt.rH,Bn.X$],changeDetection:0})}return W})();var Jr=a(813);function Jn(){return()=>{const W=(0,d.f3M)(Jr.e),p=(0,d.f3M)(Jt.F0);return!!W.isAuthenticated||(p.navigate(["/unauthenticated"]),!1)}}let ei=(()=>{class W{constructor(){}static#e=this.\u0275fac=function(I){return new(I||W)};static#t=this.\u0275cmp=d.Xpm({type:W,selectors:[["erz-unauthenticated"]],decls:4,vars:3,consts:[[1,"erz-container"],[1,"alert","alert-danger","my-3"]],template:function(I,te){1&I&&(d.TgZ(0,"div",0)(1,"div",1),d._uU(2),d.ALo(3,"translate"),d.qZA()()),2&I&&(d.xp6(2),d.hij(" ",d.lcZ(3,1,"unauthenticated.message")," "))},dependencies:[Bn.X$],encapsulation:2})}return W})();const Ei=[{path:"dashboard",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(592),a.e(66)]).then(a.bind(a,66)).then(W=>W.DashboardModule)},{path:"presence-control",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(105),a.e(592),a.e(373)]).then(a.bind(a,3373)).then(W=>W.PresenceControlModule)},{path:"open-absences",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(592),a.e(480)]).then(a.bind(a,4480)).then(W=>W.OpenAbsencesModule)},{path:"edit-absences",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(105),a.e(162),a.e(592),a.e(403)]).then(a.bind(a,9403)).then(W=>W.EditAbsencesModule)},{path:"evaluate-absences",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(162),a.e(592),a.e(685)]).then(a.bind(a,7685)).then(W=>W.EvaluateAbsencesModule)},{path:"events",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(105),a.e(592),a.e(218)]).then(a.bind(a,6218)).then(W=>W.EventsModule)},{path:"my-absences",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(105),a.e(162),a.e(592),a.e(862)]).then(a.bind(a,862)).then(W=>W.MyAbsencesModule)},{path:"my-profile",canActivate:[Jn()],loadChildren:()=>a.e(958).then(a.bind(a,1958)).then(W=>W.MyProfileModule)},{path:"my-grades",canActivate:[Jn()],loadChildren:()=>a.e(232).then(a.bind(a,2150)).then(W=>W.MyGradesModule)},{path:"my-settings",canActivate:[Jn()],loadChildren:()=>a.e(269).then(a.bind(a,7269)).then(W=>W.MySettingsModule)},{path:"unauthenticated",component:ei},{path:"",component:Kn,pathMatch:"full"}];let Ai=(()=>{class W{static#e=this.\u0275fac=function(I){return new(I||W)};static#t=this.\u0275mod=d.oAB({type:W});static#n=this.\u0275inj=d.cJS({imports:[Jt.Bz.forRoot(Ei,{useHash:!0}),Jt.Bz]})}return W})();var Hi=a(6306),Fi=a(6232),ti=a(4141),cs=a(275);const Ts=new d.OlP("Navigator API",{providedIn:"root",factory:()=>navigator});var er=a(8299),ws=a(6869),li=a(253);function Di(W,p){if(1&W&&(d.TgZ(0,"i",4),d._uU(1),d.qZA()),2&W){const v=d.oxw().$implicit;d.xp6(1),d.Oqu(v.icon)}}function ga(W,p){if(1&W){const v=d.EpF();d.TgZ(0,"ngb-toast",1),d.NdJ("hidden",function(){const me=d.CHM(v).$implicit,Ne=d.oxw();return d.KtG(Ne.toastService.remove(me))}),d.TgZ(1,"div",2),d.YNc(2,Di,2,1,"i",3),d.TgZ(3,"span"),d._uU(4),d.qZA()()()}if(2&W){const v=p.$implicit;d.Tol(v.classname),d.Q6J("header",v.header)("autohide",!0),d.xp6(2),d.Q6J("ngIf",v.icon),d.xp6(2),d.Oqu(v.message)}}let Oo=(()=>{class W{constructor(v){this.toastService=v}static#e=this.\u0275fac=function(I){return new(I||W)(d.Y36(ws.k))};static#t=this.\u0275cmp=d.Xpm({type:W,selectors:[["erz-toast"]],decls:2,vars:3,consts:[[3,"header","class","autohide","hidden",4,"ngFor","ngForOf"],[3,"header","autohide","hidden"],[1,"d-flex","gap-2"],["class","material-icons",4,"ngIf"],[1,"material-icons"]],template:function(I,te){1&I&&(d.YNc(0,ga,5,6,"ngb-toast",0),d.ALo(1,"async")),2&I&&d.Q6J("ngForOf",d.lcZ(1,1,te.toastService.toasts$))},dependencies:[w.sg,w.O5,li.Iv,w.Ov],styles:["[_nghost-%COMP%]{position:fixed;top:0;right:0;margin:.5em;z-index:1200}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{font-size:medium}"]})}return W})(),Yi=(()=>{class W{constructor(v,I,te,me,Ne){this.router=v,this.toastService=te,this.settings=me,this.navigator=Ne,this.router.initialNavigation(),I.initialize(),this.checkSettings()}checkSettings(){(0,cs.Jx)(ti.Zr)(this.settings).pipe((0,Hi.K)(v=>(console.error(String(v)),this.toastService.error("Please check the contents of the settings.js file (see Console output for more details).","Invalid Settings"),Fi.E))).subscribe()}static#e=this.\u0275fac=function(I){return new(I||W)(d.Y36(Jt.F0),d.Y36(er.D),d.Y36(ws.k),d.Y36(ti.L6),d.Y36(Ts))};static#t=this.\u0275cmp=d.Xpm({type:W,selectors:[["ng-component"]],decls:2,vars:0,consts:[["aria-live","polite","aria-atomic","true"]],template:function(I,te){1&I&&d._UZ(0,"erz-toast",0)(1,"router-outlet")},dependencies:[Jt.lC,Oo],styles:["[_nghost-%COMP%]{width:100%}"],changeDetection:0})}return W})(),Vi=(()=>{class W{constructor(v,I,te){this.ngZone=v,this.translate=I,this.toastService=te}handleError(v){console.error(String(v)),v instanceof L.UA||this.notifyError()}notifyError(){this.ngZone.run(()=>{this.toastService.error(this.translate.instant("global.app-errors.exception-message"),this.translate.instant("global.app-errors.exception-title"))})}static#e=this.\u0275fac=function(I){return new(I||W)(d.LFG(d.R0b),d.LFG(Bn.sK),d.LFG(ws.k))};static#t=this.\u0275prov=d.Yz7({token:W,factory:W.\u0275fac})}return W})();var gl=a(5619),Io=a(1687),$s=a(8645),us=a(8504),Po=a(7081),ma=a(7921),xi=a(9773),vo=a(2460),Fa=a(7938),ka=a(6567),Hn=a(4703),Yo=a(9410);const _a=["notificationspopup"];function Ro(W,p){if(1&W){const v=d.EpF();d.TgZ(0,"div",16)(1,"div",17),d._UZ(2,"div",18),d.ALo(3,"safe"),d.ALo(4,"xss"),d._UZ(5,"div",19),d.ALo(6,"safe"),d.ALo(7,"xss"),d.qZA(),d.TgZ(8,"div",20)(9,"button",21),d.NdJ("click",function(){const me=d.CHM(v).$implicit,Ne=d.oxw(3);return d.KtG(Ne.deleteNotification(me.id))}),d.O4$(),d.TgZ(10,"svg",22),d._UZ(11,"path",23)(12,"path",24),d.qZA()()()()}if(2&W){const v=p.$implicit,I=d.oxw(3);d.xp6(2),d.Q6J("innerHTML",d.xi3(3,2,d.xi3(4,5,v.subject,I.xssOptions),"html"),d.oJD),d.xp6(3),d.Q6J("innerHTML",d.xi3(6,8,d.xi3(7,11,v.body,I.xssOptions),"html"),d.oJD)}}function Ba(W,p){if(1&W&&(d.TgZ(0,"div",14),d.YNc(1,Ro,13,14,"div",15),d.qZA()),2&W){const v=d.oxw().erzLet;d.xp6(1),d.Q6J("ngForOf",v.notifications)}}function Ua(W,p){1&W&&(d.TgZ(0,"div",25),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&W&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"my-notifications.none")," "))}function Ws(W,p){if(1&W){const v=d.EpF();d.TgZ(0,"div",1)(1,"button",2),d.NdJ("click",function(){d.CHM(v);const te=d.oxw();return d.KtG(te.toggleNotificationsPopup())}),d.ALo(2,"translate"),d.TgZ(3,"span",3),d.O4$(),d.TgZ(4,"svg",4),d._UZ(5,"path",5),d.qZA()(),d.kcU(),d.TgZ(6,"span",6),d._uU(7),d.qZA()(),d.TgZ(8,"div",7,8)(10,"div")(11,"div",9)(12,"span",10),d._uU(13),d.ALo(14,"translate"),d.qZA(),d.TgZ(15,"button",11),d.NdJ("click",function(){d.CHM(v);const te=d.oxw();return d.KtG(te.deleteAll())}),d._uU(16),d.ALo(17,"translate"),d.qZA()(),d.YNc(18,Ba,2,1,"div",12),d.YNc(19,Ua,3,3,"ng-template",null,13,d.W1O),d.qZA()()()}if(2&W){const v=p.erzLet,I=d.MAs(20);d.xp6(1),d.uIk("aria-label",d.lcZ(2,11,"my-notifications.title")),d.xp6(2),d.Q6J("ngClass",v.isAuthenticated?"":"notifications-bell-hidden"),d.xp6(1),d.Q6J("ngClass",v.isAuthenticated?"":"notifications-bell-hidden"),d.xp6(2),d.Q6J("hidden",v.notificationsCount<1)("ngClass",v.isAuthenticated?"notifications-bell-counter-visible":"notifications-bell-counter-hidden"),d.xp6(1),d.Oqu(v.notificationsCount),d.xp6(6),d.hij(" ",d.lcZ(14,13,"my-notifications.title")," "),d.xp6(2),d.Q6J("disabled",v.notificationsCount<1),d.xp6(1),d.hij(" ",d.lcZ(17,15,"my-notifications.deleteAll")," "),d.xp6(2),d.Q6J("ngIf",v.notificationsCount>0)("ngIfElse",I)}}const Ss=function(W,p,v){return{notifications:W,notificationsCount:p,isAuthenticated:v}};let ml=(()=>{class W{constructor(v,I,te){this.settings=I,this.userSettings=te,this.notifications$=this.loadNotifications().pipe((0,Po.d)()),this.isAuthenticated$=new gl.X(!1),this.refetchTimer$=(0,Io.F)(1e3*this.settings.notificationRefreshTime).pipe((0,ma.O)(null)),this.deleteAllNotifications$=new $s.x,this.deleteNotification$=new $s.x,this.toggleNotificationsPopup$=new $s.x,this.destroy$=new $s.x,this.xssOptions={whiteList:{br:[],div:["style"],span:["style"],a:["href"],ul:[],ol:[],li:[],sup:[],sub:[],code:[],cite:[]},css:!1},v.initialize(),this.notifications$.pipe((0,xi.R)(this.destroy$)).subscribe(()=>this.isAuthenticated$.next(!0)),this.toggleNotificationsPopup$.pipe((0,vo.M)(this.isAuthenticated$),(0,xi.R)(this.destroy$)).subscribe(([me,Ne])=>{me&&!0===Ne&&(me.style.display="block"===me.style.display?"none":"block")}),this.refetchTimer$.pipe((0,xi.R)(this.destroy$)).subscribe(()=>this.userSettings.refetch()),this.deleteNotification$.pipe((0,vo.M)(this.notifications$),(0,j.w)(([me,Ne])=>this.userSettings.saveNotificationData(this.deleteNotificationFromArray(me,Ne))),(0,xi.R)(this.destroy$)).subscribe(),this.deleteAllNotifications$.pipe((0,j.w)(()=>this.userSettings.saveNotificationData([])),(0,xi.R)(this.destroy$)).subscribe()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}toggleNotificationsPopup(){this.popup.nativeElement&&this.toggleNotificationsPopup$.next(this.popup.nativeElement)}deleteNotification(v){this.deleteNotification$.next(v)}deleteAll(){this.deleteAllNotifications$.next()}deleteNotificationFromArray(v,I){return I.filter(te=>te.id!==v)}loadNotifications(){return this.userSettings.getNotificationData().pipe((0,Hi.K)(v=>401===v.status?(this.isAuthenticated$.next(!1),[]):(0,us._)(()=>v)))}static#e=this.\u0275fac=function(I){return new(I||W)(d.Y36(er.D),d.Y36(ti.L6),d.Y36(Fa.s))};static#t=this.\u0275cmp=d.Xpm({type:W,selectors:[["ng-component"]],viewQuery:function(I,te){if(1&I&&d.Gf(_a,5),2&I){let me;d.iGM(me=d.CRH())&&(te.popup=me.first)}},decls:4,vars:11,consts:[["class","notifications-container",4,"erzLet"],[1,"notifications-container"],["type","button","id","notifications-button",1,"btn","btn-link","notifications-button","p-0","m-0",3,"click"],[1,"notifications-bell",3,"ngClass"],["xmlns","http://www.w3.org/2000/svg","height","32px","viewBox","0 0 24 24","width","32px","fill","#000000",1,"notifications-bell",3,"ngClass"],["d","M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"],["id","notifications-bell-counter",1,"notifications-bell-counter",3,"hidden","ngClass"],["id","notifications-popup",1,"notifications-popup","border"],["notificationspopup",""],[1,"d-flex","justify-content-between","border-bottom","p-3","align-items-center"],[1,"pe-3"],["type","button","id","notifications-delete-all",1,"btn","btn-primary",3,"disabled","click"],["class","notifications-popup-data",4,"ngIf","ngIfElse"],["noNotifications",""],[1,"notifications-popup-data"],["class","border-bottom p-3",4,"ngFor","ngForOf"],[1,"border-bottom","p-3"],[1,"d-flex","justify-content-between"],[1,"text-start","pe-3",3,"innerHTML"],[1,"text-end",3,"innerHTML"],[1,"pt-1","text-end"],["type","button",1,"btn","btn-link","p-0","notifications-delete-notification",3,"click"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px"],["d","M0 0h24v24H0z","fill","none"],["d","M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"],[1,"d-flex","p-3","align-items-center","p-2"]],template:function(I,te){if(1&I&&(d.YNc(0,Ws,21,17,"div",0),d.ALo(1,"async"),d.ALo(2,"async"),d.ALo(3,"async")),2&I){let me;d.Q6J("erzLet",d.kEZ(7,Ss,d.lcZ(1,1,te.notifications$),(null==(me=d.lcZ(2,3,te.notifications$))?null:me.length)||0,d.lcZ(3,5,te.isAuthenticated$)))}},dependencies:[w.mk,w.sg,w.O5,ka.e,w.Ov,Bn.X$,Hn.y,Yo.Q],styles:['@charset "UTF-8";:host{--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;position:relative}:root,[data-bs-theme=light]{--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: rgb(208, 16, 24);--bs-orange: rgb(239, 124, 0);--bs-yellow: rgb(255, 168, 20);--bs-green: rgb(61, 134, 8);--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: rgba(78, 78, 78, .95);--bs-secondary: rgb(222, 222, 222);--bs-success: rgb(61, 134, 8);--bs-info: #0dcaf0;--bs-warning: rgb(255, 168, 20);--bs-danger: rgb(208, 16, 24);--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 78, 78, 78;--bs-secondary-rgb: 222, 222, 222;--bs-success-rgb: 61, 134, 8;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 168, 20;--bs-danger-rgb: 208, 16, 24;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-primary-text-emphasis: rgba(29, 29, 29, .98);--bs-secondary-text-emphasis: #595959;--bs-success-text-emphasis: #183603;--bs-info-text-emphasis: #055160;--bs-warning-text-emphasis: #664308;--bs-danger-text-emphasis: #53060a;--bs-light-text-emphasis: #495057;--bs-dark-text-emphasis: #495057;--bs-primary-bg-subtle: rgba(222, 222, 222, .99);--bs-secondary-bg-subtle: #f8f8f8;--bs-success-bg-subtle: #d8e7ce;--bs-info-bg-subtle: #cff4fc;--bs-warning-bg-subtle: #ffeed0;--bs-danger-bg-subtle: #f6cfd1;--bs-light-bg-subtle: #fcfcfd;--bs-dark-bg-subtle: #ced4da;--bs-primary-border-subtle: rgba(188, 188, 188, .98);--bs-secondary-border-subtle: #f2f2f2;--bs-success-border-subtle: #b1cf9c;--bs-info-border-subtle: #9eeaf9;--bs-warning-border-subtle: #ffdca1;--bs-danger-border-subtle: #ec9fa3;--bs-light-border-subtle: #e9ecef;--bs-dark-border-subtle: #adb5bd;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-font-sans-serif: "Roboto", sans-serif;--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 300;--bs-body-line-height: 1.625;--bs-body-color: rgb(0, 0, 0);--bs-body-color-rgb: 0, 0, 0;--bs-body-bg: rgb(255, 255, 255);--bs-body-bg-rgb: 255, 255, 255;--bs-emphasis-color: #000;--bs-emphasis-color-rgb: 0, 0, 0;--bs-secondary-color: rgba(0, 0, 0, .75);--bs-secondary-color-rgb: 0, 0, 0;--bs-secondary-bg: #e9ecef;--bs-secondary-bg-rgb: 233, 236, 239;--bs-tertiary-color: rgba(0, 0, 0, .5);--bs-tertiary-color-rgb: 0, 0, 0;--bs-tertiary-bg: #f8f9fa;--bs-tertiary-bg-rgb: 248, 249, 250;--bs-heading-color: inherit;--bs-link-color: rgb(0, 0, 0);--bs-link-color-rgb: 0, 0, 0;--bs-link-decoration: underline;--bs-link-hover-color: rgb(234, 22, 31);--bs-link-hover-color-rgb: 234, 22, 31;--bs-code-color: #d63384;--bs-highlight-color: rgb(0, 0, 0);--bs-highlight-bg: #ffeed0;--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, .175);--bs-border-radius: .375rem;--bs-border-radius-sm: .25rem;--bs-border-radius-lg: .5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-xxl: 2rem;--bs-border-radius-2xl: var(--bs-border-radius-xxl);--bs-border-radius-pill: 50rem;--bs-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-box-shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, .075);--bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, .175);--bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, .075);--bs-focus-ring-width: .25rem;--bs-focus-ring-opacity: .25;--bs-focus-ring-color: rgba(78, 78, 78, .25);--bs-form-valid-color: rgb(61, 134, 8);--bs-form-valid-border-color: rgb(61, 134, 8);--bs-form-invalid-color: rgb(208, 16, 24);--bs-form-invalid-border-color: rgb(208, 16, 24)}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color: #dee2e6;--bs-body-color-rgb: 222, 226, 230;--bs-body-bg: #212529;--bs-body-bg-rgb: 33, 37, 41;--bs-emphasis-color: #fff;--bs-emphasis-color-rgb: 255, 255, 255;--bs-secondary-color: rgba(222, 226, 230, .75);--bs-secondary-color-rgb: 222, 226, 230;--bs-secondary-bg: #343a40;--bs-secondary-bg-rgb: 52, 58, 64;--bs-tertiary-color: rgba(222, 226, 230, .5);--bs-tertiary-color-rgb: 222, 226, 230;--bs-tertiary-bg: #2b3035;--bs-tertiary-bg-rgb: 43, 48, 53;--bs-primary-text-emphasis: rgba(153, 153, 153, .97);--bs-secondary-text-emphasis: #ebebeb;--bs-success-text-emphasis: #8bb66b;--bs-info-text-emphasis: #6edff6;--bs-warning-text-emphasis: #ffcb72;--bs-danger-text-emphasis: #e37074;--bs-light-text-emphasis: #f8f9fa;--bs-dark-text-emphasis: #dee2e6;--bs-primary-bg-subtle: rgba(14, 14, 14, .99);--bs-secondary-bg-subtle: #2c2c2c;--bs-success-bg-subtle: #0c1b02;--bs-info-bg-subtle: #032830;--bs-warning-bg-subtle: #332204;--bs-danger-bg-subtle: #2a0305;--bs-light-bg-subtle: #343a40;--bs-dark-bg-subtle: #1a1d20;--bs-primary-border-subtle: rgba(45, 45, 45, .97);--bs-secondary-border-subtle: #858585;--bs-success-border-subtle: #255005;--bs-info-border-subtle: #087990;--bs-warning-border-subtle: #99650c;--bs-danger-border-subtle: #7d0a0e;--bs-light-border-subtle: #495057;--bs-dark-border-subtle: #343a40;--bs-heading-color: inherit;--bs-link-color: rgba(153, 153, 153, .97);--bs-link-hover-color: rgba(174, 174, 174, .976);--bs-link-color-rgb: 153, 153, 153;--bs-link-hover-color-rgb: 174, 174, 174;--bs-code-color: #e685b5;--bs-highlight-color: #dee2e6;--bs-highlight-bg: #664308;--bs-border-color: #495057;--bs-border-color-translucent: rgba(255, 255, 255, .15);--bs-form-valid-color: #8bb66b;--bs-form-valid-border-color: #8bb66b;--bs-form-invalid-color: #e37074;--bs-form-invalid-border-color: #e37074}*,*:before,*:after{box-sizing:border-box}@media (prefers-reduced-motion: no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}hr{margin:1rem 0;color:inherit;border:0;border-top:var(--bs-border-width) solid;opacity:.25}h6,.h6,h5,.h5,h4,.h4,h3,.h3,h2,.h2,h1,.h1{margin-top:0;margin-bottom:.5rem;font-weight:300;line-height:1.2;color:var(--bs-heading-color)}h1,.h1{font-size:calc(1.4625rem + 2.55vw)}@media (min-width: 1200px){h1,.h1{font-size:3.375rem}}h2,.h2{font-size:calc(1.3125rem + .75vw)}@media (min-width: 1200px){h2,.h2{font-size:1.875rem}}h3,.h3{font-size:calc(1.2875rem + .45vw)}@media (min-width: 1200px){h3,.h3{font-size:1.625rem}}h4,.h4{font-size:calc(1.275rem + .3vw)}@media (min-width: 1200px){h4,.h4{font-size:1.5rem}}h5,.h5{font-size:calc(1.25625rem + .075vw)}@media (min-width: 1200px){h5,.h5{font-size:1.3125rem}}h6,.h6{font-size:1.125rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}ol,ul,dl{margin-top:0;margin-bottom:1rem}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small,.small{font-size:.875em}mark,.mark{padding:.1875em;color:var(--bs-highlight-color);background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity, 1));text-decoration:underline}a:hover{--bs-link-color-rgb: var(--bs-link-hover-color-rgb)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}pre,code,kbd,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-secondary-color);text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button:not(:disabled),[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width: 1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:calc(1.625rem + 4.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-1{font-size:5rem}}.display-2{font-size:calc(1.575rem + 3.9vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-2{font-size:4.5rem}}.display-3{font-size:calc(1.525rem + 3.3vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-3{font-size:4rem}}.display-4{font-size:calc(1.475rem + 2.7vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-4{font-size:3.5rem}}.display-5{font-size:calc(1.425rem + 2.1vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-5{font-size:3rem}}.display-6{font-size:calc(1.375rem + 1.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-6{font-size:2.5rem}}.list-unstyled,.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer:before{content:"\\2014\\a0"}.btn{--bs-btn-padding-x: 1.5rem;--bs-btn-padding-y: .375rem;--bs-btn-font-family: ;--bs-btn-font-size: 1rem;--bs-btn-font-weight: 400;--bs-btn-line-height: 1.625;--bs-btn-color: var(--bs-body-color);--bs-btn-bg: transparent;--bs-btn-border-width: var(--bs-border-width);--bs-btn-border-color: transparent;--bs-btn-border-radius: 2.5rem;--bs-btn-hover-border-color: transparent;--bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);--bs-btn-disabled-opacity: .25;--bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,:not(.btn-check)+.btn:active,.btn:first-child:active,.btn.active,.btn.show{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,:not(.btn-check)+.btn:active:focus-visible,.btn:first-child:active:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn:disabled,.btn.disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color: #fff;--bs-btn-bg: rgba(78, 78, 78, .95);--bs-btn-border-color: rgba(78, 78, 78, .95);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgba(65, 65, 65, .9575);--bs-btn-hover-border-color: rgba(61, 61, 61, .96);--bs-btn-focus-shadow-rgb: 107, 107, 107;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgba(61, 61, 61, .96);--bs-btn-active-border-color: rgba(57, 57, 57, .9625);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: rgba(78, 78, 78, .95);--bs-btn-disabled-border-color: rgba(78, 78, 78, .95)}.btn-secondary{--bs-btn-color: #000;--bs-btn-bg: rgb(222, 222, 222);--bs-btn-border-color: rgb(222, 222, 222);--bs-btn-hover-color: #000;--bs-btn-hover-bg: #e3e3e3;--bs-btn-hover-border-color: #e1e1e1;--bs-btn-focus-shadow-rgb: 189, 189, 189;--bs-btn-active-color: #000;--bs-btn-active-bg: #e5e5e5;--bs-btn-active-border-color: #e1e1e1;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: rgb(222, 222, 222);--bs-btn-disabled-border-color: rgb(222, 222, 222)}.btn-success{--bs-btn-color: #fff;--bs-btn-bg: rgb(61, 134, 8);--bs-btn-border-color: rgb(61, 134, 8);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #347207;--bs-btn-hover-border-color: #316b06;--bs-btn-focus-shadow-rgb: 90, 152, 45;--bs-btn-active-color: #fff;--bs-btn-active-bg: #316b06;--bs-btn-active-border-color: #2e6506;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: rgb(61, 134, 8);--bs-btn-disabled-border-color: rgb(61, 134, 8)}.btn-info{--bs-btn-color: #000;--bs-btn-bg: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #31d2f2;--bs-btn-hover-border-color: #25cff2;--bs-btn-focus-shadow-rgb: 11, 172, 204;--bs-btn-active-color: #000;--bs-btn-active-bg: #3dd5f3;--bs-btn-active-border-color: #25cff2;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #0dcaf0;--bs-btn-disabled-border-color: #0dcaf0}.btn-warning{--bs-btn-color: #000;--bs-btn-bg: rgb(255, 168, 20);--bs-btn-border-color: rgb(255, 168, 20);--bs-btn-hover-color: #000;--bs-btn-hover-bg: #ffb537;--bs-btn-hover-border-color: #ffb12c;--bs-btn-focus-shadow-rgb: 217, 143, 17;--bs-btn-active-color: #000;--bs-btn-active-bg: #ffb943;--bs-btn-active-border-color: #ffb12c;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: rgb(255, 168, 20);--bs-btn-disabled-border-color: rgb(255, 168, 20)}.btn-danger{--bs-btn-color: #fff;--bs-btn-bg: rgb(208, 16, 24);--bs-btn-border-color: rgb(208, 16, 24);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #b10e14;--bs-btn-hover-border-color: #a60d13;--bs-btn-focus-shadow-rgb: 215, 52, 59;--bs-btn-active-color: #fff;--bs-btn-active-bg: #a60d13;--bs-btn-active-border-color: #9c0c12;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: rgb(208, 16, 24);--bs-btn-disabled-border-color: rgb(208, 16, 24)}.btn-light{--bs-btn-color: #000;--bs-btn-bg: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #d3d4d5;--bs-btn-hover-border-color: #c6c7c8;--bs-btn-focus-shadow-rgb: 211, 212, 213;--bs-btn-active-color: #000;--bs-btn-active-bg: #c6c7c8;--bs-btn-active-border-color: #babbbc;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #f8f9fa;--bs-btn-disabled-border-color: #f8f9fa}.btn-dark{--bs-btn-color: #fff;--bs-btn-bg: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #424649;--bs-btn-hover-border-color: #373b3e;--bs-btn-focus-shadow-rgb: 66, 70, 73;--bs-btn-active-color: #fff;--bs-btn-active-bg: #4d5154;--bs-btn-active-border-color: #373b3e;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #212529;--bs-btn-disabled-border-color: #212529}.btn-outline-primary{--bs-btn-color: rgba(78, 78, 78, .95);--bs-btn-border-color: rgba(78, 78, 78, .95);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgba(78, 78, 78, .95);--bs-btn-hover-border-color: rgba(78, 78, 78, .95);--bs-btn-focus-shadow-rgb: 78, 78, 78;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgba(78, 78, 78, .95);--bs-btn-active-border-color: rgba(78, 78, 78, .95);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgba(78, 78, 78, .95);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgba(78, 78, 78, .95);--bs-gradient: none}.btn-outline-secondary{--bs-btn-color: rgb(222, 222, 222);--bs-btn-border-color: rgb(222, 222, 222);--bs-btn-hover-color: #000;--bs-btn-hover-bg: rgb(222, 222, 222);--bs-btn-hover-border-color: rgb(222, 222, 222);--bs-btn-focus-shadow-rgb: 222, 222, 222;--bs-btn-active-color: #000;--bs-btn-active-bg: rgb(222, 222, 222);--bs-btn-active-border-color: rgb(222, 222, 222);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(222, 222, 222);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(222, 222, 222);--bs-gradient: none}.btn-outline-success{--bs-btn-color: rgb(61, 134, 8);--bs-btn-border-color: rgb(61, 134, 8);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(61, 134, 8);--bs-btn-hover-border-color: rgb(61, 134, 8);--bs-btn-focus-shadow-rgb: 61, 134, 8;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(61, 134, 8);--bs-btn-active-border-color: rgb(61, 134, 8);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(61, 134, 8);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(61, 134, 8);--bs-gradient: none}.btn-outline-info{--bs-btn-color: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #0dcaf0;--bs-btn-hover-border-color: #0dcaf0;--bs-btn-focus-shadow-rgb: 13, 202, 240;--bs-btn-active-color: #000;--bs-btn-active-bg: #0dcaf0;--bs-btn-active-border-color: #0dcaf0;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #0dcaf0;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #0dcaf0;--bs-gradient: none}.btn-outline-warning{--bs-btn-color: rgb(255, 168, 20);--bs-btn-border-color: rgb(255, 168, 20);--bs-btn-hover-color: #000;--bs-btn-hover-bg: rgb(255, 168, 20);--bs-btn-hover-border-color: rgb(255, 168, 20);--bs-btn-focus-shadow-rgb: 255, 168, 20;--bs-btn-active-color: #000;--bs-btn-active-bg: rgb(255, 168, 20);--bs-btn-active-border-color: rgb(255, 168, 20);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(255, 168, 20);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(255, 168, 20);--bs-gradient: none}.btn-outline-danger{--bs-btn-color: rgb(208, 16, 24);--bs-btn-border-color: rgb(208, 16, 24);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(208, 16, 24);--bs-btn-hover-border-color: rgb(208, 16, 24);--bs-btn-focus-shadow-rgb: 208, 16, 24;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(208, 16, 24);--bs-btn-active-border-color: rgb(208, 16, 24);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(208, 16, 24);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(208, 16, 24);--bs-gradient: none}.btn-outline-light{--bs-btn-color: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #f8f9fa;--bs-btn-hover-border-color: #f8f9fa;--bs-btn-focus-shadow-rgb: 248, 249, 250;--bs-btn-active-color: #000;--bs-btn-active-bg: #f8f9fa;--bs-btn-active-border-color: #f8f9fa;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #f8f9fa;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #f8f9fa;--bs-gradient: none}.btn-outline-dark{--bs-btn-color: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #212529;--bs-btn-hover-border-color: #212529;--bs-btn-focus-shadow-rgb: 33, 37, 41;--bs-btn-active-color: #fff;--bs-btn-active-bg: #212529;--bs-btn-active-border-color: #212529;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #212529;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #212529;--bs-gradient: none}.btn-link{--bs-btn-font-weight: 400;--bs-btn-color: var(--bs-link-color);--bs-btn-bg: transparent;--bs-btn-border-color: transparent;--bs-btn-hover-color: var(--bs-link-hover-color);--bs-btn-hover-border-color: transparent;--bs-btn-active-color: var(--bs-link-hover-color);--bs-btn-active-border-color: transparent;--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-border-color: transparent;--bs-btn-box-shadow: 0 0 0 #000;--bs-btn-focus-shadow-rgb: 38, 38, 38;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-lg{--bs-btn-padding-y: .5rem;--bs-btn-padding-x: 1rem;--bs-btn-font-size: 1.25rem;--bs-btn-border-radius: var(--bs-border-radius-lg)}.btn-sm{--bs-btn-padding-y: .25rem;--bs-btn-padding-x: .5rem;--bs-btn-font-size: .875rem;--bs-btn-border-radius: var(--bs-border-radius-sm)}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.object-fit-contain{object-fit:contain!important}.object-fit-cover{object-fit:cover!important}.object-fit-fill{object-fit:fill!important}.object-fit-scale{object-fit:scale-down!important}.object-fit-none{object-fit:none!important}.opacity-0{opacity:0!important}.opacity-25{opacity:.25!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.opacity-100{opacity:1!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.overflow-x-auto{overflow-x:auto!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-x-visible{overflow-x:visible!important}.overflow-x-scroll{overflow-x:scroll!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overflow-y-visible{overflow-y:visible!important}.overflow-y-scroll{overflow-y:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-inline-grid{display:inline-grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:var(--bs-box-shadow)!important}.shadow-sm{box-shadow:var(--bs-box-shadow-sm)!important}.shadow-lg{box-shadow:var(--bs-box-shadow-lg)!important}.shadow-none{box-shadow:none!important}.focus-ring-primary{--bs-focus-ring-color: rgba(var(--bs-primary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-secondary{--bs-focus-ring-color: rgba(var(--bs-secondary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-success{--bs-focus-ring-color: rgba(var(--bs-success-rgb), var(--bs-focus-ring-opacity))}.focus-ring-info{--bs-focus-ring-color: rgba(var(--bs-info-rgb), var(--bs-focus-ring-opacity))}.focus-ring-warning{--bs-focus-ring-color: rgba(var(--bs-warning-rgb), var(--bs-focus-ring-opacity))}.focus-ring-danger{--bs-focus-ring-color: rgba(var(--bs-danger-rgb), var(--bs-focus-ring-opacity))}.focus-ring-light{--bs-focus-ring-color: rgba(var(--bs-light-rgb), var(--bs-focus-ring-opacity))}.focus-ring-dark{--bs-focus-ring-color: rgba(var(--bs-dark-rgb), var(--bs-focus-ring-opacity))}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translate(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-0{border:0!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-start-0{border-left:0!important}.border-primary{--bs-border-opacity: 1;border-color:rgba(var(--bs-primary-rgb),var(--bs-border-opacity))!important}.border-secondary{--bs-border-opacity: 1;border-color:rgba(var(--bs-secondary-rgb),var(--bs-border-opacity))!important}.border-success{--bs-border-opacity: 1;border-color:rgba(var(--bs-success-rgb),var(--bs-border-opacity))!important}.border-info{--bs-border-opacity: 1;border-color:rgba(var(--bs-info-rgb),var(--bs-border-opacity))!important}.border-warning{--bs-border-opacity: 1;border-color:rgba(var(--bs-warning-rgb),var(--bs-border-opacity))!important}.border-danger{--bs-border-opacity: 1;border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity))!important}.border-light{--bs-border-opacity: 1;border-color:rgba(var(--bs-light-rgb),var(--bs-border-opacity))!important}.border-dark{--bs-border-opacity: 1;border-color:rgba(var(--bs-dark-rgb),var(--bs-border-opacity))!important}.border-black{--bs-border-opacity: 1;border-color:rgba(var(--bs-black-rgb),var(--bs-border-opacity))!important}.border-white{--bs-border-opacity: 1;border-color:rgba(var(--bs-white-rgb),var(--bs-border-opacity))!important}.border-primary-subtle{border-color:var(--bs-primary-border-subtle)!important}.border-secondary-subtle{border-color:var(--bs-secondary-border-subtle)!important}.border-success-subtle{border-color:var(--bs-success-border-subtle)!important}.border-info-subtle{border-color:var(--bs-info-border-subtle)!important}.border-warning-subtle{border-color:var(--bs-warning-border-subtle)!important}.border-danger-subtle{border-color:var(--bs-danger-border-subtle)!important}.border-light-subtle{border-color:var(--bs-light-border-subtle)!important}.border-dark-subtle{border-color:var(--bs-dark-border-subtle)!important}.border-1{border-width:1px!important}.border-2{border-width:2px!important}.border-3{border-width:3px!important}.border-4{border-width:4px!important}.border-5{border-width:5px!important}.border-opacity-10{--bs-border-opacity: .1}.border-opacity-25{--bs-border-opacity: .25}.border-opacity-50{--bs-border-opacity: .5}.border-opacity-75{--bs-border-opacity: .75}.border-opacity-100{--bs-border-opacity: 1}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:3rem!important;margin-left:3rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:3rem!important;padding-left:3rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:3rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:3rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}.row-gap-0{row-gap:0!important}.row-gap-1{row-gap:.25rem!important}.row-gap-2{row-gap:.5rem!important}.row-gap-3{row-gap:1rem!important}.row-gap-4{row-gap:1.5rem!important}.row-gap-5{row-gap:3rem!important}.column-gap-0{column-gap:0!important}.column-gap-1{column-gap:.25rem!important}.column-gap-2{column-gap:.5rem!important}.column-gap-3{column-gap:1rem!important}.column-gap-4{column-gap:1.5rem!important}.column-gap-5{column-gap:3rem!important}.font-monospace{font-family:var(--bs-font-monospace)!important}.fs-1{font-size:calc(1.4625rem + 2.55vw)!important}.fs-2{font-size:calc(1.3125rem + .75vw)!important}.fs-3{font-size:calc(1.2875rem + .45vw)!important}.fs-4{font-size:calc(1.275rem + .3vw)!important}.fs-5{font-size:calc(1.25625rem + .075vw)!important}.fs-6{font-size:1.125rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-lighter{font-weight:lighter!important}.fw-light{font-weight:300!important}.fw-normal{font-weight:400!important}.fw-medium,.fw-semibold{font-weight:500!important}.fw-bold{font-weight:700!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.625!important}.lh-lg{line-height:2!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-primary{--bs-text-opacity: 1;color:rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important}.text-secondary{--bs-text-opacity: 1;color:rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important}.text-success{--bs-text-opacity: 1;color:rgba(var(--bs-success-rgb),var(--bs-text-opacity))!important}.text-info{--bs-text-opacity: 1;color:rgba(var(--bs-info-rgb),var(--bs-text-opacity))!important}.text-warning{--bs-text-opacity: 1;color:rgba(var(--bs-warning-rgb),var(--bs-text-opacity))!important}.text-danger{--bs-text-opacity: 1;color:rgba(var(--bs-danger-rgb),var(--bs-text-opacity))!important}.text-light{--bs-text-opacity: 1;color:rgba(var(--bs-light-rgb),var(--bs-text-opacity))!important}.text-dark{--bs-text-opacity: 1;color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important}.text-black{--bs-text-opacity: 1;color:rgba(var(--bs-black-rgb),var(--bs-text-opacity))!important}.text-white{--bs-text-opacity: 1;color:rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important}.text-body{--bs-text-opacity: 1;color:rgba(var(--bs-body-color-rgb),var(--bs-text-opacity))!important}.text-muted{--bs-text-opacity: 1;color:var(--bs-secondary-color)!important}.text-black-50{--bs-text-opacity: 1;color:#00000080!important}.text-white-50{--bs-text-opacity: 1;color:#ffffff80!important}.text-body-secondary{--bs-text-opacity: 1;color:var(--bs-secondary-color)!important}.text-body-tertiary{--bs-text-opacity: 1;color:var(--bs-tertiary-color)!important}.text-body-emphasis{--bs-text-opacity: 1;color:var(--bs-emphasis-color)!important}.text-reset{--bs-text-opacity: 1;color:inherit!important}.text-opacity-25{--bs-text-opacity: .25}.text-opacity-50{--bs-text-opacity: .5}.text-opacity-75{--bs-text-opacity: .75}.text-opacity-100{--bs-text-opacity: 1}.text-primary-emphasis{color:var(--bs-primary-text-emphasis)!important}.text-secondary-emphasis{color:var(--bs-secondary-text-emphasis)!important}.text-success-emphasis{color:var(--bs-success-text-emphasis)!important}.text-info-emphasis{color:var(--bs-info-text-emphasis)!important}.text-warning-emphasis{color:var(--bs-warning-text-emphasis)!important}.text-danger-emphasis{color:var(--bs-danger-text-emphasis)!important}.text-light-emphasis{color:var(--bs-light-text-emphasis)!important}.text-dark-emphasis{color:var(--bs-dark-text-emphasis)!important}.link-opacity-10,.link-opacity-10-hover:hover{--bs-link-opacity: .1}.link-opacity-25,.link-opacity-25-hover:hover{--bs-link-opacity: .25}.link-opacity-50,.link-opacity-50-hover:hover{--bs-link-opacity: .5}.link-opacity-75,.link-opacity-75-hover:hover{--bs-link-opacity: .75}.link-opacity-100,.link-opacity-100-hover:hover{--bs-link-opacity: 1}.link-offset-1,.link-offset-1-hover:hover{text-underline-offset:.125em!important}.link-offset-2,.link-offset-2-hover:hover{text-underline-offset:.25em!important}.link-offset-3,.link-offset-3-hover:hover{text-underline-offset:.375em!important}.link-underline-primary{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-primary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-secondary{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-secondary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-success{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-success-rgb),var(--bs-link-underline-opacity))!important}.link-underline-info{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-info-rgb),var(--bs-link-underline-opacity))!important}.link-underline-warning{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-warning-rgb),var(--bs-link-underline-opacity))!important}.link-underline-danger{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-danger-rgb),var(--bs-link-underline-opacity))!important}.link-underline-light{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-light-rgb),var(--bs-link-underline-opacity))!important}.link-underline-dark{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-dark-rgb),var(--bs-link-underline-opacity))!important}.link-underline{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-underline-opacity, 1))!important}.link-underline-opacity-0,.link-underline-opacity-0-hover:hover{--bs-link-underline-opacity: 0}.link-underline-opacity-10,.link-underline-opacity-10-hover:hover{--bs-link-underline-opacity: .1}.link-underline-opacity-25,.link-underline-opacity-25-hover:hover{--bs-link-underline-opacity: .25}.link-underline-opacity-50,.link-underline-opacity-50-hover:hover{--bs-link-underline-opacity: .5}.link-underline-opacity-75,.link-underline-opacity-75-hover:hover{--bs-link-underline-opacity: .75}.link-underline-opacity-100,.link-underline-opacity-100-hover:hover{--bs-link-underline-opacity: 1}.bg-primary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important}.bg-secondary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important}.bg-success{--bs-bg-opacity: 1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important}.bg-info{--bs-bg-opacity: 1;background-color:rgba(var(--bs-info-rgb),var(--bs-bg-opacity))!important}.bg-warning{--bs-bg-opacity: 1;background-color:rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important}.bg-danger{--bs-bg-opacity: 1;background-color:rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important}.bg-light{--bs-bg-opacity: 1;background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important}.bg-dark{--bs-bg-opacity: 1;background-color:rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important}.bg-black{--bs-bg-opacity: 1;background-color:rgba(var(--bs-black-rgb),var(--bs-bg-opacity))!important}.bg-white{--bs-bg-opacity: 1;background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important}.bg-body{--bs-bg-opacity: 1;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important}.bg-transparent{--bs-bg-opacity: 1;background-color:transparent!important}.bg-body-secondary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-secondary-bg-rgb),var(--bs-bg-opacity))!important}.bg-body-tertiary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-tertiary-bg-rgb),var(--bs-bg-opacity))!important}.bg-opacity-10{--bs-bg-opacity: .1}.bg-opacity-25{--bs-bg-opacity: .25}.bg-opacity-50{--bs-bg-opacity: .5}.bg-opacity-75{--bs-bg-opacity: .75}.bg-opacity-100{--bs-bg-opacity: 1}.bg-primary-subtle{background-color:var(--bs-primary-bg-subtle)!important}.bg-secondary-subtle{background-color:var(--bs-secondary-bg-subtle)!important}.bg-success-subtle{background-color:var(--bs-success-bg-subtle)!important}.bg-info-subtle{background-color:var(--bs-info-bg-subtle)!important}.bg-warning-subtle{background-color:var(--bs-warning-bg-subtle)!important}.bg-danger-subtle{background-color:var(--bs-danger-bg-subtle)!important}.bg-light-subtle{background-color:var(--bs-light-bg-subtle)!important}.bg-dark-subtle{background-color:var(--bs-dark-bg-subtle)!important}.bg-gradient{background-image:var(--bs-gradient)!important}.user-select-all{-webkit-user-select:all!important;user-select:all!important}.user-select-auto{-webkit-user-select:auto!important;user-select:auto!important}.user-select-none{-webkit-user-select:none!important;user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--bs-border-radius-sm)!important}.rounded-2{border-radius:var(--bs-border-radius)!important}.rounded-3{border-radius:var(--bs-border-radius-lg)!important}.rounded-4{border-radius:var(--bs-border-radius-xl)!important}.rounded-5{border-radius:var(--bs-border-radius-xxl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--bs-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-0{border-top-left-radius:0!important;border-top-right-radius:0!important}.rounded-top-1{border-top-left-radius:var(--bs-border-radius-sm)!important;border-top-right-radius:var(--bs-border-radius-sm)!important}.rounded-top-2{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-3{border-top-left-radius:var(--bs-border-radius-lg)!important;border-top-right-radius:var(--bs-border-radius-lg)!important}.rounded-top-4{border-top-left-radius:var(--bs-border-radius-xl)!important;border-top-right-radius:var(--bs-border-radius-xl)!important}.rounded-top-5{border-top-left-radius:var(--bs-border-radius-xxl)!important;border-top-right-radius:var(--bs-border-radius-xxl)!important}.rounded-top-circle{border-top-left-radius:50%!important;border-top-right-radius:50%!important}.rounded-top-pill{border-top-left-radius:var(--bs-border-radius-pill)!important;border-top-right-radius:var(--bs-border-radius-pill)!important}.rounded-end{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.rounded-end-1{border-top-right-radius:var(--bs-border-radius-sm)!important;border-bottom-right-radius:var(--bs-border-radius-sm)!important}.rounded-end-2{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-3{border-top-right-radius:var(--bs-border-radius-lg)!important;border-bottom-right-radius:var(--bs-border-radius-lg)!important}.rounded-end-4{border-top-right-radius:var(--bs-border-radius-xl)!important;border-bottom-right-radius:var(--bs-border-radius-xl)!important}.rounded-end-5{border-top-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-right-radius:var(--bs-border-radius-xxl)!important}.rounded-end-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.rounded-end-pill{border-top-right-radius:var(--bs-border-radius-pill)!important;border-bottom-right-radius:var(--bs-border-radius-pill)!important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-0{border-bottom-right-radius:0!important;border-bottom-left-radius:0!important}.rounded-bottom-1{border-bottom-right-radius:var(--bs-border-radius-sm)!important;border-bottom-left-radius:var(--bs-border-radius-sm)!important}.rounded-bottom-2{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-3{border-bottom-right-radius:var(--bs-border-radius-lg)!important;border-bottom-left-radius:var(--bs-border-radius-lg)!important}.rounded-bottom-4{border-bottom-right-radius:var(--bs-border-radius-xl)!important;border-bottom-left-radius:var(--bs-border-radius-xl)!important}.rounded-bottom-5{border-bottom-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-left-radius:var(--bs-border-radius-xxl)!important}.rounded-bottom-circle{border-bottom-right-radius:50%!important;border-bottom-left-radius:50%!important}.rounded-bottom-pill{border-bottom-right-radius:var(--bs-border-radius-pill)!important;border-bottom-left-radius:var(--bs-border-radius-pill)!important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-0{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-start-1{border-bottom-left-radius:var(--bs-border-radius-sm)!important;border-top-left-radius:var(--bs-border-radius-sm)!important}.rounded-start-2{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-3{border-bottom-left-radius:var(--bs-border-radius-lg)!important;border-top-left-radius:var(--bs-border-radius-lg)!important}.rounded-start-4{border-bottom-left-radius:var(--bs-border-radius-xl)!important;border-top-left-radius:var(--bs-border-radius-xl)!important}.rounded-start-5{border-bottom-left-radius:var(--bs-border-radius-xxl)!important;border-top-left-radius:var(--bs-border-radius-xxl)!important}.rounded-start-circle{border-bottom-left-radius:50%!important;border-top-left-radius:50%!important}.rounded-start-pill{border-bottom-left-radius:var(--bs-border-radius-pill)!important;border-top-left-radius:var(--bs-border-radius-pill)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}.z-n1{z-index:-1!important}.z-0{z-index:0!important}.z-1{z-index:1!important}.z-2{z-index:2!important}.z-3{z-index:3!important}@media (min-width: 576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.object-fit-sm-contain{object-fit:contain!important}.object-fit-sm-cover{object-fit:cover!important}.object-fit-sm-fill{object-fit:fill!important}.object-fit-sm-scale{object-fit:scale-down!important}.object-fit-sm-none{object-fit:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-inline-grid{display:inline-grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:3rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:3rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:3rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:3rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:3rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:3rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:3rem!important;padding-left:3rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:3rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:3rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:3rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:3rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:3rem!important}.row-gap-sm-0{row-gap:0!important}.row-gap-sm-1{row-gap:.25rem!important}.row-gap-sm-2{row-gap:.5rem!important}.row-gap-sm-3{row-gap:1rem!important}.row-gap-sm-4{row-gap:1.5rem!important}.row-gap-sm-5{row-gap:3rem!important}.column-gap-sm-0{column-gap:0!important}.column-gap-sm-1{column-gap:.25rem!important}.column-gap-sm-2{column-gap:.5rem!important}.column-gap-sm-3{column-gap:1rem!important}.column-gap-sm-4{column-gap:1.5rem!important}.column-gap-sm-5{column-gap:3rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width: 768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.object-fit-md-contain{object-fit:contain!important}.object-fit-md-cover{object-fit:cover!important}.object-fit-md-fill{object-fit:fill!important}.object-fit-md-scale{object-fit:scale-down!important}.object-fit-md-none{object-fit:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-inline-grid{display:inline-grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:3rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:3rem!important;margin-left:3rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:3rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:3rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:3rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:3rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:3rem!important;padding-left:3rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:3rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:3rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:3rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:3rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:3rem!important}.row-gap-md-0{row-gap:0!important}.row-gap-md-1{row-gap:.25rem!important}.row-gap-md-2{row-gap:.5rem!important}.row-gap-md-3{row-gap:1rem!important}.row-gap-md-4{row-gap:1.5rem!important}.row-gap-md-5{row-gap:3rem!important}.column-gap-md-0{column-gap:0!important}.column-gap-md-1{column-gap:.25rem!important}.column-gap-md-2{column-gap:.5rem!important}.column-gap-md-3{column-gap:1rem!important}.column-gap-md-4{column-gap:1.5rem!important}.column-gap-md-5{column-gap:3rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width: 992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.object-fit-lg-contain{object-fit:contain!important}.object-fit-lg-cover{object-fit:cover!important}.object-fit-lg-fill{object-fit:fill!important}.object-fit-lg-scale{object-fit:scale-down!important}.object-fit-lg-none{object-fit:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-inline-grid{display:inline-grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:3rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:3rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:3rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:3rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:3rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:3rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:3rem!important;padding-left:3rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:3rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:3rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:3rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:3rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:3rem!important}.row-gap-lg-0{row-gap:0!important}.row-gap-lg-1{row-gap:.25rem!important}.row-gap-lg-2{row-gap:.5rem!important}.row-gap-lg-3{row-gap:1rem!important}.row-gap-lg-4{row-gap:1.5rem!important}.row-gap-lg-5{row-gap:3rem!important}.column-gap-lg-0{column-gap:0!important}.column-gap-lg-1{column-gap:.25rem!important}.column-gap-lg-2{column-gap:.5rem!important}.column-gap-lg-3{column-gap:1rem!important}.column-gap-lg-4{column-gap:1.5rem!important}.column-gap-lg-5{column-gap:3rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width: 1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.object-fit-xl-contain{object-fit:contain!important}.object-fit-xl-cover{object-fit:cover!important}.object-fit-xl-fill{object-fit:fill!important}.object-fit-xl-scale{object-fit:scale-down!important}.object-fit-xl-none{object-fit:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-inline-grid{display:inline-grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:3rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:3rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:3rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:3rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:3rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:3rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:3rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:3rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:3rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:3rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:3rem!important}.row-gap-xl-0{row-gap:0!important}.row-gap-xl-1{row-gap:.25rem!important}.row-gap-xl-2{row-gap:.5rem!important}.row-gap-xl-3{row-gap:1rem!important}.row-gap-xl-4{row-gap:1.5rem!important}.row-gap-xl-5{row-gap:3rem!important}.column-gap-xl-0{column-gap:0!important}.column-gap-xl-1{column-gap:.25rem!important}.column-gap-xl-2{column-gap:.5rem!important}.column-gap-xl-3{column-gap:1rem!important}.column-gap-xl-4{column-gap:1.5rem!important}.column-gap-xl-5{column-gap:3rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}}@media (min-width: 1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.object-fit-xxl-contain{object-fit:contain!important}.object-fit-xxl-cover{object-fit:cover!important}.object-fit-xxl-fill{object-fit:fill!important}.object-fit-xxl-scale{object-fit:scale-down!important}.object-fit-xxl-none{object-fit:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-inline-grid{display:inline-grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:3rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:3rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:3rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:3rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:3rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:3rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:3rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:3rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:3rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:3rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:3rem!important}.row-gap-xxl-0{row-gap:0!important}.row-gap-xxl-1{row-gap:.25rem!important}.row-gap-xxl-2{row-gap:.5rem!important}.row-gap-xxl-3{row-gap:1rem!important}.row-gap-xxl-4{row-gap:1.5rem!important}.row-gap-xxl-5{row-gap:3rem!important}.column-gap-xxl-0{column-gap:0!important}.column-gap-xxl-1{column-gap:.25rem!important}.column-gap-xxl-2{column-gap:.5rem!important}.column-gap-xxl-3{column-gap:1rem!important}.column-gap-xxl-4{column-gap:1.5rem!important}.column-gap-xxl-5{column-gap:3rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}}@media (min-width: 1200px){.fs-1{font-size:3.375rem!important}.fs-2{font-size:1.875rem!important}.fs-3{font-size:1.625rem!important}.fs-4{font-size:1.5rem!important}.fs-5{font-size:1.3125rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-inline-grid{display:inline-grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}}.notifications-popup{position:absolute;margin-top:10px;right:0;z-index:1000;display:none;min-width:33vw;background-color:#fff}@media (max-width: 800px){.notifications-popup{position:fixed;min-width:auto;width:100vw;right:0}}.notifications-popup-data{max-height:calc(100vh - 145px);overflow:auto}.notifications-bell{color:#000}.notifications-bell-hidden{color:#ccc}.notifications-bell-counter{margin-left:-10px;color:#fff;font-weight:700;text-align:center;line-height:1;padding:1.25px 6px;background-color:#ea161f;border-radius:50%;box-shadow:0 0 0 2px #fff}.notifications-bell-counter-hidden{display:none}.notifications-bell-counter-visible{display:inline}.notifications-delete-notification{color:#4e4e4ef2}hr{margin:0}\n'],encapsulation:3})}return W})();var ja=a(6486),mc=a(363),_c=a(6223);function _l(W,p){return new dr(W,`${p.scriptsAndAssetsPath}/assets/locales/`,".json")}(0,w.qS)(R),(0,w.qS)(B);let Nt=(()=>{class W{constructor(v){this.injector=v;const I=_t(ml,{injector:this.injector});customElements.define("erz-notifications",I);const te=_t(Yi,{injector:this.injector});customElements.define("erz-app",te)}ngDoBootstrap(v){}static#e=this.\u0275fac=function(I){return new(I||W)(d.LFG(d.zs3))};static#t=this.\u0275mod=d.oAB({type:W});static#n=this.\u0275inj=d.cJS({providers:[{provide:d.qLn,useClass:Vi},{provide:d.soG,useFactory:v=>v.detectLanguage(),deps:[er.D]}],imports:[t.b2,Ai,Jt.Bz,L.JF,ee,Bn.aw.forRoot({loader:{provide:Bn.Zw,useFactory:_l,deps:[L.eN,ti.L6]}}),ja.m,mc.A0,_c.u5]})}return W})();a.p=window.schulverwaltung.settings.scriptsAndAssetsPath+"/",(0,d.G48)(),t.q6().bootstrapModule(Nt).catch(W=>console.error(W))},7482:(Pe,V,a)=>{var t=a(9698),d=a(8955);function L(R){return null==R}function O(R){(R=function h(R){var F={};for(var P in R)F[P]=R[P];return F}(R||{})).whiteList=R.whiteList||t.whiteList,R.onAttr=R.onAttr||t.onAttr,R.onIgnoreAttr=R.onIgnoreAttr||t.onIgnoreAttr,R.safeAttrValue=R.safeAttrValue||t.safeAttrValue,this.options=R}a(3034),O.prototype.process=function(R){if(!(R=(R=R||"").toString()))return"";var P=this.options,B=P.whiteList,$=P.onAttr,f=P.onIgnoreAttr,j=P.safeAttrValue;return d(R,function(q,ie,k,Te,Se){var ye=B[k],ce=!1;if(!0===ye?ce=ye:"function"==typeof ye?ce=ye(Te):ye instanceof RegExp&&(ce=ye.test(Te)),!0!==ce&&(ce=!1),Te=j(k,Te)){var ve,_e={position:ie,sourcePosition:q,source:Se,isWhite:ce};if(ce)return L(ve=$(k,Te,_e))?k+":"+Te:ve;if(!L(ve=f(k,Te,_e)))return ve}})},Pe.exports=O},9698:(Pe,V)=>{function a(){return{"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1}}var w=/javascript\s*\:/gim;V.whiteList={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1},V.getDefaultWhiteList=a,V.onAttr=function t(h,O,R){},V.onIgnoreAttr=function d(h,O,R){},V.safeAttrValue=function L(h,O){return w.test(O)?"":O}},1474:(Pe,V,a)=>{var t=a(9698),d=a(7482);for(var L in(V=Pe.exports=function w(h,O){return new d(O).process(h)}).FilterCSS=d,t)V[L]=t[L];typeof window<"u"&&(window.filterCSS=Pe.exports)},8955:(Pe,V,a)=>{var t=a(3034);Pe.exports=function d(w,L){";"!==(w=t.trimRight(w))[w.length-1]&&(w+=";");var h=w.length,O=!1,R=0,F=0,P="";function B(){if(!O){var j=t.trim(w.slice(R,F)),M=j.indexOf(":");if(-1!==M){var q=t.trim(j.slice(0,M)),ie=t.trim(j.slice(M+1));if(q){var k=L(R,P.length,q,ie,j);k&&(P+=k+"; ")}}}R=F+1}for(;F{Pe.exports={indexOf:function(V,a){var t,d;if(Array.prototype.indexOf)return V.indexOf(a);for(t=0,d=V.length;t{"use strict";a.d(V,{Z:()=>Xe});var t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function L(tt){return function(){var wt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},It=wt.width?String(wt.width):tt.defaultWidth;return tt.formats[It]||tt.formats[tt.defaultWidth]}}var F={date:L({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:L({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:L({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},B={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function j(tt){return function(wt,It){var Tt;if("formatting"===(null!=It&&It.context?String(It.context):"standalone")&&tt.formattingValues){var et=tt.defaultFormattingWidth||tt.defaultWidth,Pt=null!=It&&It.width?String(It.width):et;Tt=tt.formattingValues[Pt]||tt.formattingValues[et]}else{var Zt=tt.defaultWidth,dn=null!=It&&It.width?String(It.width):tt.defaultWidth;Tt=tt.values[dn]||tt.values[Zt]}return Tt[tt.argumentCallback?tt.argumentCallback(wt):wt]}}function ve(tt){return function(wt){var It=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Je=It.width,et=wt.match(Je&&tt.matchPatterns[Je]||tt.matchPatterns[tt.defaultMatchWidth]);if(!et)return null;var Rn,Pt=et[0],Zt=Je&&tt.parsePatterns[Je]||tt.parsePatterns[tt.defaultParseWidth],dn=Array.isArray(Zt)?function be(tt,wt){for(var It=0;It0?"in "+Tt:Tt+" ago":Tt},formatLong:F,formatRelative:function(wt,It,Je,Tt){return B[wt]},localize:{ordinalNumber:function(wt,It){var Je=Number(wt),Tt=Je%100;if(Tt>20||Tt<10)switch(Tt%10){case 1:return Je+"st";case 2:return Je+"nd";case 3:return Je+"rd"}return Je+"th"},era:j({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:j({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(wt){return wt-1}}),month:j({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:j({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:j({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function ke(tt){return function(wt){var It=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Je=wt.match(tt.matchPattern);if(!Je)return null;var Tt=Je[0],et=wt.match(tt.parsePattern);if(!et)return null;var Pt=tt.valueCallback?tt.valueCallback(et[0]):et[0];return{value:Pt=It.valueCallback?It.valueCallback(Pt):Pt,rest:wt.slice(Tt.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(wt){return parseInt(wt,10)}}),era:ve({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:ve({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(wt){return wt+1}}),month:ve({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ve({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ve({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},5227:(Pe,V,a)=>{"use strict";a.d(V,{j:()=>d});var t={};function d(){return t}},3001:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>h});var t=function(R,F){switch(R){case"P":return F.date({width:"short"});case"PP":return F.date({width:"medium"});case"PPP":return F.date({width:"long"});default:return F.date({width:"full"})}},d=function(R,F){switch(R){case"p":return F.time({width:"short"});case"pp":return F.time({width:"medium"});case"ppp":return F.time({width:"long"});default:return F.time({width:"full"})}};const h={p:d,P:function(R,F){var f,P=R.match(/(P+)(p+)?/)||[],B=P[1],$=P[2];if(!$)return t(R,F);switch(B){case"P":f=F.dateTime({width:"short"});break;case"PP":f=F.dateTime({width:"medium"});break;case"PPP":f=F.dateTime({width:"long"});break;default:f=F.dateTime({width:"full"})}return f.replace("{{date}}",t(B,F)).replace("{{time}}",d($,F))}}},5351:(Pe,V,a)=>{"use strict";function t(d){var w=new Date(Date.UTC(d.getFullYear(),d.getMonth(),d.getDate(),d.getHours(),d.getMinutes(),d.getSeconds(),d.getMilliseconds()));return w.setUTCFullYear(d.getFullYear()),d.getTime()-w.getTime()}a.d(V,{Z:()=>t})},3606:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>R});var t=a(581),d=a(9307),w=a(2603),L=a(2816),O=6048e5;function R(F){(0,L.Z)(1,arguments);var P=(0,t.Z)(F),B=(0,d.Z)(P).getTime()-function h(F){(0,L.Z)(1,arguments);var P=(0,w.Z)(F),B=new Date(0);return B.setUTCFullYear(P,0,4),B.setUTCHours(0,0,0,0),(0,d.Z)(B)}(P).getTime();return Math.round(B/O)+1}},2603:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(581),d=a(2816),w=a(9307);function L(h){(0,d.Z)(1,arguments);var O=(0,t.Z)(h),R=O.getUTCFullYear(),F=new Date(0);F.setUTCFullYear(R+1,0,4),F.setUTCHours(0,0,0,0);var P=(0,w.Z)(F),B=new Date(0);B.setUTCFullYear(R,0,4),B.setUTCHours(0,0,0,0);var $=(0,w.Z)(B);return O.getTime()>=P.getTime()?R+1:O.getTime()>=$.getTime()?R:R-1}},7356:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>P});var t=a(581),d=a(5163),w=a(3281),L=a(2816),h=a(6156),O=a(5227),F=6048e5;function P(B,$){(0,L.Z)(1,arguments);var f=(0,t.Z)(B),j=(0,d.Z)(f,$).getTime()-function R(B,$){var f,j,M,q,ie,k,Te,Se;(0,L.Z)(1,arguments);var ye=(0,O.j)(),ce=(0,h.Z)(null!==(f=null!==(j=null!==(M=null!==(q=$?.firstWeekContainsDate)&&void 0!==q?q:null==$||null===(ie=$.locale)||void 0===ie||null===(k=ie.options)||void 0===k?void 0:k.firstWeekContainsDate)&&void 0!==M?M:ye.firstWeekContainsDate)&&void 0!==j?j:null===(Te=ye.locale)||void 0===Te||null===(Se=Te.options)||void 0===Se?void 0:Se.firstWeekContainsDate)&&void 0!==f?f:1),_e=(0,w.Z)(B,$),ve=new Date(0);return ve.setUTCFullYear(_e,0,ce),ve.setUTCHours(0,0,0,0),(0,d.Z)(ve,$)}(f,$).getTime();return Math.round(j/F)+1}},3281:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>O});var t=a(581),d=a(2816),w=a(5163),L=a(6156),h=a(5227);function O(R,F){var P,B,$,f,j,M,q,ie;(0,d.Z)(1,arguments);var k=(0,t.Z)(R),Te=k.getUTCFullYear(),Se=(0,h.j)(),ye=(0,L.Z)(null!==(P=null!==(B=null!==($=null!==(f=F?.firstWeekContainsDate)&&void 0!==f?f:null==F||null===(j=F.locale)||void 0===j||null===(M=j.options)||void 0===M?void 0:M.firstWeekContainsDate)&&void 0!==$?$:Se.firstWeekContainsDate)&&void 0!==B?B:null===(q=Se.locale)||void 0===q||null===(ie=q.options)||void 0===ie?void 0:ie.firstWeekContainsDate)&&void 0!==P?P:1);if(!(ye>=1&&ye<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ce=new Date(0);ce.setUTCFullYear(Te+1,0,ye),ce.setUTCHours(0,0,0,0);var _e=(0,w.Z)(ce,F),ve=new Date(0);ve.setUTCFullYear(Te,0,ye),ve.setUTCHours(0,0,0,0);var xe=(0,w.Z)(ve,F);return k.getTime()>=_e.getTime()?Te+1:k.getTime()>=xe.getTime()?Te:Te-1}},2566:(Pe,V,a)=>{"use strict";a.d(V,{Do:()=>L,Iu:()=>w,qp:()=>h});var t=["D","DD"],d=["YY","YYYY"];function w(O){return-1!==t.indexOf(O)}function L(O){return-1!==d.indexOf(O)}function h(O,R,F){if("YYYY"===O)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(R,"`) for formatting years to the input `").concat(F,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===O)throw new RangeError("Use `yy` instead of `YY` (in `".concat(R,"`) for formatting years to the input `").concat(F,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===O)throw new RangeError("Use `d` instead of `D` (in `".concat(R,"`) for formatting days of the month to the input `").concat(F,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===O)throw new RangeError("Use `dd` instead of `DD` (in `".concat(R,"`) for formatting days of the month to the input `").concat(F,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},2816:(Pe,V,a)=>{"use strict";function t(d,w){if(w.length1?"s":"")+" required, but only "+w.length+" present")}a.d(V,{Z:()=>t})},9307:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});var t=a(581),d=a(2816);function w(L){(0,d.Z)(1,arguments);var O=(0,t.Z)(L),R=O.getUTCDay(),F=(R<1?7:0)+R-1;return O.setUTCDate(O.getUTCDate()-F),O.setUTCHours(0,0,0,0),O}},5163:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>h});var t=a(581),d=a(2816),w=a(6156),L=a(5227);function h(O,R){var F,P,B,$,f,j,M,q;(0,d.Z)(1,arguments);var ie=(0,L.j)(),k=(0,w.Z)(null!==(F=null!==(P=null!==(B=null!==($=R?.weekStartsOn)&&void 0!==$?$:null==R||null===(f=R.locale)||void 0===f||null===(j=f.options)||void 0===j?void 0:j.weekStartsOn)&&void 0!==B?B:ie.weekStartsOn)&&void 0!==P?P:null===(M=ie.locale)||void 0===M||null===(q=M.options)||void 0===q?void 0:q.weekStartsOn)&&void 0!==F?F:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var Te=(0,t.Z)(O),Se=Te.getUTCDay(),ye=(Se{"use strict";function t(d){if(null===d||!0===d||!1===d)return NaN;var w=Number(d);return isNaN(w)?w:w<0?Math.ceil(w):Math.floor(w)}a.d(V,{Z:()=>t})},8584:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(6156),d=a(581),w=a(2816);function L(h,O){(0,w.Z)(2,arguments);var R=(0,d.Z)(h),F=(0,t.Z)(O);return isNaN(F)?new Date(NaN):(F&&R.setDate(R.getDate()+F),R)}},5301:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>Ee});var t=a(1002),d=a(2816),L=a(581);var O=a(591),P=a(3606),B=a(2603),$=a(7356),f=a(3281);function j(J,Q){for(var oe=J<0?"-":"",se=Math.abs(J).toString();se.length0?se:1-se;return j("yy"===oe?ae%100:ae,oe.length)},q_M=function(Q,oe){var se=Q.getUTCMonth();return"M"===oe?String(se+1):j(se+1,2)},q_d=function(Q,oe){return j(Q.getUTCDate(),oe.length)},q_h=function(Q,oe){return j(Q.getUTCHours()%12||12,oe.length)},q_H=function(Q,oe){return j(Q.getUTCHours(),oe.length)},q_m=function(Q,oe){return j(Q.getUTCMinutes(),oe.length)},q_s=function(Q,oe){return j(Q.getUTCSeconds(),oe.length)},q_S=function(Q,oe){var se=oe.length,ae=Q.getUTCMilliseconds();return j(Math.floor(ae*Math.pow(10,se-3)),oe.length)};function Te(J,Q){var oe=J>0?"-":"+",se=Math.abs(J),ae=Math.floor(se/60),fe=se%60;if(0===fe)return oe+String(ae);var De=Q||"";return oe+String(ae)+De+j(fe,2)}function Se(J,Q){return J%60==0?(J>0?"-":"+")+j(Math.abs(J)/60,2):ye(J,Q)}function ye(J,Q){var oe=Q||"",se=J>0?"-":"+",ae=Math.abs(J);return se+j(Math.floor(ae/60),2)+oe+j(ae%60,2)}const ce={G:function(Q,oe,se){var ae=Q.getUTCFullYear()>0?1:0;switch(oe){case"G":case"GG":case"GGG":return se.era(ae,{width:"abbreviated"});case"GGGGG":return se.era(ae,{width:"narrow"});default:return se.era(ae,{width:"wide"})}},y:function(Q,oe,se){if("yo"===oe){var ae=Q.getUTCFullYear();return se.ordinalNumber(ae>0?ae:1-ae,{unit:"year"})}return q_y(Q,oe)},Y:function(Q,oe,se,ae){var fe=(0,f.Z)(Q,ae),De=fe>0?fe:1-fe;return"YY"===oe?j(De%100,2):"Yo"===oe?se.ordinalNumber(De,{unit:"year"}):j(De,oe.length)},R:function(Q,oe){return j((0,B.Z)(Q),oe.length)},u:function(Q,oe){return j(Q.getUTCFullYear(),oe.length)},Q:function(Q,oe,se){var ae=Math.ceil((Q.getUTCMonth()+1)/3);switch(oe){case"Q":return String(ae);case"QQ":return j(ae,2);case"Qo":return se.ordinalNumber(ae,{unit:"quarter"});case"QQQ":return se.quarter(ae,{width:"abbreviated",context:"formatting"});case"QQQQQ":return se.quarter(ae,{width:"narrow",context:"formatting"});default:return se.quarter(ae,{width:"wide",context:"formatting"})}},q:function(Q,oe,se){var ae=Math.ceil((Q.getUTCMonth()+1)/3);switch(oe){case"q":return String(ae);case"qq":return j(ae,2);case"qo":return se.ordinalNumber(ae,{unit:"quarter"});case"qqq":return se.quarter(ae,{width:"abbreviated",context:"standalone"});case"qqqqq":return se.quarter(ae,{width:"narrow",context:"standalone"});default:return se.quarter(ae,{width:"wide",context:"standalone"})}},M:function(Q,oe,se){var ae=Q.getUTCMonth();switch(oe){case"M":case"MM":return q_M(Q,oe);case"Mo":return se.ordinalNumber(ae+1,{unit:"month"});case"MMM":return se.month(ae,{width:"abbreviated",context:"formatting"});case"MMMMM":return se.month(ae,{width:"narrow",context:"formatting"});default:return se.month(ae,{width:"wide",context:"formatting"})}},L:function(Q,oe,se){var ae=Q.getUTCMonth();switch(oe){case"L":return String(ae+1);case"LL":return j(ae+1,2);case"Lo":return se.ordinalNumber(ae+1,{unit:"month"});case"LLL":return se.month(ae,{width:"abbreviated",context:"standalone"});case"LLLLL":return se.month(ae,{width:"narrow",context:"standalone"});default:return se.month(ae,{width:"wide",context:"standalone"})}},w:function(Q,oe,se,ae){var fe=(0,$.Z)(Q,ae);return"wo"===oe?se.ordinalNumber(fe,{unit:"week"}):j(fe,oe.length)},I:function(Q,oe,se){var ae=(0,P.Z)(Q);return"Io"===oe?se.ordinalNumber(ae,{unit:"week"}):j(ae,oe.length)},d:function(Q,oe,se){return"do"===oe?se.ordinalNumber(Q.getUTCDate(),{unit:"date"}):q_d(Q,oe)},D:function(Q,oe,se){var ae=function F(J){(0,d.Z)(1,arguments);var Q=(0,L.Z)(J),oe=Q.getTime();Q.setUTCMonth(0,1),Q.setUTCHours(0,0,0,0);var se=Q.getTime();return Math.floor((oe-se)/864e5)+1}(Q);return"Do"===oe?se.ordinalNumber(ae,{unit:"dayOfYear"}):j(ae,oe.length)},E:function(Q,oe,se){var ae=Q.getUTCDay();switch(oe){case"E":case"EE":case"EEE":return se.day(ae,{width:"abbreviated",context:"formatting"});case"EEEEE":return se.day(ae,{width:"narrow",context:"formatting"});case"EEEEEE":return se.day(ae,{width:"short",context:"formatting"});default:return se.day(ae,{width:"wide",context:"formatting"})}},e:function(Q,oe,se,ae){var fe=Q.getUTCDay(),De=(fe-ae.weekStartsOn+8)%7||7;switch(oe){case"e":return String(De);case"ee":return j(De,2);case"eo":return se.ordinalNumber(De,{unit:"day"});case"eee":return se.day(fe,{width:"abbreviated",context:"formatting"});case"eeeee":return se.day(fe,{width:"narrow",context:"formatting"});case"eeeeee":return se.day(fe,{width:"short",context:"formatting"});default:return se.day(fe,{width:"wide",context:"formatting"})}},c:function(Q,oe,se,ae){var fe=Q.getUTCDay(),De=(fe-ae.weekStartsOn+8)%7||7;switch(oe){case"c":return String(De);case"cc":return j(De,oe.length);case"co":return se.ordinalNumber(De,{unit:"day"});case"ccc":return se.day(fe,{width:"abbreviated",context:"standalone"});case"ccccc":return se.day(fe,{width:"narrow",context:"standalone"});case"cccccc":return se.day(fe,{width:"short",context:"standalone"});default:return se.day(fe,{width:"wide",context:"standalone"})}},i:function(Q,oe,se){var ae=Q.getUTCDay(),fe=0===ae?7:ae;switch(oe){case"i":return String(fe);case"ii":return j(fe,oe.length);case"io":return se.ordinalNumber(fe,{unit:"day"});case"iii":return se.day(ae,{width:"abbreviated",context:"formatting"});case"iiiii":return se.day(ae,{width:"narrow",context:"formatting"});case"iiiiii":return se.day(ae,{width:"short",context:"formatting"});default:return se.day(ae,{width:"wide",context:"formatting"})}},a:function(Q,oe,se){var fe=Q.getUTCHours()/12>=1?"pm":"am";switch(oe){case"a":case"aa":return se.dayPeriod(fe,{width:"abbreviated",context:"formatting"});case"aaa":return se.dayPeriod(fe,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return se.dayPeriod(fe,{width:"narrow",context:"formatting"});default:return se.dayPeriod(fe,{width:"wide",context:"formatting"})}},b:function(Q,oe,se){var fe,ae=Q.getUTCHours();switch(fe=12===ae?"noon":0===ae?"midnight":ae/12>=1?"pm":"am",oe){case"b":case"bb":return se.dayPeriod(fe,{width:"abbreviated",context:"formatting"});case"bbb":return se.dayPeriod(fe,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return se.dayPeriod(fe,{width:"narrow",context:"formatting"});default:return se.dayPeriod(fe,{width:"wide",context:"formatting"})}},B:function(Q,oe,se){var fe,ae=Q.getUTCHours();switch(fe=ae>=17?"evening":ae>=12?"afternoon":ae>=4?"morning":"night",oe){case"B":case"BB":case"BBB":return se.dayPeriod(fe,{width:"abbreviated",context:"formatting"});case"BBBBB":return se.dayPeriod(fe,{width:"narrow",context:"formatting"});default:return se.dayPeriod(fe,{width:"wide",context:"formatting"})}},h:function(Q,oe,se){if("ho"===oe){var ae=Q.getUTCHours()%12;return 0===ae&&(ae=12),se.ordinalNumber(ae,{unit:"hour"})}return q_h(Q,oe)},H:function(Q,oe,se){return"Ho"===oe?se.ordinalNumber(Q.getUTCHours(),{unit:"hour"}):q_H(Q,oe)},K:function(Q,oe,se){var ae=Q.getUTCHours()%12;return"Ko"===oe?se.ordinalNumber(ae,{unit:"hour"}):j(ae,oe.length)},k:function(Q,oe,se){var ae=Q.getUTCHours();return 0===ae&&(ae=24),"ko"===oe?se.ordinalNumber(ae,{unit:"hour"}):j(ae,oe.length)},m:function(Q,oe,se){return"mo"===oe?se.ordinalNumber(Q.getUTCMinutes(),{unit:"minute"}):q_m(Q,oe)},s:function(Q,oe,se){return"so"===oe?se.ordinalNumber(Q.getUTCSeconds(),{unit:"second"}):q_s(Q,oe)},S:function(Q,oe){return q_S(Q,oe)},X:function(Q,oe,se,ae){var De=(ae._originalDate||Q).getTimezoneOffset();if(0===De)return"Z";switch(oe){case"X":return Se(De);case"XXXX":case"XX":return ye(De);default:return ye(De,":")}},x:function(Q,oe,se,ae){var De=(ae._originalDate||Q).getTimezoneOffset();switch(oe){case"x":return Se(De);case"xxxx":case"xx":return ye(De);default:return ye(De,":")}},O:function(Q,oe,se,ae){var De=(ae._originalDate||Q).getTimezoneOffset();switch(oe){case"O":case"OO":case"OOO":return"GMT"+Te(De,":");default:return"GMT"+ye(De,":")}},z:function(Q,oe,se,ae){var De=(ae._originalDate||Q).getTimezoneOffset();switch(oe){case"z":case"zz":case"zzz":return"GMT"+Te(De,":");default:return"GMT"+ye(De,":")}},t:function(Q,oe,se,ae){return j(Math.floor((ae._originalDate||Q).getTime()/1e3),oe.length)},T:function(Q,oe,se,ae){return j((ae._originalDate||Q).getTime(),oe.length)}};var _e=a(3001),ve=a(5351),xe=a(2566),be=a(6156),ke=a(5227),vt=a(6719),rt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Mt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,qe=/^'([^]*?)'?$/,_t=/''/g,$e=/[a-zA-Z]/;function Ee(J,Q,oe){var se,ae,fe,De,je,Xe,tt,wt,It,Je,Tt,et,Pt,Zt,dn,Rn,We,Ye;(0,d.Z)(2,arguments);var At=String(Q),xt=(0,ke.j)(),nn=null!==(se=null!==(ae=oe?.locale)&&void 0!==ae?ae:xt.locale)&&void 0!==se?se:vt.Z,Et=(0,be.Z)(null!==(fe=null!==(De=null!==(je=null!==(Xe=oe?.firstWeekContainsDate)&&void 0!==Xe?Xe:null==oe||null===(tt=oe.locale)||void 0===tt||null===(wt=tt.options)||void 0===wt?void 0:wt.firstWeekContainsDate)&&void 0!==je?je:xt.firstWeekContainsDate)&&void 0!==De?De:null===(It=xt.locale)||void 0===It||null===(Je=It.options)||void 0===Je?void 0:Je.firstWeekContainsDate)&&void 0!==fe?fe:1);if(!(Et>=1&&Et<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Ht=(0,be.Z)(null!==(Tt=null!==(et=null!==(Pt=null!==(Zt=oe?.weekStartsOn)&&void 0!==Zt?Zt:null==oe||null===(dn=oe.locale)||void 0===dn||null===(Rn=dn.options)||void 0===Rn?void 0:Rn.weekStartsOn)&&void 0!==Pt?Pt:xt.weekStartsOn)&&void 0!==et?et:null===(We=xt.locale)||void 0===We||null===(Ye=We.options)||void 0===Ye?void 0:Ye.weekStartsOn)&&void 0!==Tt?Tt:0);if(!(Ht>=0&&Ht<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!nn.localize)throw new RangeError("locale must contain localize property");if(!nn.formatLong)throw new RangeError("locale must contain formatLong property");var zt=(0,L.Z)(J);if(!function h(J){if((0,d.Z)(1,arguments),!function w(J){return(0,d.Z)(1,arguments),J instanceof Date||"object"===(0,t.Z)(J)&&"[object Date]"===Object.prototype.toString.call(J)}(J)&&"number"!=typeof J)return!1;var Q=(0,L.Z)(J);return!isNaN(Number(Q))}(zt))throw new RangeError("Invalid time value");var fn=(0,ve.Z)(zt),Sn=(0,O.Z)(zt,fn),hn={firstWeekContainsDate:Et,weekStartsOn:Ht,locale:nn,_originalDate:zt},en=At.match(Mt).map(function(Dn){var Wn=Dn[0];return"p"===Wn||"P"===Wn?(0,_e.Z[Wn])(Dn,nn.formatLong):Dn}).join("").match(rt).map(function(Dn){if("''"===Dn)return"'";var Wn=Dn[0];if("'"===Wn)return function Ze(J){var Q=J.match(qe);return Q?Q[1].replace(_t,"'"):J}(Dn);var _n=ce[Wn];if(_n)return!(null!=oe&&oe.useAdditionalWeekYearTokens)&&(0,xe.Do)(Dn)&&(0,xe.qp)(Dn,Q,String(J)),!(null!=oe&&oe.useAdditionalDayOfYearTokens)&&(0,xe.Iu)(Dn)&&(0,xe.qp)(Dn,Q,String(J)),_n(Sn,Dn,nn.localize,hn);if(Wn.match($e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Wn+"`");return Dn}).join("");return en}},3166:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});var t=a(9189),d=a(2816);function w(L,h){(0,d.Z)(2,arguments);var O=(0,t.Z)(L),R=(0,t.Z)(h);return O.getTime()===R.getTime()}},9189:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});var t=a(581),d=a(2816);function w(L){(0,d.Z)(1,arguments);var h=(0,t.Z)(L);return h.setHours(0,0,0,0),h}},4307:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(8584),d=a(2816),w=a(6156);function L(h,O){(0,d.Z)(2,arguments);var R=(0,w.Z)(O);return(0,t.Z)(h,-R)}},591:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>h});var t=a(6156),d=a(581),w=a(2816);function h(O,R){return(0,w.Z)(2,arguments),function L(O,R){(0,w.Z)(2,arguments);var F=(0,d.Z)(O).getTime(),P=(0,t.Z)(R);return new Date(F+P)}(O,-(0,t.Z)(R))}},581:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});var t=a(1002),d=a(2816);function w(L){(0,d.Z)(1,arguments);var h=Object.prototype.toString.call(L);return L instanceof Date||"object"===(0,t.Z)(L)&&"[object Date]"===h?new Date(L.getTime()):"number"==typeof L||"[object Number]"===h?new Date(L):(("string"==typeof L||"[object String]"===h)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},5803:(Pe,V,a)=>{"use strict";a.d(V,{tS:()=>wi,g_:()=>bt,nM:()=>ln,t$:()=>se,vx:()=>$t,F2:()=>ae});var h=a(5040);function $(ze){return function(Ve,ct){return ze.map(Ve,function(){return ct})}}var se=function(ze){return{_tag:"Left",left:ze}},ae=function(ze){return{_tag:"Right",right:ze}},fe=(0,h.OB)(2,function(ze,Ve){return ln(ze)?ze:Ve(ze.right)}),De=function(ze,Ve){return(0,h.zG)(ze,zt(Ve))},zt=function(ze){return function(Ve){return ln(Ve)?Ve:ae(ze(Ve.right))}},fn={URI:"Either",map:De},_n=((0,h.OB)(2,$(fn)),function f(ze){var Ve=$(ze)}(fn),function(ze){return function(Ve){return ln(Ve)?Ve:ln(ze)?ze:ae(Ve.right(ze.right))}}),ln=function(ze){return"Left"===ze._tag},bt=function(ze,Ve){return function(ct){return ln(ct)?ze(ct.left):Ve(ct.right)}},$t=(function d(ze){return function(Ve,ct){return ze.chain(Ve,function(Yt){return ze.map(ct(Yt),function(){return Yt})})}}({URI:"Either",map:De,ap:function(ze,Ve){return(0,h.zG)(ze,_n(Ve))},chain:fe}),function(ze){return function(Ve){return ln(Ve)?ze(Ve.left):Ve}}),wi=fe},8706:(Pe,V,a)=>{"use strict";a.d(V,{ff:()=>B}),a(5040);var B=function(j){return function(M){return!j(M)}}},5040:(Pe,V,a)=>{"use strict";function F(qe){return qe}function k(qe,_t,$e,Ee,Ze,J,Q,oe,se){switch(arguments.length){case 1:return qe;case 2:return function(){return _t(qe.apply(this,arguments))};case 3:return function(){return $e(_t(qe.apply(this,arguments)))};case 4:return function(){return Ee($e(_t(qe.apply(this,arguments))))};case 5:return function(){return Ze(Ee($e(_t(qe.apply(this,arguments)))))};case 6:return function(){return J(Ze(Ee($e(_t(qe.apply(this,arguments))))))};case 7:return function(){return Q(J(Ze(Ee($e(_t(qe.apply(this,arguments)))))))};case 8:return function(){return oe(Q(J(Ze(Ee($e(_t(qe.apply(this,arguments))))))))};case 9:return function(){return se(oe(Q(J(Ze(Ee($e(_t(qe.apply(this,arguments)))))))))}}}function xe(qe,_t,$e,Ee,Ze,J,Q,oe,se){switch(arguments.length){case 1:return qe;case 2:return _t(qe);case 3:return $e(_t(qe));case 4:return Ee($e(_t(qe)));case 5:return Ze(Ee($e(_t(qe))));case 6:return J(Ze(Ee($e(_t(qe)))));case 7:return Q(J(Ze(Ee($e(_t(qe))))));case 8:return oe(Q(J(Ze(Ee($e(_t(qe)))))));case 9:return se(oe(Q(J(Ze(Ee($e(_t(qe))))))));default:for(var ae=arguments[0],fe=1;feMt,ls:()=>k,yR:()=>F,zG:()=>xe});var Mt=function(qe,_t){var $e="number"==typeof qe?function(Ee){return Ee.length>=qe}:qe;return function(){var Ee=Array.from(arguments);return $e(arguments)?_t.apply(this,Ee):function(Ze){return _t.apply(void 0,function(qe,_t,$e){if($e||2===arguments.length)for(var J,Ee=0,Ze=_t.length;Ee{"use strict";a.d(V,{$P:()=>B,Bk:()=>on,Dy:()=>F,G0:()=>dt,IM:()=>oi,IX:()=>nr,Ju:()=>Fr,O7:()=>zt,OT:()=>Vt,Rn:()=>O,S1:()=>et,Vp:()=>R,Z_:()=>Ye,dt:()=>wr,i0:()=>Wn,jV:()=>we,lB:()=>Je,mM:()=>Er,pk:()=>xt,r$:()=>Ir,sH:()=>An});var pe,t=a(5803),d=(pe=function(Z,K){return(pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,X){D.__proto__=X}||function(D,X){for(var de in X)Object.prototype.hasOwnProperty.call(X,de)&&(D[de]=X[de])})(Z,K)},function(Z,K){if("function"!=typeof K&&null!==K)throw new TypeError("Class extends value "+String(K)+" is not a constructor or null");function D(){this.constructor=Z}pe(Z,K),Z.prototype=null===K?Object.create(K):(D.prototype=K.prototype,new D)}),w=function(){return w=Object.assign||function(pe){for(var Z,K=1,D=arguments.length;K")}function f(pe,Z,K,D){for(var X=pe.length,de=Array(X+1),Oe=0;Oe0}var rt={};function Mt(pe,Z){for(var K=[],D=0,X=pe;D")),new In(Z,function(K){return Sn.is(K)&&K.every(pe.is)},function(K,D){var X=Sn.validate(K,D);if((0,t.nM)(X))return X;for(var de=X.right,Oe=de.length,Ae=de,mt=[],$t=0;$t0?h(mt):R(Ae)},pe.encode===P?P:function(K){return K.map(pe.encode)},pe)}var Dr=function(pe){function Z(K,D,X,de,Oe){var Ae=pe.call(this,K,D,X,de)||this;return Ae.props=Oe,Ae._tag="InterfaceType",Ae}return d(Z,pe),Z}(F);function wr(pe,Z){void 0===Z&&(Z=k(pe));var K=Object.keys(pe),D=K.map(function(de){return pe[de]}),X=K.length;return new Dr(Z,function(de){if(en.is(de)){for(var Oe=0;Oe0?h(cn):R($t)},ie(D)?P:function(de){for(var Oe=w({},de),Ae=0;Ae")}(k(pe)));var K=Object.keys(pe),D=K.map(function(de){return pe[de]}),X=K.length;return new Or(Z,function(de){if(en.is(de)){for(var Oe=0;Oe0?h(cn):R($t)},ie(D)?P:function(de){for(var Oe=w({},de),Ae=0;Ae0?h(cn):R(vn||Object.keys(mt).length!==X?$t:mt)},K.encode===P?P:function(de){for(var Oe={},Ae=0;Ae0?h(Oe):R($t?de:D)}return $e(Z)&&Array.isArray(D)?R(D):O(D,X)},pe.encode===P&&Z.encode===P?P:function(D){for(var X={},de=Object.keys(D),Oe=de.length,Ae=0;Ae0){var D=K[0],X=K[1],de=X.length,Oe=function(Ae){for(var mt=0;mt0?h(Oe):R(ve(D,de))},0===pe.length?P:function(D){return ve(D,pe.map(function(X){return X.encode(D)}))},pe)}!function(pe){d(function Z(K,D,X,de,Oe){var Ae=pe.call(this,K,D,X,de)||this;return Ae.types=Oe,Ae._tag="TupleType",Ae},pe)}(F);var Wt=function(pe){function Z(K,D,X,de,Oe){var Ae=pe.call(this,K,D,X,de)||this;return Ae.type=Oe,Ae._tag="ReadonlyType",Ae}return d(Z,pe),Z}(F);function Vt(pe,Z){return void 0===Z&&(Z="Readonly<".concat(pe.name,">")),new Wt(Z,pe.is,pe.validate,pe.encode,pe)}var Un=function(pe){function Z(K,D,X,de,Oe){var Ae=pe.call(this,K,D,X,de)||this;return Ae.type=Oe,Ae._tag="ReadonlyArrayType",Ae}return d(Z,pe),Z}(F);function on(pe,Z){void 0===Z&&(Z="ReadonlyArray<".concat(pe.name,">"));var K=nr(pe);return new Un(Z,K.is,K.validate,K.encode,pe)}!function(pe){d(function Z(K,D,X,de,Oe){var Ae=pe.call(this,K,D,X,de)||this;return Ae.type=Oe,Ae._tag="ExactType",Ae},pe)}(F);var Qe=function(pe){function Z(){var K=pe.call(this,"Function",function(D){return"function"==typeof D},function(D,X){return K.is(D)?R(D):O(D,X)},P)||this;return K._tag="FunctionType",K}return d(Z,pe),Z}(F),Ue=(new Qe,function(pe){function Z(){var K=pe.call(this,"never",function(D){return!1},function(D,X){return O(D,X)},function(){throw new Error("cannot encode never")})||this;return K._tag="NeverType",K}return d(Z,pe),Z}(F)),Rt=(new Ue,function(pe){function Z(){var K=pe.call(this,"any",function(D){return!0},R,P)||this;return K._tag="AnyType",K}return d(Z,pe),Z}(F));function Ft(pe,Z,K){return void 0===K&&(K="(".concat(pe.name," | ").concat(B(Z),")")),new it(K,function(D){return pe.is(D)&&Z(D)},function(D,X){var de=pe.validate(D,X);if((0,t.nM)(de))return de;var Oe=de.right;return Z(Oe)?R(Oe):O(Oe,X)},pe.encode,pe,Z)}new Rt,Ft(xt,Number.isInteger,"Integer");var wn=function(pe){function Z(K,D,X,de,Oe,Ae){var mt=pe.call(this,K,D,X,de,Oe)||this;return mt.tag=Ae,mt}return d(Z,pe),Z}(Zn),Fr=function(pe){return[{key:"",type:pe}]},Hr=function(pe){function Z(){var K=pe.call(this,"object",function(D){return null!==D&&"object"==typeof D},function(D,X){return K.is(D)?R(D):O(D,X)},P)||this;return K._tag="ObjectType",K}return d(Z,pe),Z}(F);new Hr,function(pe){d(function Z(K,D,X,de,Oe){var Ae=pe.call(this,K,D,X,de)||this;return Ae.props=Oe,Ae._tag="StrictType",Ae},pe)}(F)},5619:(Pe,V,a)=>{"use strict";a.d(V,{X:()=>d});var t=a(8645);class d extends t.x{constructor(L){super(),this._value=L}get value(){return this.getValue()}_subscribe(L){const h=super._subscribe(L);return!h.closed&&L.next(this._value),h}getValue(){const{hasError:L,thrownError:h,_value:O}=this;if(L)throw h;return this._throwIfClosed(),O}next(L){super.next(this._value=L)}}},5592:(Pe,V,a)=>{"use strict";a.d(V,{y:()=>F});var t=a(305),d=a(7394),w=a(4850),L=a(8407),h=a(2653),O=a(4674),R=a(1441);let F=(()=>{class f{constructor(M){M&&(this._subscribe=M)}lift(M){const q=new f;return q.source=this,q.operator=M,q}subscribe(M,q,ie){const k=function $(f){return f&&f instanceof t.Lv||function B(f){return f&&(0,O.m)(f.next)&&(0,O.m)(f.error)&&(0,O.m)(f.complete)}(f)&&(0,d.Nn)(f)}(M)?M:new t.Hp(M,q,ie);return(0,R.x)(()=>{const{operator:Te,source:Se}=this;k.add(Te?Te.call(k,Se):Se?this._subscribe(k):this._trySubscribe(k))}),k}_trySubscribe(M){try{return this._subscribe(M)}catch(q){M.error(q)}}forEach(M,q){return new(q=P(q))((ie,k)=>{const Te=new t.Hp({next:Se=>{try{M(Se)}catch(ye){k(ye),Te.unsubscribe()}},error:k,complete:ie});this.subscribe(Te)})}_subscribe(M){var q;return null===(q=this.source)||void 0===q?void 0:q.subscribe(M)}[w.L](){return this}pipe(...M){return(0,L.U)(M)(this)}toPromise(M){return new(M=P(M))((q,ie)=>{let k;this.subscribe(Te=>k=Te,Te=>ie(Te),()=>q(k))})}}return f.create=j=>new f(j),f})();function P(f){var j;return null!==(j=f??h.config.Promise)&&void 0!==j?j:Promise}},7328:(Pe,V,a)=>{"use strict";a.d(V,{t:()=>w});var t=a(8645),d=a(4552);class w extends t.x{constructor(h=1/0,O=1/0,R=d.l){super(),this._bufferSize=h,this._windowTime=O,this._timestampProvider=R,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=O===1/0,this._bufferSize=Math.max(1,h),this._windowTime=Math.max(1,O)}next(h){const{isStopped:O,_buffer:R,_infiniteTimeWindow:F,_timestampProvider:P,_windowTime:B}=this;O||(R.push(h),!F&&R.push(P.now()+B)),this._trimBuffer(),super.next(h)}_subscribe(h){this._throwIfClosed(),this._trimBuffer();const O=this._innerSubscribe(h),{_infiniteTimeWindow:R,_buffer:F}=this,P=F.slice();for(let B=0;B{"use strict";a.d(V,{x:()=>R});var t=a(5592),d=a(7394);const L=(0,a(2306).d)(P=>function(){P(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var h=a(9039),O=a(1441);let R=(()=>{class P extends t.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift($){const f=new F(this,this);return f.operator=$,f}_throwIfClosed(){if(this.closed)throw new L}next($){(0,O.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const f of this.currentObservers)f.next($)}})}error($){(0,O.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=$;const{observers:f}=this;for(;f.length;)f.shift().error($)}})}complete(){(0,O.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:$}=this;for(;$.length;)$.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var $;return(null===($=this.observers)||void 0===$?void 0:$.length)>0}_trySubscribe($){return this._throwIfClosed(),super._trySubscribe($)}_subscribe($){return this._throwIfClosed(),this._checkFinalizedStatuses($),this._innerSubscribe($)}_innerSubscribe($){const{hasError:f,isStopped:j,observers:M}=this;return f||j?d.Lc:(this.currentObservers=null,M.push($),new d.w0(()=>{this.currentObservers=null,(0,h.P)(M,$)}))}_checkFinalizedStatuses($){const{hasError:f,thrownError:j,isStopped:M}=this;f?$.error(j):M&&$.complete()}asObservable(){const $=new t.y;return $.source=this,$}}return P.create=(B,$)=>new F(B,$),P})();class F extends R{constructor(B,$){super(),this.destination=B,this.source=$}next(B){var $,f;null===(f=null===($=this.destination)||void 0===$?void 0:$.next)||void 0===f||f.call($,B)}error(B){var $,f;null===(f=null===($=this.destination)||void 0===$?void 0:$.error)||void 0===f||f.call($,B)}complete(){var B,$;null===($=null===(B=this.destination)||void 0===B?void 0:B.complete)||void 0===$||$.call(B)}_subscribe(B){var $,f;return null!==(f=null===($=this.source)||void 0===$?void 0:$.subscribe(B))&&void 0!==f?f:d.Lc}}},305:(Pe,V,a)=>{"use strict";a.d(V,{Hp:()=>ie,Lv:()=>f});var t=a(4674),d=a(7394),w=a(2653),L=a(3894),h=a(2420);const O=P("C",void 0,void 0);function P(ce,_e,ve){return{kind:ce,value:_e,error:ve}}var B=a(7599),$=a(1441);class f extends d.w0{constructor(_e){super(),this.isStopped=!1,_e?(this.destination=_e,(0,d.Nn)(_e)&&_e.add(this)):this.destination=ye}static create(_e,ve,xe){return new ie(_e,ve,xe)}next(_e){this.isStopped?Se(function F(ce){return P("N",ce,void 0)}(_e),this):this._next(_e)}error(_e){this.isStopped?Se(function R(ce){return P("E",void 0,ce)}(_e),this):(this.isStopped=!0,this._error(_e))}complete(){this.isStopped?Se(O,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(_e){this.destination.next(_e)}_error(_e){try{this.destination.error(_e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const j=Function.prototype.bind;function M(ce,_e){return j.call(ce,_e)}class q{constructor(_e){this.partialObserver=_e}next(_e){const{partialObserver:ve}=this;if(ve.next)try{ve.next(_e)}catch(xe){k(xe)}}error(_e){const{partialObserver:ve}=this;if(ve.error)try{ve.error(_e)}catch(xe){k(xe)}else k(_e)}complete(){const{partialObserver:_e}=this;if(_e.complete)try{_e.complete()}catch(ve){k(ve)}}}class ie extends f{constructor(_e,ve,xe){let be;if(super(),(0,t.m)(_e)||!_e)be={next:_e??void 0,error:ve??void 0,complete:xe??void 0};else{let ke;this&&w.config.useDeprecatedNextContext?(ke=Object.create(_e),ke.unsubscribe=()=>this.unsubscribe(),be={next:_e.next&&M(_e.next,ke),error:_e.error&&M(_e.error,ke),complete:_e.complete&&M(_e.complete,ke)}):be=_e}this.destination=new q(be)}}function k(ce){w.config.useDeprecatedSynchronousErrorHandling?(0,$.O)(ce):(0,L.h)(ce)}function Se(ce,_e){const{onStoppedNotification:ve}=w.config;ve&&B.z.setTimeout(()=>ve(ce,_e))}const ye={closed:!0,next:h.Z,error:function Te(ce){throw ce},complete:h.Z}},7394:(Pe,V,a)=>{"use strict";a.d(V,{Lc:()=>O,w0:()=>h,Nn:()=>R});var t=a(4674);const w=(0,a(2306).d)(P=>function($){P(this),this.message=$?`${$.length} errors occurred during unsubscription:\n${$.map((f,j)=>`${j+1}) ${f.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=$});var L=a(9039);class h{constructor(B){this.initialTeardown=B,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let B;if(!this.closed){this.closed=!0;const{_parentage:$}=this;if($)if(this._parentage=null,Array.isArray($))for(const M of $)M.remove(this);else $.remove(this);const{initialTeardown:f}=this;if((0,t.m)(f))try{f()}catch(M){B=M instanceof w?M.errors:[M]}const{_finalizers:j}=this;if(j){this._finalizers=null;for(const M of j)try{F(M)}catch(q){B=B??[],q instanceof w?B=[...B,...q.errors]:B.push(q)}}if(B)throw new w(B)}}add(B){var $;if(B&&B!==this)if(this.closed)F(B);else{if(B instanceof h){if(B.closed||B._hasParent(this))return;B._addParent(this)}(this._finalizers=null!==($=this._finalizers)&&void 0!==$?$:[]).push(B)}}_hasParent(B){const{_parentage:$}=this;return $===B||Array.isArray($)&&$.includes(B)}_addParent(B){const{_parentage:$}=this;this._parentage=Array.isArray($)?($.push(B),$):$?[$,B]:B}_removeParent(B){const{_parentage:$}=this;$===B?this._parentage=null:Array.isArray($)&&(0,L.P)($,B)}remove(B){const{_finalizers:$}=this;$&&(0,L.P)($,B),B instanceof h&&B._removeParent(this)}}h.EMPTY=(()=>{const P=new h;return P.closed=!0,P})();const O=h.EMPTY;function R(P){return P instanceof h||P&&"closed"in P&&(0,t.m)(P.remove)&&(0,t.m)(P.add)&&(0,t.m)(P.unsubscribe)}function F(P){(0,t.m)(P)?P():P.unsubscribe()}},2653:(Pe,V,a)=>{"use strict";a.d(V,{config:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},2572:(Pe,V,a)=>{"use strict";a.d(V,{a:()=>B});var t=a(5592),d=a(7453),w=a(7715),L=a(2737),h=a(7400),O=a(9940),R=a(2714),F=a(8251),P=a(7103);function B(...j){const M=(0,O.yG)(j),q=(0,O.jO)(j),{args:ie,keys:k}=(0,d.D)(j);if(0===ie.length)return(0,w.D)([],M);const Te=new t.y(function $(j,M,q=L.y){return ie=>{f(M,()=>{const{length:k}=j,Te=new Array(k);let Se=k,ye=k;for(let ce=0;ce{const _e=(0,w.D)(j[ce],M);let ve=!1;_e.subscribe((0,F.x)(ie,xe=>{Te[ce]=xe,ve||(ve=!0,ye--),ye||ie.next(q(Te.slice()))},()=>{--Se||ie.complete()}))},ie)},ie)}}(ie,M,k?Se=>(0,R.n)(k,Se):L.y));return q?Te.pipe((0,h.Z)(q)):Te}function f(j,M,q){j?(0,P.f)(q,j,M):M()}},5211:(Pe,V,a)=>{"use strict";a.d(V,{z:()=>h});var t=a(7537),w=a(9940),L=a(7715);function h(...O){return function d(){return(0,t.J)(1)}()((0,L.D)(O,(0,w.yG)(O)))}},7:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>h});var t=a(8645),d=a(5592),w=a(4911);const L={connector:()=>new t.x,resetOnDisconnect:!0};function h(O,R=L){let F=null;const{connector:P,resetOnDisconnect:B=!0}=R;let $=P();const f=new d.y(j=>$.subscribe(j));return f.connect=()=>((!F||F.closed)&&(F=(0,w.P)(()=>O).subscribe($),B&&F.add(()=>$=P())),F),f}},4911:(Pe,V,a)=>{"use strict";a.d(V,{P:()=>w});var t=a(5592),d=a(4829);function w(L){return new t.y(h=>{(0,d.Xf)(L()).subscribe(h)})}},6232:(Pe,V,a)=>{"use strict";a.d(V,{E:()=>d});const d=new(a(5592).y)(h=>h.complete())},9315:(Pe,V,a)=>{"use strict";a.d(V,{D:()=>F});var t=a(5592),d=a(7453),w=a(4829),L=a(9940),h=a(8251),O=a(7400),R=a(2714);function F(...P){const B=(0,L.jO)(P),{args:$,keys:f}=(0,d.D)(P),j=new t.y(M=>{const{length:q}=$;if(!q)return void M.complete();const ie=new Array(q);let k=q,Te=q;for(let Se=0;Se{ye||(ye=!0,Te--),ie[Se]=ce},()=>k--,void 0,()=>{(!k||!ye)&&(Te||M.next(f?(0,R.n)(f,ie):ie),M.complete())}))}});return B?j.pipe((0,O.Z)(B)):j}},7715:(Pe,V,a)=>{"use strict";a.d(V,{D:()=>xe});var t=a(4829),d=a(7103),w=a(9360),L=a(8251);function h(be,ke=0){return(0,w.e)((vt,rt)=>{vt.subscribe((0,L.x)(rt,Mt=>(0,d.f)(rt,be,()=>rt.next(Mt),ke),()=>(0,d.f)(rt,be,()=>rt.complete(),ke),Mt=>(0,d.f)(rt,be,()=>rt.error(Mt),ke)))})}function O(be,ke=0){return(0,w.e)((vt,rt)=>{rt.add(be.schedule(()=>vt.subscribe(rt),ke))})}var P=a(5592),$=a(4971),f=a(4674);function M(be,ke){if(!be)throw new Error("Iterable cannot be null");return new P.y(vt=>{(0,d.f)(vt,ke,()=>{const rt=be[Symbol.asyncIterator]();(0,d.f)(vt,ke,()=>{rt.next().then(Mt=>{Mt.done?vt.complete():vt.next(Mt.value)})},0,!0)})})}var q=a(8382),ie=a(4026),k=a(4266),Te=a(3664),Se=a(5726),ye=a(9853),ce=a(541);function xe(be,ke){return ke?function ve(be,ke){if(null!=be){if((0,q.c)(be))return function R(be,ke){return(0,t.Xf)(be).pipe(O(ke),h(ke))}(be,ke);if((0,k.z)(be))return function B(be,ke){return new P.y(vt=>{let rt=0;return ke.schedule(function(){rt===be.length?vt.complete():(vt.next(be[rt++]),vt.closed||this.schedule())})})}(be,ke);if((0,ie.t)(be))return function F(be,ke){return(0,t.Xf)(be).pipe(O(ke),h(ke))}(be,ke);if((0,Se.D)(be))return M(be,ke);if((0,Te.T)(be))return function j(be,ke){return new P.y(vt=>{let rt;return(0,d.f)(vt,ke,()=>{rt=be[$.h](),(0,d.f)(vt,ke,()=>{let Mt,qe;try{({value:Mt,done:qe}=rt.next())}catch(_t){return void vt.error(_t)}qe?vt.complete():vt.next(Mt)},0,!0)}),()=>(0,f.m)(rt?.return)&&rt.return()})}(be,ke);if((0,ce.L)(be))return function _e(be,ke){return M((0,ce.Q)(be),ke)}(be,ke)}throw(0,ye.z)(be)}(be,ke):(0,t.Xf)(be)}},2438:(Pe,V,a)=>{"use strict";a.d(V,{R:()=>B});var t=a(4829),d=a(5592),w=a(1631),L=a(4266),h=a(4674),O=a(7400);const R=["addListener","removeListener"],F=["addEventListener","removeEventListener"],P=["on","off"];function B(q,ie,k,Te){if((0,h.m)(k)&&(Te=k,k=void 0),Te)return B(q,ie,k).pipe((0,O.Z)(Te));const[Se,ye]=function M(q){return(0,h.m)(q.addEventListener)&&(0,h.m)(q.removeEventListener)}(q)?F.map(ce=>_e=>q[ce](ie,_e,k)):function f(q){return(0,h.m)(q.addListener)&&(0,h.m)(q.removeListener)}(q)?R.map($(q,ie)):function j(q){return(0,h.m)(q.on)&&(0,h.m)(q.off)}(q)?P.map($(q,ie)):[];if(!Se&&(0,L.z)(q))return(0,w.z)(ce=>B(ce,ie,k))((0,t.Xf)(q));if(!Se)throw new TypeError("Invalid event target");return new d.y(ce=>{const _e=(...ve)=>ce.next(1ye(_e)})}function $(q,ie){return k=>Te=>q[k](ie,Te)}},4829:(Pe,V,a)=>{"use strict";a.d(V,{Xf:()=>j});var t=a(7582),d=a(4266),w=a(4026),L=a(5592),h=a(8382),O=a(5726),R=a(9853),F=a(3664),P=a(541),B=a(4674),$=a(3894),f=a(4850);function j(ce){if(ce instanceof L.y)return ce;if(null!=ce){if((0,h.c)(ce))return function M(ce){return new L.y(_e=>{const ve=ce[f.L]();if((0,B.m)(ve.subscribe))return ve.subscribe(_e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ce);if((0,d.z)(ce))return function q(ce){return new L.y(_e=>{for(let ve=0;ve{ce.then(ve=>{_e.closed||(_e.next(ve),_e.complete())},ve=>_e.error(ve)).then(null,$.h)})}(ce);if((0,O.D)(ce))return Te(ce);if((0,F.T)(ce))return function k(ce){return new L.y(_e=>{for(const ve of ce)if(_e.next(ve),_e.closed)return;_e.complete()})}(ce);if((0,P.L)(ce))return function Se(ce){return Te((0,P.Q)(ce))}(ce)}throw(0,R.z)(ce)}function Te(ce){return new L.y(_e=>{(function ye(ce,_e){var ve,xe,be,ke;return(0,t.mG)(this,void 0,void 0,function*(){try{for(ve=(0,t.KL)(ce);!(xe=yield ve.next()).done;)if(_e.next(xe.value),_e.closed)return}catch(vt){be={error:vt}}finally{try{xe&&!xe.done&&(ke=ve.return)&&(yield ke.call(ve))}finally{if(be)throw be.error}}_e.complete()})})(ce,_e).catch(ve=>_e.error(ve))})}},1687:(Pe,V,a)=>{"use strict";a.d(V,{F:()=>w});var t=a(6321),d=a(4825);function w(L=0,h=t.z){return L<0&&(L=0),(0,d.H)(L,L,h)}},3019:(Pe,V,a)=>{"use strict";a.d(V,{T:()=>O});var t=a(7537),d=a(4829),w=a(6232),L=a(9940),h=a(7715);function O(...R){const F=(0,L.yG)(R),P=(0,L._6)(R,1/0),B=R;return B.length?1===B.length?(0,d.Xf)(B[0]):(0,t.J)(P)((0,h.D)(B,F)):w.E}},2096:(Pe,V,a)=>{"use strict";a.d(V,{of:()=>w});var t=a(9940),d=a(7715);function w(...L){const h=(0,t.yG)(L);return(0,d.D)(L,h)}},8504:(Pe,V,a)=>{"use strict";a.d(V,{_:()=>w});var t=a(5592),d=a(4674);function w(L,h){const O=(0,d.m)(L)?L:()=>L,R=F=>F.error(O());return new t.y(h?F=>h.schedule(R,0,F):R)}},4825:(Pe,V,a)=>{"use strict";a.d(V,{H:()=>h});var t=a(5592),d=a(6321),w=a(671);function h(O=0,R,F=d.P){let P=-1;return null!=R&&((0,w.K)(R)?F=R:P=R),new t.y(B=>{let $=function L(O){return O instanceof Date&&!isNaN(O)}(O)?+O-F.now():O;$<0&&($=0);let f=0;return F.schedule(function(){B.closed||(B.next(f++),0<=P?this.schedule(void 0,P):B.complete())},$)})}},8251:(Pe,V,a)=>{"use strict";a.d(V,{x:()=>d});var t=a(305);function d(L,h,O,R,F){return new w(L,h,O,R,F)}class w extends t.Lv{constructor(h,O,R,F,P,B){super(h),this.onFinalize=P,this.shouldUnsubscribe=B,this._next=O?function($){try{O($)}catch(f){h.error(f)}}:super._next,this._error=F?function($){try{F($)}catch(f){h.error(f)}finally{this.unsubscribe()}}:super._error,this._complete=R?function(){try{R()}catch($){h.error($)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var h;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:O}=this;super.unsubscribe(),!O&&(null===(h=this.onFinalize)||void 0===h||h.call(this))}}}},6306:(Pe,V,a)=>{"use strict";a.d(V,{K:()=>L});var t=a(4829),d=a(8251),w=a(9360);function L(h){return(0,w.e)((O,R)=>{let B,F=null,P=!1;F=O.subscribe((0,d.x)(R,void 0,void 0,$=>{B=(0,t.Xf)(h($,L(h)(O))),F?(F.unsubscribe(),F=null,B.subscribe(R)):P=!0})),P&&(F.unsubscribe(),F=null,B.subscribe(R))})}},6328:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>w});var t=a(1631),d=a(4674);function w(L,h){return(0,d.m)(h)?(0,t.z)(L,h,1):(0,t.z)(L,1)}},3620:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>L});var t=a(6321),d=a(9360),w=a(8251);function L(h,O=t.z){return(0,d.e)((R,F)=>{let P=null,B=null,$=null;const f=()=>{if(P){P.unsubscribe(),P=null;const M=B;B=null,F.next(M)}};function j(){const M=$+h,q=O.now();if(q{B=M,$=O.now(),P||(P=O.schedule(j,h),F.add(P))},()=>{f(),F.complete()},void 0,()=>{B=P=null}))})}},3572:(Pe,V,a)=>{"use strict";a.d(V,{d:()=>w});var t=a(9360),d=a(8251);function w(L){return(0,t.e)((h,O)=>{let R=!1;h.subscribe((0,d.x)(O,F=>{R=!0,O.next(F)},()=>{R||O.next(L),O.complete()}))})}},3997:(Pe,V,a)=>{"use strict";a.d(V,{x:()=>L});var t=a(2737),d=a(9360),w=a(8251);function L(O,R=t.y){return O=O??h,(0,d.e)((F,P)=>{let B,$=!0;F.subscribe((0,w.x)(P,f=>{const j=R(f);($||!O(B,j))&&($=!1,B=j,P.next(f))}))})}function h(O,R){return O===R}},2181:(Pe,V,a)=>{"use strict";a.d(V,{h:()=>w});var t=a(9360),d=a(8251);function w(L,h){return(0,t.e)((O,R)=>{let F=0;O.subscribe((0,d.x)(R,P=>L.call(h,P,F++)&&R.next(P)))})}},4716:(Pe,V,a)=>{"use strict";a.d(V,{x:()=>d});var t=a(9360);function d(w){return(0,t.e)((L,h)=>{try{L.subscribe(h)}finally{h.add(w)}})}},7398:(Pe,V,a)=>{"use strict";a.d(V,{U:()=>w});var t=a(9360),d=a(8251);function w(L,h){return(0,t.e)((O,R)=>{let F=0;O.subscribe((0,d.x)(R,P=>{R.next(L.call(h,P,F++))}))})}},975:(Pe,V,a)=>{"use strict";a.d(V,{h:()=>d});var t=a(7398);function d(w){return(0,t.U)(()=>w)}},7537:(Pe,V,a)=>{"use strict";a.d(V,{J:()=>w});var t=a(1631),d=a(2737);function w(L=1/0){return(0,t.z)(d.y,L)}},1631:(Pe,V,a)=>{"use strict";a.d(V,{z:()=>F});var t=a(7398),d=a(4829),w=a(9360),L=a(7103),h=a(8251),R=a(4674);function F(P,B,$=1/0){return(0,R.m)(B)?F((f,j)=>(0,t.U)((M,q)=>B(f,M,j,q))((0,d.Xf)(P(f,j))),$):("number"==typeof B&&($=B),(0,w.e)((f,j)=>function O(P,B,$,f,j,M,q,ie){const k=[];let Te=0,Se=0,ye=!1;const ce=()=>{ye&&!k.length&&!Te&&B.complete()},_e=xe=>Te{M&&B.next(xe),Te++;let be=!1;(0,d.Xf)($(xe,Se++)).subscribe((0,h.x)(B,ke=>{j?.(ke),M?_e(ke):B.next(ke)},()=>{be=!0},void 0,()=>{if(be)try{for(Te--;k.length&&Teve(ke)):ve(ke)}ce()}catch(ke){B.error(ke)}}))};return P.subscribe((0,h.x)(B,_e,()=>{ye=!0,ce()})),()=>{ie?.()}}(f,j,P,$)))}},6699:(Pe,V,a)=>{"use strict";a.d(V,{R:()=>L});var t=a(9360),d=a(8251);function L(h,O){return(0,t.e)(function w(h,O,R,F,P){return(B,$)=>{let f=R,j=O,M=0;B.subscribe((0,d.x)($,q=>{const ie=M++;j=f?h(j,q,ie):(f=!0,q),F&&$.next(j)},P&&(()=>{f&&$.next(j),$.complete()})))}}(h,O,arguments.length>=2,!0))}},3020:(Pe,V,a)=>{"use strict";a.d(V,{B:()=>h});var t=a(4829),d=a(8645),w=a(305),L=a(9360);function h(R={}){const{connector:F=(()=>new d.x),resetOnError:P=!0,resetOnComplete:B=!0,resetOnRefCountZero:$=!0}=R;return f=>{let j,M,q,ie=0,k=!1,Te=!1;const Se=()=>{M?.unsubscribe(),M=void 0},ye=()=>{Se(),j=q=void 0,k=Te=!1},ce=()=>{const _e=j;ye(),_e?.unsubscribe()};return(0,L.e)((_e,ve)=>{ie++,!Te&&!k&&Se();const xe=q=q??F();ve.add(()=>{ie--,0===ie&&!Te&&!k&&(M=O(ce,$))}),xe.subscribe(ve),!j&&ie>0&&(j=new w.Hp({next:be=>xe.next(be),error:be=>{Te=!0,Se(),M=O(ye,P,be),xe.error(be)},complete:()=>{k=!0,Se(),M=O(ye,B),xe.complete()}}),(0,t.Xf)(_e).subscribe(j))})(f)}}function O(R,F,...P){if(!0===F)return void R();if(!1===F)return;const B=new w.Hp({next:()=>{B.unsubscribe(),R()}});return(0,t.Xf)(F(...P)).subscribe(B)}},7081:(Pe,V,a)=>{"use strict";a.d(V,{d:()=>w});var t=a(7328),d=a(3020);function w(L,h,O){let R,F=!1;return L&&"object"==typeof L?({bufferSize:R=1/0,windowTime:h=1/0,refCount:F=!1,scheduler:O}=L):R=L??1/0,(0,d.B)({connector:()=>new t.t(R,h,O),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:F})}},836:(Pe,V,a)=>{"use strict";a.d(V,{T:()=>d});var t=a(2181);function d(w){return(0,t.h)((L,h)=>w<=h)}},7921:(Pe,V,a)=>{"use strict";a.d(V,{O:()=>L});var t=a(5211),d=a(9940),w=a(9360);function L(...h){const O=(0,d.yG)(h);return(0,w.e)((R,F)=>{(O?(0,t.z)(h,R,O):(0,t.z)(h,R)).subscribe(F)})}},2689:(Pe,V,a)=>{"use strict";a.d(V,{B:()=>w});var t=a(4664),d=a(2737);function w(){return(0,t.w)(d.y)}},4664:(Pe,V,a)=>{"use strict";a.d(V,{w:()=>L});var t=a(4829),d=a(9360),w=a(8251);function L(h,O){return(0,d.e)((R,F)=>{let P=null,B=0,$=!1;const f=()=>$&&!P&&F.complete();R.subscribe((0,w.x)(F,j=>{P?.unsubscribe();let M=0;const q=B++;(0,t.Xf)(h(j,q)).subscribe(P=(0,w.x)(F,ie=>F.next(O?O(j,ie,q,M++):ie),()=>{P=null,f()}))},()=>{$=!0,f()}))})}},8180:(Pe,V,a)=>{"use strict";a.d(V,{q:()=>L});var t=a(6232),d=a(9360),w=a(8251);function L(h){return h<=0?()=>t.E:(0,d.e)((O,R)=>{let F=0;O.subscribe((0,w.x)(R,P=>{++F<=h&&(R.next(P),h<=F&&R.complete())}))})}},9773:(Pe,V,a)=>{"use strict";a.d(V,{R:()=>h});var t=a(9360),d=a(8251),w=a(4829),L=a(2420);function h(O){return(0,t.e)((R,F)=>{(0,w.Xf)(O).subscribe((0,d.x)(F,()=>F.complete(),L.Z)),!F.closed&&R.subscribe(F)})}},9397:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>h});var t=a(4674),d=a(9360),w=a(8251),L=a(2737);function h(O,R,F){const P=(0,t.m)(O)||R||F?{next:O,error:R,complete:F}:O;return P?(0,d.e)((B,$)=>{var f;null===(f=P.subscribe)||void 0===f||f.call(P);let j=!0;B.subscribe((0,w.x)($,M=>{var q;null===(q=P.next)||void 0===q||q.call(P,M),$.next(M)},()=>{var M;j=!1,null===(M=P.complete)||void 0===M||M.call(P),$.complete()},M=>{var q;j=!1,null===(q=P.error)||void 0===q||q.call(P,M),$.error(M)},()=>{var M,q;j&&(null===(M=P.unsubscribe)||void 0===M||M.call(P)),null===(q=P.finalize)||void 0===q||q.call(P)}))}):L.y}},2460:(Pe,V,a)=>{"use strict";a.d(V,{M:()=>R});var t=a(9360),d=a(8251),w=a(4829),L=a(2737),h=a(2420),O=a(9940);function R(...F){const P=(0,O.jO)(F);return(0,t.e)((B,$)=>{const f=F.length,j=new Array(f);let M=F.map(()=>!1),q=!1;for(let ie=0;ie{j[ie]=k,!q&&!M[ie]&&(M[ie]=!0,(q=M.every(L.y))&&(M=null))},h.Z));B.subscribe((0,d.x)($,ie=>{if(q){const k=[ie,...j];$.next(P?P(...k):k)}}))})}},1954:(Pe,V,a)=>{"use strict";a.d(V,{o:()=>h});var t=a(7394);class d extends t.w0{constructor(R,F){super()}schedule(R,F=0){return this}}const w={setInterval(O,R,...F){const{delegate:P}=w;return P?.setInterval?P.setInterval(O,R,...F):setInterval(O,R,...F)},clearInterval(O){const{delegate:R}=w;return(R?.clearInterval||clearInterval)(O)},delegate:void 0};var L=a(9039);class h extends d{constructor(R,F){super(R,F),this.scheduler=R,this.work=F,this.pending=!1}schedule(R,F=0){var P;if(this.closed)return this;this.state=R;const B=this.id,$=this.scheduler;return null!=B&&(this.id=this.recycleAsyncId($,B,F)),this.pending=!0,this.delay=F,this.id=null!==(P=this.id)&&void 0!==P?P:this.requestAsyncId($,this.id,F),this}requestAsyncId(R,F,P=0){return w.setInterval(R.flush.bind(R,this),P)}recycleAsyncId(R,F,P=0){if(null!=P&&this.delay===P&&!1===this.pending)return F;null!=F&&w.clearInterval(F)}execute(R,F){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const P=this._execute(R,F);if(P)return P;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(R,F){let B,P=!1;try{this.work(R)}catch($){P=!0,B=$||new Error("Scheduled action threw falsy error")}if(P)return this.unsubscribe(),B}unsubscribe(){if(!this.closed){const{id:R,scheduler:F}=this,{actions:P}=F;this.work=this.state=this.scheduler=null,this.pending=!1,(0,L.P)(P,this),null!=R&&(this.id=this.recycleAsyncId(F,R,null)),this.delay=null,super.unsubscribe()}}}},2631:(Pe,V,a)=>{"use strict";a.d(V,{v:()=>w});var t=a(4552);class d{constructor(h,O=d.now){this.schedulerActionCtor=h,this.now=O}schedule(h,O=0,R){return new this.schedulerActionCtor(this,h).schedule(R,O)}}d.now=t.l.now;class w extends d{constructor(h,O=d.now){super(h,O),this.actions=[],this._active=!1}flush(h){const{actions:O}=this;if(this._active)return void O.push(h);let R;this._active=!0;do{if(R=h.execute(h.state,h.delay))break}while(h=O.shift());if(this._active=!1,R){for(;h=O.shift();)h.unsubscribe();throw R}}}},6321:(Pe,V,a)=>{"use strict";a.d(V,{P:()=>L,z:()=>w});var t=a(1954);const w=new(a(2631).v)(t.o),L=w},4552:(Pe,V,a)=>{"use strict";a.d(V,{l:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},7599:(Pe,V,a)=>{"use strict";a.d(V,{z:()=>t});const t={setTimeout(d,w,...L){const{delegate:h}=t;return h?.setTimeout?h.setTimeout(d,w,...L):setTimeout(d,w,...L)},clearTimeout(d){const{delegate:w}=t;return(w?.clearTimeout||clearTimeout)(d)},delegate:void 0}},4971:(Pe,V,a)=>{"use strict";a.d(V,{h:()=>d});const d=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},4850:(Pe,V,a)=>{"use strict";a.d(V,{L:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},9940:(Pe,V,a)=>{"use strict";a.d(V,{_6:()=>O,jO:()=>L,yG:()=>h});var t=a(4674),d=a(671);function w(R){return R[R.length-1]}function L(R){return(0,t.m)(w(R))?R.pop():void 0}function h(R){return(0,d.K)(w(R))?R.pop():void 0}function O(R,F){return"number"==typeof w(R)?R.pop():F}},7453:(Pe,V,a)=>{"use strict";a.d(V,{D:()=>h});const{isArray:t}=Array,{getPrototypeOf:d,prototype:w,keys:L}=Object;function h(R){if(1===R.length){const F=R[0];if(t(F))return{args:F,keys:null};if(function O(R){return R&&"object"==typeof R&&d(R)===w}(F)){const P=L(F);return{args:P.map(B=>F[B]),keys:P}}}return{args:R,keys:null}}},9039:(Pe,V,a)=>{"use strict";function t(d,w){if(d){const L=d.indexOf(w);0<=L&&d.splice(L,1)}}a.d(V,{P:()=>t})},2306:(Pe,V,a)=>{"use strict";function t(d){const L=d(h=>{Error.call(h),h.stack=(new Error).stack});return L.prototype=Object.create(Error.prototype),L.prototype.constructor=L,L}a.d(V,{d:()=>t})},2714:(Pe,V,a)=>{"use strict";function t(d,w){return d.reduce((L,h,O)=>(L[h]=w[O],L),{})}a.d(V,{n:()=>t})},1441:(Pe,V,a)=>{"use strict";a.d(V,{O:()=>L,x:()=>w});var t=a(2653);let d=null;function w(h){if(t.config.useDeprecatedSynchronousErrorHandling){const O=!d;if(O&&(d={errorThrown:!1,error:null}),h(),O){const{errorThrown:R,error:F}=d;if(d=null,R)throw F}}else h()}function L(h){t.config.useDeprecatedSynchronousErrorHandling&&d&&(d.errorThrown=!0,d.error=h)}},7103:(Pe,V,a)=>{"use strict";function t(d,w,L,h=0,O=!1){const R=w.schedule(function(){L(),O?d.add(this.schedule(null,h)):this.unsubscribe()},h);if(d.add(R),!O)return R}a.d(V,{f:()=>t})},2737:(Pe,V,a)=>{"use strict";function t(d){return d}a.d(V,{y:()=>t})},4266:(Pe,V,a)=>{"use strict";a.d(V,{z:()=>t});const t=d=>d&&"number"==typeof d.length&&"function"!=typeof d},5726:(Pe,V,a)=>{"use strict";a.d(V,{D:()=>d});var t=a(4674);function d(w){return Symbol.asyncIterator&&(0,t.m)(w?.[Symbol.asyncIterator])}},4674:(Pe,V,a)=>{"use strict";function t(d){return"function"==typeof d}a.d(V,{m:()=>t})},8382:(Pe,V,a)=>{"use strict";a.d(V,{c:()=>w});var t=a(4850),d=a(4674);function w(L){return(0,d.m)(L[t.L])}},3664:(Pe,V,a)=>{"use strict";a.d(V,{T:()=>w});var t=a(4971),d=a(4674);function w(L){return(0,d.m)(L?.[t.h])}},2664:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>w});var t=a(5592),d=a(4674);function w(L){return!!L&&(L instanceof t.y||(0,d.m)(L.lift)&&(0,d.m)(L.subscribe))}},4026:(Pe,V,a)=>{"use strict";a.d(V,{t:()=>d});var t=a(4674);function d(w){return(0,t.m)(w?.then)}},541:(Pe,V,a)=>{"use strict";a.d(V,{L:()=>L,Q:()=>w});var t=a(7582),d=a(4674);function w(h){return(0,t.FC)(this,arguments,function*(){const R=h.getReader();try{for(;;){const{value:F,done:P}=yield(0,t.qq)(R.read());if(P)return yield(0,t.qq)(void 0);yield yield(0,t.qq)(F)}}finally{R.releaseLock()}})}function L(h){return(0,d.m)(h?.getReader)}},671:(Pe,V,a)=>{"use strict";a.d(V,{K:()=>d});var t=a(4674);function d(w){return w&&(0,t.m)(w.schedule)}},9360:(Pe,V,a)=>{"use strict";a.d(V,{A:()=>d,e:()=>w});var t=a(4674);function d(L){return(0,t.m)(L?.lift)}function w(L){return h=>{if(d(h))return h.lift(function(O){try{return L(O,this)}catch(R){this.error(R)}});throw new TypeError("Unable to lift unknown Observable type")}}},7400:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(7398);const{isArray:d}=Array;function L(h){return(0,t.U)(O=>function w(h,O){return d(O)?h(...O):h(O)}(h,O))}},2420:(Pe,V,a)=>{"use strict";function t(){}a.d(V,{Z:()=>t})},8407:(Pe,V,a)=>{"use strict";a.d(V,{U:()=>w,z:()=>d});var t=a(2737);function d(...L){return w(L)}function w(L){return 0===L.length?t.y:1===L.length?L[0]:function(O){return L.reduce((R,F)=>F(R),O)}}},3894:(Pe,V,a)=>{"use strict";a.d(V,{h:()=>w});var t=a(2653),d=a(7599);function w(L){d.z.setTimeout(()=>{const{onUnhandledError:h}=t.config;if(!h)throw L;h(L)})}},9853:(Pe,V,a)=>{"use strict";function t(d){return new TypeError(`You provided ${null!==d&&"object"==typeof d?"an invalid object":`'${d}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}a.d(V,{z:()=>t})},5129:(Pe,V,a)=>{var t=a(1474).FilterCSS,d=a(1474).getDefaultWhiteList,w=a(8735);var h=new t;function B(Ee){return Ee.replace(f,"<").replace(j,">")}var f=//g,M=/"/g,q=/"/g,ie=/&#([a-zA-Z0-9]*);?/gim,k=/:?/gim,Te=/&newline;?/gim,Se=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,ye=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,ce=/u\s*r\s*l\s*\(.*/gi;function _e(Ee){return Ee.replace(M,""")}function ve(Ee){return Ee.replace(q,'"')}function xe(Ee){return Ee.replace(ie,function(J,Q){return String.fromCharCode("x"===Q[0]||"X"===Q[0]?parseInt(Q.substr(1),16):parseInt(Q,10))})}function be(Ee){return Ee.replace(k,":").replace(Te," ")}function ke(Ee){for(var Ze="",J=0,Q=Ee.length;J{var t=a(5129),d=a(4469),w=a(9278);function L(O,R){return new w(R).process(O)}(V=Pe.exports=L).filterXSS=L,V.FilterXSS=w,function(){for(var O in t)V[O]=t[O];for(var R in d)V[R]=d[R]}(),typeof window<"u"&&(window.filterXSS=Pe.exports),function h(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}()&&(self.filterXSS=Pe.exports)},4469:(Pe,V,a)=>{var t=a(8735);function d(f){var M,j=t.spaceIndex(f);return M=f.slice(1,-1===j?-1:j+1),"/"===(M=t.trim(M).toLowerCase()).slice(0,1)&&(M=M.slice(1)),"/"===M.slice(-1)&&(M=M.slice(0,-1)),M}function w(f){return"0;j--){var M=f[j];if(" "!==M)return"="===M?j:-1}}function $(f){return function B(f){return'"'===f[0]&&'"'===f[f.length-1]||"'"===f[0]&&"'"===f[f.length-1]}(f)?f.substr(1,f.length-2):f}V.parseTag=function L(f,j,M){"use strict";var q="",ie=0,k=!1,Te=!1,Se=0,ye=f.length,ce="",_e="";e:for(Se=0;Se"===ve||Se===ye-1){q+=M(f.slice(ie,k)),ce=d(_e=f.slice(k,Se+1)),q+=j(k,q.length,ce,_e,w(_e)),ie=Se+1,k=!1;continue}if('"'===ve||"'"===ve)for(var xe=1,be=f.charAt(Se-xe);""===be.trim()||"="===be;){if("="===be){Te=ve;continue e}be=f.charAt(Se-++xe)}}else if(ve===Te){Te=!1;continue}}return ie{Pe.exports={indexOf:function(V,a){var t,d;if(Array.prototype.indexOf)return V.indexOf(a);for(t=0,d=V.length;t{var t=a(1474).FilterCSS,d=a(5129),w=a(4469),L=w.parseTag,h=w.parseAttr,O=a(8735);function R(f){return null==f}function $(f){(f=function P(f){var j={};for(var M in f)j[M]=f[M];return j}(f||{})).stripIgnoreTag&&(f.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),f.onIgnoreTag=d.onIgnoreTagStripAll),f.whiteList=f.whiteList||f.allowList?function B(f){var j={};for(var M in f)Array.isArray(f[M])?j[M.toLowerCase()]=f[M].map(function(q){return q.toLowerCase()}):j[M.toLowerCase()]=f[M];return j}(f.whiteList||f.allowList):d.whiteList,f.onTag=f.onTag||d.onTag,f.onTagAttr=f.onTagAttr||d.onTagAttr,f.onIgnoreTag=f.onIgnoreTag||d.onIgnoreTag,f.onIgnoreTagAttr=f.onIgnoreTagAttr||d.onIgnoreTagAttr,f.safeAttrValue=f.safeAttrValue||d.safeAttrValue,f.escapeHtml=f.escapeHtml||d.escapeHtml,this.options=f,!1===f.css?this.cssFilter=!1:(f.css=f.css||{},this.cssFilter=new t(f.css))}$.prototype.process=function(f){if(!(f=(f=f||"").toString()))return"";var M=this.options,q=M.whiteList,ie=M.onTag,k=M.onIgnoreTag,Te=M.onTagAttr,Se=M.onIgnoreTagAttr,ye=M.safeAttrValue,ce=M.escapeHtml,_e=this.cssFilter;M.stripBlankChar&&(f=d.stripBlankChar(f)),M.allowCommentTag||(f=d.stripCommentTag(f));var ve=!1;M.stripIgnoreTagBody&&(ve=d.StripTagBody(M.stripIgnoreTagBody,k),k=ve.onIgnoreTag);var xe=L(f,function(be,ke,vt,rt,Mt){var qe={sourcePosition:be,position:ke,isClosing:Mt,isWhite:Object.prototype.hasOwnProperty.call(q,vt)},_t=ie(vt,rt,qe);if(!R(_t))return _t;if(qe.isWhite){if(qe.isClosing)return"";var $e=function F(f){var j=O.spaceIndex(f);if(-1===j)return{html:"",closing:"/"===f[f.length-2]};var M="/"===(f=O.trim(f.slice(j+1,-1)))[f.length-1];return M&&(f=O.trim(f.slice(0,-1))),{html:f,closing:M}}(rt),Ee=q[vt],Ze=h($e.html,function(J,Q){var oe=-1!==O.indexOf(Ee,J),se=Te(vt,J,Q,oe);return R(se)?oe?(Q=ye(vt,J,Q,_e))?J+'="'+Q+'"':J:R(se=Se(vt,J,Q,oe))?void 0:se:se});return rt="<"+vt,Ze&&(rt+=" "+Ze),$e.closing&&(rt+=" /"),rt+">"}return R(_t=k(vt,rt,qe))?ce(rt):_t},ce);return ve&&(xe=ve.remove(xe)),xe},Pe.exports=$},6814:(Pe,V,a)=>{"use strict";a.d(V,{Do:()=>ie,EM:()=>di,HT:()=>L,JF:()=>Oi,JJ:()=>Kt,K0:()=>O,Mn:()=>$e,Mx:()=>Hr,O5:()=>X,Ov:()=>Wi,PC:()=>ir,PM:()=>Yn,S$:()=>j,Tn:()=>ke,UT:()=>Ee,V_:()=>F,Ye:()=>k,ax:()=>Z,b0:()=>q,bD:()=>ct,ez:()=>Ve,mk:()=>qn,p6:()=>fn,q:()=>w,qS:()=>Ar,sg:()=>Z,tP:()=>_r,uU:()=>vi,uf:()=>bt,w_:()=>h,x:()=>be});var t=a(5879);let d=null;function w(){return d}function L(T){d||(d=T)}class h{}const O=new t.OlP("DocumentToken");let R=(()=>{class T{historyGo(U){throw new Error("Not implemented")}static#e=this.\u0275fac=function(ee){return new(ee||T)};static#t=this.\u0275prov=t.Yz7({token:T,factory:function(){return(0,t.f3M)(P)},providedIn:"platform"})}return T})();const F=new t.OlP("Location Initialized");let P=(()=>{class T extends R{constructor(){super(),this._doc=(0,t.f3M)(O),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return w().getBaseHref(this._doc)}onPopState(U){const ee=w().getGlobalEventTarget(this._doc,"window");return ee.addEventListener("popstate",U,!1),()=>ee.removeEventListener("popstate",U)}onHashChange(U){const ee=w().getGlobalEventTarget(this._doc,"window");return ee.addEventListener("hashchange",U,!1),()=>ee.removeEventListener("hashchange",U)}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(U){this._location.pathname=U}pushState(U,ee,Ie){this._history.pushState(U,ee,Ie)}replaceState(U,ee,Ie){this._history.replaceState(U,ee,Ie)}forward(){this._history.forward()}back(){this._history.back()}historyGo(U=0){this._history.go(U)}getState(){return this._history.state}static#e=this.\u0275fac=function(ee){return new(ee||T)};static#t=this.\u0275prov=t.Yz7({token:T,factory:function(){return new T},providedIn:"platform"})}return T})();function B(T,le){if(0==T.length)return le;if(0==le.length)return T;let U=0;return T.endsWith("/")&&U++,le.startsWith("/")&&U++,2==U?T+le.substring(1):1==U?T+le:T+"/"+le}function $(T){const le=T.match(/#|\?|$/),U=le&&le.index||T.length;return T.slice(0,U-("/"===T[U-1]?1:0))+T.slice(U)}function f(T){return T&&"?"!==T[0]?"?"+T:T}let j=(()=>{class T{historyGo(U){throw new Error("Not implemented")}static#e=this.\u0275fac=function(ee){return new(ee||T)};static#t=this.\u0275prov=t.Yz7({token:T,factory:function(){return(0,t.f3M)(q)},providedIn:"root"})}return T})();const M=new t.OlP("appBaseHref");let q=(()=>{class T extends j{constructor(U,ee){super(),this._platformLocation=U,this._removeListenerFns=[],this._baseHref=ee??this._platformLocation.getBaseHrefFromDOM()??(0,t.f3M)(O).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(U){this._removeListenerFns.push(this._platformLocation.onPopState(U),this._platformLocation.onHashChange(U))}getBaseHref(){return this._baseHref}prepareExternalUrl(U){return B(this._baseHref,U)}path(U=!1){const ee=this._platformLocation.pathname+f(this._platformLocation.search),Ie=this._platformLocation.hash;return Ie&&U?`${ee}${Ie}`:ee}pushState(U,ee,Ie,gt){const Ct=this.prepareExternalUrl(Ie+f(gt));this._platformLocation.pushState(U,ee,Ct)}replaceState(U,ee,Ie,gt){const Ct=this.prepareExternalUrl(Ie+f(gt));this._platformLocation.replaceState(U,ee,Ct)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(U=0){this._platformLocation.historyGo?.(U)}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.LFG(R),t.LFG(M,8))};static#t=this.\u0275prov=t.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"})}return T})(),ie=(()=>{class T extends j{constructor(U,ee){super(),this._platformLocation=U,this._baseHref="",this._removeListenerFns=[],null!=ee&&(this._baseHref=ee)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(U){this._removeListenerFns.push(this._platformLocation.onPopState(U),this._platformLocation.onHashChange(U))}getBaseHref(){return this._baseHref}path(U=!1){let ee=this._platformLocation.hash;return null==ee&&(ee="#"),ee.length>0?ee.substring(1):ee}prepareExternalUrl(U){const ee=B(this._baseHref,U);return ee.length>0?"#"+ee:ee}pushState(U,ee,Ie,gt){let Ct=this.prepareExternalUrl(Ie+f(gt));0==Ct.length&&(Ct=this._platformLocation.pathname),this._platformLocation.pushState(U,ee,Ct)}replaceState(U,ee,Ie,gt){let Ct=this.prepareExternalUrl(Ie+f(gt));0==Ct.length&&(Ct=this._platformLocation.pathname),this._platformLocation.replaceState(U,ee,Ct)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(U=0){this._platformLocation.historyGo?.(U)}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.LFG(R),t.LFG(M,8))};static#t=this.\u0275prov=t.Yz7({token:T,factory:T.\u0275fac})}return T})(),k=(()=>{class T{constructor(U){this._subject=new t.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=U;const ee=this._locationStrategy.getBaseHref();this._basePath=function ce(T){if(new RegExp("^(https?:)?//").test(T)){const[,U]=T.split(/\/\/[^\/]+/);return U}return T}($(ye(ee))),this._locationStrategy.onPopState(Ie=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ie.state,type:Ie.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(U=!1){return this.normalize(this._locationStrategy.path(U))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(U,ee=""){return this.path()==this.normalize(U+f(ee))}normalize(U){return T.stripTrailingSlash(function Se(T,le){if(!T||!le.startsWith(T))return le;const U=le.substring(T.length);return""===U||["/",";","?","#"].includes(U[0])?U:le}(this._basePath,ye(U)))}prepareExternalUrl(U){return U&&"/"!==U[0]&&(U="/"+U),this._locationStrategy.prepareExternalUrl(U)}go(U,ee="",Ie=null){this._locationStrategy.pushState(Ie,"",U,ee),this._notifyUrlChangeListeners(this.prepareExternalUrl(U+f(ee)),Ie)}replaceState(U,ee="",Ie=null){this._locationStrategy.replaceState(Ie,"",U,ee),this._notifyUrlChangeListeners(this.prepareExternalUrl(U+f(ee)),Ie)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(U=0){this._locationStrategy.historyGo?.(U)}onUrlChange(U){return this._urlChangeListeners.push(U),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ee=>{this._notifyUrlChangeListeners(ee.url,ee.state)})),()=>{const ee=this._urlChangeListeners.indexOf(U);this._urlChangeListeners.splice(ee,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(U="",ee){this._urlChangeListeners.forEach(Ie=>Ie(U,ee))}subscribe(U,ee,Ie){return this._subject.subscribe({next:U,error:ee,complete:Ie})}static#e=this.normalizeQueryParams=f;static#t=this.joinWithSlash=B;static#n=this.stripTrailingSlash=$;static#r=this.\u0275fac=function(ee){return new(ee||T)(t.LFG(j))};static#i=this.\u0275prov=t.Yz7({token:T,factory:function(){return function Te(){return new k((0,t.LFG)(j))}()},providedIn:"root"})}return T})();function ye(T){return T.replace(/\/index.html$/,"")}var ve=function(T){return T[T.Decimal=0]="Decimal",T[T.Percent=1]="Percent",T[T.Currency=2]="Currency",T[T.Scientific=3]="Scientific",T}(ve||{}),be=function(T){return T[T.Format=0]="Format",T[T.Standalone=1]="Standalone",T}(be||{}),ke=function(T){return T[T.Narrow=0]="Narrow",T[T.Abbreviated=1]="Abbreviated",T[T.Wide=2]="Wide",T[T.Short=3]="Short",T}(ke||{}),vt=function(T){return T[T.Short=0]="Short",T[T.Medium=1]="Medium",T[T.Long=2]="Long",T[T.Full=3]="Full",T}(vt||{}),rt=function(T){return T[T.Decimal=0]="Decimal",T[T.Group=1]="Group",T[T.List=2]="List",T[T.PercentSign=3]="PercentSign",T[T.PlusSign=4]="PlusSign",T[T.MinusSign=5]="MinusSign",T[T.Exponential=6]="Exponential",T[T.SuperscriptingExponent=7]="SuperscriptingExponent",T[T.PerMille=8]="PerMille",T[T.Infinity=9]="Infinity",T[T.NaN=10]="NaN",T[T.TimeSeparator=11]="TimeSeparator",T[T.CurrencyDecimal=12]="CurrencyDecimal",T[T.CurrencyGroup=13]="CurrencyGroup",T}(rt||{});function $e(T,le,U){const ee=(0,t.cg1)(T),gt=Zt([ee[t.wAp.DaysFormat],ee[t.wAp.DaysStandalone]],le);return Zt(gt,U)}function Ee(T,le,U){const ee=(0,t.cg1)(T),gt=Zt([ee[t.wAp.MonthsFormat],ee[t.wAp.MonthsStandalone]],le);return Zt(gt,U)}function oe(T,le){return Zt((0,t.cg1)(T)[t.wAp.DateFormat],le)}function se(T,le){return Zt((0,t.cg1)(T)[t.wAp.TimeFormat],le)}function ae(T,le){return Zt((0,t.cg1)(T)[t.wAp.DateTimeFormat],le)}function fe(T,le){const U=(0,t.cg1)(T),ee=U[t.wAp.NumberSymbols][le];if(typeof ee>"u"){if(le===rt.CurrencyDecimal)return U[t.wAp.NumberSymbols][rt.Decimal];if(le===rt.CurrencyGroup)return U[t.wAp.NumberSymbols][rt.Group]}return ee}function Je(T){if(!T[t.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${T[t.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Zt(T,le){for(let U=le;U>-1;U--)if(typeof T[U]<"u")return T[U];throw new Error("Locale data API: locale data undefined")}function dn(T){const[le,U]=T.split(":");return{hours:+le,minutes:+U}}const At=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,xt={},nn=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Et=function(T){return T[T.Short=0]="Short",T[T.ShortGMT=1]="ShortGMT",T[T.Long=2]="Long",T[T.Extended=3]="Extended",T}(Et||{}),Ht=function(T){return T[T.FullYear=0]="FullYear",T[T.Month=1]="Month",T[T.Date=2]="Date",T[T.Hours=3]="Hours",T[T.Minutes=4]="Minutes",T[T.Seconds=5]="Seconds",T[T.FractionalSeconds=6]="FractionalSeconds",T[T.Day=7]="Day",T}(Ht||{}),zt=function(T){return T[T.DayPeriods=0]="DayPeriods",T[T.Days=1]="Days",T[T.Months=2]="Months",T[T.Eras=3]="Eras",T}(zt||{});function fn(T,le,U,ee){let Ie=function dt(T){if(we(T))return T;if("number"==typeof T&&!isNaN(T))return new Date(T);if("string"==typeof T){if(T=T.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(T)){const[Ie,gt=1,Ct=1]=T.split("-").map(Jt=>+Jt);return Sn(Ie,gt-1,Ct)}const U=parseFloat(T);if(!isNaN(T-U))return new Date(U);let ee;if(ee=T.match(At))return function ot(T){const le=new Date(0);let U=0,ee=0;const Ie=T[8]?le.setUTCFullYear:le.setFullYear,gt=T[8]?le.setUTCHours:le.setHours;T[9]&&(U=Number(T[9]+T[10]),ee=Number(T[9]+T[11])),Ie.call(le,Number(T[1]),Number(T[2])-1,Number(T[3]));const Ct=Number(T[4]||0)-U,Jt=Number(T[5]||0)-ee,Bn=Number(T[6]||0),dr=Math.floor(1e3*parseFloat("0."+(T[7]||0)));return gt.call(le,Ct,Jt,Bn,dr),le}(ee)}const le=new Date(T);if(!we(le))throw new Error(`Unable to convert "${T}" into a date`);return le}(T);le=hn(U,le)||le;let Jt,Ct=[];for(;le;){if(Jt=nn.exec(le),!Jt){Ct.push(le);break}{Ct=Ct.concat(Jt.slice(1));const yr=Ct.pop();if(!yr)break;le=yr}}let Bn=Ie.getTimezoneOffset();ee&&(Bn=Br(ee,Bn),Ie=function Zn(T,le,U){const ee=U?-1:1,Ie=T.getTimezoneOffset();return function oi(T,le){return(T=new Date(T.getTime())).setMinutes(T.getMinutes()+le),T}(T,ee*(Br(le,Ie)-Ie))}(Ie,ee,!0));let dr="";return Ct.forEach(yr=>{const Kn=function Ir(T){if(Or[T])return Or[T];let le;switch(T){case"G":case"GG":case"GGG":le=it(zt.Eras,ke.Abbreviated);break;case"GGGG":le=it(zt.Eras,ke.Wide);break;case"GGGGG":le=it(zt.Eras,ke.Narrow);break;case"y":le=_n(Ht.FullYear,1,0,!1,!0);break;case"yy":le=_n(Ht.FullYear,2,0,!0,!0);break;case"yyy":le=_n(Ht.FullYear,3,0,!1,!0);break;case"yyyy":le=_n(Ht.FullYear,4,0,!1,!0);break;case"Y":le=wr(1);break;case"YY":le=wr(2,!0);break;case"YYY":le=wr(3);break;case"YYYY":le=wr(4);break;case"M":case"L":le=_n(Ht.Month,1,1);break;case"MM":case"LL":le=_n(Ht.Month,2,1);break;case"MMM":le=it(zt.Months,ke.Abbreviated);break;case"MMMM":le=it(zt.Months,ke.Wide);break;case"MMMMM":le=it(zt.Months,ke.Narrow);break;case"LLL":le=it(zt.Months,ke.Abbreviated,be.Standalone);break;case"LLLL":le=it(zt.Months,ke.Wide,be.Standalone);break;case"LLLLL":le=it(zt.Months,ke.Narrow,be.Standalone);break;case"w":le=Dr(1);break;case"ww":le=Dr(2);break;case"W":le=Dr(1,!0);break;case"d":le=_n(Ht.Date,1);break;case"dd":le=_n(Ht.Date,2);break;case"c":case"cc":le=_n(Ht.Day,1);break;case"ccc":le=it(zt.Days,ke.Abbreviated,be.Standalone);break;case"cccc":le=it(zt.Days,ke.Wide,be.Standalone);break;case"ccccc":le=it(zt.Days,ke.Narrow,be.Standalone);break;case"cccccc":le=it(zt.Days,ke.Short,be.Standalone);break;case"E":case"EE":case"EEE":le=it(zt.Days,ke.Abbreviated);break;case"EEEE":le=it(zt.Days,ke.Wide);break;case"EEEEE":le=it(zt.Days,ke.Narrow);break;case"EEEEEE":le=it(zt.Days,ke.Short);break;case"a":case"aa":case"aaa":le=it(zt.DayPeriods,ke.Abbreviated);break;case"aaaa":le=it(zt.DayPeriods,ke.Wide);break;case"aaaaa":le=it(zt.DayPeriods,ke.Narrow);break;case"b":case"bb":case"bbb":le=it(zt.DayPeriods,ke.Abbreviated,be.Standalone,!0);break;case"bbbb":le=it(zt.DayPeriods,ke.Wide,be.Standalone,!0);break;case"bbbbb":le=it(zt.DayPeriods,ke.Narrow,be.Standalone,!0);break;case"B":case"BB":case"BBB":le=it(zt.DayPeriods,ke.Abbreviated,be.Format,!0);break;case"BBBB":le=it(zt.DayPeriods,ke.Wide,be.Format,!0);break;case"BBBBB":le=it(zt.DayPeriods,ke.Narrow,be.Format,!0);break;case"h":le=_n(Ht.Hours,1,-12);break;case"hh":le=_n(Ht.Hours,2,-12);break;case"H":le=_n(Ht.Hours,1);break;case"HH":le=_n(Ht.Hours,2);break;case"m":le=_n(Ht.Minutes,1);break;case"mm":le=_n(Ht.Minutes,2);break;case"s":le=_n(Ht.Seconds,1);break;case"ss":le=_n(Ht.Seconds,2);break;case"S":le=_n(Ht.FractionalSeconds,1);break;case"SS":le=_n(Ht.FractionalSeconds,2);break;case"SSS":le=_n(Ht.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":le=Qt(Et.Short);break;case"ZZZZZ":le=Qt(Et.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":le=Qt(Et.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":le=Qt(Et.Long);break;default:return null}return Or[T]=le,le}(yr);dr+=Kn?Kn(Ie,U,Bn):"''"===yr?"'":yr.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),dr}function Sn(T,le,U){const ee=new Date(0);return ee.setFullYear(T,le,U),ee.setHours(0,0,0),ee}function hn(T,le){const U=function qe(T){return(0,t.cg1)(T)[t.wAp.LocaleId]}(T);if(xt[U]=xt[U]||{},xt[U][le])return xt[U][le];let ee="";switch(le){case"shortDate":ee=oe(T,vt.Short);break;case"mediumDate":ee=oe(T,vt.Medium);break;case"longDate":ee=oe(T,vt.Long);break;case"fullDate":ee=oe(T,vt.Full);break;case"shortTime":ee=se(T,vt.Short);break;case"mediumTime":ee=se(T,vt.Medium);break;case"longTime":ee=se(T,vt.Long);break;case"fullTime":ee=se(T,vt.Full);break;case"short":const Ie=hn(T,"shortTime"),gt=hn(T,"shortDate");ee=en(ae(T,vt.Short),[Ie,gt]);break;case"medium":const Ct=hn(T,"mediumTime"),Jt=hn(T,"mediumDate");ee=en(ae(T,vt.Medium),[Ct,Jt]);break;case"long":const Bn=hn(T,"longTime"),dr=hn(T,"longDate");ee=en(ae(T,vt.Long),[Bn,dr]);break;case"full":const yr=hn(T,"fullTime"),Kn=hn(T,"fullDate");ee=en(ae(T,vt.Full),[yr,Kn])}return ee&&(xt[U][le]=ee),ee}function en(T,le){return le&&(T=T.replace(/\{([^}]+)}/g,function(U,ee){return null!=le&&ee in le?le[ee]:U})),T}function Dn(T,le,U="-",ee,Ie){let gt="";(T<0||Ie&&T<=0)&&(Ie?T=1-T:(T=-T,gt=U));let Ct=String(T);for(;Ct.length0||Jt>-U)&&(Jt+=U),T===Ht.Hours)0===Jt&&-12===U&&(Jt=12);else if(T===Ht.FractionalSeconds)return function Wn(T,le){return Dn(T,3).substring(0,le)}(Jt,le);const Bn=fe(Ct,rt.MinusSign);return Dn(Jt,le,Bn,ee,Ie)}}function it(T,le,U=be.Format,ee=!1){return function(Ie,gt){return function Ut(T,le,U,ee,Ie,gt){switch(U){case zt.Months:return Ee(le,Ie,ee)[T.getMonth()];case zt.Days:return $e(le,Ie,ee)[T.getDay()];case zt.DayPeriods:const Ct=T.getHours(),Jt=T.getMinutes();if(gt){const dr=function Tt(T){const le=(0,t.cg1)(T);return Je(le),(le[t.wAp.ExtraData][2]||[]).map(ee=>"string"==typeof ee?dn(ee):[dn(ee[0]),dn(ee[1])])}(le),yr=function et(T,le,U){const ee=(0,t.cg1)(T);Je(ee);const gt=Zt([ee[t.wAp.ExtraData][0],ee[t.wAp.ExtraData][1]],le)||[];return Zt(gt,U)||[]}(le,Ie,ee),Kn=dr.findIndex(Jr=>{if(Array.isArray(Jr)){const[Jn,ei]=Jr,Ei=Ct>=Jn.hours&&Jt>=Jn.minutes,Ai=Ct0?Math.floor(Ie/60):Math.ceil(Ie/60);switch(T){case Et.Short:return(Ie>=0?"+":"")+Dn(Ct,2,gt)+Dn(Math.abs(Ie%60),2,gt);case Et.ShortGMT:return"GMT"+(Ie>=0?"+":"")+Dn(Ct,1,gt);case Et.Long:return"GMT"+(Ie>=0?"+":"")+Dn(Ct,2,gt)+":"+Dn(Math.abs(Ie%60),2,gt);case Et.Extended:return 0===ee?"Z":(Ie>=0?"+":"")+Dn(Ct,2,gt)+":"+Dn(Math.abs(Ie%60),2,gt);default:throw new Error(`Unknown zone width "${T}"`)}}}const Cn=0,An=4;function nr(T){return Sn(T.getFullYear(),T.getMonth(),T.getDate()+(An-T.getDay()))}function Dr(T,le=!1){return function(U,ee){let Ie;if(le){const gt=new Date(U.getFullYear(),U.getMonth(),1).getDay()-1,Ct=U.getDate();Ie=1+Math.floor((Ct+gt)/7)}else{const gt=nr(U),Ct=function In(T){const le=Sn(T,Cn,1).getDay();return Sn(T,0,1+(le<=An?An:An+7)-le)}(gt.getFullYear()),Jt=gt.getTime()-Ct.getTime();Ie=1+Math.round(Jt/6048e5)}return Dn(Ie,T,fe(ee,rt.MinusSign))}}function wr(T,le=!1){return function(U,ee){return Dn(nr(U).getFullYear(),T,fe(ee,rt.MinusSign),le)}}const Or={};function Br(T,le){T=T.replace(/:/g,"");const U=Date.parse("Jan 01, 1970 00:00:00 "+T)/6e4;return isNaN(U)?le:U}function we(T){return T instanceof Date&&!isNaN(T.valueOf())}const He=/^(\d+)?\.((\d+)(-(\d+))?)?$/,yt=22,Wt=".",Vt="0",Un=";",on=",",rr="#";function bt(T,le,U){return function Qe(T,le,U,ee,Ie,gt,Ct=!1){let Jt="",Bn=!1;if(isFinite(T)){let dr=function Ft(T){let ee,Ie,gt,Ct,Jt,le=Math.abs(T)+"",U=0;for((Ie=le.indexOf(Wt))>-1&&(le=le.replace(Wt,"")),(gt=le.search(/e/i))>0?(Ie<0&&(Ie=gt),Ie+=+le.slice(gt+1),le=le.substring(0,gt)):Ie<0&&(Ie=le.length),gt=0;le.charAt(gt)===Vt;gt++);if(gt===(Jt=le.length))ee=[0],Ie=1;else{for(Jt--;le.charAt(Jt)===Vt;)Jt--;for(Ie-=gt,ee=[],Ct=0;gt<=Jt;gt++,Ct++)ee[Ct]=Number(le.charAt(gt))}return Ie>yt&&(ee=ee.splice(0,yt-1),U=Ie-1,Ie=1),{digits:ee,exponent:U,integerLen:Ie}}(T);Ct&&(dr=function kt(T){if(0===T.digits[0])return T;const le=T.digits.length-T.integerLen;return T.exponent?T.exponent+=2:(0===le?T.digits.push(0,0):1===le&&T.digits.push(0),T.integerLen+=2),T}(dr));let yr=le.minInt,Kn=le.minFrac,Jr=le.maxFrac;if(gt){const Fi=gt.match(He);if(null===Fi)throw new Error(`${gt} is not a valid digit info`);const ti=Fi[1],cs=Fi[3],Ts=Fi[5];null!=ti&&(yr=wn(ti)),null!=cs&&(Kn=wn(cs)),null!=Ts?Jr=wn(Ts):null!=cs&&Kn>Jr&&(Jr=Kn)}!function an(T,le,U){if(le>U)throw new Error(`The minimum number of digits after fraction (${le}) is higher than the maximum (${U}).`);let ee=T.digits,Ie=ee.length-T.integerLen;const gt=Math.min(Math.max(le,Ie),U);let Ct=gt+T.integerLen,Jt=ee[Ct];if(Ct>0){ee.splice(Math.max(T.integerLen,Ct));for(let Kn=Ct;Kn=5)if(Ct-1<0){for(let Kn=0;Kn>Ct;Kn--)ee.unshift(0),T.integerLen++;ee.unshift(1),T.integerLen++}else ee[Ct-1]++;for(;Ie=dr?ei.pop():Bn=!1),Jr>=10?1:0},0);yr&&(ee.unshift(yr),T.integerLen++)}(dr,Kn,Jr);let Jn=dr.digits,ei=dr.integerLen;const Ei=dr.exponent;let Ai=[];for(Bn=Jn.every(Fi=>!Fi);ei0?Ai=Jn.splice(ei,Jn.length):(Ai=Jn,Jn=[0]);const Hi=[];for(Jn.length>=le.lgSize&&Hi.unshift(Jn.splice(-le.lgSize,Jn.length).join(""));Jn.length>le.gSize;)Hi.unshift(Jn.splice(-le.gSize,Jn.length).join(""));Jn.length&&Hi.unshift(Jn.join("")),Jt=Hi.join(fe(U,ee)),Ai.length&&(Jt+=fe(U,Ie)+Ai.join("")),Ei&&(Jt+=fe(U,rt.Exponential)+"+"+Ei)}else Jt=fe(U,rt.Infinity);return Jt=T<0&&!Bn?le.negPre+Jt+le.negSuf:le.posPre+Jt+le.posSuf,Jt}(T,function Rt(T,le="-"){const U={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ee=T.split(Un),Ie=ee[0],gt=ee[1],Ct=-1!==Ie.indexOf(Wt)?Ie.split(Wt):[Ie.substring(0,Ie.lastIndexOf(Vt)+1),Ie.substring(Ie.lastIndexOf(Vt)+1)],Jt=Ct[0],Bn=Ct[1]||"";U.posPre=Jt.substring(0,Jt.indexOf(rr));for(let yr=0;yr{class T{constructor(U,ee,Ie,gt){this._iterableDiffers=U,this._keyValueDiffers=ee,this._ngEl=Ie,this._renderer=gt,this.initialClasses=Xn,this.stateMap=new Map}set klass(U){this.initialClasses=null!=U?U.trim().split(Zr):Xn}set ngClass(U){this.rawClass="string"==typeof U?U.trim().split(Zr):U}ngDoCheck(){for(const ee of this.initialClasses)this._updateState(ee,!0);const U=this.rawClass;if(Array.isArray(U)||U instanceof Set)for(const ee of U)this._updateState(ee,!0);else if(null!=U)for(const ee of Object.keys(U))this._updateState(ee,!!U[ee]);this._applyStateDiff()}_updateState(U,ee){const Ie=this.stateMap.get(U);void 0!==Ie?(Ie.enabled!==ee&&(Ie.changed=!0,Ie.enabled=ee),Ie.touched=!0):this.stateMap.set(U,{enabled:ee,changed:!0,touched:!0})}_applyStateDiff(){for(const U of this.stateMap){const ee=U[0],Ie=U[1];Ie.changed?(this._toggleClass(ee,Ie.enabled),Ie.changed=!1):Ie.touched||(Ie.enabled&&this._toggleClass(ee,!1),this.stateMap.delete(ee)),Ie.touched=!1}}_toggleClass(U,ee){(U=U.trim()).length>0&&U.split(Zr).forEach(Ie=>{ee?this._renderer.addClass(this._ngEl.nativeElement,Ie):this._renderer.removeClass(this._ngEl.nativeElement,Ie)})}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.SBq),t.Y36(t.Qsj))};static#t=this.\u0275dir=t.lG2({type:T,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return T})();class pe{constructor(le,U,ee,Ie){this.$implicit=le,this.ngForOf=U,this.index=ee,this.count=Ie}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 Z=(()=>{class T{set ngForOf(U){this._ngForOf=U,this._ngForOfDirty=!0}set ngForTrackBy(U){this._trackByFn=U}get ngForTrackBy(){return this._trackByFn}constructor(U,ee,Ie){this._viewContainer=U,this._template=ee,this._differs=Ie,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(U){U&&(this._template=U)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const U=this._ngForOf;!this._differ&&U&&(this._differ=this._differs.find(U).create(this.ngForTrackBy))}if(this._differ){const U=this._differ.diff(this._ngForOf);U&&this._applyChanges(U)}}_applyChanges(U){const ee=this._viewContainer;U.forEachOperation((Ie,gt,Ct)=>{if(null==Ie.previousIndex)ee.createEmbeddedView(this._template,new pe(Ie.item,this._ngForOf,-1,-1),null===Ct?void 0:Ct);else if(null==Ct)ee.remove(null===gt?void 0:gt);else if(null!==gt){const Jt=ee.get(gt);ee.move(Jt,Ct),K(Jt,Ie)}});for(let Ie=0,gt=ee.length;Ie{K(ee.get(Ie.currentIndex),Ie)})}static ngTemplateContextGuard(U,ee){return!0}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(t.ZZ4))};static#t=this.\u0275dir=t.lG2({type:T,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return T})();function K(T,le){T.context.$implicit=le.item}let X=(()=>{class T{constructor(U,ee){this._viewContainer=U,this._context=new de,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ee}set ngIf(U){this._context.$implicit=this._context.ngIf=U,this._updateView()}set ngIfThen(U){Oe("ngIfThen",U),this._thenTemplateRef=U,this._thenViewRef=null,this._updateView()}set ngIfElse(U){Oe("ngIfElse",U),this._elseTemplateRef=U,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(U,ee){return!0}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.s_b),t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:T,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return T})();class de{constructor(){this.$implicit=null,this.ngIf=null}}function Oe(T,le){if(le&&!le.createEmbeddedView)throw new Error(`${T} must be a TemplateRef, but received '${(0,t.AaK)(le)}'.`)}let ir=(()=>{class T{constructor(U,ee,Ie){this._ngEl=U,this._differs=ee,this._renderer=Ie,this._ngStyle=null,this._differ=null}set ngStyle(U){this._ngStyle=U,!this._differ&&U&&(this._differ=this._differs.find(U).create())}ngDoCheck(){if(this._differ){const U=this._differ.diff(this._ngStyle);U&&this._applyChanges(U)}}_setStyle(U,ee){const[Ie,gt]=U.split("."),Ct=-1===Ie.indexOf("-")?void 0:t.JOm.DashCase;null!=ee?this._renderer.setStyle(this._ngEl.nativeElement,Ie,gt?`${ee}${gt}`:ee,Ct):this._renderer.removeStyle(this._ngEl.nativeElement,Ie,Ct)}_applyChanges(U){U.forEachRemovedItem(ee=>this._setStyle(ee.key,null)),U.forEachAddedItem(ee=>this._setStyle(ee.key,ee.currentValue)),U.forEachChangedItem(ee=>this._setStyle(ee.key,ee.currentValue))}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.SBq),t.Y36(t.aQg),t.Y36(t.Qsj))};static#t=this.\u0275dir=t.lG2({type:T,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return T})(),_r=(()=>{class T{constructor(U){this._viewContainerRef=U,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(U){if(U.ngTemplateOutlet||U.ngTemplateOutletInjector){const ee=this._viewContainerRef;if(this._viewRef&&ee.remove(ee.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Ie,ngTemplateOutletContext:gt,ngTemplateOutletInjector:Ct}=this;this._viewRef=ee.createEmbeddedView(Ie,gt,Ct?{injector:Ct}:void 0)}else this._viewRef=null}else this._viewRef&&U.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.s_b))};static#t=this.\u0275dir=t.lG2({type:T,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[t.TTD]})}return T})();function Yr(T,le){return new t.vHH(2100,!1)}class es{createSubscription(le,U){return(0,t.rg0)(()=>le.subscribe({next:U,error:ee=>{throw ee}}))}dispose(le){(0,t.rg0)(()=>le.unsubscribe())}}class _i{createSubscription(le,U){return le.then(U,ee=>{throw ee})}dispose(le){}}const Ti=new _i,hs=new es;let Wi=(()=>{class T{constructor(U){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=U}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(U){return this._obj?U!==this._obj?(this._dispose(),this.transform(U)):this._latestValue:(U&&this._subscribe(U),this._latestValue)}_subscribe(U){this._obj=U,this._strategy=this._selectStrategy(U),this._subscription=this._strategy.createSubscription(U,ee=>this._updateLatestValue(U,ee))}_selectStrategy(U){if((0,t.QGY)(U))return Ti;if((0,t.F4k)(U))return hs;throw Yr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(U,ee){U===this._obj&&(this._latestValue=ee,this._ref.markForCheck())}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.sBO,16))};static#t=this.\u0275pipe=t.Yjl({name:"async",type:T,pure:!1,standalone:!0})}return T})();const vr=new t.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),Sr=new t.OlP("DATE_PIPE_DEFAULT_OPTIONS");let vi=(()=>{class T{constructor(U,ee,Ie){this.locale=U,this.defaultTimezone=ee,this.defaultOptions=Ie}transform(U,ee,Ie,gt){if(null==U||""===U||U!=U)return null;try{return fn(U,ee??this.defaultOptions?.dateFormat??"mediumDate",gt||this.locale,Ie??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Ct){throw Yr()}}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.soG,16),t.Y36(vr,24),t.Y36(Sr,24))};static#t=this.\u0275pipe=t.Yjl({name:"date",type:T,pure:!0,standalone:!0})}return T})(),Kt=(()=>{class T{constructor(U){this._locale=U}transform(U,ee,Ie){if(!function $r(T){return!(null==T||""===T||T!=T)}(U))return null;Ie=Ie||this._locale;try{return bt(function bi(T){if("string"==typeof T&&!isNaN(Number(T)-parseFloat(T)))return Number(T);if("number"!=typeof T)throw new Error(`${T} is not a number`);return T}(U),Ie,ee)}catch(gt){throw Yr()}}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.soG,16))};static#t=this.\u0275pipe=t.Yjl({name:"number",type:T,pure:!0,standalone:!0})}return T})();let Ve=(()=>{class T{static#e=this.\u0275fac=function(ee){return new(ee||T)};static#t=this.\u0275mod=t.oAB({type:T});static#n=this.\u0275inj=t.cJS({})}return T})();const ct="browser",Yt="server";function Yn(T){return T===Yt}let di=(()=>{class T{static#e=this.\u0275prov=(0,t.Yz7)({token:T,providedIn:"root",factory:()=>new ns((0,t.LFG)(O),window)})}return T})();class ns{constructor(le,U){this.document=le,this.window=U,this.offset=()=>[0,0]}setOffset(le){this.offset=Array.isArray(le)?()=>le:le}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(le){this.supportsScrolling()&&this.window.scrollTo(le[0],le[1])}scrollToAnchor(le){if(!this.supportsScrolling())return;const U=function bs(T,le){const U=T.getElementById(le)||T.getElementsByName(le)[0];if(U)return U;if("function"==typeof T.createTreeWalker&&T.body&&"function"==typeof T.body.attachShadow){const ee=T.createTreeWalker(T.body,NodeFilter.SHOW_ELEMENT);let Ie=ee.currentNode;for(;Ie;){const gt=Ie.shadowRoot;if(gt){const Ct=gt.getElementById(le)||gt.querySelector(`[name="${le}"]`);if(Ct)return Ct}Ie=ee.nextNode()}}return null}(this.document,le);U&&(this.scrollToElement(U),U.focus())}setHistoryScrollRestoration(le){this.supportsScrolling()&&(this.window.history.scrollRestoration=le)}scrollToElement(le){const U=le.getBoundingClientRect(),ee=U.left+this.window.pageXOffset,Ie=U.top+this.window.pageYOffset,gt=this.offset();this.window.scrollTo(ee-gt[0],Ie-gt[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class Oi{}},9862:(Pe,V,a)=>{"use strict";a.d(V,{JF:()=>He,LE:()=>ce,TP:()=>Je,UA:()=>Ze,WM:()=>j,eN:()=>Q});var t=a(5879),d=a(2096),w=a(7715),L=a(5592),h=a(6328),O=a(2181),R=a(7398),F=a(4716),P=a(4664),B=a(6814);class ${}class f{}class j{constructor(Le){this.normalizedNames=new Map,this.lazyUpdate=null,Le?"string"==typeof Le?this.lazyInit=()=>{this.headers=new Map,Le.split("\n").forEach(Ue=>{const bt=Ue.indexOf(":");if(bt>0){const Rt=Ue.slice(0,bt),kt=Rt.toLowerCase(),Ft=Ue.slice(bt+1).trim();this.maybeSetNormalizedName(Rt,kt),this.headers.has(kt)?this.headers.get(kt).push(Ft):this.headers.set(kt,[Ft])}})}:typeof Headers<"u"&&Le instanceof Headers?(this.headers=new Map,Le.forEach((Ue,bt)=>{this.setHeaderEntries(bt,Ue)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(Le).forEach(([Ue,bt])=>{this.setHeaderEntries(Ue,bt)})}:this.headers=new Map}has(Le){return this.init(),this.headers.has(Le.toLowerCase())}get(Le){this.init();const Ue=this.headers.get(Le.toLowerCase());return Ue&&Ue.length>0?Ue[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Le){return this.init(),this.headers.get(Le.toLowerCase())||null}append(Le,Ue){return this.clone({name:Le,value:Ue,op:"a"})}set(Le,Ue){return this.clone({name:Le,value:Ue,op:"s"})}delete(Le,Ue){return this.clone({name:Le,value:Ue,op:"d"})}maybeSetNormalizedName(Le,Ue){this.normalizedNames.has(Ue)||this.normalizedNames.set(Ue,Le)}init(){this.lazyInit&&(this.lazyInit instanceof j?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Le=>this.applyUpdate(Le)),this.lazyUpdate=null))}copyFrom(Le){Le.init(),Array.from(Le.headers.keys()).forEach(Ue=>{this.headers.set(Ue,Le.headers.get(Ue)),this.normalizedNames.set(Ue,Le.normalizedNames.get(Ue))})}clone(Le){const Ue=new j;return Ue.lazyInit=this.lazyInit&&this.lazyInit instanceof j?this.lazyInit:this,Ue.lazyUpdate=(this.lazyUpdate||[]).concat([Le]),Ue}applyUpdate(Le){const Ue=Le.name.toLowerCase();switch(Le.op){case"a":case"s":let bt=Le.value;if("string"==typeof bt&&(bt=[bt]),0===bt.length)return;this.maybeSetNormalizedName(Le.name,Ue);const Rt=("a"===Le.op?this.headers.get(Ue):void 0)||[];Rt.push(...bt),this.headers.set(Ue,Rt);break;case"d":const kt=Le.value;if(kt){let Ft=this.headers.get(Ue);if(!Ft)return;Ft=Ft.filter(an=>-1===kt.indexOf(an)),0===Ft.length?(this.headers.delete(Ue),this.normalizedNames.delete(Ue)):this.headers.set(Ue,Ft)}else this.headers.delete(Ue),this.normalizedNames.delete(Ue)}}setHeaderEntries(Le,Ue){const bt=(Array.isArray(Ue)?Ue:[Ue]).map(kt=>kt.toString()),Rt=Le.toLowerCase();this.headers.set(Rt,bt),this.maybeSetNormalizedName(Le,Rt)}forEach(Le){this.init(),Array.from(this.normalizedNames.keys()).forEach(Ue=>Le(this.normalizedNames.get(Ue),this.headers.get(Ue)))}}class q{encodeKey(Le){return Se(Le)}encodeValue(Le){return Se(Le)}decodeKey(Le){return decodeURIComponent(Le)}decodeValue(Le){return decodeURIComponent(Le)}}const k=/%(\d[a-f0-9])/gi,Te={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Se(Qe){return encodeURIComponent(Qe).replace(k,(Le,Ue)=>Te[Ue]??Le)}function ye(Qe){return`${Qe}`}class ce{constructor(Le={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Le.encoder||new q,Le.fromString){if(Le.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ie(Qe,Le){const Ue=new Map;return Qe.length>0&&Qe.replace(/^\?/,"").split("&").forEach(Rt=>{const kt=Rt.indexOf("="),[Ft,an]=-1==kt?[Le.decodeKey(Rt),""]:[Le.decodeKey(Rt.slice(0,kt)),Le.decodeValue(Rt.slice(kt+1))],wn=Ue.get(Ft)||[];wn.push(an),Ue.set(Ft,wn)}),Ue}(Le.fromString,this.encoder)}else Le.fromObject?(this.map=new Map,Object.keys(Le.fromObject).forEach(Ue=>{const bt=Le.fromObject[Ue],Rt=Array.isArray(bt)?bt.map(ye):[ye(bt)];this.map.set(Ue,Rt)})):this.map=null}has(Le){return this.init(),this.map.has(Le)}get(Le){this.init();const Ue=this.map.get(Le);return Ue?Ue[0]:null}getAll(Le){return this.init(),this.map.get(Le)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Le,Ue){return this.clone({param:Le,value:Ue,op:"a"})}appendAll(Le){const Ue=[];return Object.keys(Le).forEach(bt=>{const Rt=Le[bt];Array.isArray(Rt)?Rt.forEach(kt=>{Ue.push({param:bt,value:kt,op:"a"})}):Ue.push({param:bt,value:Rt,op:"a"})}),this.clone(Ue)}set(Le,Ue){return this.clone({param:Le,value:Ue,op:"s"})}delete(Le,Ue){return this.clone({param:Le,value:Ue,op:"d"})}toString(){return this.init(),this.keys().map(Le=>{const Ue=this.encoder.encodeKey(Le);return this.map.get(Le).map(bt=>Ue+"="+this.encoder.encodeValue(bt)).join("&")}).filter(Le=>""!==Le).join("&")}clone(Le){const Ue=new ce({encoder:this.encoder});return Ue.cloneFrom=this.cloneFrom||this,Ue.updates=(this.updates||[]).concat(Le),Ue}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Le=>this.map.set(Le,this.cloneFrom.map.get(Le))),this.updates.forEach(Le=>{switch(Le.op){case"a":case"s":const Ue=("a"===Le.op?this.map.get(Le.param):void 0)||[];Ue.push(ye(Le.value)),this.map.set(Le.param,Ue);break;case"d":if(void 0===Le.value){this.map.delete(Le.param);break}{let bt=this.map.get(Le.param)||[];const Rt=bt.indexOf(ye(Le.value));-1!==Rt&&bt.splice(Rt,1),bt.length>0?this.map.set(Le.param,bt):this.map.delete(Le.param)}}}),this.cloneFrom=this.updates=null)}}class ve{constructor(){this.map=new Map}set(Le,Ue){return this.map.set(Le,Ue),this}get(Le){return this.map.has(Le)||this.map.set(Le,Le.defaultValue()),this.map.get(Le)}delete(Le){return this.map.delete(Le),this}has(Le){return this.map.has(Le)}keys(){return this.map.keys()}}function be(Qe){return typeof ArrayBuffer<"u"&&Qe instanceof ArrayBuffer}function ke(Qe){return typeof Blob<"u"&&Qe instanceof Blob}function vt(Qe){return typeof FormData<"u"&&Qe instanceof FormData}class Mt{constructor(Le,Ue,bt,Rt){let kt;if(this.url=Ue,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Le.toUpperCase(),function xe(Qe){switch(Qe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Rt?(this.body=void 0!==bt?bt:null,kt=Rt):kt=bt,kt&&(this.reportProgress=!!kt.reportProgress,this.withCredentials=!!kt.withCredentials,kt.responseType&&(this.responseType=kt.responseType),kt.headers&&(this.headers=kt.headers),kt.context&&(this.context=kt.context),kt.params&&(this.params=kt.params)),this.headers||(this.headers=new j),this.context||(this.context=new ve),this.params){const Ft=this.params.toString();if(0===Ft.length)this.urlWithParams=Ue;else{const an=Ue.indexOf("?");this.urlWithParams=Ue+(-1===an?"?":anFr.set(Ar,Le.setHeaders[Ar]),wn)),Le.setParams&&(pr=Object.keys(Le.setParams).reduce((Fr,Ar)=>Fr.set(Ar,Le.setParams[Ar]),pr)),new Mt(Ue,bt,kt,{params:pr,headers:wn,context:jr,reportProgress:an,responseType:Rt,withCredentials:Ft})}}var qe=function(Qe){return Qe[Qe.Sent=0]="Sent",Qe[Qe.UploadProgress=1]="UploadProgress",Qe[Qe.ResponseHeader=2]="ResponseHeader",Qe[Qe.DownloadProgress=3]="DownloadProgress",Qe[Qe.Response=4]="Response",Qe[Qe.User=5]="User",Qe}(qe||{});class _t{constructor(Le,Ue=200,bt="OK"){this.headers=Le.headers||new j,this.status=void 0!==Le.status?Le.status:Ue,this.statusText=Le.statusText||bt,this.url=Le.url||null,this.ok=this.status>=200&&this.status<300}}class $e extends _t{constructor(Le={}){super(Le),this.type=qe.ResponseHeader}clone(Le={}){return new $e({headers:Le.headers||this.headers,status:void 0!==Le.status?Le.status:this.status,statusText:Le.statusText||this.statusText,url:Le.url||this.url||void 0})}}class Ee extends _t{constructor(Le={}){super(Le),this.type=qe.Response,this.body=void 0!==Le.body?Le.body:null}clone(Le={}){return new Ee({body:void 0!==Le.body?Le.body:this.body,headers:Le.headers||this.headers,status:void 0!==Le.status?Le.status:this.status,statusText:Le.statusText||this.statusText,url:Le.url||this.url||void 0})}}class Ze extends _t{constructor(Le){super(Le,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Le.url||"(unknown url)"}`:`Http failure response for ${Le.url||"(unknown url)"}: ${Le.status} ${Le.statusText}`,this.error=Le.error||null}}function J(Qe,Le){return{body:Le,headers:Qe.headers,context:Qe.context,observe:Qe.observe,params:Qe.params,reportProgress:Qe.reportProgress,responseType:Qe.responseType,withCredentials:Qe.withCredentials}}let Q=(()=>{class Qe{constructor(Ue){this.handler=Ue}request(Ue,bt,Rt={}){let kt;if(Ue instanceof Mt)kt=Ue;else{let wn,pr;wn=Rt.headers instanceof j?Rt.headers:new j(Rt.headers),Rt.params&&(pr=Rt.params instanceof ce?Rt.params:new ce({fromObject:Rt.params})),kt=new Mt(Ue,bt,void 0!==Rt.body?Rt.body:null,{headers:wn,context:Rt.context,params:pr,reportProgress:Rt.reportProgress,responseType:Rt.responseType||"json",withCredentials:Rt.withCredentials})}const Ft=(0,d.of)(kt).pipe((0,h.b)(wn=>this.handler.handle(wn)));if(Ue instanceof Mt||"events"===Rt.observe)return Ft;const an=Ft.pipe((0,O.h)(wn=>wn instanceof Ee));switch(Rt.observe||"body"){case"body":switch(kt.responseType){case"arraybuffer":return an.pipe((0,R.U)(wn=>{if(null!==wn.body&&!(wn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return wn.body}));case"blob":return an.pipe((0,R.U)(wn=>{if(null!==wn.body&&!(wn.body instanceof Blob))throw new Error("Response is not a Blob.");return wn.body}));case"text":return an.pipe((0,R.U)(wn=>{if(null!==wn.body&&"string"!=typeof wn.body)throw new Error("Response is not a string.");return wn.body}));default:return an.pipe((0,R.U)(wn=>wn.body))}case"response":return an;default:throw new Error(`Unreachable: unhandled observe type ${Rt.observe}}`)}}delete(Ue,bt={}){return this.request("DELETE",Ue,bt)}get(Ue,bt={}){return this.request("GET",Ue,bt)}head(Ue,bt={}){return this.request("HEAD",Ue,bt)}jsonp(Ue,bt){return this.request("JSONP",Ue,{params:(new ce).append(bt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Ue,bt={}){return this.request("OPTIONS",Ue,bt)}patch(Ue,bt,Rt={}){return this.request("PATCH",Ue,J(Rt,bt))}post(Ue,bt,Rt={}){return this.request("POST",Ue,J(Rt,bt))}put(Ue,bt,Rt={}){return this.request("PUT",Ue,J(Rt,bt))}static#e=this.\u0275fac=function(bt){return new(bt||Qe)(t.LFG($))};static#t=this.\u0275prov=t.Yz7({token:Qe,factory:Qe.\u0275fac})}return Qe})();function tt(Qe,Le){return Le(Qe)}function wt(Qe,Le){return(Ue,bt)=>Le.intercept(Ue,{handle:Rt=>Qe(Rt,bt)})}const Je=new t.OlP(""),Tt=new t.OlP(""),et=new t.OlP("");function Pt(){let Qe=null;return(Le,Ue)=>{null===Qe&&(Qe=((0,t.f3M)(Je,{optional:!0})??[]).reduceRight(wt,tt));const bt=(0,t.f3M)(t.HDt),Rt=bt.add();return Qe(Le,Ue).pipe((0,F.x)(()=>bt.remove(Rt)))}}let Zt=(()=>{class Qe extends ${constructor(Ue,bt){super(),this.backend=Ue,this.injector=bt,this.chain=null,this.pendingTasks=(0,t.f3M)(t.HDt)}handle(Ue){if(null===this.chain){const Rt=Array.from(new Set([...this.injector.get(Tt),...this.injector.get(et,[])]));this.chain=Rt.reduceRight((kt,Ft)=>function It(Qe,Le,Ue){return(bt,Rt)=>Ue.runInContext(()=>Le(bt,kt=>Qe(kt,Rt)))}(kt,Ft,this.injector),tt)}const bt=this.pendingTasks.add();return this.chain(Ue,Rt=>this.backend.handle(Rt)).pipe((0,F.x)(()=>this.pendingTasks.remove(bt)))}static#e=this.\u0275fac=function(bt){return new(bt||Qe)(t.LFG(f),t.LFG(t.lqb))};static#t=this.\u0275prov=t.Yz7({token:Qe,factory:Qe.\u0275fac})}return Qe})();const Sn=/^\)\]\}',?\n/;let en=(()=>{class Qe{constructor(Ue){this.xhrFactory=Ue}handle(Ue){if("JSONP"===Ue.method)throw new t.vHH(-2800,!1);const bt=this.xhrFactory;return(bt.\u0275loadImpl?(0,w.D)(bt.\u0275loadImpl()):(0,d.of)(null)).pipe((0,P.w)(()=>new L.y(kt=>{const Ft=bt.build();if(Ft.open(Ue.method,Ue.urlWithParams),Ue.withCredentials&&(Ft.withCredentials=!0),Ue.headers.forEach((Xn,qn)=>Ft.setRequestHeader(Xn,qn.join(","))),Ue.headers.has("Accept")||Ft.setRequestHeader("Accept","application/json, text/plain, */*"),!Ue.headers.has("Content-Type")){const Xn=Ue.detectContentTypeHeader();null!==Xn&&Ft.setRequestHeader("Content-Type",Xn)}if(Ue.responseType){const Xn=Ue.responseType.toLowerCase();Ft.responseType="json"!==Xn?Xn:"text"}const an=Ue.serializeBody();let wn=null;const pr=()=>{if(null!==wn)return wn;const Xn=Ft.statusText||"OK",qn=new j(Ft.getAllResponseHeaders()),Ur=function hn(Qe){return"responseURL"in Qe&&Qe.responseURL?Qe.responseURL:/^X-Request-URL:/m.test(Qe.getAllResponseHeaders())?Qe.getResponseHeader("X-Request-URL"):null}(Ft)||Ue.url;return wn=new $e({headers:qn,status:Ft.status,statusText:Xn,url:Ur}),wn},jr=()=>{let{headers:Xn,status:qn,statusText:Ur,url:ai}=pr(),pe=null;204!==qn&&(pe=typeof Ft.response>"u"?Ft.responseText:Ft.response),0===qn&&(qn=pe?200:0);let Z=qn>=200&&qn<300;if("json"===Ue.responseType&&"string"==typeof pe){const K=pe;pe=pe.replace(Sn,"");try{pe=""!==pe?JSON.parse(pe):null}catch(D){pe=K,Z&&(Z=!1,pe={error:D,text:pe})}}Z?(kt.next(new Ee({body:pe,headers:Xn,status:qn,statusText:Ur,url:ai||void 0})),kt.complete()):kt.error(new Ze({error:pe,headers:Xn,status:qn,statusText:Ur,url:ai||void 0}))},Fr=Xn=>{const{url:qn}=pr(),Ur=new Ze({error:Xn,status:Ft.status||0,statusText:Ft.statusText||"Unknown Error",url:qn||void 0});kt.error(Ur)};let Ar=!1;const Hr=Xn=>{Ar||(kt.next(pr()),Ar=!0);let qn={type:qe.DownloadProgress,loaded:Xn.loaded};Xn.lengthComputable&&(qn.total=Xn.total),"text"===Ue.responseType&&Ft.responseText&&(qn.partialText=Ft.responseText),kt.next(qn)},Zr=Xn=>{let qn={type:qe.UploadProgress,loaded:Xn.loaded};Xn.lengthComputable&&(qn.total=Xn.total),kt.next(qn)};return Ft.addEventListener("load",jr),Ft.addEventListener("error",Fr),Ft.addEventListener("timeout",Fr),Ft.addEventListener("abort",Fr),Ue.reportProgress&&(Ft.addEventListener("progress",Hr),null!==an&&Ft.upload&&Ft.upload.addEventListener("progress",Zr)),Ft.send(an),kt.next({type:qe.Sent}),()=>{Ft.removeEventListener("error",Fr),Ft.removeEventListener("abort",Fr),Ft.removeEventListener("load",jr),Ft.removeEventListener("timeout",Fr),Ue.reportProgress&&(Ft.removeEventListener("progress",Hr),null!==an&&Ft.upload&&Ft.upload.removeEventListener("progress",Zr)),Ft.readyState!==Ft.DONE&&Ft.abort()}})))}static#e=this.\u0275fac=function(bt){return new(bt||Qe)(t.LFG(B.JF))};static#t=this.\u0275prov=t.Yz7({token:Qe,factory:Qe.\u0275fac})}return Qe})();const Dn=new t.OlP("XSRF_ENABLED"),_n=new t.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),it=new t.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Ut{}let Qt=(()=>{class Qe{constructor(Ue,bt,Rt){this.doc=Ue,this.platform=bt,this.cookieName=Rt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Ue=this.doc.cookie||"";return Ue!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,B.Mx)(Ue,this.cookieName),this.lastCookieString=Ue),this.lastToken}static#e=this.\u0275fac=function(bt){return new(bt||Qe)(t.LFG(B.K0),t.LFG(t.Lbi),t.LFG(_n))};static#t=this.\u0275prov=t.Yz7({token:Qe,factory:Qe.\u0275fac})}return Qe})();function Cn(Qe,Le){const Ue=Qe.url.toLowerCase();if(!(0,t.f3M)(Dn)||"GET"===Qe.method||"HEAD"===Qe.method||Ue.startsWith("http://")||Ue.startsWith("https://"))return Le(Qe);const bt=(0,t.f3M)(Ut).getToken(),Rt=(0,t.f3M)(it);return null!=bt&&!Qe.headers.has(Rt)&&(Qe=Qe.clone({headers:Qe.headers.set(Rt,bt)})),Le(Qe)}var In=function(Qe){return Qe[Qe.Interceptors=0]="Interceptors",Qe[Qe.LegacyInterceptors=1]="LegacyInterceptors",Qe[Qe.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Qe[Qe.NoXsrfProtection=3]="NoXsrfProtection",Qe[Qe.JsonpSupport=4]="JsonpSupport",Qe[Qe.RequestsMadeViaParent=5]="RequestsMadeViaParent",Qe[Qe.Fetch=6]="Fetch",Qe}(In||{});function Dr(...Qe){const Le=[Q,en,Zt,{provide:$,useExisting:Zt},{provide:f,useExisting:en},{provide:Tt,useValue:Cn,multi:!0},{provide:Dn,useValue:!0},{provide:Ut,useClass:Qt}];for(const Ue of Qe)Le.push(...Ue.\u0275providers);return(0,t.MR2)(Le)}const Or=new t.OlP("LEGACY_INTERCEPTOR_FN");function Ir(){return function nr(Qe,Le){return{\u0275kind:Qe,\u0275providers:Le}}(In.LegacyInterceptors,[{provide:Or,useFactory:Pt},{provide:Tt,useExisting:Or,multi:!0}])}let He=(()=>{class Qe{static#e=this.\u0275fac=function(bt){return new(bt||Qe)};static#t=this.\u0275mod=t.oAB({type:Qe});static#n=this.\u0275inj=t.cJS({providers:[Dr(Ir())]})}return Qe})()},5879:(Pe,V,a)=>{"use strict";a.d(V,{$8M:()=>Va,$WT:()=>vi,$Z:()=>pm,AFp:()=>Rg,ALo:()=>qv,AaK:()=>f,AsE:()=>Qp,B6R:()=>_i,BQk:()=>xd,CHM:()=>W,CRH:()=>v0,DdM:()=>Vv,Dn7:()=>n0,EJc:()=>iT,EiD:()=>Dg,EpF:()=>o_,F$t:()=>p_,F4k:()=>a_,FYo:()=>jg,FiY:()=>Lo,G48:()=>UT,Gf:()=>m0,GfV:()=>Hg,GkF:()=>Hp,Gpc:()=>q,Gre:()=>G_,HDt:()=>H0,Hsn:()=>h_,Ikx:()=>eh,JOm:()=>Il,JVY:()=>Sa,JZr:()=>ye,KtG:()=>p,L6k:()=>Bo,LAX:()=>Hl,LFG:()=>Vt,LMc:()=>gw,LSH:()=>Gf,Lbi:()=>ep,Lck:()=>QD,MAs:()=>r_,MGl:()=>Od,MMx:()=>Nv,MR2:()=>zf,NdJ:()=>$p,O4$:()=>Ms,Ojb:()=>Yy,OlP:()=>Gr,Oqu:()=>Jp,P3R:()=>wg,PXZ:()=>IT,Q6J:()=>Bp,QGY:()=>Vp,QbO:()=>Ky,Qsj:()=>ub,R0b:()=>qi,RDi:()=>qr,Rgc:()=>gu,SBq:()=>Qc,SDv:()=>Av,Sil:()=>aT,Suo:()=>_0,TTD:()=>yr,TgZ:()=>Sd,Tol:()=>I_,VKq:()=>$v,VuI:()=>pw,W1O:()=>D0,WD2:()=>dr,WLB:()=>Wv,XFs:()=>Et,Xpm:()=>es,Xq5:()=>Hm,Xts:()=>zc,Y36:()=>Ql,YKP:()=>Pv,YNc:()=>e_,Yjl:()=>Vr,Yz7:()=>Je,Z0I:()=>Zt,ZZ4:()=>Nh,_Bn:()=>Iv,_UZ:()=>jp,_Vd:()=>Jc,_c5:()=>tw,_uU:()=>B_,aQg:()=>Lh,c2e:()=>j0,cJS:()=>et,cg1:()=>th,dDg:()=>MT,dqk:()=>en,dwT:()=>XE,eBb:()=>sl,eFA:()=>Q0,eJc:()=>vh,ekj:()=>Kp,eoX:()=>z0,f3M:()=>on,g9A:()=>Ng,h0i:()=>fl,hGG:()=>nw,hij:()=>Rd,iGM:()=>g0,ifc:()=>kt,ip1:()=>U0,jDz:()=>Lv,kEZ:()=>Gv,kL8:()=>nv,kcU:()=>fr,l5B:()=>Zv,lG2:()=>Gi,lcZ:()=>e0,lnq:()=>Xp,lqb:()=>Uo,lri:()=>G0,mCW:()=>$l,n5z:()=>Tc,oAB:()=>Wi,oJD:()=>Cg,oxw:()=>f_,pB0:()=>sa,pZz:()=>Ji,q3G:()=>al,qFp:()=>mw,qLn:()=>xa,qOj:()=>Op,qZA:()=>Md,qbA:()=>zv,qzn:()=>uo,rWj:()=>Z0,rg0:()=>Ie,s9C:()=>Wp,sBO:()=>jT,s_b:()=>jd,soG:()=>Vd,tb:()=>Ah,tp0:()=>Ja,uIk:()=>Pp,vHH:()=>ce,vpe:()=>jo,wAp:()=>uc,xDo:()=>qp,xi3:()=>t0,xp6:()=>dm,ynx:()=>Ad,z2F:()=>hc,z3N:()=>Js,zSh:()=>Jf,zW0:()=>km,zs3:()=>bo});var t=a(8645),d=a(7394),w=a(5592),L=a(3019),h=a(5619),O=a(2096),R=a(3020),F=a(4664),P=a(3997);function B(e){for(let n in e)if(e[n]===B)return n;throw Error("Could not find renamed property on target object.")}function $(e,n){for(const r in n)n.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=n[r])}function f(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(f).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const r=n.indexOf("\n");return-1===r?n:n.substring(0,r)}function j(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const M=B({__forward_ref__:B});function q(e){return e.__forward_ref__=q,e.toString=function(){return f(this())},e}function ie(e){return k(e)?e():e}function k(e){return"function"==typeof e&&e.hasOwnProperty(M)&&e.__forward_ref__===q}function Te(e){return e&&!!e.\u0275providers}const ye="https://g.co/ng/security#xss";class ce extends Error{constructor(n,r){super(function _e(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,r)),this.code=n}}function ve(e){return"string"==typeof e?e:null==e?"":String(e)}function rt(e,n){throw new ce(-201,!1)}function Xe(e,n,r,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${r} ${i} ${n} <=Actual]`))}function Je(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function et(e){return{providers:e.providers||[],imports:e.imports||[]}}function Pt(e){return dn(e,Ye)||dn(e,xt)}function Zt(e){return null!==Pt(e)}function dn(e,n){return e.hasOwnProperty(n)?e[n]:null}function We(e){return e&&(e.hasOwnProperty(At)||e.hasOwnProperty(nn))?e[At]:null}const Ye=B({\u0275prov:B}),At=B({\u0275inj:B}),xt=B({ngInjectableDef:B}),nn=B({ngInjectorDef:B});var Et=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Et||{});let Ht;function fn(e){const n=Ht;return Ht=e,n}function Sn(e,n,r){const i=Pt(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:r&Et.Optional?null:void 0!==n?n:void rt(f(e))}const en=globalThis,Or={},Ir="__NG_DI_FLAG__",Br="ngTempTokenPath",Zn=/\n/gm,ot="__source";let we;function yt(e){const n=we;return we=e,n}function Wt(e,n=Et.Default){if(void 0===we)throw new ce(-203,!1);return null===we?Sn(e,void 0,n):we.get(e,n&Et.Optional?null:void 0,n)}function Vt(e,n=Et.Default){return(function zt(){return Ht}()||Wt)(ie(e),n)}function on(e,n=Et.Default){return Vt(e,rr(n))}function rr(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ln(e){const n=[];for(let r=0;rn){g=u-1;break}}}for(;uu?"":o[Ce+1].toLowerCase();const nt=8&i?Ke:null;if(nt&&-1!==Xn(nt,z,0)||2&i&&z!==Ke){if(Ae(i))return!1;g=!0}}}}else{if(!g&&!Ae(i)&&!Ae(A))return!1;if(g&&Ae(A))continue;g=!1,i=A|1&i}}return Ae(i)||g}function Ae(e){return 0==(1&e)}function mt(e,n,r,i){if(null===n)return-1;let o=0;if(i||!r){let u=!1;for(;o-1)for(r++;r0?'="'+b+'"':"")+"]"}else 8&i?o+="."+g:4&i&&(o+=" "+g);else""!==o&&!Ae(g)&&(n+=ir(u,o),o=""),i=g,u=u||!Ae(i);r++}return""!==o&&(n+=ir(u,o)),n}function es(e){return bt(()=>{const n=ts(e),r={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Rt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||kt.Emulated,styles:e.styles||an,_:null,schemas:e.schemas||null,tView:null,id:""};wi(r);const i=e.dependencies;return r.directiveDefs=ui(i,!1),r.pipeDefs=ui(i,!0),r.id=function Ui(e){let n=0;const r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of r)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(r),r})}function _i(e,n,r){const i=e.\u0275cmp;i.directiveDefs=ui(n,!1),i.pipeDefs=ui(r,!0)}function Ti(e){return jn(e)||vr(e)}function hs(e){return null!==e}function Wi(e){return bt(()=>({type:e.type,bootstrap:e.bootstrap||an,declarations:e.declarations||an,imports:e.imports||an,exports:e.exports||an,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Bi(e,n){if(null==e)return Ft;const r={};for(const i in e)if(e.hasOwnProperty(i)){let o=e[i],u=o;Array.isArray(o)&&(u=o[1],o=o[0]),r[o]=i,n&&(n[o]=u)}return r}function Gi(e){return bt(()=>{const n=ts(e);return wi(n),n})}function Vr(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function jn(e){return e[wn]||null}function vr(e){return e[pr]||null}function Sr(e){return e[jr]||null}function vi(e){const n=jn(e)||vr(e)||Sr(e);return null!==n&&n.standalone}function ci(e,n){const r=e[Fr]||null;if(!r&&!0===n)throw new Error(`Type ${f(e)} does not have '\u0275mod' property.`);return r}function ts(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||Ft,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||an,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Bi(e.inputs,n),outputs:Bi(e.outputs)}}function wi(e){e.features?.forEach(n=>n(e))}function ui(e,n){if(!e)return null;const r=n?Sr:Ti;return()=>("function"==typeof e?e():e).map(i=>r(i)).filter(hs)}const xr=0,Kt=1,Mn=2,hr=3,$r=4,bi=5,Nr=6,ze=7,Ve=8,ct=9,Yt=10,Bt=11,gr=12,Si=13,Yn=14,sr=15,Wr=16,Mi=17,di=18,ns=19,bs=20,Zi=21,Oi=22,Ii=23,Pi=24,Gn=25,zi=1,rs=2,Pr=7,Ri=9,pn=11;function Ot(e){return Array.isArray(e)&&"object"==typeof e[zi]}function qt(e){return Array.isArray(e)&&!0===e[zi]}function Kr(e){return 0!=(4&e.flags)}function ji(e){return e.componentOffset>-1}function ms(e){return 1==(1&e.flags)}function fi(e){return!!e.template}function Hs(e){return 0!=(512&e[Mn])}function os(e,n){return e.hasOwnProperty(Ar)?e[Ar]:null}let pi=null,ls=!1;function yi(e){const n=pi;return pi=e,n}const no={version: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:()=>{}};function Ps(e){if(!mo(e)||e.dirty){if(!e.producerMustRecompute(e)&&!so(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function go(e){e.dirty=!0,function ro(e){if(void 0===e.liveConsumerNode)return;const n=ls;ls=!0;try{for(const r of e.liveConsumerNode)r.dirty||go(r)}finally{ls=n}}(e),e.consumerMarkedDirty?.(e)}function wo(e){return e&&(e.nextProducerIndex=0),yi(e)}function So(e,n){if(yi(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(mo(e))for(let r=e.nextProducerIndex;re.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function so(e){Rs(e);for(let n=0;n0}function Rs(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let Ko=null;function Ie(e){const n=yi(null);try{return e()}finally{yi(n)}}const Ct=()=>{},Jt=(()=>({...no,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:Ct}))();class dr{constructor(n,r,i){this.previousValue=n,this.currentValue=r,this.firstChange=i}isFirstChange(){return this.firstChange}}function yr(){return Kn}function Kn(e){return e.type.prototype.ngOnChanges&&(e.setInput=Jn),Jr}function Jr(){const e=Ei(this),n=e?.current;if(n){const r=e.previous;if(r===Ft)e.previous=n;else for(let i in n)r[i]=n[i];e.current=null,this.ngOnChanges(n)}}function Jn(e,n,r,i){const o=this.declaredInputs[r],u=Ei(e)||function Ai(e,n){return e[ei]=n}(e,{previous:Ft,current:null}),g=u.current||(u.current={}),b=u.previous,A=b[o];g[o]=new dr(A&&A.currentValue,n,b===Ft),e[i]=n}yr.ngInherit=!0;const ei="__ngSimpleChanges__";function Ei(e){return e[ei]||null}const ti=function(e,n,r){},cs="svg",Ts="math";function er(e){for(;Array.isArray(e);)e=e[xr];return e}function li(e,n){return er(n[e])}function Di(e,n){return er(n[e.index])}function Oo(e,n){return e.data[n]}function Yi(e,n){return e[n]}function Vi(e,n){const r=n[e];return Ot(r)?r:r[xr]}function us(e,n){return null==n?null:e[n]}function Po(e){e[Mi]=0}function ma(e){1024&e[Mn]||(e[Mn]|=1024,vo(e,1))}function xi(e){1024&e[Mn]&&(e[Mn]&=-1025,vo(e,-1))}function vo(e,n){let r=e[hr];if(null===r)return;r[bi]+=n;let i=r;for(r=r[hr];null!==r&&(1===n&&1===i[bi]||-1===n&&0===i[bi]);)r[bi]+=n,i=r,r=r[hr]}const Hn={lFrame:or(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ws(){return Hn.bindingsEnabled}function Ss(){return null!==Hn.skipHydrationRootTNode}function Nt(){return Hn.lFrame.lView}function mr(){return Hn.lFrame.tView}function W(e){return Hn.lFrame.contextLView=e,e[Ve]}function p(e){return Hn.lFrame.contextLView=null,e}function v(){let e=I();for(;null!==e&&64===e.type;)e=e.parent;return e}function I(){return Hn.lFrame.currentTNode}function te(){const e=Hn.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}function me(e,n){const r=Hn.lFrame;r.currentTNode=e,r.isParent=n}function Ne(){return Hn.lFrame.isParent}function Fe(){Hn.lFrame.isParent=!1}function Xt(){const e=Hn.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function Tn(){return Hn.lFrame.bindingIndex}function xn(){return Hn.lFrame.bindingIndex++}function Fn(e){const n=Hn.lFrame,r=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,r}function S(e){Hn.lFrame.inI18n=e}function y(e,n){const r=Hn.lFrame;r.bindingIndex=r.bindingRootIndex=e,G(n)}function G(e){Hn.lFrame.currentDirectiveIndex=e}function Me(){return Hn.lFrame.currentQueryIndex}function at(e){Hn.lFrame.currentQueryIndex=e}function ft(e){const n=e[Kt];return 2===n.type?n.declTNode:1===n.type?e[Nr]:null}function tn(e,n,r){if(r&Et.SkipSelf){let o=n,u=e;for(;!(o=o.parent,null!==o||r&Et.Host||(o=ft(u),null===o||(u=u[Yn],10&o.type))););if(null===o)return!1;n=o,e=u}const i=Hn.lFrame=Rr();return i.currentTNode=n,i.lView=e,!0}function kn(e){const n=Rr(),r=e[Kt];Hn.lFrame=n,n.currentTNode=r.firstChild,n.lView=e,n.tView=r,n.contextLView=e,n.bindingIndex=r.bindingStartIndex,n.inI18n=!1}function Rr(){const e=Hn.lFrame,n=null===e?null:e.child;return null===n?or(e):n}function or(e){const n={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:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function hi(){const e=Hn.lFrame;return Hn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Gs=hi;function Ns(){const e=hi();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function bn(){return Hn.lFrame.selectedIndex}function tr(e){Hn.lFrame.selectedIndex=e}function ar(){const e=Hn.lFrame;return Oo(e.tView,e.selectedIndex)}function Ms(){Hn.lFrame.currentNamespace=cs}function Ji(){Hn.lFrame.currentNamespace=Ts}function fr(){!function ni(){Hn.lFrame.currentNamespace=null}()}let vl=!0;function ri(){return vl}function Qi(e){vl=e}function ao(e,n){for(let r=n.directiveStart,i=n.directiveEnd;r=i)break}else n[A]<0&&(e[Mi]+=65536),(b>13>16&&(3&e[Mn])===n&&(e[Mn]+=8192,yu(b,u)):yu(b,u)}const Xo=-1;class va{constructor(n,r,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=i}}function yc(e){return e!==Xo}function Ha(e){return 32767&e}function ya(e,n){let r=function Jd(e){return e>>16}(e),i=n;for(;r>0;)i=i[Yn],r--;return i}let El=!0;function qo(e){const n=El;return El=e,n}const Dl=255,Du=5;let bc=0;const co={};function Ec(e,n){const r=Qd(e,n);if(-1!==r)return r;const i=n[Kt];i.firstCreatePass&&(e.injectorIndex=n.length,Tu(i.data,e),Tu(n,null),Tu(i.blueprint,null));const o=Dc(e,n),u=e.injectorIndex;if(yc(o)){const g=Ha(o),b=ya(o,n),A=b[Kt].data;for(let z=0;z<8;z++)n[u+z]=b[g+z]|A[g+z]}return n[u+8]=o,u}function Tu(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Qd(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Dc(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let r=0,i=null,o=n;for(;null!==o;){if(i=ii(o),null===i)return Xo;if(r++,o=o[Yn],-1!==i.injectorIndex)return i.injectorIndex|r<<16}return Xo}function wu(e,n,r){!function Cu(e,n,r){let i;"string"==typeof r?i=r.charCodeAt(0)||0:r.hasOwnProperty(Hr)&&(i=r[Hr]),null==i&&(i=r[Hr]=bc++);const o=i&Dl;n.data[e+(o>>Du)]|=1<=0?n&Dl:Gh:n}(r);if("function"==typeof u){if(!tn(n,e,i))return i&Et.Host?Xd(o,0,i):qd(n,r,i,o);try{let g;if(g=u(i),null!=g||i&Et.Optional)return g;rt()}finally{Gs()}}else if("number"==typeof u){let g=null,b=Qd(e,n),A=Xo,z=i&Et.Host?n[sr][Nr]:null;for((-1===b||i&Et.SkipSelf)&&(A=-1===b?Dc(e,n):n[b+8],A!==Xo&&sf(i,!1)?(g=n[Kt],b=Ha(A),n=ya(A,n)):b=-1);-1!==b;){const ue=n[Kt];if(rf(u,b,ue.data)){const Ce=$h(b,n,r,g,i,z);if(Ce!==co)return Ce}A=n[b+8],A!==Xo&&sf(i,n[Kt].data[b+8]===z)&&rf(u,b,n)?(g=ue,b=Ha(A),n=ya(A,n)):b=-1}}return o}function $h(e,n,r,i,o,u){const g=n[Kt],b=g.data[e+8],ue=Cc(b,g,r,null==i?ji(b)&&El:i!=g&&0!=(3&b.type),o&Et.Host&&u===b);return null!==ue?ba(n,g,ue,b):co}function Cc(e,n,r,i,o){const u=e.providerIndexes,g=n.data,b=1048575&u,A=e.directiveStart,ue=u>>20,Ke=o?b+ue:e.directiveEnd;for(let nt=i?b:b+ue;nt=A&&St.type===r)return nt}if(o){const nt=g[A];if(nt&&fi(nt)&&nt.type===r)return A}return null}function ba(e,n,r,i){let o=e[r];const u=n.data;if(function bu(e){return e instanceof va}(o)){const g=o;g.resolving&&function be(e,n){const r=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new ce(-200,`Circular dependency in DI detected for ${e}${r}`)}(function xe(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ve(e)}(u[r]));const b=qo(g.canSeeViewProviders);g.resolving=!0;const z=g.injectImpl?fn(g.injectImpl):null;tn(e,i,Et.Default);try{o=e[r]=g.factory(void 0,u,e,i),n.firstCreatePass&&r>=i.directiveStart&&function ds(e,n,r){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:u}=n.type.prototype;if(i){const g=Kn(n);(r.preOrderHooks??=[]).push(e,g),(r.preOrderCheckHooks??=[]).push(e,g)}o&&(r.preOrderHooks??=[]).push(0-e,o),u&&((r.preOrderHooks??=[]).push(e,u),(r.preOrderCheckHooks??=[]).push(e,u))}(r,u[r],n)}finally{null!==z&&fn(z),qo(b),g.resolving=!1,Gs()}}return o}function rf(e,n,r){return!!(r[n+(e>>Du)]&1<{const n=e.prototype.constructor,r=n[Ar]||Su(n),i=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==i;){const u=o[Ar]||Su(o);if(u&&u!==r)return u;o=Object.getPrototypeOf(o)}return u=>new u})}function Su(e){return k(e)?()=>{const n=Su(ie(e));return n&&n()}:os(e)}function ii(e){const n=e[Kt],r=n.type;return 2===r?n.declTNode:1===r?e[Nr]:null}function Va(e){return function Vh(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const r=e.attrs;if(r){const i=r.length;let o=0;for(;o{const i=function $a(e){return function(...r){if(e){const i=e(...r);for(const o in i)this[o]=i[o]}}}(n);function o(...u){if(this instanceof o)return i.apply(this,u),this;const g=new o(...u);return b.annotation=g,b;function b(A,z,ue){const Ce=A.hasOwnProperty(No)?A[No]:Object.defineProperty(A,No,{value:[]})[No];for(;Ce.length<=ue;)Ce.push(null);return(Ce[ue]=Ce[ue]||[]).push(g),A}}return r&&(o.prototype=Object.create(r.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function za(e,n){e.forEach(r=>Array.isArray(r)?za(r,n):n(r))}function lf(e,n,r){n>=e.length?e.push(r):e.splice(n,0,r)}function wc(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Al(e,n){const r=[];for(let i=0;i=0?e[1|i]=r:(i=~i,function Qh(e,n,r,i){let o=e.length;if(o==n)e.push(r,i);else if(1===o)e.push(i,e[0]),e[0]=r;else{for(o--,e.push(e[o-1],e[o]);o>n;)e[o]=e[o-2],o--;e[n]=r,e[n+1]=i}}(e,i,n,r)),i}function xu(e,n){const r=Ka(e,n);if(r>=0)return e[1|r]}function Ka(e,n){return function Ou(e,n,r){let i=0,o=e.length>>r;for(;o!==i;){const u=i+(o-i>>1),g=e[u<n?o=u:i=u+1}return~(o<|^->||--!>|)/g,og="\u200b$1\u200b";const Vu=new Map;let $u=0;const Gu="__ngContext__";function ps(e,n){Ot(n)?(e[Gu]=n[ns],function lg(e){Vu.set(e[ns],e)}(n)):e[Gu]=n}let Nc;function Zu(e,n){return Nc(e,n)}function il(e){const n=e[hr];return qt(n)?n[hr]:n}function Lc(e){return Ku(e[gr])}function zu(e){return Ku(e[$r])}function Ku(e){for(;null!==e&&!qt(e);)e=e[$r];return e}function Ta(e,n,r,i,o){if(null!=i){let u,g=!1;qt(i)?u=i:Ot(i)&&(g=!0,i=i[xr]);const b=er(i);0===e&&null!==r?null==o?kf(n,r,b):wa(n,r,b,o||null,!0):1===e&&null!==r?wa(n,r,b,o||null,!0):2===e?function H(e,n,r){const i=Uc(e,n);i&&function yg(e,n,r,i){e.removeChild(n,r,i)}(e,i,n,r)}(n,b,g):3===e&&n.destroyNode(b),null!=u&&function sn(e,n,r,i,o){const u=r[Pr];u!==er(r)&&Ta(n,e,i,u,o);for(let b=pn;bn.replace(sg,og))}(n))}function Ll(e,n,r){return e.createElement(n,r)}function Qu(e,n){const r=e[Ri],i=r.indexOf(n);xi(n),r.splice(i,1)}function Fl(e,n){if(e.length<=pn)return;const r=pn+n,i=e[r];if(i){const o=i[Wr];null!==o&&o!==e&&Qu(o,i),n>0&&(e[r-1][$r]=i[$r]);const u=wc(e,pn+n);!function Of(e,n){Ge(e,n,n[Bt],2,null,null),n[xr]=null,n[Nr]=null}(i[Kt],i);const g=u[di];null!==g&&g.detachView(u[Kt]),i[hr]=null,i[$r]=null,i[Mn]&=-129}return i}function Fc(e,n){if(!(256&n[Mn])){const r=n[Bt];n[Ii]&&ca(n[Ii]),n[Pi]&&ca(n[Pi]),r.destroyNode&&Ge(e,n,r,3,null,null),function Ju(e){let n=e[gr];if(!n)return kl(e[Kt],e);for(;n;){let r=null;if(Ot(n))r=n[gr];else{const i=n[pn];i&&(r=i)}if(!r){for(;n&&!n[$r]&&n!==e;)Ot(n)&&kl(n[Kt],n),n=n[hr];null===n&&(n=e),Ot(n)&&kl(n[Kt],n),r=n&&n[$r]}n=r}}(n)}}function kl(e,n){if(!(256&n[Mn])){n[Mn]&=-129,n[Mn]|=256,function Ff(e,n){let r;if(null!=e&&null!=(r=e.destroyHooks))for(let i=0;i=0?i[g]():i[-g].unsubscribe(),u+=2}else r[u].call(i[r[u+1]]);null!==i&&(n[ze]=null);const o=n[Zi];if(null!==o){n[Zi]=null;for(let u=0;u-1){const{encapsulation:u}=e.data[i.directiveStart+o];if(u===kt.None||u===kt.Emulated)return null}return Di(i,r)}}function wa(e,n,r,i,o){e.insertBefore(n,r,i,o)}function kf(e,n,r){e.appendChild(n,r)}function Xu(e,n,r,i,o){null!==i?wa(e,n,r,i,o):kf(e,n,r)}function Uc(e,n){return e.parentNode(n)}function Bf(e,n,r){return qu(e,n,r)}function jc(e,n,r){return 40&e.type?Di(e,r):null}let Hc,Pn,Qr,mi,qu=jc;function l(e,n){qu=e,Hc=n}function C(e,n,r,i){const o=kc(e,i,n),u=n[Bt],b=Bf(i.parent||n[Nr],i,n);if(null!=o)if(Array.isArray(r))for(let A=0;Ae,createScript:e=>e,createScriptURL:e=>e})}catch{}return Pn}()?.createHTML(e)||e}function qr(e){Qr=e}function gi(){if(void 0!==Qr)return Qr;if(typeof document<"u")return document;throw new ce(210,!1)}function ki(){if(void 0===mi&&(mi=null,en.trustedTypes))try{mi=en.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return mi}function ks(e){return ki()?.createHTML(e)||e}function ko(e){return ki()?.createScriptURL(e)||e}class As{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ye})`}}class xs extends As{getTypeName(){return"HTML"}}class Ys extends As{getTypeName(){return"Style"}}class Bl extends As{getTypeName(){return"Script"}}class ia extends As{getTypeName(){return"URL"}}class Ul extends As{getTypeName(){return"ResourceURL"}}function Js(e){return e instanceof As?e.changingThisBreaksApplicationSecurity:e}function uo(e,n){const r=function jl(e){return e instanceof As&&e.getTypeName()||null}(e);if(null!=r&&r!==n){if("ResourceURL"===r&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${r} (see ${ye})`)}return r===n}function Sa(e){return new xs(e)}function Bo(e){return new Ys(e)}function sl(e){return new Bl(e)}function Hl(e){return new ia(e)}function sa(e){return new Ul(e)}function Vl(e){const n=new Vc(e);return function jf(){try{return!!(new window.DOMParser).parseFromString(cr(""),"text/html")}catch{return!1}}()?new Uf(n):n}class Uf{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const r=(new window.DOMParser).parseFromString(cr(n),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(n):(r.removeChild(r.firstChild),r)}catch{return null}}}class Vc{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const r=this.inertDocument.createElement("template");return r.innerHTML=cr(n),r}}const ed=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function $l(e){return(e=String(e)).match(ed)?e:"unsafe:"+e}function yo(e){const n={};for(const r of e.split(","))n[r]=!0;return n}function Ma(...e){const n={};for(const r of e)for(const i in r)r.hasOwnProperty(i)&&(n[i]=!0);return n}const $c=yo("area,br,col,hr,img,wbr"),td=yo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),nd=yo("rp,rt"),Wl=Ma($c,Ma(td,yo("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")),Ma(nd,yo("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")),Ma(nd,td)),ol=yo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Gc=Ma(ol,yo("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),yo("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")),rd=yo("script,style,template");class xy{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let r=n.firstChild,i=!0;for(;r;)if(r.nodeType===Node.ELEMENT_NODE?i=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,i&&r.firstChild)r=r.firstChild;else for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let o=this.checkClobberedElement(r,r.nextSibling);if(o){r=o;break}r=this.checkClobberedElement(r,r.parentNode)}return this.buf.join("")}startElement(n){const r=n.nodeName.toLowerCase();if(!Wl.hasOwnProperty(r))return this.sanitizedSomething=!0,!rd.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);const i=n.attributes;for(let o=0;o"),!0}endElement(n){const r=n.nodeName.toLowerCase();Wl.hasOwnProperty(r)&&!$c.hasOwnProperty(r)&&(this.buf.push(""))}chars(n){this.buf.push(Eg(n))}checkClobberedElement(n,r){if(r&&(n.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return r}}const Oy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Iy=/([^\#-~ |!])/g;function Eg(e){return e.replace(/&/g,"&").replace(Oy,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(Iy,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let id;function Dg(e,n){let r=null;try{id=id||Vl(e);let i=n?String(n):"";r=id.getInertBodyElement(i);let o=5,u=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=u,u=r.innerHTML,r=id.getInertBodyElement(i)}while(i!==u);return cr((new xy).sanitizeChildren(Wf(r)||r))}finally{if(r){const i=Wf(r)||r;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Wf(e){return"content"in e&&function Py(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var al=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(al||{});function Cg(e){const n=Zc();return n?ks(n.sanitize(al.HTML,e)||""):uo(e,"HTML")?ks(Js(e)):Dg(gi(),ve(e))}function Gf(e){const n=Zc();return n?n.sanitize(al.URL,e)||"":uo(e,"URL")?Js(e):$l(ve(e))}function Tg(e){const n=Zc();if(n)return ko(n.sanitize(al.RESOURCE_URL,e)||"");if(uo(e,"ResourceURL"))return ko(Js(e));throw new ce(904,!1)}function wg(e,n,r){return function ky(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?Tg:Gf}(n,r)(e)}function Zc(){const e=Nt();return e&&e[Yt].sanitizer}class Gr{constructor(n,r){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof r?this.__NG_ELEMENT_ID__=r:void 0!==r&&(this.\u0275prov=Je({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const zc=new Gr("ENVIRONMENT_INITIALIZER"),Sg=new Gr("INJECTOR",-1),Mg=new Gr("INJECTOR_DEF_TYPES");class Zf{get(n,r=Or){if(r===Or){const i=new Error(`NullInjectorError: No provider for ${f(n)}!`);throw i.name="NullInjectorError",i}return r}}function zf(e){return{\u0275providers:e}}function By(...e){return{\u0275providers:Ag(0,e),\u0275fromNgModule:!0}}function Ag(e,...n){const r=[],i=new Set;let o;const u=g=>{r.push(g)};return za(n,g=>{const b=g;sd(b,u,[],i)&&(o||=[],o.push(b))}),void 0!==o&&xg(o,u),r}function xg(e,n){for(let r=0;r{n(u,i)})}}function sd(e,n,r,i){if(!(e=ie(e)))return!1;let o=null,u=We(e);const g=!u&&jn(e);if(u||g){if(g&&!g.standalone)return!1;o=e}else{const A=e.ngModule;if(u=We(A),!u)return!1;o=A}const b=i.has(o);if(g){if(b)return!1;if(i.add(o),g.dependencies){const A="function"==typeof g.dependencies?g.dependencies():g.dependencies;for(const z of A)sd(z,n,r,i)}}else{if(!u)return!1;{if(null!=u.imports&&!b){let z;i.add(o);try{za(u.imports,ue=>{sd(ue,n,r,i)&&(z||=[],z.push(ue))})}finally{}void 0!==z&&xg(z,n)}if(!b){const z=os(o)||(()=>new o);n({provide:o,useFactory:z,deps:an},o),n({provide:Mg,useValue:o,multi:!0},o),n({provide:zc,useValue:()=>Vt(o),multi:!0},o)}const A=u.providers;if(null!=A&&!b){const z=e;Kf(A,ue=>{n(ue,z)})}}}return o!==e&&void 0!==e.providers}function Kf(e,n){for(let r of e)Te(r)&&(r=r.\u0275providers),Array.isArray(r)?Kf(r,n):n(r)}const Uy=B({provide:String,useValue:B});function Yf(e){return null!==e&&"object"==typeof e&&Uy in e}function ll(e){return"function"==typeof e}const Jf=new Gr("Set Injector scope."),od={},Hy={};let Qf;function ad(){return void 0===Qf&&(Qf=new Zf),Qf}class Uo{}class ld extends Uo{get destroyed(){return this._destroyed}constructor(n,r,i,o){super(),this.parent=r,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,qf(n,g=>this.processProvider(g)),this.records.set(Sg,Gl(void 0,this)),o.has("environment")&&this.records.set(Uo,Gl(void 0,this));const u=this.records.get(Jf);null!=u&&"string"==typeof u.value&&this.scopes.add(u.value),this.injectorDefTypes=new Set(this.get(Mg.multi,an,Et.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const r=yt(this),i=fn(void 0);try{return n()}finally{yt(r),fn(i)}}get(n,r=Or,i=Et.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Zr))return n[Zr](this);i=rr(i);const u=yt(this),g=fn(void 0);try{if(!(i&Et.SkipSelf)){let A=this.records.get(n);if(void 0===A){const z=function Zy(e){return"function"==typeof e||"object"==typeof e&&e instanceof Gr}(n)&&Pt(n);A=z&&this.injectableDefInScope(z)?Gl(Xf(n),od):null,this.records.set(n,A)}if(null!=A)return this.hydrate(n,A)}return(i&Et.Self?ad():this.parent).get(n,r=i&Et.Optional&&r===Or?null:r)}catch(b){if("NullInjectorError"===b.name){if((b[Br]=b[Br]||[]).unshift(f(n)),u)throw b;return function Le(e,n,r,i){const o=e[Br];throw n[ot]&&o.unshift(n[ot]),e.message=function Ue(e,n,r,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=f(n);if(Array.isArray(n))o=n.map(f).join(" -> ");else if("object"==typeof n){let u=[];for(let g in n)if(n.hasOwnProperty(g)){let b=n[g];u.push(g+":"+("string"==typeof b?JSON.stringify(b):f(b)))}o=`{${u.join(", ")}}`}return`${r}${i?"("+i+")":""}[${o}]: ${e.replace(Zn,"\n ")}`}("\n"+e.message,o,r,i),e.ngTokenPath=o,e[Br]=null,e}(b,n,"R3InjectorError",this.source)}throw b}finally{fn(g),yt(u)}}resolveInjectorInitializers(){const n=yt(this),r=fn(void 0);try{const o=this.get(zc.multi,an,Et.Self);for(const u of o)u()}finally{yt(n),fn(r)}}toString(){const n=[],r=this.records;for(const i of r.keys())n.push(f(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ce(205,!1)}processProvider(n){let r=ll(n=ie(n))?n:ie(n&&n.provide);const i=function $y(e){return Yf(e)?Gl(void 0,e.useValue):Gl(Pg(e),od)}(n);if(ll(n)||!0!==n.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Gl(void 0,od,!0),o.factory=()=>ln(o.multi),this.records.set(r,o)),r=n,o.multi.push(n)}this.records.set(r,i)}hydrate(n,r){return r.value===od&&(r.value=Hy,r.value=r.factory()),"object"==typeof r.value&&r.value&&function Gy(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}injectableDefInScope(n){if(!n.providedIn)return!1;const r=ie(n.providedIn);return"string"==typeof r?"any"===r||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(n){const r=this._onDestroyHooks.indexOf(n);-1!==r&&this._onDestroyHooks.splice(r,1)}}function Xf(e){const n=Pt(e),r=null!==n?n.factory:os(e);if(null!==r)return r;if(e instanceof Gr)throw new ce(204,!1);if(e instanceof Function)return function Vy(e){const n=e.length;if(n>0)throw Al(n,"?"),new ce(204,!1);const r=function Rn(e){return e&&(e[Ye]||e[xt])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new ce(204,!1)}function Pg(e,n,r){let i;if(ll(e)){const o=ie(e);return os(o)||Xf(o)}if(Yf(e))i=()=>ie(e.useValue);else if(function Ig(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...ln(e.deps||[]));else if(function Og(e){return!(!e||!e.useExisting)}(e))i=()=>Vt(ie(e.useExisting));else{const o=ie(e&&(e.useClass||e.provide));if(!function Wy(e){return!!e.deps}(e))return os(o)||Xf(o);i=()=>new o(...ln(e.deps))}return i}function Gl(e,n,r=!1){return{factory:e,value:n,multi:r?[]:void 0}}function qf(e,n){for(const r of e)Array.isArray(r)?qf(r,n):r&&Te(r)?qf(r.\u0275providers,n):n(r)}const Rg=new Gr("AppId",{providedIn:"root",factory:()=>zy}),zy="ng",Ng=new Gr("Platform Initializer"),ep=new Gr("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ky=new Gr("AnimationModuleType"),Yy=new Gr("CSP nonce",{providedIn:"root",factory:()=>gi().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Lg=(e,n,r)=>null;function lp(e,n,r=!1){return Lg(e,n,r)}class sb{}class Bg{}class ab{resolveComponentFactory(n){throw function ob(e){const n=Error(`No component factory found for ${f(e)}.`);return n.ngComponent=e,n}(n)}}let Jc=(()=>{class e{static#e=this.NULL=new ab}return e})();function lb(){return Kl(v(),Nt())}function Kl(e,n){return new Qc(Di(e,n))}let Qc=(()=>{class e{constructor(r){this.nativeElement=r}static#e=this.__NG_ELEMENT_ID__=lb}return e})();function cb(e){return e instanceof Qc?e.nativeElement:e}class jg{}let ub=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function db(){const e=Nt(),r=Vi(v().index,e);return(Ot(r)?r:e)[Bt]}()}return e})(),fb=(()=>{class e{static#e=this.\u0275prov=Je({token:e,providedIn:"root",factory:()=>null})}return e})();class Hg{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const pb=new Hg("16.2.10"),dp={};function Gg(e,n=null,r=null,i){const o=Zg(e,n,r,i);return o.resolveInjectorInitializers(),o}function Zg(e,n=null,r=null,i,o=new Set){const u=[r||an,By(e)];return i=i||("object"==typeof e?void 0:f(e)),new ld(u,n||ad(),i||null,o)}let bo=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=Or;static#t=this.NULL=new Zf;static create(r,i){if(Array.isArray(r))return Gg({name:""},i,r,"");{const o=r.name??"";return Gg({name:o},r.parent,r.providers,o)}}static#n=this.\u0275prov=Je({token:e,providedIn:"any",factory:()=>Vt(Sg)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function pp(e){return e.ngOriginalError}class xa{constructor(){this._console=console}handleError(n){const r=this._findOriginalError(n);this._console.error("ERROR",n),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(n){let r=n&&pp(n);for(;r&&pp(r);)r=pp(r);return r||null}}function gp(e){return n=>{setTimeout(e,void 0,n)}}const jo=class bb extends t.x{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,r,i){let o=n,u=r||(()=>null),g=i;if(n&&"object"==typeof n){const A=n;o=A.next?.bind(A),u=A.error?.bind(A),g=A.complete?.bind(A)}this.__isAsync&&(u=gp(u),o&&(o=gp(o)),g&&(g=gp(g)));const b=super.subscribe({next:o,error:u,complete:g});return n instanceof d.w0&&n.add(b),b}};function Kg(...e){}class qi{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new jo(!1),this.onMicrotaskEmpty=new jo(!1),this.onStable=new jo(!1),this.onError=new jo(!1),typeof Zone>"u")throw new ce(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&r,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function Eb(){const e="function"==typeof en.requestAnimationFrame;let n=en[e?"requestAnimationFrame":"setTimeout"],r=en[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&r){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const o=r[Zone.__symbol__("OriginalDelegate")];o&&(r=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function Tb(e){const n=()=>{!function Cb(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(en,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,_p(e),e.isCheckStableRunning=!0,mp(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),_p(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,i,o,u,g,b)=>{if(function Sb(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(b))return r.invokeTask(o,u,g,b);try{return Yg(e),r.invokeTask(o,u,g,b)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===u.type||e.shouldCoalesceRunChangeDetection)&&n(),Jg(e)}},onInvoke:(r,i,o,u,g,b,A)=>{try{return Yg(e),r.invoke(o,u,g,b,A)}finally{e.shouldCoalesceRunChangeDetection&&n(),Jg(e)}},onHasTask:(r,i,o,u)=>{r.hasTask(o,u),i===o&&("microTask"==u.change?(e._hasPendingMicrotasks=u.microTask,_p(e),mp(e)):"macroTask"==u.change&&(e.hasPendingMacrotasks=u.macroTask))},onHandleError:(r,i,o,u)=>(r.handleError(o,u),e.runOutsideAngular(()=>e.onError.emit(u)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!qi.isInAngularZone())throw new ce(909,!1)}static assertNotInAngularZone(){if(qi.isInAngularZone())throw new ce(909,!1)}run(n,r,i){return this._inner.run(n,r,i)}runTask(n,r,i,o){const u=this._inner,g=u.scheduleEventTask("NgZoneEvent: "+o,n,Db,Kg,Kg);try{return u.runTask(g,r,i)}finally{u.cancelTask(g)}}runGuarded(n,r,i){return this._inner.runGuarded(n,r,i)}runOutsideAngular(n){return this._outer.run(n)}}const Db={};function mp(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function _p(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Yg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Jg(e){e._nesting--,mp(e)}class wb{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new jo,this.onMicrotaskEmpty=new jo,this.onStable=new jo,this.onError=new jo}run(n,r,i){return n.apply(r,i)}runGuarded(n,r,i){return n.apply(r,i)}runOutsideAngular(n){return n()}runTask(n,r,i,o){return n.apply(r,i)}}const Qg=new Gr("",{providedIn:"root",factory:Xg});function Xg(){const e=on(qi);let n=!0;const r=new w.y(o=>{n=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(n),o.complete()})}),i=new w.y(o=>{let u;e.runOutsideAngular(()=>{u=e.onStable.subscribe(()=>{qi.assertNotInAngularZone(),queueMicrotask(()=>{!n&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(n=!0,o.next(!0))})})});const g=e.onUnstable.subscribe(()=>{qi.assertInAngularZone(),n&&(n=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{u.unsubscribe(),g.unsubscribe()}});return(0,L.T)(r,i.pipe((0,R.B)()))}function oa(e){return e instanceof Function?e():e}let vp=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=Je({token:e,providedIn:"root",factory:()=>new e})}return e})();function Xc(e){for(;e;){e[Mn]|=64;const n=il(e);if(Hs(e)&&!n)return e;e=n}return null}const rm=new Gr("",{providedIn:"root",factory:()=>!1});let gd=null;function am(e,n){return e[n]??um()}function lm(e,n){const r=um();r.producerNode?.length&&(e[n]=gd,r.lView=e,gd=cm())}const Fb={...no,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Xc(e.lView)},lView:null};function cm(){return Object.create(Fb)}function um(){return gd??=cm(),gd}const ur={};function dm(e){fm(mr(),Nt(),bn()+e,!1)}function fm(e,n,r,i){if(!i)if(3==(3&n[Mn])){const u=e.preOrderCheckHooks;null!==u&&lo(n,u,r)}else{const u=e.preOrderHooks;null!==u&&Qo(n,u,0,r)}tr(r)}function Ql(e,n=Et.Default){const r=Nt();return null===r?Vt(e,n):ef(v(),r,ie(e),n)}function pm(){throw new Error("invalid")}function md(e,n,r,i,o,u,g,b,A,z,ue){const Ce=n.blueprint.slice();return Ce[xr]=o,Ce[Mn]=140|i,(null!==z||e&&2048&e[Mn])&&(Ce[Mn]|=2048),Po(Ce),Ce[hr]=Ce[Yn]=e,Ce[Ve]=r,Ce[Yt]=g||e&&e[Yt],Ce[Bt]=b||e&&e[Bt],Ce[ct]=A||e&&e[ct]||null,Ce[Nr]=u,Ce[ns]=function ag(){return $u++}(),Ce[Oi]=ue,Ce[bs]=z,Ce[sr]=2==n.type?e[sr]:Ce,Ce}function Xl(e,n,r,i,o){let u=e.data[n];if(null===u)u=yp(e,n,r,i,o),function E(){return Hn.lFrame.inI18n}()&&(u.flags|=32);else if(64&u.type){u.type=r,u.value=i,u.attrs=o;const g=te();u.injectorIndex=null===g?-1:g.injectorIndex}return me(u,!0),u}function yp(e,n,r,i,o){const u=I(),g=Ne(),A=e.data[n]=function Wb(e,n,r,i,o,u){let g=n?n.injectorIndex:-1,b=0;return Ss()&&(b|=128),{type:r,index:i,insertBeforeIndex:null,injectorIndex:g,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:b,providerIndexes:0,value:o,attrs:u,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,g?u:u&&u.parent,r,n,i,o);return null===e.firstChild&&(e.firstChild=A),null!==u&&(g?null==u.child&&null!==A.parent&&(u.child=A):null===u.next&&(u.next=A,A.prev=u)),A}function qc(e,n,r,i){if(0===r)return-1;const o=n.length;for(let u=0;uGn&&fm(e,n,Gn,!1),ti(b?2:0,o);const z=b?u:null,ue=wo(z);try{null!==z&&(z.dirty=!1),r(i,o)}finally{So(z,ue)}}finally{b&&null===n[Ii]&&lm(n,Ii),tr(g),ti(b?3:1,o)}}function bp(e,n,r){if(Kr(n)){const i=yi(null);try{const u=n.directiveEnd;for(let g=n.directiveStart;gnull;function _m(e,n,r,i){for(let o in e)if(e.hasOwnProperty(o)){r=null===r?{}:r;const u=e[o];null===i?vm(r,n,o,u):i.hasOwnProperty(o)&&vm(r,n,i[o],u)}return r}function vm(e,n,r,i){e.hasOwnProperty(r)?e[r].push(n,i):e[r]=[n,i]}function Qs(e,n,r,i,o,u,g,b){const A=Di(n,r);let ue,z=n.inputs;!b&&null!=z&&(ue=z[i])?(Ap(e,r,ue,i,o),ji(n)&&function zb(e,n){const r=Vi(n,e);16&r[Mn]||(r[Mn]|=64)}(r,n.index)):3&n.type&&(i=function Zb(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),o=null!=g?g(o,n.value||"",i):o,u.setProperty(A,i,o))}function Tp(e,n,r,i){if(Ws()){const o=null===i?null:{"":-1},u=function qb(e,n){const r=e.directiveRegistry;let i=null,o=null;if(r)for(let u=0;u0;){const r=e[--n];if("number"==typeof r&&r<0)return r}return 0})(g)!=b&&g.push(b),g.push(r,i,u)}}(e,n,i,qc(e,r,o.hostVars,ur),o)}function Ho(e,n,r,i,o,u){const g=Di(e,n);!function Sp(e,n,r,i,o,u,g){if(null==u)e.removeAttribute(n,o,r);else{const b=null==g?ve(u):g(u,i||"",o);e.setAttribute(n,o,b,r)}}(n[Bt],g,u,e.value,r,i,o)}function s1(e,n,r,i,o,u){const g=u[n];if(null!==g)for(let b=0;b{class e{constructor(){this.all=new Set,this.queue=new Map}create(r,i,o){const u=typeof Zone>"u"?null:Zone.current,g=function gt(e,n,r){const i=Object.create(Jt);r&&(i.consumerAllowSignalWrites=!0),i.fn=e,i.schedule=n;const o=g=>{i.cleanupFn=g};return i.ref={notify:()=>go(i),run:()=>{if(i.dirty=!1,i.hasRun&&!so(i))return;i.hasRun=!0;const g=wo(i);try{i.cleanupFn(),i.cleanupFn=Ct,i.fn(o)}finally{So(i,g)}},cleanup:()=>i.cleanupFn()},i.ref}(r,z=>{this.all.has(z)&&this.queue.set(z,u)},o);let b;this.all.add(g),g.notify();const A=()=>{g.cleanup(),b?.(),this.all.delete(g),this.queue.delete(g)};return b=i?.onDestroy(A),{destroy:A}}flush(){if(0!==this.queue.size)for(const[r,i]of this.queue)this.queue.delete(r),i?i.run(()=>r.run()):r.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=Je({token:e,providedIn:"root",factory:()=>new e})}return e})();function vd(e,n,r){let i=r?e.styles:null,o=r?e.classes:null,u=0;if(null!==n)for(let g=0;g0){Im(e,1);const o=r.components;null!==o&&Rm(e,o,1)}}function Rm(e,n,r){for(let i=0;i-1&&(Fl(n,i),wc(r,i))}this._attachedToViewContainer=!1}Fc(this._lView[Kt],this._lView)}onDestroy(n){!function Fa(e,n){if(256==(256&e[Mn]))throw new ce(911,!1);null===e[Zi]&&(e[Zi]=[]),e[Zi].push(n)}(this._lView,n)}markForCheck(){Xc(this._cdRefInjectingView||this._lView)}detach(){this._lView[Mn]&=-129}reattach(){this._lView[Mn]|=128}detectChanges(){yd(this._lView[Kt],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ce(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Pf(e,n){Ge(e,n,n[Bt],2,null,null)}(this._lView[Kt],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new ce(902,!1);this._appRef=n}}class h1 extends tu{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;yd(n[Kt],n,n[Ve],!1)}checkNoChanges(){}get context(){return null}}class Nm extends Jc{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const r=jn(n);return new nu(r,this.ngModule)}}function Lm(e){const n=[];for(let r in e)e.hasOwnProperty(r)&&n.push({propName:e[r],templateName:r});return n}class m1{constructor(n,r){this.injector=n,this.parentInjector=r}get(n,r,i){i=rr(i);const o=this.injector.get(n,dp,i);return o!==dp||r===dp?o:this.parentInjector.get(n,r,i)}}class nu extends Bg{get inputs(){const n=this.componentDef,r=n.inputTransforms,i=Lm(n.inputs);if(null!==r)for(const o of i)r.hasOwnProperty(o.propName)&&(o.transform=r[o.propName]);return i}get outputs(){return Lm(this.componentDef.outputs)}constructor(n,r){super(),this.componentDef=n,this.ngModule=r,this.componentType=n.type,this.selector=function zr(e){return e.map(_r).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!r}create(n,r,i,o){let u=(o=o||this.ngModule)instanceof Uo?o:o?.injector;u&&null!==this.componentDef.getStandaloneInjector&&(u=this.componentDef.getStandaloneInjector(u)||u);const g=u?new m1(n,u):n,b=g.get(jg,null);if(null===b)throw new ce(407,!1);const Ce={rendererFactory:b,sanitizer:g.get(fb,null),effectManager:g.get(Am,null),afterRenderEventManager:g.get(vp,null)},Ke=b.createRenderer(null,this.componentDef),nt=this.componentDef.selectors[0][0]||"div",St=i?function Ub(e,n,r,i){const u=i.get(rm,!1)||r===kt.ShadowDom,g=e.selectRootElement(n,u);return function jb(e){mm(e)}(g),g}(Ke,i,this.componentDef.encapsulation,g):Ll(Ke,nt,function g1(e){const n=e.toLowerCase();return"svg"===n?cs:"math"===n?Ts:null}(nt)),Ln=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let Lt=null;null!==St&&(Lt=lp(St,g,!0));const Qn=Cp(0,null,null,1,0,null,null,null,null,null,null),Tr=md(null,Qn,null,Ln,null,null,Ce,Ke,g,null,Lt);let Xr,js;kn(Tr);try{const la=this.componentDef;let gc,kh=null;la.findHostDirectiveDefs?(gc=[],kh=new Map,la.findHostDirectiveDefs(la,gc,kh),gc.push(la)):gc=[la];const _w=function v1(e,n){const r=e[Kt],i=Gn;return e[i]=n,Xl(r,i,2,"#host",null)}(Tr,St),vw=function y1(e,n,r,i,o,u,g){const b=o[Kt];!function b1(e,n,r,i){for(const o of e)n.mergedAttrs=pe(n.mergedAttrs,o.hostAttrs);null!==n.mergedAttrs&&(vd(n,n.mergedAttrs,!0),null!==r&&lr(i,r,n))}(i,e,n,g);let A=null;null!==n&&(A=lp(n,o[ct]));const z=u.rendererFactory.createRenderer(n,r);let ue=16;r.signals?ue=4096:r.onPush&&(ue=64);const Ce=md(o,gm(r),null,ue,o[e.index],e,u,z,null,null,A);return b.firstCreatePass&&wp(b,e,i.length-1),_d(o,Ce),o[e.index]=Ce}(_w,St,la,gc,Tr,Ce,Ke);js=Oo(Qn,Gn),St&&function D1(e,n,r,i){if(i)qn(e,r,["ng-version",pb.full]);else{const{attrs:o,classes:u}=function Yr(e){const n=[],r=[];let i=1,o=2;for(;i0&&Mr(e,r,u.join(" "))}}(Ke,la,St,i),void 0!==r&&function C1(e,n,r){const i=e.projection=[];for(let o=0;o=0;i--){const o=e[i];o.hostVars=n+=o.hostVars,o.hostAttrs=pe(o.hostAttrs,r=pe(r,o.hostAttrs))}}(i)}function bd(e){return e===Ft?{}:e===an?[]:e}function S1(e,n){const r=e.viewQuery;e.viewQuery=r?(i,o)=>{n(i,o),r(i,o)}:n}function M1(e,n){const r=e.contentQueries;e.contentQueries=r?(i,o,u)=>{n(i,o,u),r(i,o,u)}:n}function A1(e,n){const r=e.hostBindings;e.hostBindings=r?(i,o)=>{n(i,o),r(i,o)}:n}function km(e){return n=>{n.findHostDirectiveDefs=Bm,n.hostDirectives=(Array.isArray(e)?e:e()).map(r=>"function"==typeof r?{directive:ie(r),inputs:Ft,outputs:Ft}:{directive:ie(r.directive),inputs:Um(r.inputs),outputs:Um(r.outputs)})}}function Bm(e,n,r){if(null!==e.hostDirectives)for(const i of e.hostDirectives){const o=vr(i.directive);P1(o.declaredInputs,i.inputs),Bm(o,n,r),r.set(o,i),n.push(o)}}function Um(e){if(void 0===e||0===e.length)return Ft;const n={};for(let r=0;r(Qi(!0),Ll(i,o,function Jo(){return Hn.lFrame.currentNamespace}()));function Ad(e,n,r){const i=Nt(),o=mr(),u=e+Gn,g=o.firstCreatePass?function sE(e,n,r,i,o){const u=n.consts,g=us(u,i),b=Xl(n,e,8,"ng-container",g);return null!==g&&vd(b,g,!0),Tp(n,r,b,us(u,o)),null!==n.queries&&n.queries.elementStart(n,b),b}(u,o,i,n,r):o.data[u];me(g,!0);const b=s_(o,i,g,e);return i[u]=b,ri()&&C(o,i,b,g),ps(b,i),ms(g)&&(Ep(o,i,g),bp(o,g,i)),null!=r&&Dp(i,g),Ad}function xd(){let e=v();const n=mr();return Ne()?Fe():(e=e.parent,me(e,!1)),n.firstCreatePass&&(ao(n,e),Kr(e)&&n.queries.elementEnd(e)),xd}function Hp(e,n,r){return Ad(e,n,r),xd(),Hp}let s_=(e,n,r,i)=>(Qi(!0),Nl(n[Bt],""));function o_(){return Nt()}function Vp(e){return!!e&&"function"==typeof e.then}function a_(e){return!!e&&"function"==typeof e.subscribe}function $p(e,n,r,i){const o=Nt(),u=mr(),g=v();return function c_(e,n,r,i,o,u,g){const b=ms(i),z=e.firstCreatePass&&wm(e),ue=n[Ve],Ce=Tm(n);let Ke=!0;if(3&i.type||g){const jt=Di(i,n),gn=g?g(jt):jt,Ln=Ce.length,Lt=g?Tr=>g(er(Tr[i.index])):i.index;let Qn=null;if(!g&&b&&(Qn=function lE(e,n,r,i){const o=e.cleanup;if(null!=o)for(let u=0;uA?b[A]:null}"string"==typeof g&&(u+=2)}return null}(e,n,o,i.index)),null!==Qn)(Qn.__ngLastListenerFn__||Qn).__ngNextListenerFn__=u,Qn.__ngLastListenerFn__=u,Ke=!1;else{u=d_(i,n,ue,u,!1);const Tr=r.listen(gn,o,u);Ce.push(u,Tr),z&&z.push(o,Lt,Ln,Ln+1)}}else u=d_(i,n,ue,u,!1);const nt=i.outputs;let St;if(Ke&&null!==nt&&(St=nt[o])){const jt=St.length;if(jt)for(let gn=0;gn-1?Vi(e.index,n):n);let A=u_(n,r,i,g),z=u.__ngNextListenerFn__;for(;z;)A=u_(n,r,z,g)&&A,z=z.__ngNextListenerFn__;return o&&!1===A&&g.preventDefault(),A}}function f_(e=1){return function mn(e){return(Hn.lFrame.contextLView=function On(e,n){for(;e>0;)n=n[Yn],e--;return n}(e,Hn.lFrame.contextLView))[Ve]}(e)}function cE(e,n){let r=null;const i=function cn(e){const n=e.attrs;if(null!=n){const r=n.indexOf(5);if(!(1&r))return n[r+1]}return null}(e);for(let o=0;o>17&32767}function Gp(e){return 2|e}function ul(e){return(131068&e)>>2}function Zp(e,n){return-131069&e|n<<2}function zp(e){return 1|e}function C_(e,n,r,i,o){const u=e[r+1],g=null===n;let b=i?Oa(u):ul(u),A=!1;for(;0!==b&&(!1===A||g);){const ue=e[b+1];gE(e[b],n)&&(A=!0,e[b+1]=i?zp(ue):Gp(ue)),b=i?Oa(ue):ul(ue)}A&&(e[r+1]=i?Gp(u):zp(u))}function gE(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Ka(e,n)>=0}const $i={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function T_(e){return e.substring($i.key,$i.keyEnd)}function w_(e,n){const r=$i.textEnd;return r===n?-1:(n=$i.keyEnd=function yE(e,n,r){for(;n32;)n++;return n}(e,$i.key=n,r),lc(e,n,r))}function lc(e,n,r){for(;n=0;r=w_(n,r))Fs(e,T_(n),!0)}function Do(e,n,r,i){const o=mr(),u=Fn(2);o.firstUpdatePass&&R_(o,null,u,i);const g=Nt();if(r!==ur&&vs(g,u,r)){const b=o.data[bn()];if(k_(b,i)&&!P_(o,u)){let A=i?b.classesWithoutHost:b.stylesWithoutHost;null!==A&&(r=j(A,r||"")),Up(o,b,g,r,i)}else!function xE(e,n,r,i,o,u,g,b){o===ur&&(o=an);let A=0,z=0,ue=0=e.expandoStartIndex}function R_(e,n,r,i){const o=e.data;if(null===o[r+1]){const u=o[bn()],g=P_(e,r);k_(u,i)&&null===n&&!g&&(n=!1),n=function CE(e,n,r,i){const o=function he(e){const n=Hn.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let u=i?n.residualClasses:n.residualStyles;if(null===o)0===(i?n.classBindings:n.styleBindings)&&(r=au(r=Yp(null,e,n,r,i),n.attrs,i),u=null);else{const g=n.directiveStylingLast;if(-1===g||e[g]!==o)if(r=Yp(o,e,n,r,i),null===u){let A=function TE(e,n,r){const i=r?n.classBindings:n.styleBindings;if(0!==ul(i))return e[Oa(i)]}(e,n,i);void 0!==A&&Array.isArray(A)&&(A=Yp(null,e,n,A[1],i),A=au(A,n.attrs,i),function wE(e,n,r,i){e[Oa(r?n.classBindings:n.styleBindings)]=i}(e,n,i,A))}else u=function SE(e,n,r){let i;const o=n.directiveEnd;for(let u=1+n.directiveStylingLast;u0)&&(z=!0)):ue=r,o)if(0!==A){const Ke=Oa(e[b+1]);e[i+1]=Id(Ke,b),0!==Ke&&(e[Ke+1]=Zp(e[Ke+1],i)),e[b+1]=function dE(e,n){return 131071&e|n<<17}(e[b+1],i)}else e[i+1]=Id(b,0),0!==b&&(e[b+1]=Zp(e[b+1],i)),b=i;else e[i+1]=Id(A,0),0===b?b=i:e[A+1]=Zp(e[A+1],i),A=i;z&&(e[i+1]=Gp(e[i+1])),C_(e,ue,i,!0),C_(e,ue,i,!1),function hE(e,n,r,i,o){const u=o?e.residualClasses:e.residualStyles;null!=u&&"string"==typeof n&&Ka(u,n)>=0&&(r[i+1]=zp(r[i+1]))}(n,ue,e,i,u),g=Id(b,A),u?n.classBindings=g:n.styleBindings=g}(o,u,n,r,g,i)}}function Yp(e,n,r,i,o){let u=null;const g=r.directiveEnd;let b=r.directiveStylingLast;for(-1===b?b=r.directiveStart:b++;b0;){const A=e[o],z=Array.isArray(A),ue=z?A[1]:A,Ce=null===ue;let Ke=r[o+1];Ke===ur&&(Ke=Ce?an:void 0);let nt=Ce?xu(Ke,i):ue===i?Ke:void 0;if(z&&!Pd(nt)&&(nt=xu(A,i)),Pd(nt)&&(b=nt,g))return b;const St=e[o+1];o=g?Oa(St):ul(St)}if(null!==n){let A=u?n.residualClasses:n.residualStyles;null!=A&&(b=xu(A,i))}return b}function Pd(e){return void 0!==e}function k_(e,n){return 0!=(e.flags&(n?8:16))}function B_(e,n=""){const r=Nt(),i=mr(),o=e+Gn,u=i.firstCreatePass?Xl(i,o,1,n,null):i.data[o],g=U_(i,r,u,n,e);r[o]=g,ri()&&C(i,r,g,u),me(u,!1)}let U_=(e,n,r,i,o)=>(Qi(!0),Rl(n[Bt],i));function Jp(e){return Rd("",e,""),Jp}function Rd(e,n,r){const i=Nt(),o=ec(i,e,n,r);return o!==ur&&aa(i,bn(),o),Rd}function Qp(e,n,r,i,o){const u=Nt(),g=function tc(e,n,r,i,o,u){const b=cl(e,Tn(),r,o);return Fn(2),b?n+ve(r)+i+ve(o)+u:ur}(u,e,n,r,i,o);return g!==ur&&aa(u,bn(),g),Qp}function Xp(e,n,r,i,o,u,g){const b=Nt(),A=function nc(e,n,r,i,o,u,g,b){const z=Dd(e,Tn(),r,o,g);return Fn(3),z?n+ve(r)+i+ve(o)+u+ve(g)+b:ur}(b,e,n,r,i,o,u,g);return A!==ur&&aa(b,bn(),A),Xp}function qp(e,n,r,i,o,u,g,b,A,z,ue){const Ce=Nt(),Ke=function ic(e,n,r,i,o,u,g,b,A,z,ue,Ce){const Ke=Tn();let nt=fo(e,Ke,r,o,g,A);return nt=vs(e,Ke+4,ue)||nt,Fn(5),nt?n+ve(r)+i+ve(o)+u+ve(g)+b+ve(A)+z+ve(ue)+Ce:ur}(Ce,e,n,r,i,o,u,g,b,A,z,ue);return Ke!==ur&&aa(Ce,bn(),Ke),qp}function G_(e,n,r){Do(Fs,Wo,ec(Nt(),e,n,r),!0)}function eh(e,n,r){const i=Nt();return vs(i,xn(),n)&&Qs(mr(),ar(),i,e,n,i[Bt],r,!0),eh}const dl=void 0;var QE=["en",[["a","p"],["AM","PM"],dl],[["AM","PM"],dl,dl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],dl,[["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"]],dl,[["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}",dl,"{1} 'at' {0}",dl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function JE(e){const r=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===i?1:5}];let cc={};function XE(e,n,r){"string"!=typeof n&&(r=n,n=e[uc.LocaleId]),n=n.toLowerCase().replace(/_/g,"-"),cc[n]=e,r&&(cc[n][uc.ExtraData]=r)}function th(e){const n=function qE(e){return e.toLowerCase().replace(/_/g,"-")}(e);let r=rv(n);if(r)return r;const i=n.split("-")[0];if(r=rv(i),r)return r;if("en"===i)return QE;throw new ce(701,!1)}function nv(e){return th(e)[uc.PluralCase]}function rv(e){return e in cc||(cc[e]=en.ng&&en.ng.common&&en.ng.common.locales&&en.ng.common.locales[e]),cc[e]}var uc=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(uc||{});const dc="en-US",Nd={marker:"element"},Ld={marker:"ICU"};var Bs=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}(Bs||{});let iv=dc;function sv(e){(function je(e,n){null==e&&Xe(n,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(iv=e.toLowerCase().replace(/_/g,"-"))}function ov(e,n,r){const i=n.insertBeforeIndex,o=Array.isArray(i)?i[0]:i;return null===o?jc(e,0,r):er(r[o])}function av(e,n,r,i,o){const u=n.insertBeforeIndex;if(Array.isArray(u)){let g=i,b=null;if(3&n.type||(b=g,g=o),null!==g&&-1===n.componentOffset)for(let A=1;A1)for(let r=e.length-2;r>=0;r--){const i=e[r];cv(i)||iD(i,n)&&null===sD(i)&&oD(i,n.index)}}function cv(e){return!(64&e.type)}function iD(e,n){return cv(n)||e.index>n.index}function sD(e){const n=e.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function oD(e,n){const r=e.insertBeforeIndex;Array.isArray(r)?r[0]=n:(l(ov,av),e.insertBeforeIndex=n)}function cD(e,n,r){const i=yp(e,r,64,null,null);return lv(n,i),i}function mD(){const e=[];let r,i,n=-1;function u(b,A){n=0;const z=function Fd(e,n){const r=n[e.currentCaseLViewIndex];return null===r?r:r<0?~r:r}(b,A);i=null!==z?b.remove[z]:an}function g(){if(n0?r[b]:(e.push(n,i),u(r[Kt].data[~b],r),g())}return 0===e.length?null:(i=e.pop(),n=e.pop(),g())}return function o(b,A){for(r=A;e.length;)e.pop();return u(b.value,A),g}}const kd=/\ufffd(\d+):?\d*\ufffd/gi,vD=/\ufffd(\d+)\ufffd/,vv=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,du="\ufffd",yD=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,bD=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,ED=/\uE500/g;function yv(e,n,r,i,o,u,g){const b=qc(e,i,1,null);let A=b<r.length&&r.push(A)}return{type:i,mainBinding:o,cases:n,values:r}}function nh(e){if(!e)return[];let n=0;const r=[],i=[],o=/[{}]/g;let u;for(o.lastIndex=0;u=o.exec(e);){const b=u.index;if("}"==u[0]){if(r.pop(),0==r.length){const A=e.substring(n,b);vv.test(A)?i.push(xD(A)):i.push(A),n=b+1}}else{if(0==r.length){const A=e.substring(n,b);i.push(A),n=b+1}r.push("{")}}const g=e.substring(n);return i.push(g),i}function OD(e,n,r,i,o,u,g,b){const A=[],z=[],ue=[];n.cases.push(u),n.create.push(A),n.remove.push(z),n.update.push(ue);const Ke=Vl(gi()).getInertBodyElement(g),nt=Wf(Ke)||Ke;return nt?Cv(e,n,r,i,A,z,ue,nt,o,b,0):0}function Cv(e,n,r,i,o,u,g,b,A,z,ue){let Ce=0,Ke=b.firstChild;for(;Ke;){const nt=qc(e,r,1,null);switch(Ke.nodeType){case Node.ELEMENT_NODE:const St=Ke,jt=St.tagName.toLowerCase();if(Wl.hasOwnProperty(jt)){rh(o,Nd,jt,A,nt),e.data[nt]=jt;const Qn=St.attributes;for(let Tr=0;Tr>>Bs.SHIFT;let Ce=e[ue];null===Ce&&(Ce=e[ue]=(g&Bs.COMMENT)===Bs.COMMENT?o.createComment(b):Rl(o,b)),z&&null!==r&&wa(o,r,Ce,i,!1)}})(o,A.create,ue,b&&8&b.type?o[b.index]:null),S(!0)}function Av(e,n,r){Sv(e,n,r),function Mv(){S(!1)}()}function ih(e,n,r,i,o){if(e=ie(e),Array.isArray(e))for(let u=0;u>20;if(ll(e)||!e.multi){const nt=new va(z,o,Ql),St=oh(A,n,o?ue:ue+Ke,Ce);-1===St?(wu(Ec(b,g),u,A),sh(u,e,n.length),n.push(A),b.directiveStart++,b.directiveEnd++,o&&(b.providerIndexes+=1048576),r.push(nt),g.push(nt)):(r[St]=nt,g[St]=nt)}else{const nt=oh(A,n,ue+Ke,Ce),St=oh(A,n,ue,ue+Ke),gn=St>=0&&r[St];if(o&&!gn||!o&&!(nt>=0&&r[nt])){wu(Ec(b,g),u,A);const Ln=function JD(e,n,r,i,o){const u=new va(e,r,Ql);return u.multi=[],u.index=n,u.componentProviders=0,Ov(u,o,i&&!r),u}(o?YD:KD,r.length,o,i,z);!o&&gn&&(r[St].providerFactory=Ln),sh(u,e,n.length,0),n.push(A),b.directiveStart++,b.directiveEnd++,o&&(b.providerIndexes+=1048576),r.push(Ln),g.push(Ln)}else sh(u,e,nt>-1?nt:St,Ov(r[o?St:nt],z,!o&&i));!o&&i&&gn&&r[St].componentProviders++}}}function sh(e,n,r,i){const o=ll(n),u=function jy(e){return!!e.useClass}(n);if(o||u){const A=(u?ie(n.useClass):n).prototype.ngOnDestroy;if(A){const z=e.destroyHooks||(e.destroyHooks=[]);if(!o&&n.multi){const ue=z.indexOf(r);-1===ue?z.push(r,[i,A]):z[ue+1].push(i,A)}else z.push(r,A)}}}function Ov(e,n,r){return r&&e.componentProviders++,e.multi.push(n)-1}function oh(e,n,r,i){for(let o=r;o{r.providersResolver=(i,o)=>function zD(e,n,r){const i=mr();if(i.firstCreatePass){const o=fi(e);ih(r,i.data,i.blueprint,o,!0),ih(n,i.data,i.blueprint,o,!1)}}(i,o?o(e):e,n)}}class fl{}class Pv{}function QD(e,n){return new lh(e,n??null,[])}class lh extends fl{constructor(n,r,i){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Nm(this);const o=ci(n);this._bootstrapComponents=oa(o.bootstrap),this._r3Injector=Zg(n,r,[{provide:fl,useValue:this},{provide:Jc,useValue:this.componentFactoryResolver},...i],f(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class ch extends Pv{constructor(n){super(),this.moduleType=n}create(n){return new lh(this.moduleType,n,[])}}class Rv extends fl{constructor(n){super(),this.componentFactoryResolver=new Nm(this),this.instance=null;const r=new ld([...n.providers,{provide:fl,useValue:this},{provide:Jc,useValue:this.componentFactoryResolver}],n.parent||ad(),n.debugName,new Set(["environment"]));this.injector=r,n.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Nv(e,n,r=null){return new Rv({providers:e,parent:n,debugName:r,runEnvironmentInitializers:!0}).injector}let qD=(()=>{class e{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){const i=Ag(0,r.type),o=i.length>0?Nv([i],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,o)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(const r of this.cachedInjectors.values())null!==r&&r.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Je({token:e,providedIn:"environment",factory:()=>new e(Vt(Uo))})}return e})();function Lv(e){e.getStandaloneInjector=n=>n.get(qD).getOrCreateStandaloneInjector(e)}function Vv(e,n,r){const i=Xt()+e,o=Nt();return o[i]===ur?Vo(o,i,r?n.call(r):n()):ru(o,i)}function $v(e,n,r,i){return Kv(Nt(),Xt(),e,n,r,i)}function Wv(e,n,r,i,o){return Yv(Nt(),Xt(),e,n,r,i,o)}function Gv(e,n,r,i,o,u){return Jv(Nt(),Xt(),e,n,r,i,o,u)}function Zv(e,n,r,i,o,u,g){return function Qv(e,n,r,i,o,u,g,b,A){const z=n+r;return fo(e,z,o,u,g,b)?Vo(e,z+4,A?i.call(A,o,u,g,b):i(o,u,g,b)):pu(e,z+4)}(Nt(),Xt(),e,n,r,i,o,u,g)}function zv(e,n,r,i,o,u,g,b){const A=Xt()+e,z=Nt(),ue=fo(z,A,r,i,o,u);return vs(z,A+4,g)||ue?Vo(z,A+5,b?n.call(b,r,i,o,u,g):n(r,i,o,u,g)):ru(z,A+5)}function pu(e,n){const r=e[n];return r===ur?void 0:r}function Kv(e,n,r,i,o,u){const g=n+r;return vs(e,g,o)?Vo(e,g+1,u?i.call(u,o):i(o)):pu(e,g+1)}function Yv(e,n,r,i,o,u,g){const b=n+r;return cl(e,b,o,u)?Vo(e,b+2,g?i.call(g,o,u):i(o,u)):pu(e,b+2)}function Jv(e,n,r,i,o,u,g,b){const A=n+r;return Dd(e,A,o,u,g)?Vo(e,A+3,b?i.call(b,o,u,g):i(o,u,g)):pu(e,A+3)}function qv(e,n){const r=mr();let i;const o=e+Gn;r.firstCreatePass?(i=function fC(e,n){if(n)for(let r=n.length-1;r>=0;r--){const i=n[r];if(e===i.name)return i}}(n,r.pipeRegistry),r.data[o]=i,i.onDestroy&&(r.destroyHooks??=[]).push(o,i.onDestroy)):i=r.data[o];const u=i.factory||(i.factory=os(i.type)),b=fn(Ql);try{const A=qo(!1),z=u();return qo(A),function tE(e,n,r,i){r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),n[r]=i}(r,Nt(),o,z),z}finally{fn(b)}}function e0(e,n,r){const i=e+Gn,o=Nt(),u=Yi(o,i);return hu(o,i)?Kv(o,Xt(),n,u.transform,r,u):u.transform(r)}function t0(e,n,r,i){const o=e+Gn,u=Nt(),g=Yi(u,o);return hu(u,o)?Yv(u,Xt(),n,g.transform,r,i,g):g.transform(r,i)}function n0(e,n,r,i,o){const u=e+Gn,g=Nt(),b=Yi(g,u);return hu(g,u)?Jv(g,Xt(),n,b.transform,r,i,o,b):b.transform(r,i,o)}function hu(e,n){return e[Kt].data[n].pure}function gC(){return this._results[Symbol.iterator]()}class dh{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new jo)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const r=dh.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=gC)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,r){return this._results.reduce(n,r)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,r){const i=this;i.dirty=!1;const o=function Ks(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function Au(e,n,r){if(e.length!==n.length)return!1;for(let i=0;i0&&(r[o-1][$r]=n),i{class e{static#e=this.__NG_ELEMENT_ID__=bC}return e})();const vC=gu,yC=class extends vC{constructor(n,r,i){super(),this._declarationLView=n,this._declarationTContainer=r,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,i){const o=function mC(e,n,r,i){const o=n.tView,b=md(e,o,r,4096&e[Mn]?4096:16,null,n,null,null,null,i?.injector??null,i?.hydrationInfo??null);b[Wr]=e[n.index];const z=e[di];return null!==z&&(b[di]=z.createEmbeddedView(o)),xp(o,b,r),b}(this._declarationLView,this._declarationTContainer,n,{injector:r,hydrationInfo:i});return new tu(o)}};function bC(){return Bd(v(),Nt())}function Bd(e,n){return 4&e.type?new yC(n,e,Kl(e,n)):null}let jd=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=SC}return e})();function SC(){return u0(v(),Nt())}const MC=jd,l0=class extends MC{constructor(n,r,i){super(),this._lContainer=n,this._hostTNode=r,this._hostLView=i}get element(){return Kl(this._hostTNode,this._hostLView)}get injector(){return new _s(this._hostTNode,this._hostLView)}get parentInjector(){const n=Dc(this._hostTNode,this._hostLView);if(yc(n)){const r=ya(n,this._hostLView),i=Ha(n);return new _s(r[Kt].data[i+8],r)}return new _s(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const r=c0(this._lContainer);return null!==r&&r[n]||null}get length(){return this._lContainer.length-pn}createEmbeddedView(n,r,i){let o,u;"number"==typeof i?o=i:null!=i&&(o=i.index,u=i.injector);const b=n.createEmbeddedViewImpl(r||{},u,null);return this.insertImpl(b,o,false),b}createComponent(n,r,i,o,u){const g=n&&!function zs(e){return"function"==typeof e}(n);let b;if(g)b=r;else{const jt=r||{};b=jt.index,i=jt.injector,o=jt.projectableNodes,u=jt.environmentInjector||jt.ngModuleRef}const A=g?n:new nu(jn(n)),z=i||this.parentInjector;if(!u&&null==A.ngModule){const gn=(g?z:this.parentInjector).get(Uo,null);gn&&(u=gn)}jn(A.componentType??{});const nt=A.create(z,o,null,u);return this.insertImpl(nt.hostView,b,false),nt}insert(n,r){return this.insertImpl(n,r,!1)}insertImpl(n,r,i){const o=n._lView;if(function $s(e){return qt(e[hr])}(o)){const A=this.indexOf(n);if(-1!==A)this.detach(A);else{const z=o[hr],ue=new l0(z,z[Nr],z[hr]);ue.detach(ue.indexOf(n))}}const g=this._adjustIndex(r),b=this._lContainer;return _C(b,o,g,!i),n.attachToViewContainerRef(),lf(fh(b),g,n),n}move(n,r){return this.insert(n,r)}indexOf(n){const r=c0(this._lContainer);return null!==r?r.indexOf(n):-1}remove(n){const r=this._adjustIndex(n,-1),i=Fl(this._lContainer,r);i&&(wc(fh(this._lContainer),r),Fc(i[Kt],i))}detach(n){const r=this._adjustIndex(n,-1),i=Fl(this._lContainer,r);return i&&null!=wc(fh(this._lContainer),r)?new tu(i):null}_adjustIndex(n,r=0){return n??this.length+r}};function c0(e){return e[8]}function fh(e){return e[8]||(e[8]=[])}function u0(e,n){let r;const i=n[e.index];return qt(i)?r=i:(r=Dm(i,n,null,e),n[e.index]=r,_d(n,r)),d0(r,n,e,i),new l0(r,e,n)}let d0=function f0(e,n,r,i){if(e[Pr])return;let o;o=8&r.type?er(i):function AC(e,n){const r=e[Bt],i=r.createComment(""),o=Di(n,e);return wa(r,Uc(r,o),i,function bg(e,n){return e.nextSibling(n)}(r,o),!1),i}(n,r),e[Pr]=o};class ph{constructor(n){this.queryList=n,this.matches=null}clone(){return new ph(this.queryList)}setDirty(){this.queryList.setDirty()}}class hh{constructor(n=[]){this.queries=n}createEmbeddedView(n){const r=n.queries;if(null!==r){const i=null!==n.contentQueries?n.contentQueries[0]:r.length,o=[];for(let u=0;u0)i.push(g[b/2]);else{const z=u[b+1],ue=n[-A];for(let Ce=pn;Ce{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i}),this.appInits=on(U0,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const r=[];for(const o of this.appInits){const u=o();if(Vp(u))r.push(u);else if(a_(u)){const g=new Promise((b,A)=>{u.subscribe({complete:b,error:A})});r.push(g)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{i()}).catch(o=>{this.reject(o)}),0===r.length&&i(),this.initialized=!0}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),j0=(()=>{class e{log(r){console.log(r)}warn(r){console.warn(r)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const Vd=new Gr("LocaleId",{providedIn:"root",factory:()=>on(Vd,Et.Optional|Et.SkipSelf)||function rT(){return typeof $localize<"u"&&$localize.locale||dc}()}),iT=new Gr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let H0=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new h.X(!1)}add(){this.hasPendingTasks.next(!0);const r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class oT{constructor(n,r){this.ngModuleFactory=n,this.componentFactories=r}}let aT=(()=>{class e{compileModuleSync(r){return new ch(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){const i=this.compileModuleSync(r),u=oa(ci(r).declarations).reduce((g,b)=>{const A=jn(b);return A&&g.push(new nu(A)),g},[]);return new oT(i,u)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const G0=new Gr(""),Z0=new Gr("");let Sh,MT=(()=>{class e{constructor(r,i,o){this._ngZone=r,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Sh||(function AT(e){Sh=e}(o),o.addToWindow(i)),this._watchAngularEvents(),r.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{qi.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,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 r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb(this._didWork)}this._didWork=!1});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(r)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,i,o){let u=-1;i&&i>0&&(u=setTimeout(()=>{this._callbacks=this._callbacks.filter(g=>g.timeoutId!==u),r(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:r,timeoutId:u,updateCb:o})}whenStable(r,i,o){if(o&&!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(r,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,i,o){return[]}static#e=this.\u0275fac=function(i){return new(i||e)(Vt(qi),Vt(z0),Vt(Z0))};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac})}return e})(),z0=(()=>{class e{constructor(){this._applications=new Map}registerApplication(r,i){this._applications.set(r,i)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,i=!0){return Sh?.findTestabilityInTree(this,r,i)??null}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),Ia=null;const K0=new Gr("AllowMultipleToken"),Mh=new Gr("PlatformDestroyListeners"),Ah=new Gr("appBootstrapListener");class IT{constructor(n,r){this.name=n,this.token=r}}function Q0(e,n,r=[]){const i=`Platform: ${n}`,o=new Gr(i);return(u=[])=>{let g=xh();if(!g||g.injector.get(K0,!1)){const b=[...r,...u,{provide:o,useValue:!0}];e?e(b):function PT(e){if(Ia&&!Ia.get(K0,!1))throw new ce(400,!1);(function Y0(){!function ha(e){Ko=e}(()=>{throw new ce(600,!1)})})(),Ia=e;const n=e.get(q0);(function J0(e){e.get(Ng,null)?.forEach(r=>r())})(e)}(function X0(e=[],n){return bo.create({name:n,providers:[{provide:Jf,useValue:"platform"},{provide:Mh,useValue:new Set([()=>Ia=null])},...e]})}(b,i))}return function NT(e){const n=xh();if(!n)throw new ce(401,!1);return n}()}}function xh(){return Ia?.get(q0)??null}let q0=(()=>{class e{constructor(r){this._injector=r,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(r,i){const o=function LT(e="zone.js",n){return"noop"===e?new wb:"zone.js"===e?new qi(n):e}(i?.ngZone,function ey(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{const u=function XD(e,n,r){return new lh(e,n,r)}(r.moduleType,this.injector,function sy(e){return[{provide:qi,useFactory:e},{provide:zc,multi:!0,useFactory:()=>{const n=on(kT,{optional:!0});return()=>n.initialize()}},{provide:iy,useFactory:FT},{provide:Qg,useFactory:Xg}]}(()=>o)),g=u.injector.get(xa,null);return o.runOutsideAngular(()=>{const b=o.onError.subscribe({next:A=>{g.handleError(A)}});u.onDestroy(()=>{Wd(this._modules,u),b.unsubscribe()})}),function ty(e,n,r){try{const i=r();return Vp(i)?i.catch(o=>{throw n.runOutsideAngular(()=>e.handleError(o)),o}):i}catch(i){throw n.runOutsideAngular(()=>e.handleError(i)),i}}(g,o,()=>{const b=u.injector.get(Ch);return b.runInitializers(),b.donePromise.then(()=>(sv(u.injector.get(Vd,dc)||dc),this._moduleDoBootstrap(u),u))})})}bootstrapModule(r,i=[]){const o=ny({},i);return function xT(e,n,r){const i=new ch(r);return Promise.resolve(i)}(0,0,r).then(u=>this.bootstrapModuleFactory(u,o))}_moduleDoBootstrap(r){const i=r.injector.get(hc);if(r._bootstrapComponents.length>0)r._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!r.instance.ngDoBootstrap)throw new ce(-403,!1);r.instance.ngDoBootstrap(i)}this._modules.push(r)}onDestroy(r){this._destroyListeners.push(r)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ce(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const r=this._injector.get(Mh,null);r&&(r.forEach(i=>i()),r.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(i){return new(i||e)(Vt(bo))};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function ny(e,n){return Array.isArray(n)?n.reduce(ny,e):{...e,...n}}let hc=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=on(iy),this.zoneIsStable=on(Qg),this.componentTypes=[],this.components=[],this.isStable=on(H0).hasPendingTasks.pipe((0,F.w)(r=>r?(0,O.of)(!1):this.zoneIsStable),(0,P.x)(),(0,R.B)()),this._injector=on(Uo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,i){const o=r instanceof Bg;if(!this._injector.get(Ch).done)throw!o&&vi(r),new ce(405,!1);let g;g=o?r:this._injector.get(Jc).resolveComponentFactory(r),this.componentTypes.push(g.componentType);const b=function OT(e){return e.isBoundToModule}(g)?void 0:this._injector.get(fl),z=g.create(bo.NULL,[],i||g.selector,b),ue=z.location.nativeElement,Ce=z.injector.get(G0,null);return Ce?.registerApplication(ue),z.onDestroy(()=>{this.detachView(z.hostView),Wd(this.components,z),Ce?.unregisterApplication(ue)}),this._loadComponent(z),z}tick(){if(this._runningTick)throw new ce(101,!1);try{this._runningTick=!0;for(let r of this._views)r.detectChanges()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1}}attachView(r){const i=r;this._views.push(i),i.attachToAppRef(this)}detachView(r){const i=r;Wd(this._views,i),i.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);const i=this._injector.get(Ah,[]);i.push(...this._bootstrapListeners),i.forEach(o=>o(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Wd(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new ce(406,!1);const r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Wd(e,n){const r=e.indexOf(n);r>-1&&e.splice(r,1)}const iy=new Gr("",{providedIn:"root",factory:()=>on(xa).handleError.bind(void 0)});function FT(){const e=on(qi),n=on(xa);return r=>e.runOutsideAngular(()=>n.handleError(r))}let kT=(()=>{class e{constructor(){this.zone=on(qi),this.applicationRef=on(hc)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function UT(){}let jT=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=HT}return e})();function HT(e){return function VT(e,n,r){if(ji(e)&&!r){const i=Vi(e.index,n);return new tu(i,i)}return 47&e.type?new tu(n[sr],n):null}(v(),Nt(),16==(16&e))}class cy{constructor(){}supports(n){return Ed(n)}create(n){return new KT(n)}}const zT=(e,n)=>n;class KT{constructor(n){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=n||zT}forEachItem(n){let r;for(r=this._itHead;null!==r;r=r._next)n(r)}forEachOperation(n){let r=this._itHead,i=this._removalsHead,o=0,u=null;for(;r||i;){const g=!i||r&&r.currentIndex{g=this._trackByFn(o,b),null!==r&&Object.is(r.trackById,g)?(i&&(r=this._verifyReinsertion(r,b,g,o)),Object.is(r.item,b)||this._addIdentityChange(r,b)):(r=this._mismatch(r,b,g,o),i=!0),r=r._next,o++}),this.length=o;return this._truncate(r),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,r,i,o){let u;return null===n?u=this._itTail:(u=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,r)||this._addIdentityChange(n,r),this._reinsertAfter(n,u,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(n.item,r)||this._addIdentityChange(n,r),this._moveAfter(n,u,o)):n=this._addAfter(new YT(r,i),u,o),n}_verifyReinsertion(n,r,i,o){let u=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==u?n=this._reinsertAfter(u,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const r=n._next;this._addToRemovals(this._unlink(n)),n=r}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(n,r,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,u=n._nextRemoved;return null===o?this._removalsHead=u:o._nextRemoved=u,null===u?this._removalsTail=o:u._prevRemoved=o,this._insertAfter(n,r,i),this._addToMoves(n,i),n}_moveAfter(n,r,i){return this._unlink(n),this._insertAfter(n,r,i),this._addToMoves(n,i),n}_addAfter(n,r,i){return this._insertAfter(n,r,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,r,i){const o=null===r?this._itHead:r._next;return n._next=o,n._prev=r,null===o?this._itTail=n:o._prev=n,null===r?this._itHead=n:r._next=n,null===this._linkedRecords&&(this._linkedRecords=new uy),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const r=n._prev,i=n._next;return null===r?this._itHead=i:r._next=i,null===i?this._itTail=r:i._prev=r,n}_addToMoves(n,r){return n.previousIndex===r||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new uy),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,r){return n.item=r,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class YT{constructor(n,r){this.item=n,this.trackById=r,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 JT{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,r){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===r||r<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const r=n._prevDup,i=n._nextDup;return null===r?this._head=i:r._nextDup=i,null===i?this._tail=r:i._prevDup=r,null===this._head}}class uy{constructor(){this.map=new Map}put(n){const r=n.trackById;let i=this.map.get(r);i||(i=new JT,this.map.set(r,i)),i.add(n)}get(n,r){const o=this.map.get(n);return o?o.get(n,r):null}remove(n){const r=n.trackById;return this.map.get(r).remove(n)&&this.map.delete(r),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function dy(e,n,r){const i=e.previousIndex;if(null===i)return i;let o=0;return r&&i{if(r&&r.key===o)this._maybeAddToChanges(r,i),this._appendAfter=r,r=r._next;else{const u=this._getOrCreateRecordForKey(o,i);r=this._insertBeforeOrAppend(r,u)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let i=r;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,r){if(n){const i=n._prev;return r._next=n,r._prev=i,n._prev=r,i&&(i._next=r),n===this._mapHead&&(this._mapHead=r),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(n,r){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,r);const u=o._prev,g=o._next;return u&&(u._next=g),g&&(g._prev=u),o._next=null,o._prev=null,o}const i=new XT(n);return this._records.set(n,i),i.currentValue=r,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,r){Object.is(r,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=r,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,r){n instanceof Map?n.forEach(r):Object.keys(n).forEach(i=>r(n[i],i))}}class XT{constructor(n){this.key=n,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 py(){return new Nh([new cy])}let Nh=(()=>{class e{static#e=this.\u0275prov=Je({token:e,providedIn:"root",factory:py});constructor(r){this.factories=r}static create(r,i){if(null!=i){const o=i.factories.slice();r=r.concat(o)}return new e(r)}static extend(r){return{provide:e,useFactory:i=>e.create(r,i||py()),deps:[[e,new Ja,new Lo]]}}find(r){const i=this.factories.find(o=>o.supports(r));if(null!=i)return i;throw new ce(901,!1)}}return e})();function hy(){return new Lh([new fy])}let Lh=(()=>{class e{static#e=this.\u0275prov=Je({token:e,providedIn:"root",factory:hy});constructor(r){this.factories=r}static create(r,i){if(i){const o=i.factories.slice();r=r.concat(o)}return new e(r)}static extend(r){return{provide:e,useFactory:i=>e.create(r,i||hy()),deps:[[e,new Ja,new Lo]]}}find(r){const i=this.factories.find(o=>o.supports(r));if(i)return i;throw new ce(901,!1)}}return e})();const tw=Q0(null,"core",[]);let nw=(()=>{class e{constructor(r){}static#e=this.\u0275fac=function(i){return new(i||e)(Vt(hc))};static#t=this.\u0275mod=Wi({type:e});static#n=this.\u0275inj=et({})}return e})();function pw(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function gw(e,n){const r=jn(e),i=n.elementInjector||ad();return new nu(r).create(i,n.projectableNodes,n.hostElement,n.environmentInjector)}function mw(e){const n=jn(e);if(!n)return null;const r=new nu(n);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}},6223:(Pe,V,a)=>{"use strict";a.d(V,{Cf:()=>k,EJ:()=>Nr,F:()=>K,Fd:()=>di,Fj:()=>M,JJ:()=>Rn,JL:()=>We,JU:()=>F,Kr:()=>Si,On:()=>Yr,Q7:()=>Ii,QS:()=>Ds,UX:()=>qs,Wl:()=>B,YN:()=>ze,_:()=>Gi,_Y:()=>es,kI:()=>ye,oH:()=>vi,p4:()=>Oe,qQ:()=>bs,sg:()=>ts,u:()=>Mn,u5:()=>Co,wV:()=>Ti});var t=a(5879),d=a(6814),w=a(7715),L=a(9315),h=a(7398);let O=(()=>{class Y{constructor(N,ge){this._renderer=N,this._elementRef=ge,this.onChange=Re=>{},this.onTouched=()=>{}}setProperty(N,ge){this._renderer.setProperty(this._elementRef.nativeElement,N,ge)}registerOnTouched(N){this.onTouched=N}registerOnChange(N){this.onChange=N}setDisabledState(N){this.setProperty("disabled",N)}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(t.Qsj),t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:Y})}return Y})(),R=(()=>{class Y extends O{static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,features:[t.qOj]})}return Y})();const F=new t.OlP("NgValueAccessor"),P={provide:F,useExisting:(0,t.Gpc)(()=>B),multi:!0};let B=(()=>{class Y extends R{writeValue(N){this.setProperty("checked",N)}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("change",function(zn){return Re.onChange(zn.target.checked)})("blur",function(){return Re.onTouched()})},features:[t._Bn([P]),t.qOj]})}return Y})();const $={provide:F,useExisting:(0,t.Gpc)(()=>M),multi:!0},j=new t.OlP("CompositionEventMode");let M=(()=>{class Y extends O{constructor(N,ge,Re){super(N,ge),this._compositionMode=Re,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function f(){const Y=(0,d.q)()?(0,d.q)().getUserAgent():"";return/android (\d+)/.test(Y.toLowerCase())}())}writeValue(N){this.setProperty("value",N??"")}_handleInput(N){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(N)}_compositionStart(){this._composing=!0}_compositionEnd(N){this._composing=!1,this._compositionMode&&this.onChange(N)}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(j,8))};static#t=this.\u0275dir=t.lG2({type:Y,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(ge,Re){1&ge&&t.NdJ("input",function(zn){return Re._handleInput(zn.target.value)})("blur",function(){return Re.onTouched()})("compositionstart",function(){return Re._compositionStart()})("compositionend",function(zn){return Re._compositionEnd(zn.target.value)})},features:[t._Bn([$]),t.qOj]})}return Y})();function q(Y){return null==Y||("string"==typeof Y||Array.isArray(Y))&&0===Y.length}function ie(Y){return null!=Y&&"number"==typeof Y.length}const k=new t.OlP("NgValidators"),Te=new t.OlP("NgAsyncValidators"),Se=/^(?=.{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 ye{static min(re){return ce(re)}static max(re){return _e(re)}static required(re){return ve(re)}static requiredTrue(re){return function xe(Y){return!0===Y.value?null:{required:!0}}(re)}static email(re){return function be(Y){return q(Y.value)||Se.test(Y.value)?null:{email:!0}}(re)}static minLength(re){return function ke(Y){return re=>q(re.value)||!ie(re.value)?null:re.value.lengthie(re.value)&&re.value.length>Y?{maxlength:{requiredLength:Y,actualLength:re.value.length}}:null}(re)}static pattern(re){return function rt(Y){if(!Y)return Mt;let re,N;return"string"==typeof Y?(N="","^"!==Y.charAt(0)&&(N+="^"),N+=Y,"$"!==Y.charAt(Y.length-1)&&(N+="$"),re=new RegExp(N)):(N=Y.toString(),re=Y),ge=>{if(q(ge.value))return null;const Re=ge.value;return re.test(Re)?null:{pattern:{requiredPattern:N,actualValue:Re}}}}(re)}static nullValidator(re){return null}static compose(re){return Q(re)}static composeAsync(re){return se(re)}}function ce(Y){return re=>{if(q(re.value)||q(Y))return null;const N=parseFloat(re.value);return!isNaN(N)&&N{if(q(re.value)||q(Y))return null;const N=parseFloat(re.value);return!isNaN(N)&&N>Y?{max:{max:Y,actual:re.value}}:null}}function ve(Y){return q(Y.value)?{required:!0}:null}function Mt(Y){return null}function qe(Y){return null!=Y}function _t(Y){return(0,t.QGY)(Y)?(0,w.D)(Y):Y}function $e(Y){let re={};return Y.forEach(N=>{re=null!=N?{...re,...N}:re}),0===Object.keys(re).length?null:re}function Ee(Y,re){return re.map(N=>N(Y))}function J(Y){return Y.map(re=>function Ze(Y){return!Y.validate}(re)?re:N=>re.validate(N))}function Q(Y){if(!Y)return null;const re=Y.filter(qe);return 0==re.length?null:function(N){return $e(Ee(N,re))}}function oe(Y){return null!=Y?Q(J(Y)):null}function se(Y){if(!Y)return null;const re=Y.filter(qe);return 0==re.length?null:function(N){const ge=Ee(N,re).map(_t);return(0,L.D)(ge).pipe((0,h.U)($e))}}function ae(Y){return null!=Y?se(J(Y)):null}function fe(Y,re){return null===Y?[re]:Array.isArray(Y)?[...Y,re]:[Y,re]}function De(Y){return Y._rawValidators}function je(Y){return Y._rawAsyncValidators}function Xe(Y){return Y?Array.isArray(Y)?Y:[Y]:[]}function tt(Y,re){return Array.isArray(Y)?Y.includes(re):Y===re}function wt(Y,re){const N=Xe(re);return Xe(Y).forEach(Re=>{tt(N,Re)||N.push(Re)}),N}function It(Y,re){return Xe(re).filter(N=>!tt(Y,N))}class Je{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(re){this._rawValidators=re||[],this._composedValidatorFn=oe(this._rawValidators)}_setAsyncValidators(re){this._rawAsyncValidators=re||[],this._composedAsyncValidatorFn=ae(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(re){this._onDestroyCallbacks.push(re)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(re=>re()),this._onDestroyCallbacks=[]}reset(re=void 0){this.control&&this.control.reset(re)}hasError(re,N){return!!this.control&&this.control.hasError(re,N)}getError(re,N){return this.control?this.control.getError(re,N):null}}class Tt extends Je{get formDirective(){return null}get path(){return null}}class et extends Je{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Pt{constructor(re){this._cd=re}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Rn=(()=>{class Y extends Pt{constructor(N){super(N)}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(et,2))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(ge,Re){2&ge&&t.ekj("ng-untouched",Re.isUntouched)("ng-touched",Re.isTouched)("ng-pristine",Re.isPristine)("ng-dirty",Re.isDirty)("ng-valid",Re.isValid)("ng-invalid",Re.isInvalid)("ng-pending",Re.isPending)},features:[t.qOj]})}return Y})(),We=(()=>{class Y extends Pt{constructor(N){super(N)}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(Tt,10))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(ge,Re){2&ge&&t.ekj("ng-untouched",Re.isUntouched)("ng-touched",Re.isTouched)("ng-pristine",Re.isPristine)("ng-dirty",Re.isDirty)("ng-valid",Re.isValid)("ng-invalid",Re.isInvalid)("ng-pending",Re.isPending)("ng-submitted",Re.isSubmitted)},features:[t.qOj]})}return Y})();const Qt="VALID",Cn="INVALID",An="PENDING",In="DISABLED";function nr(Y){return(Ir(Y)?Y.validators:Y)||null}function wr(Y,re){return(Ir(re)?re.asyncValidators:Y)||null}function Ir(Y){return null!=Y&&!Array.isArray(Y)&&"object"==typeof Y}function Br(Y,re,N){const ge=Y.controls;if(!(re?Object.keys(ge):ge).length)throw new t.vHH(1e3,"");if(!ge[N])throw new t.vHH(1001,"")}function oi(Y,re,N){Y._forEachChild((ge,Re)=>{if(void 0===N[Re])throw new t.vHH(1002,"")})}class Zn{constructor(re,N){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(re),this._assignAsyncValidators(N)}get validator(){return this._composedValidatorFn}set validator(re){this._rawValidators=this._composedValidatorFn=re}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(re){this._rawAsyncValidators=this._composedAsyncValidatorFn=re}get parent(){return this._parent}get valid(){return this.status===Qt}get invalid(){return this.status===Cn}get pending(){return this.status==An}get disabled(){return this.status===In}get enabled(){return this.status!==In}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(re){this._assignValidators(re)}setAsyncValidators(re){this._assignAsyncValidators(re)}addValidators(re){this.setValidators(wt(re,this._rawValidators))}addAsyncValidators(re){this.setAsyncValidators(wt(re,this._rawAsyncValidators))}removeValidators(re){this.setValidators(It(re,this._rawValidators))}removeAsyncValidators(re){this.setAsyncValidators(It(re,this._rawAsyncValidators))}hasValidator(re){return tt(this._rawValidators,re)}hasAsyncValidator(re){return tt(this._rawAsyncValidators,re)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(re={}){this.touched=!0,this._parent&&!re.onlySelf&&this._parent.markAsTouched(re)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(re=>re.markAllAsTouched())}markAsUntouched(re={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(N=>{N.markAsUntouched({onlySelf:!0})}),this._parent&&!re.onlySelf&&this._parent._updateTouched(re)}markAsDirty(re={}){this.pristine=!1,this._parent&&!re.onlySelf&&this._parent.markAsDirty(re)}markAsPristine(re={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(N=>{N.markAsPristine({onlySelf:!0})}),this._parent&&!re.onlySelf&&this._parent._updatePristine(re)}markAsPending(re={}){this.status=An,!1!==re.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!re.onlySelf&&this._parent.markAsPending(re)}disable(re={}){const N=this._parentMarkedDirty(re.onlySelf);this.status=In,this.errors=null,this._forEachChild(ge=>{ge.disable({...re,onlySelf:!0})}),this._updateValue(),!1!==re.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...re,skipPristineCheck:N}),this._onDisabledChange.forEach(ge=>ge(!0))}enable(re={}){const N=this._parentMarkedDirty(re.onlySelf);this.status=Qt,this._forEachChild(ge=>{ge.enable({...re,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:re.emitEvent}),this._updateAncestors({...re,skipPristineCheck:N}),this._onDisabledChange.forEach(ge=>ge(!1))}_updateAncestors(re){this._parent&&!re.onlySelf&&(this._parent.updateValueAndValidity(re),re.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(re){this._parent=re}getRawValue(){return this.value}updateValueAndValidity(re={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Qt||this.status===An)&&this._runAsyncValidator(re.emitEvent)),!1!==re.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!re.onlySelf&&this._parent.updateValueAndValidity(re)}_updateTreeValidity(re={emitEvent:!0}){this._forEachChild(N=>N._updateTreeValidity(re)),this.updateValueAndValidity({onlySelf:!0,emitEvent:re.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?In:Qt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(re){if(this.asyncValidator){this.status=An,this._hasOwnPendingAsyncValidator=!0;const N=_t(this.asyncValidator(this));this._asyncValidationSubscription=N.subscribe(ge=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(ge,{emitEvent:re})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(re,N={}){this.errors=re,this._updateControlsErrors(!1!==N.emitEvent)}get(re){let N=re;return null==N||(Array.isArray(N)||(N=N.split(".")),0===N.length)?null:N.reduce((ge,Re)=>ge&&ge._find(Re),this)}getError(re,N){const ge=N?this.get(N):this;return ge&&ge.errors?ge.errors[re]:null}hasError(re,N){return!!this.getError(re,N)}get root(){let re=this;for(;re._parent;)re=re._parent;return re}_updateControlsErrors(re){this.status=this._calculateStatus(),re&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(re)}_initObservables(){this.valueChanges=new t.vpe,this.statusChanges=new t.vpe}_calculateStatus(){return this._allControlsDisabled()?In:this.errors?Cn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(An)?An:this._anyControlsHaveStatus(Cn)?Cn:Qt}_anyControlsHaveStatus(re){return this._anyControls(N=>N.status===re)}_anyControlsDirty(){return this._anyControls(re=>re.dirty)}_anyControlsTouched(){return this._anyControls(re=>re.touched)}_updatePristine(re={}){this.pristine=!this._anyControlsDirty(),this._parent&&!re.onlySelf&&this._parent._updatePristine(re)}_updateTouched(re={}){this.touched=this._anyControlsTouched(),this._parent&&!re.onlySelf&&this._parent._updateTouched(re)}_registerOnCollectionChange(re){this._onCollectionChange=re}_setUpdateStrategy(re){Ir(re)&&null!=re.updateOn&&(this._updateOn=re.updateOn)}_parentMarkedDirty(re){return!re&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(re){return null}_assignValidators(re){this._rawValidators=Array.isArray(re)?re.slice():re,this._composedValidatorFn=function Dr(Y){return Array.isArray(Y)?oe(Y):Y||null}(this._rawValidators)}_assignAsyncValidators(re){this._rawAsyncValidators=Array.isArray(re)?re.slice():re,this._composedAsyncValidatorFn=function Or(Y){return Array.isArray(Y)?ae(Y):Y||null}(this._rawAsyncValidators)}}class dt extends Zn{constructor(re,N,ge){super(nr(N),wr(ge,N)),this.controls=re,this._initObservables(),this._setUpdateStrategy(N),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(re,N){return this.controls[re]?this.controls[re]:(this.controls[re]=N,N.setParent(this),N._registerOnCollectionChange(this._onCollectionChange),N)}addControl(re,N,ge={}){this.registerControl(re,N),this.updateValueAndValidity({emitEvent:ge.emitEvent}),this._onCollectionChange()}removeControl(re,N={}){this.controls[re]&&this.controls[re]._registerOnCollectionChange(()=>{}),delete this.controls[re],this.updateValueAndValidity({emitEvent:N.emitEvent}),this._onCollectionChange()}setControl(re,N,ge={}){this.controls[re]&&this.controls[re]._registerOnCollectionChange(()=>{}),delete this.controls[re],N&&this.registerControl(re,N),this.updateValueAndValidity({emitEvent:ge.emitEvent}),this._onCollectionChange()}contains(re){return this.controls.hasOwnProperty(re)&&this.controls[re].enabled}setValue(re,N={}){oi(this,0,re),Object.keys(re).forEach(ge=>{Br(this,!0,ge),this.controls[ge].setValue(re[ge],{onlySelf:!0,emitEvent:N.emitEvent})}),this.updateValueAndValidity(N)}patchValue(re,N={}){null!=re&&(Object.keys(re).forEach(ge=>{const Re=this.controls[ge];Re&&Re.patchValue(re[ge],{onlySelf:!0,emitEvent:N.emitEvent})}),this.updateValueAndValidity(N))}reset(re={},N={}){this._forEachChild((ge,Re)=>{ge.reset(re?re[Re]:null,{onlySelf:!0,emitEvent:N.emitEvent})}),this._updatePristine(N),this._updateTouched(N),this.updateValueAndValidity(N)}getRawValue(){return this._reduceChildren({},(re,N,ge)=>(re[ge]=N.getRawValue(),re))}_syncPendingControls(){let re=this._reduceChildren(!1,(N,ge)=>!!ge._syncPendingControls()||N);return re&&this.updateValueAndValidity({onlySelf:!0}),re}_forEachChild(re){Object.keys(this.controls).forEach(N=>{const ge=this.controls[N];ge&&re(ge,N)})}_setUpControls(){this._forEachChild(re=>{re.setParent(this),re._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(re){for(const[N,ge]of Object.entries(this.controls))if(this.contains(N)&&re(ge))return!0;return!1}_reduceValue(){return this._reduceChildren({},(N,ge,Re)=>((ge.enabled||this.disabled)&&(N[Re]=ge.value),N))}_reduceChildren(re,N){let ge=re;return this._forEachChild((Re,yn)=>{ge=N(ge,Re,yn)}),ge}_allControlsDisabled(){for(const re of Object.keys(this.controls))if(this.controls[re].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(re){return this.controls.hasOwnProperty(re)?this.controls[re]:null}}class He extends dt{}const Wt=new t.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>Vt}),Vt="always";function Un(Y,re){return[...re.path,Y]}function on(Y,re,N=Vt){Qe(Y,re),re.valueAccessor.writeValue(Y.value),(Y.disabled||"always"===N)&&re.valueAccessor.setDisabledState?.(Y.disabled),function Ue(Y,re){re.valueAccessor.registerOnChange(N=>{Y._pendingValue=N,Y._pendingChange=!0,Y._pendingDirty=!0,"change"===Y.updateOn&&Rt(Y,re)})}(Y,re),function kt(Y,re){const N=(ge,Re)=>{re.valueAccessor.writeValue(ge),Re&&re.viewToModelUpdate(ge)};Y.registerOnChange(N),re._registerOnDestroy(()=>{Y._unregisterOnChange(N)})}(Y,re),function bt(Y,re){re.valueAccessor.registerOnTouched(()=>{Y._pendingTouched=!0,"blur"===Y.updateOn&&Y._pendingChange&&Rt(Y,re),"submit"!==Y.updateOn&&Y.markAsTouched()})}(Y,re),function $n(Y,re){if(re.valueAccessor.setDisabledState){const N=ge=>{re.valueAccessor.setDisabledState(ge)};Y.registerOnDisabledChange(N),re._registerOnDestroy(()=>{Y._unregisterOnDisabledChange(N)})}}(Y,re)}function rr(Y,re,N=!0){const ge=()=>{};re.valueAccessor&&(re.valueAccessor.registerOnChange(ge),re.valueAccessor.registerOnTouched(ge)),Le(Y,re),Y&&(re._invokeOnDestroyCallbacks(),Y._registerOnCollectionChange(()=>{}))}function ln(Y,re){Y.forEach(N=>{N.registerOnValidatorChange&&N.registerOnValidatorChange(re)})}function Qe(Y,re){const N=De(Y);null!==re.validator?Y.setValidators(fe(N,re.validator)):"function"==typeof N&&Y.setValidators([N]);const ge=je(Y);null!==re.asyncValidator?Y.setAsyncValidators(fe(ge,re.asyncValidator)):"function"==typeof ge&&Y.setAsyncValidators([ge]);const Re=()=>Y.updateValueAndValidity();ln(re._rawValidators,Re),ln(re._rawAsyncValidators,Re)}function Le(Y,re){let N=!1;if(null!==Y){if(null!==re.validator){const Re=De(Y);if(Array.isArray(Re)&&Re.length>0){const yn=Re.filter(zn=>zn!==re.validator);yn.length!==Re.length&&(N=!0,Y.setValidators(yn))}}if(null!==re.asyncValidator){const Re=je(Y);if(Array.isArray(Re)&&Re.length>0){const yn=Re.filter(zn=>zn!==re.asyncValidator);yn.length!==Re.length&&(N=!0,Y.setAsyncValidators(yn))}}}const ge=()=>{};return ln(re._rawValidators,ge),ln(re._rawAsyncValidators,ge),N}function Rt(Y,re){Y._pendingDirty&&Y.markAsDirty(),Y.setValue(Y._pendingValue,{emitModelToViewChange:!1}),re.viewToModelUpdate(Y._pendingValue),Y._pendingChange=!1}function Ft(Y,re){Qe(Y,re)}function Hr(Y,re){if(!Y.hasOwnProperty("model"))return!1;const N=Y.model;return!!N.isFirstChange()||!Object.is(re,N.currentValue)}function Xn(Y,re){Y._syncPendingControls(),re.forEach(N=>{const ge=N.control;"submit"===ge.updateOn&&ge._pendingChange&&(N.viewToModelUpdate(ge._pendingValue),ge._pendingChange=!1)})}function qn(Y,re){if(!re)return null;let N,ge,Re;return Array.isArray(re),re.forEach(yn=>{yn.constructor===M?N=yn:function Zr(Y){return Object.getPrototypeOf(Y.constructor)===R}(yn)?ge=yn:Re=yn}),Re||ge||N||null}const pe={provide:Tt,useExisting:(0,t.Gpc)(()=>K)},Z=(()=>Promise.resolve())();let K=(()=>{class Y extends Tt{constructor(N,ge,Re){super(),this.callSetDisabledState=Re,this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.vpe,this.form=new dt({},oe(N),ae(ge))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(N){Z.then(()=>{const ge=this._findContainer(N.path);N.control=ge.registerControl(N.name,N.control),on(N.control,N,this.callSetDisabledState),N.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(N)})}getControl(N){return this.form.get(N.path)}removeControl(N){Z.then(()=>{const ge=this._findContainer(N.path);ge&&ge.removeControl(N.name),this._directives.delete(N)})}addFormGroup(N){Z.then(()=>{const ge=this._findContainer(N.path),Re=new dt({});Ft(Re,N),ge.registerControl(N.name,Re),Re.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(N){Z.then(()=>{const ge=this._findContainer(N.path);ge&&ge.removeControl(N.name)})}getFormGroup(N){return this.form.get(N.path)}updateModel(N,ge){Z.then(()=>{this.form.get(N.path).setValue(ge)})}setValue(N){this.control.setValue(N)}onSubmit(N){return this.submitted=!0,Xn(this.form,this._directives),this.ngSubmit.emit(N),"dialog"===N?.target?.method}onReset(){this.resetForm()}resetForm(N=void 0){this.form.reset(N),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(N){return N.pop(),N.length?this.form.get(N):this.form}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(k,10),t.Y36(Te,10),t.Y36(Wt,8))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("submit",function(zn){return Re.onSubmit(zn)})("reset",function(){return Re.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([pe]),t.qOj]})}return Y})();function D(Y,re){const N=Y.indexOf(re);N>-1&&Y.splice(N,1)}function X(Y){return"object"==typeof Y&&null!==Y&&2===Object.keys(Y).length&&"value"in Y&&"disabled"in Y}const de=class extends Zn{constructor(re=null,N,ge){super(nr(N),wr(ge,N)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(re),this._setUpdateStrategy(N),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ir(N)&&(N.nonNullable||N.initialValueIsDefault)&&(this.defaultValue=X(re)?re.value:re)}setValue(re,N={}){this.value=this._pendingValue=re,this._onChange.length&&!1!==N.emitModelToViewChange&&this._onChange.forEach(ge=>ge(this.value,!1!==N.emitViewToModelChange)),this.updateValueAndValidity(N)}patchValue(re,N={}){this.setValue(re,N)}reset(re=this.defaultValue,N={}){this._applyFormState(re),this.markAsPristine(N),this.markAsUntouched(N),this.setValue(this.value,N),this._pendingChange=!1}_updateValue(){}_anyControls(re){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(re){this._onChange.push(re)}_unregisterOnChange(re){D(this._onChange,re)}registerOnDisabledChange(re){this._onDisabledChange.push(re)}_unregisterOnDisabledChange(re){D(this._onDisabledChange,re)}_forEachChild(re){}_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(re){X(re)?(this.value=this._pendingValue=re.value,re.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=re}},Oe=de,_r={provide:et,useExisting:(0,t.Gpc)(()=>Yr)},zr=(()=>Promise.resolve())();let Yr=(()=>{class Y extends et{constructor(N,ge,Re,yn,zn,Ni){super(),this._changeDetectorRef=zn,this.callSetDisabledState=Ni,this.control=new de,this._registered=!1,this.name="",this.update=new t.vpe,this._parent=N,this._setValidators(ge),this._setAsyncValidators(Re),this.valueAccessor=qn(0,yn)}ngOnChanges(N){if(this._checkForErrors(),!this._registered||"name"in N){if(this._registered&&(this._checkName(),this.formDirective)){const ge=N.name.previousValue;this.formDirective.removeControl({name:ge,path:this._getPath(ge)})}this._setUpControl()}"isDisabled"in N&&this._updateDisabled(N),Hr(N,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(N){this.viewModel=N,this.update.emit(N)}_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(){on(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(N){zr.then(()=>{this.control.setValue(N,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(N){const ge=N.isDisabled.currentValue,Re=0!==ge&&(0,t.VuI)(ge);zr.then(()=>{Re&&!this.control.disabled?this.control.disable():!Re&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(N){return this._parent?Un(N,this._parent):[N]}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(Tt,9),t.Y36(k,10),t.Y36(Te,10),t.Y36(F,10),t.Y36(t.sBO,8),t.Y36(Wt,8))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t._Bn([_r]),t.qOj,t.TTD]})}return Y})(),es=(()=>{class Y{static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return Y})();const _i={provide:F,useExisting:(0,t.Gpc)(()=>Ti),multi:!0};let Ti=(()=>{class Y extends R{writeValue(N){this.setProperty("value",N??"")}registerOnChange(N){this.onChange=ge=>{N(""==ge?null:parseFloat(ge))}}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("input",function(zn){return Re.onChange(zn.target.value)})("blur",function(){return Re.onTouched()})},features:[t._Bn([_i]),t.qOj]})}return Y})();const hs={provide:F,useExisting:(0,t.Gpc)(()=>Gi),multi:!0};let Is=(()=>{class Y{static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275mod=t.oAB({type:Y});static#n=this.\u0275inj=t.cJS({})}return Y})(),Bi=(()=>{class Y{constructor(){this._accessors=[]}add(N,ge){this._accessors.push([N,ge])}remove(N){for(let ge=this._accessors.length-1;ge>=0;--ge)if(this._accessors[ge][1]===N)return void this._accessors.splice(ge,1)}select(N){this._accessors.forEach(ge=>{this._isSameGroup(ge,N)&&ge[1]!==N&&ge[1].fireUncheck(N.value)})}_isSameGroup(N,ge){return!!N[0].control&&N[0]._parent===ge._control._parent&&N[1].name===ge.name}static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275prov=t.Yz7({token:Y,factory:Y.\u0275fac,providedIn:Is})}return Y})(),Gi=(()=>{class Y extends R{constructor(N,ge,Re,yn){super(N,ge),this._registry=Re,this._injector=yn,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,t.f3M)(Wt,{optional:!0})??Vt}ngOnInit(){this._control=this._injector.get(et),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(N){this._state=N===this.value,this.setProperty("checked",this._state)}registerOnChange(N){this._fn=N,this.onChange=()=>{N(this.value),this._registry.select(this)}}setDisabledState(N){(this.setDisabledStateFired||N||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",N),this.setDisabledStateFired=!0}fireUncheck(N){this.writeValue(N)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(Bi),t.Y36(t.zs3))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("change",function(){return Re.onChange()})("blur",function(){return Re.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[t._Bn([hs]),t.qOj]})}return Y})();const vr=new t.OlP("NgModelWithFormControlWarning"),Sr={provide:et,useExisting:(0,t.Gpc)(()=>vi)};let vi=(()=>{class Y extends et{set isDisabled(N){}static#e=this._ngModelWarningSentOnce=!1;constructor(N,ge,Re,yn,zn){super(),this._ngModelWarningConfig=yn,this.callSetDisabledState=zn,this.update=new t.vpe,this._ngModelWarningSent=!1,this._setValidators(N),this._setAsyncValidators(ge),this.valueAccessor=qn(0,Re)}ngOnChanges(N){if(this._isControlChanged(N)){const ge=N.form.previousValue;ge&&rr(ge,this,!1),on(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Hr(N,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&rr(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(N){this.viewModel=N,this.update.emit(N)}_isControlChanged(N){return N.hasOwnProperty("form")}static#t=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(k,10),t.Y36(Te,10),t.Y36(F,10),t.Y36(vr,8),t.Y36(Wt,8))};static#n=this.\u0275dir=t.lG2({type:Y,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t._Bn([Sr]),t.qOj,t.TTD]})}return Y})();const ci={provide:Tt,useExisting:(0,t.Gpc)(()=>ts)};let ts=(()=>{class Y extends Tt{constructor(N,ge,Re){super(),this.callSetDisabledState=Re,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.vpe,this._setValidators(N),this._setAsyncValidators(ge)}ngOnChanges(N){this._checkFormPresent(),N.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Le(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(N){const ge=this.form.get(N.path);return on(ge,N,this.callSetDisabledState),ge.updateValueAndValidity({emitEvent:!1}),this.directives.push(N),ge}getControl(N){return this.form.get(N.path)}removeControl(N){rr(N.control||null,N,!1),function Ur(Y,re){const N=Y.indexOf(re);N>-1&&Y.splice(N,1)}(this.directives,N)}addFormGroup(N){this._setUpFormContainer(N)}removeFormGroup(N){this._cleanUpFormContainer(N)}getFormGroup(N){return this.form.get(N.path)}addFormArray(N){this._setUpFormContainer(N)}removeFormArray(N){this._cleanUpFormContainer(N)}getFormArray(N){return this.form.get(N.path)}updateModel(N,ge){this.form.get(N.path).setValue(ge)}onSubmit(N){return this.submitted=!0,Xn(this.form,this.directives),this.ngSubmit.emit(N),"dialog"===N?.target?.method}onReset(){this.resetForm()}resetForm(N=void 0){this.form.reset(N),this.submitted=!1}_updateDomValue(){this.directives.forEach(N=>{const ge=N.control,Re=this.form.get(N.path);ge!==Re&&(rr(ge||null,N),(Y=>Y instanceof de)(Re)&&(on(Re,N,this.callSetDisabledState),N.control=Re))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(N){const ge=this.form.get(N.path);Ft(ge,N),ge.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(N){if(this.form){const ge=this.form.get(N.path);ge&&function an(Y,re){return Le(Y,re)}(ge,N)&&ge.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Qe(this.form,this),this._oldForm&&Le(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(k,10),t.Y36(Te,10),t.Y36(Wt,8))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["","formGroup",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("submit",function(zn){return Re.onSubmit(zn)})("reset",function(){return Re.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([ci]),t.qOj,t.TTD]})}return Y})();const Kt={provide:et,useExisting:(0,t.Gpc)(()=>Mn)};let Mn=(()=>{class Y extends et{set isDisabled(N){}static#e=this._ngModelWarningSentOnce=!1;constructor(N,ge,Re,yn,zn){super(),this._ngModelWarningConfig=zn,this._added=!1,this.name=null,this.update=new t.vpe,this._ngModelWarningSent=!1,this._parent=N,this._setValidators(ge),this._setAsyncValidators(Re),this.valueAccessor=qn(0,yn)}ngOnChanges(N){this._added||this._setUpControl(),Hr(N,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(N){this.viewModel=N,this.update.emit(N)}get path(){return Un(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#t=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(Tt,13),t.Y36(k,10),t.Y36(Te,10),t.Y36(F,10),t.Y36(vr,8))};static#n=this.\u0275dir=t.lG2({type:Y,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t._Bn([Kt]),t.qOj,t.TTD]})}return Y})();const hr={provide:F,useExisting:(0,t.Gpc)(()=>Nr),multi:!0};function $r(Y,re){return null==Y?`${re}`:(re&&"object"==typeof re&&(re="Object"),`${Y}: ${re}`.slice(0,50))}let Nr=(()=>{class Y extends R{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(N){this._compareWith=N}writeValue(N){this.value=N;const Re=$r(this._getOptionId(N),N);this.setProperty("value",Re)}registerOnChange(N){this.onChange=ge=>{this.value=this._getOptionValue(ge),N(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(N){for(const ge of this._optionMap.keys())if(this._compareWith(this._optionMap.get(ge),N))return ge;return null}_getOptionValue(N){const ge=function bi(Y){return Y.split(":")[0]}(N);return this._optionMap.has(ge)?this._optionMap.get(ge):N}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("change",function(zn){return Re.onChange(zn.target.value)})("blur",function(){return Re.onTouched()})},inputs:{compareWith:"compareWith"},features:[t._Bn([hr]),t.qOj]})}return Y})(),ze=(()=>{class Y{constructor(N,ge,Re){this._element=N,this._renderer=ge,this._select=Re,this._select&&(this.id=this._select._registerOption())}set ngValue(N){null!=this._select&&(this._select._optionMap.set(this.id,N),this._setElementValue($r(this.id,N)),this._select.writeValue(this._select.value))}set value(N){this._setElementValue(N),this._select&&this._select.writeValue(this._select.value)}_setElementValue(N){this._renderer.setProperty(this._element.nativeElement,"value",N)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(Nr,9))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return Y})();const Ve={provide:F,useExisting:(0,t.Gpc)(()=>gr),multi:!0};function ct(Y,re){return null==Y?`${re}`:("string"==typeof re&&(re=`'${re}'`),re&&"object"==typeof re&&(re="Object"),`${Y}: ${re}`.slice(0,50))}let gr=(()=>{class Y extends R{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(N){this._compareWith=N}writeValue(N){let ge;if(this.value=N,Array.isArray(N)){const Re=N.map(yn=>this._getOptionId(yn));ge=(yn,zn)=>{yn._setSelected(Re.indexOf(zn.toString())>-1)}}else ge=(Re,yn)=>{Re._setSelected(!1)};this._optionMap.forEach(ge)}registerOnChange(N){this.onChange=ge=>{const Re=[],yn=ge.selectedOptions;if(void 0!==yn){const zn=yn;for(let Ni=0;Ni{class Y{constructor(N,ge,Re){this._element=N,this._renderer=ge,this._select=Re,this._select&&(this.id=this._select._registerOption(this))}set ngValue(N){null!=this._select&&(this._value=N,this._setElementValue(ct(this.id,N)),this._select.writeValue(this._select.value))}set value(N){this._select?(this._value=N,this._setElementValue(ct(this.id,N)),this._select.writeValue(this._select.value)):this._setElementValue(N)}_setElementValue(N){this._renderer.setProperty(this._element.nativeElement,"value",N)}_setSelected(N){this._renderer.setProperty(this._element.nativeElement,"selected",N)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(gr,9))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return Y})();function sr(Y){return"number"==typeof Y?Y:parseFloat(Y)}let Wr=(()=>{class Y{constructor(){this._validator=Mt}ngOnChanges(N){if(this.inputName in N){const ge=this.normalizeInput(N[this.inputName].currentValue);this._enabled=this.enabled(ge),this._validator=this._enabled?this.createValidator(ge):Mt,this._onChange&&this._onChange()}}validate(N){return this._validator(N)}registerOnValidatorChange(N){this._onChange=N}enabled(N){return null!=N}static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275dir=t.lG2({type:Y,features:[t.TTD]})}return Y})();const Mi={provide:k,useExisting:(0,t.Gpc)(()=>di),multi:!0};let di=(()=>{class Y extends Wr{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=N=>sr(N),this.createValidator=N=>_e(N)}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(ge,Re){2&ge&&t.uIk("max",Re._enabled?Re.max:null)},inputs:{max:"max"},features:[t._Bn([Mi]),t.qOj]})}return Y})();const ns={provide:k,useExisting:(0,t.Gpc)(()=>bs),multi:!0};let bs=(()=>{class Y extends Wr{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=N=>sr(N),this.createValidator=N=>ce(N)}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(ge,Re){2&ge&&t.uIk("min",Re._enabled?Re.min:null)},inputs:{min:"min"},features:[t._Bn([ns]),t.qOj]})}return Y})();const Zi={provide:k,useExisting:(0,t.Gpc)(()=>Ii),multi:!0};let Ii=(()=>{class Y extends Wr{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=t.VuI,this.createValidator=N=>ve}enabled(N){return N}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(ge,Re){2&ge&&t.uIk("required",Re._enabled?"":null)},inputs:{required:"required"},features:[t._Bn([Zi]),t.qOj]})}return Y})(),qt=(()=>{class Y{static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275mod=t.oAB({type:Y});static#n=this.\u0275inj=t.cJS({imports:[Is]})}return Y})();class Kr extends Zn{constructor(re,N,ge){super(nr(N),wr(ge,N)),this.controls=re,this._initObservables(),this._setUpdateStrategy(N),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(re){return this.controls[this._adjustIndex(re)]}push(re,N={}){this.controls.push(re),this._registerControl(re),this.updateValueAndValidity({emitEvent:N.emitEvent}),this._onCollectionChange()}insert(re,N,ge={}){this.controls.splice(re,0,N),this._registerControl(N),this.updateValueAndValidity({emitEvent:ge.emitEvent})}removeAt(re,N={}){let ge=this._adjustIndex(re);ge<0&&(ge=0),this.controls[ge]&&this.controls[ge]._registerOnCollectionChange(()=>{}),this.controls.splice(ge,1),this.updateValueAndValidity({emitEvent:N.emitEvent})}setControl(re,N,ge={}){let Re=this._adjustIndex(re);Re<0&&(Re=0),this.controls[Re]&&this.controls[Re]._registerOnCollectionChange(()=>{}),this.controls.splice(Re,1),N&&(this.controls.splice(Re,0,N),this._registerControl(N)),this.updateValueAndValidity({emitEvent:ge.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(re,N={}){oi(this,0,re),re.forEach((ge,Re)=>{Br(this,!1,Re),this.at(Re).setValue(ge,{onlySelf:!0,emitEvent:N.emitEvent})}),this.updateValueAndValidity(N)}patchValue(re,N={}){null!=re&&(re.forEach((ge,Re)=>{this.at(Re)&&this.at(Re).patchValue(ge,{onlySelf:!0,emitEvent:N.emitEvent})}),this.updateValueAndValidity(N))}reset(re=[],N={}){this._forEachChild((ge,Re)=>{ge.reset(re[Re],{onlySelf:!0,emitEvent:N.emitEvent})}),this._updatePristine(N),this._updateTouched(N),this.updateValueAndValidity(N)}getRawValue(){return this.controls.map(re=>re.getRawValue())}clear(re={}){this.controls.length<1||(this._forEachChild(N=>N._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:re.emitEvent}))}_adjustIndex(re){return re<0?re+this.length:re}_syncPendingControls(){let re=this.controls.reduce((N,ge)=>!!ge._syncPendingControls()||N,!1);return re&&this.updateValueAndValidity({onlySelf:!0}),re}_forEachChild(re){this.controls.forEach((N,ge)=>{re(N,ge)})}_updateValue(){this.value=this.controls.filter(re=>re.enabled||this.disabled).map(re=>re.value)}_anyControls(re){return this.controls.some(N=>N.enabled&&re(N))}_setUpControls(){this._forEachChild(re=>this._registerControl(re))}_allControlsDisabled(){for(const re of this.controls)if(re.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(re){re.setParent(this),re._registerOnCollectionChange(this._onCollectionChange)}_find(re){return this.at(re)??null}}function fi(Y){return!!Y&&(void 0!==Y.asyncValidators||void 0!==Y.validators||void 0!==Y.updateOn)}let Hs=(()=>{class Y{constructor(){this.useNonNullable=!1}get nonNullable(){const N=new Y;return N.useNonNullable=!0,N}group(N,ge=null){const Re=this._reduceControls(N);let yn={};return fi(ge)?yn=ge:null!==ge&&(yn.validators=ge.validator,yn.asyncValidators=ge.asyncValidator),new dt(Re,yn)}record(N,ge=null){const Re=this._reduceControls(N);return new He(Re,ge)}control(N,ge,Re){let yn={};return this.useNonNullable?(fi(ge)?yn=ge:(yn.validators=ge,yn.asyncValidators=Re),new de(N,{...yn,nonNullable:!0})):new de(N,ge,Re)}array(N,ge,Re){const yn=N.map(zn=>this._createControl(zn));return new Kr(yn,ge,Re)}_reduceControls(N){const ge={};return Object.keys(N).forEach(Re=>{ge[Re]=this._createControl(N[Re])}),ge}_createControl(N){return N instanceof de||N instanceof Zn?N:Array.isArray(N)?this.control(N[0],N.length>1?N[1]:null,N.length>2?N[2]:null):this.control(N)}static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275prov=t.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"})}return Y})(),Ds=(()=>{class Y extends Hs{group(N,ge=null){return super.group(N,ge)}control(N,ge,Re){return super.control(N,ge,Re)}array(N,ge,Re){return super.array(N,ge,Re)}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275prov=t.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"})}return Y})(),Co=(()=>{class Y{static withConfig(N){return{ngModule:Y,providers:[{provide:Wt,useValue:N.callSetDisabledState??Vt}]}}static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275mod=t.oAB({type:Y});static#n=this.\u0275inj=t.cJS({imports:[qt]})}return Y})(),qs=(()=>{class Y{static withConfig(N){return{ngModule:Y,providers:[{provide:vr,useValue:N.warnOnNgModelWithFormControl??"always"},{provide:Wt,useValue:N.callSetDisabledState??Vt}]}}static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275mod=t.oAB({type:Y});static#n=this.\u0275inj=t.cJS({imports:[qt]})}return Y})()},6593:(Pe,V,a)=>{"use strict";a.d(V,{Dx:()=>At,H7:()=>Cn,b2:()=>Zt,q6:()=>Je,se:()=>ke});var t=a(5879),d=a(6814);class w extends d.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class L extends w{static makeCurrent(){(0,d.HT)(new L)}onAndCancel(ot,we,He){return ot.addEventListener(we,He),()=>{ot.removeEventListener(we,He)}}dispatchEvent(ot,we){ot.dispatchEvent(we)}remove(ot){ot.parentNode&&ot.parentNode.removeChild(ot)}createElement(ot,we){return(we=we||this.getDefaultDocument()).createElement(ot)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ot){return ot.nodeType===Node.ELEMENT_NODE}isShadowRoot(ot){return ot instanceof DocumentFragment}getGlobalEventTarget(ot,we){return"window"===we?window:"document"===we?ot:"body"===we?ot.body:null}getBaseHref(ot){const we=function O(){return h=h||document.querySelector("base"),h?h.getAttribute("href"):null}();return null==we?null:function F(dt){R=R||document.createElement("a"),R.setAttribute("href",dt);const ot=R.pathname;return"/"===ot.charAt(0)?ot:`/${ot}`}(we)}resetBaseElement(){h=null}getUserAgent(){return window.navigator.userAgent}getCookie(ot){return(0,d.Mx)(document.cookie,ot)}}let R,h=null,B=(()=>{class dt{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(He){return new(He||dt)};static#t=this.\u0275prov=t.Yz7({token:dt,factory:dt.\u0275fac})}return dt})();const $=new t.OlP("EventManagerPlugins");let f=(()=>{class dt{constructor(we,He){this._zone=He,this._eventNameToPlugin=new Map,we.forEach(yt=>{yt.manager=this}),this._plugins=we.slice().reverse()}addEventListener(we,He,yt){return this._findPluginFor(He).addEventListener(we,He,yt)}getZone(){return this._zone}_findPluginFor(we){let He=this._eventNameToPlugin.get(we);if(He)return He;if(He=this._plugins.find(Wt=>Wt.supports(we)),!He)throw new t.vHH(5101,!1);return this._eventNameToPlugin.set(we,He),He}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG($),t.LFG(t.R0b))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:dt.\u0275fac})}return dt})();class j{constructor(ot){this._doc=ot}}const M="ng-app-id";let q=(()=>{class dt{constructor(we,He,yt,Wt={}){this.doc=we,this.appId=He,this.nonce=yt,this.platformId=Wt,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,d.PM)(Wt),this.resetHostNodes()}addStyles(we){for(const He of we)1===this.changeUsageCount(He,1)&&this.onStyleAdded(He)}removeStyles(we){for(const He of we)this.changeUsageCount(He,-1)<=0&&this.onStyleRemoved(He)}ngOnDestroy(){const we=this.styleNodesInDOM;we&&(we.forEach(He=>He.remove()),we.clear());for(const He of this.getAllStyles())this.onStyleRemoved(He);this.resetHostNodes()}addHost(we){this.hostNodes.add(we);for(const He of this.getAllStyles())this.addStyleToHost(we,He)}removeHost(we){this.hostNodes.delete(we)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(we){for(const He of this.hostNodes)this.addStyleToHost(He,we)}onStyleRemoved(we){const He=this.styleRef;He.get(we)?.elements?.forEach(yt=>yt.remove()),He.delete(we)}collectServerRenderedStyles(){const we=this.doc.head?.querySelectorAll(`style[${M}="${this.appId}"]`);if(we?.length){const He=new Map;return we.forEach(yt=>{null!=yt.textContent&&He.set(yt.textContent,yt)}),He}return null}changeUsageCount(we,He){const yt=this.styleRef;if(yt.has(we)){const Wt=yt.get(we);return Wt.usage+=He,Wt.usage}return yt.set(we,{usage:He,elements:[]}),He}getStyleElement(we,He){const yt=this.styleNodesInDOM,Wt=yt?.get(He);if(Wt?.parentNode===we)return yt.delete(He),Wt.removeAttribute(M),Wt;{const Vt=this.doc.createElement("style");return this.nonce&&Vt.setAttribute("nonce",this.nonce),Vt.textContent=He,this.platformIsServer&&Vt.setAttribute(M,this.appId),Vt}}addStyleToHost(we,He){const yt=this.getStyleElement(we,He);we.appendChild(yt);const Wt=this.styleRef,Vt=Wt.get(He)?.elements;Vt?Vt.push(yt):Wt.set(He,{elements:[yt],usage:1})}resetHostNodes(){const we=this.hostNodes;we.clear(),we.add(this.doc.head)}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(d.K0),t.LFG(t.AFp),t.LFG(t.Ojb,8),t.LFG(t.Lbi))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:dt.\u0275fac})}return dt})();const ie={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/"},k=/%COMP%/g,_e=new t.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function be(dt,ot){return ot.map(we=>we.replace(k,dt))}let ke=(()=>{class dt{constructor(we,He,yt,Wt,Vt,Un,on,rr=null){this.eventManager=we,this.sharedStylesHost=He,this.appId=yt,this.removeStylesOnCompDestroy=Wt,this.doc=Vt,this.platformId=Un,this.ngZone=on,this.nonce=rr,this.rendererByCompId=new Map,this.platformIsServer=(0,d.PM)(Un),this.defaultRenderer=new vt(we,Vt,on,this.platformIsServer)}createRenderer(we,He){if(!we||!He)return this.defaultRenderer;this.platformIsServer&&He.encapsulation===t.ifc.ShadowDom&&(He={...He,encapsulation:t.ifc.Emulated});const yt=this.getOrCreateRenderer(we,He);return yt instanceof Ee?yt.applyToHost(we):yt instanceof $e&&yt.applyStyles(),yt}getOrCreateRenderer(we,He){const yt=this.rendererByCompId;let Wt=yt.get(He.id);if(!Wt){const Vt=this.doc,Un=this.ngZone,on=this.eventManager,rr=this.sharedStylesHost,ln=this.removeStylesOnCompDestroy,$n=this.platformIsServer;switch(He.encapsulation){case t.ifc.Emulated:Wt=new Ee(on,rr,He,this.appId,ln,Vt,Un,$n);break;case t.ifc.ShadowDom:return new _t(on,rr,we,He,Vt,Un,this.nonce,$n);default:Wt=new $e(on,rr,He,ln,Vt,Un,$n)}yt.set(He.id,Wt)}return Wt}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(f),t.LFG(q),t.LFG(t.AFp),t.LFG(_e),t.LFG(d.K0),t.LFG(t.Lbi),t.LFG(t.R0b),t.LFG(t.Ojb))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:dt.\u0275fac})}return dt})();class vt{constructor(ot,we,He,yt){this.eventManager=ot,this.doc=we,this.ngZone=He,this.platformIsServer=yt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(ot,we){return we?this.doc.createElementNS(ie[we]||we,ot):this.doc.createElement(ot)}createComment(ot){return this.doc.createComment(ot)}createText(ot){return this.doc.createTextNode(ot)}appendChild(ot,we){(qe(ot)?ot.content:ot).appendChild(we)}insertBefore(ot,we,He){ot&&(qe(ot)?ot.content:ot).insertBefore(we,He)}removeChild(ot,we){ot&&ot.removeChild(we)}selectRootElement(ot,we){let He="string"==typeof ot?this.doc.querySelector(ot):ot;if(!He)throw new t.vHH(-5104,!1);return we||(He.textContent=""),He}parentNode(ot){return ot.parentNode}nextSibling(ot){return ot.nextSibling}setAttribute(ot,we,He,yt){if(yt){we=yt+":"+we;const Wt=ie[yt];Wt?ot.setAttributeNS(Wt,we,He):ot.setAttribute(we,He)}else ot.setAttribute(we,He)}removeAttribute(ot,we,He){if(He){const yt=ie[He];yt?ot.removeAttributeNS(yt,we):ot.removeAttribute(`${He}:${we}`)}else ot.removeAttribute(we)}addClass(ot,we){ot.classList.add(we)}removeClass(ot,we){ot.classList.remove(we)}setStyle(ot,we,He,yt){yt&(t.JOm.DashCase|t.JOm.Important)?ot.style.setProperty(we,He,yt&t.JOm.Important?"important":""):ot.style[we]=He}removeStyle(ot,we,He){He&t.JOm.DashCase?ot.style.removeProperty(we):ot.style[we]=""}setProperty(ot,we,He){ot[we]=He}setValue(ot,we){ot.nodeValue=we}listen(ot,we,He){if("string"==typeof ot&&!(ot=(0,d.q)().getGlobalEventTarget(this.doc,ot)))throw new Error(`Unsupported event target ${ot} for event ${we}`);return this.eventManager.addEventListener(ot,we,this.decoratePreventDefault(He))}decoratePreventDefault(ot){return we=>{if("__ngUnwrap__"===we)return ot;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>ot(we)):ot(we))&&we.preventDefault()}}}function qe(dt){return"TEMPLATE"===dt.tagName&&void 0!==dt.content}class _t extends vt{constructor(ot,we,He,yt,Wt,Vt,Un,on){super(ot,Wt,Vt,on),this.sharedStylesHost=we,this.hostEl=He,this.shadowRoot=He.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const rr=be(yt.id,yt.styles);for(const ln of rr){const $n=document.createElement("style");Un&&$n.setAttribute("nonce",Un),$n.textContent=ln,this.shadowRoot.appendChild($n)}}nodeOrShadowRoot(ot){return ot===this.hostEl?this.shadowRoot:ot}appendChild(ot,we){return super.appendChild(this.nodeOrShadowRoot(ot),we)}insertBefore(ot,we,He){return super.insertBefore(this.nodeOrShadowRoot(ot),we,He)}removeChild(ot,we){return super.removeChild(this.nodeOrShadowRoot(ot),we)}parentNode(ot){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(ot)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class $e extends vt{constructor(ot,we,He,yt,Wt,Vt,Un,on){super(ot,Wt,Vt,Un),this.sharedStylesHost=we,this.removeStylesOnCompDestroy=yt,this.styles=on?be(on,He.styles):He.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Ee extends $e{constructor(ot,we,He,yt,Wt,Vt,Un,on){const rr=yt+"-"+He.id;super(ot,we,He,Wt,Vt,Un,on,rr),this.contentAttr=function ve(dt){return"_ngcontent-%COMP%".replace(k,dt)}(rr),this.hostAttr=function xe(dt){return"_nghost-%COMP%".replace(k,dt)}(rr)}applyToHost(ot){this.applyStyles(),this.setAttribute(ot,this.hostAttr,"")}createElement(ot,we){const He=super.createElement(ot,we);return super.setAttribute(He,this.contentAttr,""),He}}let Ze=(()=>{class dt extends j{constructor(we){super(we)}supports(we){return!0}addEventListener(we,He,yt){return we.addEventListener(He,yt,!1),()=>this.removeEventListener(we,He,yt)}removeEventListener(we,He,yt){return we.removeEventListener(He,yt)}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(d.K0))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:dt.\u0275fac})}return dt})();const J=["alt","control","meta","shift"],Q={"\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"},oe={alt:dt=>dt.altKey,control:dt=>dt.ctrlKey,meta:dt=>dt.metaKey,shift:dt=>dt.shiftKey};let se=(()=>{class dt extends j{constructor(we){super(we)}supports(we){return null!=dt.parseEventName(we)}addEventListener(we,He,yt){const Wt=dt.parseEventName(He),Vt=dt.eventCallback(Wt.fullKey,yt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,d.q)().onAndCancel(we,Wt.domEventName,Vt))}static parseEventName(we){const He=we.toLowerCase().split("."),yt=He.shift();if(0===He.length||"keydown"!==yt&&"keyup"!==yt)return null;const Wt=dt._normalizeKey(He.pop());let Vt="",Un=He.indexOf("code");if(Un>-1&&(He.splice(Un,1),Vt="code."),J.forEach(rr=>{const ln=He.indexOf(rr);ln>-1&&(He.splice(ln,1),Vt+=rr+".")}),Vt+=Wt,0!=He.length||0===Wt.length)return null;const on={};return on.domEventName=yt,on.fullKey=Vt,on}static matchEventFullKeyCode(we,He){let yt=Q[we.key]||we.key,Wt="";return He.indexOf("code.")>-1&&(yt=we.code,Wt="code."),!(null==yt||!yt)&&(yt=yt.toLowerCase()," "===yt?yt="space":"."===yt&&(yt="dot"),J.forEach(Vt=>{Vt!==yt&&(0,oe[Vt])(we)&&(Wt+=Vt+".")}),Wt+=yt,Wt===He)}static eventCallback(we,He,yt){return Wt=>{dt.matchEventFullKeyCode(Wt,we)&&yt.runGuarded(()=>He(Wt))}}static _normalizeKey(we){return"esc"===we?"escape":we}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(d.K0))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:dt.\u0275fac})}return dt})();const Je=(0,t.eFA)(t._c5,"browser",[{provide:t.Lbi,useValue:d.bD},{provide:t.g9A,useValue:function Xe(){L.makeCurrent()},multi:!0},{provide:d.K0,useFactory:function wt(){return(0,t.RDi)(document),document},deps:[]}]),Tt=new t.OlP(""),et=[{provide:t.rWj,useClass:class P{addToWindow(ot){t.dqk.getAngularTestability=(He,yt=!0)=>{const Wt=ot.findTestabilityInTree(He,yt);if(null==Wt)throw new t.vHH(5103,!1);return Wt},t.dqk.getAllAngularTestabilities=()=>ot.getAllTestabilities(),t.dqk.getAllAngularRootElements=()=>ot.getAllRootElements(),t.dqk.frameworkStabilizers||(t.dqk.frameworkStabilizers=[]),t.dqk.frameworkStabilizers.push(He=>{const yt=t.dqk.getAllAngularTestabilities();let Wt=yt.length,Vt=!1;const Un=function(on){Vt=Vt||on,Wt--,0==Wt&&He(Vt)};yt.forEach(on=>{on.whenStable(Un)})})}findTestabilityInTree(ot,we,He){return null==we?null:ot.getTestability(we)??(He?(0,d.q)().isShadowRoot(we)?this.findTestabilityInTree(ot,we.host,!0):this.findTestabilityInTree(ot,we.parentElement,!0):null)}},deps:[]},{provide:t.lri,useClass:t.dDg,deps:[t.R0b,t.eoX,t.rWj]},{provide:t.dDg,useClass:t.dDg,deps:[t.R0b,t.eoX,t.rWj]}],Pt=[{provide:t.zSh,useValue:"root"},{provide:t.qLn,useFactory:function tt(){return new t.qLn},deps:[]},{provide:$,useClass:Ze,multi:!0,deps:[d.K0,t.R0b,t.Lbi]},{provide:$,useClass:se,multi:!0,deps:[d.K0]},ke,q,f,{provide:t.FYo,useExisting:ke},{provide:d.JF,useClass:B,deps:[]},[]];let Zt=(()=>{class dt{constructor(we){}static withServerTransition(we){return{ngModule:dt,providers:[{provide:t.AFp,useValue:we.appId}]}}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(Tt,12))};static#t=this.\u0275mod=t.oAB({type:dt});static#n=this.\u0275inj=t.cJS({providers:[...Pt,...et],imports:[d.ez,t.hGG]})}return dt})(),At=(()=>{class dt{constructor(we){this._doc=we}getTitle(){return this._doc.title}setTitle(we){this._doc.title=we||""}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(d.K0))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:function(He){let yt=null;return yt=He?new He:function Ye(){return new At((0,t.LFG)(d.K0))}(),yt},providedIn:"root"})}return dt})();typeof window<"u"&&window;let Cn=(()=>{class dt{static#e=this.\u0275fac=function(He){return new(He||dt)};static#t=this.\u0275prov=t.Yz7({token:dt,factory:function(He){let yt=null;return yt=He?new(He||dt):t.LFG(In),yt},providedIn:"root"})}return dt})(),In=(()=>{class dt extends Cn{constructor(we){super(),this._doc=we}sanitize(we,He){if(null==He)return null;switch(we){case t.q3G.NONE:return He;case t.q3G.HTML:return(0,t.qzn)(He,"HTML")?(0,t.z3N)(He):(0,t.EiD)(this._doc,String(He)).toString();case t.q3G.STYLE:return(0,t.qzn)(He,"Style")?(0,t.z3N)(He):He;case t.q3G.SCRIPT:if((0,t.qzn)(He,"Script"))return(0,t.z3N)(He);throw new t.vHH(5200,!1);case t.q3G.URL:return(0,t.qzn)(He,"URL")?(0,t.z3N)(He):(0,t.mCW)(String(He));case t.q3G.RESOURCE_URL:if((0,t.qzn)(He,"ResourceURL"))return(0,t.z3N)(He);throw new t.vHH(5201,!1);default:throw new t.vHH(5202,!1)}}bypassSecurityTrustHtml(we){return(0,t.JVY)(we)}bypassSecurityTrustStyle(we){return(0,t.L6k)(we)}bypassSecurityTrustScript(we){return(0,t.eBb)(we)}bypassSecurityTrustUrl(we){return(0,t.LAX)(we)}bypassSecurityTrustResourceUrl(we){return(0,t.pB0)(we)}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(d.K0))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:function(He){let yt=null;return yt=He?new He:function An(dt){return new In(dt.get(d.K0))}(t.LFG(t.zs3)),yt},providedIn:"root"})}return dt})()},1523:(Pe,V,a)=>{"use strict";a.d(V,{gz:()=>wi,jw:()=>es,sz:()=>it,m2:()=>X,OD:()=>D,eC:()=>tt,F0:()=>er,rH:()=>Di,Od:()=>ga,Bz:()=>v,lC:()=>bi});var t=a(5879),d=a(2664),w=a(7715),L=a(2096),h=a(5619),O=a(2572);const F=(0,a(2306).d)(E=>function(){E(this),this.name="EmptyError",this.message="no elements in sequence"});var P=a(5211),B=a(4911),$=a(8407),f=a(8504),j=a(6232),M=a(5592),q=a(7394),ie=a(9360),k=a(8251);function Te(){return(0,ie.e)((E,S)=>{let y=null;E._refCount++;const x=(0,k.x)(S,void 0,void 0,void 0,()=>{if(!E||E._refCount<=0||0<--E._refCount)return void(y=null);const G=E._connection,he=y;y=null,G&&(!he||G===he)&&G.unsubscribe(),S.unsubscribe()});E.subscribe(x),x.closed||(y=E.connect())})}class Se extends M.y{constructor(S,y){super(),this.source=S,this.subjectFactory=y,this._subject=null,this._refCount=0,this._connection=null,(0,ie.A)(S)&&(this.lift=S.lift)}_subscribe(S){return this.getSubject().subscribe(S)}getSubject(){const S=this._subject;return(!S||S.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:S}=this;this._subject=this._connection=null,S?.unsubscribe()}connect(){let S=this._connection;if(!S){S=this._connection=new q.w0;const y=this.getSubject();S.add(this.source.subscribe((0,k.x)(y,void 0,()=>{this._teardown(),y.complete()},x=>{this._teardown(),y.error(x)},()=>this._teardown()))),S.closed&&(this._connection=null,S=q.w0.EMPTY)}return S}refCount(){return Te()(this)}}var ye=a(8645),ce=a(6814),_e=a(7398),ve=a(4664),xe=a(8180),be=a(7921),ke=a(2181),vt=a(1631),rt=a(3572);function Mt(E=qe){return(0,ie.e)((S,y)=>{let x=!1;S.subscribe((0,k.x)(y,G=>{x=!0,y.next(G)},()=>x?y.complete():y.error(E())))})}function qe(){return new F}var _t=a(2737);function $e(E,S){const y=arguments.length>=2;return x=>x.pipe(E?(0,ke.h)((G,he)=>E(G,he,x)):_t.y,(0,xe.q)(1),y?(0,rt.d)(S):Mt(()=>new F))}var Ee=a(6328),Ze=a(9397),J=a(6306),Q=a(6699);function oe(E){return E<=0?()=>j.E:(0,ie.e)((S,y)=>{let x=[];S.subscribe((0,k.x)(y,G=>{x.push(G),E{for(const G of x)y.next(G);y.complete()},void 0,()=>{x=null}))})}var ae=a(975),fe=a(4716),De=a(9773),je=a(7537),Xe=a(6593);const tt="primary",wt=Symbol("RouteTitle");class It{constructor(S){this.params=S||{}}has(S){return Object.prototype.hasOwnProperty.call(this.params,S)}get(S){if(this.has(S)){const y=this.params[S];return Array.isArray(y)?y[0]:y}return null}getAll(S){if(this.has(S)){const y=this.params[S];return Array.isArray(y)?y:[y]}return[]}get keys(){return Object.keys(this.params)}}function Je(E){return new It(E)}function Tt(E,S,y){const x=y.path.split("/");if(x.length>E.length||"full"===y.pathMatch&&(S.hasChildren()||x.lengthx[he]===G)}return E===S}function dn(E){return E.length>0?E[E.length-1]:null}function Rn(E){return(0,d.b)(E)?E:(0,t.QGY)(E)?(0,w.D)(Promise.resolve(E)):(0,L.of)(E)}const We={exact:function nn(E,S,y){if(!Wn(E.segments,S.segments)||!fn(E.segments,S.segments,y)||E.numberOfChildren!==S.numberOfChildren)return!1;for(const x in S.children)if(!E.children[x]||!nn(E.children[x],S.children[x],y))return!1;return!0},subset:Ht},Ye={exact:function xt(E,S){return Pt(E,S)},subset:function Et(E,S){return Object.keys(S).length<=Object.keys(E).length&&Object.keys(S).every(y=>Zt(E[y],S[y]))},ignored:()=>!0};function At(E,S,y){return We[y.paths](E.root,S.root,y.matrixParams)&&Ye[y.queryParams](E.queryParams,S.queryParams)&&!("exact"===y.fragment&&E.fragment!==S.fragment)}function Ht(E,S,y){return zt(E,S,S.segments,y)}function zt(E,S,y,x){if(E.segments.length>y.length){const G=E.segments.slice(0,y.length);return!(!Wn(G,y)||S.hasChildren()||!fn(G,y,x))}if(E.segments.length===y.length){if(!Wn(E.segments,y)||!fn(E.segments,y,x))return!1;for(const G in S.children)if(!E.children[G]||!Ht(E.children[G],S.children[G],x))return!1;return!0}{const G=y.slice(0,E.segments.length),he=y.slice(E.segments.length);return!!(Wn(E.segments,G)&&fn(E.segments,G,x)&&E.children[tt])&&zt(E.children[tt],S,he,x)}}function fn(E,S,y){return S.every((x,G)=>Ye[y](E[G].parameters,x.parameters))}class Sn{constructor(S=new hn([],{}),y={},x=null){this.root=S,this.queryParams=y,this.fragment=x}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Je(this.queryParams)),this._queryParamMap}toString(){return Ut.serialize(this)}}class hn{constructor(S,y){this.segments=S,this.children=y,this.parent=null,Object.values(y).forEach(x=>x.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Qt(this)}}class en{constructor(S,y){this.path=S,this.parameters=y}get parameterMap(){return this._parameterMap||(this._parameterMap=Je(this.parameters)),this._parameterMap}toString(){return Ir(this)}}function Wn(E,S){return E.length===S.length&&E.every((y,x)=>y.path===S[x].path)}let Er=(()=>{class E{static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:function(){return new it},providedIn:"root"})}return E})();class it{parse(S){const y=new Un(S);return new Sn(y.parseRootSegment(),y.parseQueryParams(),y.parseFragment())}serialize(S){const y=`/${Cn(S.root,!0)}`,x=function oi(E){const S=Object.keys(E).map(y=>{const x=E[y];return Array.isArray(x)?x.map(G=>`${In(y)}=${In(G)}`).join("&"):`${In(y)}=${In(x)}`}).filter(y=>!!y);return S.length?`?${S.join("&")}`:""}(S.queryParams);return`${y}${x}${"string"==typeof S.fragment?`#${function nr(E){return encodeURI(E)}(S.fragment)}`:""}`}}const Ut=new it;function Qt(E){return E.segments.map(S=>Ir(S)).join("/")}function Cn(E,S){if(!E.hasChildren())return Qt(E);if(S){const y=E.children[tt]?Cn(E.children[tt],!1):"",x=[];return Object.entries(E.children).forEach(([G,he])=>{G!==tt&&x.push(`${G}:${Cn(he,!1)}`)}),x.length>0?`${y}(${x.join("//")})`:y}{const y=function _n(E,S){let y=[];return Object.entries(E.children).forEach(([x,G])=>{x===tt&&(y=y.concat(S(G,x)))}),Object.entries(E.children).forEach(([x,G])=>{x!==tt&&(y=y.concat(S(G,x)))}),y}(E,(x,G)=>G===tt?[Cn(E.children[tt],!1)]:[`${G}:${Cn(x,!1)}`]);return 1===Object.keys(E.children).length&&null!=E.children[tt]?`${Qt(E)}/${y[0]}`:`${Qt(E)}/(${y.join("//")})`}}function An(E){return encodeURIComponent(E).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function In(E){return An(E).replace(/%3B/gi,";")}function Dr(E){return An(E).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function wr(E){return decodeURIComponent(E)}function Or(E){return wr(E.replace(/\+/g,"%20"))}function Ir(E){return`${Dr(E.path)}${function Br(E){return Object.keys(E).map(S=>`;${Dr(S)}=${Dr(E[S])}`).join("")}(E.parameters)}`}const Zn=/^[^\/()?;#]+/;function dt(E){const S=E.match(Zn);return S?S[0]:""}const ot=/^[^\/()?;=#]+/,He=/^[^=?&#]+/,Wt=/^[^&#]+/;class Un{constructor(S){this.url=S,this.remaining=S}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new hn([],{}):new hn([],this.parseChildren())}parseQueryParams(){const S={};if(this.consumeOptional("?"))do{this.parseQueryParam(S)}while(this.consumeOptional("&"));return S}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const S=[];for(this.peekStartsWith("(")||S.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),S.push(this.parseSegment());let y={};this.peekStartsWith("/(")&&(this.capture("/"),y=this.parseParens(!0));let x={};return this.peekStartsWith("(")&&(x=this.parseParens(!1)),(S.length>0||Object.keys(y).length>0)&&(x[tt]=new hn(S,y)),x}parseSegment(){const S=dt(this.remaining);if(""===S&&this.peekStartsWith(";"))throw new t.vHH(4009,!1);return this.capture(S),new en(wr(S),this.parseMatrixParams())}parseMatrixParams(){const S={};for(;this.consumeOptional(";");)this.parseParam(S);return S}parseParam(S){const y=function we(E){const S=E.match(ot);return S?S[0]:""}(this.remaining);if(!y)return;this.capture(y);let x="";if(this.consumeOptional("=")){const G=dt(this.remaining);G&&(x=G,this.capture(x))}S[wr(y)]=wr(x)}parseQueryParam(S){const y=function yt(E){const S=E.match(He);return S?S[0]:""}(this.remaining);if(!y)return;this.capture(y);let x="";if(this.consumeOptional("=")){const Me=function Vt(E){const S=E.match(Wt);return S?S[0]:""}(this.remaining);Me&&(x=Me,this.capture(x))}const G=Or(y),he=Or(x);if(S.hasOwnProperty(G)){let Me=S[G];Array.isArray(Me)||(Me=[Me],S[G]=Me),Me.push(he)}else S[G]=he}parseParens(S){const y={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const x=dt(this.remaining),G=this.remaining[x.length];if("/"!==G&&")"!==G&&";"!==G)throw new t.vHH(4010,!1);let he;x.indexOf(":")>-1?(he=x.slice(0,x.indexOf(":")),this.capture(he),this.capture(":")):S&&(he=tt);const Me=this.parseChildren();y[he]=1===Object.keys(Me).length?Me[tt]:new hn([],Me),this.consumeOptional("//")}return y}peekStartsWith(S){return this.remaining.startsWith(S)}consumeOptional(S){return!!this.peekStartsWith(S)&&(this.remaining=this.remaining.substring(S.length),!0)}capture(S){if(!this.consumeOptional(S))throw new t.vHH(4011,!1)}}function on(E){return E.segments.length>0?new hn([],{[tt]:E}):E}function rr(E){const S={};for(const x of Object.keys(E.children)){const he=rr(E.children[x]);if(x===tt&&0===he.segments.length&&he.hasChildren())for(const[Me,at]of Object.entries(he.children))S[Me]=at;else(he.segments.length>0||he.hasChildren())&&(S[x]=he)}return function ln(E){if(1===E.numberOfChildren&&E.children[tt]){const S=E.children[tt];return new hn(E.segments.concat(S.segments),S.children)}return E}(new hn(E.segments,S))}function $n(E){return E instanceof Sn}function Le(E){let S;const G=on(function y(he){const Me={};for(const ft of he.children){const tn=y(ft);Me[ft.outlet]=tn}const at=new hn(he.url,Me);return he===E&&(S=at),at}(E.root));return S??G}function Ue(E,S,y,x){let G=E;for(;G.parent;)G=G.parent;if(0===S.length)return kt(G,G,G,y,x);const he=function wn(E){if("string"==typeof E[0]&&1===E.length&&"/"===E[0])return new an(!0,0,E);let S=0,y=!1;const x=E.reduce((G,he,Me)=>{if("object"==typeof he&&null!=he){if(he.outlets){const at={};return Object.entries(he.outlets).forEach(([ft,tn])=>{at[ft]="string"==typeof tn?tn.split("/"):tn}),[...G,{outlets:at}]}if(he.segmentPath)return[...G,he.segmentPath]}return"string"!=typeof he?[...G,he]:0===Me?(he.split("/").forEach((at,ft)=>{0==ft&&"."===at||(0==ft&&""===at?y=!0:".."===at?S++:""!=at&&G.push(at))}),G):[...G,he]},[]);return new an(y,S,x)}(S);if(he.toRoot())return kt(G,G,new hn([],{}),y,x);const Me=function jr(E,S,y){if(E.isAbsolute)return new pr(S,!0,0);if(!y)return new pr(S,!1,NaN);if(null===y.parent)return new pr(y,!0,0);const x=bt(E.commands[0])?0:1;return function Fr(E,S,y){let x=E,G=S,he=y;for(;he>G;){if(he-=G,x=x.parent,!x)throw new t.vHH(4005,!1);G=x.segments.length}return new pr(x,!1,G-he)}(y,y.segments.length-1+x,E.numberOfDoubleDots)}(he,G,E),at=Me.processChildren?Zr(Me.segmentGroup,Me.index,he.commands):Hr(Me.segmentGroup,Me.index,he.commands);return kt(G,Me.segmentGroup,at,y,x)}function bt(E){return"object"==typeof E&&null!=E&&!E.outlets&&!E.segmentPath}function Rt(E){return"object"==typeof E&&null!=E&&E.outlets}function kt(E,S,y,x,G){let Me,he={};x&&Object.entries(x).forEach(([ft,tn])=>{he[ft]=Array.isArray(tn)?tn.map(kn=>`${kn}`):`${tn}`}),Me=E===S?y:Ft(E,S,y);const at=on(rr(Me));return new Sn(at,he,G)}function Ft(E,S,y){const x={};return Object.entries(E.children).forEach(([G,he])=>{x[G]=he===S?y:Ft(he,S,y)}),new hn(E.segments,x)}class an{constructor(S,y,x){if(this.isAbsolute=S,this.numberOfDoubleDots=y,this.commands=x,S&&x.length>0&&bt(x[0]))throw new t.vHH(4003,!1);const G=x.find(Rt);if(G&&G!==dn(x))throw new t.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class pr{constructor(S,y,x){this.segmentGroup=S,this.processChildren=y,this.index=x}}function Hr(E,S,y){if(E||(E=new hn([],{})),0===E.segments.length&&E.hasChildren())return Zr(E,S,y);const x=function Xn(E,S,y){let x=0,G=S;const he={match:!1,pathIndex:0,commandIndex:0};for(;G=y.length)return he;const Me=E.segments[G],at=y[x];if(Rt(at))break;const ft=`${at}`,tn=x0&&void 0===ft)break;if(ft&&tn&&"object"==typeof tn&&void 0===tn.outlets){if(!pe(ft,tn,Me))return he;x+=2}else{if(!pe(ft,{},Me))return he;x++}G++}return{match:!0,pathIndex:G,commandIndex:x}}(E,S,y),G=y.slice(x.commandIndex);if(x.match&&x.pathIndexhe!==tt)&&E.children[tt]&&1===E.numberOfChildren&&0===E.children[tt].segments.length){const he=Zr(E.children[tt],S,y);return new hn(E.segments,he.children)}return Object.entries(x).forEach(([he,Me])=>{"string"==typeof Me&&(Me=[Me]),null!==Me&&(G[he]=Hr(E.children[he],S,Me))}),Object.entries(E.children).forEach(([he,Me])=>{void 0===x[he]&&(G[he]=Me)}),new hn(E.segments,G)}}function qn(E,S,y){const x=E.segments.slice(0,S);let G=0;for(;G{"string"==typeof x&&(x=[x]),null!==x&&(S[y]=qn(new hn([],{}),0,x))}),S}function ai(E){const S={};return Object.entries(E).forEach(([y,x])=>S[y]=`${x}`),S}function pe(E,S,y){return E==y.path&&Pt(S,y.parameters)}const Z="imperative";class K{constructor(S,y){this.id=S,this.url=y}}class D extends K{constructor(S,y,x="imperative",G=null){super(S,y),this.type=0,this.navigationTrigger=x,this.restoredState=G}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class X extends K{constructor(S,y,x){super(S,y),this.urlAfterRedirects=x,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class de extends K{constructor(S,y,x,G){super(S,y),this.reason=x,this.code=G,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Oe extends K{constructor(S,y,x,G){super(S,y),this.reason=x,this.code=G,this.type=16}}class Ae extends K{constructor(S,y,x,G){super(S,y),this.error=x,this.target=G,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class mt extends K{constructor(S,y,x,G){super(S,y),this.urlAfterRedirects=x,this.state=G,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $t extends K{constructor(S,y,x,G){super(S,y),this.urlAfterRedirects=x,this.state=G,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class cn extends K{constructor(S,y,x,G,he){super(S,y),this.urlAfterRedirects=x,this.state=G,this.shouldActivate=he,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class vn extends K{constructor(S,y,x,G){super(S,y),this.urlAfterRedirects=x,this.state=G,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class En extends K{constructor(S,y,x,G){super(S,y),this.urlAfterRedirects=x,this.state=G,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Nn{constructor(S){this.route=S,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ir{constructor(S){this.route=S,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class _r{constructor(S){this.snapshot=S,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zr{constructor(S){this.snapshot=S,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yr{constructor(S){this.snapshot=S,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class es{constructor(S){this.snapshot=S,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _i{constructor(S,y,x){this.routerEvent=S,this.position=y,this.anchor=x,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ti{}class hs{constructor(S){this.url=S}}class Is{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Bi,this.attachRef=null}}let Bi=(()=>{class E{constructor(){this.contexts=new Map}onChildOutletCreated(y,x){const G=this.getOrCreateContext(y);G.outlet=x,this.contexts.set(y,G)}onChildOutletDestroyed(y){const x=this.getContext(y);x&&(x.outlet=null,x.attachRef=null)}onOutletDeactivated(){const y=this.contexts;return this.contexts=new Map,y}onOutletReAttached(y){this.contexts=y}getOrCreateContext(y){let x=this.getContext(y);return x||(x=new Is,this.contexts.set(y,x)),x}getContext(y){return this.contexts.get(y)||null}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();class Gi{constructor(S){this._root=S}get root(){return this._root.value}parent(S){const y=this.pathFromRoot(S);return y.length>1?y[y.length-2]:null}children(S){const y=Vr(S,this._root);return y?y.children.map(x=>x.value):[]}firstChild(S){const y=Vr(S,this._root);return y&&y.children.length>0?y.children[0].value:null}siblings(S){const y=jn(S,this._root);return y.length<2?[]:y[y.length-2].children.map(G=>G.value).filter(G=>G!==S)}pathFromRoot(S){return jn(S,this._root).map(y=>y.value)}}function Vr(E,S){if(E===S.value)return S;for(const y of S.children){const x=Vr(E,y);if(x)return x}return null}function jn(E,S){if(E===S.value)return[S];for(const y of S.children){const x=jn(E,y);if(x.length)return x.unshift(S),x}return[]}class vr{constructor(S,y){this.value=S,this.children=y}toString(){return`TreeNode(${this.value})`}}function Sr(E){const S={};return E&&E.children.forEach(y=>S[y.value.outlet]=y),S}class vi extends Gi{constructor(S,y){super(S),this.snapshot=y,Kt(this,S)}toString(){return this.snapshot.toString()}}function ci(E,S){const y=function ts(E,S){const Me=new Ui([],{},{},"",{},tt,S,null,{});return new xr("",new vr(Me,[]))}(0,S),x=new h.X([new en("",{})]),G=new h.X({}),he=new h.X({}),Me=new h.X({}),at=new h.X(""),ft=new wi(x,G,Me,at,he,tt,S,y.root);return ft.snapshot=y.root,new vi(new vr(ft,[]),y)}class wi{constructor(S,y,x,G,he,Me,at,ft){this.urlSubject=S,this.paramsSubject=y,this.queryParamsSubject=x,this.fragmentSubject=G,this.dataSubject=he,this.outlet=Me,this.component=at,this._futureSnapshot=ft,this.title=this.dataSubject?.pipe((0,_e.U)(tn=>tn[wt]))??(0,L.of)(void 0),this.url=S,this.params=y,this.queryParams=x,this.fragment=G,this.data=he}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._paramMap=this.params.pipe((0,_e.U)(S=>Je(S)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,_e.U)(S=>Je(S)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ui(E,S="emptyOnly"){const y=E.pathFromRoot;let x=0;if("always"!==S)for(x=y.length-1;x>=1;){const G=y[x],he=y[x-1];if(G.routeConfig&&""===G.routeConfig.path)x--;else{if(he.component)break;x--}}return function ys(E){return E.reduce((S,y)=>({params:{...S.params,...y.params},data:{...S.data,...y.data},resolve:{...y.data,...S.resolve,...y.routeConfig?.data,...y._resolvedData}}),{params:{},data:{},resolve:{}})}(y.slice(x))}class Ui{get title(){return this.data?.[wt]}constructor(S,y,x,G,he,Me,at,ft,tn){this.url=S,this.params=y,this.queryParams=x,this.fragment=G,this.data=he,this.outlet=Me,this.component=at,this.routeConfig=ft,this._resolve=tn}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._paramMap=Je(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Je(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(x=>x.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class xr extends Gi{constructor(S,y){super(y),this.url=S,Kt(this,y)}toString(){return Mn(this._root)}}function Kt(E,S){S.value._routerState=E,S.children.forEach(y=>Kt(E,y))}function Mn(E){const S=E.children.length>0?` { ${E.children.map(Mn).join(", ")} } `:"";return`${E.value}${S}`}function hr(E){if(E.snapshot){const S=E.snapshot,y=E._futureSnapshot;E.snapshot=y,Pt(S.queryParams,y.queryParams)||E.queryParamsSubject.next(y.queryParams),S.fragment!==y.fragment&&E.fragmentSubject.next(y.fragment),Pt(S.params,y.params)||E.paramsSubject.next(y.params),function et(E,S){if(E.length!==S.length)return!1;for(let y=0;yPt(y.parameters,S[x].parameters))}(E.url,S.url);return y&&!(!E.parent!=!S.parent)&&(!E.parent||$r(E.parent,S.parent))}let bi=(()=>{class E{constructor(){this.activated=null,this._activatedRoute=null,this.name=tt,this.activateEvents=new t.vpe,this.deactivateEvents=new t.vpe,this.attachEvents=new t.vpe,this.detachEvents=new t.vpe,this.parentContexts=(0,t.f3M)(Bi),this.location=(0,t.f3M)(t.s_b),this.changeDetector=(0,t.f3M)(t.sBO),this.environmentInjector=(0,t.f3M)(t.lqb),this.inputBinder=(0,t.f3M)(ze,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(y){if(y.name){const{firstChange:x,previousValue:G}=y.name;if(x)return;this.isTrackedInParentContexts(G)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(G)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(y){return this.parentContexts.getContext(y)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const y=this.parentContexts.getContext(this.name);y?.route&&(y.attachRef?this.attach(y.attachRef,y.route):this.activateWith(y.route,y.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new t.vHH(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new t.vHH(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new t.vHH(4012,!1);this.location.detach();const y=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(y.instance),y}attach(y,x){this.activated=y,this._activatedRoute=x,this.location.insert(y.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(y.instance)}deactivate(){if(this.activated){const y=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(y)}}activateWith(y,x){if(this.isActivated)throw new t.vHH(4013,!1);this._activatedRoute=y;const G=this.location,Me=y.snapshot.component,at=this.parentContexts.getOrCreateContext(this.name).children,ft=new Nr(y,at,G.injector);this.activated=G.createComponent(Me,{index:G.length,injector:ft,environmentInjector:x??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275dir=t.lG2({type:E,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[t.TTD]})}return E})();class Nr{constructor(S,y,x){this.route=S,this.childContexts=y,this.parent=x}get(S,y){return S===wi?this.route:S===Bi?this.childContexts:this.parent.get(S,y)}}const ze=new t.OlP("");let Ve=(()=>{class E{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(y){this.unsubscribeFromRouteData(y),this.subscribeToRouteData(y)}unsubscribeFromRouteData(y){this.outletDataSubscriptions.get(y)?.unsubscribe(),this.outletDataSubscriptions.delete(y)}subscribeToRouteData(y){const{activatedRoute:x}=y,G=(0,O.a)([x.queryParams,x.params,x.data]).pipe((0,ve.w)(([he,Me,at],ft)=>(at={...he,...Me,...at},0===ft?(0,L.of)(at):Promise.resolve(at)))).subscribe(he=>{if(!y.isActivated||!y.activatedComponentRef||y.activatedRoute!==x||null===x.component)return void this.unsubscribeFromRouteData(y);const Me=(0,t.qFp)(x.component);if(Me)for(const{templateName:at}of Me.inputs)y.activatedComponentRef.setInput(at,he[at]);else this.unsubscribeFromRouteData(y)});this.outletDataSubscriptions.set(y,G)}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac})}return E})();function Yt(E,S,y){if(y&&E.shouldReuseRoute(S.value,y.value.snapshot)){const x=y.value;x._futureSnapshot=S.value;const G=function Bt(E,S,y){return S.children.map(x=>{for(const G of y.children)if(E.shouldReuseRoute(x.value,G.value.snapshot))return Yt(E,x,G);return Yt(E,x)})}(E,S,y);return new vr(x,G)}{if(E.shouldAttach(S.value)){const he=E.retrieve(S.value);if(null!==he){const Me=he.route;return Me.value._futureSnapshot=S.value,Me.children=S.children.map(at=>Yt(E,at)),Me}}const x=function gr(E){return new wi(new h.X(E.url),new h.X(E.params),new h.X(E.queryParams),new h.X(E.fragment),new h.X(E.data),E.outlet,E.component,E)}(S.value),G=S.children.map(he=>Yt(E,he));return new vr(x,G)}}const Si="ngNavigationCancelingError";function Yn(E,S){const{redirectTo:y,navigationBehaviorOptions:x}=$n(S)?{redirectTo:S,navigationBehaviorOptions:void 0}:S,G=sr(!1,0,S);return G.url=y,G.navigationBehaviorOptions=x,G}function sr(E,S,y){const x=new Error("NavigationCancelingError: "+(E||""));return x[Si]=!0,x.cancellationCode=S,y&&(x.url=y),x}function Mi(E){return E&&E[Si]}let di=(()=>{class E{static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275cmp=t.Xpm({type:E,selectors:[["ng-component"]],standalone:!0,features:[t.jDz],decls:1,vars:0,template:function(x,G){1&x&&t._UZ(0,"router-outlet")},dependencies:[bi],encapsulation:2})}return E})();function rs(E){const S=E.children&&E.children.map(rs),y=S?{...E,children:S}:{...E};return!y.component&&!y.loadComponent&&(S||y.loadChildren)&&y.outlet&&y.outlet!==tt&&(y.component=di),y}function Pr(E){return E.outlet||tt}function Ri(E){if(!E)return null;if(E.routeConfig?._injector)return E.routeConfig._injector;for(let S=E.parent;S;S=S.parent){const y=S.routeConfig;if(y?._loadedInjector)return y._loadedInjector;if(y?._injector)return y._injector}return null}class lt{constructor(S,y,x,G,he){this.routeReuseStrategy=S,this.futureState=y,this.currState=x,this.forwardEvent=G,this.inputBindingEnabled=he}activate(S){const y=this.futureState._root,x=this.currState?this.currState._root:null;this.deactivateChildRoutes(y,x,S),hr(this.futureState.root),this.activateChildRoutes(y,x,S)}deactivateChildRoutes(S,y,x){const G=Sr(y);S.children.forEach(he=>{const Me=he.value.outlet;this.deactivateRoutes(he,G[Me],x),delete G[Me]}),Object.values(G).forEach(he=>{this.deactivateRouteAndItsChildren(he,x)})}deactivateRoutes(S,y,x){const G=S.value,he=y?y.value:null;if(G===he)if(G.component){const Me=x.getContext(G.outlet);Me&&this.deactivateChildRoutes(S,y,Me.children)}else this.deactivateChildRoutes(S,y,x);else he&&this.deactivateRouteAndItsChildren(y,x)}deactivateRouteAndItsChildren(S,y){S.value.component&&this.routeReuseStrategy.shouldDetach(S.value.snapshot)?this.detachAndStoreRouteSubtree(S,y):this.deactivateRouteAndOutlet(S,y)}detachAndStoreRouteSubtree(S,y){const x=y.getContext(S.value.outlet),G=x&&S.value.component?x.children:y,he=Sr(S);for(const Me of Object.keys(he))this.deactivateRouteAndItsChildren(he[Me],G);if(x&&x.outlet){const Me=x.outlet.detach(),at=x.children.onOutletDeactivated();this.routeReuseStrategy.store(S.value.snapshot,{componentRef:Me,route:S,contexts:at})}}deactivateRouteAndOutlet(S,y){const x=y.getContext(S.value.outlet),G=x&&S.value.component?x.children:y,he=Sr(S);for(const Me of Object.keys(he))this.deactivateRouteAndItsChildren(he[Me],G);x&&(x.outlet&&(x.outlet.deactivate(),x.children.onOutletDeactivated()),x.attachRef=null,x.route=null)}activateChildRoutes(S,y,x){const G=Sr(y);S.children.forEach(he=>{this.activateRoutes(he,G[he.value.outlet],x),this.forwardEvent(new es(he.value.snapshot))}),S.children.length&&this.forwardEvent(new zr(S.value.snapshot))}activateRoutes(S,y,x){const G=S.value,he=y?y.value:null;if(hr(G),G===he)if(G.component){const Me=x.getOrCreateContext(G.outlet);this.activateChildRoutes(S,y,Me.children)}else this.activateChildRoutes(S,y,x);else if(G.component){const Me=x.getOrCreateContext(G.outlet);if(this.routeReuseStrategy.shouldAttach(G.snapshot)){const at=this.routeReuseStrategy.retrieve(G.snapshot);this.routeReuseStrategy.store(G.snapshot,null),Me.children.onOutletReAttached(at.contexts),Me.attachRef=at.componentRef,Me.route=at.route.value,Me.outlet&&Me.outlet.attach(at.componentRef,at.route.value),hr(at.route.value),this.activateChildRoutes(S,null,Me.children)}else{const at=Ri(G.snapshot);Me.attachRef=null,Me.route=G,Me.injector=at,Me.outlet&&Me.outlet.activateWith(G,Me.injector),this.activateChildRoutes(S,null,Me.children)}}else this.activateChildRoutes(S,null,x)}}class Ot{constructor(S){this.path=S,this.route=this.path[this.path.length-1]}}class qt{constructor(S,y){this.component=S,this.route=y}}function Kr(E,S,y){const x=E._root;return fi(x,S?S._root:null,y,[x.value])}function ms(E,S){const y=Symbol(),x=S.get(E,y);return x===y?"function"!=typeof E||(0,t.Z0I)(E)?S.get(E):E:x}function fi(E,S,y,x,G={canDeactivateChecks:[],canActivateChecks:[]}){const he=Sr(S);return E.children.forEach(Me=>{(function Hs(E,S,y,x,G={canDeactivateChecks:[],canActivateChecks:[]}){const he=E.value,Me=S?S.value:null,at=y?y.getContext(E.value.outlet):null;if(Me&&he.routeConfig===Me.routeConfig){const ft=function po(E,S,y){if("function"==typeof y)return y(E,S);switch(y){case"pathParamsChange":return!Wn(E.url,S.url);case"pathParamsOrQueryParamsChange":return!Wn(E.url,S.url)||!Pt(E.queryParams,S.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$r(E,S)||!Pt(E.queryParams,S.queryParams);default:return!$r(E,S)}}(Me,he,he.routeConfig.runGuardsAndResolvers);ft?G.canActivateChecks.push(new Ot(x)):(he.data=Me.data,he._resolvedData=Me._resolvedData),fi(E,S,he.component?at?at.children:null:y,x,G),ft&&at&&at.outlet&&at.outlet.isActivated&&G.canDeactivateChecks.push(new qt(at.outlet.component,Me))}else Me&&Ds(S,at,G),G.canActivateChecks.push(new Ot(x)),fi(E,null,he.component?at?at.children:null:y,x,G)})(Me,he[Me.value.outlet],y,x.concat([Me.value]),G),delete he[Me.value.outlet]}),Object.entries(he).forEach(([Me,at])=>Ds(at,y.getContext(Me),G)),G}function Ds(E,S,y){const x=Sr(E),G=E.value;Object.entries(x).forEach(([he,Me])=>{Ds(Me,G.component?S?S.children.getContext(he):null:S,y)}),y.canDeactivateChecks.push(new qt(G.component&&S&&S.outlet&&S.outlet.isActivated?S.outlet.component:null,G))}function Xs(E){return"function"==typeof E}function zn(E){return E instanceof F||"EmptyError"===E?.name}const Ni=Symbol("INITIAL_VALUE");function is(){return(0,ve.w)(E=>(0,O.a)(E.map(S=>S.pipe((0,xe.q)(1),(0,be.O)(Ni)))).pipe((0,_e.U)(S=>{for(const y of S)if(!0!==y){if(y===Ni)return Ni;if(!1===y||y instanceof Sn)return y}return!0}),(0,ke.h)(S=>S!==Ni),(0,xe.q)(1)))}function as(E){return(0,$.z)((0,Ze.b)(S=>{if($n(S))throw Yn(0,S)}),(0,_e.U)(S=>!0===S))}class Ki{constructor(S){this.segmentGroup=S||null}}class pi{constructor(S){this.urlTree=S}}function ls(E){return(0,f._)(new Ki(E))}function yi(E){return(0,f._)(new pi(E))}class Ps{constructor(S,y){this.urlSerializer=S,this.urlTree=y}noMatchError(S){return new t.vHH(4002,!1)}lineralizeSegments(S,y){let x=[],G=y.root;for(;;){if(x=x.concat(G.segments),0===G.numberOfChildren)return(0,L.of)(x);if(G.numberOfChildren>1||!G.children[tt])return(0,f._)(new t.vHH(4e3,!1));G=G.children[tt]}}applyRedirectCommands(S,y,x){return this.applyRedirectCreateUrlTree(y,this.urlSerializer.parse(y),S,x)}applyRedirectCreateUrlTree(S,y,x,G){const he=this.createSegmentGroup(S,y.root,x,G);return new Sn(he,this.createQueryParams(y.queryParams,this.urlTree.queryParams),y.fragment)}createQueryParams(S,y){const x={};return Object.entries(S).forEach(([G,he])=>{if("string"==typeof he&&he.startsWith(":")){const at=he.substring(1);x[G]=y[at]}else x[G]=he}),x}createSegmentGroup(S,y,x,G){const he=this.createSegments(S,y.segments,x,G);let Me={};return Object.entries(y.children).forEach(([at,ft])=>{Me[at]=this.createSegmentGroup(S,ft,x,G)}),new hn(he,Me)}createSegments(S,y,x,G){return y.map(he=>he.path.startsWith(":")?this.findPosParam(S,he,G):this.findOrReturn(he,x))}findPosParam(S,y,x){const G=x[y.path.substring(1)];if(!G)throw new t.vHH(4001,!1);return G}findOrReturn(S,y){let x=0;for(const G of y){if(G.path===S.path)return y.splice(x),G;x++}return S}}const ro={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function io(E,S,y,x,G){const he=go(E,S,y);return he.matched?(x=function ns(E,S){return E.providers&&!E._injector&&(E._injector=(0,t.MMx)(E.providers,S,`Route: ${E.path}`)),E._injector??S}(S,x),function To(E,S,y,x){const G=S.canMatch;if(!G||0===G.length)return(0,L.of)(!0);const he=G.map(Me=>{const at=ms(Me,E);return Rn(function ge(E){return E&&Xs(E.canMatch)}(at)?at.canMatch(S,y):E.runInContext(()=>at(S,y)))});return(0,L.of)(he).pipe(is(),as())}(x,S,y).pipe((0,_e.U)(Me=>!0===Me?he:{...ro}))):(0,L.of)(he)}function go(E,S,y){if(""===S.path)return"full"===S.pathMatch&&(E.hasChildren()||y.length>0)?{...ro}:{matched:!0,consumedSegments:[],remainingSegments:y,parameters:{},positionalParamSegments:{}};const G=(S.matcher||Tt)(y,E,S);if(!G)return{...ro};const he={};Object.entries(G.posParams??{}).forEach(([at,ft])=>{he[at]=ft.path});const Me=G.consumed.length>0?{...he,...G.consumed[G.consumed.length-1].parameters}:he;return{matched:!0,consumedSegments:G.consumed,remainingSegments:y.slice(G.consumed.length),parameters:Me,positionalParamSegments:G.posParams??{}}}function wo(E,S,y,x){return y.length>0&&function ca(E,S,y){return y.some(x=>Cs(E,S,x)&&Pr(x)!==tt)}(E,y,x)?{segmentGroup:new hn(S,so(x,new hn(y,E.children))),slicedSegments:[]}:0===y.length&&function ua(E,S,y){return y.some(x=>Cs(E,S,x))}(E,y,x)?{segmentGroup:new hn(E.segments,So(E,0,y,x,E.children)),slicedSegments:y}:{segmentGroup:new hn(E.segments,E.children),slicedSegments:y}}function So(E,S,y,x,G){const he={};for(const Me of x)if(Cs(E,y,Me)&&!G[Pr(Me)]){const at=new hn([],{});he[Pr(Me)]=at}return{...G,...he}}function so(E,S){const y={};y[tt]=S;for(const x of E)if(""===x.path&&Pr(x)!==tt){const G=new hn([],{});y[Pr(x)]=G}return y}function Cs(E,S,y){return(!(E.hasChildren()||S.length>0)||"full"!==y.pathMatch)&&""===y.path}class fa{constructor(S,y,x,G,he,Me,at){this.injector=S,this.configLoader=y,this.rootComponentType=x,this.config=G,this.urlTree=he,this.paramsInheritanceStrategy=Me,this.urlSerializer=at,this.allowRedirects=!0,this.applyRedirects=new Ps(this.urlSerializer,this.urlTree)}noMatchError(S){return new t.vHH(4002,!1)}recognize(){const S=wo(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,S,tt).pipe((0,J.K)(y=>{if(y instanceof pi)return this.allowRedirects=!1,this.urlTree=y.urlTree,this.match(y.urlTree);throw y instanceof Ki?this.noMatchError(y):y}),(0,_e.U)(y=>{const x=new Ui([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},tt,this.rootComponentType,null,{}),G=new vr(x,y),he=new xr("",G),Me=function Qe(E,S,y=null,x=null){return Ue(Le(E),S,y,x)}(x,[],this.urlTree.queryParams,this.urlTree.fragment);return Me.queryParams=this.urlTree.queryParams,he.url=this.urlSerializer.serialize(Me),this.inheritParamsAndData(he._root),{state:he,tree:Me}}))}match(S){return this.processSegmentGroup(this.injector,this.config,S.root,tt).pipe((0,J.K)(x=>{throw x instanceof Ki?this.noMatchError(x):x}))}inheritParamsAndData(S){const y=S.value,x=ui(y,this.paramsInheritanceStrategy);y.params=Object.freeze(x.params),y.data=Object.freeze(x.data),S.children.forEach(G=>this.inheritParamsAndData(G))}processSegmentGroup(S,y,x,G){return 0===x.segments.length&&x.hasChildren()?this.processChildren(S,y,x):this.processSegment(S,y,x,x.segments,G,!0)}processChildren(S,y,x){const G=[];for(const he of Object.keys(x.children))"primary"===he?G.unshift(he):G.push(he);return(0,w.D)(G).pipe((0,Ee.b)(he=>{const Me=x.children[he],at=function gs(E,S){const y=E.filter(x=>Pr(x)===S);return y.push(...E.filter(x=>Pr(x)!==S)),y}(y,he);return this.processSegmentGroup(S,at,Me,he)}),(0,Q.R)((he,Me)=>(he.push(...Me),he)),(0,rt.d)(null),function se(E,S){const y=arguments.length>=2;return x=>x.pipe(E?(0,ke.h)((G,he)=>E(G,he,x)):_t.y,oe(1),y?(0,rt.d)(S):Mt(()=>new F))}(),(0,vt.z)(he=>{if(null===he)return ls(x);const Me=Zo(he);return function pa(E){E.sort((S,y)=>S.value.outlet===tt?-1:y.value.outlet===tt?1:S.value.outlet.localeCompare(y.value.outlet))}(Me),(0,L.of)(Me)}))}processSegment(S,y,x,G,he,Me){return(0,w.D)(y).pipe((0,Ee.b)(at=>this.processSegmentAgainstRoute(at._injector??S,y,at,x,G,he,Me).pipe((0,J.K)(ft=>{if(ft instanceof Ki)return(0,L.of)(null);throw ft}))),$e(at=>!!at),(0,J.K)(at=>{if(zn(at))return function Rs(E,S,y){return 0===S.length&&!E.children[y]}(x,G,he)?(0,L.of)([]):ls(x);throw at}))}processSegmentAgainstRoute(S,y,x,G,he,Me,at){return function mo(E,S,y,x){return!!(Pr(E)===x||x!==tt&&Cs(S,y,E))&&("**"===E.path||go(S,E,y).matched)}(x,G,he,Me)?void 0===x.redirectTo?this.matchSegmentAgainstRoute(S,G,x,he,Me,at):at&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(S,G,y,x,he,Me):ls(G):ls(G)}expandSegmentAgainstRouteUsingRedirect(S,y,x,G,he,Me){return"**"===G.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(S,x,G,Me):this.expandRegularSegmentAgainstRouteUsingRedirect(S,y,x,G,he,Me)}expandWildCardWithParamsAgainstRouteUsingRedirect(S,y,x,G){const he=this.applyRedirects.applyRedirectCommands([],x.redirectTo,{});return x.redirectTo.startsWith("/")?yi(he):this.applyRedirects.lineralizeSegments(x,he).pipe((0,vt.z)(Me=>{const at=new hn(Me,{});return this.processSegment(S,y,at,Me,G,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(S,y,x,G,he,Me){const{matched:at,consumedSegments:ft,remainingSegments:tn,positionalParamSegments:kn}=go(y,G,he);if(!at)return ls(y);const Rr=this.applyRedirects.applyRedirectCommands(ft,G.redirectTo,kn);return G.redirectTo.startsWith("/")?yi(Rr):this.applyRedirects.lineralizeSegments(G,Rr).pipe((0,vt.z)(or=>this.processSegment(S,x,y,or.concat(tn),Me,!1)))}matchSegmentAgainstRoute(S,y,x,G,he,Me){let at;if("**"===x.path){const ft=G.length>0?dn(G).parameters:{},tn=new Ui(G,ft,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,zo(x),Pr(x),x.component??x._loadedComponent??null,x,Ko(x));at=(0,L.of)({snapshot:tn,consumedSegments:[],remainingSegments:[]}),y.children={}}else at=io(y,x,G,S).pipe((0,_e.U)(({matched:ft,consumedSegments:tn,remainingSegments:kn,parameters:Rr})=>ft?{snapshot:new Ui(tn,Rr,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,zo(x),Pr(x),x.component??x._loadedComponent??null,x,Ko(x)),consumedSegments:tn,remainingSegments:kn}:null));return at.pipe((0,ve.w)(ft=>null===ft?ls(y):this.getChildConfig(S=x._injector??S,x,G).pipe((0,ve.w)(({routes:tn})=>{const kn=x._loadedInjector??S,{snapshot:Rr,consumedSegments:or,remainingSegments:hi}=ft,{segmentGroup:Gs,slicedSegments:Ns}=wo(y,or,hi,tn);if(0===Ns.length&&Gs.hasChildren())return this.processChildren(kn,tn,Gs).pipe((0,_e.U)(On=>null===On?null:[new vr(Rr,On)]));if(0===tn.length&&0===Ns.length)return(0,L.of)([new vr(Rr,[])]);const mn=Pr(x)===he;return this.processSegment(kn,tn,Gs,Ns,mn?tt:he,!0).pipe((0,_e.U)(On=>[new vr(Rr,On)]))}))))}getChildConfig(S,y,x){return y.children?(0,L.of)({routes:y.children,injector:S}):y.loadChildren?void 0!==y._loadedRoutes?(0,L.of)({routes:y._loadedRoutes,injector:y._loadedInjector}):function os(E,S,y,x){const G=S.canLoad;if(void 0===G||0===G.length)return(0,L.of)(!0);const he=G.map(Me=>{const at=ms(Me,E);return Rn(function qs(E){return E&&Xs(E.canLoad)}(at)?at.canLoad(S,y):E.runInContext(()=>at(S,y)))});return(0,L.of)(he).pipe(is(),as())}(S,y,x).pipe((0,vt.z)(G=>G?this.configLoader.loadChildren(S,y).pipe((0,Ze.b)(he=>{y._loadedRoutes=he.routes,y._loadedInjector=he.injector})):function Li(E){return(0,f._)(sr(!1,3))}())):(0,L.of)({routes:[],injector:S})}}function hl(E){const S=E.value.routeConfig;return S&&""===S.path}function Zo(E){const S=[],y=new Set;for(const x of E){if(!hl(x)){S.push(x);continue}const G=S.find(he=>x.value.routeConfig===he.value.routeConfig);void 0!==G?(G.children.push(...x.children),y.add(G)):S.push(x)}for(const x of y){const G=Zo(x.children);S.push(new vr(x.value,G))}return S.filter(x=>!y.has(x))}function zo(E){return E.data||{}}function Ko(E){return E.resolve||{}}function xo(E){return"string"==typeof E.title||null===E.title}function T(E){return(0,ve.w)(S=>{const y=E(S);return y?(0,w.D)(y).pipe((0,_e.U)(()=>S)):(0,L.of)(S)})}const le=new t.OlP("ROUTES");let U=(()=>{class E{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,t.f3M)(t.Sil)}loadComponent(y){if(this.componentLoaders.get(y))return this.componentLoaders.get(y);if(y._loadedComponent)return(0,L.of)(y._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(y);const x=Rn(y.loadComponent()).pipe((0,_e.U)(gt),(0,Ze.b)(he=>{this.onLoadEndListener&&this.onLoadEndListener(y),y._loadedComponent=he}),(0,fe.x)(()=>{this.componentLoaders.delete(y)})),G=new Se(x,()=>new ye.x).pipe(Te());return this.componentLoaders.set(y,G),G}loadChildren(y,x){if(this.childrenLoaders.get(x))return this.childrenLoaders.get(x);if(x._loadedRoutes)return(0,L.of)({routes:x._loadedRoutes,injector:x._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(x);const he=function ee(E,S,y,x){return Rn(E.loadChildren()).pipe((0,_e.U)(gt),(0,vt.z)(G=>G instanceof t.YKP||Array.isArray(G)?(0,L.of)(G):(0,w.D)(S.compileModuleAsync(G))),(0,_e.U)(G=>{x&&x(E);let he,Me,at=!1;return Array.isArray(G)?(Me=G,!0):(he=G.create(y).injector,Me=he.get(le,[],{optional:!0,self:!0}).flat()),{routes:Me.map(rs),injector:he}}))}(x,this.compiler,y,this.onLoadEndListener).pipe((0,fe.x)(()=>{this.childrenLoaders.delete(x)})),Me=new Se(he,()=>new ye.x).pipe(Te());return this.childrenLoaders.set(x,Me),Me}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();function gt(E){return function Ie(E){return E&&"object"==typeof E&&"default"in E}(E)?E.default:E}let Ct=(()=>{class E{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ye.x,this.transitionAbortSubject=new ye.x,this.configLoader=(0,t.f3M)(U),this.environmentInjector=(0,t.f3M)(t.lqb),this.urlSerializer=(0,t.f3M)(Er),this.rootContexts=(0,t.f3M)(Bi),this.inputBindingEnabled=null!==(0,t.f3M)(ze,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,L.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=G=>this.events.next(new ir(G)),this.configLoader.onLoadStartListener=G=>this.events.next(new Nn(G))}complete(){this.transitions?.complete()}handleNavigationRequest(y){const x=++this.navigationId;this.transitions?.next({...this.transitions.value,...y,id:x})}setupNavigations(y,x,G){return this.transitions=new h.X({id:0,currentUrlTree:x,currentRawUrl:x,currentBrowserUrl:x,extractedUrl:y.urlHandlingStrategy.extract(x),urlAfterRedirects:y.urlHandlingStrategy.extract(x),rawUrl:x,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Z,restoredState:null,currentSnapshot:G.snapshot,targetSnapshot:null,currentRouterState:G,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,ke.h)(he=>0!==he.id),(0,_e.U)(he=>({...he,extractedUrl:y.urlHandlingStrategy.extract(he.rawUrl)})),(0,ve.w)(he=>{this.currentTransition=he;let Me=!1,at=!1;return(0,L.of)(he).pipe((0,Ze.b)(ft=>{this.currentNavigation={id:ft.id,initialUrl:ft.rawUrl,extractedUrl:ft.extractedUrl,trigger:ft.source,extras:ft.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,ve.w)(ft=>{const tn=ft.currentBrowserUrl.toString(),kn=!y.navigated||ft.extractedUrl.toString()!==tn||tn!==ft.currentUrlTree.toString();if(!kn&&"reload"!==(ft.extras.onSameUrlNavigation??y.onSameUrlNavigation)){const or="";return this.events.next(new Oe(ft.id,this.urlSerializer.serialize(ft.rawUrl),or,0)),ft.resolve(null),j.E}if(y.urlHandlingStrategy.shouldProcessUrl(ft.rawUrl))return(0,L.of)(ft).pipe((0,ve.w)(or=>{const hi=this.transitions?.getValue();return this.events.next(new D(or.id,this.urlSerializer.serialize(or.extractedUrl),or.source,or.restoredState)),hi!==this.transitions?.getValue()?j.E:Promise.resolve(or)}),function _o(E,S,y,x,G,he){return(0,vt.z)(Me=>function da(E,S,y,x,G,he,Me="emptyOnly"){return new fa(E,S,y,x,G,Me,he).recognize()}(E,S,y,x,Me.extractedUrl,G,he).pipe((0,_e.U)(({state:at,tree:ft})=>({...Me,targetSnapshot:at,urlAfterRedirects:ft}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,y.config,this.urlSerializer,y.paramsInheritanceStrategy),(0,Ze.b)(or=>{he.targetSnapshot=or.targetSnapshot,he.urlAfterRedirects=or.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:or.urlAfterRedirects};const hi=new mt(or.id,this.urlSerializer.serialize(or.extractedUrl),this.urlSerializer.serialize(or.urlAfterRedirects),or.targetSnapshot);this.events.next(hi)}));if(kn&&y.urlHandlingStrategy.shouldProcessUrl(ft.currentRawUrl)){const{id:or,extractedUrl:hi,source:Gs,restoredState:Ns,extras:mn}=ft,On=new D(or,this.urlSerializer.serialize(hi),Gs,Ns);this.events.next(On);const bn=ci(0,this.rootComponentType).snapshot;return this.currentTransition=he={...ft,targetSnapshot:bn,urlAfterRedirects:hi,extras:{...mn,skipLocationChange:!1,replaceUrl:!1}},(0,L.of)(he)}{const or="";return this.events.next(new Oe(ft.id,this.urlSerializer.serialize(ft.extractedUrl),or,1)),ft.resolve(null),j.E}}),(0,Ze.b)(ft=>{const tn=new $t(ft.id,this.urlSerializer.serialize(ft.extractedUrl),this.urlSerializer.serialize(ft.urlAfterRedirects),ft.targetSnapshot);this.events.next(tn)}),(0,_e.U)(ft=>(this.currentTransition=he={...ft,guards:Kr(ft.targetSnapshot,ft.currentSnapshot,this.rootContexts)},he)),function eo(E,S){return(0,vt.z)(y=>{const{targetSnapshot:x,currentSnapshot:G,guards:{canActivateChecks:he,canDeactivateChecks:Me}}=y;return 0===Me.length&&0===he.length?(0,L.of)({...y,guardsResult:!0}):function Pa(E,S,y,x){return(0,w.D)(E).pipe((0,vt.z)(G=>function ho(E,S,y,x,G){const he=S&&S.routeConfig?S.routeConfig.canDeactivate:null;if(!he||0===he.length)return(0,L.of)(!0);const Me=he.map(at=>{const ft=Ri(S)??G,tn=ms(at,ft);return Rn(function N(E){return E&&Xs(E.canDeactivate)}(tn)?tn.canDeactivate(E,S,y,x):ft.runInContext(()=>tn(E,S,y,x))).pipe($e())});return(0,L.of)(Me).pipe(is())}(G.component,G.route,y,S,x)),$e(G=>!0!==G,!0))}(Me,x,G,E).pipe((0,vt.z)(at=>at&&function Co(E){return"boolean"==typeof E}(at)?function ss(E,S,y,x){return(0,w.D)(S).pipe((0,Ee.b)(G=>(0,P.z)(function Vs(E,S){return null!==E&&S&&S(new _r(E)),(0,L.of)(!0)}(G.route.parent,x),function to(E,S){return null!==E&&S&&S(new Yr(E)),(0,L.of)(!0)}(G.route,x),function Ra(E,S,y){const x=S[S.length-1],he=S.slice(0,S.length-1).reverse().map(Me=>function ji(E){const S=E.routeConfig?E.routeConfig.canActivateChild:null;return S&&0!==S.length?{node:E,guards:S}:null}(Me)).filter(Me=>null!==Me).map(Me=>(0,B.P)(()=>{const at=Me.guards.map(ft=>{const tn=Ri(Me.node)??y,kn=ms(ft,tn);return Rn(function re(E){return E&&Xs(E.canActivateChild)}(kn)?kn.canActivateChild(x,E):tn.runInContext(()=>kn(x,E))).pipe($e())});return(0,L.of)(at).pipe(is())}));return(0,L.of)(he).pipe(is())}(E,G.path,y),function Go(E,S,y){const x=S.routeConfig?S.routeConfig.canActivate:null;if(!x||0===x.length)return(0,L.of)(!0);const G=x.map(he=>(0,B.P)(()=>{const Me=Ri(S)??y,at=ms(he,Me);return Rn(function Y(E){return E&&Xs(E.canActivate)}(at)?at.canActivate(S,E):Me.runInContext(()=>at(S,E))).pipe($e())}));return(0,L.of)(G).pipe(is())}(E,G.route,y))),$e(G=>!0!==G,!0))}(x,he,E,S):(0,L.of)(at)),(0,_e.U)(at=>({...y,guardsResult:at})))})}(this.environmentInjector,ft=>this.events.next(ft)),(0,Ze.b)(ft=>{if(he.guardsResult=ft.guardsResult,$n(ft.guardsResult))throw Yn(0,ft.guardsResult);const tn=new cn(ft.id,this.urlSerializer.serialize(ft.extractedUrl),this.urlSerializer.serialize(ft.urlAfterRedirects),ft.targetSnapshot,!!ft.guardsResult);this.events.next(tn)}),(0,ke.h)(ft=>!!ft.guardsResult||(this.cancelNavigationTransition(ft,"",3),!1)),T(ft=>{if(ft.guards.canActivateChecks.length)return(0,L.of)(ft).pipe((0,Ze.b)(tn=>{const kn=new vn(tn.id,this.urlSerializer.serialize(tn.extractedUrl),this.urlSerializer.serialize(tn.urlAfterRedirects),tn.targetSnapshot);this.events.next(kn)}),(0,ve.w)(tn=>{let kn=!1;return(0,L.of)(tn).pipe(function ha(E,S){return(0,vt.z)(y=>{const{targetSnapshot:x,guards:{canActivateChecks:G}}=y;if(!G.length)return(0,L.of)(y);let he=0;return(0,w.D)(G).pipe((0,Ee.b)(Me=>function Ao(E,S,y,x){const G=E.routeConfig,he=E._resolve;return void 0!==G?.title&&!xo(G)&&(he[wt]=G.title),function Na(E,S,y,x){const G=function La(E){return[...Object.keys(E),...Object.getOwnPropertySymbols(E)]}(E);if(0===G.length)return(0,L.of)({});const he={};return(0,w.D)(G).pipe((0,vt.z)(Me=>function oo(E,S,y,x){const G=Ri(S)??x,he=ms(E,G);return Rn(he.resolve?he.resolve(S,y):G.runInContext(()=>he(S,y)))}(E[Me],S,y,x).pipe($e(),(0,Ze.b)(at=>{he[Me]=at}))),oe(1),(0,ae.h)(he),(0,J.K)(Me=>zn(Me)?j.E:(0,f._)(Me)))}(he,E,S,x).pipe((0,_e.U)(Me=>(E._resolvedData=Me,E.data=ui(E,y).resolve,G&&xo(G)&&(E.data[wt]=G.title),null)))}(Me.route,x,E,S)),(0,Ze.b)(()=>he++),oe(1),(0,vt.z)(Me=>he===G.length?(0,L.of)(y):j.E))})}(y.paramsInheritanceStrategy,this.environmentInjector),(0,Ze.b)({next:()=>kn=!0,complete:()=>{kn||this.cancelNavigationTransition(tn,"",2)}}))}),(0,Ze.b)(tn=>{const kn=new En(tn.id,this.urlSerializer.serialize(tn.extractedUrl),this.urlSerializer.serialize(tn.urlAfterRedirects),tn.targetSnapshot);this.events.next(kn)}))}),T(ft=>{const tn=kn=>{const Rr=[];kn.routeConfig?.loadComponent&&!kn.routeConfig._loadedComponent&&Rr.push(this.configLoader.loadComponent(kn.routeConfig).pipe((0,Ze.b)(or=>{kn.component=or}),(0,_e.U)(()=>{})));for(const or of kn.children)Rr.push(...tn(or));return Rr};return(0,O.a)(tn(ft.targetSnapshot.root)).pipe((0,rt.d)(),(0,xe.q)(1))}),T(()=>this.afterPreactivation()),(0,_e.U)(ft=>{const tn=function ct(E,S,y){const x=Yt(E,S._root,y?y._root:void 0);return new vi(x,S)}(y.routeReuseStrategy,ft.targetSnapshot,ft.currentRouterState);return this.currentTransition=he={...ft,targetRouterState:tn},he}),(0,Ze.b)(()=>{this.events.next(new Ti)}),((E,S,y,x)=>(0,_e.U)(G=>(new lt(S,G.targetRouterState,G.currentRouterState,y,x).activate(E),G)))(this.rootContexts,y.routeReuseStrategy,ft=>this.events.next(ft),this.inputBindingEnabled),(0,xe.q)(1),(0,Ze.b)({next:ft=>{Me=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new X(ft.id,this.urlSerializer.serialize(ft.extractedUrl),this.urlSerializer.serialize(ft.urlAfterRedirects))),y.titleStrategy?.updateTitle(ft.targetRouterState.snapshot),ft.resolve(!0)},complete:()=>{Me=!0}}),(0,De.R)(this.transitionAbortSubject.pipe((0,Ze.b)(ft=>{throw ft}))),(0,fe.x)(()=>{Me||at||this.cancelNavigationTransition(he,"",1),this.currentNavigation?.id===he.id&&(this.currentNavigation=null)}),(0,J.K)(ft=>{if(at=!0,Mi(ft))this.events.next(new de(he.id,this.urlSerializer.serialize(he.extractedUrl),ft.message,ft.cancellationCode)),function Wr(E){return Mi(E)&&$n(E.url)}(ft)?this.events.next(new hs(ft.url)):he.resolve(!1);else{this.events.next(new Ae(he.id,this.urlSerializer.serialize(he.extractedUrl),ft,he.targetSnapshot??void 0));try{he.resolve(y.errorHandler(ft))}catch(tn){he.reject(tn)}}return j.E}))}))}cancelNavigationTransition(y,x,G){const he=new de(y.id,this.urlSerializer.serialize(y.extractedUrl),x,G);this.events.next(he),y.resolve(!1)}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();function Jt(E){return E!==Z}let Bn=(()=>{class E{buildTitle(y){let x,G=y.root;for(;void 0!==G;)x=this.getResolvedTitleForRoute(G)??x,G=G.children.find(he=>he.outlet===tt);return x}getResolvedTitleForRoute(y){return y.data[wt]}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:function(){return(0,t.f3M)(dr)},providedIn:"root"})}return E})(),dr=(()=>{class E extends Bn{constructor(y){super(),this.title=y}updateTitle(y){const x=this.buildTitle(y);void 0!==x&&this.title.setTitle(x)}static#e=this.\u0275fac=function(x){return new(x||E)(t.LFG(Xe.Dx))};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),yr=(()=>{class E{static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:function(){return(0,t.f3M)(Jr)},providedIn:"root"})}return E})();class Kn{shouldDetach(S){return!1}store(S,y){}shouldAttach(S){return!1}retrieve(S){return null}shouldReuseRoute(S,y){return S.routeConfig===y.routeConfig}}let Jr=(()=>{class E extends Kn{static#e=this.\u0275fac=function(){let y;return function(G){return(y||(y=t.n5z(E)))(G||E)}}();static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();const Jn=new t.OlP("",{providedIn:"root",factory:()=>({})});let ei=(()=>{class E{static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:function(){return(0,t.f3M)(Ei)},providedIn:"root"})}return E})(),Ei=(()=>{class E{shouldProcessUrl(y){return!0}extract(y){return y}merge(y,x){return y}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();var Ai=function(E){return E[E.COMPLETE=0]="COMPLETE",E[E.FAILED=1]="FAILED",E[E.REDIRECTING=2]="REDIRECTING",E}(Ai||{});function Hi(E,S){E.events.pipe((0,ke.h)(y=>y instanceof X||y instanceof de||y instanceof Ae||y instanceof Oe),(0,_e.U)(y=>y instanceof X||y instanceof Oe?Ai.COMPLETE:y instanceof de&&(0===y.code||1===y.code)?Ai.REDIRECTING:Ai.FAILED),(0,ke.h)(y=>y!==Ai.REDIRECTING),(0,xe.q)(1)).subscribe(()=>{S()})}function Fi(E){throw E}function ti(E,S,y){return S.parse("/")}const cs={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ts={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let er=(()=>{class E{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,t.f3M)(t.c2e),this.isNgZoneEnabled=!1,this._events=new ye.x,this.options=(0,t.f3M)(Jn,{optional:!0})||{},this.pendingTasks=(0,t.f3M)(t.HDt),this.errorHandler=this.options.errorHandler||Fi,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||ti,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,t.f3M)(ei),this.routeReuseStrategy=(0,t.f3M)(yr),this.titleStrategy=(0,t.f3M)(Bn),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=(0,t.f3M)(le,{optional:!0})?.flat()??[],this.navigationTransitions=(0,t.f3M)(Ct),this.urlSerializer=(0,t.f3M)(Er),this.location=(0,t.f3M)(ce.Ye),this.componentInputBindingEnabled=!!(0,t.f3M)(ze,{optional:!0}),this.eventsSubscription=new q.w0,this.isNgZoneEnabled=(0,t.f3M)(t.R0b)instanceof t.R0b&&t.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Sn,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ci(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(y=>{this.lastSuccessfulId=y.id,this.currentPageId=this.browserPageId},y=>{this.console.warn(`Unhandled Navigation Error: ${y}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const y=this.navigationTransitions.events.subscribe(x=>{try{const{currentTransition:G}=this.navigationTransitions;if(null===G)return void(li(x)&&this._events.next(x));if(x instanceof D)Jt(G.source)&&(this.browserUrlTree=G.extractedUrl);else if(x instanceof Oe)this.rawUrlTree=G.rawUrl;else if(x instanceof mt){if("eager"===this.urlUpdateStrategy){if(!G.extras.skipLocationChange){const he=this.urlHandlingStrategy.merge(G.urlAfterRedirects,G.rawUrl);this.setBrowserUrl(he,G)}this.browserUrlTree=G.urlAfterRedirects}}else if(x instanceof Ti)this.currentUrlTree=G.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(G.urlAfterRedirects,G.rawUrl),this.routerState=G.targetRouterState,"deferred"===this.urlUpdateStrategy&&(G.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,G),this.browserUrlTree=G.urlAfterRedirects);else if(x instanceof de)0!==x.code&&1!==x.code&&(this.navigated=!0),(3===x.code||2===x.code)&&this.restoreHistory(G);else if(x instanceof hs){const he=this.urlHandlingStrategy.merge(x.url,G.currentRawUrl),Me={skipLocationChange:G.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Jt(G.source)};this.scheduleNavigation(he,Z,null,Me,{resolve:G.resolve,reject:G.reject,promise:G.promise})}x instanceof Ae&&this.restoreHistory(G,!0),x instanceof X&&(this.navigated=!0),li(x)&&this._events.next(x)}catch(G){this.navigationTransitions.transitionAbortSubject.next(G)}});this.eventsSubscription.add(y)}resetRootComponentType(y){this.routerState.root.component=y,this.navigationTransitions.rootComponentType=y}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const y=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Z,y)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(y=>{const x="popstate"===y.type?"popstate":"hashchange";"popstate"===x&&setTimeout(()=>{this.navigateToSyncWithBrowser(y.url,x,y.state)},0)}))}navigateToSyncWithBrowser(y,x,G){const he={replaceUrl:!0},Me=G?.navigationId?G:null;if(G){const ft={...G};delete ft.navigationId,delete ft.\u0275routerPageId,0!==Object.keys(ft).length&&(he.state=ft)}const at=this.parseUrl(y);this.scheduleNavigation(at,x,Me,he)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(y){this.config=y.map(rs),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(y,x={}){const{relativeTo:G,queryParams:he,fragment:Me,queryParamsHandling:at,preserveFragment:ft}=x,tn=ft?this.currentUrlTree.fragment:Me;let Rr,kn=null;switch(at){case"merge":kn={...this.currentUrlTree.queryParams,...he};break;case"preserve":kn=this.currentUrlTree.queryParams;break;default:kn=he||null}null!==kn&&(kn=this.removeEmptyProps(kn));try{Rr=Le(G?G.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof y[0]||!y[0].startsWith("/"))&&(y=[]),Rr=this.currentUrlTree.root}return Ue(Rr,y,kn,tn??null)}navigateByUrl(y,x={skipLocationChange:!1}){const G=$n(y)?y:this.parseUrl(y),he=this.urlHandlingStrategy.merge(G,this.rawUrlTree);return this.scheduleNavigation(he,Z,null,x)}navigate(y,x={skipLocationChange:!1}){return function ws(E){for(let S=0;S{const he=y[G];return null!=he&&(x[G]=he),x},{})}scheduleNavigation(y,x,G,he,Me){if(this.disposed)return Promise.resolve(!1);let at,ft,tn;Me?(at=Me.resolve,ft=Me.reject,tn=Me.promise):tn=new Promise((Rr,or)=>{at=Rr,ft=or});const kn=this.pendingTasks.add();return Hi(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(kn))}),this.navigationTransitions.handleNavigationRequest({source:x,restoredState:G,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:y,extras:he,resolve:at,reject:ft,promise:tn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),tn.catch(Rr=>Promise.reject(Rr))}setBrowserUrl(y,x){const G=this.urlSerializer.serialize(y);if(this.location.isCurrentPathEqualTo(G)||x.extras.replaceUrl){const Me={...x.extras.state,...this.generateNgRouterState(x.id,this.browserPageId)};this.location.replaceState(G,"",Me)}else{const he={...x.extras.state,...this.generateNgRouterState(x.id,this.browserPageId+1)};this.location.go(G,"",he)}}restoreHistory(y,x=!1){if("computed"===this.canceledNavigationResolution){const he=this.currentPageId-this.browserPageId;0!==he?this.location.historyGo(he):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===he&&(this.resetState(y),this.browserUrlTree=y.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(x&&this.resetState(y),this.resetUrlToCurrentUrlTree())}resetState(y){this.routerState=y.currentRouterState,this.currentUrlTree=y.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,y.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(y,x){return"computed"===this.canceledNavigationResolution?{navigationId:y,\u0275routerPageId:x}:{navigationId:y}}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();function li(E){return!(E instanceof Ti||E instanceof hs)}let Di=(()=>{class E{constructor(y,x,G,he,Me,at){this.router=y,this.route=x,this.tabIndexAttribute=G,this.renderer=he,this.el=Me,this.locationStrategy=at,this.href=null,this.commands=null,this.onChanges=new ye.x,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const ft=Me.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===ft||"area"===ft,this.isAnchorElement?this.subscription=y.events.subscribe(tn=>{tn instanceof X&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(y){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",y)}ngOnChanges(y){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(y){null!=y?(this.commands=Array.isArray(y)?y:[y],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(y,x,G,he,Me){return!!(null===this.urlTree||this.isAnchorElement&&(0!==y||x||G||he||Me||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const y=null===this.href?null:(0,t.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",y)}applyAttributeValue(y,x){const G=this.renderer,he=this.el.nativeElement;null!==x?G.setAttribute(he,y,x):G.removeAttribute(he,y)}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#e=this.\u0275fac=function(x){return new(x||E)(t.Y36(er),t.Y36(wi),t.$8M("tabindex"),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(ce.S$))};static#t=this.\u0275dir=t.lG2({type:E,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(x,G){1&x&&t.NdJ("click",function(Me){return G.onClick(Me.button,Me.ctrlKey,Me.shiftKey,Me.altKey,Me.metaKey)}),2&x&&t.uIk("target",G.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",t.VuI],skipLocationChange:["skipLocationChange","skipLocationChange",t.VuI],replaceUrl:["replaceUrl","replaceUrl",t.VuI],routerLink:"routerLink"},standalone:!0,features:[t.Xq5,t.TTD]})}return E})(),ga=(()=>{class E{get isActive(){return this._isActive}constructor(y,x,G,he,Me){this.router=y,this.element=x,this.renderer=G,this.cdr=he,this.link=Me,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.vpe,this.routerEventsSubscription=y.events.subscribe(at=>{at instanceof X&&this.update()})}ngAfterContentInit(){(0,L.of)(this.links.changes,(0,L.of)(null)).pipe((0,je.J)()).subscribe(y=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const y=[...this.links.toArray(),this.link].filter(x=>!!x).map(x=>x.onChanges);this.linkInputChangesSubscription=(0,w.D)(y).pipe((0,je.J)()).subscribe(x=>{this._isActive!==this.isLinkActive(this.router)(x)&&this.update()})}set routerLinkActive(y){const x=Array.isArray(y)?y:y.split(" ");this.classes=x.filter(G=>!!G)}ngOnChanges(y){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const y=this.hasActiveLinks();this._isActive!==y&&(this._isActive=y,this.cdr.markForCheck(),this.classes.forEach(x=>{y?this.renderer.addClass(this.element.nativeElement,x):this.renderer.removeClass(this.element.nativeElement,x)}),y&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(y))})}isLinkActive(y){const x=function Oo(E){return!!E.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return G=>!!G.urlTree&&y.isActive(G.urlTree,x)}hasActiveLinks(){const y=this.isLinkActive(this.router);return this.link&&y(this.link)||this.links.some(y)}static#e=this.\u0275fac=function(x){return new(x||E)(t.Y36(er),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(Di,8))};static#t=this.\u0275dir=t.lG2({type:E,selectors:[["","routerLinkActive",""]],contentQueries:function(x,G,he){if(1&x&&t.Suo(he,Di,5),2&x){let Me;t.iGM(Me=t.CRH())&&(G.links=Me)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[t.TTD]})}return E})();class Yi{}let Io=(()=>{class E{constructor(y,x,G,he,Me){this.router=y,this.injector=G,this.preloadingStrategy=he,this.loader=Me}setUpPreloading(){this.subscription=this.router.events.pipe((0,ke.h)(y=>y instanceof X),(0,Ee.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(y,x){const G=[];for(const he of x){he.providers&&!he._injector&&(he._injector=(0,t.MMx)(he.providers,y,`Route: ${he.path}`));const Me=he._injector??y,at=he._loadedInjector??Me;(he.loadChildren&&!he._loadedRoutes&&void 0===he.canLoad||he.loadComponent&&!he._loadedComponent)&&G.push(this.preloadConfig(Me,he)),(he.children||he._loadedRoutes)&&G.push(this.processRoutes(at,he.children??he._loadedRoutes))}return(0,w.D)(G).pipe((0,je.J)())}preloadConfig(y,x){return this.preloadingStrategy.preload(x,()=>{let G;G=x.loadChildren&&void 0===x.canLoad?this.loader.loadChildren(y,x):(0,L.of)(null);const he=G.pipe((0,vt.z)(Me=>null===Me?(0,L.of)(void 0):(x._loadedRoutes=Me.routes,x._loadedInjector=Me.injector,this.processRoutes(Me.injector??y,Me.routes))));if(x.loadComponent&&!x._loadedComponent){const Me=this.loader.loadComponent(x);return(0,w.D)([he,Me]).pipe((0,je.J)())}return he})}static#e=this.\u0275fac=function(x){return new(x||E)(t.LFG(er),t.LFG(t.Sil),t.LFG(t.lqb),t.LFG(Yi),t.LFG(U))};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();const $s=new t.OlP("");let us=(()=>{class E{constructor(y,x,G,he,Me={}){this.urlSerializer=y,this.transitions=x,this.viewportScroller=G,this.zone=he,this.options=Me,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Me.scrollPositionRestoration=Me.scrollPositionRestoration||"disabled",Me.anchorScrolling=Me.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(y=>{y instanceof D?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=y.navigationTrigger,this.restoredId=y.restoredState?y.restoredState.navigationId:0):y instanceof X?(this.lastId=y.id,this.scheduleScrollEvent(y,this.urlSerializer.parse(y.urlAfterRedirects).fragment)):y instanceof Oe&&0===y.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(y,this.urlSerializer.parse(y.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(y=>{y instanceof _i&&(y.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(y.position):y.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(y.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(y,x){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new _i(y,"popstate"===this.lastSource?this.store[this.restoredId]:null,x))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(x){t.$Z()};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac})}return E})();function xi(E,S){return{\u0275kind:E,\u0275providers:S}}function Yo(){const E=(0,t.f3M)(t.zs3);return S=>{const y=E.get(t.z2F);if(S!==y.components[0])return;const x=E.get(er),G=E.get(_a);1===E.get(Ro)&&x.initialNavigation(),E.get(Ss,null,t.XFs.Optional)?.setUpPreloading(),E.get($s,null,t.XFs.Optional)?.init(),x.resetRootComponentType(y.componentTypes[0]),G.closed||(G.next(),G.complete(),G.unsubscribe())}}const _a=new t.OlP("",{factory:()=>new ye.x}),Ro=new t.OlP("",{providedIn:"root",factory:()=>1}),Ss=new t.OlP("");function ml(E){return xi(0,[{provide:Ss,useExisting:Io},{provide:Yi,useExisting:E}])}const mr=new t.OlP("ROUTER_FORROOT_GUARD"),W=[ce.Ye,{provide:Er,useClass:it},er,Bi,{provide:wi,useFactory:function ma(E){return E.routerState.root},deps:[er]},U,[]];function p(){return new t.PXZ("Router",er)}let v=(()=>{class E{constructor(y){}static forRoot(y,x){return{ngModule:E,providers:[W,[],{provide:le,multi:!0,useValue:y},{provide:mr,useFactory:Ne,deps:[[er,new t.FiY,new t.tp0]]},{provide:Jn,useValue:x||{}},x?.useHash?{provide:ce.S$,useClass:ce.Do}:{provide:ce.S$,useClass:ce.b0},{provide:$s,useFactory:()=>{const E=(0,t.f3M)(ce.EM),S=(0,t.f3M)(t.R0b),y=(0,t.f3M)(Jn),x=(0,t.f3M)(Ct),G=(0,t.f3M)(Er);return y.scrollOffset&&E.setOffset(y.scrollOffset),new us(G,x,E,S,y)}},x?.preloadingStrategy?ml(x.preloadingStrategy).\u0275providers:[],{provide:t.PXZ,multi:!0,useFactory:p},x?.initialNavigation?Fe(x):[],x?.bindToComponentInputs?xi(8,[Ve,{provide:ze,useExisting:Ve}]).\u0275providers:[],[{provide:st,useFactory:Yo},{provide:t.tb,multi:!0,useExisting:st}]]}}static forChild(y){return{ngModule:E,providers:[{provide:le,multi:!0,useValue:y}]}}static#e=this.\u0275fac=function(x){return new(x||E)(t.LFG(mr,8))};static#t=this.\u0275mod=t.oAB({type:E});static#n=this.\u0275inj=t.cJS({})}return E})();function Ne(E){return"guarded"}function Fe(E){return["disabled"===E.initialNavigation?xi(3,[{provide:t.ip1,multi:!0,useFactory:()=>{const S=(0,t.f3M)(er);return()=>{S.setUpLocationChangeListener()}}},{provide:Ro,useValue:2}]).\u0275providers:[],"enabledBlocking"===E.initialNavigation?xi(2,[{provide:Ro,useValue:0},{provide:t.ip1,multi:!0,deps:[t.zs3],useFactory:S=>{const y=S.get(ce.V_,Promise.resolve());return()=>y.then(()=>new Promise(x=>{const G=S.get(er),he=S.get(_a);Hi(G,()=>{x(!0)}),S.get(Ct).afterPreactivation=()=>(x(!0),he.closed?(0,L.of)(void 0):he),G.initialNavigation()}))}}]).\u0275providers:[]]}const st=new t.OlP("")},253:(Pe,V,a)=>{"use strict";a.d(V,{gY:()=>vo,Kz:()=>Da,DO:()=>ri,s5:()=>Ou,NG:()=>bc,jt:()=>Lo,TH:()=>Sc,Vi:()=>Ya,iD:()=>Pu,J4:()=>Cu,Be:()=>Eu,FF:()=>Lu,IJ:()=>Hc,Gk:()=>Po,gW:()=>us,k9:()=>Io,Iv:()=>Yu,_L:()=>Pf,dR:()=>kc});var t=a(5879),d=a(5592),w=a(6232),L=a(2096),h=a(8645),O=a(2438),R=a(4825),F=a(4829);const{isArray:P}=Array;function B(l){return 1===l.length&&P(l[0])?l[0]:l}var $=a(8251);function f(...l){return 1===(l=B(l)).length?(0,F.Xf)(l[0]):new d.y(function j(l){return C=>{let s=[];for(let c=0;s&&!C.closed&&c{if(s){for(let H=0;H{let m=s.map(()=>[]),H=s.map(()=>!1);c.add(()=>{m=H=null});for(let ne=0;!c.closed&&ne{if(m[ne].push(Be),m.every(Ge=>Ge.length)){const Ge=m.map(ut=>ut.shift());c.next(C?C(...Ge):Ge),m.some((ut,pt)=>!ut.length&&H[pt])&&c.complete()}},()=>{H[ne]=!0,!m[ne].length&&c.complete()}));return()=>{m=H=null}}):w.E}var k=a(5619),Te=a(5211),ye=a(9773),ce=a(2181),_e=a(8180),ve=a(9397),xe=a(7398),be=a(2460),ke=a(6321),vt=a(9360),rt=a(2420),qe=a(975),_t=a(1631);function $e(l,C){return C?s=>(0,Te.z)(C.pipe((0,_e.q)(1),function Mt(){return(0,vt.e)((l,C)=>{l.subscribe((0,$.x)(C,rt.Z))})}()),s.pipe($e(l))):(0,_t.z)((s,c)=>(0,F.Xf)(l(s,c)).pipe((0,_e.q)(1),(0,qe.h)(s)))}function Ee(l,C=ke.z){const s=(0,R.H)(l,C);return $e(()=>s)}var Ze=a(4664),se=(a(7921),a(3997),a(836),a(3020)),ae=a(6814),fe=a(6223),De={left:"right",right:"left",bottom:"top",top:"bottom"};function je(l){return l.replace(/left|right|bottom|top/g,function(C){return De[C]})}function Xe(l){return l.split("-")[0]}var tt={start:"end",end:"start"};function wt(l){return l.replace(/start|end/g,function(C){return tt[C]})}var It="top",Je="bottom",Tt="right",et="left",Pt="auto",Zt=[It,Je,Tt,et],dn="start",Rn="end",Ye="viewport",At="popper",nn=Zt.reduce(function(l,C){return l.concat([C+"-"+dn,C+"-"+Rn])},[]),Et=[].concat(Zt,[Pt]).reduce(function(l,C){return l.concat([C,C+"-"+dn,C+"-"+Rn])},[]),Er=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function it(l){if(null==l)return window;if("[object Window]"!==l.toString()){var C=l.ownerDocument;return C&&C.defaultView||window}return l}function Ut(l){return l instanceof it(l).Element||l instanceof Element}function Qt(l){return l instanceof it(l).HTMLElement||l instanceof HTMLElement}function Cn(l){return!(typeof ShadowRoot>"u")&&(l instanceof it(l).ShadowRoot||l instanceof ShadowRoot)}function An(l){return((Ut(l)?l.ownerDocument:l.document)||window.document).documentElement}var In=Math.max,nr=Math.min,Dr=Math.round;function wr(){var l=navigator.userAgentData;return null!=l&&l.brands&&Array.isArray(l.brands)?l.brands.map(function(C){return C.brand+"/"+C.version}).join(" "):navigator.userAgent}function Or(){return!/^((?!chrome|android).)*safari/i.test(wr())}function Ir(l,C,s){void 0===C&&(C=!1),void 0===s&&(s=!1);var c=l.getBoundingClientRect(),m=1,H=1;C&&Qt(l)&&(m=l.offsetWidth>0&&Dr(c.width)/l.offsetWidth||1,H=l.offsetHeight>0&&Dr(c.height)/l.offsetHeight||1);var Be=(Ut(l)?it(l):window).visualViewport,Ge=!Or()&&s,ut=(c.left+(Ge&&Be?Be.offsetLeft:0))/m,pt=(c.top+(Ge&&Be?Be.offsetTop:0))/H,sn=c.width/m,Gt=c.height/H;return{width:sn,height:Gt,top:pt,right:ut+sn,bottom:pt+Gt,left:ut,x:ut,y:pt}}function Br(l){var C=it(l);return{scrollLeft:C.pageXOffset,scrollTop:C.pageYOffset}}function oi(l){return Ir(An(l)).left+Br(l).scrollLeft}function dt(l){return it(l).getComputedStyle(l)}function we(l){return l?(l.nodeName||"").toLowerCase():null}function He(l){return"html"===we(l)?l:l.assignedSlot||l.parentNode||(Cn(l)?l.host:null)||An(l)}function yt(l){var C=dt(l);return/auto|scroll|overlay|hidden/.test(C.overflow+C.overflowY+C.overflowX)}function Wt(l){return["html","body","#document"].indexOf(we(l))>=0?l.ownerDocument.body:Qt(l)&&yt(l)?l:Wt(He(l))}function Vt(l,C){var s;void 0===C&&(C=[]);var c=Wt(l),m=c===(null==(s=l.ownerDocument)?void 0:s.body),H=it(c),ne=m?[H].concat(H.visualViewport||[],yt(c)?c:[]):c,Be=C.concat(ne);return m?Be:Be.concat(Vt(He(ne)))}function Un(l){return["table","td","th"].indexOf(we(l))>=0}function on(l){return Qt(l)&&"fixed"!==dt(l).position?l.offsetParent:null}function ln(l){for(var C=it(l),s=on(l);s&&Un(s)&&"static"===dt(s).position;)s=on(s);return s&&("html"===we(s)||"body"===we(s)&&"static"===dt(s).position)?C:s||function rr(l){var C=/firefox/i.test(wr());if(/Trident/i.test(wr())&&Qt(l)&&"fixed"===dt(l).position)return null;var m=He(l);for(Cn(m)&&(m=m.host);Qt(m)&&["html","body"].indexOf(we(m))<0;){var H=dt(m);if("none"!==H.transform||"none"!==H.perspective||"paint"===H.contain||-1!==["transform","perspective"].indexOf(H.willChange)||C&&"filter"===H.willChange||C&&H.filter&&"none"!==H.filter)return m;m=m.parentNode}return null}(l)||C}function $n(l,C){var s=C.getRootNode&&C.getRootNode();if(l.contains(C))return!0;if(s&&Cn(s)){var c=C;do{if(c&&l.isSameNode(c))return!0;c=c.parentNode||c.host}while(c)}return!1}function Qe(l){return Object.assign({},l,{left:l.x,top:l.y,right:l.x+l.width,bottom:l.y+l.height})}function Ue(l,C,s){return C===Ye?Qe(function Zn(l,C){var s=it(l),c=An(l),m=s.visualViewport,H=c.clientWidth,ne=c.clientHeight,Be=0,Ge=0;if(m){H=m.width,ne=m.height;var ut=Or();(ut||!ut&&"fixed"===C)&&(Be=m.offsetLeft,Ge=m.offsetTop)}return{width:H,height:ne,x:Be+oi(l),y:Ge}}(l,s)):Ut(C)?function Le(l,C){var s=Ir(l,!1,"fixed"===C);return s.top=s.top+l.clientTop,s.left=s.left+l.clientLeft,s.bottom=s.top+l.clientHeight,s.right=s.left+l.clientWidth,s.width=l.clientWidth,s.height=l.clientHeight,s.x=s.left,s.y=s.top,s}(C,s):Qe(function ot(l){var C,s=An(l),c=Br(l),m=null==(C=l.ownerDocument)?void 0:C.body,H=In(s.scrollWidth,s.clientWidth,m?m.scrollWidth:0,m?m.clientWidth:0),ne=In(s.scrollHeight,s.clientHeight,m?m.scrollHeight:0,m?m.clientHeight:0),Be=-c.scrollLeft+oi(l),Ge=-c.scrollTop;return"rtl"===dt(m||s).direction&&(Be+=In(s.clientWidth,m?m.clientWidth:0)-H),{width:H,height:ne,x:Be,y:Ge}}(An(l)))}function kt(l){return l.split("-")[1]}function Ft(l){return["top","bottom"].indexOf(l)>=0?"x":"y"}function an(l){var Ge,C=l.reference,s=l.element,c=l.placement,m=c?Xe(c):null,H=c?kt(c):null,ne=C.x+C.width/2-s.width/2,Be=C.y+C.height/2-s.height/2;switch(m){case It:Ge={x:ne,y:C.y-s.height};break;case Je:Ge={x:ne,y:C.y+C.height};break;case Tt:Ge={x:C.x+C.width,y:Be};break;case et:Ge={x:C.x-s.width,y:Be};break;default:Ge={x:C.x,y:C.y}}var ut=m?Ft(m):null;if(null!=ut){var pt="y"===ut?"height":"width";switch(H){case dn:Ge[ut]=Ge[ut]-(C[pt]/2-s[pt]/2);break;case Rn:Ge[ut]=Ge[ut]+(C[pt]/2-s[pt]/2)}}return Ge}function pr(l){return Object.assign({},{top:0,right:0,bottom:0,left:0},l)}function jr(l,C){return C.reduce(function(s,c){return s[c]=l,s},{})}function Fr(l,C){void 0===C&&(C={});var c=C.placement,m=void 0===c?l.placement:c,H=C.strategy,ne=void 0===H?l.strategy:H,Be=C.boundary,Ge=void 0===Be?"clippingParents":Be,ut=C.rootBoundary,pt=void 0===ut?Ye:ut,sn=C.elementContext,Gt=void 0===sn?At:sn,un=C.altBoundary,Mr=void 0!==un&&un,lr=C.padding,Pn=void 0===lr?0:lr,Cr=pr("number"!=typeof Pn?Pn:jr(Pn,Zt)),si=l.rects.popper,br=l.elements[Mr?Gt===At?"reference":At:Gt],Lr=function Rt(l,C,s,c){var m="clippingParents"===C?function bt(l){var C=Vt(He(l)),c=["absolute","fixed"].indexOf(dt(l).position)>=0&&Qt(l)?ln(l):l;return Ut(c)?C.filter(function(m){return Ut(m)&&$n(m,c)&&"body"!==we(m)}):[]}(l):[].concat(C),H=[].concat(m,[s]),Be=H.reduce(function(Ge,ut){var pt=Ue(l,ut,c);return Ge.top=In(pt.top,Ge.top),Ge.right=nr(pt.right,Ge.right),Ge.bottom=nr(pt.bottom,Ge.bottom),Ge.left=In(pt.left,Ge.left),Ge},Ue(l,H[0],c));return Be.width=Be.right-Be.left,Be.height=Be.bottom-Be.top,Be.x=Be.left,Be.y=Be.top,Be}(Ut(br)?br:br.contextElement||An(l.elements.popper),Ge,pt,ne),kr=Ir(l.elements.reference),Qr=an({reference:kr,element:si,strategy:"absolute",placement:m}),qr=Qe(Object.assign({},si,Qr)),gi=Gt===At?qr:kr,mi={top:Lr.top-gi.top+Cr.top,bottom:gi.bottom-Lr.bottom+Cr.bottom,left:Lr.left-gi.left+Cr.left,right:gi.right-Lr.right+Cr.right},ki=l.modifiersData.offset;if(Gt===At&&ki){var ks=ki[m];Object.keys(mi).forEach(function(Xi){var ko=[Tt,Je].indexOf(Xi)>=0?1:-1,As=[It,Je].indexOf(Xi)>=0?"y":"x";mi[Xi]+=ks[As]*ko})}return mi}const Xn={name:"flip",enabled:!0,phase:"main",fn:function Zr(l){var C=l.state,s=l.options,c=l.name;if(!C.modifiersData[c]._skip){for(var m=s.mainAxis,H=void 0===m||m,ne=s.altAxis,Be=void 0===ne||ne,Ge=s.fallbackPlacements,ut=s.padding,pt=s.boundary,sn=s.rootBoundary,Gt=s.altBoundary,un=s.flipVariations,Mr=void 0===un||un,lr=s.allowedAutoPlacements,Pn=C.options.placement,Cr=Xe(Pn),si=Ge||(Cr!==Pn&&Mr?function Hr(l){if(Xe(l)===Pt)return[];var C=je(l);return[wt(l),C,wt(C)]}(Pn):[je(Pn)]),br=[Pn].concat(si).reduce(function(Sa,Bo){return Sa.concat(Xe(Bo)===Pt?function Ar(l,C){void 0===C&&(C={});var m=C.boundary,H=C.rootBoundary,ne=C.padding,Be=C.flipVariations,Ge=C.allowedAutoPlacements,ut=void 0===Ge?Et:Ge,pt=kt(C.placement),sn=pt?Be?nn:nn.filter(function(Mr){return kt(Mr)===pt}):Zt,Gt=sn.filter(function(Mr){return ut.indexOf(Mr)>=0});0===Gt.length&&(Gt=sn);var un=Gt.reduce(function(Mr,lr){return Mr[lr]=Fr(l,{placement:lr,boundary:m,rootBoundary:H,padding:ne})[Xe(lr)],Mr},{});return Object.keys(un).sort(function(Mr,lr){return un[Mr]-un[lr]})}(C,{placement:Bo,boundary:pt,rootBoundary:sn,padding:ut,flipVariations:Mr,allowedAutoPlacements:lr}):Bo)},[]),Lr=C.rects.reference,kr=C.rects.popper,Qr=new Map,qr=!0,gi=br[0],mi=0;mi=0,As=ko?"width":"height",xs=Fr(C,{placement:ki,boundary:pt,rootBoundary:sn,altBoundary:Gt,padding:ut}),Ys=ko?Xi?Tt:et:Xi?Je:It;Lr[As]>kr[As]&&(Ys=je(Ys));var Bl=je(Ys),ia=[];if(H&&ia.push(xs[ks]<=0),Be&&ia.push(xs[Ys]<=0,xs[Bl]<=0),ia.every(function(Sa){return Sa})){gi=ki,qr=!1;break}Qr.set(ki,ia)}if(qr)for(var Js=function(Bo){var sl=br.find(function(Hl){var sa=Qr.get(Hl);if(sa)return sa.slice(0,Bo).every(function(Vl){return Vl})});if(sl)return gi=sl,"break"},uo=Mr?3:1;uo>0&&"break"!==Js(uo);uo--);C.placement!==gi&&(C.modifiersData[c]._skip=!0,C.placement=gi,C.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ur(l,C,s){return In(l,nr(C,s))}function pe(l){var C=Ir(l),s=l.offsetWidth,c=l.offsetHeight;return Math.abs(C.width-s)<=1&&(s=C.width),Math.abs(C.height-c)<=1&&(c=C.height),{x:l.offsetLeft,y:l.offsetTop,width:s,height:c}}const K={name:"preventOverflow",enabled:!0,phase:"main",fn:function Z(l){var C=l.state,s=l.options,c=l.name,m=s.mainAxis,H=void 0===m||m,ne=s.altAxis,Be=void 0!==ne&&ne,Gt=s.tether,un=void 0===Gt||Gt,Mr=s.tetherOffset,lr=void 0===Mr?0:Mr,Pn=Fr(C,{boundary:s.boundary,rootBoundary:s.rootBoundary,padding:s.padding,altBoundary:s.altBoundary}),Cr=Xe(C.placement),cr=kt(C.placement),si=!cr,br=Ft(Cr),Lr=function qn(l){return"x"===l?"y":"x"}(br),kr=C.modifiersData.popperOffsets,Qr=C.rects.reference,qr=C.rects.popper,gi="function"==typeof lr?lr(Object.assign({},C.rects,{placement:C.placement})):lr,mi="number"==typeof gi?{mainAxis:gi,altAxis:gi}:Object.assign({mainAxis:0,altAxis:0},gi),ki=C.modifiersData.offset?C.modifiersData.offset[C.placement]:null,ks={x:0,y:0};if(kr){if(H){var Xi,ko="y"===br?It:et,As="y"===br?Je:Tt,xs="y"===br?"height":"width",Ys=kr[br],Bl=Ys+Pn[ko],ia=Ys-Pn[As],Ul=un?-qr[xs]/2:0,Js=cr===dn?Qr[xs]:qr[xs],uo=cr===dn?-qr[xs]:-Qr[xs],jl=C.elements.arrow,Sa=un&&jl?pe(jl):{width:0,height:0},Bo=C.modifiersData["arrow#persistent"]?C.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},sl=Bo[ko],Hl=Bo[As],sa=Ur(0,Qr[xs],Sa[xs]),Vl=si?Qr[xs]/2-Ul-sa-sl-mi.mainAxis:Js-sa-sl-mi.mainAxis,Uf=si?-Qr[xs]/2+Ul+sa+Hl+mi.mainAxis:uo+sa+Hl+mi.mainAxis,Vc=C.elements.arrow&&ln(C.elements.arrow),jf=Vc?"y"===br?Vc.clientTop||0:Vc.clientLeft||0:0,ed=null!=(Xi=ki?.[br])?Xi:0,yo=Ys+Uf-ed,Ma=Ur(un?nr(Bl,Ys+Vl-ed-jf):Bl,Ys,un?In(ia,yo):ia);kr[br]=Ma,ks[br]=Ma-Ys}if(Be){var $c,Aa=kr[Lr],Wc="y"===Lr?"height":"width",Hf=Aa+Pn["x"===br?It:et],Wl=Aa-Pn["x"===br?Je:Tt],ol=-1!==[It,et].indexOf(Cr),Vf=null!=($c=ki?.[Lr])?$c:0,$f=ol?Hf:Aa-Qr[Wc]-qr[Wc]-Vf+mi.altAxis,Gc=ol?Aa+Qr[Wc]+qr[Wc]-Vf-mi.altAxis:Wl,rd=un&&ol?function ai(l,C,s){var c=Ur(l,C,s);return c>s?s:c}($f,Aa,Gc):Ur(un?$f:Hf,Aa,un?Gc:Wl);kr[Lr]=rd,ks[Lr]=rd-Aa}C.modifiersData[c]=ks}},requiresIfExists:["offset"]},Oe={name:"arrow",enabled:!0,phase:"main",fn:function X(l){var C,s=l.state,c=l.name,m=l.options,H=s.elements.arrow,ne=s.modifiersData.popperOffsets,Be=Xe(s.placement),Ge=Ft(Be),pt=[et,Tt].indexOf(Be)>=0?"height":"width";if(H&&ne){var sn=function(C,s){return pr("number"!=typeof(C="function"==typeof C?C(Object.assign({},s.rects,{placement:s.placement})):C)?C:jr(C,Zt))}(m.padding,s),Gt=pe(H),un="y"===Ge?It:et,Mr="y"===Ge?Je:Tt,lr=s.rects.reference[pt]+s.rects.reference[Ge]-ne[Ge]-s.rects.popper[pt],Pn=ne[Ge]-s.rects.reference[Ge],Cr=ln(H),cr=Cr?"y"===Ge?Cr.clientHeight||0:Cr.clientWidth||0:0,kr=cr/2-Gt[pt]/2+(lr/2-Pn/2),Qr=Ur(sn[un],kr,cr-Gt[pt]-sn[Mr]);s.modifiersData[c]=((C={})[Ge]=Qr,C.centerOffset=Qr-kr,C)}},effect:function de(l){var C=l.state,c=l.options.element,m=void 0===c?"[data-popper-arrow]":c;null!=m&&("string"==typeof m&&!(m=C.elements.popper.querySelector(m))||$n(C.elements.popper,m)&&(C.elements.arrow=m))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function cn(l,C,s){void 0===s&&(s=!1);var c=Qt(C),m=Qt(C)&&function $t(l){var C=l.getBoundingClientRect(),s=Dr(C.width)/l.offsetWidth||1,c=Dr(C.height)/l.offsetHeight||1;return 1!==s||1!==c}(C),H=An(C),ne=Ir(l,m,s),Be={scrollLeft:0,scrollTop:0},Ge={x:0,y:0};return(c||!c&&!s)&&(("body"!==we(C)||yt(H))&&(Be=function mt(l){return l!==it(l)&&Qt(l)?function Ae(l){return{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}}(l):Br(l)}(C)),Qt(C)?((Ge=Ir(C,!0)).x+=C.clientLeft,Ge.y+=C.clientTop):H&&(Ge.x=oi(H))),{x:ne.left+Be.scrollLeft-Ge.x,y:ne.top+Be.scrollTop-Ge.y,width:ne.width,height:ne.height}}function vn(l){var C=new Map,s=new Set,c=[];function m(H){s.add(H.name),[].concat(H.requires||[],H.requiresIfExists||[]).forEach(function(Be){if(!s.has(Be)){var Ge=C.get(Be);Ge&&m(Ge)}}),c.push(H)}return l.forEach(function(H){C.set(H.name,H)}),l.forEach(function(H){s.has(H.name)||m(H)}),c}function Nn(l){var C;return function(){return C||(C=new Promise(function(s){Promise.resolve().then(function(){C=void 0,s(l())})})),C}}var _r={placement:"bottom",modifiers:[],strategy:"absolute"};function zr(){for(var l=arguments.length,C=new Array(l),s=0;s=0?-1:1,H="function"==typeof s?s(Object.assign({},C,{placement:l})):s,ne=H[0],Be=H[1];return ne=ne||0,Be=(Be||0)*m,[et,Tt].indexOf(c)>=0?{x:Be,y:ne}:{x:ne,y:Be}}(sn,C.rects,H),pt},{}),Be=ne[C.placement],ut=Be.y;null!=C.modifiersData.popperOffsets&&(C.modifiersData.popperOffsets.x+=Be.x,C.modifiersData.popperOffsets.y+=ut),C.modifiersData[c]=ne}};function xr(l,C){}function Kt(l,C){if(1&l&&(t.TgZ(0,"button",3),t._uU(1),t.YNc(2,xr,0,0,"ng-template",4),t.qZA()),2&l){const s=C.$implicit;t.Q6J("ngbPanelToggle",s),t.xp6(1),t.hij(" ",s.title," "),t.xp6(1),t.Q6J("ngTemplateOutlet",null==s.titleTpl?null:s.titleTpl.templateRef)}}function Mn(l,C){}function hr(l,C){}function $r(l,C){if(1&l){const s=t.EpF();t.TgZ(0,"div",8),t.NdJ("ngbRef",function(m){t.CHM(s);const H=t.oxw().$implicit;return t.KtG(H.panelDiv=m)}),t.TgZ(1,"div",9),t.YNc(2,hr,0,0,"ng-template",4),t.qZA()()}if(2&l){const s=t.oxw().$implicit;t.s9C("id",s.id),t.uIk("aria-labelledby",s.id+"-header"),t.xp6(2),t.Q6J("ngTemplateOutlet",(null==s.contentTpl?null:s.contentTpl.templateRef)||null)}}const bi=function(l,C){return{$implicit:l,opened:C}};function Nr(l,C){if(1&l&&(t.TgZ(0,"div")(1,"div",5),t.YNc(2,Mn,0,0,"ng-template",6),t.qZA(),t.YNc(3,$r,3,3,"div",7),t.qZA()),2&l){const s=C.$implicit,c=t.oxw(),m=t.MAs(1);t.Tol("accordion-item "+(s.cardClass||"")),t.xp6(1),t.Tol("accordion-header "+(s.type?"bg-"+s.type:c.type?"bg-"+c.type:"")),t.MGl("id","",s.id,"-header"),t.xp6(1),t.Q6J("ngTemplateOutlet",(null==s.headerTpl?null:s.headerTpl.templateRef)||m)("ngTemplateOutletContext",t.WLB(8,bi,s,s.isOpen)),t.xp6(1),t.Q6J("ngIf",!c.destroyOnHide||s.isOpen||s.transitionRunning)}}const Ve=["*"],Yn=["ngbDatepickerDayView",""],sr=["month"],Wr=["year"];function Mi(l,C){if(1&l&&(t.TgZ(0,"option",5),t._uU(1),t.qZA()),2&l){const s=C.$implicit,c=t.oxw();t.Q6J("value",s),t.uIk("aria-label",c.i18n.getMonthFullName(s,c.date.year)),t.xp6(1),t.Oqu(c.i18n.getMonthShortName(s,c.date.year))}}function di(l,C){if(1&l&&(t.TgZ(0,"option",5),t._uU(1),t.qZA()),2&l){const s=C.$implicit,c=t.oxw();t.Q6J("value",s),t.xp6(1),t.Oqu(c.i18n.getYearNumerals(s))}}function ns(l,C){if(1&l){const s=t.EpF();t.TgZ(0,"ngb-datepicker-navigation-select",7),t.NdJ("select",function(m){t.CHM(s);const H=t.oxw();return t.KtG(H.select.emit(m))}),t.qZA()}if(2&l){const s=t.oxw();t.Q6J("date",s.date)("disabled",s.disabled)("months",s.selectBoxes.months)("years",s.selectBoxes.years)}}function bs(l,C){1&l&&t._UZ(0,"div",11)}function Zi(l,C){1&l&&t._UZ(0,"div",11)}function Oi(l,C){if(1&l&&(t.YNc(0,bs,1,0,"div",9),t.TgZ(1,"div",10),t._uU(2),t.qZA(),t.YNc(3,Zi,1,0,"div",9)),2&l){const s=C.$implicit,c=C.index,m=t.oxw(2);t.Q6J("ngIf",c>0),t.xp6(2),t.hij(" ",m.i18n.getMonthLabel(s.firstDate)," "),t.xp6(1),t.Q6J("ngIf",c!==m.months.length-1)}}function Ii(l,C){if(1&l&&t.YNc(0,Oi,4,3,"ng-template",8),2&l){const s=t.oxw();t.Q6J("ngForOf",s.months)}}function Pi(l,C){if(1&l&&(t.TgZ(0,"div",5),t._uU(1),t.qZA()),2&l){const s=t.oxw(2);t.xp6(1),t.Oqu(s.i18n.getWeekLabel())}}function Gn(l,C){if(1&l&&(t.TgZ(0,"div",6),t._uU(1),t.qZA()),2&l){const s=C.$implicit;t.xp6(1),t.Oqu(s)}}function Es(l,C){if(1&l&&(t.TgZ(0,"div",2),t.YNc(1,Pi,2,1,"div",3),t.YNc(2,Gn,2,1,"div",4),t.qZA()),2&l){const s=t.oxw();t.xp6(1),t.Q6J("ngIf",s.datepicker.showWeekNumbers),t.xp6(1),t.Q6J("ngForOf",s.viewModel.weekdays)}}function zi(l,C){if(1&l&&(t.TgZ(0,"div",11),t._uU(1),t.qZA()),2&l){const s=t.oxw(2).$implicit,c=t.oxw();t.xp6(1),t.Oqu(c.i18n.getWeekNumerals(s.number))}}function rs(l,C){}function Pr(l,C){if(1&l&&t.YNc(0,rs,0,0,"ng-template",14),2&l){const s=t.oxw().$implicit,c=t.oxw(3);t.Q6J("ngTemplateOutlet",c.datepicker.dayTemplate)("ngTemplateOutletContext",s.context)}}function gs(l,C){if(1&l){const s=t.EpF();t.TgZ(0,"div",12),t.NdJ("click",function(m){const ne=t.CHM(s).$implicit;return t.oxw(3).doSelect(ne),t.KtG(m.preventDefault())}),t.YNc(1,Pr,1,2,"ng-template",13),t.qZA()}if(2&l){const s=C.$implicit;t.ekj("disabled",s.context.disabled)("hidden",s.hidden)("ngb-dp-today",s.context.today),t.Q6J("tabindex",s.tabindex),t.uIk("aria-label",s.ariaLabel),t.xp6(1),t.Q6J("ngIf",!s.hidden)}}function Ri(l,C){if(1&l&&(t.TgZ(0,"div",8),t.YNc(1,zi,2,1,"div",9),t.YNc(2,gs,2,9,"div",10),t.qZA()),2&l){const s=t.oxw().$implicit,c=t.oxw();t.xp6(1),t.Q6J("ngIf",c.datepicker.showWeekNumbers),t.xp6(1),t.Q6J("ngForOf",s.days)}}function ht(l,C){1&l&&t.YNc(0,Ri,3,2,"div",7),2&l&&t.Q6J("ngIf",!C.$implicit.collapsed)}const pn=["defaultDayTemplate"],lt=["content"];function Ot(l,C){if(1&l&&t._UZ(0,"div",8),2&l){const c=C.currentMonth,m=C.selected,H=C.disabled,ne=C.focused;t.Q6J("date",C.date)("currentMonth",c)("selected",m)("disabled",H)("focused",ne)}}function qt(l,C){if(1&l&&(t.TgZ(0,"div",13),t._uU(1),t.qZA()),2&l){const s=t.oxw().$implicit,c=t.oxw(2);t.xp6(1),t.hij(" ",c.i18n.getMonthLabel(s.firstDate)," ")}}function Kr(l,C){if(1&l&&(t.TgZ(0,"div",10),t.YNc(1,qt,2,1,"div",11),t._UZ(2,"ngb-datepicker-month",12),t.qZA()),2&l){const s=C.$implicit,c=t.oxw(2);t.xp6(1),t.Q6J("ngIf","none"===c.navigation||c.displayMonths>1&&"select"===c.navigation),t.xp6(1),t.Q6J("month",s.firstDate)}}function ji(l,C){if(1&l&&t.YNc(0,Kr,3,2,"div",9),2&l){const s=t.oxw();t.Q6J("ngForOf",s.model.months)}}function ms(l,C){if(1&l){const s=t.EpF();t.TgZ(0,"ngb-datepicker-navigation",14),t.NdJ("navigate",function(m){t.CHM(s);const H=t.oxw();return t.KtG(H.onNavigateEvent(m))})("select",function(m){t.CHM(s);const H=t.oxw();return t.KtG(H.onNavigateDateSelect(m))}),t.qZA()}if(2&l){const s=t.oxw();t.Q6J("date",s.model.firstDate)("months",s.model.months)("disabled",s.model.disabled)("showSelect","select"===s.model.navigation)("prevDisabled",s.model.prevDisabled)("nextDisabled",s.model.nextDisabled)("selectBoxes",s.model.selectBoxes)}}function fi(l,C){}function Hs(l,C){}const po=function(l){return{$implicit:l}},Ds=["dialog"];function _o(l,C){if(1&l&&(t.TgZ(0,"strong",3),t._uU(1),t.qZA()),2&l){const s=t.oxw();t.xp6(1),t.Oqu(s.header)}}function ha(l,C){}function Ao(l,C){if(1&l){const s=t.EpF();t.TgZ(0,"div",4),t.YNc(1,ha,0,0,"ng-template",5),t.TgZ(2,"button",6),t.NdJ("click",function(){t.CHM(s);const m=t.oxw();return t.KtG(m.hide())}),t.qZA()()}if(2&l){const s=t.oxw(),c=t.MAs(1);t.xp6(1),t.Q6J("ngTemplateOutlet",s.contentHeaderTpl||c)}}function Na(l,C){if(1&l&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&l){const s=t.oxw().$implicit,c=t.oxw();t.Tol(c.highlightClass),t.xp6(1),t.Oqu(s)}}function La(l,C){if(1&l&&t._uU(0),2&l){const s=t.oxw().$implicit;t.Oqu(s)}}function oo(l,C){if(1&l&&(t.YNc(0,Na,2,3,"span",1),t.YNc(1,La,1,1,"ng-template",null,2,t.W1O)),2&l){const s=C.odd,c=t.MAs(2);t.Q6J("ngIf",s)("ngIfElse",c)}}function xo(l,C){if(1&l&&t._UZ(0,"ngb-highlight",2),2&l){const c=C.term;t.Q6J("result",(0,C.formatter)(C.result))("term",c)}}function T(l,C){}const le=function(l,C,s){return{result:l,term:C,formatter:s}};function U(l,C){if(1&l){const s=t.EpF();t.TgZ(0,"button",3),t.NdJ("mouseenter",function(){const H=t.CHM(s).index,ne=t.oxw();return t.KtG(ne.markActive(H))})("click",function(){const H=t.CHM(s).$implicit,ne=t.oxw();return t.KtG(ne.select(H))}),t.YNc(1,T,0,0,"ng-template",4),t.qZA()}if(2&l){const s=C.$implicit,c=C.index,m=t.oxw(),H=t.MAs(1);t.ekj("active",c===m.activeIdx),t.Q6J("id",m.id+"-"+c),t.xp6(1),t.Q6J("ngTemplateOutlet",m.resultTemplate||H)("ngTemplateOutletContext",t.kEZ(5,le,s,m.term,m.formatter))}}function ee(l){return parseInt(`${l}`,10)}function Ie(l){return null!=l?`${l}`:""}function Ct(l){return"string"==typeof l}function Jt(l){return!isNaN(ee(l))}function Bn(l){return"number"==typeof l&&isFinite(l)&&Math.floor(l)===l}function dr(l){return null!=l}function Kn(l){return Jt(l)?`0${l}`.slice(-2):""}function Jn(l,C){return l&&l.className&&l.className.split&&l.className.split(/\s+/).indexOf(C)>=0}function Ei(l){return(l||document.body).getBoundingClientRect()}function Hi(l){return l.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Fi(l=document){const C=l?.activeElement;return C?C.shadowRoot?Fi(C.shadowRoot):C:null}const cs={animation:!0,transitionTimerDelayMs:5},Ts=()=>{},{transitionTimerDelayMs:er}=cs,ws=new Map,li=(l,C,s,c)=>{let m=c.context||{};const H=ws.get(C);if(H)switch(c.runningTransition){case"continue":return w.E;case"stop":l.run(()=>H.transition$.complete()),m=Object.assign(H.context,m),ws.delete(C)}const ne=s(C,c.animation,m)||Ts;if(!c.animation||"none"===window.getComputedStyle(C).transitionProperty)return l.run(()=>ne()),(0,L.of)(void 0).pipe(function Ai(l){return C=>new d.y(s=>C.subscribe({next:ne=>l.run(()=>s.next(ne)),error:ne=>l.run(()=>s.error(ne)),complete:()=>l.run(()=>s.complete())}))}(l));const Be=new h.x,Ge=new h.x,ut=Be.pipe(function Se(...l){return C=>(0,Te.z)(C,(0,L.of)(...l))}(!0));ws.set(C,{transition$:Be,complete:()=>{Ge.next(),Ge.complete()},context:m});const pt=function ti(l){const{transitionDelay:C,transitionDuration:s}=window.getComputedStyle(l);return 1e3*(parseFloat(C)+parseFloat(s))}(C);return l.runOutsideAngular(()=>{const sn=(0,O.R)(C,"transitionend").pipe((0,ye.R)(ut),(0,ce.h)(({target:un})=>un===C));f((0,R.H)(pt+er).pipe((0,ye.R)(ut)),sn,Ge).pipe((0,ye.R)(ut)).subscribe(()=>{ws.delete(C),l.run(()=>{ne(),Be.next(),Be.complete()})})}),Be.asObservable()},Oo=(l,C,s)=>{let{direction:c,maxSize:m,dimension:H}=s;const{classList:ne}=l;function Be(){ne.add("collapse"),"show"===c?ne.add("show"):ne.remove("show")}if(C)return m||(m=function ga(l,C){if(typeof navigator>"u")return"0px";const{classList:s}=l,c=s.contains("show");c||s.add("show"),l.style[C]="";const m=l.getBoundingClientRect()[C]+"px";return c||s.remove("show"),m}(l,H),s.maxSize=m,l.style[H]="show"!==c?m:"0px",ne.remove("collapse"),ne.remove("collapsing"),ne.remove("show"),Ei(l),ne.add("collapsing")),l.style[H]="show"===c?m:"0px",()=>{Be(),ne.remove("collapsing"),l.style[H]=""};Be()};let Yi=(()=>{class l{constructor(){this.animation=cs.animation}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Vi=(()=>{class l{constructor(s){this._ngbConfig=s,this.closeOthers=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(Yi))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),gl=0,Io=(()=>{class l{constructor(s){this.templateRef=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["ng-template","ngbPanelHeader",""]],standalone:!0})}return l})(),$s=(()=>{class l{constructor(s){this.templateRef=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["ng-template","ngbPanelTitle",""]],standalone:!0})}return l})(),us=(()=>{class l{constructor(s){this.templateRef=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["ng-template","ngbPanelContent",""]],standalone:!0})}return l})(),Po=(()=>{class l{constructor(){this.disabled=!1,this.id="ngb-panel-"+gl++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new t.vpe,this.hidden=new t.vpe}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["ngb-panel"]],contentQueries:function(c,m,H){if(1&c&&(t.Suo(H,$s,4),t.Suo(H,Io,4),t.Suo(H,us,4)),2&c){let ne;t.iGM(ne=t.CRH())&&(m.titleTpls=ne),t.iGM(ne=t.CRH())&&(m.headerTpls=ne),t.iGM(ne=t.CRH())&&(m.contentTpls=ne)}},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"},standalone:!0})}return l})(),ma=(()=>{class l{constructor(s){this._El=s,this.ngbRef=new t.vpe}ngOnInit(){this.ngbRef.emit(this._El.nativeElement)}ngOnDestroy(){this.ngbRef.emit(null)}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"},standalone:!0})}return l})(),xi=(()=>{class l{set ngbPanelToggle(s){s&&(this.panel=s)}constructor(s,c){this.accordion=s,this.panel=c}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36((0,t.Gpc)(()=>vo)),t.Y36(Po,9))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(c,m){1&c&&t.NdJ("click",function(){return m.accordion.toggle(m.panel.id)}),2&c&&(t.Ikx("disabled",m.panel.disabled),t.uIk("aria-expanded",m.panel.isOpen)("aria-controls",m.panel.id),t.ekj("collapsed",!m.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"},standalone:!0})}return l})(),vo=(()=>{class l{constructor(s,c,m){this._ngZone=c,this._changeDetector=m,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new t.vpe,this.shown=new t.vpe,this.hidden=new t.vpe,this.animation=s.animation,this.type=s.type,this.closeOtherPanels=s.closeOthers}isExpanded(s){return this.activeIds.indexOf(s)>-1}expand(s){this._changeOpenState(this._findPanelById(s),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(s=>this._changeOpenState(s,!0))}collapse(s){this._changeOpenState(this._findPanelById(s),!1)}collapseAll(){this.panels.forEach(s=>{this._changeOpenState(s,!1)})}toggle(s){const c=this._findPanelById(s);c&&this._changeOpenState(c,!c.isOpen)}ngAfterContentChecked(){Ct(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(s=>{s.isOpen=!s.disabled&&this.activeIds.indexOf(s.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe((0,_e.q)(1)).subscribe(()=>{this.panels.forEach(s=>{const c=s.panelDiv;c?s.initClassDone||(s.initClassDone=!0,li(this._ngZone,c,Oo,{animation:!1,runningTransition:"continue",context:{direction:s.isOpen?"show":"hide",dimension:"height"}})):s.initClassDone=!1})})}_changeOpenState(s,c){if(null!=s&&!s.disabled&&s.isOpen!==c){let m=!1;this.panelChange.emit({panelId:s.id,nextState:c,preventDefault:()=>{m=!0}}),m||(s.isOpen=c,s.transitionRunning=!0,c&&this.closeOtherPanels&&this._closeOthers(s.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(s,c=!0){this.panels.forEach(m=>{m.id!==s&&m.isOpen&&(m.isOpen=!1,m.transitionRunning=c)})}_findPanelById(s){return this.panels.find(c=>c.id===s)||null}_updateActiveIds(){this.activeIds=this.panels.filter(s=>s.isOpen&&!s.disabled).map(s=>s.id)}_runTransitions(s){this._changeDetector.detectChanges(),this.panels.forEach(c=>{c.transitionRunning&&li(this._ngZone,c.panelDiv,Oo,{animation:s,runningTransition:"stop",context:{direction:c.isOpen?"show":"hide",dimension:"height"}}).subscribe(()=>{c.transitionRunning=!1;const{id:H}=c;c.isOpen?(c.shown.emit(),this.shown.emit(H)):(c.hidden.emit(),this.hidden.emit(H))})})}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(Vi),t.Y36(t.R0b),t.Y36(t.sBO))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-accordion"]],contentQueries:function(c,m,H){if(1&c&&t.Suo(H,Po,4),2&c){let ne;t.iGM(ne=t.CRH())&&(m.panels=ne)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(c,m){2&c&&t.uIk("aria-multiselectable",!m.closeOtherPanels)},inputs:{animation:"animation",activeIds:"activeIds",closeOtherPanels:["closeOthers","closeOtherPanels"],destroyOnHide:"destroyOnHide",type:"type"},outputs:{panelChange:"panelChange",shown:"shown",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0,features:[t.jDz],decls:3,vars:1,consts:[["ngbPanelHeader",""],["t",""],["ngFor","",3,"ngForOf"],[1,"accordion-button",3,"ngbPanelToggle"],[3,"ngTemplateOutlet"],["role","tab",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tabpanel",3,"id","ngbRef",4,"ngIf"],["role","tabpanel",3,"id","ngbRef"],[1,"accordion-body"]],template:function(c,m){1&c&&(t.YNc(0,Kt,3,3,"ng-template",0,1,t.W1O),t.YNc(2,Nr,4,11,"ng-template",2)),2&c&&(t.xp6(2),t.Q6J("ngForOf",m.panels))},dependencies:[ae.ax,ae.tP,xi,ma,Io,ae.O5],encapsulation:2})}return l})(),ja=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Nt=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),rn=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Xt=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})();class Tn{static from(C){return C instanceof Tn?C:C?new Tn(C.year,C.month,C.day):null}constructor(C,s,c){this.year=Bn(C)?C:null,this.month=Bn(s)?s:null,this.day=Bn(c)?c:null}equals(C){return null!=C&&this.year===C.year&&this.month===C.month&&this.day===C.day}before(C){return!!C&&(this.year===C.year?this.month===C.month?this.day!==C.day&&this.dayC.day:this.month>C.month:this.year>C.year)}}function Vn(l,C){return!function Fn(l,C){return!l&&!C||!!l&&!!C&&l.equals(C)}(l,C)}function xn(l,C){return!(!l&&!C||l&&C&&l.year===C.year&&l.month===C.month)}function S(l,C,s){return l&&C&&l.before(C)?C:l&&s&&l.after(s)?s:l||null}function y(l,C){const{minDate:s,maxDate:c,disabled:m,markDisabled:H}=C;return!(null==l||m||H&&H(l,{year:l.year,month:l.month})||s&&l.before(s)||c&&l.after(c))}function kn(l){return new Tn(l.getFullYear(),l.getMonth()+1,l.getDate())}function Rr(l){const C=new Date(l.year,l.month-1,l.day,12);return isNaN(C.getTime())||C.setFullYear(l.year),C}let hi=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:function(){return function or(){return new Gs}()},providedIn:"root"})}return l})(),Gs=(()=>{class l extends hi{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(s,c="d",m=1){let H=Rr(s),ne=!0,Be=H.getMonth();switch(c){case"y":H.setFullYear(H.getFullYear()+m);break;case"m":Be+=m,H.setMonth(Be),Be%=12,Be<0&&(Be+=12);break;case"d":H.setDate(H.getDate()+m),ne=!1;break;default:return s}return ne&&H.getMonth()!==Be&&H.setDate(0),kn(H)}getPrev(s,c="d",m=1){return this.getNext(s,c,-m)}getWeekday(s){let m=Rr(s).getDay();return 0===m?7:m}getWeekNumber(s,c){7===c&&(c=0);const ne=Rr(s[(11-c)%7]);ne.setDate(ne.getDate()+4-(ne.getDay()||7));const Be=ne.getTime();return ne.setMonth(0),ne.setDate(1),Math.floor(Math.round((Be-ne.getTime())/864e5)/7)+1}getToday(){return kn(new Date)}isValid(s){if(!(s&&Bn(s.year)&&Bn(s.month)&&Bn(s.day)&&0!==s.year))return!1;const c=Rr(s);return!isNaN(c.getTime())&&c.getFullYear()===s.year&&c.getMonth()+1===s.month&&c.getDate()===s.day}static#e=this.\u0275fac=function(){let s;return function(m){return(s||(s=t.n5z(l)))(m||l)}}();static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac})}return l})(),mn=(()=>{class l{getMonthLabel(s){return`${this.getMonthFullName(s.month,s.year)} ${this.getYearNumerals(s.year)}`}getDayNumerals(s){return`${s.day}`}getWeekNumerals(s){return`${s}`}getYearNumerals(s){return`${s}`}getWeekLabel(){return""}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:function(c){let m=null;return m=c?new c:function Ns(l){return new On(l)}(t.LFG(t.soG)),m},providedIn:"root"})}return l})(),On=(()=>{class l extends mn{constructor(s){super(),this._locale=s,this._monthsShort=(0,ae.UT)(s,ae.x.Standalone,ae.Tn.Abbreviated),this._monthsFull=(0,ae.UT)(s,ae.x.Standalone,ae.Tn.Wide)}getWeekdayLabel(s,c){const m=(0,ae.Mn)(this._locale,ae.x.Standalone,void 0===c?ae.Tn.Short:c);return m.map((ne,Be)=>m[(Be+1)%7])[s-1]||""}getMonthShortName(s){return this._monthsShort[s-1]||""}getMonthFullName(s){return this._monthsFull[s-1]||""}getDayAriaLabel(s){const c=new Date(s.year,s.month-1,s.day);return(0,ae.p6)(c,"fullDate",this._locale)}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(t.soG))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac})}return l})(),bn=(()=>{class l{get model$(){return this._model$.pipe((0,ce.h)(s=>s.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe((0,ce.h)(s=>null!==s))}set(s){let c=Object.keys(s).map(m=>this._VALIDATORS[m](s[m])).reduce((m,H)=>({...m,...H}),{});Object.keys(c).length>0&&this._nextState(c)}constructor(s,c){this._calendar=s,this._i18n=c,this._VALIDATORS={dayTemplateData:m=>{if(this._state.dayTemplateData!==m)return{dayTemplateData:m}},displayMonths:m=>{if(Bn(m=ee(m))&&m>0&&this._state.displayMonths!==m)return{displayMonths:m}},disabled:m=>{if(this._state.disabled!==m)return{disabled:m}},firstDayOfWeek:m=>{if(Bn(m=ee(m))&&m>=0&&this._state.firstDayOfWeek!==m)return{firstDayOfWeek:m}},focusVisible:m=>{if(this._state.focusVisible!==m&&!this._state.disabled)return{focusVisible:m}},markDisabled:m=>{if(this._state.markDisabled!==m)return{markDisabled:m}},maxDate:m=>{const H=this.toValidDate(m,null);if(Vn(this._state.maxDate,H))return{maxDate:H}},minDate:m=>{const H=this.toValidDate(m,null);if(Vn(this._state.minDate,H))return{minDate:H}},navigation:m=>{if(this._state.navigation!==m)return{navigation:m}},outsideDays:m=>{if(this._state.outsideDays!==m)return{outsideDays:m}},weekdays:m=>{const H=!0===m||!1===m?ae.Tn.Short:m,ne=!0!==m&&!1!==m||m;if(this._state.weekdayWidth!==H||this._state.weekdaysVisible!==ne)return{weekdayWidth:H,weekdaysVisible:ne}}},this._model$=new h.x,this._dateSelect$=new h.x,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]},weekdayWidth:ae.Tn.Short,weekdaysVisible:!0}}focus(s){const c=this.toValidDate(s,null);null!=c&&!this._state.disabled&&Vn(this._state.focusDate,c)&&this._nextState({focusDate:s})}focusSelect(){y(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(s){const c=this.toValidDate(s,this._calendar.getToday());null!=c&&!this._state.disabled&&(!this._state.firstDate||xn(this._state.firstDate,c))&&this._nextState({firstDate:c})}select(s,c={}){const m=this.toValidDate(s,null);null!=m&&!this._state.disabled&&(Vn(this._state.selectedDate,m)&&this._nextState({selectedDate:m}),c.emitEvent&&y(m,this._state)&&this._dateSelect$.next(m))}toValidDate(s,c){const m=Tn.from(s);return void 0===c&&(c=this._calendar.getToday()),this._calendar.isValid(m)?m:c}getMonth(s){for(let c of this._state.months)if(s.month===c.number&&s.year===c.year)return c;throw new Error(`month ${s.month} of year ${s.year} not found`)}_nextState(s){const c=this._updateState(s);this._patchContexts(c),this._state=c,this._model$.next(this._state)}_patchContexts(s){const{months:c,displayMonths:m,selectedDate:H,focusDate:ne,focusVisible:Be,disabled:Ge,outsideDays:ut}=s;s.months.forEach(pt=>{pt.weeks.forEach(sn=>{sn.days.forEach(Gt=>{ne&&(Gt.context.focused=ne.equals(Gt.date)&&Be),Gt.tabindex=!Ge&&ne&&Gt.date.equals(ne)&&ne.month===pt.number?0:-1,!0===Ge&&(Gt.context.disabled=!0),void 0!==H&&(Gt.context.selected=null!==H&&H.equals(Gt.date)),pt.number!==Gt.date.month&&(Gt.hidden="hidden"===ut||"collapsed"===ut||m>1&&Gt.date.after(c[0].firstDate)&&Gt.date.before(c[m-1].lastDate))})})})}_updateState(s){const c=Object.assign({},this._state,s);let m=c.firstDate;if(("minDate"in s||"maxDate"in s)&&(function E(l,C){if(C&&l&&C.before(l))throw new Error(`'maxDate' ${C} should be greater than 'minDate' ${l}`)}(c.minDate,c.maxDate),c.focusDate=S(c.focusDate,c.minDate,c.maxDate),c.firstDate=S(c.firstDate,c.minDate,c.maxDate),m=c.focusDate),"disabled"in s&&(c.focusVisible=!1),"selectedDate"in s&&0===this._state.months.length&&(m=c.selectedDate),"focusVisible"in s||"focusDate"in s&&(c.focusDate=S(c.focusDate,c.minDate,c.maxDate),m=c.focusDate,0!==c.months.length&&c.focusDate&&!c.focusDate.before(c.firstDate)&&!c.focusDate.after(c.lastDate)))return c;if("firstDate"in s&&(c.firstDate=S(c.firstDate,c.minDate,c.maxDate),m=c.firstDate),m){const ne=function at(l,C,s,c,m){const{displayMonths:H,months:ne}=s,Be=ne.splice(0,ne.length);return Array.from({length:H},(ut,pt)=>{const sn=Object.assign(l.getNext(C,"m",pt),{day:1});if(ne[pt]=null,!m){const Gt=Be.findIndex(un=>un.firstDate.equals(sn));-1!==Gt&&(ne[pt]=Be.splice(Gt,1)[0])}return sn}).forEach((ut,pt)=>{null===ne[pt]&&(ne[pt]=function ft(l,C,s,c,m={}){const{dayTemplateData:H,minDate:ne,maxDate:Be,firstDayOfWeek:Ge,markDisabled:ut,outsideDays:pt,weekdayWidth:sn,weekdaysVisible:Gt}=s,un=l.getToday();m.firstDate=null,m.lastDate=null,m.number=C.month,m.year=C.year,m.weeks=m.weeks||[],m.weekdays=m.weekdays||[],C=function tn(l,C,s){const c=l.getDaysPerWeek(),m=new Tn(C.year,C.month,1),H=l.getWeekday(m)%c;return l.getPrev(m,"d",(c+H-s)%c)}(l,C,Ge),Gt||(m.weekdays.length=0);for(let Mr=0;MrCr.date),Ge),lr.collapsed="collapsed"===pt&&Pn[0].date.month!==m.number&&Pn[Pn.length-1].date.month!==m.number}return m}(l,ut,s,c,Be.shift()||{}))}),ne}(this._calendar,m,c,this._i18n,"dayTemplateData"in s||"firstDayOfWeek"in s||"markDisabled"in s||"minDate"in s||"maxDate"in s||"disabled"in s||"outsideDays"in s||"weekdaysVisible"in s);c.months=ne,c.firstDate=ne[0].firstDate,c.lastDate=ne[ne.length-1].lastDate,"selectedDate"in s&&!y(c.selectedDate,c)&&(c.selectedDate=null),"firstDate"in s&&(!c.focusDate||c.focusDate.before(c.firstDate)||c.focusDate.after(c.lastDate))&&(c.focusDate=m);const Be=!this._state.firstDate||this._state.firstDate.year!==c.firstDate.year,Ge=!this._state.firstDate||this._state.firstDate.month!==c.firstDate.month;"select"===c.navigation?(("minDate"in s||"maxDate"in s||0===c.selectBoxes.years.length||Be)&&(c.selectBoxes.years=function G(l,C,s){if(!l)return[];const c=C?Math.max(C.year,l.year-500):l.year-10,H=(s?Math.min(s.year,l.year+500):l.year+10)-c+1,ne=Array(H);for(let Be=0;Bene===s.month);m=m.slice(H)}if(c&&C.year===c.year){const H=m.findIndex(ne=>ne===c.month);m=m.slice(0,H+1)}return m}(this._calendar,c.firstDate,c.minDate,c.maxDate))):c.selectBoxes={years:[],months:[]},("arrows"===c.navigation||"select"===c.navigation)&&(Ge||Be||"minDate"in s||"maxDate"in s||"disabled"in s)&&(c.prevDisabled=c.disabled||function Me(l,C,s){const c=Object.assign(l.getPrev(C,"m"),{day:1});return null!=s&&(c.year===s.year&&c.month{class l{constructor(s){this.i18n=s}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(mn))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(c,m){2&c&&t.ekj("bg-primary",m.selected)("text-white",m.selected)("text-muted",m.isMuted())("outside",m.isMuted())("active",m.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},standalone:!0,features:[t.jDz],attrs:Yn,decls:1,vars:1,template:function(c,m){1&c&&t._uU(0),2&c&&t.Oqu(m.i18n.getDayNumerals(m.date))},styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:transparent}[ngbDatepickerDayView]:hover:not(.bg-primary),[ngbDatepickerDayView].active:not(.bg-primary){background-color:var(--bs-btn-bg);outline:1px solid var(--bs-border-color)}[ngbDatepickerDayView].outside{opacity:.5}\n"],encapsulation:2,changeDetection:0})}return l})(),Ms=(()=>{class l{constructor(s,c){this.i18n=s,this._renderer=c,this.select=new t.vpe,this._month=-1,this._year=-1}changeMonth(s){this.select.emit(new Tn(this.date.year,ee(s),1))}changeYear(s){this.select.emit(new Tn(ee(s),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(mn),t.Y36(t.Qsj))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(c,m){if(1&c&&(t.Gf(sr,7,t.SBq),t.Gf(Wr,7,t.SBq)),2&c){let H;t.iGM(H=t.CRH())&&(m.monthSelect=H.first),t.iGM(H=t.CRH())&&(m.yearSelect=H.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},standalone:!0,features:[t.jDz],decls:6,vars:4,consts:function(){let s,c,m,H;return s=$localize`:@@ngb.datepicker.select-month:Select month`,c=$localize`:@@ngb.datepicker.select-month:Select month`,m=$localize`:@@ngb.datepicker.select-year:Select year`,H=$localize`:@@ngb.datepicker.select-year:Select year`,[["aria-label",s,"title",c,1,"form-select",3,"disabled","change"],["month",""],[3,"value",4,"ngFor","ngForOf"],["aria-label",m,"title",H,1,"form-select",3,"disabled","change"],["year",""],[3,"value"]]},template:function(c,m){1&c&&(t.TgZ(0,"select",0,1),t.NdJ("change",function(ne){return m.changeMonth(ne.target.value)}),t.YNc(2,Mi,2,3,"option",2),t.qZA(),t.TgZ(3,"select",3,4),t.NdJ("change",function(ne){return m.changeYear(ne.target.value)}),t.YNc(5,di,2,2,"option",2),t.qZA()),2&c&&(t.Q6J("disabled",m.disabled),t.xp6(2),t.Q6J("ngForOf",m.months),t.xp6(1),t.Q6J("disabled",m.disabled),t.xp6(2),t.Q6J("ngForOf",m.years))},dependencies:[ae.ax],styles:["ngb-datepicker-navigation-select>.form-select{flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.form-select:focus{z-index:1}ngb-datepicker-navigation-select>.form-select::-ms-value{background-color:transparent!important}\n"],encapsulation:2,changeDetection:0})}return l})(),Ji=(()=>{class l{constructor(s){this.i18n=s,this.navigation=tr,this.months=[],this.navigate=new t.vpe,this.select=new t.vpe}onClickPrev(s){s.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(s){s.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(mn))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-datepicker-navigation"]],inputs:{date:"date",disabled:"disabled",months:"months",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},standalone:!0,features:[t.jDz],decls:8,vars:4,consts:function(){let s,c,m,H;return s=$localize`:@@ngb.datepicker.previous-month:Previous month`,c=$localize`:@@ngb.datepicker.previous-month:Previous month`,m=$localize`:@@ngb.datepicker.next-month:Next month`,H=$localize`:@@ngb.datepicker.next-month:Next month`,[[1,"ngb-dp-arrow","ngb-dp-arrow-prev"],["type","button","aria-label",s,"title",c,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-chevron"],["class","ngb-dp-navigation-select",3,"date","disabled","months","years","select",4,"ngIf"],[4,"ngIf"],[1,"ngb-dp-arrow","ngb-dp-arrow-next"],["type","button","aria-label",m,"title",H,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years","select"],["ngFor","",3,"ngForOf"],["class","ngb-dp-arrow",4,"ngIf"],[1,"ngb-dp-month-name"],[1,"ngb-dp-arrow"]]},template:function(c,m){1&c&&(t.TgZ(0,"div",0)(1,"button",1),t.NdJ("click",function(ne){return m.onClickPrev(ne)}),t._UZ(2,"span",2),t.qZA()(),t.YNc(3,ns,1,4,"ngb-datepicker-navigation-select",3),t.YNc(4,Ii,1,1,null,4),t.TgZ(5,"div",5)(6,"button",6),t.NdJ("click",function(ne){return m.onClickNext(ne)}),t._UZ(7,"span",2),t.qZA()()),2&c&&(t.xp6(1),t.Q6J("disabled",m.prevDisabled),t.xp6(2),t.Q6J("ngIf",m.showSelect),t.xp6(1),t.Q6J("ngIf",!m.showSelect),t.xp6(2),t.Q6J("disabled",m.nextDisabled))},dependencies:[ae.O5,ae.ax,Ms],styles:["ngb-datepicker-navigation{display:flex;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg)}.ngb-dp-arrow{display:flex;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow-next{justify-content:flex-end}.ngb-dp-arrow-next .ngb-dp-navigation-chevron{transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:flex;flex:1 1 9rem}\n"],encapsulation:2,changeDetection:0})}return l})();var fr=function(l){return l[l.Tab=9]="Tab",l[l.Enter=13]="Enter",l[l.Escape=27]="Escape",l[l.Space=32]="Space",l[l.PageUp=33]="PageUp",l[l.PageDown=34]="PageDown",l[l.End=35]="End",l[l.Home=36]="Home",l[l.ArrowLeft=37]="ArrowLeft",l[l.ArrowUp=38]="ArrowUp",l[l.ArrowRight=39]="ArrowRight",l[l.ArrowDown=40]="ArrowDown",l}(fr||{});let ni=(()=>{class l{processKey(s,c){const{state:m,calendar:H}=c;switch(s.which){case fr.PageUp:c.focusDate(H.getPrev(m.focusedDate,s.shiftKey?"y":"m",1));break;case fr.PageDown:c.focusDate(H.getNext(m.focusedDate,s.shiftKey?"y":"m",1));break;case fr.End:c.focusDate(s.shiftKey?m.maxDate:m.lastDate);break;case fr.Home:c.focusDate(s.shiftKey?m.minDate:m.firstDate);break;case fr.ArrowLeft:c.focusDate(H.getPrev(m.focusedDate,"d",1));break;case fr.ArrowUp:c.focusDate(H.getPrev(m.focusedDate,"d",H.getDaysPerWeek()));break;case fr.ArrowRight:c.focusDate(H.getNext(m.focusedDate,"d",1));break;case fr.ArrowDown:c.focusDate(H.getNext(m.focusedDate,"d",H.getDaysPerWeek()));break;case fr.Enter:case fr.Space:c.focusSelect();break;default:return}s.preventDefault(),s.stopPropagation()}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Jo=(()=>{class l{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekNumbers=!1,this.weekdays=ae.Tn.Short}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),ri=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:function(){return function vl(){return new Qi}()},providedIn:"root"})}return l})(),Qi=(()=>{class l extends ri{fromModel(s){return s&&Bn(s.year)&&Bn(s.month)&&Bn(s.day)?{year:s.year,month:s.month,day:s.day}:null}toModel(s){return s&&Bn(s.year)&&Bn(s.month)&&Bn(s.day)?{year:s.year,month:s.month,day:s.day}:null}static#e=this.\u0275fac=function(){let s;return function(m){return(s||(s=t.n5z(l)))(m||l)}}();static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac})}return l})(),ds=(()=>{class l{constructor(s){this.templateRef=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["ng-template","ngbDatepickerContent",""]],standalone:!0})}return l})(),ao=(()=>{class l{set month(s){this.viewModel=this._service.getMonth(s)}constructor(s,c,m,H){this.i18n=s,this.datepicker=c,this._keyboardService=m,this._service=H}onKeyDown(s){this._keyboardService.processKey(s,this.datepicker)}doSelect(s){!s.context.disabled&&!s.hidden&&this.datepicker.onDateSelect(s.date)}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(mn),t.Y36((0,t.Gpc)(()=>lo)),t.Y36(ni),t.Y36(bn))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(c,m){1&c&&t.NdJ("keydown",function(ne){return m.onKeyDown(ne)})},inputs:{month:"month"},standalone:!0,features:[t.jDz],decls:2,vars:2,consts:[["class","ngb-dp-week ngb-dp-weekdays","role","row",4,"ngIf"],["ngFor","",3,"ngForOf"],["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],["class","ngb-dp-weekday ngb-dp-showweek small",4,"ngIf"],["class","ngb-dp-weekday small","role","columnheader",4,"ngFor","ngForOf"],[1,"ngb-dp-weekday","ngb-dp-showweek","small"],["role","columnheader",1,"ngb-dp-weekday","small"],["class","ngb-dp-week","role","row",4,"ngIf"],["role","row",1,"ngb-dp-week"],["class","ngb-dp-week-number small text-muted",4,"ngIf"],["class","ngb-dp-day","role","gridcell",3,"disabled","tabindex","hidden","ngb-dp-today","click",4,"ngFor","ngForOf"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"tabindex","click"],[3,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(c,m){1&c&&(t.YNc(0,Es,3,2,"div",0),t.YNc(1,ht,1,1,"ng-template",1)),2&c&&(t.Q6J("ngIf",m.viewModel.weekdays.length>0),t.xp6(1),t.Q6J("ngForOf",m.viewModel.weeks))},dependencies:[ae.O5,ae.ax,ae.tP],styles:['ngb-datepicker-month{display:block}.ngb-dp-weekday,.ngb-dp-week-number{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:var(--bs-info)}.ngb-dp-week{border-radius:.25rem;display:flex}.ngb-dp-weekdays{border-bottom:1px solid var(--bs-border-color);border-radius:0;background-color:var(--bs-light)}.ngb-dp-day,.ngb-dp-weekday,.ngb-dp-week-number{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}\n'],encapsulation:2})}return l})(),lo=(()=>{class l{constructor(s,c,m,H,ne,Be,Ge,ut){this._service=s,this._calendar=c,this._i18n=m,this._elementRef=Be,this._ngbDateAdapter=Ge,this._ngZone=ut,this.injector=(0,t.f3M)(t.zs3),this._controlValue=null,this._destroyed$=new h.x,this._publicState={},this.navigate=new t.vpe,this.dateSelect=new t.vpe,this.onChange=pt=>{},this.onTouched=()=>{},["contentTemplate","dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekNumbers","startDate","weekdays"].forEach(pt=>this[pt]=H[pt]),s.dateSelect$.pipe((0,ye.R)(this._destroyed$)).subscribe(pt=>{this.dateSelect.emit(pt)}),s.model$.pipe((0,ye.R)(this._destroyed$)).subscribe(pt=>{const sn=pt.firstDate,Gt=this.model?this.model.firstDate:null;this._publicState={maxDate:pt.maxDate,minDate:pt.minDate,firstDate:pt.firstDate,lastDate:pt.lastDate,focusedDate:pt.focusDate,months:pt.months.map(Cr=>Cr.firstDate)};let un=!1;if(!sn.equals(Gt)&&(this.navigate.emit({current:Gt?{year:Gt.year,month:Gt.month}:null,next:{year:sn.year,month:sn.month},preventDefault:()=>un=!0}),un&&null!==Gt))return void this._service.open(Gt);const Mr=pt.selectedDate,lr=pt.focusDate,Pn=this.model?this.model.focusDate:null;this.model=pt,Vn(Mr,this._controlValue)&&(this._controlValue=Mr,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(Mr))),Vn(lr,Pn)&&Pn&&pt.focusVisible&&this.focus(),ne.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}get i18n(){return this._i18n}focusDate(s){this._service.focus(Tn.from(s))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe((0,_e.q)(1)).subscribe(()=>{const s=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');s&&s.focus()})}navigateTo(s){this._service.open(Tn.from(s?s.day?s:{...s,day:1}:null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const s=(0,O.R)(this._contentEl.nativeElement,"focusin"),c=(0,O.R)(this._contentEl.nativeElement,"focusout"),{nativeElement:m}=this._elementRef;(0,M.T)(s,c).pipe((0,ce.h)(({target:H,relatedTarget:ne})=>!(Jn(H,"ngb-dp-day")&&Jn(ne,"ngb-dp-day")&&m.contains(H)&&m.contains(ne))),(0,ye.R)(this._destroyed$)).subscribe(({type:H})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===H})))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){if(void 0===this.model){const s={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].forEach(c=>s[c]=this[c]),this._service.set(s),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(s){const c={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].filter(m=>m in s).forEach(m=>c[m]=this[m]),this._service.set(c),"startDate"in s){const{currentValue:m,previousValue:H}=s.startDate;xn(H,m)&&this.navigateTo(this.startDate)}}onDateSelect(s){this._service.focus(s),this._service.select(s,{emitEvent:!0})}onNavigateDateSelect(s){this._service.open(s)}onNavigateEvent(s){switch(s){case tr.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case tr.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){this._service.set({disabled:s})}writeValue(s){this._controlValue=Tn.from(this._ngbDateAdapter.fromModel(s)),this._service.select(this._controlValue)}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(bn),t.Y36(hi),t.Y36(mn),t.Y36(Jo),t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(ri),t.Y36(t.R0b))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-datepicker"]],contentQueries:function(c,m,H){if(1&c&&t.Suo(H,ds,7),2&c){let ne;t.iGM(ne=t.CRH())&&(m.contentTemplateFromContent=ne.first)}},viewQuery:function(c,m){if(1&c&&(t.Gf(pn,7),t.Gf(lt,7)),2&c){let H;t.iGM(H=t.CRH())&&(m._defaultDayTemplate=H.first),t.iGM(H=t.CRH())&&(m._contentEl=H.first)}},hostVars:2,hostBindings:function(c,m){2&c&&t.ekj("disabled",m.model.disabled)},inputs:{contentTemplate:"contentTemplate",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",weekdays:"weekdays"},outputs:{navigate:"navigate",dateSelect:"dateSelect"},exportAs:["ngbDatepicker"],standalone:!0,features:[t._Bn([{provide:fe.JU,useExisting:(0,t.Gpc)(()=>l),multi:!0},bn]),t.TTD,t.jDz],decls:10,vars:9,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select",4,"ngIf"],[1,"ngb-dp-content"],["content",""],[3,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],["class","ngb-dp-month",4,"ngFor","ngForOf"],[1,"ngb-dp-month"],["class","ngb-dp-month-name",4,"ngIf"],[3,"month"],[1,"ngb-dp-month-name"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select"]],template:function(c,m){if(1&c&&(t.YNc(0,Ot,1,5,"ng-template",null,0,t.W1O),t.YNc(2,ji,1,1,"ng-template",null,1,t.W1O),t.TgZ(4,"div",2),t.YNc(5,ms,1,7,"ngb-datepicker-navigation",3),t.qZA(),t.TgZ(6,"div",4,5),t.YNc(8,fi,0,0,"ng-template",6),t.qZA(),t.YNc(9,Hs,0,0,"ng-template",7)),2&c){const H=t.MAs(3);t.xp6(5),t.Q6J("ngIf","none"!==m.navigation),t.xp6(1),t.ekj("ngb-dp-months",!m.contentTemplate),t.xp6(2),t.Q6J("ngTemplateOutlet",m.contentTemplate||(null==m.contentTemplateFromContent?null:m.contentTemplateFromContent.templateRef)||H)("ngTemplateOutletContext",t.VKq(7,po,m))("ngTemplateOutletInjector",m.injector),t.xp6(1),t.Q6J("ngTemplateOutlet",m.footerTemplate)}},dependencies:[ae.O5,ae.ax,ae.tP,ar,ao,Ji],styles:["ngb-datepicker{border:1px solid var(--bs-border-color);border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}ngb-datepicker.disabled .ngb-dp-weekday,ngb-datepicker.disabled .ngb-dp-week-number,ngb-datepicker.disabled .ngb-dp-month-name{color:var(--bs-text-muted)}.ngb-dp-body{z-index:1055}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:var(--bs-light)}.ngb-dp-months{display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:var(--bs-light)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}\n"],encapsulation:2,changeDetection:0})}return l})();const Qo=(l,C)=>!!C&&C.some(s=>s.contains(l)),yl=(l,C)=>!C||null!=function ei(l,C){return!C||typeof l.closest>"u"?null:l.closest(C)}(l,C),vu=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function bl(l,C,s,c,m,H,ne,Be){s&&l.runOutsideAngular((l=>vu?()=>setTimeout(()=>l(),100):l)(()=>{const ut=(0,O.R)(C,"keydown").pipe((0,ye.R)(m),(0,ce.h)(Gt=>Gt.which===fr.Escape),(0,ve.b)(Gt=>Gt.preventDefault())),pt=(0,O.R)(C,"mousedown").pipe((0,xe.U)(Gt=>{const un=Gt.target;return 2!==Gt.button&&!Qo(un,ne)&&("inside"===s?Qo(un,H)&&yl(un,Be):"outside"===s?!Qo(un,H):yl(un,Be)||!Qo(un,H))}),(0,ye.R)(m)),sn=(0,O.R)(C,"mouseup").pipe((0,be.M)(pt),(0,ce.h)(([Gt,un])=>un),Ee(0),(0,ye.R)(m));f([ut.pipe((0,xe.U)(Gt=>0)),sn.pipe((0,xe.U)(Gt=>1))]).subscribe(Gt=>l.run(()=>c(Gt)))}))}const Xo=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function va(l){const C=Array.from(l.querySelectorAll(Xo)).filter(s=>-1!==s.tabIndex);return[C[0],C[C.length-1]]}const bu=(l,C,s,c=!1)=>{l.runOutsideAngular(()=>{const m=(0,O.R)(C,"focusin").pipe((0,ye.R)(s),(0,xe.U)(H=>H.target));(0,O.R)(C,"keydown").pipe((0,ye.R)(s),(0,ce.h)(H=>H.which===fr.Tab),(0,be.M)(m)).subscribe(([H,ne])=>{const[Be,Ge]=va(C);(ne===Be||ne===C)&&H.shiftKey&&(Ge.focus(),H.preventDefault()),ne===Ge&&!H.shiftKey&&(Be.focus(),H.preventDefault())}),c&&(0,O.R)(C,"click").pipe((0,ye.R)(s),(0,be.M)(m),(0,xe.U)(H=>H[1])).subscribe(H=>H.focus())})};let Bh=(()=>{class l{constructor(s){this._element=s.documentElement}isRTL(){return"rtl"===(this._element.getAttribute("dir")||"").toLowerCase()}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(ae.K0))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();const vc=/\s+/,Uh=/ +/gi,Kd={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]},jh=/^left/,Hh=/^right/,yc=/^start/,Ha=/^end/;function ya({placement:l,baseClass:C},s){let c=Array.isArray(l)?l:l.split(vc),H=c.findIndex(ut=>"auto"===ut);H>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(ut){null==c.find(pt=>-1!==pt.search("^"+ut))&&c.splice(H++,1,ut)});const ne=c.map(ut=>function Yd(l,C){const[s,c]=Kd[l];return C&&c||s}(ut,s.isRTL()));return{placement:ne.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!C,phase:"write",fn({state:ut}){const pt=new RegExp(C+"(-[a-z]+)*","gi"),sn=ut.elements.popper,Gt=ut.placement;let un=sn.className;un=un.replace(pt,""),un+=` ${function Jd(l,C){let[s,c]=C.split("-");const m=s.replace(jh,"start").replace(Hh,"end");let H=[m];if(c){let ne=c;("left"===s||"right"===s)&&(ne=ne.replace(yc,"top").replace(Ha,"bottom")),H.push(`${m}-${ne}`)}return l&&(H=H.map(ne=>`${l}-${ne}`)),H.join(" ")}(C,Gt)}`,un=un.trim().replace(Uh," "),sn.className=un}},Xn,K,Oe,{enabled:!0,name:"flip",options:{fallbackPlacements:ne}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function El(l){return l}function qo(){const l=(0,t.f3M)(Bh);let C=null;return{createPopper(s){if(!C){let m=(s.updatePopperOptions||El)(ya(s,l));C=wi(s.hostElement,s.targetElement,m)}},update(){C&&C.update()},setOptions(s){if(C){let m=(s.updatePopperOptions||El)(ya(s,l));C.setOptions(m)}},destroy(){C&&(C.destroy(),C=null)}}}let Eu=(()=>{class l extends Jo{constructor(){super(...arguments),this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=s=>s,this.restoreFocus=!0}static#e=this.\u0275fac=function(){let s;return function(m){return(s||(s=t.n5z(l)))(m||l)}}();static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();function Dl(l){return C=>(C.modifiers.push(Ui,{name:"offset",options:{offset:()=>l}}),C)}let bc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:function(){return function Du(){return new co}()},providedIn:"root"})}return l})(),co=(()=>{class l extends bc{parse(s){if(null!=s){const c=s.trim().split("-");if(1===c.length&&Jt(c[0]))return{year:ee(c[0]),month:null,day:null};if(2===c.length&&Jt(c[0])&&Jt(c[1]))return{year:ee(c[0]),month:ee(c[1]),day:null};if(3===c.length&&Jt(c[0])&&Jt(c[1])&&Jt(c[2]))return{year:ee(c[0]),month:ee(c[1]),day:ee(c[2])}}return null}format(s){return s?`${s.year}-${Jt(s.month)?Kn(s.month):""}-${Jt(s.day)?Kn(s.day):""}`:""}static#e=this.\u0275fac=function(){let s;return function(m){return(s||(s=t.n5z(l)))(m||l)}}();static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac})}return l})(),Cu=(()=>{class l{get disabled(){return this._disabled}set disabled(s){this._disabled=""===s||s&&"false"!==s,this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}constructor(s,c,m,H,ne,Be,Ge,ut,pt,sn){this._parserFormatter=s,this._elRef=c,this._vcRef=m,this._renderer=H,this._ngZone=ne,this._calendar=Be,this._dateAdapter=Ge,this._document=ut,this._changeDetector=pt,this._cRef=null,this._disabled=!1,this._elWithFocus=null,this._model=null,this._destroyCloseHandlers$=new h.x,this.dateSelect=new t.vpe,this.navigate=new t.vpe,this.closed=new t.vpe,this._onChange=Gt=>{},this._onTouched=()=>{},this._validatorChange=()=>{},["autoClose","container","positionTarget","placement","popperOptions"].forEach(Gt=>this[Gt]=sn[Gt]),this._positioning=qo()}registerOnChange(s){this._onChange=s}registerOnTouched(s){this._onTouched=s}registerOnValidatorChange(s){this._validatorChange=s}setDisabledState(s){this.disabled=s}validate(s){const{value:c}=s;if(null!=c){const m=this._fromDateStruct(this._dateAdapter.fromModel(c));if(!m)return{ngbDate:{invalid:c}};if(this.minDate&&m.before(Tn.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:c}}};if(this.maxDate&&m.after(Tn.from(this.maxDate)))return{ngbDate:{maxDate:{maxDate:this.maxDate,actual:c}}}}return null}writeValue(s){this._model=this._fromDateStruct(this._dateAdapter.fromModel(s)),this._writeModelValue(this._model)}manualDateChange(s,c=!1){const m=s!==this._inputValue;m&&(this._inputValue=s,this._model=this._fromDateStruct(this._parserFormatter.parse(s))),(m||!c)&&this._onChange(this._model?this._dateAdapter.toModel(this._model):""===s?null:s),c&&this._model&&this._writeModelValue(this._model)}isOpen(){return!!this._cRef}open(){if(!this.isOpen()){let s;if(this._cRef=this._vcRef.createComponent(lo),this._applyPopupStyling(this._cRef.location.nativeElement),this._applyDatepickerInputs(this._cRef),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)),this._cRef.instance.registerOnChange(c=>{this.writeValue(c),this._onChange(c),this._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._cRef.location.nativeElement),this._elWithFocus=this._document.activeElement,bu(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),setTimeout(()=>this._cRef?.instance.focus()),s=Ct(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?this.positionTarget:this._elRef.nativeElement,this._ngZone.runOutsideAngular(()=>{this._cRef&&(this._positioning.createPopper({hostElement:s,targetElement:this._cRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:c=>this.popperOptions(Dl([0,2])(c))}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update()))}),this.positionTarget&&!s)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");this._setCloseHandlers()}}close(){if(this.isOpen()){this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)),this._cRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._destroyCloseHandlers$.next(),this.closed.emit(),this._changeDetector.markForCheck();let s=this._elWithFocus;Ct(this.restoreFocus)?s=this._document.querySelector(this.restoreFocus):void 0!==this.restoreFocus&&(s=this.restoreFocus),s&&s.focus?s.focus():this._document.body.focus()}}toggle(){this.isOpen()?this.close():this.open()}navigateTo(s){this.isOpen()&&this._cRef.instance.navigateTo(s)}onBlur(){this._onTouched()}onFocus(){this._elWithFocus=this._elRef.nativeElement}ngOnChanges(s){if((s.minDate||s.maxDate)&&(this._validatorChange(),this.isOpen()&&(s.minDate&&(this._cRef.instance.minDate=this.minDate),s.maxDate&&(this._cRef.instance.maxDate=this.maxDate),this._cRef.instance.ngOnChanges(s))),s.datepickerClass){const{currentValue:c,previousValue:m}=s.datepickerClass;this._applyPopupClass(c,m)}s.autoClose&&this.isOpen()&&this._setCloseHandlers()}ngOnDestroy(){this.close()}_applyDatepickerInputs(s){["contentTemplate","dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekNumbers","weekdays"].forEach(c=>{void 0!==this[c]&&s.setInput(c,this[c])}),s.setInput("startDate",this.startDate||this._model)}_applyPopupClass(s,c){const m=this._cRef?.location.nativeElement;m&&(s&&this._renderer.addClass(m,s),c&&this._renderer.removeClass(m,c))}_applyPopupStyling(s){this._renderer.addClass(s,"dropdown-menu"),this._renderer.addClass(s,"show"),"body"===this.container&&this._renderer.addClass(s,"ngb-dp-body"),this._applyPopupClass(this.datepickerClass)}_subscribeForDatepickerOutputs(s){s.navigate.subscribe(c=>this.navigate.emit(c)),s.dateSelect.subscribe(c=>{this.dateSelect.emit(c),(!0===this.autoClose||"inside"===this.autoClose)&&this.close()})}_writeModelValue(s){const c=this._parserFormatter.format(s);this._inputValue=c,this._renderer.setProperty(this._elRef.nativeElement,"value",c),this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(s)),this._onTouched())}_fromDateStruct(s){const c=s?new Tn(s.year,s.month,s.day):null;return this._calendar.isValid(c)?c:null}_setCloseHandlers(){this._destroyCloseHandlers$.next(),bl(this._ngZone,this._document,this.autoClose,()=>this.close(),this._destroyCloseHandlers$,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(bc),t.Y36(t.SBq),t.Y36(t.s_b),t.Y36(t.Qsj),t.Y36(t.R0b),t.Y36(hi),t.Y36(ri),t.Y36(ae.K0),t.Y36(t.sBO),t.Y36(Eu))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(c,m){1&c&&t.NdJ("input",function(ne){return m.manualDateChange(ne.target.value)})("change",function(ne){return m.manualDateChange(ne.target.value,!0)})("focus",function(){return m.onFocus()})("blur",function(){return m.onBlur()}),2&c&&t.Ikx("disabled",m.disabled)},inputs:{autoClose:"autoClose",contentTemplate:"contentTemplate",datepickerClass:"datepickerClass",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",minDate:"minDate",maxDate:"maxDate",navigation:"navigation",outsideDays:"outsideDays",placement:"placement",popperOptions:"popperOptions",restoreFocus:"restoreFocus",showWeekNumbers:"showWeekNumbers",startDate:"startDate",container:"container",positionTarget:"positionTarget",weekdays:"weekdays",disabled:"disabled"},outputs:{dateSelect:"dateSelect",navigate:"navigate",closed:"closed"},exportAs:["ngbDatepicker"],standalone:!0,features:[t._Bn([{provide:fe.JU,useExisting:(0,t.Gpc)(()=>l),multi:!0},{provide:fe.Cf,useExisting:(0,t.Gpc)(()=>l),multi:!0},{provide:Jo,useExisting:Eu}]),t.TTD]})}return l})();new Date(1882,10,12),new Date(2174,10,25);let Ou=(()=>{class l extends ri{fromModel(s){return s instanceof Date&&!isNaN(s.getTime())?this._fromNativeDate(s):null}toModel(s){return s&&Bn(s.year)&&Bn(s.month)&&Bn(s.day)?this._toNativeDate(s):null}_fromNativeDate(s){return{year:s.getFullYear(),month:s.getMonth()+1,day:s.getDate()}}_toNativeDate(s){const c=new Date(s.year,s.month-1,s.day,12);return c.setFullYear(s.year),c}static#e=this.\u0275fac=function(){let s;return function(m){return(s||(s=t.n5z(l)))(m||l)}}();static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac})}return l})(),Iu=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),cf=(()=>{class l{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=s=>s}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Sc=(()=>{class l{set disabled(s){this._disabled=""===s||!0===s,this._renderer.setProperty(this.elementRef.nativeElement,"disabled",this._disabled)}get disabled(){return this._disabled}constructor(s,c){this.elementRef=s,this._renderer=c,this._disabled=!1}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.SBq),t.Y36(t.Qsj))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(c,m){2&c&&(t.Ikx("tabIndex",m.disabled?-1:0),t.ekj("disabled",m.disabled))},inputs:{disabled:"disabled"},standalone:!0})}return l})(),Ya=(()=>{class l{constructor(s,c){this.dropdown=s,this.placement="bottom",this.isOpen=!1,this.nativeElement=c.nativeElement}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36((0,t.Gpc)(()=>Lo)),t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(c,m,H){if(1&c&&t.Suo(H,Sc,4),2&c){let ne;t.iGM(ne=t.CRH())&&(m.menuItems=ne)}},hostVars:4,hostBindings:function(c,m){1&c&&t.NdJ("keydown.ArrowUp",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.ArrowDown",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Home",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.End",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Enter",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Space",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Tab",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Shift.Tab",function(ne){return m.dropdown.onKeyDown(ne)}),2&c&&t.ekj("dropdown-menu",!0)("show",m.dropdown.isOpen())},standalone:!0})}return l})(),ta=(()=>{class l{constructor(s,c){this.dropdown=s,this.nativeElement=c.nativeElement}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36((0,t.Gpc)(()=>Lo)),t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(c,m){2&c&&t.uIk("aria-expanded",m.dropdown.isOpen())},standalone:!0})}return l})(),Pu=(()=>{class l extends ta{constructor(s,c){super(s,c)}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36((0,t.Gpc)(()=>Lo)),t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(c,m){1&c&&t.NdJ("click",function(){return m.dropdown.toggle()})("keydown.ArrowUp",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.ArrowDown",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Home",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.End",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Tab",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Shift.Tab",function(ne){return m.dropdown.onKeyDown(ne)}),2&c&&t.uIk("aria-expanded",m.dropdown.isOpen())},standalone:!0,features:[t._Bn([{provide:ta,useExisting:(0,t.Gpc)(()=>l)}]),t.qOj]})}return l})(),Lo=(()=>{class l{constructor(s,c,m,H,ne,Be){this._changeDetector=s,this._document=m,this._ngZone=H,this._elementRef=ne,this._renderer=Be,this._destroyCloseHandlers$=new h.x,this._bodyContainer=null,this._open=!1,this.openChange=new t.vpe,this.placement=c.placement,this.popperOptions=c.popperOptions,this.container=c.container,this.autoClose=c.autoClose,this._positioning=qo()}ngOnInit(){this.display||(this.display=this._elementRef.nativeElement.closest(".navbar")?"static":"dynamic")}ngAfterContentInit(){this._ngZone.onStable.pipe((0,_e.q)(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(s){if(s.container&&this._open&&this._applyContainer(this.container),s.placement&&!s.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container}),this._applyPlacementClasses()),s.dropdownClass){const{currentValue:c,previousValue:m}=s.dropdownClass;this._applyCustomDropdownClass(c,m)}s.autoClose&&this._open&&(this.autoClose=s.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),"dynamic"===this.display&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:s=>this.popperOptions(Dl([0,2])(s))}),this._applyPlacementClasses(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positionMenu())})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),bl(this._ngZone,this._document,this.autoClose,s=>{this.close(),0===s&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(s){const c=s.which,m=this._getMenuElements();let H=-1,ne=null;const Be=this._isEventFromToggle(s);if(!Be&&m.length&&m.forEach((Ge,ut)=>{Ge.contains(s.target)&&(ne=Ge),Ge===Fi(this._document)&&(H=ut)}),c!==fr.Space&&c!==fr.Enter){if(c!==fr.Tab){if(Be||ne){if(this.open(),m.length){switch(c){case fr.ArrowDown:H=Math.min(H+1,m.length-1);break;case fr.ArrowUp:if(this._isDropup()&&-1===H){H=m.length-1;break}H=Math.max(H-1,0);break;case fr.Home:H=0;break;case fr.End:H=m.length-1}m[H].focus()}s.preventDefault()}}else if(s.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===s.target)return void("body"!==this.container||s.shiftKey?s.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const Ge=this._menu.nativeElement.querySelectorAll(Xo);s.shiftKey&&s.target===Ge[0]?(this._anchor.nativeElement.focus(),s.preventDefault()):!s.shiftKey&&s.target===Ge[Ge.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else(0,O.R)(s.target,"focusout").pipe((0,_e.q)(1)).subscribe(({relatedTarget:Ge})=>{this._elementRef.nativeElement.contains(Ge)||this.close()})}}else ne&&(!0===this.autoClose||"inside"===this.autoClose)&&(0,O.R)(ne,"click").pipe((0,_e.q)(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(s){return this._anchor.nativeElement.contains(s.target)}_getMenuElements(){const s=this._menu;return null==s?[]:s.menuItems.filter(c=>!c.disabled).map(c=>c.elementRef.nativeElement)}_positionMenu(){const s=this._menu;this.isOpen()&&s&&("dynamic"===this.display?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(s){return Array.isArray(s)?s[0]:s.split(" ")[0]}_resetContainer(){const s=this._renderer;this._menu&&s.appendChild(this._elementRef.nativeElement,this._menu.nativeElement),this._bodyContainer&&(s.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(s=null){if(this._resetContainer(),"body"===s){const c=this._renderer,m=this._menu.nativeElement,H=this._bodyContainer=this._bodyContainer||c.createElement("div");c.setStyle(H,"position","absolute"),c.setStyle(m,"position","static"),c.setStyle(H,"z-index","1055"),c.appendChild(H,m),c.appendChild(this._document.body,H)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(s,c){const m="body"===this.container?this._bodyContainer:this._elementRef.nativeElement;m&&(c&&this._renderer.removeClass(m,c),s&&this._renderer.addClass(m,s))}_applyPlacementClasses(s){const c=this._menu;if(c){s||(s=this._getFirstPlacement(this.placement));const m=this._renderer,H=this._elementRef.nativeElement;m.removeClass(H,"dropup"),m.removeClass(H,"dropdown");const{nativeElement:ne}=c;"static"===this.display?(c.placement=null,m.setAttribute(ne,"data-bs-popper","static")):(c.placement=s,m.removeAttribute(ne,"data-bs-popper"));const Be=-1!==s.search("^top")?"dropup":"dropdown";m.addClass(H,Be);const Ge=this._bodyContainer;Ge&&(m.removeClass(Ge,"dropup"),m.removeClass(Ge,"dropdown"),m.addClass(Ge,Be))}}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.sBO),t.Y36(cf),t.Y36(ae.K0),t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.Qsj))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbDropdown",""]],contentQueries:function(c,m,H){if(1&c&&(t.Suo(H,Ya,5),t.Suo(H,ta,5)),2&c){let ne;t.iGM(ne=t.CRH())&&(m._menu=ne.first),t.iGM(ne=t.CRH())&&(m._anchor=ne.first)}},hostVars:2,hostBindings:function(c,m){2&c&&t.ekj("show",m.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:["open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],standalone:!0,features:[t.TTD]})}return l})(),Ja=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})();class na{constructor(C,s,c){this.nodes=C,this.viewRef=s,this.componentRef=c}}class Mc{constructor(C,s,c,m,H,ne){this._componentType=C,this._injector=s,this._viewContainerRef=c,this._renderer=m,this._ngZone=H,this._applicationRef=ne,this._windowRef=null,this._contentRef=null}open(C,s,c=!1){this._windowRef||(this._contentRef=this._getContentRef(C,s),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:m}=this._windowRef.location,H=this._ngZone.onStable.pipe((0,_e.q)(1),(0,_t.z)(()=>li(this._ngZone,m,({classList:ne})=>ne.add("show"),{animation:c,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:H}}close(C=!1){return this._windowRef?li(this._ngZone,this._windowRef.location.nativeElement,({classList:s})=>s.remove("show"),{animation:C,runningTransition:"stop"}).pipe((0,ve.b)(()=>{this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),this._contentRef?.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):(0,L.of)(void 0)}_getContentRef(C,s){if(C){if(C instanceof t.Rgc){const c=C.createEmbeddedView(s);return this._applicationRef.attachView(c),new na([c.rootNodes],c)}return new na([[this._renderer.createText(`${C}`)]])}return new na([])}}let Ac=(()=>{class l{constructor(s,c){this._el=s,this._zone=c}ngOnInit(){this._zone.onStable.asObservable().pipe((0,_e.q)(1)).subscribe(()=>{li(this._zone,this._el.nativeElement,(s,c)=>{c&&Ei(s),s.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return li(this._zone,this._el.nativeElement,({classList:s})=>s.remove("show"),{animation:this.animation,runningTransition:"stop"})}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.SBq),t.Y36(t.R0b))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(c,m){2&c&&(t.Tol("modal-backdrop"+(m.backdropClass?" "+m.backdropClass:"")),t.ekj("show",!m.animation)("fade",m.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[t.jDz],decls:0,vars:0,template:function(c,m){},encapsulation:2})}return l})();class Da{update(C){}close(C){}dismiss(C){}}const Ru=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],uf=["animation","backdropClass"];class df{_applyWindowOptions(C,s){Ru.forEach(c=>{dr(s[c])&&(C[c]=s[c])})}_applyBackdropOptions(C,s){uf.forEach(c=>{dr(s[c])&&(C[c]=s[c])})}update(C){this._applyWindowOptions(this._windowCmptRef.instance,C),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,C)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe((0,ye.R)(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe((0,ye.R)(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(C,s,c,m){this._windowCmptRef=C,this._contentRef=s,this._backdropCmptRef=c,this._beforeDismiss=m,this._closed=new h.x,this._dismissed=new h.x,this._hidden=new h.x,C.instance.dismissEvent.subscribe(H=>{this.dismiss(H)}),this.result=new Promise((H,ne)=>{this._resolve=H,this._reject=ne}),this.result.then(null,()=>{})}close(C){this._windowCmptRef&&(this._closed.next(C),this._resolve(C),this._removeModalElements())}_dismiss(C){this._dismissed.next(C),this._reject(C),this._removeModalElements()}dismiss(C){if(this._windowCmptRef)if(this._beforeDismiss){const s=this._beforeDismiss();!function yr(l){return l&&l.then}(s)?!1!==s&&this._dismiss(C):s.then(c=>{!1!==c&&this._dismiss(C)},()=>{})}else this._dismiss(C)}_removeModalElements(){const C=this._windowCmptRef.instance.hide(),s=this._backdropCmptRef?this._backdropCmptRef.instance.hide():(0,L.of)(void 0);C.subscribe(()=>{const{nativeElement:c}=this._windowCmptRef.location;c.parentNode.removeChild(c),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),s.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:c}=this._backdropCmptRef.location;c.parentNode.removeChild(c),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),ie(C,s).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Fo=function(l){return l[l.BACKDROP_CLICK=0]="BACKDROP_CLICK",l[l.ESC=1]="ESC",l}(Fo||{});let Qa=(()=>{class l{constructor(s,c,m){this._document=s,this._elRef=c,this._zone=m,this._closed$=new h.x,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new t.vpe,this.shown=new h.x,this.hidden=new h.x}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":Ct(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(s){this.dismissEvent.emit(s)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe((0,_e.q)(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:s}=this._elRef,c={animation:this.animation,runningTransition:"stop"},ne=ie(li(this._zone,s,()=>s.classList.remove("show"),c),li(this._zone,this._dialogEl.nativeElement,()=>{},c));return ne.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),ne}_show(){const s={animation:this.animation,runningTransition:"continue"};ie(li(this._zone,this._elRef.nativeElement,(H,ne)=>{ne&&Ei(H),H.classList.add("show")},s),li(this._zone,this._dialogEl.nativeElement,()=>{},s)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:s}=this._elRef;this._zone.runOutsideAngular(()=>{(0,O.R)(s,"keydown").pipe((0,ye.R)(this._closed$),(0,ce.h)(m=>m.which===fr.Escape)).subscribe(m=>{this.keyboard?requestAnimationFrame(()=>{m.defaultPrevented||this._zone.run(()=>this.dismiss(Fo.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let c=!1;(0,O.R)(this._dialogEl.nativeElement,"mousedown").pipe((0,ye.R)(this._closed$),(0,ve.b)(()=>c=!1),(0,Ze.w)(()=>(0,O.R)(s,"mouseup").pipe((0,ye.R)(this._closed$),(0,_e.q)(1))),(0,ce.h)(({target:m})=>s===m)).subscribe(()=>{c=!0}),(0,O.R)(s,"click").pipe((0,ye.R)(this._closed$)).subscribe(({target:m})=>{s===m&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!c&&this._zone.run(()=>this.dismiss(Fo.BACKDROP_CLICK))),c=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:s}=this._elRef;if(!s.contains(document.activeElement)){const c=s.querySelector("[ngbAutofocus]"),m=va(s)[0];(c||m||s).focus()}}_restoreFocus(){const s=this._document.body,c=this._elWithFocus;let m;m=c&&c.focus&&s.contains(c)?c:s,this._zone.runOutsideAngular(()=>{setTimeout(()=>m.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&li(this._zone,this._elRef.nativeElement,({classList:s})=>(s.add("modal-static"),()=>s.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(ae.K0),t.Y36(t.SBq),t.Y36(t.R0b))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-modal-window"]],viewQuery:function(c,m){if(1&c&&t.Gf(Ds,7),2&c){let H;t.iGM(H=t.CRH())&&(m._dialogEl=H.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(c,m){2&c&&(t.uIk("aria-modal",!0)("aria-labelledby",m.ariaLabelledBy)("aria-describedby",m.ariaDescribedBy),t.Tol("modal d-block"+(m.windowClass?" "+m.windowClass:"")),t.ekj("fade",m.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[t.jDz],ngContentSelectors:Ve,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(c,m){1&c&&(t.F$t(),t.TgZ(0,"div",0,1)(2,"div",2),t.Hsn(3),t.qZA()()),2&c&&t.Tol("modal-dialog"+(m.size?" modal-"+m.size:"")+(m.centered?" modal-dialog-centered":"")+m.fullscreenClass+(m.scrollable?" modal-dialog-scrollable":"")+(m.modalDialogClass?" "+m.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2})}return l})(),ff=(()=>{class l{constructor(s){this._document=s}hide(){const s=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),c=this._document.body,m=c.style,{overflow:H,paddingRight:ne}=m;if(s>0){const Be=parseFloat(window.getComputedStyle(c).paddingRight);m.paddingRight=`${Be+s}px`}return m.overflow="hidden",()=>{s>0&&(m.paddingRight=ne),m.overflow=H}}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(ae.K0))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),ng=(()=>{class l{constructor(s,c,m,H,ne,Be,Ge){this._applicationRef=s,this._injector=c,this._environmentInjector=m,this._document=H,this._scrollBar=ne,this._rendererFactory=Be,this._ngZone=Ge,this._activeWindowCmptHasChanged=new h.x,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new t.vpe,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const ut=this._windowCmpts[this._windowCmpts.length-1];bu(this._ngZone,ut.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(ut.location.nativeElement)}})}_restoreScrollBar(){const s=this._scrollBarRestoreFn;s&&(this._scrollBarRestoreFn=null,s())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(s,c,m){const H=m.container instanceof HTMLElement?m.container:dr(m.container)?this._document.querySelector(m.container):this._document.body,ne=this._rendererFactory.createRenderer(null,null);if(!H)throw new Error(`The specified modal container "${m.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const Be=new Da,Ge=(s=m.injector||s).get(t.lqb,null)||this._environmentInjector,ut=this._getContentRef(s,Ge,c,Be,m);let pt=!1!==m.backdrop?this._attachBackdrop(H):void 0,sn=this._attachWindowComponent(H,ut.nodes),Gt=new df(sn,ut,pt,m.beforeDismiss);return this._registerModalRef(Gt),this._registerWindowCmpt(sn),Gt.hidden.pipe((0,_e.q)(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(ne.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),Be.close=un=>{Gt.close(un)},Be.dismiss=un=>{Gt.dismiss(un)},Be.update=un=>{Gt.update(un)},Gt.update(m),1===this._modalRefs.length&&ne.addClass(this._document.body,"modal-open"),pt&&pt.instance&&pt.changeDetectorRef.detectChanges(),sn.changeDetectorRef.detectChanges(),Gt}get activeInstances(){return this._activeInstances}dismissAll(s){this._modalRefs.forEach(c=>c.dismiss(s))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(s){let c=(0,t.LMc)(Ac,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(c.hostView),s.appendChild(c.location.nativeElement),c}_attachWindowComponent(s,c){let m=(0,t.LMc)(Qa,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:c});return this._applicationRef.attachView(m.hostView),s.appendChild(m.location.nativeElement),m}_getContentRef(s,c,m,H,ne){return m?m instanceof t.Rgc?this._createFromTemplateRef(m,H):Ct(m)?this._createFromString(m):this._createFromComponent(s,c,m,H,ne):new na([])}_createFromTemplateRef(s,c){const H=s.createEmbeddedView({$implicit:c,close(ne){c.close(ne)},dismiss(ne){c.dismiss(ne)}});return this._applicationRef.attachView(H),new na([H.rootNodes],H)}_createFromString(s){const c=this._document.createTextNode(`${s}`);return new na([[c]])}_createFromComponent(s,c,m,H,ne){const Be=t.zs3.create({providers:[{provide:Da,useValue:H}],parent:s}),Ge=(0,t.LMc)(m,{environmentInjector:c,elementInjector:Be}),ut=Ge.location.nativeElement;return ne.scrollable&&ut.classList.add("component-host-scrollable"),this._applicationRef.attachView(Ge.hostView),new na([[ut]],Ge.hostView,Ge)}_setAriaHidden(s){const c=s.parentElement;c&&s!==this._document.body&&(Array.from(c.children).forEach(m=>{m!==s&&"SCRIPT"!==m.nodeName&&(this._ariaHiddenValues.set(m,m.getAttribute("aria-hidden")),m.setAttribute("aria-hidden","true"))}),this._setAriaHidden(c))}_revertAriaHidden(){this._ariaHiddenValues.forEach((s,c)=>{s?c.setAttribute("aria-hidden",s):c.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(s){const c=()=>{const m=this._modalRefs.indexOf(s);m>-1&&(this._modalRefs.splice(m,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(s),this._activeInstances.emit(this._modalRefs),s.result.then(c,c)}_registerWindowCmpt(s){this._windowCmpts.push(s),this._activeWindowCmptHasChanged.next(),s.onDestroy(()=>{const c=this._windowCmpts.indexOf(s);c>-1&&(this._windowCmpts.splice(c,1),this._activeWindowCmptHasChanged.next())})}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(t.z2F),t.LFG(t.zs3),t.LFG(t.lqb),t.LFG(ae.K0),t.LFG(ff),t.LFG(t.FYo),t.LFG(t.R0b))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Nu=(()=>{class l{constructor(s){this._ngbConfig=s,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(Yi))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Lu=(()=>{class l{constructor(s,c,m){this._injector=s,this._modalStack=c,this._config=m}open(s,c={}){const m={...this._config,animation:this._config.animation,...c};return this._modalStack.open(this._injector,s,m)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(s){this._modalStack.dismissAll(s)}hasOpenModals(){return this._modalStack.hasOpenModals()}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(t.zs3),t.LFG(ng),t.LFG(Nu))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),pf=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({providers:[Lu]})}return l})(),xl=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Oc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})();class Ca{constructor(C,s){this.open=C,this.close=s,s||(this.close=C)}isManual(){return"manual"===this.open||"manual"===this.close}}const ju={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},rl=l=>l>0?Ee(l):C=>C;let $u=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Ic=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),fs=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Rc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Lc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})();const zu=(l,C)=>{const{classList:s}=l;if(C)return s.add("fade"),Ei(l),s.add("show","showing"),()=>{s.remove("showing")};s.add("show")},Ku=({classList:l})=>(l.add("showing"),()=>{l.remove("show","showing")});let Ta=(()=>{class l{constructor(s){this._ngbConfig=s,this.autohide=!0,this.delay=5e3,this.ariaLive="polite"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(Yi))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Rl=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbToastHeader",""]],standalone:!0})}return l})(),Yu=(()=>{class l{constructor(s,c,m,H){this.ariaLive=s,this._zone=m,this._element=H,this.contentHeaderTpl=null,this.shown=new t.vpe,this.hidden=new t.vpe,null==this.ariaLive&&(this.ariaLive=c.ariaLive),this.delay=c.delay,this.autohide=c.autohide,this.animation=c.animation}ngAfterContentInit(){this._zone.onStable.asObservable().pipe((0,_e.q)(1)).subscribe(()=>{this._init(),this.show()})}ngOnChanges(s){"autohide"in s&&(this._clearTimeout(),this._init())}hide(){this._clearTimeout();const s=li(this._zone,this._element.nativeElement,Ku,{animation:this.animation,runningTransition:"stop"});return s.subscribe(()=>{this.hidden.emit()}),s}show(){const s=li(this._zone,this._element.nativeElement,zu,{animation:this.animation,runningTransition:"continue"});return s.subscribe(()=>{this.shown.emit()}),s}_init(){this.autohide&&!this._timeoutID&&(this._timeoutID=setTimeout(()=>this.hide(),this.delay))}_clearTimeout(){this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}static#e=this.\u0275fac=function(c){return new(c||l)(t.$8M("aria-live"),t.Y36(Ta),t.Y36(t.R0b),t.Y36(t.SBq))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-toast"]],contentQueries:function(c,m,H){if(1&c&&t.Suo(H,Rl,7,t.Rgc),2&c){let ne;t.iGM(ne=t.CRH())&&(m.contentHeaderTpl=ne.first)}},hostAttrs:["role","alert","aria-atomic","true",1,"toast"],hostVars:3,hostBindings:function(c,m){2&c&&(t.uIk("aria-live",m.ariaLive),t.ekj("fade",m.animation))},inputs:{animation:"animation",delay:"delay",autohide:"autohide",header:"header"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbToast"],standalone:!0,features:[t.TTD,t.jDz],ngContentSelectors:Ve,decls:5,vars:1,consts:function(){let s;return s=$localize`:@@ngb.toast.close-aria:Close`,[["headerTpl",""],[3,"ngIf"],[1,"toast-body"],[1,"me-auto"],[1,"toast-header"],[3,"ngTemplateOutlet"],["type","button","aria-label",s,1,"btn-close",3,"click"]]},template:function(c,m){1&c&&(t.F$t(),t.YNc(0,_o,2,1,"ng-template",null,0,t.W1O),t.YNc(2,Ao,3,1,"ng-template",1),t.TgZ(3,"div",2),t.Hsn(4),t.qZA()),2&c&&(t.xp6(2),t.Q6J("ngIf",m.contentHeaderTpl||m.header))},dependencies:[ae.O5,ae.tP],styles:["ngb-toast{display:block}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem}\n"],encapsulation:2})}return l})(),Nl=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Ll=(()=>{class l{constructor(s){this._ngbConfig=s,this.autoClose=!0,this.placement="auto",this.popperOptions=c=>c,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(Yi))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Of=0,If=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(c,m){2&c&&(t.Ikx("id",m.id),t.Tol("tooltip"+(m.tooltipClass?" "+m.tooltipClass:"")),t.ekj("fade",m.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[t.jDz],ngContentSelectors:Ve,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(c,m){1&c&&(t.F$t(),t._UZ(0,"div",0),t.TgZ(1,"div",1),t.Hsn(2),t.qZA())},encapsulation:2,changeDetection:0})}return l})(),Pf=(()=>{class l{constructor(s,c,m,H,ne,Be,Ge,ut,pt){this._elementRef=s,this._renderer=c,this._ngZone=Be,this._document=Ge,this._changeDetector=ut,this.shown=new t.vpe,this.hidden=new t.vpe,this._ngbTooltipWindowId="ngb-tooltip-"+Of++,this._windowRef=null,this.animation=ne.animation,this.autoClose=ne.autoClose,this.placement=ne.placement,this.popperOptions=ne.popperOptions,this.triggers=ne.triggers,this.container=ne.container,this.disableTooltip=ne.disableTooltip,this.tooltipClass=ne.tooltipClass,this.openDelay=ne.openDelay,this.closeDelay=ne.closeDelay,this._popupService=new Mc(If,m,H,c,this._ngZone,pt),this._positioning=qo()}set ngbTooltip(s){this._ngbTooltip=s,!s&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(s){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:c,transition$:m}=this._popupService.open(this._ngbTooltip,s??this.tooltipContext,this.animation);this._windowRef=c,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._renderer.setAttribute(this._getPositionTargetElement(),"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-tooltip",updatePopperOptions:H=>this.popperOptions(H)}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),bl(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),m.subscribe(()=>this.shown.emit())}}close(s=this.animation){null!=this._windowRef&&(this._renderer.removeAttribute(this._getPositionTargetElement(),"aria-describedby"),this._popupService.close(s).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function Tf(l,C,s,c,m,H,ne=0,Be=0){const Ge=function Hu(l,C=ju){const s=(l||"").trim();if(0===s.length)return[];const c=s.split(/\s+/).map(H=>H.split(":")).map(H=>{let ne=C[H[0]]||H;return new Ca(ne[0],ne[1])}),m=c.filter(H=>H.isManual());if(m.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===m.length&&c.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return c}(s);if(1===Ge.length&&Ge[0].isManual())return()=>{};const ut=function Ol(l,C,s,c){return new d.y(m=>{const H=[],ne=()=>m.next(!0),Be=()=>m.next(!1),Ge=()=>m.next(!c());return s.forEach(ut=>{ut.open===ut.close?H.push(l.listen(C,ut.open,Ge)):H.push(l.listen(C,ut.open,ne),l.listen(C,ut.close,Be))}),()=>{H.forEach(ut=>ut())}})}(l,C,Ge,c).pipe(function Il(l,C,s){return c=>{let m=null;const H=c.pipe((0,xe.U)(Ge=>({open:Ge})),(0,ce.h)(Ge=>{const ut=s();return ut===Ge.open||m&&m.open!==ut?(m&&m.open!==Ge.open&&(m=null),!1):(m=Ge,!0)}),(0,se.B)()),ne=H.pipe((0,ce.h)(Ge=>Ge.open),rl(l)),Be=H.pipe((0,ce.h)(Ge=>!Ge.open),rl(C));return(0,M.T)(ne,Be).pipe((0,ce.h)(Ge=>Ge===m&&(m=null,Ge.open!==s())),(0,xe.U)(Ge=>Ge.open))}}(ne,Be,c)).subscribe(pt=>pt?m():H());return()=>ut.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:s}){s&&this.isOpen()&&(this._windowRef.instance.tooltipClass=s.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(Ct(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._elementRef.nativeElement}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.zs3),t.Y36(t.s_b),t.Y36(Ll),t.Y36(t.R0b),t.Y36(ae.K0),t.Y36(t.sBO),t.Y36(t.z2F))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",tooltipContext:"tooltipContext",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],standalone:!0,features:[t.TTD]})}return l})(),Ju=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Rf=(()=>{class l{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(s){!this.accentSensitive&&!String.prototype.normalize&&(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);const c=Ie(this.result),m=Array.isArray(this.term)?this.term:[this.term],H=ut=>this.accentSensitive?ut:Hi(ut),ne=m.map(ut=>function Jr(l){return l.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(H(Ie(ut)))).filter(ut=>ut),Be=this.accentSensitive?c:Hi(c),Ge=ne.length?Be.split(new RegExp(`(${ne.join("|")})`,"gmi")):[c];if(this.accentSensitive)this.parts=Ge;else{let ut=0;this.parts=Ge.map(pt=>c.substring(ut,ut+=pt.length))}}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},standalone:!0,features:[t.TTD,t.jDz],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["even",""]],template:function(c,m){1&c&&t.YNc(0,oo,3,2,"ng-template",0),2&c&&t.Q6J("ngForOf",m.parts)},dependencies:[ae.O5,ae.ax],styles:[".ngb-highlight{font-weight:700}\n"],encapsulation:2,changeDetection:0})}return l})(),Nf=(()=>{class l{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=Ie,this.selectEvent=new t.vpe,this.activeChangeEvent=new t.vpe}hasActive(){return this.activeIdx>-1&&this.activeIdx=0?this.id+"-"+this.activeIdx:void 0)}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(c,m){1&c&&t.NdJ("mousedown",function(ne){return ne.preventDefault()}),2&c&&(t.Ikx("id",m.id),t.Tol("dropdown-menu show"+(m.popupClass?" "+m.popupClass:"")))},inputs:{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate",popupClass:"popupClass"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],standalone:!0,features:[t.jDz],decls:3,vars:1,consts:[["rt",""],["ngFor","",3,"ngForOf"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"id","mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(c,m){1&c&&(t.YNc(0,xo,1,2,"ng-template",null,0,t.W1O),t.YNc(2,U,2,9,"ng-template",1)),2&c&&(t.xp6(2),t.Q6J("ngForOf",m.results))},dependencies:[Rf,ae.ax,ae.tP],encapsulation:2})}return l})(),Qu=(()=>{class l{constructor(){this.editable=!0,this.focusFirst=!0,this.selectOnExact=!1,this.showHint=!1,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=s=>s}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();const Fl=new t.OlP("live announcer delay",{providedIn:"root",factory:function Fc(){return 100}});function kl(l,C=!1){let s=l.body.querySelector("#ngb-live");return null==s&&C&&(s=l.createElement("div"),s.setAttribute("id","ngb-live"),s.setAttribute("aria-live","polite"),s.setAttribute("aria-atomic","true"),s.classList.add("visually-hidden"),l.body.appendChild(s)),s}let Lf=(()=>{class l{constructor(s,c){this._document=s,this._delay=c}ngOnDestroy(){const s=kl(this._document);s&&s.parentElement.removeChild(s)}say(s){const c=kl(this._document,!0),m=this._delay;if(null!=c){c.textContent="";const H=()=>c.textContent=s;null===m?H():setTimeout(H,m)}}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(ae.K0),t.LFG(Fl))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Ff=0,kc=(()=>{class l{constructor(s,c,m,H,ne,Be,Ge,ut,pt,sn,Gt){this._elementRef=s,this._renderer=m,this._live=Ge,this._document=ut,this._ngZone=pt,this._changeDetector=sn,this._subscription=null,this._closed$=new h.x,this._inputValueBackup=null,this._inputValueForSelectOnExact=null,this._windowRef=null,this.autocomplete="off",this.placement="bottom-start",this.selectItem=new t.vpe,this.activeDescendant=null,this.popupId="ngb-typeahead-"+Ff++,this._onTouched=()=>{},this._onChange=un=>{},this.container=ne.container,this.editable=ne.editable,this.focusFirst=ne.focusFirst,this.selectOnExact=ne.selectOnExact,this.showHint=ne.showHint,this.placement=ne.placement,this.popperOptions=ne.popperOptions,this._valueChanges=(0,O.R)(s.nativeElement,"input").pipe((0,xe.U)(un=>un.target.value)),this._resubscribeTypeahead=new k.X(null),this._popupService=new Mc(Nf,H,c,m,this._ngZone,Gt),this._positioning=qo()}ngOnInit(){this._subscribeToUserInput()}ngOnChanges({ngbTypeahead:s}){s&&!s.firstChange&&(this._unsubscribeFromUserInput(),this._subscribeToUserInput())}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput()}registerOnChange(s){this._onChange=s}registerOnTouched(s){this._onTouched=s}writeValue(s){this._writeInputValue(this._formatItemForInput(s)),this.showHint&&(this._inputValueBackup=s)}setDisabledState(s){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",s)}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead.next(null),this._closePopup(),this.showHint&&null!==this._inputValueBackup&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return null!=this._windowRef}handleBlur(){this._resubscribeTypeahead.next(null),this._onTouched()}handleKeyDown(s){if(this.isPopupOpen())switch(s.which){case fr.ArrowDown:s.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case fr.ArrowUp:s.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case fr.Enter:case fr.Tab:{const c=this._windowRef.instance.getActive();dr(c)&&(s.preventDefault(),s.stopPropagation(),this._selectResult(c)),this._closePopup();break}}}_openPopup(){if(!this.isPopupOpen()){this._inputValueBackup=this._elementRef.nativeElement.value;const{windowRef:s}=this._popupService.open();this._windowRef=s,this._windowRef.setInput("id",this.popupId),this._windowRef.setInput("popupClass",this.popupClass),this._windowRef.instance.selectEvent.subscribe(c=>this._selectResultClosePopup(c)),this._windowRef.instance.activeChangeEvent.subscribe(c=>this.activeDescendant=c),"body"===this.container&&(this._renderer.setStyle(this._windowRef.location.nativeElement,"z-index","1055"),this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement)),this._changeDetector.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._windowRef&&(this._positioning.createPopper({hostElement:this._elementRef.nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:c=>this.popperOptions(Dl([0,2])(c))}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update()))}),bl(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._elementRef.nativeElement,this._windowRef.location.nativeElement])}}_closePopup(){this._popupService.close().subscribe(()=>{this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._closed$.next(),this._windowRef=null,this.activeDescendant=null})}_selectResult(s){let c=!1;this.selectItem.emit({item:s,preventDefault:()=>{c=!0}}),this._resubscribeTypeahead.next(null),c||(this.writeValue(s),this._onChange(s))}_selectResultClosePopup(s){this._selectResult(s),this._closePopup()}_showHint(){if(this.showHint&&this._windowRef?.instance.hasActive()&&null!=this._inputValueBackup){const s=this._inputValueBackup.toLowerCase(),c=this._formatItemForInput(this._windowRef.instance.getActive());s===c.substring(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+c.substring(this._inputValueBackup.length)),this._elementRef.nativeElement.setSelectionRange.apply(this._elementRef.nativeElement,[this._inputValueBackup.length,c.length])):this._writeInputValue(c)}}_formatItemForInput(s){return null!=s&&this.inputFormatter?this.inputFormatter(s):Ie(s)}_writeInputValue(s){this._renderer.setProperty(this._elementRef.nativeElement,"value",Ie(s))}_subscribeToUserInput(){const s=this._valueChanges.pipe((0,ve.b)(c=>{this._inputValueBackup=this.showHint?c:null,this._inputValueForSelectOnExact=this.selectOnExact?c:null,this._onChange(this.editable?c:void 0)}),this.ngbTypeahead?this.ngbTypeahead:()=>(0,L.of)([]));this._subscription=this._resubscribeTypeahead.pipe((0,Ze.w)(()=>s)).subscribe(c=>{c&&0!==c.length?this.selectOnExact&&1===c.length&&this._formatItemForInput(c[0])===this._inputValueForSelectOnExact?(this._selectResult(c[0]),this._closePopup()):(this._openPopup(),this._windowRef.instance.focusFirst=this.focusFirst,this._windowRef.instance.results=c,this._windowRef.instance.term=this._elementRef.nativeElement.value,this.resultFormatter&&(this._windowRef.instance.formatter=this.resultFormatter),this.resultTemplate&&(this._windowRef.instance.resultTemplate=this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint()):this._closePopup();const m=c?c.length:0;this._live.say(0===m?"No results available":`${m} result${1===m?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.SBq),t.Y36(t.s_b),t.Y36(t.Qsj),t.Y36(t.zs3),t.Y36(Qu),t.Y36(t.R0b),t.Y36(Lf),t.Y36(ae.K0),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(t.z2F))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox"],hostVars:7,hostBindings:function(c,m){1&c&&t.NdJ("blur",function(){return m.handleBlur()})("keydown",function(ne){return m.handleKeyDown(ne)}),2&c&&(t.Ikx("autocomplete",m.autocomplete),t.uIk("aria-autocomplete",m.showHint?"both":"list")("aria-activedescendant",m.activeDescendant)("aria-owns",m.isPopupOpen()?m.popupId:null)("aria-expanded",m.isPopupOpen()),t.ekj("open",m.isPopupOpen()))},inputs:{autocomplete:"autocomplete",container:"container",editable:"editable",focusFirst:"focusFirst",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate",selectOnExact:"selectOnExact",showHint:"showHint",placement:"placement",popperOptions:"popperOptions",popupClass:"popupClass"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],standalone:!0,features:[t._Bn([{provide:fe.JU,useExisting:(0,t.Gpc)(()=>l),multi:!0}]),t.TTD]})}return l})(),Bc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),jc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})();const qu=[ja,Nt,rn,Xt,Iu,Ja,pf,xl,jc,Oc,$u,Ic,fs,Rc,Lc,Nl,Ju,Bc];let Hc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({imports:[qu,ja,Nt,rn,Xt,Iu,Ja,pf,xl,jc,Oc,$u,Ic,fs,Rc,Lc,Nl,Ju,Bc]})}return l})()},363:(Pe,V,a)=>{"use strict";a.d(V,{zB:()=>Un,C5:()=>Wt,ir:()=>yt,w9:()=>qn,A0:()=>pe});var t=a(5879),d=a(6223),w=a(9773),L=a(6321),h=a(9360),O=a(4829),R=a(8251),P=a(4825);var $=a(7921),f=a(9397),j=a(3620),M=a(2181),q=a(7398),ie=a(1954),k=a(7394);const Te={schedule(Z){let K=requestAnimationFrame,D=cancelAnimationFrame;const{delegate:X}=Te;X&&(K=X.requestAnimationFrame,D=X.cancelAnimationFrame);const de=K(Oe=>{D=void 0,Z(Oe)});return new k.w0(()=>D?.(de))},requestAnimationFrame(...Z){const{delegate:K}=Te;return(K?.requestAnimationFrame||requestAnimationFrame)(...Z)},cancelAnimationFrame(...Z){const{delegate:K}=Te;return(K?.cancelAnimationFrame||cancelAnimationFrame)(...Z)},delegate:void 0};var ye=a(2631);const _e=new class ce extends ye.v{flush(K){this._active=!0;const D=this._scheduled;this._scheduled=void 0;const{actions:X}=this;let de;K=K||X.shift();do{if(de=K.execute(K.state,K.delay))break}while((K=X[0])&&K.id===D&&X.shift());if(this._active=!1,de){for(;(K=X[0])&&K.id===D&&X.shift();)K.unsubscribe();throw de}}}(class Se extends ie.o{constructor(K,D){super(K,D),this.scheduler=K,this.work=D}requestAsyncId(K,D,X=0){return null!==X&&X>0?super.requestAsyncId(K,D,X):(K.actions.push(this),K._scheduled||(K._scheduled=Te.requestAnimationFrame(()=>K.flush(void 0))))}recycleAsyncId(K,D,X=0){var de;if(null!=X?X>0:this.delay>0)return super.recycleAsyncId(K,D,X);const{actions:Oe}=K;null!=D&&(null===(de=Oe[Oe.length-1])||void 0===de?void 0:de.id)!==D&&(Te.cancelAnimationFrame(D),K._scheduled=void 0)}});let be,xe=1;const ke={};function vt(Z){return Z in ke&&(delete ke[Z],!0)}const rt={setImmediate(Z){const K=xe++;return ke[K]=!0,be||(be=Promise.resolve()),be.then(()=>vt(K)&&Z()),K},clearImmediate(Z){vt(Z)}},{setImmediate:qe,clearImmediate:_t}=rt,$e={setImmediate(...Z){const{delegate:K}=$e;return(K?.setImmediate||qe)(...Z)},clearImmediate(Z){const{delegate:K}=$e;return(K?.clearImmediate||_t)(Z)},delegate:void 0},J=new class Ze extends ye.v{flush(K){this._active=!0;const D=this._scheduled;this._scheduled=void 0;const{actions:X}=this;let de;K=K||X.shift();do{if(de=K.execute(K.state,K.delay))break}while((K=X[0])&&K.id===D&&X.shift());if(this._active=!1,de){for(;(K=X[0])&&K.id===D&&X.shift();)K.unsubscribe();throw de}}}(class Ee extends ie.o{constructor(K,D){super(K,D),this.scheduler=K,this.work=D}requestAsyncId(K,D,X=0){return null!==X&&X>0?super.requestAsyncId(K,D,X):(K.actions.push(this),K._scheduled||(K._scheduled=$e.setImmediate(K.flush.bind(K,void 0))))}recycleAsyncId(K,D,X=0){var de;if(null!=X?X>0:this.delay>0)return super.recycleAsyncId(K,D,X);const{actions:Oe}=K;null!=D&&(null===(de=Oe[Oe.length-1])||void 0===de?void 0:de.id)!==D&&($e.clearImmediate(D),K._scheduled===D&&(K._scheduled=void 0))}});var oe=a(8645),se=a(2438),ae=a(3019),fe=a(6814);const De=["content"],je=["scroll"],Xe=["padding"],tt=function(Z){return{searchTerm:Z}};function wt(Z,K){if(1&Z&&(t.TgZ(0,"div",6),t.GkF(1,7),t.qZA()),2&Z){const D=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",D.headerTemplate)("ngTemplateOutletContext",t.VKq(2,tt,D.filterValue))}}function It(Z,K){if(1&Z&&(t.TgZ(0,"div",8),t.GkF(1,7),t.qZA()),2&Z){const D=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",D.footerTemplate)("ngTemplateOutletContext",t.VKq(2,tt,D.filterValue))}}const Je=["*"],Tt=["searchInput"],et=["clearButton"];function Pt(Z,K){if(1&Z){const D=t.EpF();t.TgZ(0,"span",15),t.NdJ("click",function(){t.CHM(D);const de=t.oxw().$implicit,Oe=t.oxw(2);return t.KtG(Oe.unselect(de))}),t._uU(1,"\xd7"),t.qZA(),t._UZ(2,"span",16)}if(2&Z){const D=t.oxw().$implicit,X=t.oxw(2);t.xp6(2),t.Q6J("ngItemLabel",D.label)("escape",X.escapeHTML)}}function Zt(Z,K){}const dn=function(Z,K,D){return{item:Z,clear:K,label:D}};function Rn(Z,K){if(1&Z&&(t.TgZ(0,"div",12),t.YNc(1,Pt,3,2,"ng-template",null,13,t.W1O),t.YNc(3,Zt,0,0,"ng-template",14),t.qZA()),2&Z){const D=K.$implicit,X=t.MAs(2),de=t.oxw(2);t.ekj("ng-value-disabled",D.disabled),t.xp6(3),t.Q6J("ngTemplateOutlet",de.labelTemplate||X)("ngTemplateOutletContext",t.kEZ(4,dn,D.value,de.clearItem,D.label))}}function We(Z,K){if(1&Z&&(t.ynx(0),t.YNc(1,Rn,4,8,"div",11),t.BQk()),2&Z){const D=t.oxw();t.xp6(1),t.Q6J("ngForOf",D.selectedItems)("ngForTrackBy",D.trackByOption)}}function Ye(Z,K){}const At=function(Z,K){return{items:Z,clear:K}};function xt(Z,K){if(1&Z&&t.YNc(0,Ye,0,0,"ng-template",14),2&Z){const D=t.oxw();t.Q6J("ngTemplateOutlet",D.multiLabelTemplate)("ngTemplateOutletContext",t.WLB(2,At,D.selectedValues,D.clearItem))}}function nn(Z,K){1&Z&&t._UZ(0,"div",19)}function Et(Z,K){}function Ht(Z,K){if(1&Z&&(t.ynx(0),t.YNc(1,nn,1,0,"ng-template",null,17,t.W1O),t.YNc(3,Et,0,0,"ng-template",18),t.BQk()),2&Z){const D=t.MAs(2),X=t.oxw();t.xp6(3),t.Q6J("ngTemplateOutlet",X.loadingSpinnerTemplate||D)}}function zt(Z,K){if(1&Z&&(t.TgZ(0,"span",20,21)(2,"span",22),t._uU(3,"\xd7"),t.qZA()()),2&Z){const D=t.oxw();t.s9C("title",D.clearAllText)}}function fn(Z,K){if(1&Z&&t._UZ(0,"span",28),2&Z){const D=t.oxw().$implicit,X=t.oxw(2);t.Q6J("ngItemLabel",D.label)("escape",X.escapeHTML)}}function Sn(Z,K){}const hn=function(Z,K,D,X){return{item:Z,item$:K,index:D,searchTerm:X}};function en(Z,K){if(1&Z){const D=t.EpF();t.TgZ(0,"div",26),t.NdJ("click",function(){const Oe=t.CHM(D).$implicit,Ae=t.oxw(2);return t.KtG(Ae.toggleItem(Oe))})("mouseover",function(){const Oe=t.CHM(D).$implicit,Ae=t.oxw(2);return t.KtG(Ae.onItemHover(Oe))}),t.YNc(1,fn,1,2,"ng-template",null,27,t.W1O),t.YNc(3,Sn,0,0,"ng-template",14),t.qZA()}if(2&Z){const D=K.$implicit,X=t.MAs(2),de=t.oxw(2);t.ekj("ng-option-disabled",D.disabled)("ng-option-selected",D.selected)("ng-optgroup",D.children)("ng-option",!D.children)("ng-option-child",!!D.parent)("ng-option-marked",D===de.itemsList.markedItem),t.uIk("role",D.children?"group":"option")("aria-selected",D.selected)("id",null==D?null:D.htmlId),t.xp6(3),t.Q6J("ngTemplateOutlet",D.children?de.optgroupTemplate||X:de.optionTemplate||X)("ngTemplateOutletContext",t.l5B(17,hn,D.value,D,D.index,de.searchTerm))}}function Dn(Z,K){if(1&Z&&(t.TgZ(0,"span")(1,"span",31),t._uU(2),t.qZA(),t._uU(3),t.qZA()),2&Z){const D=t.oxw(3);t.xp6(2),t.Oqu(D.addTagText),t.xp6(1),t.hij('"',D.searchTerm,'"')}}function Wn(Z,K){}function _n(Z,K){if(1&Z){const D=t.EpF();t.TgZ(0,"div",29),t.NdJ("mouseover",function(){t.CHM(D);const de=t.oxw(2);return t.KtG(de.itemsList.unmarkItem())})("click",function(){t.CHM(D);const de=t.oxw(2);return t.KtG(de.selectTag())}),t.YNc(1,Dn,4,2,"ng-template",null,30,t.W1O),t.YNc(3,Wn,0,0,"ng-template",14),t.qZA()}if(2&Z){const D=t.MAs(2),X=t.oxw(2);t.ekj("ng-option-marked",!X.itemsList.markedItem),t.xp6(3),t.Q6J("ngTemplateOutlet",X.tagTemplate||D)("ngTemplateOutletContext",t.VKq(4,tt,X.searchTerm))}}function Er(Z,K){if(1&Z&&(t.TgZ(0,"div",33),t._uU(1),t.qZA()),2&Z){const D=t.oxw(3);t.xp6(1),t.Oqu(D.notFoundText)}}function it(Z,K){}function Ut(Z,K){if(1&Z&&(t.ynx(0),t.YNc(1,Er,2,1,"ng-template",null,32,t.W1O),t.YNc(3,it,0,0,"ng-template",14),t.BQk()),2&Z){const D=t.MAs(2),X=t.oxw(2);t.xp6(3),t.Q6J("ngTemplateOutlet",X.notFoundTemplate||D)("ngTemplateOutletContext",t.VKq(2,tt,X.searchTerm))}}function Qt(Z,K){if(1&Z&&(t.TgZ(0,"div",33),t._uU(1),t.qZA()),2&Z){const D=t.oxw(3);t.xp6(1),t.Oqu(D.typeToSearchText)}}function Cn(Z,K){}function An(Z,K){if(1&Z&&(t.ynx(0),t.YNc(1,Qt,2,1,"ng-template",null,34,t.W1O),t.YNc(3,Cn,0,0,"ng-template",18),t.BQk()),2&Z){const D=t.MAs(2),X=t.oxw(2);t.xp6(3),t.Q6J("ngTemplateOutlet",X.typeToSearchTemplate||D)}}function In(Z,K){if(1&Z&&(t.TgZ(0,"div",33),t._uU(1),t.qZA()),2&Z){const D=t.oxw(3);t.xp6(1),t.Oqu(D.loadingText)}}function nr(Z,K){}function Dr(Z,K){if(1&Z&&(t.ynx(0),t.YNc(1,In,2,1,"ng-template",null,35,t.W1O),t.YNc(3,nr,0,0,"ng-template",14),t.BQk()),2&Z){const D=t.MAs(2),X=t.oxw(2);t.xp6(3),t.Q6J("ngTemplateOutlet",X.loadingTextTemplate||D)("ngTemplateOutletContext",t.VKq(2,tt,X.searchTerm))}}function wr(Z,K){if(1&Z){const D=t.EpF();t.TgZ(0,"ng-dropdown-panel",23),t.NdJ("update",function(de){t.CHM(D);const Oe=t.oxw();return t.KtG(Oe.viewPortItems=de)})("scroll",function(de){t.CHM(D);const Oe=t.oxw();return t.KtG(Oe.scroll.emit(de))})("scrollToEnd",function(de){t.CHM(D);const Oe=t.oxw();return t.KtG(Oe.scrollToEnd.emit(de))})("outsideClick",function(){t.CHM(D);const de=t.oxw();return t.KtG(de.close())}),t.ynx(1),t.YNc(2,en,4,22,"div",24),t.YNc(3,_n,4,6,"div",25),t.BQk(),t.YNc(4,Ut,4,4,"ng-container",3),t.YNc(5,An,4,1,"ng-container",3),t.YNc(6,Dr,4,4,"ng-container",3),t.qZA()}if(2&Z){const D=t.oxw();t.ekj("ng-select-multiple",D.multiple),t.Q6J("virtualScroll",D.virtualScroll)("bufferAmount",D.bufferAmount)("appendTo",D.appendTo)("position",D.dropdownPosition)("headerTemplate",D.headerTemplate)("footerTemplate",D.footerTemplate)("filterValue",D.searchTerm)("items",D.itemsList.filteredItems)("markedItem",D.itemsList.markedItem)("ngClass",D.appendTo?D.classes:null)("id",D.dropdownId),t.xp6(2),t.Q6J("ngForOf",D.viewPortItems)("ngForTrackBy",D.trackByOption),t.xp6(1),t.Q6J("ngIf",D.showAddTag),t.xp6(1),t.Q6J("ngIf",D.showNoItemsFound()),t.xp6(1),t.Q6J("ngIf",D.showTypeToSearch()),t.xp6(1),t.Q6J("ngIf",D.loading&&0===D.itemsList.filteredItems.length)}}const Or=/[&<>"']/g,Ir=RegExp(Or.source),Br={"&":"&","<":"<",">":">",'"':""","'":"'"};function Zn(Z){return null!=Z}function dt(Z){return"object"==typeof Z&&Zn(Z)}function we(Z){return Z instanceof Function}let He=(()=>{class Z{constructor(D){this.element=D,this.escape=!0}ngOnChanges(D){this.element.nativeElement.innerHTML=this.escape?function oi(Z){return Z&&Ir.test(Z)?Z.replace(Or,K=>Br[K]):Z}(this.ngItemLabel):this.ngItemLabel}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:Z,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[t.TTD]})}return Z})(),yt=(()=>{class Z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:Z,selectors:[["","ng-option-tmp",""]]})}return Z})(),Wt=(()=>{class Z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:Z,selectors:[["","ng-optgroup-tmp",""]]})}return Z})(),Vt=(()=>{class Z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:Z,selectors:[["","ng-label-tmp",""]]})}return Z})(),Un=(()=>{class Z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:Z,selectors:[["","ng-multi-label-tmp",""]]})}return Z})(),on=(()=>{class Z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:Z,selectors:[["","ng-header-tmp",""]]})}return Z})(),rr=(()=>{class Z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:Z,selectors:[["","ng-footer-tmp",""]]})}return Z})(),ln=(()=>{class Z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:Z,selectors:[["","ng-notfound-tmp",""]]})}return Z})(),$n=(()=>{class Z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:Z,selectors:[["","ng-typetosearch-tmp",""]]})}return Z})(),Qe=(()=>{class Z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:Z,selectors:[["","ng-loadingtext-tmp",""]]})}return Z})(),Le=(()=>{class Z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:Z,selectors:[["","ng-tag-tmp",""]]})}return Z})(),Ue=(()=>{class Z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:Z,selectors:[["","ng-loadingspinner-tmp",""]]})}return Z})();function bt(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const Rt={"\u24b6":"A",\uff21:"A",\u00c0:"A",\u00c1:"A",\u00c2:"A",\u1ea6:"A",\u1ea4:"A",\u1eaa:"A",\u1ea8:"A",\u00c3:"A",\u0100:"A",\u0102:"A",\u1eb0:"A",\u1eae:"A",\u1eb4:"A",\u1eb2:"A",\u0226:"A",\u01e0:"A",\u00c4:"A",\u01de:"A",\u1ea2:"A",\u00c5:"A",\u01fa:"A",\u01cd:"A",\u0200:"A",\u0202:"A",\u1ea0:"A",\u1eac:"A",\u1eb6:"A",\u1e00:"A",\u0104:"A",\u023a:"A",\u2c6f:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY","\u24b7":"B",\uff22:"B",\u1e02:"B",\u1e04:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0181:"B","\u24b8":"C",\uff23:"C",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0187:"C",\u023b:"C",\ua73e:"C","\u24b9":"D",\uff24:"D",\u1e0a:"D",\u010e:"D",\u1e0c:"D",\u1e10:"D",\u1e12:"D",\u1e0e:"D",\u0110:"D",\u018b:"D",\u018a:"D",\u0189:"D",\ua779:"D",\u01f1:"DZ",\u01c4:"DZ",\u01f2:"Dz",\u01c5:"Dz","\u24ba":"E",\uff25:"E",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u1ec0:"E",\u1ebe:"E",\u1ec4:"E",\u1ec2:"E",\u1ebc:"E",\u0112:"E",\u1e14:"E",\u1e16:"E",\u0114:"E",\u0116:"E",\u00cb:"E",\u1eba:"E",\u011a:"E",\u0204:"E",\u0206:"E",\u1eb8:"E",\u1ec6:"E",\u0228:"E",\u1e1c:"E",\u0118:"E",\u1e18:"E",\u1e1a:"E",\u0190:"E",\u018e:"E","\u24bb":"F",\uff26:"F",\u1e1e:"F",\u0191:"F",\ua77b:"F","\u24bc":"G",\uff27:"G",\u01f4:"G",\u011c:"G",\u1e20:"G",\u011e:"G",\u0120:"G",\u01e6:"G",\u0122:"G",\u01e4:"G",\u0193:"G",\ua7a0:"G",\ua77d:"G",\ua77e:"G","\u24bd":"H",\uff28:"H",\u0124:"H",\u1e22:"H",\u1e26:"H",\u021e:"H",\u1e24:"H",\u1e28:"H",\u1e2a:"H",\u0126:"H",\u2c67:"H",\u2c75:"H",\ua78d:"H","\u24be":"I",\uff29:"I",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u0128:"I",\u012a:"I",\u012c:"I",\u0130:"I",\u00cf:"I",\u1e2e:"I",\u1ec8:"I",\u01cf:"I",\u0208:"I",\u020a:"I",\u1eca:"I",\u012e:"I",\u1e2c:"I",\u0197:"I","\u24bf":"J",\uff2a:"J",\u0134:"J",\u0248:"J","\u24c0":"K",\uff2b:"K",\u1e30:"K",\u01e8:"K",\u1e32:"K",\u0136:"K",\u1e34:"K",\u0198:"K",\u2c69:"K",\ua740:"K",\ua742:"K",\ua744:"K",\ua7a2:"K","\u24c1":"L",\uff2c:"L",\u013f:"L",\u0139:"L",\u013d:"L",\u1e36:"L",\u1e38:"L",\u013b:"L",\u1e3c:"L",\u1e3a:"L",\u0141:"L",\u023d:"L",\u2c62:"L",\u2c60:"L",\ua748:"L",\ua746:"L",\ua780:"L",\u01c7:"LJ",\u01c8:"Lj","\u24c2":"M",\uff2d:"M",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u019c:"M","\u24c3":"N",\uff2e:"N",\u01f8:"N",\u0143:"N",\u00d1:"N",\u1e44:"N",\u0147:"N",\u1e46:"N",\u0145:"N",\u1e4a:"N",\u1e48:"N",\u0220:"N",\u019d:"N",\ua790:"N",\ua7a4:"N",\u01ca:"NJ",\u01cb:"Nj","\u24c4":"O",\uff2f:"O",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u1ed2:"O",\u1ed0:"O",\u1ed6:"O",\u1ed4:"O",\u00d5:"O",\u1e4c:"O",\u022c:"O",\u1e4e:"O",\u014c:"O",\u1e50:"O",\u1e52:"O",\u014e:"O",\u022e:"O",\u0230:"O",\u00d6:"O",\u022a:"O",\u1ece:"O",\u0150:"O",\u01d1:"O",\u020c:"O",\u020e:"O",\u01a0:"O",\u1edc:"O",\u1eda:"O",\u1ee0:"O",\u1ede:"O",\u1ee2:"O",\u1ecc:"O",\u1ed8:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u0186:"O",\u019f:"O",\ua74a:"O",\ua74c:"O",\u01a2:"OI",\ua74e:"OO",\u0222:"OU","\u24c5":"P",\uff30:"P",\u1e54:"P",\u1e56:"P",\u01a4:"P",\u2c63:"P",\ua750:"P",\ua752:"P",\ua754:"P","\u24c6":"Q",\uff31:"Q",\ua756:"Q",\ua758:"Q",\u024a:"Q","\u24c7":"R",\uff32:"R",\u0154:"R",\u1e58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1e5a:"R",\u1e5c:"R",\u0156:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua75a:"R",\ua7a6:"R",\ua782:"R","\u24c8":"S",\uff33:"S",\u1e9e:"S",\u015a:"S",\u1e64:"S",\u015c:"S",\u1e60:"S",\u0160:"S",\u1e66:"S",\u1e62:"S",\u1e68:"S",\u0218:"S",\u015e:"S",\u2c7e:"S",\ua7a8:"S",\ua784:"S","\u24c9":"T",\uff34:"T",\u1e6a:"T",\u0164:"T",\u1e6c:"T",\u021a:"T",\u0162:"T",\u1e70:"T",\u1e6e:"T",\u0166:"T",\u01ac:"T",\u01ae:"T",\u023e:"T",\ua786:"T",\ua728:"TZ","\u24ca":"U",\uff35:"U",\u00d9:"U",\u00da:"U",\u00db:"U",\u0168:"U",\u1e78:"U",\u016a:"U",\u1e7a:"U",\u016c:"U",\u00dc:"U",\u01db:"U",\u01d7:"U",\u01d5:"U",\u01d9:"U",\u1ee6:"U",\u016e:"U",\u0170:"U",\u01d3:"U",\u0214:"U",\u0216:"U",\u01af:"U",\u1eea:"U",\u1ee8:"U",\u1eee:"U",\u1eec:"U",\u1ef0:"U",\u1ee4:"U",\u1e72:"U",\u0172:"U",\u1e76:"U",\u1e74:"U",\u0244:"U","\u24cb":"V",\uff36:"V",\u1e7c:"V",\u1e7e:"V",\u01b2:"V",\ua75e:"V",\u0245:"V",\ua760:"VY","\u24cc":"W",\uff37:"W",\u1e80:"W",\u1e82:"W",\u0174:"W",\u1e86:"W",\u1e84:"W",\u1e88:"W",\u2c72:"W","\u24cd":"X",\uff38:"X",\u1e8a:"X",\u1e8c:"X","\u24ce":"Y",\uff39:"Y",\u1ef2:"Y",\u00dd:"Y",\u0176:"Y",\u1ef8:"Y",\u0232:"Y",\u1e8e:"Y",\u0178:"Y",\u1ef6:"Y",\u1ef4:"Y",\u01b3:"Y",\u024e:"Y",\u1efe:"Y","\u24cf":"Z",\uff3a:"Z",\u0179:"Z",\u1e90:"Z",\u017b:"Z",\u017d:"Z",\u1e92:"Z",\u1e94:"Z",\u01b5:"Z",\u0224:"Z",\u2c7f:"Z",\u2c6b:"Z",\ua762:"Z","\u24d0":"a",\uff41:"a",\u1e9a:"a",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u1ea7:"a",\u1ea5:"a",\u1eab:"a",\u1ea9:"a",\u00e3:"a",\u0101:"a",\u0103:"a",\u1eb1:"a",\u1eaf:"a",\u1eb5:"a",\u1eb3:"a",\u0227:"a",\u01e1:"a",\u00e4:"a",\u01df:"a",\u1ea3:"a",\u00e5:"a",\u01fb:"a",\u01ce:"a",\u0201:"a",\u0203:"a",\u1ea1:"a",\u1ead:"a",\u1eb7:"a",\u1e01:"a",\u0105:"a",\u2c65:"a",\u0250:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay","\u24d1":"b",\uff42:"b",\u1e03:"b",\u1e05:"b",\u1e07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24d2":"c",\uff43:"c",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0188:"c",\u023c:"c",\ua73f:"c",\u2184:"c","\u24d3":"d",\uff44:"d",\u1e0b:"d",\u010f:"d",\u1e0d:"d",\u1e11:"d",\u1e13:"d",\u1e0f:"d",\u0111:"d",\u018c:"d",\u0256:"d",\u0257:"d",\ua77a:"d",\u01f3:"dz",\u01c6:"dz","\u24d4":"e",\uff45:"e",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u1ec1:"e",\u1ebf:"e",\u1ec5:"e",\u1ec3:"e",\u1ebd:"e",\u0113:"e",\u1e15:"e",\u1e17:"e",\u0115:"e",\u0117:"e",\u00eb:"e",\u1ebb:"e",\u011b:"e",\u0205:"e",\u0207:"e",\u1eb9:"e",\u1ec7:"e",\u0229:"e",\u1e1d:"e",\u0119:"e",\u1e19:"e",\u1e1b:"e",\u0247:"e",\u025b:"e",\u01dd:"e","\u24d5":"f",\uff46:"f",\u1e1f:"f",\u0192:"f",\ua77c:"f","\u24d6":"g",\uff47:"g",\u01f5:"g",\u011d:"g",\u1e21:"g",\u011f:"g",\u0121:"g",\u01e7:"g",\u0123:"g",\u01e5:"g",\u0260:"g",\ua7a1:"g",\u1d79:"g",\ua77f:"g","\u24d7":"h",\uff48:"h",\u0125:"h",\u1e23:"h",\u1e27:"h",\u021f:"h",\u1e25:"h",\u1e29:"h",\u1e2b:"h",\u1e96:"h",\u0127:"h",\u2c68:"h",\u2c76:"h",\u0265:"h",\u0195:"hv","\u24d8":"i",\uff49:"i",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u0129:"i",\u012b:"i",\u012d:"i",\u00ef:"i",\u1e2f:"i",\u1ec9:"i",\u01d0:"i",\u0209:"i",\u020b:"i",\u1ecb:"i",\u012f:"i",\u1e2d:"i",\u0268:"i",\u0131:"i","\u24d9":"j",\uff4a:"j",\u0135:"j",\u01f0:"j",\u0249:"j","\u24da":"k",\uff4b:"k",\u1e31:"k",\u01e9:"k",\u1e33:"k",\u0137:"k",\u1e35:"k",\u0199:"k",\u2c6a:"k",\ua741:"k",\ua743:"k",\ua745:"k",\ua7a3:"k","\u24db":"l",\uff4c:"l",\u0140:"l",\u013a:"l",\u013e:"l",\u1e37:"l",\u1e39:"l",\u013c:"l",\u1e3d:"l",\u1e3b:"l",\u017f:"l",\u0142:"l",\u019a:"l",\u026b:"l",\u2c61:"l",\ua749:"l",\ua781:"l",\ua747:"l",\u01c9:"lj","\u24dc":"m",\uff4d:"m",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u026f:"m","\u24dd":"n",\uff4e:"n",\u01f9:"n",\u0144:"n",\u00f1:"n",\u1e45:"n",\u0148:"n",\u1e47:"n",\u0146:"n",\u1e4b:"n",\u1e49:"n",\u019e:"n",\u0272:"n",\u0149:"n",\ua791:"n",\ua7a5:"n",\u01cc:"nj","\u24de":"o",\uff4f:"o",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u1ed3:"o",\u1ed1:"o",\u1ed7:"o",\u1ed5:"o",\u00f5:"o",\u1e4d:"o",\u022d:"o",\u1e4f:"o",\u014d:"o",\u1e51:"o",\u1e53:"o",\u014f:"o",\u022f:"o",\u0231:"o",\u00f6:"o",\u022b:"o",\u1ecf:"o",\u0151:"o",\u01d2:"o",\u020d:"o",\u020f:"o",\u01a1:"o",\u1edd:"o",\u1edb:"o",\u1ee1:"o",\u1edf:"o",\u1ee3:"o",\u1ecd:"o",\u1ed9:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u0254:"o",\ua74b:"o",\ua74d:"o",\u0275:"o",\u01a3:"oi",\u0223:"ou",\ua74f:"oo","\u24df":"p",\uff50:"p",\u1e55:"p",\u1e57:"p",\u01a5:"p",\u1d7d:"p",\ua751:"p",\ua753:"p",\ua755:"p","\u24e0":"q",\uff51:"q",\u024b:"q",\ua757:"q",\ua759:"q","\u24e1":"r",\uff52:"r",\u0155:"r",\u1e59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1e5b:"r",\u1e5d:"r",\u0157:"r",\u1e5f:"r",\u024d:"r",\u027d:"r",\ua75b:"r",\ua7a7:"r",\ua783:"r","\u24e2":"s",\uff53:"s",\u00df:"s",\u015b:"s",\u1e65:"s",\u015d:"s",\u1e61:"s",\u0161:"s",\u1e67:"s",\u1e63:"s",\u1e69:"s",\u0219:"s",\u015f:"s",\u023f:"s",\ua7a9:"s",\ua785:"s",\u1e9b:"s","\u24e3":"t",\uff54:"t",\u1e6b:"t",\u1e97:"t",\u0165:"t",\u1e6d:"t",\u021b:"t",\u0163:"t",\u1e71:"t",\u1e6f:"t",\u0167:"t",\u01ad:"t",\u0288:"t",\u2c66:"t",\ua787:"t",\ua729:"tz","\u24e4":"u",\uff55:"u",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u0169:"u",\u1e79:"u",\u016b:"u",\u1e7b:"u",\u016d:"u",\u00fc:"u",\u01dc:"u",\u01d8:"u",\u01d6:"u",\u01da:"u",\u1ee7:"u",\u016f:"u",\u0171:"u",\u01d4:"u",\u0215:"u",\u0217:"u",\u01b0:"u",\u1eeb:"u",\u1ee9:"u",\u1eef:"u",\u1eed:"u",\u1ef1:"u",\u1ee5:"u",\u1e73:"u",\u0173:"u",\u1e77:"u",\u1e75:"u",\u0289:"u","\u24e5":"v",\uff56:"v",\u1e7d:"v",\u1e7f:"v",\u028b:"v",\ua75f:"v",\u028c:"v",\ua761:"vy","\u24e6":"w",\uff57:"w",\u1e81:"w",\u1e83:"w",\u0175:"w",\u1e87:"w",\u1e85:"w",\u1e98:"w",\u1e89:"w",\u2c73:"w","\u24e7":"x",\uff58:"x",\u1e8b:"x",\u1e8d:"x","\u24e8":"y",\uff59:"y",\u1ef3:"y",\u00fd:"y",\u0177:"y",\u1ef9:"y",\u0233:"y",\u1e8f:"y",\u00ff:"y",\u1ef7:"y",\u1e99:"y",\u1ef5:"y",\u01b4:"y",\u024f:"y",\u1eff:"y","\u24e9":"z",\uff5a:"z",\u017a:"z",\u1e91:"z",\u017c:"z",\u017e:"z",\u1e93:"z",\u1e95:"z",\u01b6:"z",\u0225:"z",\u0240:"z",\u2c6c:"z",\ua763:"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038a:"\u0399",\u03aa:"\u0399",\u038c:"\u039f",\u038e:"\u03a5",\u03ab:"\u03a5",\u038f:"\u03a9",\u03ac:"\u03b1",\u03ad:"\u03b5",\u03ae:"\u03b7",\u03af:"\u03b9",\u03ca:"\u03b9",\u0390:"\u03b9",\u03cc:"\u03bf",\u03cd:"\u03c5",\u03cb:"\u03c5",\u03b0:"\u03c5",\u03c9:"\u03c9",\u03c2:"\u03c3"};function kt(Z){return Z.replace(/[^\u0000-\u007E]/g,D=>Rt[D]||D)}class Ft{constructor(K,D){this._ngSelect=K,this._selectionModel=D,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let K=this.selectedItems.length-1;for(;K>=0;K--){const D=this.selectedItems[K];if(!D.disabled)return D}return null}setItems(K){this._items=K.map((D,X)=>this.mapItem(D,X)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(K){if(K.selected||this.maxItemsSelected)return;const D=this._ngSelect.multiple;D||this.clearSelected(),this._selectionModel.select(K,D,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(K)}unselect(K){K.selected&&(this._selectionModel.unselect(K,this._ngSelect.multiple),this._ngSelect.hideSelected&&Zn(K.index)&&this._ngSelect.multiple&&this._showSelected(K))}findItem(K){let D;return D=this._ngSelect.compareWith?X=>this._ngSelect.compareWith(X.value,K):this._ngSelect.bindValue?X=>!X.children&&this.resolveNested(X.value,this._ngSelect.bindValue)===K:X=>X.value===K||!X.children&&X.label&&X.label===this.resolveNested(K,this._ngSelect.bindLabel),this._items.find(X=>D(X))}addItem(K){const D=this.mapItem(K,this._items.length);return this._items.push(D),this._filteredItems.push(D),D}clearSelected(K=!1){this._selectionModel.clear(K),this._items.forEach(D=>{D.selected=K&&D.selected&&D.disabled,D.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(K){return K=kt(K).toLocaleLowerCase(),this.filteredItems.find(D=>kt(D.label).toLocaleLowerCase().substr(0,K.length)===K)}filter(K){if(!K)return void this.resetFilteredItems();this._filteredItems=[],K=this._ngSelect.searchFn?K:kt(K).toLocaleLowerCase();const D=this._ngSelect.searchFn||this._defaultSearchFn,X=this._ngSelect.hideSelected;for(const de of Array.from(this._groups.keys())){const Oe=[];for(const Ae of this._groups.get(de))X&&(Ae.parent&&Ae.parent.selected||Ae.selected)||D(K,this._ngSelect.searchFn?Ae.value:Ae)&&Oe.push(Ae);if(Oe.length>0){const[Ae]=Oe.slice(-1);if(Ae.parent){const mt=this._items.find($t=>$t===Ae.parent);this._filteredItems.push(mt)}this._filteredItems.push(...Oe)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(K=>!K.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(K){this._markedIndex=this._filteredItems.indexOf(K)}markSelectedOrDefault(K){if(0===this._filteredItems.length)return;const D=this._getLastMarkedIndex();this._markedIndex=D>-1?D:K?this.filteredItems.findIndex(X=>!X.disabled):-1}resolveNested(K,D){if(!dt(K))return K;if(-1===D.indexOf("."))return K[D];{const X=D.split(".");let de=K;for(let Oe=0,Ae=X.length;Oe-1===this.selectedItems.indexOf(D)))}_showSelected(K){if(this._filteredItems.push(K),K.parent){const D=K.parent;this._filteredItems.find(de=>de===D)||this._filteredItems.push(D)}else if(K.children)for(const D of K.children)D.selected=!1,this._filteredItems.push(D);this._filteredItems=[...this._filteredItems.sort((D,X)=>D.index-X.index)]}_hideSelected(K){this._filteredItems=this._filteredItems.filter(D=>D!==K),K.parent?K.parent.children.every(X=>X.selected)&&(this._filteredItems=this._filteredItems.filter(X=>X!==K.parent)):K.children&&(this._filteredItems=this.filteredItems.filter(D=>D.parent!==K))}_defaultSearchFn(K,D){return kt(D.label).toLocaleLowerCase().indexOf(K)>-1}_getNextItemIndex(K){return K>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(K){0===this._filteredItems.length||this._filteredItems.every(D=>D.disabled)||(this._markedIndex=this._getNextItemIndex(K),this.markedItem.disabled&&this._stepToItem(K))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const K=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&K<0?-1:Math.max(this.markedIndex,K)}_groupBy(K,D){const X=new Map;if(0===K.length)return X;if(Array.isArray(K[0].value[D])){for(const Ae of K){const mt=(Ae.value[D]||[]).map(($t,cn)=>this.mapItem($t,cn));X.set(Ae,mt)}return X}const de=we(this._ngSelect.groupBy),Oe=Ae=>{const mt=de?D(Ae.value):Ae.value[D];return Zn(mt)?mt:void 0};for(const Ae of K){const mt=Oe(Ae),$t=X.get(mt);$t?$t.push(Ae):X.set(mt,[Ae])}return X}_flatten(K){const D=we(this._ngSelect.groupBy),X=[];for(const de of Array.from(K.keys())){let Oe=X.length;if(void 0===de){const En=K.get(void 0)||[];X.push(...En.map(Nn=>(Nn.index=Oe++,Nn)));continue}const Ae=dt(de),mt={label:Ae?"":String(de),children:void 0,parent:null,index:Oe++,disabled:!this._ngSelect.selectableGroup,htmlId:bt()},$t=D?this._ngSelect.bindLabel:this._ngSelect.groupBy,cn=this._ngSelect.groupValue||(()=>Ae?de.value:{[$t]:de}),vn=K.get(de).map(En=>(En.parent=mt,En.children=void 0,En.index=Oe++,En));mt.children=vn,mt.value=cn(de,vn.map(En=>En.value)),X.push(mt),X.push(...vn)}return X}}var an=function(Z){return Z[Z.Tab=9]="Tab",Z[Z.Enter=13]="Enter",Z[Z.Esc=27]="Esc",Z[Z.Space=32]="Space",Z[Z.ArrowUp=38]="ArrowUp",Z[Z.ArrowDown=40]="ArrowDown",Z[Z.Backspace=8]="Backspace",Z}(an||{});let wn=(()=>{class Z{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(D,X,de){const Oe=this._dimensions,Ae=Oe.itemHeight*X,$t=Math.max(0,D)/Ae*X;let cn=Math.min(X,Math.ceil($t)+(Oe.itemsPerViewport+1));const En=Math.max(0,cn-Oe.itemsPerViewport);let Nn=Math.min(En,Math.floor($t)),ir=Oe.itemHeight*Math.ceil(Nn)-Oe.itemHeight*Math.min(Nn,de);return ir=isNaN(ir)?0:ir,Nn=isNaN(Nn)?-1:Nn,cn=isNaN(cn)?-1:cn,Nn-=de,Nn=Math.max(0,Nn),cn+=de,cn=Math.min(X,cn),{topPadding:ir,scrollHeight:Ae,start:Nn,end:cn}}setDimensions(D,X){const de=Math.max(1,Math.floor(X/D));this._dimensions={itemHeight:D,panelHeight:X,itemsPerViewport:de}}getScrollTo(D,X,de){const{panelHeight:Oe}=this.dimensions,Ae=D+X,$t=de+Oe;return Oe>=Ae&&de===D?null:Ae>$t?de+Ae-$t:D<=de?D:null}static#e=this.\u0275fac=function(X){return new(X||Z)};static#t=this.\u0275prov=t.Yz7({token:Z,factory:Z.\u0275fac})}return Z})();const pr=["top","right","bottom","left"],jr=typeof requestAnimationFrame<"u"?_e:J;let Fr=(()=>{class Z{constructor(D,X,de,Oe,Ae){this._renderer=D,this._zone=X,this._panelService=de,this._document=Ae,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new t.vpe,this.scroll=new t.vpe,this.scrollToEnd=new t.vpe,this.outsideClick=new t.vpe,this._destroy$=new oe.x,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=Oe.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(D){D!==this._itemsLength&&(this._itemsLength=D,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:D,panelHeight:X}=this._panelService.dimensions,de=this.markedItem.index*D;return X>de?0:de}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(D){if(D.items){const X=D.items;this._onItemsChange(X.currentValue,X.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(D,X=!1){if(!D)return;const de=this.items.indexOf(D);if(de<0||de>=this.itemsLength)return;let Oe;if(this.virtualScroll){const Ae=this._panelService.dimensions.itemHeight;Oe=this._panelService.getScrollTo(de*Ae,Ae,this._lastScrollPosition)}else{const Ae=this._dropdown.querySelector(`#${D.htmlId}`);Oe=this._panelService.getScrollTo(Ae.offsetTop,Ae.clientHeight,X?Ae.offsetTop:this._lastScrollPosition)}Zn(Oe)&&(this._scrollablePanel.scrollTop=Oe)}scrollToTag(){const D=this._scrollablePanel;D.scrollTop=D.scrollHeight-D.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),pr.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(D){pr.forEach(de=>{const Oe=`ng-select-${de}`;this._renderer.removeClass(this._dropdown,Oe),this._renderer.removeClass(this._select,Oe)});const X=`ng-select-${D}`;this._renderer.addClass(this._dropdown,X),this._renderer.addClass(this._select,X)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,se.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,w.R)(this._destroy$),function B(Z,K=L.z){return function F(Z){return(0,h.e)((K,D)=>{let X=!1,de=null,Oe=null,Ae=!1;const mt=()=>{if(Oe?.unsubscribe(),Oe=null,X){X=!1;const cn=de;de=null,D.next(cn)}Ae&&D.complete()},$t=()=>{Oe=null,Ae&&D.complete()};K.subscribe((0,R.x)(D,cn=>{X=!0,de=cn,Oe||(0,O.Xf)(Z(cn)).subscribe(Oe=(0,R.x)(D,mt,$t))},()=>{Ae=!0,(!X||!Oe||Oe.closed)&&D.complete()}))})}(()=>(0,P.H)(Z,K))}(0,jr)).subscribe(D=>{const X=D.path||D.composedPath&&D.composedPath();this._onContentScrolled(X&&0!==X.length?X[0].scrollTop:D.target.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{(0,ae.T)((0,se.R)(this._document,"touchstart",{capture:!0}),(0,se.R)(this._document,"mousedown",{capture:!0})).pipe((0,w.R)(this._destroy$)).subscribe(D=>this._checkToClose(D))})}_checkToClose(D){if(this._select.contains(D.target)||this._dropdown.contains(D.target))return;const X=D.path||D.composedPath&&D.composedPath();D.target&&D.target.shadowRoot&&X&&X[0]&&this._select.contains(X[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(D,X){this.items=D||[],this._scrollToEndFired=!1,this.itemsLength=D.length,this.virtualScroll?this._updateItemsRange(X):(this._setVirtualHeight(),this._updateItems(X))}_updateItems(D){this.update.emit(this.items),!1!==D&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,D)})})}_updateItemsRange(D){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{D?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(D){this.virtualScroll&&this._renderItemsRange(D),this._lastScrollPosition=D,this._fireScrollToEnd(D)}_updateVirtualHeight(D){this._updateScrollHeight&&(this._virtualPadding.style.height=`${D}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(D=null){if(D&&this._lastScrollPosition===D)return;const X=this._panelService.calculateItems(D=D||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(X.scrollHeight),this._contentPanel.style.transform=`translateY(${X.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(X.start,X.end)),this.scroll.emit({start:X.start,end:X.end})}),Zn(D)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=D,this._lastScrollPosition=D)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[D]=this.items;return this.update.emit([D]),Promise.resolve().then(()=>{const de=this._dropdown.querySelector(`#${D.htmlId}`).clientHeight;return this._virtualPadding.style.height=de*this.itemsLength+"px",this._panelService.setDimensions(de,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(D){this._scrollToEndFired||0===D||D+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(D){if("auto"!==this.position)return this.position;const X=this._select.getBoundingClientRect(),de=document.documentElement.scrollTop||document.body.scrollTop;return X.top+window.pageYOffset+X.height+D.getBoundingClientRect().height>de+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){const D=this._select.getBoundingClientRect(),X=this._parent.getBoundingClientRect();this._dropdown.style.left=D.left-X.left+"px",this._dropdown.style.width=D.width+"px",this._dropdown.style.minWidth=D.width+"px"}_updateYPosition(){const D=this._select.getBoundingClientRect(),X=this._parent.getBoundingClientRect(),de=D.height;"top"===this._currentPosition?(this._dropdown.style.bottom=X.bottom-D.bottom+de+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=D.top-X.top+de+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,se.R)(this._dropdown,"mousedown").pipe((0,w.R)(this._destroy$)).subscribe(D=>{"INPUT"!==D.target.tagName&&D.preventDefault()})})}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.Qsj),t.Y36(t.R0b),t.Y36(wn),t.Y36(t.SBq),t.Y36(fe.K0,8))};static#t=this.\u0275cmp=t.Xpm({type:Z,selectors:[["ng-dropdown-panel"]],viewQuery:function(X,de){if(1&X&&(t.Gf(De,7,t.SBq),t.Gf(je,7,t.SBq),t.Gf(Xe,7,t.SBq)),2&X){let Oe;t.iGM(Oe=t.CRH())&&(de.contentElementRef=Oe.first),t.iGM(Oe=t.CRH())&&(de.scrollElementRef=Oe.first),t.iGM(Oe=t.CRH())&&(de.paddingElementRef=Oe.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[t.TTD],ngContentSelectors:Je,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(X,de){1&X&&(t.F$t(),t.YNc(0,wt,2,4,"div",0),t.TgZ(1,"div",1,2),t._UZ(3,"div",null,3),t.TgZ(5,"div",null,4),t.Hsn(7),t.qZA()(),t.YNc(8,It,2,4,"div",5)),2&X&&(t.Q6J("ngIf",de.headerTemplate),t.xp6(3),t.ekj("total-padding",de.virtualScroll),t.xp6(2),t.ekj("scrollable-content",de.virtualScroll&&de.items.length),t.xp6(3),t.Q6J("ngIf",de.footerTemplate))},dependencies:[fe.O5,fe.tP],encapsulation:2,changeDetection:0})}return Z})(),Ar=(()=>{class Z{get disabled(){return this._disabled}set disabled(D){this._disabled=this._isDisabled(D)}constructor(D){this.elementRef=D,this.stateChange$=new oe.x,this._disabled=!1}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(D){D.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}_isDisabled(D){return null!=D&&"false"!=`${D}`}static#e=this.\u0275fac=function(X){return new(X||Z)(t.Y36(t.SBq))};static#t=this.\u0275cmp=t.Xpm({type:Z,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[t.TTD],ngContentSelectors:Je,decls:1,vars:0,template:function(X,de){1&X&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0})}return Z})(),Hr=(()=>{class Z{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}static#e=this.\u0275fac=function(X){return new(X||Z)};static#t=this.\u0275prov=t.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"})}return Z})(),Zr=(()=>{class Z{warn(D){console.warn(D)}static#e=this.\u0275fac=function(X){return new(X||Z)};static#t=this.\u0275prov=t.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"})}return Z})();const Xn=new t.OlP("ng-select-selection-model");let qn=(()=>{class Z{get items(){return this._items}set items(D){null===D&&(D=[]),this._itemsAreUsed=!0,this._items=D}get compareWith(){return this._compareWith}set compareWith(D){if(null!=D&&!we(D))throw Error("`compareWith` must be a function.");this._compareWith=D}get clearSearchOnAdd(){return Zn(this._clearSearchOnAdd)?this._clearSearchOnAdd:Zn(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(D){this._clearSearchOnAdd=D}get deselectOnClick(){return Zn(this._deselectOnClick)?this._deselectOnClick:Zn(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(D){this._deselectOnClick=D}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}constructor(D,X,de,Oe,Ae,mt,$t){this.classes=D,this.autoFocus=X,this.config=de,this._cd=mt,this._console=$t,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=cn=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new t.vpe,this.focusEvent=new t.vpe,this.changeEvent=new t.vpe,this.openEvent=new t.vpe,this.closeEvent=new t.vpe,this.searchEvent=new t.vpe,this.clearEvent=new t.vpe,this.addEvent=new t.vpe,this.removeEvent=new t.vpe,this.scroll=new t.vpe,this.scrollToEnd=new t.vpe,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=bt(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new oe.x,this._keyPress$=new oe.x,this._onChange=cn=>{},this._onTouched=()=>{},this.clearItem=cn=>{const vn=this.selectedItems.find(En=>En.value===cn);this.unselect(vn)},this.trackByOption=(cn,vn)=>this.trackByFn?this.trackByFn(vn.value):vn,this._mergeGlobalConfig(de),this.itemsList=new Ft(this,Oe()),this.element=Ae.nativeElement}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(D=>D.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(D){D.multiple&&this.itemsList.clearSelected(),D.items&&this._setItems(D.items.currentValue||[]),D.isOpen&&(this._manualOpen=Zn(D.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),Zn(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(D){if(an[D.which]){if(!1===this.keyDownFn(D))return;this.handleKeyCode(D)}else D.key&&1===D.key.length&&this._keyPress$.next(D.key.toLocaleLowerCase())}handleKeyCode(D){this.clearButton&&this.clearButton.nativeElement===D.target?this.handleKeyCodeClear(D):this.handleKeyCodeInput(D)}handleKeyCodeInput(D){switch(D.which){case an.ArrowDown:this._handleArrowDown(D);break;case an.ArrowUp:this._handleArrowUp(D);break;case an.Space:this._handleSpace(D);break;case an.Enter:this._handleEnter(D);break;case an.Tab:this._handleTab(D);break;case an.Esc:this.close(),D.preventDefault();break;case an.Backspace:this._handleBackspace()}}handleKeyCodeClear(D){D.which===an.Enter&&(this.handleClearClick(),D.preventDefault())}handleMousedown(D){const X=D.target;"INPUT"!==X.tagName&&D.preventDefault(),X.classList.contains("ng-clear-wrapper")?this.handleClearClick():X.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():X.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(D){this.itemsList.clearSelected(),this._handleWriteValue(D),this._cd.markForCheck()}registerOnChange(D){this._onChange=D}registerOnTouched(D){this._onTouched=D}setDisabledState(D){this._disabled=D,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(D){!D||D.disabled||this.disabled||(this.deselectOnClick&&D.selected?this.unselect(D):this.select(D),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(D){D.selected||(this.itemsList.select(D),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(D.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(D){D&&(this.itemsList.unselect(D),this.focus(),this._updateNgModel(),this.removeEvent.emit(D.value))}selectTag(){let D;D=we(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const X=de=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(de,null):this.itemsList.addItem(de);!function ot(Z){return Z instanceof Promise}(D)?D&&this.select(X(D)):D.then(de=>this.select(X(de))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}get showAddTag(){if(!this._validTerm)return!1;const D=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(X=>X.label.toLowerCase()===D)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(X=>X.label.toLowerCase()===D))&&!this.loading}showNoItemsFound(){const D=0===this.itemsList.filteredItems.length;return(D&&!this._isTypeahead&&!this.loading||D&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(D){this._isComposing=!1,!this.searchWhileComposing&&this.filter(D)}filter(D){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=D,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(D),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:D,items:this.itemsList.filteredItems.map(X=>X.value)}),this.open())}onInputFocus(D){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(D),this.focused=!0)}onInputBlur(D){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(D),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(D){D.disabled||this.itemsList.markItem(D)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const D=this.selectedItems&&this.selectedItems[0];this.searchTerm=D&&D.label||null}_setItems(D){const X=D[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=Zn(X)?!dt(X):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(D),D.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&Zn(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const D=de=>{this.items=de.map(Oe=>({$ngOptionValue:Oe.value,$ngOptionLabel:Oe.elementRef.nativeElement.innerHTML,disabled:Oe.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},X=()=>{const de=(0,ae.T)(this.ngOptions.changes,this._destroy$);(0,ae.T)(...this.ngOptions.map(Oe=>Oe.stateChange$)).pipe((0,w.R)(de)).subscribe(Oe=>{const Ae=this.itemsList.findItem(Oe.value);Ae.disabled=Oe.disabled,Ae.label=Oe.label||Ae.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,$.O)(this.ngOptions),(0,w.R)(this._destroy$)).subscribe(de=>{this.bindLabel=this._defaultLabel,D(de),X()})}_isValidWriteValue(D){if(!Zn(D)||this.multiple&&""===D||Array.isArray(D)&&0===D.length)return!1;const X=de=>!(!Zn(this.compareWith)&&dt(de)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(de)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(D)?D.every(de=>X(de)):(this._console.warn("Multiple select ngModel should be array."),!1):X(D)}_handleWriteValue(D){if(!this._isValidWriteValue(D))return;const X=de=>{let Oe=this.itemsList.findItem(de);if(Oe)this.itemsList.select(Oe);else{const Ae=dt(de);Ae||!Ae&&!this.bindValue?this.itemsList.select(this.itemsList.mapItem(de,null)):this.bindValue&&(Oe={[this.bindLabel]:null,[this.bindValue]:de},this.itemsList.select(this.itemsList.mapItem(Oe,null)))}};this.multiple?D.forEach(de=>X(de)):X(D)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,w.R)(this._destroy$),(0,f.b)(D=>this._pressedKeys.push(D)),(0,j.b)(200),(0,M.h)(()=>this._pressedKeys.length>0),(0,q.U)(()=>this._pressedKeys.join(""))).subscribe(D=>{const X=this.itemsList.findByLabel(D);X&&(this.isOpen?(this.itemsList.markItem(X),this._scrollToMarked(),this._cd.markForCheck()):this.select(X)),this._pressedKeys=[]})}_setInputAttributes(){const D=this.searchInput.nativeElement,X={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const de of Object.keys(X))D.setAttribute(de,X[de])}_updateNgModel(){const D=[];for(const de of this.selectedItems)if(this.bindValue){let Oe=null;Oe=de.children?de.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(de.value,this.bindValue),D.push(Oe)}else D.push(de.value);const X=this.selectedItems.map(de=>de.value);this.multiple?(this._onChange(D),this.changeEvent.emit(X)):(this._onChange(Zn(D[0])?D[0]:null),this.changeEvent.emit(X[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(D){this.searchTerm=D,this._isTypeahead&&this.typeahead.next(D)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(D){if(!1===this.isOpen)if(this.showClear())this.focusOnClear(),D.preventDefault();else if(!this.addTag)return;this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),D.preventDefault()):this.showAddTag?(this.selectTag(),D.preventDefault()):this.close():this.close()}_handleEnter(D){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}D.preventDefault()}_handleSpace(D){this.isOpen||this._manualOpen||(this.open(),D.preventDefault())}_handleArrowDown(D){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),D.preventDefault()}_handleArrowUp(D){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),D.preventDefault())}_nextItemIsTag(D){const X=this.itemsList.markedIndex+D;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(X<0||X===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const D=this.searchTerm&&this.searchTerm.trim();return D&&D.length>=this.minTermLength}_mergeGlobalConfig(D){this.placeholder=this.placeholder||D.placeholder,this.notFoundText=this.notFoundText||D.notFoundText,this.typeToSearchText=this.typeToSearchText||D.typeToSearchText,this.addTagText=this.addTagText||D.addTagText,this.loadingText=this.loadingText||D.loadingText,this.clearAllText=this.clearAllText||D.clearAllText,this.virtualScroll=Zn(this.virtualScroll)?this.virtualScroll:!!Zn(D.disableVirtualScroll)&&!D.disableVirtualScroll,this.openOnEnter=Zn(this.openOnEnter)?this.openOnEnter:D.openOnEnter,this.appendTo=this.appendTo||D.appendTo,this.bindValue=this.bindValue||D.bindValue,this.bindLabel=this.bindLabel||D.bindLabel,this.appearance=this.appearance||D.appearance}static#e=this.\u0275fac=function(X){return new(X||Z)(t.$8M("class"),t.$8M("autofocus"),t.Y36(Hr),t.Y36(Xn),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Zr))};static#t=this.\u0275cmp=t.Xpm({type:Z,selectors:[["ng-select"]],contentQueries:function(X,de,Oe){if(1&X&&(t.Suo(Oe,yt,5,t.Rgc),t.Suo(Oe,Wt,5,t.Rgc),t.Suo(Oe,Vt,5,t.Rgc),t.Suo(Oe,Un,5,t.Rgc),t.Suo(Oe,on,5,t.Rgc),t.Suo(Oe,rr,5,t.Rgc),t.Suo(Oe,ln,5,t.Rgc),t.Suo(Oe,$n,5,t.Rgc),t.Suo(Oe,Qe,5,t.Rgc),t.Suo(Oe,Le,5,t.Rgc),t.Suo(Oe,Ue,5,t.Rgc),t.Suo(Oe,Ar,5)),2&X){let Ae;t.iGM(Ae=t.CRH())&&(de.optionTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.optgroupTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.labelTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.multiLabelTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.headerTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.footerTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.notFoundTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.typeToSearchTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.loadingTextTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.tagTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.loadingSpinnerTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.ngOptions=Ae)}},viewQuery:function(X,de){if(1&X&&(t.Gf(Fr,5),t.Gf(Tt,7),t.Gf(et,5)),2&X){let Oe;t.iGM(Oe=t.CRH())&&(de.dropdownPanel=Oe.first),t.iGM(Oe=t.CRH())&&(de.searchInput=Oe.first),t.iGM(Oe=t.CRH())&&(de.clearButton=Oe.first)}},hostVars:20,hostBindings:function(X,de){1&X&&t.NdJ("keydown",function(Ae){return de.handleKeyDown(Ae)}),2&X&&t.ekj("ng-select-typeahead",de.typeahead)("ng-select-multiple",de.multiple)("ng-select-taggable",de.addTag)("ng-select-searchable",de.searchable)("ng-select-clearable",de.clearable)("ng-select-opened",de.isOpen)("ng-select",de.useDefaultClass)("ng-select-disabled",de.disabled)("ng-select-filtered",de.filtered)("ng-select-single",de.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:"markFirst",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",openOnEnter:"openOnEnter",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:"tabIndex",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",typeahead:"typeahead",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[t._Bn([{provide:d.JU,useExisting:(0,t.Gpc)(()=>Z),multi:!0},wn]),t.TTD],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper","tabindex","0",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],["tabindex","0",1,"ng-clear-wrapper",3,"title"],["clearButton",""],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(X,de){if(1&X){const Oe=t.EpF();t.TgZ(0,"div",0),t.NdJ("mousedown",function(mt){return de.handleMousedown(mt)}),t.TgZ(1,"div",1)(2,"div",2),t._uU(3),t.qZA(),t.YNc(4,We,2,2,"ng-container",3),t.YNc(5,xt,1,5,null,3),t.TgZ(6,"div",4)(7,"input",5,6),t.NdJ("input",function(){t.CHM(Oe);const mt=t.MAs(8);return t.KtG(de.filter(mt.value))})("compositionstart",function(){return de.onCompositionStart()})("compositionend",function(){t.CHM(Oe);const mt=t.MAs(8);return t.KtG(de.onCompositionEnd(mt.value))})("focus",function(mt){return de.onInputFocus(mt)})("blur",function(mt){return de.onInputBlur(mt)})("change",function(mt){return mt.stopPropagation()}),t.qZA()()(),t.YNc(9,Ht,4,1,"ng-container",3),t.YNc(10,zt,4,1,"span",7),t.TgZ(11,"span",8),t._UZ(12,"span",9),t.qZA()(),t.YNc(13,wr,7,19,"ng-dropdown-panel",10)}2&X&&(t.ekj("ng-appearance-outline","outline"===de.appearance)("ng-has-value",de.hasValue),t.xp6(3),t.Oqu(de.placeholder),t.xp6(1),t.Q6J("ngIf",(!de.multiLabelTemplate||!de.multiple)&&de.selectedItems.length>0),t.xp6(1),t.Q6J("ngIf",de.multiple&&de.multiLabelTemplate&&de.selectedValues.length>0),t.xp6(1),t.uIk("aria-expanded",de.isOpen)("aria-owns",de.isOpen?de.dropdownId:null),t.xp6(1),t.Q6J("readOnly",!de.searchable||de.itemsList.maxItemsSelected)("disabled",de.disabled)("value",de.searchTerm?de.searchTerm:""),t.uIk("id",de.labelForId)("tabindex",de.tabIndex)("aria-activedescendant",de.isOpen?null==de.itemsList||null==de.itemsList.markedItem?null:de.itemsList.markedItem.htmlId:null)("aria-controls",de.isOpen?de.dropdownId:null),t.xp6(2),t.Q6J("ngIf",de.loading),t.xp6(1),t.Q6J("ngIf",de.showClear()),t.xp6(3),t.Q6J("ngIf",de.isOpen))},dependencies:[fe.mk,fe.sg,fe.O5,fe.tP,Fr,He],styles:['@charset "UTF-8";.ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}\n'],encapsulation:2,changeDetection:0})}return Z})();function Ur(){return new ai}class ai{constructor(){this._selected=[]}get value(){return this._selected}select(K,D,X){if(K.selected=!0,(!K.children||!D&&X)&&this._selected.push(K),D)if(K.parent){const de=K.parent.children.length,Oe=K.parent.children.filter(Ae=>Ae.selected).length;K.parent.selected=de===Oe}else K.children&&(this._setChildrenSelectedState(K.children,!0),this._removeChildren(K),this._selected=X&&this._activeChildren(K)?[...this._selected.filter(de=>de.parent!==K),K]:[...this._selected,...K.children.filter(de=>!de.disabled)])}unselect(K,D){if(this._selected=this._selected.filter(X=>X!==K),K.selected=!1,D)if(K.parent&&K.parent.selected){const X=K.parent.children;this._removeParent(K.parent),this._removeChildren(K.parent),this._selected.push(...X.filter(de=>de!==K&&!de.disabled)),K.parent.selected=!1}else K.children&&(this._setChildrenSelectedState(K.children,!1),this._removeChildren(K))}clear(K){this._selected=K?this._selected.filter(D=>D.disabled):[]}_setChildrenSelectedState(K,D){for(const X of K)X.disabled||(X.selected=D)}_removeChildren(K){this._selected=[...this._selected.filter(D=>D.parent!==K),...K.children.filter(D=>D.parent===K&&D.disabled&&D.selected)]}_removeParent(K){this._selected=this._selected.filter(D=>D!==K)}_activeChildren(K){return K.children.every(D=>!D.disabled||D.selected)}}let pe=(()=>{class Z{static#e=this.\u0275fac=function(X){return new(X||Z)};static#t=this.\u0275mod=t.oAB({type:Z});static#n=this.\u0275inj=t.cJS({providers:[{provide:Xn,useValue:Ur}],imports:[fe.ez]})}return Z})()},9515:(Pe,V,a)=>{"use strict";a.d(V,{X$:()=>_t,Zw:()=>f,aw:()=>$e,sK:()=>Mt});var t=a(5879),d=a(2096),w=a(2664),L=a(9315),h=a(5211),O=a(4911),R=a(8180),F=a(7081),P=a(7398),B=a(6328),$=a(4664);class f{}let j=(()=>{class Ee extends f{getTranslation(J){return(0,d.of)({})}static \u0275fac=function(){let J;return function(oe){return(J||(J=t.n5z(Ee)))(oe||Ee)}}();static \u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac})}return Ee})();class M{}let q=(()=>{class Ee{handle(J){return J.key}static \u0275fac=function(Q){return new(Q||Ee)};static \u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac})}return Ee})();function ie(Ee,Ze){if(Ee===Ze)return!0;if(null===Ee||null===Ze)return!1;if(Ee!=Ee&&Ze!=Ze)return!0;let oe,se,ae,J=typeof Ee;if(J==typeof Ze&&"object"==J){if(!Array.isArray(Ee)){if(Array.isArray(Ze))return!1;for(se in ae=Object.create(null),Ee){if(!ie(Ee[se],Ze[se]))return!1;ae[se]=!0}for(se in Ze)if(!(se in ae)&&typeof Ze[se]<"u")return!1;return!0}if(!Array.isArray(Ze))return!1;if((oe=Ee.length)==Ze.length){for(se=0;se{Te(Ze[Q])?Q in Ee?J[Q]=Se(Ee[Q],Ze[Q]):Object.assign(J,{[Q]:Ze[Q]}):Object.assign(J,{[Q]:Ze[Q]})}),J}class ye{}let ce=(()=>{class Ee extends ye{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(J,Q){let oe;return oe="string"==typeof J?this.interpolateString(J,Q):"function"==typeof J?this.interpolateFunction(J,Q):J,oe}getValue(J,Q){let oe="string"==typeof Q?Q.split("."):[Q];Q="";do{Q+=oe.shift(),!k(J)||!k(J[Q])||"object"!=typeof J[Q]&&oe.length?oe.length?Q+=".":J=void 0:(J=J[Q],Q="")}while(oe.length);return J}interpolateFunction(J,Q){return J(Q)}interpolateString(J,Q){return Q?J.replace(this.templateMatcher,(oe,se)=>{let ae=this.getValue(Q,se);return k(ae)?ae:oe}):J}static \u0275fac=function(){let J;return function(oe){return(J||(J=t.n5z(Ee)))(oe||Ee)}}();static \u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac})}return Ee})();class _e{}let ve=(()=>{class Ee extends _e{compile(J,Q){return J}compileTranslations(J,Q){return J}static \u0275fac=function(){let J;return function(oe){return(J||(J=t.n5z(Ee)))(oe||Ee)}}();static \u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac})}return Ee})();class xe{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new t.vpe;onLangChange=new t.vpe;onDefaultLangChange=new t.vpe}const be=new t.OlP("USE_STORE"),ke=new t.OlP("USE_DEFAULT_LANG"),vt=new t.OlP("DEFAULT_LANGUAGE"),rt=new t.OlP("USE_EXTEND");let Mt=(()=>{class Ee{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new t.vpe;_onLangChange=new t.vpe;_onDefaultLangChange=new t.vpe;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(J){this.isolate?this._defaultLang=J:this.store.defaultLang=J}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(J){this.isolate?this._currentLang=J:this.store.currentLang=J}get langs(){return this.isolate?this._langs:this.store.langs}set langs(J){this.isolate?this._langs=J:this.store.langs=J}get translations(){return this.isolate?this._translations:this.store.translations}set translations(J){this.isolate?this._translations=J:this.store.translations=J}constructor(J,Q,oe,se,ae,fe=!0,De=!1,je=!1,Xe){this.store=J,this.currentLoader=Q,this.compiler=oe,this.parser=se,this.missingTranslationHandler=ae,this.useDefaultLang=fe,this.isolate=De,this.extend=je,Xe&&this.setDefaultLang(Xe)}setDefaultLang(J){if(J===this.defaultLang)return;let Q=this.retrieveTranslations(J);typeof Q<"u"?(null==this.defaultLang&&(this.defaultLang=J),Q.pipe((0,R.q)(1)).subscribe(oe=>{this.changeDefaultLang(J)})):this.changeDefaultLang(J)}getDefaultLang(){return this.defaultLang}use(J){if(J===this.currentLang)return(0,d.of)(this.translations[J]);let Q=this.retrieveTranslations(J);return typeof Q<"u"?(this.currentLang||(this.currentLang=J),Q.pipe((0,R.q)(1)).subscribe(oe=>{this.changeLang(J)}),Q):(this.changeLang(J),(0,d.of)(this.translations[J]))}retrieveTranslations(J){let Q;return(typeof this.translations[J]>"u"||this.extend)&&(this._translationRequests[J]=this._translationRequests[J]||this.getTranslation(J),Q=this._translationRequests[J]),Q}getTranslation(J){this.pending=!0;const Q=this.currentLoader.getTranslation(J).pipe((0,F.d)(1),(0,R.q)(1));return this.loadingTranslations=Q.pipe((0,P.U)(oe=>this.compiler.compileTranslations(oe,J)),(0,F.d)(1),(0,R.q)(1)),this.loadingTranslations.subscribe({next:oe=>{this.translations[J]=this.extend&&this.translations[J]?{...oe,...this.translations[J]}:oe,this.updateLangs(),this.pending=!1},error:oe=>{this.pending=!1}}),Q}setTranslation(J,Q,oe=!1){Q=this.compiler.compileTranslations(Q,J),this.translations[J]=(oe||this.extend)&&this.translations[J]?Se(this.translations[J],Q):Q,this.updateLangs(),this.onTranslationChange.emit({lang:J,translations:this.translations[J]})}getLangs(){return this.langs}addLangs(J){J.forEach(Q=>{-1===this.langs.indexOf(Q)&&this.langs.push(Q)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(J,Q,oe){let se;if(Q instanceof Array){let ae={},fe=!1;for(let De of Q)ae[De]=this.getParsedResult(J,De,oe),(0,w.b)(ae[De])&&(fe=!0);if(fe){const De=Q.map(je=>(0,w.b)(ae[je])?ae[je]:(0,d.of)(ae[je]));return(0,L.D)(De).pipe((0,P.U)(je=>{let Xe={};return je.forEach((tt,wt)=>{Xe[Q[wt]]=tt}),Xe}))}return ae}if(J&&(se=this.parser.interpolate(this.parser.getValue(J,Q),oe)),typeof se>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(se=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],Q),oe)),typeof se>"u"){let ae={key:Q,translateService:this};typeof oe<"u"&&(ae.interpolateParams=oe),se=this.missingTranslationHandler.handle(ae)}return typeof se<"u"?se:Q}get(J,Q){if(!k(J)||!J.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,B.b)(oe=>(oe=this.getParsedResult(oe,J,Q),(0,w.b)(oe)?oe:(0,d.of)(oe))));{let oe=this.getParsedResult(this.translations[this.currentLang],J,Q);return(0,w.b)(oe)?oe:(0,d.of)(oe)}}getStreamOnTranslationChange(J,Q){if(!k(J)||!J.length)throw new Error('Parameter "key" required');return(0,h.z)((0,O.P)(()=>this.get(J,Q)),this.onTranslationChange.pipe((0,$.w)(oe=>{const se=this.getParsedResult(oe.translations,J,Q);return"function"==typeof se.subscribe?se:(0,d.of)(se)})))}stream(J,Q){if(!k(J)||!J.length)throw new Error('Parameter "key" required');return(0,h.z)((0,O.P)(()=>this.get(J,Q)),this.onLangChange.pipe((0,$.w)(oe=>{const se=this.getParsedResult(oe.translations,J,Q);return(0,w.b)(se)?se:(0,d.of)(se)})))}instant(J,Q){if(!k(J)||!J.length)throw new Error('Parameter "key" required');let oe=this.getParsedResult(this.translations[this.currentLang],J,Q);if((0,w.b)(oe)){if(J instanceof Array){let se={};return J.forEach((ae,fe)=>{se[J[fe]]=J[fe]}),se}return J}return oe}set(J,Q,oe=this.currentLang){this.translations[oe][J]=this.compiler.compile(Q,oe),this.updateLangs(),this.onTranslationChange.emit({lang:oe,translations:this.translations[oe]})}changeLang(J){this.currentLang=J,this.onLangChange.emit({lang:J,translations:this.translations[J]}),null==this.defaultLang&&this.changeDefaultLang(J)}changeDefaultLang(J){this.defaultLang=J,this.onDefaultLangChange.emit({lang:J,translations:this.translations[J]})}reloadLang(J){return this.resetLang(J),this.getTranslation(J)}resetLang(J){this._translationRequests[J]=void 0,this.translations[J]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let J=window.navigator.languages?window.navigator.languages[0]:null;return J=J||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof J>"u"?void 0:(-1!==J.indexOf("-")&&(J=J.split("-")[0]),-1!==J.indexOf("_")&&(J=J.split("_")[0]),J)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let J=window.navigator.languages?window.navigator.languages[0]:null;return J=J||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,J}static \u0275fac=function(Q){return new(Q||Ee)(t.LFG(xe),t.LFG(f),t.LFG(_e),t.LFG(ye),t.LFG(M),t.LFG(ke),t.LFG(be),t.LFG(rt),t.LFG(vt))};static \u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac})}return Ee})(),_t=(()=>{class Ee{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(J,Q){this.translate=J,this._ref=Q}updateValue(J,Q,oe){let se=ae=>{this.value=void 0!==ae?ae:J,this.lastKey=J,this._ref.markForCheck()};if(oe){let ae=this.translate.getParsedResult(oe,J,Q);(0,w.b)(ae.subscribe)?ae.subscribe(se):se(ae)}this.translate.get(J,Q).subscribe(se)}transform(J,...Q){if(!J||!J.length)return J;if(ie(J,this.lastKey)&&ie(Q,this.lastParams))return this.value;let oe;if(k(Q[0])&&Q.length)if("string"==typeof Q[0]&&Q[0].length){let se=Q[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{oe=JSON.parse(se)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${Q[0]}`)}}else"object"==typeof Q[0]&&!Array.isArray(Q[0])&&(oe=Q[0]);return this.lastKey=J,this.lastParams=Q,this.updateValue(J,oe),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(se=>{this.lastKey&&se.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(J,oe,se.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(se=>{this.lastKey&&(this.lastKey=null,this.updateValue(J,oe,se.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(J,oe))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(Q){return new(Q||Ee)(t.Y36(Mt,16),t.Y36(t.sBO,16))};static \u0275pipe=t.Yjl({name:"translate",type:Ee,pure:!1});static \u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac})}return Ee})(),$e=(()=>{class Ee{static forRoot(J={}){return{ngModule:Ee,providers:[J.loader||{provide:f,useClass:j},J.compiler||{provide:_e,useClass:ve},J.parser||{provide:ye,useClass:ce},J.missingTranslationHandler||{provide:M,useClass:q},xe,{provide:be,useValue:J.isolate},{provide:ke,useValue:J.useDefaultLang},{provide:rt,useValue:J.extend},{provide:vt,useValue:J.defaultLanguage},Mt]}}static forChild(J={}){return{ngModule:Ee,providers:[J.loader||{provide:f,useClass:j},J.compiler||{provide:_e,useClass:ve},J.parser||{provide:ye,useClass:ce},J.missingTranslationHandler||{provide:M,useClass:q},{provide:be,useValue:J.isolate},{provide:ke,useValue:J.useDefaultLang},{provide:rt,useValue:J.extend},{provide:vt,useValue:J.defaultLanguage},Mt]}}static \u0275fac=function(Q){return new(Q||Ee)};static \u0275mod=t.oAB({type:Ee});static \u0275inj=t.cJS({})}return Ee})()},7066:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>k});var w=a(8418);const h=function L(Te,Se){for(var ye=Te.length;ye--;)if((0,w.Z)(Te[ye][0],Se))return ye;return-1};var R=Array.prototype.splice;function ie(Te){var Se=-1,ye=null==Te?0:Te.length;for(this.clear();++Se-1},ie.prototype.set=function M(Te,Se){var ye=this.__data__,ce=h(ye,Te);return ce<0?(++this.size,ye.push([Te,Se])):ye[ce][1]=Se,this};const k=ie},2847:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(2656),d=a(4131);const L=(0,t.Z)(d.Z,"Map")},8410:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>ae});const w=(0,a(2656).Z)(Object,"create");var B=Object.prototype.hasOwnProperty;var M=Object.prototype.hasOwnProperty;function ye(fe){var De=-1,je=null==fe?0:fe.length;for(this.clear();++De{"use strict";a.d(V,{Z:()=>L});var t=a(2656),d=a(4131);const L=(0,t.Z)(d.Z,"Set")},342:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>F});var t=a(8410);function R(P){var B=-1,$=null==P?0:P.length;for(this.__data__=new t.Z;++B<$;)this.add(P[B])}R.prototype.add=R.prototype.push=function w(P){return this.__data__.set(P,"__lodash_hash_undefined__"),this},R.prototype.has=function h(P){return this.__data__.has(P)};const F=R},8730:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>ie});var t=a(7066);var B=a(2847),$=a(8410);function q(k){var Te=this.__data__=new t.Z(k);this.size=Te.size}q.prototype.clear=function d(){this.__data__=new t.Z,this.size=0},q.prototype.delete=function L(k){var Te=this.__data__,Se=Te.delete(k);return this.size=Te.size,Se},q.prototype.get=function O(k){return this.__data__.get(k)},q.prototype.has=function F(k){return this.__data__.has(k)},q.prototype.set=function j(k,Te){var Se=this.__data__;if(Se instanceof t.Z){var ye=Se.__data__;if(!B.Z||ye.length<199)return ye.push([k,Te]),this.size=++Se.size,this;Se=this.__data__=new $.Z(ye)}return Se.set(k,Te),this.size=Se.size,this};const ie=q},6875:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});const w=a(4131).Z.Symbol},8475:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});const w=a(4131).Z.Uint8Array},9416:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>$});var w=a(5727),L=a(9977),h=a(9354),O=a(9229),R=a(7227),P=Object.prototype.hasOwnProperty;const $=function B(f,j){var M=(0,L.Z)(f),q=!M&&(0,w.Z)(f),ie=!M&&!q&&(0,h.Z)(f),k=!M&&!q&&!ie&&(0,R.Z)(f),Te=M||q||ie||k,Se=Te?function t(f,j){for(var M=-1,q=Array(f);++M{"use strict";a.d(V,{Z:()=>d});const d=function t(w,L){for(var h=-1,O=L.length,R=w.length;++h{"use strict";a.d(V,{Z:()=>L});var t=a(4331),d=a(9977);const L=function w(h,O,R){var F=O(h);return(0,d.Z)(h)?F:(0,t.Z)(F,R(h))}},3844:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>ie});var t=a(6875),d=Object.prototype,w=d.hasOwnProperty,L=d.toString,h=t.Z?t.Z.toStringTag:void 0;var P=Object.prototype.toString;var M=t.Z?t.Z.toStringTag:void 0;const ie=function q(k){return null==k?void 0===k?"[object Undefined]":"[object Null]":M&&M in Object(k)?function O(k){var Te=w.call(k,h),Se=k[h];try{k[h]=void 0;var ye=!0}catch{}var ce=L.call(k);return ye&&(Te?k[h]=Se:delete k[h]),ce}(k):function B(k){return P.call(k)}(k)}},2148:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>Rn});var t=a(8730),d=a(342);const L=function w(We,Ye){for(var At=-1,xt=null==We?0:We.length;++Atzt))return!1;var Sn=Et.get(We),hn=Et.get(Ye);if(Sn&&hn)return Sn==Ye&&hn==We;var en=-1,Dn=!0,Wn=2&At?new d.Z:void 0;for(Et.set(We,Ye),Et.set(Ye,We);++en{"use strict";a.d(V,{Z:()=>d});const d=function t(w){return function(L){return w(L)}}},9473:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>xe});var t=a(342);const h=function L(be){return be!=be},$=function B(be,ke){return!(null==be||!be.length)&&function F(be,ke,vt){return ke==ke?function O(be,ke,vt){for(var rt=vt-1,Mt=be.length;++rt-1},j=function f(be,ke,vt){for(var rt=-1,Mt=null==be?0:be.length;++rt=200){var Ze=ke?null:ce(be);if(Ze)return(0,Te.Z)(Ze);_t=!1,Mt=M.Z,Ee=new t.Z}else Ee=ke?[]:$e;e:for(;++rt{"use strict";a.d(V,{Z:()=>d});const d=function t(w,L){return w.has(L)}},7806:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d="object"==typeof global&&global&&global.Object===Object&&global},6721:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>h});var t=a(6982),d=a(3774),w=a(0);const h=function L(O){return(0,t.Z)(O,w.Z,d.Z)}},2656:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>_e});var ve,t=a(4842),w=a(4131).Z["__core-js_shared__"],h=(ve=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||""))?"Symbol(src)_1."+ve:"";var F=a(5829),P=a(8594),$=/^\[object .+?Constructor\]$/,ie=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Te=function k(ve){return!(!(0,F.Z)(ve)||function O(ve){return!!h&&h in ve}(ve))&&((0,t.Z)(ve)?ie:$).test((0,P.Z)(ve))},_e=function ce(ve,xe){var be=function Se(ve,xe){return ve?.[xe]}(ve,xe);return Te(be)?be:void 0}},3774:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>F});var w=a(3534),h=Object.prototype.propertyIsEnumerable,O=Object.getOwnPropertySymbols;const F=O?function(P){return null==P?[]:(P=Object(P),function t(P,B){for(var $=-1,f=null==P?0:P.length,j=0,M=[];++${"use strict";a.d(V,{Z:()=>be});var t=a(2656),d=a(4131);const L=(0,t.Z)(d.Z,"DataView");var h=a(2847);const R=(0,t.Z)(d.Z,"Promise");var F=a(4402);const B=(0,t.Z)(d.Z,"WeakMap");var $=a(3844),f=a(8594),j="[object Map]",q="[object Promise]",ie="[object Set]",k="[object WeakMap]",Te="[object DataView]",Se=(0,f.Z)(L),ye=(0,f.Z)(h.Z),ce=(0,f.Z)(R),_e=(0,f.Z)(F.Z),ve=(0,f.Z)(B),xe=$.Z;(L&&xe(new L(new ArrayBuffer(1)))!=Te||h.Z&&xe(new h.Z)!=j||R&&xe(R.resolve())!=q||F.Z&&xe(new F.Z)!=ie||B&&xe(new B)!=k)&&(xe=function(ke){var vt=(0,$.Z)(ke),rt="[object Object]"==vt?ke.constructor:void 0,Mt=rt?(0,f.Z)(rt):"";if(Mt)switch(Mt){case Se:return Te;case ye:return j;case ce:return q;case _e:return ie;case ve:return k}return vt});const be=xe},9229:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var d=/^(?:0|[1-9]\d*)$/;const L=function w(h,O){var R=typeof h;return!!(O=O??9007199254740991)&&("number"==R||"symbol"!=R&&d.test(h))&&h>-1&&h%1==0&&h{"use strict";a.d(V,{Z:()=>w});var t=Object.prototype;const w=function d(L){var h=L&&L.constructor;return L===("function"==typeof h&&h.prototype||t)}},5527:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>R});var t=a(7806),d="object"==typeof exports&&exports&&!exports.nodeType&&exports,w=d&&"object"==typeof module&&module&&!module.nodeType&&module,h=w&&w.exports===d&&t.Z.process;const R=function(){try{return w&&w.require&&w.require("util").types||h&&h.binding&&h.binding("util")}catch{}}()},2667:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=function t(w,L){return function(h){return w(L(h))}}},4131:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(7806),d="object"==typeof self&&self&&self.Object===Object&&self;const L=t.Z||d||Function("return this")()},7799:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=function t(w){var L=-1,h=Array(w.size);return w.forEach(function(O){h[++L]=O}),h}},8594:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var d=Function.prototype.toString;const L=function w(h){if(null!=h){try{return d.call(h)}catch{}try{return h+""}catch{}}return""}},1437:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>q});const h=function t(ie){return function(k){return ie?.[k]}}({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"});var O=a(2394),R=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,j=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");const q=function M(ie){return(ie=(0,O.Z)(ie))&&ie.replace(R,h).replace(j,"")}},8418:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=function t(w,L){return w===L||w!=w&&L!=L}},5727:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>B});var t=a(3844),d=a(1196);const h=function L($){return(0,d.Z)($)&&"[object Arguments]"==(0,t.Z)($)};var O=Object.prototype,R=O.hasOwnProperty,F=O.propertyIsEnumerable;const B=h(function(){return arguments}())?h:function($){return(0,d.Z)($)&&R.call($,"callee")&&!F.call($,"callee")}},9977:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=Array.isArray},6247:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(4842),d=a(4018);const L=function w(h){return null!=h&&(0,d.Z)(h.length)&&!(0,t.Z)(h)}},9354:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>B});var t=a(4131),L="object"==typeof exports&&exports&&!exports.nodeType&&exports,h=L&&"object"==typeof module&&module&&!module.nodeType&&module,R=h&&h.exports===L?t.Z.Buffer:void 0;const B=(R?R.isBuffer:void 0)||function d(){return!1}},8658:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});var t=a(2148);const w=function d(L,h){return(0,t.Z)(L,h)}},4842:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>F});var t=a(3844),d=a(5829);const F=function R(P){if(!(0,d.Z)(P))return!1;var B=(0,t.Z)(P);return"[object Function]"==B||"[object GeneratorFunction]"==B||"[object AsyncFunction]"==B||"[object Proxy]"==B}},4018:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});const w=function d(L){return"number"==typeof L&&L>-1&&L%1==0&&L<=9007199254740991}},5829:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=function t(w){var L=typeof w;return null!=w&&("object"==L||"function"==L)}},1196:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=function t(w){return null!=w&&"object"==typeof w}},7106:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>h});var t=a(3844),d=a(1196);const h=function L(O){return"symbol"==typeof O||(0,d.Z)(O)&&"[object Symbol]"==(0,t.Z)(O)}},7227:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>J});var t=a(3844),d=a(4018),w=a(1196),rt={};rt["[object Float32Array]"]=rt["[object Float64Array]"]=rt["[object Int8Array]"]=rt["[object Int16Array]"]=rt["[object Int32Array]"]=rt["[object Uint8Array]"]=rt["[object Uint8ClampedArray]"]=rt["[object Uint16Array]"]=rt["[object Uint32Array]"]=!0,rt["[object Arguments]"]=rt["[object Array]"]=rt["[object ArrayBuffer]"]=rt["[object Boolean]"]=rt["[object DataView]"]=rt["[object Date]"]=rt["[object Error]"]=rt["[object Function]"]=rt["[object Map]"]=rt["[object Number]"]=rt["[object Object]"]=rt["[object RegExp]"]=rt["[object Set]"]=rt["[object String]"]=rt["[object WeakMap]"]=!1;var _t=a(8733),$e=a(5527),Ee=$e.Z&&$e.Z.isTypedArray;const J=Ee?(0,_t.Z)(Ee):function Mt(Q){return(0,w.Z)(Q)&&(0,d.Z)(Q.length)&&!!rt[(0,t.Z)(Q)]}},0:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>f});var t=a(9416),d=a(801);const h=(0,a(2667).Z)(Object.keys,Object);var R=Object.prototype.hasOwnProperty;var B=a(6247);const f=function $(j){return(0,B.Z)(j)?(0,t.Z)(j):function F(j){if(!(0,d.Z)(j))return h(j);var M=[];for(var q in Object(j))R.call(j,q)&&"constructor"!=q&&M.push(q);return M}(j)}},3534:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=function t(){return[]}},2394:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>f});var t=a(6875);var L=a(9977),h=a(7106),R=t.Z?t.Z.prototype:void 0,F=R?R.toString:void 0;const B=function P(j){if("string"==typeof j)return j;if((0,L.Z)(j))return function d(j,M){for(var q=-1,ie=null==j?0:j.length,k=Array(ie);++q{"use strict";a.d(V,{Z:()=>Er});var t=a(8730),d=a(2148);var R=a(5829);const P=function F(it){return it==it&&!(0,R.Z)(it)};var B=a(0);const M=function j(it,Ut){return function(Qt){return null!=Qt&&Qt[it]===Ut&&(void 0!==Ut||it in Object(Qt))}},ie=function q(it){var Ut=function $(it){for(var Ut=(0,B.Z)(it),Qt=Ut.length;Qt--;){var Cn=Ut[Qt],An=it[Cn];Ut[Qt]=[Cn,An,P(An)]}return Ut}(it);return 1==Ut.length&&Ut[0][2]?M(Ut[0][0],Ut[0][1]):function(Qt){return Qt===it||function h(it,Ut,Qt,Cn){var An=Qt.length,In=An,nr=!Cn;if(null==it)return!In;for(it=Object(it);An--;){var Dr=Qt[An];if(nr&&Dr[2]?Dr[1]!==it[Dr[0]]:!(Dr[0]in it))return!1}for(;++An{"use strict";a.d(V,{Z:()=>L});var t=a(2394),d=0;const L=function w(h){var O=++d;return(0,t.Z)(h)+O}},6283:(Pe,V,a)=>{"use strict";a.d(V,{Ry:()=>Zt,Rq:()=>Rn});var t=a(5879),d=a(2096),w=a(2438),L=a(1631),h=a(7398),O=a(9397),R=a(2181),F=a(6321),P=a(9360),B=a(8251),$=a(4829),j=a(4825);function ie(We,Ye,At,xt){const nn=window&&!!window.document&&window.document.documentElement;let Et=nn&&Ye?window:At;if(We&&(Et=We&&nn&&"string"==typeof We?function k(We,Ye,At){return(At?window.document:Ye).querySelector(We)}(We,At.nativeElement,xt):We,!Et))throw new Error("ngx-infinite-scroll {resolveContainerElement()}: selector for");return Et}function Te(We){return We&&!We.firstChange}const ye={clientHeight:"clientHeight",offsetHeight:"offsetHeight",scrollHeight:"scrollHeight",pageYOffset:"pageYOffset",offsetTop:"offsetTop",scrollTop:"scrollTop",top:"top"},ce={clientHeight:"clientWidth",offsetHeight:"offsetWidth",scrollHeight:"scrollWidth",pageYOffset:"pageXOffset",offsetTop:"offsetLeft",scrollTop:"scrollLeft",top:"left"};class _e{constructor(Ye=!0){this.vertical=Ye,this.propsMap=Ye?ye:ce}clientHeightKey(){return this.propsMap.clientHeight}offsetHeightKey(){return this.propsMap.offsetHeight}scrollHeightKey(){return this.propsMap.scrollHeight}pageYOffsetKey(){return this.propsMap.pageYOffset}offsetTopKey(){return this.propsMap.offsetTop}scrollTopKey(){return this.propsMap.scrollTop}topKey(){return this.propsMap.top}}function ke(We){return["Window","global"].some(At=>Object.prototype.toString.call(We).includes(At))}function vt(We,Ye){return We?Ye.document.documentElement:null}function rt(We,Ye){const At=function $e({container:We,isWindow:Ye,axis:At}){const{offsetHeightKey:xt,clientHeightKey:nn}=_t(At);return Ee(We,Ye,xt,nn)}(Ye);return Ye.isWindow?function Mt(We,Ye,At){const{axis:xt,container:nn,isWindow:Et}=At,{offsetHeightKey:Ht,clientHeightKey:zt}=_t(xt),fn=We+J(vt(Et,nn),xt,Et),Sn=Ee(Ye.nativeElement,Et,Ht,zt),hn=function Ze(We,Ye,At){const xt=Ye.topKey();if(We.getBoundingClientRect)return We.getBoundingClientRect()[xt]+J(We,Ye,At)}(Ye.nativeElement,xt,Et)+Sn;return{height:We,scrolled:fn,totalToScroll:hn,isWindow:Et}}(At,We,Ye):function qe(We,Ye,At){const{axis:xt,container:nn}=At;return{height:We,scrolled:nn[xt.scrollTopKey()],totalToScroll:nn[xt.scrollHeightKey()],isWindow:!1}}(At,0,Ye)}function _t(We){return{offsetHeightKey:We.offsetHeightKey(),clientHeightKey:We.clientHeightKey()}}function Ee(We,Ye,At,xt){if(isNaN(We[At])){const nn=vt(Ye,We);return nn?nn[xt]:0}return We[At]}function J(We,Ye,At){const xt=Ye.pageYOffsetKey(),nn=Ye.scrollTopKey(),Et=Ye.offsetTopKey();return isNaN(window.pageYOffset)?vt(At,We)[nn]:We.ownerDocument?We.ownerDocument.defaultView[xt]:We[Et]}function Q(We,Ye={down:0,up:0},At){let xt,nn;if(We.totalToScroll<=0)return!1;const Et=We.isWindow?We.scrolled:We.height+We.scrolled;return At?(xt=(We.totalToScroll-Et)/We.totalToScroll,nn=(Ye?.down?Ye.down:0)/10):(xt=We.scrolled/(We.scrolled+(We.totalToScroll-Et)),nn=(Ye?.up?Ye.up:0)/10),xt<=nn}class wt{constructor({totalToScroll:Ye}){this.lastScrollPosition=0,this.lastTotalToScroll=0,this.totalToScroll=0,this.triggered={down:0,up:0},this.totalToScroll=Ye}updateScrollPosition(Ye){return this.lastScrollPosition=Ye}updateTotalToScroll(Ye){this.lastTotalToScroll!==Ye&&(this.lastTotalToScroll=this.totalToScroll,this.totalToScroll=Ye)}updateScroll(Ye,At){this.updateScrollPosition(Ye),this.updateTotalToScroll(At)}updateTriggeredFlag(Ye,At){At?this.triggered.down=Ye:this.triggered.up=Ye}isTriggeredScroll(Ye,At){return At?this.triggered.down===Ye:this.triggered.up===Ye}}function It(We){const{scrollContainer:Ye,scrollWindow:At,element:xt,fromRoot:nn}=We,Et=function xe({windowElement:We,axis:Ye}){return function be(We,Ye){const At=We.isWindow||Ye&&!Ye.nativeElement?Ye:Ye.nativeElement;return{...We,container:At}}({axis:Ye,isWindow:ke(We)},We)}({axis:new _e(!We.horizontal),windowElement:ie(Ye,At,xt,nn)}),Ht=new wt({totalToScroll:rt(xt,Et)}),fn={up:We.upDistance,down:We.downDistance};return function Je(We){let Ye=(0,w.R)(We.container,"scroll");return We.throttle&&(Ye=Ye.pipe(function M(We,Ye=F.z,At){const xt=(0,j.H)(We,Ye);return function f(We,Ye){return(0,P.e)((At,xt)=>{const{leading:nn=!0,trailing:Et=!1}=Ye??{};let Ht=!1,zt=null,fn=null,Sn=!1;const hn=()=>{fn?.unsubscribe(),fn=null,Et&&(Wn(),Sn&&xt.complete())},en=()=>{fn=null,Sn&&xt.complete()},Dn=_n=>fn=(0,$.Xf)(We(_n)).subscribe((0,B.x)(xt,hn,en)),Wn=()=>{if(Ht){Ht=!1;const _n=zt;zt=null,xt.next(_n),!Sn&&Dn(_n)}};At.subscribe((0,B.x)(xt,_n=>{Ht=!0,zt=_n,(!fn||fn.closed)&&(nn?Wn():Dn(_n))},()=>{Sn=!0,(!(Et&&Ht&&fn)||fn.closed)&&xt.complete()}))})}(()=>xt,At)}(We.throttle,void 0,{leading:!0,trailing:!0}))),Ye}({container:Et.container,throttle:We.throttle}).pipe((0,L.z)(()=>(0,d.of)(rt(xt,Et))),(0,h.U)(Sn=>function Tt(We,Ye,At){const{scrollDown:xt,fire:nn}=function se(We,Ye,At){const xt=function oe(We,Ye){return WeHt.updateScroll(Sn.scrolled,Sn.totalToScroll)),(0,R.h)(({fire:Sn,scrollDown:hn,stats:{totalToScroll:en}})=>function ve(We,Ye,At){return!!(We&&Ye||!At&&Ye)}(We.alwaysCallback,Sn,Ht.isTriggeredScroll(en,hn))),(0,O.b)(({scrollDown:Sn,stats:{totalToScroll:hn}})=>{Ht.updateTriggeredFlag(hn,Sn)}),(0,h.U)(Pt))}const et={DOWN:"[NGX_ISE] DOWN",UP:"[NGX_ISE] UP"};function Pt(We){const{scrollDown:Ye,stats:{scrolled:At}}=We;return{type:Ye?et.DOWN:et.UP,payload:{currentScrollPosition:At}}}let Zt=(()=>{class We{constructor(At,xt){this.element=At,this.zone=xt,this.scrolled=new t.vpe,this.scrolledUp=new t.vpe,this.infiniteScrollDistance=2,this.infiniteScrollUpDistance=1.5,this.infiniteScrollThrottle=150,this.infiniteScrollDisabled=!1,this.infiniteScrollContainer=null,this.scrollWindow=!0,this.immediateCheck=!1,this.horizontal=!1,this.alwaysCallback=!1,this.fromRoot=!1}ngAfterViewInit(){this.infiniteScrollDisabled||this.setup()}ngOnChanges({infiniteScrollContainer:At,infiniteScrollDisabled:xt,infiniteScrollDistance:nn}){const Et=Te(At),Ht=Te(xt),zt=Te(nn),fn=!Ht&&!this.infiniteScrollDisabled||Ht&&!xt.currentValue||zt;(Et||Ht||zt)&&(this.destroyScroller(),fn&&this.setup())}setup(){(function Se(){return typeof window<"u"})()&&this.zone.runOutsideAngular(()=>{this.disposeScroller=It({fromRoot:this.fromRoot,alwaysCallback:this.alwaysCallback,disable:this.infiniteScrollDisabled,downDistance:this.infiniteScrollDistance,element:this.element,horizontal:this.horizontal,scrollContainer:this.infiniteScrollContainer,scrollWindow:this.scrollWindow,throttle:this.infiniteScrollThrottle,upDistance:this.infiniteScrollUpDistance}).subscribe(At=>this.handleOnScroll(At))})}handleOnScroll({type:At,payload:xt}){const nn=At===et.DOWN?this.scrolled:this.scrolledUp;(function dn(We){return We.observed??We.observers.length>0})(nn)&&this.zone.run(()=>nn.emit(xt))}ngOnDestroy(){this.destroyScroller()}destroyScroller(){this.disposeScroller&&this.disposeScroller.unsubscribe()}static#e=this.\u0275fac=function(xt){return new(xt||We)(t.Y36(t.SBq),t.Y36(t.R0b))};static#t=this.\u0275dir=t.lG2({type:We,selectors:[["","infiniteScroll",""],["","infinite-scroll",""],["","data-infinite-scroll",""]],inputs:{infiniteScrollDistance:"infiniteScrollDistance",infiniteScrollUpDistance:"infiniteScrollUpDistance",infiniteScrollThrottle:"infiniteScrollThrottle",infiniteScrollDisabled:"infiniteScrollDisabled",infiniteScrollContainer:"infiniteScrollContainer",scrollWindow:"scrollWindow",immediateCheck:"immediateCheck",horizontal:"horizontal",alwaysCallback:"alwaysCallback",fromRoot:"fromRoot"},outputs:{scrolled:"scrolled",scrolledUp:"scrolledUp"},features:[t.TTD]})}return We})(),Rn=(()=>{class We{static#e=this.\u0275fac=function(xt){return new(xt||We)};static#t=this.\u0275mod=t.oAB({type:We});static#n=this.\u0275inj=t.cJS({})}return We})()},1002:(Pe,V,a)=>{"use strict";function t(d){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(w){return typeof w}:function(w){return w&&"function"==typeof Symbol&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(d)}a.d(V,{Z:()=>t})},7582:(Pe,V,a)=>{"use strict";function f(Q,oe,se,ae){return new(se||(se=Promise))(function(De,je){function Xe(It){try{wt(ae.next(It))}catch(Je){je(Je)}}function tt(It){try{wt(ae.throw(It))}catch(Je){je(Je)}}function wt(It){It.done?De(It.value):function fe(De){return De instanceof se?De:new se(function(je){je(De)})}(It.value).then(Xe,tt)}wt((ae=ae.apply(Q,oe||[])).next())})}function ce(Q){return this instanceof ce?(this.v=Q,this):new ce(Q)}function _e(Q,oe,se){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe,ae=se.apply(Q,oe||[]),De=[];return fe={},je("next"),je("throw"),je("return"),fe[Symbol.asyncIterator]=function(){return this},fe;function je(Tt){ae[Tt]&&(fe[Tt]=function(et){return new Promise(function(Pt,Zt){De.push([Tt,et,Pt,Zt])>1||Xe(Tt,et)})})}function Xe(Tt,et){try{!function tt(Tt){Tt.value instanceof ce?Promise.resolve(Tt.value.v).then(wt,It):Je(De[0][2],Tt)}(ae[Tt](et))}catch(Pt){Je(De[0][3],Pt)}}function wt(Tt){Xe("next",Tt)}function It(Tt){Xe("throw",Tt)}function Je(Tt,et){Tt(et),De.shift(),De.length&&Xe(De[0][0],De[0][1])}}function xe(Q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var se,oe=Q[Symbol.asyncIterator];return oe?oe.call(Q):(Q=function ie(Q){var oe="function"==typeof Symbol&&Symbol.iterator,se=oe&&Q[oe],ae=0;if(se)return se.call(Q);if(Q&&"number"==typeof Q.length)return{next:function(){return Q&&ae>=Q.length&&(Q=void 0),{value:Q&&Q[ae++],done:!Q}}};throw new TypeError(oe?"Object is not iterable.":"Symbol.iterator is not defined.")}(Q),se={},ae("next"),ae("throw"),ae("return"),se[Symbol.asyncIterator]=function(){return this},se);function ae(De){se[De]=Q[De]&&function(je){return new Promise(function(Xe,tt){!function fe(De,je,Xe,tt){Promise.resolve(tt).then(function(wt){De({value:wt,done:Xe})},je)}(Xe,tt,(je=Q[De](je)).done,je.value)})}}}a.d(V,{FC:()=>_e,KL:()=>xe,mG:()=>f,qq:()=>ce}),"function"==typeof SuppressedError&&SuppressedError}},Pe=>{Pe(Pe.s=4515)}]); \ No newline at end of file +(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[179],{7483:(Pe,V,a)=>{"use strict";a.d(V,{De:()=>d,P2:()=>w,Ps:()=>P,Re:()=>p,W3:()=>R,dP:()=>O,df:()=>B,dw:()=>L,fr:()=>$,yY:()=>F});var t=a(3986);function d(q,ie){return ie.map(k=>k.Id===q.TestId?P(q,k):k)}function w(q,ie){return ie.map(k=>k.Id===q?{...k,IsPublished:!k.IsPublished}:k)}function L(q){const ie=function j(q){return q.Results?.map(ie=>null!==ie.Points?ie.Points:S).filter(ie=>ie>S)||[]}(q);if(0===ie.length)throw new Error("unable to calculate averages without results");return(0,t.Y)(ie)}function p(q){return q.MaxPointsAdjusted||q.MaxPoints}function O(q){const ie=function f(q){return q.Results?.filter(ie=>null!==ie.GradeDesignation).map(ie=>Number(ie.GradeDesignation)).filter(ie=>!isNaN(ie))||[]}(q);if(0===ie.length)throw new Error("unable to calculate averages without results");return(0,t.Y)(ie)}function R(q,ie){return ie.Results?.find(k=>k.StudentId===q)}function F(q,ie){return null===ie?null:ie.filter(k=>k.Id!==q)}function P(q,ie){const k=ie.Results?.filter(Te=>q.Id!==Te.Id)||[];return{...ie,Results:[...k,q]}}function B(q){return q.slice().sort((ie,k)=>k.Date.getTime()-ie.Date.getTime())}function $(q,ie){return ie?.find(k=>k.Id===q.GradingScaleId)||null}const S=-1},2324:(Pe,V,a)=>{"use strict";a.d(V,{G:()=>w});var t=a(9189),d=a(5301);class w{constructor(p){if(this.absences=p,0===p.length)throw new Error("Absences array is empty");this.date=(0,t.Z)(this.absences[0].LessonDateTimeFrom),this.dateString=(0,d.Z)(this.date,"yyyy-MM-dd"),this.studentId=this.absences[0].StudentRef.Id,this.studentFullName=this.absences[0].StudentFullName,this.studyClassNumber=this.absences[0].StudyClassNumber,this.lessonsCount=this.absences.length}}},7727:(Pe,V,a)=>{"use strict";a.d(V,{Ob:()=>O,MX:()=>F,HM:()=>B,pE:()=>P,EA:()=>R});var t=a(5301),d=a(2324),w=a(6747);class L extends Error{constructor(S,q){super(`TypeScript thought we could never end up here\n${q}`)}}var p=a(4011);function O(j){const S=function f(j){return j.reduce((S,q)=>{const ie=(0,t.Z)(q.LessonDateTimeFrom,"yyyy-MM-dd"),k=q.StudentRef.Id;return S[ie]||(S[ie]={}),S[ie][k]||(S[ie][k]=[]),S[ie][k].push(q),S},{})}(j);return Object.keys(S).reduce((q,ie)=>(Object.keys(S[ie]).forEach(k=>{q=[...q,new d.G(S[ie][k].sort(w.kM))]}),q),[])}function R(j,S){return[...j].sort(function $(j){return(S,q)=>{switch(j.primarySortKey){case"date":{const ie=S.date.getTime(),k=q.date.getTime();return ie===k?S.studentFullName.localeCompare(q.studentFullName):j.ascending?ie-k:k-ie}case"name":{const ie=j.ascending?S.studentFullName.localeCompare(q.studentFullName):q.studentFullName.localeCompare(S.studentFullName);return 0===ie?q.date.getTime()-S.date.getTime():ie}default:throw new L(j.primarySortKey,"Unhandled sort criteria")}}}(S))}function F(j){return j.reduce((S,q)=>S.concat(q.absences),[])}function P(j,S){return j.filter(q=>!S.some(({lessonIds:ie,personId:k})=>ie.includes(q.LessonRef.Id)&&k===q.StudentRef.Id))}function B(j,S){return(0,p.Z)([...j,...S],"Id")}},3449:(Pe,V,a)=>{"use strict";a.d(V,{ES:()=>w,Ov:()=>d,Oz:()=>L});var t=a(8484),d=function(p){return p.Present="present",p.Unapproved="unapproved",p.Absent="absent",p}(d||{});function w(p){switch(p){case d.Absent:return"cancel";case d.Unapproved:return"help";default:return"check_circle"}}class L{constructor(O,R,F,P){this.lessonPresence=O,this.presenceType=R,this.precedingAbsences=F,this.confirmationState=P,this.studentFullName=O.StudentFullName}get presenceCategory(){return(0,t.fv)(this.settings,this.confirmationState&&Number(this.confirmationState.Key))?d.Unapproved:(0,t.qX)(this.presenceType)?d.Absent:d.Present}get nextPresenceCategory(){return this.presenceCategory===d.Absent?d.Present:d.Absent}getNextPresenceType(O){return this.nextPresenceCategory===d.Absent?this.presenceCategory===d.Unapproved?this.presenceType:O.find(R=>(0,t.xK)(R,this.settings))||null:null}get canChangePresenceType(){return(0,t.NF)(this.lessonPresence,this.presenceType,this.settings)}get canChangeIncident(){return!(0,t.qX)(this.presenceType)}get showDesignation(){return!this.canChangePresenceType||this.presenceCategory===d.Absent&&!(0,t.xK)(this.presenceType,this.settings)||this.presenceCategory===d.Unapproved}get presenceCategoryIcon(){return w(this.presenceCategory)}get settings(){return window.schulverwaltung.settings}}},6747:(Pe,V,a)=>{"use strict";a.d(V,{In:()=>w,bL:()=>R,kM:()=>P,uP:()=>F});var t=a(3449),d=a(4011);function w(f,j){return null===f&&null===j||null!==f&&null!==j&&f.LessonRef.Id===j.LessonRef.Id&&f.EventDesignation===j.EventDesignation&&f.StudyClassNumber===j.StudyClassNumber&&f.TeacherInformation===j.TeacherInformation&&f.LessonDateTimeFrom.getTime()===j.LessonDateTimeFrom.getTime()&&f.LessonDateTimeTo.getTime()===j.LessonDateTimeTo.getTime()}function R(f,j,S,q,ie){return function p(f,j){return f?j.filter(S=>f.lessons.map(q=>q.LessonRef.Id).indexOf(S.LessonRef.Id)>=0).sort(B):[]}(f,j).map(k=>F(f,k,S,q,ie))}function F(f,j,S,q,ie){let k=null;j.TypeRef.Id&&(k=S.find(ye=>ye.Id===j.TypeRef.Id)||null);const Te=function O(f,j,S){return(0,d.Z)(f.filter(q=>q.StudentRef.Id===j.StudentRef.Id&&q.LessonRef.From&&q.LessonRef.From.toDateString()===S?.LessonDateTimeFrom.toDateString()&&q.LessonRef.Fromye.Key===j.ConfirmationStateId)),new t.Oz(j,k,Te,Me)}function P(f,j){const S=f.LessonDateTimeFrom.getTime(),q=j.LessonDateTimeFrom.getTime();return S-q==0?f.LessonDateTimeTo.getTime()-j.LessonDateTimeTo.getTime():S-q}function B(f,j){return f.StudentFullName.localeCompare(j.StudentFullName)}function $(f,j){return f.LessonRef.From&&f.LessonRef.To&&j.LessonRef.From&&j.LessonRef.To?f.LessonRef.From.getTime()-j.LessonRef.From.getTime()==0?f.LessonRef.To.getTime()-j.LessonRef.To.getTime():f.LessonRef.From.getTime()-j.LessonRef.From.getTime():0}},8484:(Pe,V,a)=>{"use strict";function d(B){return!(!B||!B.IsComment)}function w(B){return!(!B||!B.IsIncident)}function L(B){return!(!B||!(B.IsAbsence||B.IsDispensation||B.IsHalfDay))}function p(B,$){return!(!B||!$||B.Id!==$.absencePresenceTypeId)}function O(B,$){return!(!B||!$||$!==B.checkableAbsenceStateId)}function F(B,$,f){return!!(function t(B){return!B}($)&&null===B.ConfirmationStateId||d($)||w($)||L($)&&B.ConfirmationStateId===f.unconfirmedAbsenceStateId||O(f,B.ConfirmationStateId))}function P(B,$){return B?.IsAbsence?$.unconfirmedAbsenceStateId:null}a.d(V,{C3:()=>d,LO:()=>P,NF:()=>F,fv:()=>O,hm:()=>w,qX:()=>L,xK:()=>p})},2769:(Pe,V,a)=>{"use strict";a.d(V,{I:()=>B,R:()=>f});var t=a(9862),d=a(6232),w=a(8504),L=a(6306),p=a(3942),O=a(5879),R=a(1523),F=a(6869),P=a(9515);function B(j,S={}){let q;return q=S instanceof t.LE?S:new t.LE({fromObject:S}),q.set("restConfig",JSON.stringify(j))}let f=(()=>{class j{constructor(q,ie,k){this.router=q,this.toastService=ie,this.translate=k}intercept(q,ie){const{config:k,params:Te}=function $(j){return{config:JSON.parse(j.get("restConfig")||"{}"),params:j.delete("restConfig")}}(q.params);return ie.handle(q.clone({params:Te})).pipe((0,L.K)(this.getErrorHandler(k)))}getErrorHandler(q){return ie=>{if(ie instanceof t.UA&&!q.disableErrorHandling&&(!q.disableErrorHandlingForStatus||!q.disableErrorHandlingForStatus.includes(ie.status)))switch(ie.status){case 401:return this.notifyError("noaccess"),this.router.navigate(["/unauthenticated"]),d.E;case 403:return this.notifyError("noaccess"),d.E;case 404:return this.notifyError("notfound"),d.E;case 0:case 503:case 504:return this.notifyError("unavailable"),d.E;case 409:return this.notifyConflictError(ie),d.E;default:return this.notifyError("server"),d.E}return(0,w._)(()=>ie)}}notifyError(q){this.toastService.error(this.translate.instant(`global.rest-errors.${q}-message`),this.translate.instant(`global.rest-errors.${q}-title`))}notifyConflictError(q){const ie=this.translate.instant("global.rest-errors.conflict-message"),k=this.parseConflictIssues(q);this.toastService.error(k.length>0?k.join("\n"):ie,this.translate.instant("global.rest-errors.conflict-title"))}parseConflictIssues(q){return Array.isArray(q.error?.Issues)?q.error.Issues.map(ie=>ie?.Message).filter(p.YO):[]}static#e=this.\u0275fac=function(ie){return new(ie||j)(O.LFG(R.F0),O.LFG(F.k),O.LFG(P.sK))};static#t=this.\u0275prov=O.Yz7({token:j,factory:j.\u0275fac})}return j})()},4141:(Pe,V,a)=>{"use strict";a.d(V,{L6:()=>P,Zr:()=>F});var t=a(5879),d=a(754),w=a(8121);const L=d.dt({de:d.dt({label:d.Z_,description:d.Z_}),fr:d.dt({label:d.Z_,description:d.Z_})}),p=d.IM(d.Z_,L),O=d.dt({roles:d.IX(d.Z_),types:d.IX(d.Z_)}),R=d.dt({substitutionsAdminLink:d.Z_}),F=d.dt({apiUrl:d.Z_,scriptsAndAssetsPath:d.Z_,paginationLimit:d.pk,absencePresenceTypeId:d.pk,latePresenceTypeId:d.pk,dispensationPresenceTypeId:d.pk,halfDayPresenceTypeId:d.pk,unconfirmedAbsenceStateId:d.pk,unexcusedAbsenceStateId:d.pk,excusedAbsenceStateId:d.pk,checkableAbsenceStateId:d.pk,lessonPresencesRefreshTime:d.pk,unconfirmedAbsencesRefreshTime:(0,w.Wx)(d.pk),personMasterDataReportId:d.pk,studentConfirmationReportId:d.pk,evaluateAbsencesReportId:d.pk,testsByCourseReportId:d.pk,testsBySubscriptionReportIdStudent:d.pk,testsBySubscriptionReportIdTeacher:d.pk,subscriptionDetailGroupId:d.pk,headerRoleRestriction:d.IM(d.Z_,d.Z_),notificationRefreshTime:d.pk,notificationTypes:p,notificationTypesAssignments:d.IX(O),eventlist:d.IM(d.Z_,d.Z_),dashboard:R,preventStudentAbsenceAfterLessonStart:d.IX(d.Z_)}),P=new t.OlP("Application Settings",{providedIn:"root",factory:()=>window.schulverwaltung.settings})},2628:(Pe,V,a)=>{"use strict";a.d(V,{A:()=>O});var t=a(4141),d=a(5879),w=a(8173),L=a(6814),p=a(1523);let O=(()=>{class R{constructor(P,B){this.settings=P,this.storageService=B,this.avatarStyles={}}ngOnChanges(P){P.studentId&&(this.avatarStyles=this.buildAvatarStyles(this.studentId))}buildAvatarStyles(P){return{"background-image":[this.buildAvatarUrl(P),this.fallbackAvatarUrl].map(B=>`url(${B})`).join(", ")}}buildAvatarUrl(P){const B=this.storageService.getAccessToken()||"";return`${this.settings.apiUrl}/Files/personPictures/${P}?token=${B}`}get fallbackAvatarUrl(){return`${this.settings.scriptsAndAssetsPath}/assets/images/avatar-placeholder.png`}static#e=this.\u0275fac=function(B){return new(B||R)(d.Y36(t.L6),d.Y36(w.V))};static#t=this.\u0275cmp=d.Xpm({type:R,selectors:[["erz-avatar"]],inputs:{studentId:"studentId",link:"link",linkParams:"linkParams"},features:[d.TTD],decls:1,vars:5,consts:[[1,"avatar",3,"routerLink","queryParams","ngStyle"]],template:function(B,$){1&B&&d._UZ(0,"a",0),2&B&&(d.ekj("disabled",!$.link),d.Q6J("routerLink",$.link)("queryParams",$.linkParams)("ngStyle",$.avatarStyles))},dependencies:[L.PC,p.rH],styles:["[_nghost-%COMP%]{display:flex}.small[_nghost-%COMP%]{width:40px;min-width:40px;height:50px}.medium[_nghost-%COMP%]{width:58px;min-width:58px;height:75px}.large[_nghost-%COMP%]{width:100px;min-width:100px;height:130px}.avatar[_ngcontent-%COMP%]{flex:1;border:1px solid rgba(0,0,0,.25);background-repeat:no-repeat;background-size:cover;background-position:center}a.disabled[_ngcontent-%COMP%]{pointer-events:none;cursor:default}"]})}return R})()},7625:(Pe,V,a)=>{"use strict";a.d(V,{I:()=>p});var t=a(5879),d=a(1523),w=a(9515);const L=["*"];let p=(()=>{class O{constructor(){this.routerLink=[]}static#e=this.\u0275fac=function(P){return new(P||O)};static#t=this.\u0275cmp=t.Xpm({type:O,selectors:[["erz-backlink"]],inputs:{routerLink:"routerLink",queryParams:"queryParams"},ngContentSelectors:L,decls:8,vars:5,consts:[[1,"d-flex","align-items-start","justify-content-between","w-100","mb-3"],[3,"routerLink","queryParams"],[1,"material-icons"],[1,"label"]],template:function(P,B){1&P&&(t.F$t(),t.TgZ(0,"div",0)(1,"a",1)(2,"span",2),t._uU(3,"arrow_back"),t.qZA(),t.TgZ(4,"span",3),t._uU(5),t.ALo(6,"translate"),t.qZA()(),t.Hsn(7),t.qZA()),2&P&&(t.xp6(1),t.Q6J("routerLink",B.routerLink)("queryParams",B.queryParams),t.xp6(4),t.Oqu(t.lcZ(6,3,"global.back")))},dependencies:[d.rH,w.X$],styles:["[_nghost-%COMP%]{display:flex}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{height:calc(var(--bs-body-font-size) * var(--bs-body-line-height))}a[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.3rem}a[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus{text-decoration:none}a[_ngcontent-%COMP%]:hover .label[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:focus .label[_ngcontent-%COMP%]{text-decoration:underline;text-decoration-color:#ea161f}"]})}return O})()},5791:(Pe,V,a)=>{"use strict";a.d(V,{Q:()=>d});var t=a(5879);let d=(()=>{class w{constructor(){this.expanded=!1}static#e=this.\u0275fac=function(O){return new(O||w)};static#t=this.\u0275cmp=t.Xpm({type:w,selectors:[["erz-caret"]],inputs:{expanded:"expanded"},decls:2,vars:1,consts:[["role","button",1,"d-flex","material-icons"]],template:function(O,R){1&O&&(t.TgZ(0,"i",0),t._uU(1),t.qZA()),2&O&&(t.xp6(1),t.Oqu(R.expanded?"expand_less":"expand_more"))},styles:["i[_ngcontent-%COMP%]:hover{color:#ea161f}"]})}return w})()},917:(Pe,V,a)=>{"use strict";a.d(V,{A:()=>ae});var t=a(6223),d=a(5619),w=a(8645),L=a(2572),p=a(7398),O=a(7081),R=a(8180),F=a(9773),P=a(2181),B=a(4664),$=a(4716),f=a(3942),j=a(1257),S=a(4141),q=a(1140),ie=a(6163),k=a(5879),Te=a(1523),Me=a(6869),ye=a(9515),ce=a(8393),_e=a(5001),ve=a(905),xe=a(6023),be=a(6814),ke=a(6567);const vt=function(fe){return{count:fe}};function it(fe,De){if(1&fe&&(k.TgZ(0,"div",4),k._uU(1),k.ALo(2,"translate"),k.qZA()),2&fe){const je=De.erzLet;k.xp6(1),k.hij(" ",k.xi3(2,1,1===je?"open-absences.edit.lesson-selected":"open-absences.edit.lessons-selected",k.VKq(4,vt,je))," ")}}function St(fe,De){if(1&fe&&(k.TgZ(0,"div",19),k._uU(1),k.ALo(2,"translate"),k.qZA()),2&fe){const je=De.$implicit;k.xp6(1),k.hij(" ",k.xi3(2,1,"global.validation-errors."+je.error,je.params)," ")}}function qe(fe,De){if(1&fe&&(k.TgZ(0,"div",27),k._uU(1),k.ALo(2,"translate"),k.qZA()),2&fe){const je=De.$implicit;k.xp6(1),k.hij(" ",k.xi3(2,1,"global.validation-errors."+je.error,je.params)," ")}}function _t(fe,De){if(1&fe&&(k.ynx(0),k.YNc(1,qe,3,4,"div",26),k.ALo(2,"async"),k.BQk()),2&fe){const je=k.oxw(5);k.xp6(1),k.Q6J("ngForOf",k.lcZ(2,1,je.absenceTypeIdErrors$))}}function $e(fe,De){if(1&fe&&(k.TgZ(0,"div",23),k._UZ(1,"input",24),k.ALo(2,"async"),k.TgZ(3,"label",25),k._uU(4),k.qZA(),k.YNc(5,_t,3,3,"ng-container",11),k.ALo(6,"async"),k.qZA()),2&fe){const je=De.$implicit,Xe=De.index,nt=k.oxw(4);let wt;k.xp6(1),k.ekj("is-invalid",k.lcZ(2,7,nt.absenceTypeIdErrors$).length>0),k.Q6J("id","absence-type-"+Xe)("value",je.Id),k.xp6(2),k.Q6J("for","absence-type-"+Xe),k.xp6(1),k.hij(" ",je.Designation," "),k.xp6(1),k.Q6J("ngIf",(null==(wt=k.lcZ(6,9,nt.absenceTypes$))?null:wt.length)-1===Xe)}}const Ee=function(){return["/edit-absences"]};function ze(fe,De){if(1&fe&&(k.ynx(0),k.YNc(1,$e,7,11,"div",20),k.ALo(2,"async"),k.TgZ(3,"div",21),k._uU(4),k.ALo(5,"translate"),k.TgZ(6,"a",22),k._uU(7),k.ALo(8,"translate"),k.qZA()(),k.BQk()),2&fe){const je=k.oxw(3);k.xp6(1),k.Q6J("ngForOf",k.lcZ(2,4,je.absenceTypes$)),k.xp6(3),k.hij(" ",k.lcZ(5,6,"open-absences.edit.remark")," "),k.xp6(2),k.Q6J("routerLink",k.DdM(10,Ee)),k.xp6(1),k.hij(" ",k.lcZ(8,8,"edit-absences.title")," ")}}function J(fe,De){1&fe&&(k.TgZ(0,"div",28)(1,"span",29),k._uU(2,"Loading..."),k.qZA()())}function Q(fe,De){if(1&fe){const je=k.EpF();k.TgZ(0,"form",5),k.NdJ("ngSubmit",function(){k.CHM(je);const nt=k.oxw(2);return k.KtG(nt.onSubmit())}),k.YNc(1,St,3,4,"div",6),k.ALo(2,"async"),k.TgZ(3,"div",7)(4,"div",8),k._UZ(5,"input",9),k.TgZ(6,"label",10),k._uU(7),k.qZA(),k.YNc(8,ze,9,11,"ng-container",11),k.qZA(),k.TgZ(9,"div",12),k._UZ(10,"input",13),k.TgZ(11,"label",14),k._uU(12),k.qZA()()(),k.TgZ(13,"div",15)(14,"button",16),k.NdJ("click",function(){k.CHM(je);const nt=k.oxw(2);return k.KtG(nt.cancel())}),k.ALo(15,"async"),k._uU(16),k.ALo(17,"translate"),k.qZA(),k.TgZ(18,"button",17),k.ALo(19,"async"),k._uU(20),k.ALo(21,"translate"),k.YNc(22,J,3,0,"div",18),k.ALo(23,"async"),k.qZA()()()}if(2&fe){const je=k.oxw().erzLet,Xe=k.oxw();k.Q6J("formGroup",je.formGroup),k.xp6(1),k.Q6J("ngForOf",k.lcZ(2,12,Xe.formErrors$)),k.xp6(4),k.Q6J("value",je.excusedState.Key),k.xp6(2),k.hij(" ",je.excusedState.Value," "),k.xp6(1),k.Q6J("ngIf",je.formGroup.get("absenceTypeId")),k.xp6(2),k.Q6J("value",je.unexcusedState.Key),k.xp6(2),k.hij(" ",je.unexcusedState.Value," "),k.xp6(2),k.Q6J("disabled",k.lcZ(15,14,Xe.saving$)),k.xp6(2),k.hij(" ",k.lcZ(17,16,"open-absences.edit.cancel")," "),k.xp6(2),k.Q6J("disabled",k.lcZ(19,18,Xe.saving$)),k.xp6(2),k.hij(" ",k.lcZ(21,20,"open-absences.edit.save")," "),k.xp6(2),k.Q6J("ngIf",k.lcZ(23,22,Xe.saving$))}}function oe(fe,De){if(1&fe&&(k.TgZ(0,"div",1)(1,"h1"),k._uU(2),k.ALo(3,"translate"),k.qZA(),k.YNc(4,it,3,6,"div",2),k.ALo(5,"async"),k.YNc(6,Q,24,24,"form",3),k.qZA()),2&fe){const je=De.erzLet,Xe=k.oxw();k.xp6(2),k.Oqu(k.lcZ(3,3,"open-absences.edit.title")),k.xp6(2),k.Q6J("erzLet",k.lcZ(5,5,Xe.getSelectedCount())),k.xp6(2),k.Q6J("ngIf",je.formGroup&&je.unexcusedState&&je.excusedState)}}const se=function(fe,De,je){return{formGroup:fe,unexcusedState:De,excusedState:je}};let ae=(()=>{class fe{constructor(je,Xe,nt,wt,It,Je,Tt,tt,Pt,zt,un){this.fb=je,this.router=Xe,this.activatedRoute=nt,this.toastService=wt,this.translate=It,this.selectionService=Je,this.dropDownItemsService=Tt,this.presenceTypesService=tt,this.updateService=Pt,this.settings=zt,this.openAbsencesEditService=un,this.formGroup$=this.selectionService.selectedWithoutPresenceType$.pipe((0,p.U)(this.createFormGroup.bind(this)),(0,O.d)(1)),this.saving$=new d.X(!1),this.submitted$=new d.X(!1),this.formErrors$=(0,j.Z6)(this.formGroup$,this.submitted$),this.absenceTypeIdErrors$=(0,j.Z6)(this.formGroup$,this.submitted$,"absenceTypeId"),this.confirmationStates$=this.dropDownItemsService.getAbsenceConfirmationStates().pipe((0,O.d)(1)),this.excusedState$=(0,q.q)(this.confirmationStates$,this.settings.excusedAbsenceStateId),this.unexcusedState$=(0,q.q)(this.confirmationStates$,this.settings.unexcusedAbsenceStateId),this.absenceTypes$=this.presenceTypesService.confirmationTypes$,this.destroy$=new w.x}ngOnInit(){this.selectionService.selectedIds$.pipe((0,R.q)(1)).subscribe(je=>{0===je.length&&this.navigateBack()}),(0,j.ZX)(this.formGroup$,"confirmationValue").pipe((0,F.R)(this.destroy$)).subscribe(je=>{"number"==typeof je&&this.updateAbsenceTypeIdDisabled(je)}),(0,L.a)([(0,j.YV)(this.formGroup$,"confirmationValue").pipe((0,P.h)(f.Nf)),(0,j.YV)(this.formGroup$,"absenceTypeId").pipe((0,P.h)(f.Nf)),this.saving$]).pipe((0,F.R)(this.destroy$)).subscribe(([je,Xe,nt])=>{nt?(je.disable(),Xe.disable()):(je.enable(),this.updateAbsenceTypeIdDisabled(je.value))}),(0,L.a)([(0,j.YV)(this.formGroup$,"confirmationValue").pipe((0,P.h)(f.Nf)),this.excusedState$.pipe((0,R.q)(1),(0,P.h)(f.Nf))]).pipe((0,F.R)(this.destroy$)).subscribe(([je,Xe])=>je.setValue(Xe.Key))}ngOnDestroy(){this.destroy$.next()}onSubmit(){this.submitted$.next(!0),this.formGroup$.pipe((0,R.q)(1)).subscribe(je=>{if(je.valid){const{confirmationValue:Xe,absenceTypeId:nt}=je.value;this.save(Xe,nt)}})}cancel(){this.navigateBack()}getSelectedCount(){return this.selectionService.selectedLessons$.pipe((0,p.U)(je=>je.length))}createFormGroup(je){return this.fb.group(je.length>0?{confirmationValue:[null],absenceTypeId:[null,t.kI.required]}:{confirmationValue:[null]})}updateAbsenceTypeIdDisabled(je){(0,L.a)([(0,j.YV)(this.formGroup$,"absenceTypeId").pipe((0,R.q)(1),(0,P.h)(f.Nf)),this.excusedState$.pipe((0,R.q)(1),(0,P.h)(f.Nf))]).subscribe(([Xe,nt])=>{je===nt.Key?Xe.enable():Xe.disable()})}save(je,Xe){this.saving$.next(!0),(0,L.a)([this.selectionService.selectedIds$.pipe((0,R.q)(1)),this.unexcusedState$.pipe((0,R.q)(1),(0,P.h)(f.Nf))]).pipe((0,B.w)(([nt,wt])=>(0,L.a)(nt.map(({lessonIds:It,personId:Je,presenceTypeId:Tt})=>this.updateService.confirmLessonPresences(It,[Je],this.getNewAbsenceTypeId(Tt,je,Number(wt.Key),Xe),je)))),(0,$.x)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}getNewAbsenceTypeId(je,Xe,nt,wt){if(!je)throw new Error("absence type id cannot be null");return Xe===nt?this.settings.absencePresenceTypeId:je===this.settings.absencePresenceTypeId?wt:je}onSaveSuccess(){this.openAbsencesEditService?.updateAfterConfirm&&this.openAbsencesEditService.updateAfterConfirm(),this.toastService.success(this.translate.instant("open-absences.edit.save-success")),this.navigateBack()}navigateBack(){this.router.navigate(this.openAbsencesEditService?.confirmBackLink||[".."],{relativeTo:this.activatedRoute,queryParams:this.openAbsencesEditService?.confirmBackLinkParams})}static#e=this.\u0275fac=function(Xe){return new(Xe||fe)(k.Y36(t.QS),k.Y36(Te.F0),k.Y36(Te.gz),k.Y36(Me.k),k.Y36(ye.sK),k.Y36(ce.o),k.Y36(_e.R),k.Y36(ve.c),k.Y36(xe.O),k.Y36(S.L6),k.Y36(ie.m,8))};static#t=this.\u0275cmp=k.Xpm({type:fe,selectors:[["erz-confirm-absences"]],decls:4,vars:11,consts:[["class","erz-container erz-container-limited",4,"erzLet"],[1,"erz-container","erz-container-limited"],["class","mb-3 pb-3 border-bottom",4,"erzLet"],[3,"formGroup","ngSubmit",4,"ngIf"],[1,"mb-3","pb-3","border-bottom"],[3,"formGroup","ngSubmit"],["class","alert alert-danger",4,"ngFor","ngForOf"],[1,"form-group","pb-4"],[1,"form-check","mt-2","mb-3","pb-3","border-bottom"],["type","radio","id","excused","formControlName","confirmationValue",1,"form-check-input",3,"value"],["for","excused",1,"form-check-label"],[4,"ngIf"],[1,"form-check","mt-3","mb-3","pb-3","border-bottom"],["type","radio","id","unexcused","formControlName","confirmationValue",1,"form-check-input",3,"value"],["for","unexcused",1,"form-check-label"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],["type","submit",1,"btn","btn-primary","ms-2",3,"disabled"],["class","spinner-border spinner-border-sm align-middle","role","status",4,"ngIf"],[1,"alert","alert-danger"],["class","form-check my-3",4,"ngFor","ngForOf"],[1,"remark"],[3,"routerLink"],[1,"form-check","my-3"],["type","radio","formControlName","absenceTypeId",1,"form-check-input",3,"id","value"],[1,"form-check-label",3,"for"],["class","invalid-feedback",4,"ngFor","ngForOf"],[1,"invalid-feedback"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(Xe,nt){1&Xe&&(k.YNc(0,oe,7,7,"div",0),k.ALo(1,"async"),k.ALo(2,"async"),k.ALo(3,"async")),2&Xe&&k.Q6J("erzLet",k.kEZ(7,se,k.lcZ(1,1,nt.formGroup$),k.lcZ(2,3,nt.unexcusedState$),k.lcZ(3,5,nt.excusedState$)))},dependencies:[be.sg,be.O5,t._Y,t.Fj,t._,t.JJ,t.JL,t.sg,t.u,Te.rH,ke.e,be.Ov,ye.X$],changeDetection:0})}return fe})()},1133:(Pe,V,a)=>{"use strict";a.d(V,{T:()=>O});var t=a(5879),d=a(902),w=a(6223),L=a(253),p=a(9515);let O=(()=>{class R{constructor(){this.value=null,this.placeholder="shared.date-select.default-placeholder",this.minDate=null,this.valueChange=new t.vpe,this.componentId=(0,d.Z)("erz-date-select-")}static#e=this.\u0275fac=function(B){return new(B||R)};static#t=this.\u0275cmp=t.Xpm({type:R,selectors:[["erz-date-select"]],inputs:{value:"value",placeholder:"placeholder",minDate:"minDate"},outputs:{valueChange:"valueChange"},decls:8,vars:10,consts:[[1,"input-group"],[1,"input-group-text",3,"id"],[1,"material-icons"],["type","text","ngbDatepicker","",1,"form-control",3,"minDate","ngModel","click","ngModelChange"],["dp","ngbDatepicker"]],template:function(B,$){if(1&B){const f=t.EpF();t.TgZ(0,"div",0)(1,"span",1)(2,"i",2),t._uU(3,"calendar_today"),t.qZA()(),t.TgZ(4,"input",3,4),t.NdJ("click",function(){t.CHM(f);const S=t.MAs(5);return t.KtG(S.toggle())})("ngModelChange",function(S){return $.valueChange.emit(S)}),t.ALo(6,"translate"),t.ALo(7,"translate"),t.qZA()()}2&B&&(t.xp6(1),t.Q6J("id",$.componentId),t.xp6(3),t.Q6J("minDate",$.minDate)("ngModel",$.value),t.uIk("placeholder",t.lcZ(6,6,$.placeholder))("aria-label",t.lcZ(7,8,$.placeholder))("aria-describedby",$.componentId))},dependencies:[w.Fj,w.JJ,w.On,L.J4,p.X$]})}return R})()},6001:(Pe,V,a)=>{"use strict";a.d(V,{z:()=>B});var t=a(5879),d=a(6814),w=a(6223),L=a(363),p=a(9515);function O($,f){if(1&$){const j=t.EpF();t.TgZ(0,"div",5),t._uU(1),t.TgZ(2,"span",6),t.NdJ("click",function(){const ie=t.CHM(j).$implicit,k=t.oxw().clear;return t.KtG(k(ie))}),t._uU(3,"\xd7"),t.qZA()()}if(2&$){const j=f.$implicit;t.xp6(1),t.hij(" ",j.Value," ")}}function R($,f){1&$&&t.YNc(0,O,4,1,"div",4),2&$&&t.Q6J("ngForOf",f.items)}function F($,f){if(1&$&&(t._UZ(0,"input",7),t._uU(1)),2&$){const j=f.item,S=f.item$;t.MGl("id","item-",f.index,""),t.Q6J("ngModel",S.selected),t.xp6(1),t.hij(" ",j.Group," ")}}function P($,f){if(1&$&&(t._UZ(0,"input",7),t._uU(1)),2&$){const j=f.item,S=f.item$;t.MGl("id","item-",f.index,""),t.Q6J("ngModel",S.selected),t.xp6(1),t.hij(" ",j.Value," ")}}let B=(()=>{class ${constructor(){this.options=[],this.values=[],this.valuesChange=new t.vpe}itemsChanged(){this.valuesChange.emit(this.values)}static#e=this.\u0275fac=function(S){return new(S||$)};static#t=this.\u0275cmp=t.Xpm({type:$,selectors:[["erz-multiselect"]],inputs:{options:"options",values:"values"},outputs:{valuesChange:"valuesChange"},decls:5,vars:10,consts:[["groupBy","Group","bindValue","Key","bindLabel","Value","dropdownPosition","bottom",1,"multiselect",3,"items","multiple","selectableGroup","selectableGroupAsModel","closeOnSelect","ngModel","placeholder","clearable","ngModelChange","click","clear"],["ng-multi-label-tmp",""],["ng-optgroup-tmp",""],["ng-option-tmp",""],["class","ng-value",4,"ngFor","ngForOf"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","right",3,"click"],["type","checkbox",3,"id","ngModel"]],template:function(S,q){1&S&&(t.TgZ(0,"ng-select",0),t.NdJ("ngModelChange",function(k){return q.values=k})("click",function(){return q.itemsChanged()})("clear",function(){return q.itemsChanged()}),t.ALo(1,"translate"),t.YNc(2,R,1,1,"ng-template",1),t.YNc(3,F,2,3,"ng-template",2),t.YNc(4,P,2,3,"ng-template",3),t.qZA()),2&S&&(t.s9C("placeholder",t.lcZ(1,8,"shared.select.empty-option")),t.Q6J("items",q.options)("multiple",!0)("selectableGroup",!0)("selectableGroupAsModel",!1)("closeOnSelect",!1)("ngModel",q.values)("clearable",!0))},dependencies:[d.sg,w.Wl,w.JJ,w.On,L.w9,L.C5,L.ir,L.zB,p.X$]})}return $})()},4229:(Pe,V,a)=>{"use strict";a.d(V,{H:()=>B});var t=a(5879),d=a(5619),w=a(2572),L=a(7398),p=a(6814),O=a(6223),R=a(9515);function F($,f){if(1&$&&(t.TgZ(0,"option",3),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&$){const j=t.oxw();t.Q6J("ngValue",null),t.xp6(1),t.hij(" ",t.lcZ(2,2,j.emptyLabel)," ")}}function P($,f){if(1&$&&(t.TgZ(0,"option",3),t._uU(1),t.qZA()),2&$){const j=f.$implicit;t.Q6J("ngValue",j),t.xp6(1),t.hij(" ",j.Value," ")}}let B=(()=>{class ${constructor(){this.options=[],this.allowEmpty=!0,this.emptyLabel="",this.value=null,this.disabled=!1,this.tabindex=0,this.valueChange=new t.vpe,this.options$=new d.X([]),this.rawValue$=new d.X(null),this.value$=(0,w.a)([this.rawValue$,this.options$]).pipe((0,L.U)(([j,S])=>S&&S.find(q=>q.Key===j)||null))}ngOnChanges(j){j.value&&this.rawValue$.next(j.value.currentValue),j.options&&this.options$.next(j.options.currentValue)}static#e=this.\u0275fac=function(S){return new(S||$)};static#t=this.\u0275cmp=t.Xpm({type:$,selectors:[["erz-select"]],inputs:{options:"options",allowEmpty:"allowEmpty",emptyLabel:"emptyLabel",value:"value",disabled:"disabled",tabindex:"tabindex"},outputs:{valueChange:"valueChange"},features:[t.TTD],decls:5,vars:7,consts:[[1,"form-select",3,"tabindex","disabled","ngModel","ngModelChange"],[3,"ngValue",4,"ngIf"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"]],template:function(S,q){1&S&&(t.TgZ(0,"select",0),t.NdJ("ngModelChange",function(k){return q.valueChange.emit(k&&k.Key)}),t.ALo(1,"async"),t.YNc(2,F,3,4,"option",1),t.YNc(3,P,2,2,"option",2),t._uU(4," >\n"),t.qZA()),2&S&&(t.s9C("tabindex",q.tabindex),t.Q6J("disabled",q.disabled)("ngModel",t.lcZ(1,5,q.value$)),t.xp6(2),t.Q6J("ngIf",q.allowEmpty),t.xp6(1),t.Q6J("ngForOf",q.options))},dependencies:[p.sg,p.O5,O.YN,O.Kr,O.EJ,O.JJ,O.On,p.Ov,R.X$]})}return $})()},59:(Pe,V,a)=>{"use strict";a.d(V,{O:()=>d});var t=a(5879);let d=(()=>{class w{constructor(){}static#e=this.\u0275fac=function(O){return new(O||w)};static#t=this.\u0275cmp=t.Xpm({type:w,selectors:[["erz-spinner"]],decls:4,vars:0,consts:[[1,"spinner-container"],["role","status",1,"spinner-border"],[1,"visually-hidden"]],template:function(O,R){1&O&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span",2),t._uU(3,"Loading..."),t.qZA()()())},styles:[".spinner-container[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%]:not(.inline) .spinner-container[_ngcontent-%COMP%]{top:-131px;min-height:200px}.spinner-border[_ngcontent-%COMP%]{width:4rem;height:4rem}[_nghost-%COMP%]:not(.inline) .spinner-border[_ngcontent-%COMP%]{margin-top:100px}.small[_nghost-%COMP%] .spinner-border[_ngcontent-%COMP%]{width:2rem;height:2rem;--bs-spinner-vertical-align: -.2em;--bs-spinner-border-width: .15em}"]})}return w})()},3388:(Pe,V,a)=>{"use strict";a.d(V,{t:()=>It});var t=a(8645),d=a(9773),w=a(7328),L=a(2572),p=a(2096),O=a(6232),R=a(4664),F=a(7921),P=a(3020),B=a(7398),$=a(4141),f=a(5879),j=a(7575),S=a(905),q=a(6869),ie=a(9515);let k=(()=>{class Je{constructor(tt,Pt,zt,un,Rn){this.settings=tt,this.lessonPresencesService=Pt,this.presenceTypesService=zt,this.toastService=un,this.translate=Rn,this.studentId$=new w.t(1),this.checkableAbsences$=this.getAbsences(this.loadCheckableAbsences.bind(this)),this.openAbsences$=this.getAbsences(this.loadOpenAbsences.bind(this)),this.excusedAbsences$=this.getAbsences(this.loadExcusedAbsences.bind(this)),this.unexcusedAbsences$=this.getAbsences(this.loadUnexcusedAbsences.bind(this)),this.incidents$=this.getAbsences(this.loadIncidents.bind(this)),this.halfDays$=this.getAbsences(this.loadHalfDays.bind(this)),this.counts$=this.getCounts()}setStudentId(tt){this.studentId$.next(tt)}getAbsences(tt){return this.studentId$.pipe((0,R.w)(tt),(0,F.O)(null),(0,P.B)({connector:()=>new w.t(1)}))}getCounts(){return this.studentId$.pipe((0,R.w)(tt=>(0,L.a)([this.loadStatistics(tt).pipe((0,F.O)(null)),this.openAbsences$.pipe((0,B.U)(Pt=>Pt?.length??null)),this.checkableAbsences$.pipe((0,B.U)(Pt=>Pt?.length??null))])),(0,B.U)(([tt,Pt,zt])=>({openAbsences:Pt,checkableAbsences:zt,excusedAbsences:tt?.TotalAbsencesValidExcuse??null,unexcusedAbsences:tt?.TotalAbsencesWithoutExcuse??null,incidents:tt?.TotalIncidents??null,halfDays:tt?.TotalHalfDays??null})))}loadStatistics(tt){return this.lessonPresencesService.getStatistics({student:tt,educationalEvent:null,studyClass:null},null,0).pipe((0,R.w)(({entries:Pt})=>Pt.length>0?(0,p.of)(Pt[0]):(this.toastService.error(this.translate.instant("global.rest-errors.notfound-message"),this.translate.instant("global.rest-errors.notfound-title")),O.E)))}loadOpenAbsences(tt){return this.lessonPresencesService.getListOfUnconfirmed(this.getBaseParams(tt))}loadCheckableAbsences(tt){return this.lessonPresencesService.getList({params:{...this.getBaseParams(tt),"filter.ConfirmationStateId":`=${this.settings.checkableAbsenceStateId}`}})}loadExcusedAbsences(tt){return this.lessonPresencesService.getList({params:{...this.getBaseParams(tt),"filter.ConfirmationStateId":`=${this.settings.excusedAbsenceStateId}`}})}loadUnexcusedAbsences(tt){return this.lessonPresencesService.getList({params:{...this.getBaseParams(tt),"filter.ConfirmationStateId":`=${this.settings.unexcusedAbsenceStateId}`}})}loadIncidents(tt){return this.presenceTypesService.incidentTypes$.pipe((0,B.U)(Pt=>({...this.getBaseParams(tt),"filter.TypeRef":`;${Pt.map(zt=>zt.Id).join(";")}`})),(0,R.w)(Pt=>this.lessonPresencesService.getList({params:Pt})))}loadHalfDays(tt){return this.lessonPresencesService.getList({params:{...this.getBaseParams(tt),"filter.TypeRef":`=${this.settings.halfDayPresenceTypeId}`}})}getBaseParams(tt){return{sort:"LessonDateTimeFrom.asc","filter.StudentRef":`=${tt}`}}static#e=this.\u0275fac=function(Pt){return new(Pt||Je)(f.LFG($.L6),f.LFG(j.q),f.LFG(S.c),f.LFG(q.k),f.LFG(ie.sK))};static#t=this.\u0275prov=f.Yz7({token:Je,factory:Je.\u0275fac})}return Je})();var Te=a(4409),Me=a(8393),ye=a(6814),ce=a(253),_e=a(6567),ve=a(8898),xe=a(3036);function be(Je,Tt){if(1&Je&&(f.ynx(0),f._uU(1),f.BQk()),2&Je){const tt=f.oxw(2).erzLet;f.xp6(1),f.hij("(",tt.absenceCounts.checkableAbsences,")")}}function ke(Je,Tt){if(1&Je){const tt=f.EpF();f.TgZ(0,"erz-student-dossier-entry-header",10),f.NdJ("click",function(){f.CHM(tt),f.oxw();const zt=f.MAs(2);return f.KtG(zt.toggle("checkable-absences"))}),f._uU(1),f.ALo(2,"translate"),f.YNc(3,be,2,1,"ng-container",11),f.qZA()}if(2&Je){const tt=Tt.opened,Pt=f.oxw().erzLet;f.Q6J("opened",tt),f.xp6(1),f.hij(" ",f.lcZ(2,3,"shared.profile.checkable-absences")," "),f.xp6(2),f.Q6J("ngIf",null!==Pt.absenceCounts.checkableAbsences)}}function vt(Je,Tt){if(1&Je&&f._UZ(0,"erz-student-dossier-absences",12),2&Je){const tt=f.oxw(2);f.Q6J("absences$",tt.absencesService.checkableAbsences$)}}function it(Je,Tt){if(1&Je&&(f.ynx(0),f._uU(1),f.BQk()),2&Je){const tt=f.oxw(2).erzLet;f.xp6(1),f.hij("(",tt.absenceCounts.openAbsences,")")}}function St(Je,Tt){if(1&Je){const tt=f.EpF();f.TgZ(0,"erz-student-dossier-entry-header",10),f.NdJ("click",function(){f.CHM(tt),f.oxw();const zt=f.MAs(2);return f.KtG(zt.toggle("open-absences"))}),f._uU(1),f.ALo(2,"translate"),f.YNc(3,it,2,1,"ng-container",11),f.qZA()}if(2&Je){const tt=Tt.opened,Pt=f.oxw().erzLet;f.Q6J("opened",tt),f.xp6(1),f.hij(" ",f.lcZ(2,3,"shared.profile.open-absences")," "),f.xp6(2),f.Q6J("ngIf",null!==Pt.absenceCounts.openAbsences)}}function qe(Je,Tt){if(1&Je&&f._UZ(0,"erz-student-dossier-absences",13),2&Je){const tt=f.oxw(2);f.Q6J("absences$",tt.absencesService.openAbsences$)("selectionService",tt.absencesSelectionService)}}function _t(Je,Tt){if(1&Je&&(f.ynx(0),f._uU(1),f.BQk()),2&Je){const tt=f.oxw(2).erzLet;f.xp6(1),f.hij("(",tt.absenceCounts.excusedAbsences,")")}}function $e(Je,Tt){if(1&Je){const tt=f.EpF();f.TgZ(0,"erz-student-dossier-entry-header",10),f.NdJ("click",function(){f.CHM(tt),f.oxw();const zt=f.MAs(2);return f.KtG(zt.toggle("excused-absences"))}),f._uU(1),f.ALo(2,"translate"),f.YNc(3,_t,2,1,"ng-container",11),f.qZA()}if(2&Je){const tt=Tt.opened,Pt=f.oxw().erzLet;f.Q6J("opened",tt),f.xp6(1),f.hij(" ",f.lcZ(2,3,"shared.profile.excused-absences")," "),f.xp6(2),f.Q6J("ngIf",null!==Pt.absenceCounts.excusedAbsences)}}function Ee(Je,Tt){if(1&Je&&f._UZ(0,"erz-student-dossier-absences",12),2&Je){const tt=f.oxw(2);f.Q6J("absences$",tt.absencesService.excusedAbsences$)}}function ze(Je,Tt){if(1&Je&&(f.ynx(0),f._uU(1),f.BQk()),2&Je){const tt=f.oxw(2).erzLet;f.xp6(1),f.hij("(",tt.absenceCounts.unexcusedAbsences,")")}}function J(Je,Tt){if(1&Je){const tt=f.EpF();f.TgZ(0,"erz-student-dossier-entry-header",10),f.NdJ("click",function(){f.CHM(tt),f.oxw();const zt=f.MAs(2);return f.KtG(zt.toggle("unexcused-absences"))}),f._uU(1),f.ALo(2,"translate"),f.YNc(3,ze,2,1,"ng-container",11),f.qZA()}if(2&Je){const tt=Tt.opened,Pt=f.oxw().erzLet;f.Q6J("opened",tt),f.xp6(1),f.hij(" ",f.lcZ(2,3,"shared.profile.unexcused-absences")," "),f.xp6(2),f.Q6J("ngIf",null!==Pt.absenceCounts.unexcusedAbsences)}}function Q(Je,Tt){if(1&Je&&f._UZ(0,"erz-student-dossier-absences",14),2&Je){const tt=f.oxw(2);f.Q6J("absences$",tt.absencesService.unexcusedAbsences$)("displayPresenceType",!1)}}function oe(Je,Tt){if(1&Je&&(f.ynx(0),f._uU(1),f.BQk()),2&Je){const tt=f.oxw(2).erzLet;f.xp6(1),f.hij("(",tt.absenceCounts.incidents,")")}}function se(Je,Tt){if(1&Je){const tt=f.EpF();f.TgZ(0,"erz-student-dossier-entry-header",10),f.NdJ("click",function(){f.CHM(tt),f.oxw();const zt=f.MAs(2);return f.KtG(zt.toggle("incidents"))}),f._uU(1),f.ALo(2,"translate"),f.YNc(3,oe,2,1,"ng-container",11),f.qZA()}if(2&Je){const tt=Tt.opened,Pt=f.oxw().erzLet;f.Q6J("opened",tt),f.xp6(1),f.hij(" ",f.lcZ(2,3,"shared.profile.incidents")," "),f.xp6(2),f.Q6J("ngIf",null!==Pt.absenceCounts.incidents)}}function ae(Je,Tt){if(1&Je&&f._UZ(0,"erz-student-dossier-absences",12),2&Je){const tt=f.oxw(2);f.Q6J("absences$",tt.absencesService.incidents$)}}function fe(Je,Tt){if(1&Je&&(f.ynx(0),f._uU(1),f.BQk()),2&Je){const tt=f.oxw(3).erzLet;f.xp6(1),f.hij("(",tt.absenceCounts.halfDays,")")}}function De(Je,Tt){if(1&Je){const tt=f.EpF();f.TgZ(0,"erz-student-dossier-entry-header",10),f.NdJ("click",function(){f.CHM(tt),f.oxw(2);const zt=f.MAs(2);return f.KtG(zt.toggle("half-days"))}),f._uU(1),f.ALo(2,"translate"),f.YNc(3,fe,2,1,"ng-container",11),f.qZA()}if(2&Je){const tt=Tt.opened,Pt=f.oxw(2).erzLet;f.Q6J("opened",tt),f.xp6(1),f.hij(" ",f.lcZ(2,3,"shared.profile.half-days")," "),f.xp6(2),f.Q6J("ngIf",null!==Pt.absenceCounts.halfDays)}}function je(Je,Tt){if(1&Je&&f._UZ(0,"erz-student-dossier-absences",14),2&Je){const tt=f.oxw(3);f.Q6J("absences$",tt.absencesService.halfDays$)("displayPresenceType",!1)}}function Xe(Je,Tt){1&Je&&(f.TgZ(0,"ngb-panel",15),f.YNc(1,De,4,5,"ng-template",3),f.YNc(2,je,1,2,"ng-template",4),f.qZA())}function nt(Je,Tt){if(1&Je&&(f.ynx(0),f.TgZ(1,"ngb-accordion",null,1)(3,"ngb-panel",2),f.YNc(4,ke,4,5,"ng-template",3),f.YNc(5,vt,1,1,"ng-template",4),f.qZA(),f.TgZ(6,"ngb-panel",5),f.YNc(7,St,4,5,"ng-template",3),f.YNc(8,qe,1,2,"ng-template",4),f.qZA(),f.TgZ(9,"ngb-panel",6),f.YNc(10,$e,4,5,"ng-template",3),f.YNc(11,Ee,1,1,"ng-template",4),f.qZA(),f.TgZ(12,"ngb-panel",7),f.YNc(13,J,4,5,"ng-template",3),f.YNc(14,Q,1,2,"ng-template",4),f.qZA(),f.TgZ(15,"ngb-panel",8),f.YNc(16,se,4,5,"ng-template",3),f.YNc(17,ae,1,1,"ng-template",4),f.qZA(),f.YNc(18,Xe,3,0,"ngb-panel",9),f.ALo(19,"async"),f.qZA(),f.BQk()),2&Je){const tt=f.oxw();f.xp6(18),f.Q6J("ngIf",f.lcZ(19,1,tt.halfDayActive$))}}const wt=function(Je){return{absenceCounts:Je}};let It=(()=>{class Je{constructor(tt,Pt,zt,un){this.state=tt,this.presenceTypesService=Pt,this.absencesService=zt,this.absencesSelectionService=un,this.halfDayActive$=this.presenceTypesService.halfDayActive$,this.destroy$=new t.x,this.state.currentDossier$.next("absences")}ngOnInit(){this.state.studentId$.pipe((0,d.R)(this.destroy$)).subscribe(tt=>this.absencesService.setStudentId(tt))}ngOnDestroy(){this.destroy$.next()}static#e=this.\u0275fac=function(Pt){return new(Pt||Je)(f.Y36(Te.j),f.Y36(S.c),f.Y36(k),f.Y36(Me.o))};static#t=this.\u0275cmp=f.Xpm({type:Je,selectors:[["erz-dossier-absences"]],features:[f._Bn([k])],decls:2,vars:5,consts:[[4,"erzLet"],["acc","ngbAccordion"],["id","checkable-absences"],["ngbPanelHeader",""],["ngbPanelContent",""],["id","open-absences"],["id","excused-absences"],["id","unexcused-absences"],["id","incidents"],["id","half-days",4,"ngIf"],[3,"opened","click"],[4,"ngIf"],[3,"absences$"],[3,"absences$","selectionService"],[3,"absences$","displayPresenceType"],["id","half-days"]],template:function(Pt,zt){1&Pt&&(f.YNc(0,nt,20,3,"ng-container",0),f.ALo(1,"async")),2&Pt&&f.Q6J("erzLet",f.VKq(3,wt,f.lcZ(1,1,zt.absencesService.counts$)))},dependencies:[ye.O5,ce.gY,ce.Gk,ce.gW,ce.k9,_e.e,ve.H,xe.u,ye.Ov,ie.X$],changeDetection:0})}return Je})()},8705:(Pe,V,a)=>{"use strict";a.d(V,{S:()=>ce});var t=a(5879),d=a(4409),w=a(6814),L=a(253),p=a(6567),O=a(8898),R=a(1442),F=a(9949),P=a(8075),B=a(9515);function $(_e,ve){if(1&_e){const xe=t.EpF();t.TgZ(0,"erz-student-dossier-entry-header",8),t.NdJ("click",function(){t.CHM(xe),t.oxw(2);const ke=t.MAs(3);return t.KtG(ke.toggle("legal-representatives"))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&_e&&(t.Q6J("opened",ve.opened),t.xp6(1),t.hij(" ",t.lcZ(2,2,"shared.profile.legal-representation")," "))}function f(_e,ve){1&_e&&t._UZ(0,"erz-student-dossier-legal-representative",10),2&_e&&t.Q6J("person",ve.$implicit)}function j(_e,ve){if(1&_e&&t.YNc(0,f,1,1,"erz-student-dossier-legal-representative",9),2&_e){const xe=t.oxw(2).erzLet;t.Q6J("ngForOf",xe.profile.legalRepresentativePersons)}}function S(_e,ve){1&_e&&(t.TgZ(0,"ngb-panel",5),t.YNc(1,$,3,4,"ng-template",6),t.YNc(2,j,1,1,"ng-template",7),t.qZA())}function q(_e,ve){if(1&_e&&(t.ynx(0),t._uU(1),t.BQk()),2&_e){const xe=t.oxw(2).index;t.xp6(1),t.Oqu(xe+1)}}function ie(_e,ve){if(1&_e){const xe=t.EpF();t.TgZ(0,"erz-student-dossier-entry-header",8),t.NdJ("click",function(){t.CHM(xe);const ke=t.oxw().index;t.oxw();const vt=t.MAs(3);return t.KtG(vt.toggle("apprenticeship-company-"+ke))}),t._uU(1),t.ALo(2,"translate"),t.YNc(3,q,2,1,"ng-container",12),t.qZA()}if(2&_e){const xe=ve.opened,be=t.oxw(2).erzLet;t.Q6J("opened",xe),t.xp6(1),t.hij(" ",t.lcZ(2,3,"shared.profile.apprenticeship-company")," "),t.xp6(2),t.Q6J("ngIf",be.profile.apprenticeshipCompanies.length>1)}}function k(_e,ve){if(1&_e&&t._UZ(0,"erz-student-dossier-apprenticeship-company",13),2&_e){const xe=t.oxw().$implicit;t.Q6J("company",xe)}}function Te(_e,ve){1&_e&&(t.TgZ(0,"ngb-panel",11),t.YNc(1,ie,4,5,"ng-template",6),t.YNc(2,k,1,1,"ng-template",7),t.qZA()),2&_e&&t.Q6J("id","apprenticeship-company-"+ve.index)}function Me(_e,ve){if(1&_e&&(t.ynx(0),t._UZ(1,"erz-student-dossier-address",1),t.TgZ(2,"ngb-accordion",null,2),t.YNc(4,S,3,0,"ngb-panel",3),t.YNc(5,Te,3,1,"ngb-panel",4),t.qZA(),t.BQk()),2&_e){const xe=ve.erzLet;t.xp6(1),t.Q6J("student",xe.profile.student),t.xp6(3),t.Q6J("ngIf",xe.profile.legalRepresentativePersons.length>0),t.xp6(1),t.Q6J("ngForOf",xe.profile.apprenticeshipCompanies)}}const ye=function(_e){return{profile:_e}};let ce=(()=>{class _e{constructor(xe){this.state=xe,this.state.currentDossier$.next("addresses")}static#e=this.\u0275fac=function(be){return new(be||_e)(t.Y36(d.j))};static#t=this.\u0275cmp=t.Xpm({type:_e,selectors:[["erz-dossier-addresses"]],decls:2,vars:5,consts:[[4,"erzLet"],[1,"profile-entry",3,"student"],["acc","ngbAccordion"],["id","legal-representatives",4,"ngIf"],[3,"id",4,"ngFor","ngForOf"],["id","legal-representatives"],["ngbPanelHeader",""],["ngbPanelContent",""],[3,"opened","click"],["class","profile-entry",3,"person",4,"ngFor","ngForOf"],[1,"profile-entry",3,"person"],[3,"id"],[4,"ngIf"],[1,"profile-entry",3,"company"]],template:function(be,ke){1&be&&(t.YNc(0,Me,6,3,"ng-container",0),t.ALo(1,"async")),2&be&&t.Q6J("erzLet",t.VKq(3,ye,t.lcZ(1,1,ke.state.profile$)))},dependencies:[w.sg,w.O5,L.gY,L.Gk,L.gW,L.k9,p.e,O.H,R.k,F.O,P.g,w.Ov,B.X$],styles:[".profile-entry[_ngcontent-%COMP%]{display:block;padding:0 1rem}"],changeDetection:0})}return _e})()},5841:(Pe,V,a)=>{"use strict";a.d(V,{d:()=>B});var t=a(8645),d=a(3986),w=a(5879),L=a(8405);function p($,f){if(1&$){const j=w.EpF();w.TgZ(0,"erz-student-dossier-entry-header",7),w.NdJ("click",function(){w.CHM(j);const q=w.oxw().index,ie=w.MAs(2);return w.KtG(ie.toggle("course-"+q))}),w._UZ(1,"erz-dossier-grades-course-header",8),w.qZA()}if(2&$){const j=f.opened,S=w.oxw().$implicit;w.Q6J("opened",j),w.xp6(1),w.Q6J("designation",S.course.Designation)("finalGrade",S.finalGrade)("grading",S.grading)("gradingScale",S.gradingScale)("average",S.average)}}function O($,f){if(1&$&&w._UZ(0,"erz-dossier-course-tests",9),2&$){const j=w.oxw().$implicit,S=w.oxw(2);w.Q6J("decoratedCourse",j)("studentId",S.studentId)("gradingScales",S.gradingScales)("isEditable",S.isEditable)}}function R($,f){if(1&$&&(w.TgZ(0,"div")(1,"ngb-accordion",null,3)(3,"ngb-panel",4),w.YNc(4,p,2,6,"ng-template",5),w.YNc(5,O,1,4,"ng-template",6),w.qZA()()()),2&$){const j=f.index;w.xp6(3),w.Q6J("id","course-"+j)}}function F($,f){if(1&$&&(w.ynx(0),w.YNc(1,R,6,1,"div",2),w.ALo(2,"async"),w.BQk()),2&$){const j=w.oxw();w.xp6(1),w.Q6J("ngForOf",w.lcZ(2,2,j.decoratedCoursesSubject$))("ngForTrackBy",j.trackByCourseId)}}function P($,f){1&$&&(w.TgZ(0,"p",10),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&$&&(w.xp6(1),w.hij(" ",w.lcZ(2,1,"dossier.no-courses")," "))}let B=(()=>{class ${constructor(j){this.dossierGradeService=j,this.isEditable=!0,this.decoratedCoursesSubject$=new t.x}ngOnChanges(){this.decoratedCoursesSubject$.next(this.decorateCourses())}trackByCourseId(j,S){return S.course.Id}decorateCourses(){return this.courses?.map(j=>{const S=this.dossierGradeService.getFinalGradeForStudent(j,this.studentId),q=this.dossierGradeService.getGradesForStudent(j,this.studentId,this.gradingScales);return{course:j,finalGrade:S,grading:this.dossierGradeService.getGradingForStudent(j,this.studentId),gradingScale:this.dossierGradeService.getGradingScaleOfCourse(j,this.gradingScales),average:S?.AverageTestResult||(0,d.S)(q)}})}static#e=this.\u0275fac=function(S){return new(S||$)(w.Y36(L.S))};static#t=this.\u0275cmp=w.Xpm({type:$,selectors:[["erz-dossier-grades-view"]],inputs:{courses:"courses",studentId:"studentId",gradingScales:"gradingScales",isEditable:"isEditable"},features:[w.TTD],decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["noCourses",""],[4,"ngFor","ngForOf","ngForTrackBy"],["acc","ngbAccordion"],[3,"id"],["ngbPanelHeader",""],["ngbPanelContent",""],[3,"opened","click"],[3,"designation","finalGrade","grading","gradingScale","average"],[3,"decoratedCourse","studentId","gradingScales","isEditable"],["data-testid","message-no-courses",1,"py-3"]],template:function(S,q){if(1&S&&(w.YNc(0,F,3,4,"ng-container",0),w.YNc(1,P,3,3,"ng-template",null,1,w.W1O)),2&S){const ie=w.MAs(2);w.Q6J("ngIf",(null==q.courses?null:q.courses.length)>0)("ngIfElse",ie)}}})}return $})()},9608:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>F});var t=a(5879),d=a(6814),w=a(1523),L=a(2628),p=a(7625);function O(P,B){if(1&P&&(t.TgZ(0,"div",6)(1,"span",7),t._uU(2),t.ALo(3,"date"),t.qZA(),t.TgZ(4,"span",8),t._uU(5),t.qZA()()),2&P){const $=t.oxw();t.xp6(2),t.Oqu(t.xi3(3,2,$.student.Birthdate,"dd.MM.yyyy")),t.xp6(3),t.hij("(",$.student.Gender,")")}}const R=["*"];let F=(()=>{class P{constructor(){this.link="/"}static#e=this.\u0275fac=function(f){return new(f||P)};static#t=this.\u0275cmp=t.Xpm({type:P,selectors:[["erz-student-backlink"]],inputs:{link:"link",queryParams:"queryParams",studentId:"studentId",studentName:"studentName",student:"student"},ngContentSelectors:R,decls:9,vars:5,consts:[[1,"d-flex","flex-column","w-100"],[3,"routerLink","queryParams"],[1,"d-flex","flex-row","align-items-start"],[1,"me-3","medium",3,"studentId"],[1,"d-flex","flex-column"],["class","additional-info",4,"ngIf"],[1,"additional-info"],[1,"birthday"],[1,"gender"]],template:function(f,j){1&f&&(t.F$t(),t.TgZ(0,"div",0)(1,"erz-backlink",1),t.Hsn(2),t.qZA(),t.TgZ(3,"div",2),t._UZ(4,"erz-avatar",3),t.TgZ(5,"div",4)(6,"h1"),t._uU(7),t.qZA(),t.YNc(8,O,6,5,"div",5),t.qZA()()()),2&f&&(t.xp6(1),t.Q6J("routerLink",j.link)("queryParams",j.queryParams),t.xp6(3),t.Q6J("studentId",j.studentId),t.xp6(3),t.Oqu(j.student?j.student.FullName:j.studentName),t.xp6(1),t.Q6J("ngIf",j.student))},dependencies:[d.O5,w.rH,L.A,p.I,d.uU],styles:["[_nghost-%COMP%]{display:flex;align-items:center;width:100%}h1[_ngcontent-%COMP%]{margin:-3px 0 0;display:flex;align-items:baseline;line-height:1}.additional-info[_ngcontent-%COMP%]{color:#adb5bd}.gender[_ngcontent-%COMP%]{margin-left:.8ch}"],changeDetection:0})}return P})()},3036:(Pe,V,a)=>{"use strict";a.d(V,{u:()=>oe});var t=a(7328),d=a(5619),w=a(2572),L=a(2096),p=a(2689),O=a(7921),R=a(7081),F=a(7398),P=a(2181),B=a(4664),$=a(8180),f=a(3942),j=a(6100),S=a(5879),q=a(905),ie=a(6814),k=a(1523),Te=a(6567),Me=a(59),ye=a(9515),ce=a(238);const _e=["checkbox"];function ve(se,ae){if(1&se&&(S.TgZ(0,"a",16)(1,"i",12),S._uU(2,"description"),S.qZA()()),2&se){const fe=S.oxw(4);S.ekj("disabled",!fe.reportUrl),S.Q6J("href",fe.reportUrl,S.LSH)}}function xe(se,ae){if(1&se&&(S.TgZ(0,"a",17),S.ALo(1,"async"),S.TgZ(2,"i",12),S._uU(3,"mail"),S.qZA()()),2&se){const fe=S.oxw(4);S.MGl("href","mailto:",S.lcZ(1,1,fe.mailTo$),"",S.LSH)}}function be(se,ae){if(1&se&&(S.TgZ(0,"div",18),S._uU(1),S.qZA()),2&se){const fe=S.oxw(4);S.xp6(1),S.hij(" ",fe.defaultAbsenceSelectionMessage," ")}}function ke(se,ae){if(1&se){const fe=S.EpF();S.TgZ(0,"div",5),S.NdJ("click",function(je){S.CHM(fe);const Xe=S.MAs(3),nt=S.oxw(3);return S.KtG(nt.onRowClick(je,Xe))}),S.TgZ(1,"div",6)(2,"input",7,8),S.NdJ("change",function(je){S.CHM(fe);const Xe=S.oxw(3);return S.KtG(Xe.toggleAll(je.target.checked))}),S.ALo(4,"async"),S.qZA()(),S.TgZ(5,"div",9),S._uU(6),S.ALo(7,"translate"),S.qZA(),S.TgZ(8,"div",10)(9,"a",11),S.ALo(10,"async"),S.TgZ(11,"i",12),S._uU(12,"edit"),S.qZA()(),S.YNc(13,ve,3,3,"a",13),S.YNc(14,xe,4,3,"a",14),S.qZA(),S.YNc(15,be,2,1,"div",15),S.ALo(16,"async"),S.qZA()}if(2&se){const fe=S.oxw(3);let De;S.xp6(2),S.Q6J("checked",S.lcZ(4,8,fe.allSelected$)),S.xp6(4),S.Oqu(S.lcZ(7,10,"open-absences.detail.all")),S.xp6(3),S.ekj("disabled",0===S.lcZ(10,12,fe.selectionService.selection$).length),S.s9C("routerLink",fe.confirmLink),S.xp6(4),S.Q6J("ngIf",fe.reportAvailable),S.xp6(1),S.Q6J("ngIf",fe.displayEmail),S.xp6(1),S.Q6J("ngIf",fe.defaultAbsenceSelectionMessage&&(null==(De=S.lcZ(16,14,fe.selectionService.selectedWithoutPresenceType$))?null:De.length)>0)}}function vt(se,ae){if(1&se){const fe=S.EpF();S.TgZ(0,"div",6)(1,"input",7,29),S.NdJ("change",function(){S.CHM(fe);const je=S.oxw().$implicit,Xe=S.oxw(3);return S.KtG(Xe.selectionService.toggle(je))}),S.ALo(3,"async"),S.qZA()()}if(2&se){const fe=S.oxw().$implicit,De=S.oxw(3);S.xp6(1),S.Q6J("checked",S.lcZ(3,1,De.selectionService.isSelected$(fe)))}}function it(se,ae){if(1&se&&(S.ynx(0),S._uU(1),S.BQk()),2&se){const fe=S.oxw().$implicit;S.xp6(1),S.hij(", ",fe.StudyClassNumber,"")}}function St(se,ae){if(1&se&&(S.TgZ(0,"div",32),S._uU(1),S.qZA()),2&se){const fe=S.oxw().erzLet;S.xp6(1),S.hij(" ",fe," ")}}function qe(se,ae){1&se&&(S.TgZ(0,"div",33),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&se&&(S.xp6(1),S.hij(" ",S.lcZ(2,1,"my-absences.show.confirm-presence-type")," "))}function _t(se,ae){if(1&se&&(S.ynx(0),S.YNc(1,St,2,1,"div",30),S.YNc(2,qe,3,3,"div",31),S.BQk()),2&se){const fe=ae.erzLet,De=S.oxw(4);S.xp6(1),S.Q6J("ngIf",fe),S.xp6(1),S.Q6J("ngIf",De.displayPresenceType&&!fe&&De.defaultAbsenceSelectionMessage)}}function $e(se,ae){if(1&se){const fe=S.EpF();S.TgZ(0,"div",19),S.NdJ("click",function(je){const nt=S.CHM(fe).index,wt=S.oxw(3);return S.KtG(wt.onRowClick(je,nt))}),S.YNc(1,vt,4,3,"div",20),S.ALo(2,"async"),S.TgZ(3,"div",21),S._uU(4),S.YNc(5,it,2,1,"ng-container",22),S.qZA(),S.TgZ(6,"div",23),S._uU(7),S.ALo(8,"date"),S.ALo(9,"date"),S.qZA(),S.TgZ(10,"div",24),S._uU(11),S.qZA(),S.YNc(12,_t,3,2,"ng-container",25),S.ALo(13,"async"),S.TgZ(14,"div",26),S._uU(15),S.ALo(16,"date"),S.qZA(),S.TgZ(17,"div",27),S._uU(18),S.ALo(19,"erzDaysDifference"),S.qZA(),S.TgZ(20,"div",28),S._uU(21),S.ALo(22,"date"),S.ALo(23,"erzDaysDifference"),S.qZA()()}if(2&se){const fe=ae.$implicit,De=S.oxw(3);S.xp6(1),S.Q6J("ngIf",S.lcZ(2,11,De.editable$)),S.xp6(3),S.hij(" ",fe.EventDesignation,""),S.xp6(1),S.Q6J("ngIf",fe.StudyClassNumber),S.xp6(2),S.AsE(" ",S.xi3(8,13,fe.LessonDateTimeFrom,"HH:mm"),"\u2013",S.xi3(9,16,fe.LessonDateTimeTo,"HH:mm")," "),S.xp6(4),S.hij(" ",fe.TeacherInformation," "),S.xp6(1),S.Q6J("erzLet",S.lcZ(13,19,De.getPresenceTypeDesignation(fe))),S.xp6(3),S.hij(" ",S.xi3(16,21,fe.LessonDateTimeFrom,"dd.MM.yyyy")," "),S.xp6(3),S.hij(" ",S.lcZ(19,24,fe.LessonDateTimeFrom)," "),S.xp6(3),S.AsE(" ",S.xi3(22,26,fe.LessonDateTimeFrom,"dd.MM.yyyy"),", ",S.lcZ(23,29,fe.LessonDateTimeFrom)," ")}}function Ee(se,ae){if(1&se&&(S.ynx(0),S.YNc(1,ke,17,16,"div",3),S.ALo(2,"async"),S.YNc(3,$e,24,31,"div",4),S.ALo(4,"async"),S.BQk()),2&se){const fe=S.oxw(2);S.xp6(1),S.Q6J("ngIf",S.lcZ(2,2,fe.editable$)),S.xp6(2),S.Q6J("ngForOf",S.lcZ(4,4,fe.lessonPresences$))}}function ze(se,ae){1&se&&(S.TgZ(0,"p",34),S._uU(1),S.ALo(2,"translate"),S.qZA()),2&se&&(S.xp6(1),S.Oqu(S.lcZ(2,1,"shared.profile.no-absences")))}function J(se,ae){if(1&se&&(S.ynx(0),S.YNc(1,Ee,5,6,"ng-container",0),S.ALo(2,"async"),S.YNc(3,ze,3,3,"ng-template",null,2,S.W1O),S.BQk()),2&se){const fe=S.MAs(4),De=S.oxw();let je;S.xp6(1),S.Q6J("ngIf",(null==(je=S.lcZ(2,2,De.lessonPresences$))?null:je.length)>0)("ngIfElse",fe)}}function Q(se,ae){1&se&&S._UZ(0,"erz-spinner",35)}let oe=(()=>{class se{constructor(fe){this.presenceTypesService=fe,this.selectionService=null,this.displayPresenceType=!0,this.defaultAbsenceSelectionMessage=null,this.reportUrl=null,this.reportAvailable=!1,this.confirmLink="confirm",this.displayEmail=!1,this.lessonPresences$$=new t.t(1),this.lessonPresences$=this.lessonPresences$$.pipe((0,p.B)(),(0,O.O)(null),(0,R.d)(1)),this.loading$=this.lessonPresences$.pipe((0,F.U)((0,f.ff)(j.kJ))),this.selectionService$=new t.t(1),this.editable$=this.selectionService$.pipe((0,F.U)(()=>!0),(0,O.O)(!1)),this.displayPresenceType$=new d.X(!0),this.allSelected$=(0,w.a)([this.lessonPresences$.pipe((0,P.h)(f.Nf)),this.selectionService$.pipe((0,B.w)(De=>De.selection$))]).pipe((0,F.U)(([De,je])=>De.length===je.length))}ngOnChanges(fe){fe.absences$&&this.lessonPresences$$.next(fe.absences$.currentValue),fe.selectionService&&fe.selectionService.currentValue&&(fe.selectionService.currentValue.clear(),this.selectionService$.next(fe.selectionService.currentValue)),fe.displayPresenceType&&this.displayPresenceType$.next(fe.displayPresenceType.currentValue)}toggleAll(fe){fe?this.lessonPresences$.pipe((0,$.q)(1)).subscribe(De=>this.selectionService?.clear(De)):this.selectionService?.clear()}onRowClick(fe,De){if(0===this.checkboxes.length)return;let je;je="number"==typeof De?this.checkboxes.toArray()[De].nativeElement:De,fe.target!==je&&!fe.target.closest(".buttons")&&je.click()}getPresenceTypeDesignation(fe){return this.displayPresenceType$.pipe((0,B.w)(De=>De?this.presenceTypesService.displayedTypes$:(0,L.of)([])),(0,F.U)(De=>fe.TypeRef.Id&&De.find(je=>je.Id===fe.TypeRef.Id)?.Designation||null))}static#e=this.\u0275fac=function(De){return new(De||se)(S.Y36(q.c))};static#t=this.\u0275cmp=S.Xpm({type:se,selectors:[["erz-student-dossier-absences"]],viewQuery:function(De,je){if(1&De&&S.Gf(_e,5),2&De){let Xe;S.iGM(Xe=S.CRH())&&(je.checkboxes=Xe)}},inputs:{absences$:"absences$",selectionService:"selectionService",displayPresenceType:"displayPresenceType",defaultAbsenceSelectionMessage:"defaultAbsenceSelectionMessage",reportUrl:"reportUrl",reportAvailable:"reportAvailable",confirmLink:"confirmLink",displayEmail:"displayEmail",mailTo$:"mailTo$"},features:[S.TTD],decls:4,vars:4,consts:[[4,"ngIf","ngIfElse"],["loading",""],["noAbsences",""],["class","absence-all",3,"click",4,"ngIf"],["class","absence-entry",3,"click",4,"ngFor","ngForOf"],[1,"absence-all",3,"click"],[1,"checkbox"],["type","checkbox",1,"form-check-input",3,"checked","change"],["allCheckbox",""],[1,"all"],[1,"buttons"],[1,"edit","btn","btn-primary","btn-icon","me-2",3,"routerLink"],[1,"material-icons"],["class","report btn btn-primary btn-icon me-2","target","_blank",3,"disabled","href",4,"ngIf"],["class","mail btn btn-primary btn-icon me-2","target","_blank",3,"href",4,"ngIf"],["class","validation",4,"ngIf"],["target","_blank",1,"report","btn","btn-primary","btn-icon","me-2",3,"href"],["target","_blank",1,"mail","btn","btn-primary","btn-icon","me-2",3,"href"],[1,"validation"],[1,"absence-entry",3,"click"],["class","checkbox",4,"ngIf"],[1,"lesson-class"],[4,"ngIf"],[1,"time","pe-2"],[1,"teacher"],[4,"erzLet"],[1,"date"],[1,"days-ago"],[1,"date-days-ago"],["checkbox",""],["class","presence-type",4,"ngIf"],["class","presence-type confirm",4,"ngIf"],[1,"presence-type"],[1,"presence-type","confirm"],[1,"mx-3"],[1,"inline","d-block","mb-3"]],template:function(De,je){if(1&De&&(S.YNc(0,J,5,4,"ng-container",0),S.ALo(1,"async"),S.YNc(2,Q,1,0,"ng-template",null,1,S.W1O)),2&De){const Xe=S.MAs(3);S.Q6J("ngIf",!1===S.lcZ(1,2,je.loading$))("ngIfElse",Xe)}},dependencies:[ie.sg,ie.O5,k.rH,Te.e,Me.O,ie.Ov,ie.uU,ye.X$,ce.Q],styles:['.absence-all[_ngcontent-%COMP%]{padding:0 0 .5rem 1rem;border-bottom:1px solid #dee2e6;display:grid;grid-template-areas:"checkbox all buttons" "validation validation validation";grid-template-columns:min-content 1fr min-content}.absence-entry[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid #dee2e6;display:grid;grid-template-areas:"checkbox lesson-class time teacher" "checkbox presence-type date days-ago";grid-template-columns:min-content 2fr 1fr 2fr}.absence-entry[_ngcontent-%COMP%]:first-child{padding-top:0}.absence-all[_ngcontent-%COMP%] + .absence-entry[_ngcontent-%COMP%]{padding-top:1rem}.checkbox[_ngcontent-%COMP%]{grid-area:checkbox;margin:0;padding:.3rem 1rem 0 0}.checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important;display:block}.all[_ngcontent-%COMP%]{grid-area:all}.buttons[_ngcontent-%COMP%]{grid-area:buttons;display:flex}.validation[_ngcontent-%COMP%]{grid-area:validation}.validation[_ngcontent-%COMP%], .presence-type.confirm[_ngcontent-%COMP%]{color:#d01018}.lesson-class[_ngcontent-%COMP%]{grid-area:lesson-class;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.time[_ngcontent-%COMP%]{grid-area:time}.teacher[_ngcontent-%COMP%]{grid-area:teacher}.presence-type[_ngcontent-%COMP%]{color:#adb5bd;grid-area:presence-type}.date[_ngcontent-%COMP%]{grid-area:date}.days-ago[_ngcontent-%COMP%]{color:#adb5bd;grid-area:days-ago}.date-days-ago[_ngcontent-%COMP%]{grid-area:date-days-ago;display:none}@media (max-width: 750px){.absence-entry[_ngcontent-%COMP%]{grid-template-areas:"checkbox lesson-class" "checkbox teacher" "checkbox date-days-ago" "checkbox time" "checkbox presence-type";grid-template-columns:min-content 1fr}.date-days-ago[_ngcontent-%COMP%]{display:block}.date[_ngcontent-%COMP%], .days-ago[_ngcontent-%COMP%]{display:none}}'],changeDetection:0})}return se})()},1442:(Pe,V,a)=>{"use strict";a.d(V,{k:()=>R});var t=a(5879),d=a(6814);function w(F,P){if(1&F&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&F){const B=t.oxw();t.xp6(1),t.hij(" ",B.student.AddressLine2,"")}}function L(F,P){if(1&F&&(t.ynx(0),t.TgZ(1,"a",2),t._uU(2),t.qZA(),t._UZ(3,"br"),t.BQk()),2&F){const B=t.oxw();t.xp6(1),t.MGl("href","tel:",B.student.PhonePrivate,"",t.LSH),t.xp6(1),t.hij(" ",B.student.PhonePrivate," ")}}function p(F,P){if(1&F&&(t.ynx(0),t.TgZ(1,"a",2),t._uU(2),t.qZA(),t._UZ(3,"br"),t.BQk()),2&F){const B=t.oxw();t.xp6(1),t.MGl("href","tel:",B.student.PhoneMobile,"",t.LSH),t.xp6(1),t.hij(" ",B.student.PhoneMobile," ")}}function O(F,P){if(1&F&&(t.TgZ(0,"a",2),t._uU(1),t.qZA()),2&F){const B=t.oxw();t.MGl("href","mailto:",B.email,"",t.LSH),t.xp6(1),t.hij(" ",B.email," ")}}let R=(()=>{class F{constructor(){this.emailProperty="DisplayEmail"}get postalCode(){return"PostalCode"in this.student?this.student.PostalCode:this.student.Zip}get email(){return"Email2"===this.emailProperty&&"Email2"in this.student?this.student.Email2||null:this.student.DisplayEmail}static#e=this.\u0275fac=function($){return new($||F)};static#t=this.\u0275cmp=t.Xpm({type:F,selectors:[["erz-student-dossier-address"]],inputs:{student:"student",emailProperty:"emailProperty"},decls:9,vars:7,consts:[[4,"ngIf"],[3,"href",4,"ngIf"],[3,"href"]],template:function($,f){1&$&&(t.TgZ(0,"address"),t._uU(1),t._UZ(2,"br"),t.YNc(3,w,3,1,"ng-container",0),t._uU(4),t._UZ(5,"br"),t.YNc(6,L,4,2,"ng-container",0),t.YNc(7,p,4,2,"ng-container",0),t.YNc(8,O,2,2,"a",1),t.qZA()),2&$&&(t.xp6(1),t.hij(" ",f.student.AddressLine1,""),t.xp6(2),t.Q6J("ngIf",f.student.AddressLine2),t.xp6(1),t.AsE(" ",f.postalCode||""," ",f.student.Location,""),t.xp6(2),t.Q6J("ngIf",f.student.PhonePrivate),t.xp6(1),t.Q6J("ngIf",f.student.PhoneMobile),t.xp6(1),t.Q6J("ngIf",f.email))},dependencies:[d.O5],changeDetection:0})}return F})()},8075:(Pe,V,a)=>{"use strict";a.d(V,{g:()=>ye});var t=a(5879),d=a(6814),w=a(9515),L=a(9753),p=a(500);function O(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.Oqu(null==ve.company.apprenticeshipManager?null:ve.company.apprenticeshipManager.CompanyName)}}function R(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.Oqu(null==ve.company.apprenticeshipManager?null:ve.company.apprenticeshipManager.CompanyNameAddition)}}function F(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.AsE(" ",ve.company.apprenticeshipManager.Lastname||""," ",ve.company.apprenticeshipManager.Firstname||"","")}}function P(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.Oqu(ve.company.apprenticeshipManager.AddressLine1)}}function B(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.Oqu(ve.company.apprenticeshipManager.AddressLine2)}}function $(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.AsE("",ve.company.apprenticeshipManager.PostalCode," ",ve.company.apprenticeshipManager.Location,"")}}function f(ce,_e){if(1&ce&&(t.ynx(0),t.TgZ(1,"a",2),t._uU(2),t._UZ(3,"br"),t.qZA(),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.MGl("href","tel:",ve.company.apprenticeshipManager.PhoneBusiness,"",t.LSH),t.xp6(1),t.Oqu(ve.company.apprenticeshipManager.PhoneBusiness)}}function j(ce,_e){if(1&ce&&(t.ynx(0),t.TgZ(1,"a",2),t.ALo(2,"erzPersonEmail"),t._uU(3),t.ALo(4,"erzPersonEmail"),t.qZA(),t.BQk()),2&ce){const ve=t.oxw();t.xp6(1),t.MGl("href","mailto:",t.lcZ(2,2,ve.company.apprenticeshipManager),"",t.LSH),t.xp6(2),t.Oqu(t.lcZ(4,4,ve.company.apprenticeshipManager))}}function S(ce,_e){if(1&ce&&(t.TgZ(0,"div",3),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"addSpace"),t._UZ(4,"br"),t._uU(5),t.ALo(6,"date"),t.ALo(7,"date"),t.qZA()),2&ce){const ve=t.oxw();t.xp6(1),t.AsE(" ",t.lcZ(2,4,"shared.profile.apprenticeship-period"),"",t.xi3(3,6,":",":"),""),t.xp6(4),t.AsE(" ",t.xi3(6,9,ve.company.apprenticeshipContract.ContractDateFrom,"dd.MM.yyyy"),"\u2013",t.xi3(7,12,ve.company.apprenticeshipContract.ContractDateTo,"dd.MM.yyyy"),"\n")}}function q(ce,_e){if(1&ce&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&ce){const ve=t.oxw(2);t.xp6(1),t.AsE(" ",ve.company.jobTrainer.Lastname||""," ",ve.company.jobTrainer.Firstname||"","")}}function ie(ce,_e){if(1&ce&&(t.ynx(0),t.TgZ(1,"a",2),t._uU(2),t._UZ(3,"br"),t.qZA(),t.BQk()),2&ce){const ve=t.oxw(2);t.xp6(1),t.MGl("href","tel:",ve.company.jobTrainer.PhoneBusiness,"",t.LSH),t.xp6(1),t.Oqu(ve.company.jobTrainer.PhoneBusiness)}}function k(ce,_e){if(1&ce&&(t.ynx(0),t.TgZ(1,"a",2),t._uU(2),t._UZ(3,"br"),t.qZA(),t.BQk()),2&ce){const ve=t.oxw(2);t.xp6(1),t.MGl("href","tel:",ve.company.jobTrainer.PhoneMobile,"",t.LSH),t.xp6(1),t.Oqu(ve.company.jobTrainer.PhoneMobile)}}function Te(ce,_e){if(1&ce&&(t.ynx(0),t.TgZ(1,"a",2),t.ALo(2,"erzPersonEmail"),t._uU(3),t.ALo(4,"erzPersonEmail"),t.qZA(),t.BQk()),2&ce){const ve=t.oxw(2);t.xp6(1),t.MGl("href","mailto:",t.lcZ(2,2,ve.company.jobTrainer),"",t.LSH),t.xp6(2),t.Oqu(t.lcZ(4,4,ve.company.jobTrainer))}}function Me(ce,_e){if(1&ce&&(t.TgZ(0,"div",3),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"addSpace"),t.TgZ(4,"address"),t.YNc(5,q,3,2,"ng-container",0),t.YNc(6,ie,4,2,"ng-container",0),t.YNc(7,k,4,2,"ng-container",0),t.YNc(8,Te,5,6,"ng-container",0),t.ALo(9,"erzPersonEmail"),t.qZA()()),2&ce){const ve=t.oxw();t.xp6(1),t.AsE(" ",t.lcZ(2,6,"shared.profile.job-trainer"),"",t.xi3(3,8,":",":")," "),t.xp6(4),t.Q6J("ngIf",ve.company.jobTrainer.Lastname||ve.company.jobTrainer.Firstname),t.xp6(1),t.Q6J("ngIf",ve.company.jobTrainer.PhoneBusiness),t.xp6(1),t.Q6J("ngIf",ve.company.jobTrainer.PhoneMobile),t.xp6(1),t.Q6J("ngIf",t.lcZ(9,11,ve.company.jobTrainer))}}let ye=(()=>{class ce{constructor(){}static#e=this.\u0275fac=function(xe){return new(xe||ce)};static#t=this.\u0275cmp=t.Xpm({type:ce,selectors:[["erz-student-dossier-apprenticeship-company"]],inputs:{company:"company"},decls:12,vars:12,consts:[[4,"ngIf"],["class","subentry",4,"ngIf"],[3,"href"],[1,"subentry"]],template:function(xe,be){1&xe&&(t.TgZ(0,"address"),t.YNc(1,O,3,1,"ng-container",0),t.YNc(2,R,3,1,"ng-container",0),t.YNc(3,F,3,2,"ng-container",0),t.YNc(4,P,3,1,"ng-container",0),t.YNc(5,B,3,1,"ng-container",0),t.YNc(6,$,3,2,"ng-container",0),t.YNc(7,f,4,2,"ng-container",0),t.YNc(8,j,5,6,"ng-container",0),t.ALo(9,"erzPersonEmail"),t.qZA(),t.YNc(10,S,8,15,"div",1),t.YNc(11,Me,10,13,"div",1)),2&xe&&(t.xp6(1),t.Q6J("ngIf",null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.CompanyName),t.xp6(1),t.Q6J("ngIf",null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.CompanyNameAddition),t.xp6(1),t.Q6J("ngIf",(null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.Lastname)||(null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.Firstname)),t.xp6(1),t.Q6J("ngIf",null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.AddressLine1),t.xp6(1),t.Q6J("ngIf",null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.AddressLine2),t.xp6(1),t.Q6J("ngIf",(null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.PostalCode)&&(null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.Location)),t.xp6(1),t.Q6J("ngIf",null==be.company.apprenticeshipManager?null:be.company.apprenticeshipManager.PhoneBusiness),t.xp6(1),t.Q6J("ngIf",t.lcZ(9,10,be.company.apprenticeshipManager)),t.xp6(2),t.Q6J("ngIf",be.company.apprenticeshipContract.ContractDateFrom),t.xp6(1),t.Q6J("ngIf",be.company.jobTrainer))},dependencies:[d.O5,d.uU,w.X$,L.U,p.u],styles:[".subentry[_ngcontent-%COMP%]{padding-bottom:1rem}"],changeDetection:0})}return ce})()},8898:(Pe,V,a)=>{"use strict";a.d(V,{H:()=>L});var t=a(5879),d=a(5791);const w=["*"];let L=(()=>{class p{constructor(){this.opened=!1}static#e=this.\u0275fac=function(F){return new(F||p)};static#t=this.\u0275cmp=t.Xpm({type:p,selectors:[["erz-student-dossier-entry-header"]],inputs:{opened:"opened"},ngContentSelectors:w,decls:3,vars:1,consts:[[1,"m-0"],[1,"d-flex","align-items-center",3,"expanded"]],template:function(F,P){1&F&&(t.F$t(),t.TgZ(0,"h5",0),t.Hsn(1),t.qZA(),t._UZ(2,"erz-caret",1)),2&F&&(t.xp6(2),t.Q6J("expanded",P.opened))},dependencies:[d.Q],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;border-top:1px solid #dee2e6;cursor:pointer}button[_ngcontent-%COMP%]{color:#000;text-decoration:none}.btn-link[_ngcontent-%COMP%]:hover{text-decoration:none}"],changeDetection:0})}return p})()},9949:(Pe,V,a)=>{"use strict";a.d(V,{O:()=>B});var t=a(5879),d=a(6814),w=a(9753);function L($,f){if(1&$&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&$){const j=t.oxw();t.xp6(1),t.Oqu(j.person.AddressLine1)}}function p($,f){if(1&$&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&$){const j=t.oxw();t.xp6(1),t.Oqu(j.person.AddressLine2)}}function O($,f){if(1&$&&(t.ynx(0),t._uU(1),t._UZ(2,"br"),t.BQk()),2&$){const j=t.oxw();t.xp6(1),t.AsE("",j.person.Zip," ",j.person.Location,"")}}function R($,f){if(1&$&&(t.ynx(0),t.TgZ(1,"a",1),t._uU(2),t._UZ(3,"br"),t.qZA(),t.BQk()),2&$){const j=t.oxw();t.xp6(1),t.MGl("href","tel:",j.person.PhonePrivate,"",t.LSH),t.xp6(1),t.Oqu(j.person.PhonePrivate)}}function F($,f){if(1&$&&(t.ynx(0),t.TgZ(1,"a",1),t._uU(2),t._UZ(3,"br"),t.qZA(),t.BQk()),2&$){const j=t.oxw();t.xp6(1),t.MGl("href","tel:",j.person.PhoneMobile,"",t.LSH),t.xp6(1),t.Oqu(j.person.PhoneMobile)}}function P($,f){if(1&$&&(t.ynx(0),t.TgZ(1,"a",1),t.ALo(2,"erzPersonEmail"),t._uU(3),t.ALo(4,"erzPersonEmail"),t.qZA(),t.BQk()),2&$){const j=t.oxw();t.xp6(1),t.MGl("href","mailto:",t.lcZ(2,2,j.person),"",t.LSH),t.xp6(2),t.Oqu(t.lcZ(4,4,j.person))}}let B=(()=>{class ${constructor(){}static#e=this.\u0275fac=function(S){return new(S||$)};static#t=this.\u0275cmp=t.Xpm({type:$,selectors:[["erz-student-dossier-legal-representative"]],inputs:{person:"person"},decls:10,vars:10,consts:[[4,"ngIf"],[3,"href"]],template:function(S,q){1&S&&(t.TgZ(0,"address"),t._uU(1),t._UZ(2,"br"),t.YNc(3,L,3,1,"ng-container",0),t.YNc(4,p,3,1,"ng-container",0),t.YNc(5,O,3,2,"ng-container",0),t.YNc(6,R,4,2,"ng-container",0),t.YNc(7,F,4,2,"ng-container",0),t.YNc(8,P,5,6,"ng-container",0),t.ALo(9,"erzPersonEmail"),t.qZA()),2&S&&(t.xp6(1),t.AsE(" ",q.person.LastName," ",q.person.FirstName,""),t.xp6(2),t.Q6J("ngIf",q.person.AddressLine1),t.xp6(1),t.Q6J("ngIf",q.person.AddressLine2),t.xp6(1),t.Q6J("ngIf",q.person.Zip&&q.person.Zip),t.xp6(1),t.Q6J("ngIf",q.person.PhonePrivate),t.xp6(1),t.Q6J("ngIf",q.person.PhoneMobile),t.xp6(1),t.Q6J("ngIf",t.lcZ(9,8,q.person)))},dependencies:[d.O5,w.U],changeDetection:0})}return $})()},5582:(Pe,V,a)=>{"use strict";a.d(V,{H:()=>ce});var t=a(8405),d=a(4409),w=a(5879),L=a(6814),p=a(1523),O=a(6567),R=a(59),F=a(9608),P=a(9515);function B(_e,ve){if(1&_e&&(w.TgZ(0,"a",9)(1,"i",10),w._uU(2,"description"),w.qZA()()),2&_e){const xe=w.oxw(2).erzLet;w.Q6J("href",xe.reportUrl,w.LSH)}}const $=function(_e){return{returnparams:_e}},f=function(_e){return[_e]};function j(_e,ve){if(1&_e&&(w.TgZ(0,"a",11),w.ALo(1,"async"),w.TgZ(2,"button",12,13),w._uU(4),w.ALo(5,"translate"),w.qZA()()),2&_e){const xe=ve.$implicit,be=w.MAs(3),ke=w.oxw(3);w.Q6J("queryParams",w.VKq(9,$,w.lcZ(1,5,ke.state.returnParams$)))("routerLink",w.VKq(11,f,xe)),w.xp6(2),w.ekj("btn-outline-secondary",!be.isActive),w.xp6(2),w.hij(" ",w.lcZ(5,7,"dossier."+xe)," ")}}function S(_e,ve){1&_e&&(w.TgZ(0,"div"),w._UZ(1,"router-outlet"),w.qZA())}function q(_e,ve){1&_e&&(w.TgZ(0,"p"),w._uU(1),w.ALo(2,"translate"),w.qZA()),2&_e&&(w.xp6(1),w.Oqu(w.lcZ(2,1,"shared.profile.no-profile")))}const ie=function(){return["addresses","absences","grades"]};function k(_e,ve){if(1&_e&&(w.ynx(0),w.TgZ(1,"erz-student-backlink",4),w.ALo(2,"async"),w.ALo(3,"async"),w.YNc(4,B,3,1,"a",5),w.qZA(),w.TgZ(5,"div",6),w.YNc(6,j,6,13,"a",7),w.qZA(),w.YNc(7,S,2,0,"div",2),w.YNc(8,q,3,3,"ng-template",null,8,w.W1O),w.BQk()),2&_e){const xe=w.MAs(9),be=w.oxw().erzLet,ke=w.oxw();w.xp6(1),w.Q6J("link","../..")("queryParams",w.lcZ(2,8,ke.state.backlinkQueryParams$))("studentId",w.lcZ(3,10,ke.state.studentId$))("student",be.profile&&be.profile.student),w.xp6(3),w.Q6J("ngIf","grades"===be.currentDossierSection),w.xp6(2),w.Q6J("ngForOf",w.DdM(12,ie)),w.xp6(1),w.Q6J("ngIf",be.profile)("ngIfElse",xe)}}function Te(_e,ve){1&_e&&w._UZ(0,"erz-spinner")}function Me(_e,ve){if(1&_e&&(w.ynx(0),w.YNc(1,k,10,13,"ng-container",2),w.ALo(2,"async"),w.YNc(3,Te,1,0,"ng-template",null,3,w.W1O),w.BQk()),2&_e){const xe=w.MAs(4),be=w.oxw();w.xp6(1),w.Q6J("ngIf",!1===w.lcZ(2,2,be.state.loading$))("ngIfElse",xe)}}const ye=function(_e,ve,xe){return{profile:_e,currentDossierSection:ve,reportUrl:xe}};let ce=(()=>{class _e{constructor(xe,be){this.state=xe,this.dossierGradesService=be,this.state.currentDossier$.next("addresses")}static#e=this.\u0275fac=function(be){return new(be||_e)(w.Y36(d.j),w.Y36(t.S))};static#t=this.\u0275cmp=w.Xpm({type:_e,selectors:[["erz-student-dossier"]],features:[w._Bn([d.j,t.S])],decls:5,vars:11,consts:[[1,"erz-container","erz-container-limited"],[4,"erzLet"],[4,"ngIf","ngIfElse"],["loading",""],[1,"mb-2",3,"link","queryParams","studentId","student"],["class","edit btn btn-primary btn-icon ms-2","target","_blank",3,"href",4,"ngIf"],[1,"d-flex","flex-row","py-3","flex-wrap"],["class","me-1 mt-1 me-sm-2",3,"queryParams","routerLink",4,"ngFor","ngForOf"],["noProfile",""],["target","_blank",1,"edit","btn","btn-primary","btn-icon","ms-2",3,"href"],[1,"material-icons"],[1,"me-1","mt-1","me-sm-2",3,"queryParams","routerLink"],["data-test-id","dossier-section-button","type","button","routerLinkActive","btn-primary",1,"btn","btn-outline-secondary"],["rla","routerLinkActive"]],template:function(be,ke){1&be&&(w.TgZ(0,"div",0),w.YNc(1,Me,5,4,"ng-container",1),w.ALo(2,"async"),w.ALo(3,"async"),w.ALo(4,"async"),w.qZA()),2&be&&(w.xp6(1),w.Q6J("erzLet",w.kEZ(7,ye,w.lcZ(2,1,ke.state.profile$),w.lcZ(3,3,ke.state.currentDossier$),w.lcZ(4,5,ke.dossierGradesService.testReportUrl$))))},dependencies:[L.sg,L.O5,p.lC,p.rH,p.Od,O.e,R.O,F.b,L.Ov,P.X$],changeDetection:0})}return _e})()},1703:(Pe,V,a)=>{"use strict";a.d(V,{q:()=>L});var t=a(5879),d=a(902),w=a(6223);let L=(()=>{class p{constructor(){this.id=null,this.label=null,this.disabled=!1,this.value=!1,this.valueChange=new t.vpe,this.fallbackId=(0,d.Z)("erz-switch")}static#e=this.\u0275fac=function(F){return new(F||p)};static#t=this.\u0275cmp=t.Xpm({type:p,selectors:[["erz-switch"]],inputs:{id:"id",label:"label",disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange"},decls:3,vars:5,consts:[["type","checkbox",3,"disabled","ngModel","ngModelChange"]],template:function(F,P){if(1&F&&(t.TgZ(0,"input",0),t.NdJ("ngModelChange",function($){return P.valueChange.emit($)}),t.qZA(),t.TgZ(1,"label"),t._uU(2),t.qZA()),2&F){let B,$;t.Q6J("disabled",P.disabled)("ngModel",P.value),t.uIk("id",null!==(B=P.id)&&void 0!==B?B:P.fallbackId),t.xp6(1),t.uIk("for",null!==($=P.id)&&void 0!==$?$:P.fallbackId),t.xp6(1),t.Oqu(P.label)}},dependencies:[w.Wl,w.JJ,w.On],styles:['input[_ngcontent-%COMP%]{opacity:0;position:absolute}label[_ngcontent-%COMP%]{cursor:pointer;text-indent:-9999px;width:36px;height:18px;border:1px solid rgb(0,0,0);background:#fff;display:block;border-radius:18px;position:relative}label[_ngcontent-%COMP%]:after{content:"";position:absolute;top:1px;left:1px;width:14px;height:14px;background:rgb(0,0,0);border-radius:14px;transition:.3s}input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{border-color:#000;background:rgb(0,0,0)}input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{left:calc(100% - 1px);transform:translate(-100%);background:#fff}input[_ngcontent-%COMP%]:focus + label[_ngcontent-%COMP%]{box-shadow:0 0 0 .25rem #4e4e4e40}input[_ngcontent-%COMP%]:disabled + label[_ngcontent-%COMP%]{cursor:default;background:#fff;border-color:#dedede}input[_ngcontent-%COMP%]:disabled + label[_ngcontent-%COMP%]:after{background:rgb(222,222,222)}label[_ngcontent-%COMP%]:active:after{width:18.2px}'],changeDetection:0})}return p})()},9707:(Pe,V,a)=>{"use strict";a.d(V,{r:()=>w});var t=a(5879);const d=["*"];let w=(()=>{class L{static#e=this.\u0275fac=function(R){return new(R||L)};static#t=this.\u0275cmp=t.Xpm({type:L,selectors:[["erz-preserve-line-height"]],ngContentSelectors:d,decls:3,vars:0,template:function(R,F){1&R&&(t.F$t(),t.TgZ(0,"div"),t.Hsn(1),t._uU(2,"\xa0"),t.qZA())},encapsulation:2})}return L})()},2015:(Pe,V,a)=>{"use strict";a.d(V,{t:()=>Me});var t=a(5619),d=a(7398),w=a(3997),L=a(4664),p=a(4716),O=a(3620),R=a(2181),F=a(902),P=a(3942),B=a(5879),$=a(6814),f=a(6223),j=a(253),S=a(9515);function q(_e,ve){if(1&_e){const xe=B.EpF();B.TgZ(0,"button",6),B.NdJ("click",function(ke){B.CHM(xe);const vt=B.oxw();return B.KtG(vt.modelChange(ke))}),B.TgZ(1,"i",2),B._uU(2,"clear"),B.qZA()()}}function ie(_e,ve){1&_e&&(B.TgZ(0,"div",7)(1,"div",8)(2,"span",9),B._uU(3,"Loading..."),B.qZA()()())}let Me=(()=>{class _e{constructor(){this.selectedItem$=new t.X(null),this.placeholder="shared.typeahead.default-placeholder",this.valueChange=this.selectedItem$.pipe((0,d.U)(xe=>xe?xe.Key:null),(0,w.x)()),this.componentId=(0,F.Z)("erz-typeahead-"),this.loading$=new t.X(!1),this.search=xe=>xe.pipe(function ye(_e,ve){return xe=>xe.pipe((0,O.b)(ve),(0,d.U)(ce),(0,w.x)(),(0,R.h)((0,P.$L)(_e)))}(3,300),(0,L.w)(this.fetchItems.bind(this)))}ngOnChanges(xe){xe.value&&xe.value.currentValue&&xe.value.currentValue!==this.selectedItemKey&&this.fetchItem(xe.value.currentValue).subscribe(be=>{this.modelChange(be)})}format(xe){return xe.Value}modelChange(xe){this.selectedItem$.next(xe instanceof Object?xe:null)}get selectedItemKey(){return this.selectedItem$.value?this.selectedItem$.value.Key:null}fetchItems(xe){return this.loading$.next(!0),this.typeaheadService.getTypeaheadItems(xe,this.additionalHttpParams).pipe((0,p.x)(()=>this.loading$.next(!1)))}fetchItem(xe){return this.loading$.next(!0),this.typeaheadService.getTypeaheadItemByKey(xe).pipe((0,p.x)(()=>this.loading$.next(!1)))}static#e=this.\u0275fac=function(be){return new(be||_e)};static#t=this.\u0275cmp=B.Xpm({type:_e,selectors:[["erz-typeahead"]],inputs:{typeaheadService:"typeaheadService",placeholder:"placeholder",value:"value",additionalHttpParams:"additionalHttpParams"},outputs:{valueChange:"valueChange"},features:[B.TTD],decls:11,vars:18,consts:[[1,"input-group"],[1,"input-group-text",3,"id"],[1,"material-icons"],["type","text",1,"form-control",3,"ngbTypeahead","inputFormatter","resultFormatter","ngModel","ngModelChange"],["class","btn btn-link text-decoration-none","type","button",3,"click",4,"ngIf"],["class","spinner-container",4,"ngIf"],["type","button",1,"btn","btn-link","text-decoration-none",3,"click"],[1,"spinner-container"],["role","status",1,"spinner-border","spinner-border-sm"],[1,"visually-hidden"]],template:function(be,ke){1&be&&(B.TgZ(0,"div",0)(1,"span",1)(2,"i",2),B._uU(3,"search"),B.qZA()(),B.TgZ(4,"input",3),B.NdJ("ngModelChange",function(it){return ke.modelChange(it)}),B.ALo(5,"translate"),B.ALo(6,"translate"),B.ALo(7,"async"),B.qZA(),B.YNc(8,q,3,0,"button",4),B.qZA(),B.YNc(9,ie,4,0,"div",5),B.ALo(10,"async")),2&be&&(B.xp6(1),B.Q6J("id",ke.componentId),B.xp6(3),B.Q6J("ngbTypeahead",ke.search)("inputFormatter",ke.format)("resultFormatter",ke.format)("ngModel",B.lcZ(7,14,ke.selectedItem$)),B.uIk("placeholder",B.lcZ(5,10,ke.placeholder))("aria-label",B.lcZ(6,12,ke.placeholder))("aria-describedby",ke.componentId),B.xp6(4),B.Q6J("ngIf",ke.value),B.xp6(1),B.Q6J("ngIf",B.lcZ(10,16,ke.loading$)))},dependencies:[$.O5,f.Fj,f.JJ,f.On,j.dR,$.Ov,S.X$],styles:["[_nghost-%COMP%]{display:block;position:relative;background:rgb(255,255,255)}.spinner-container[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;right:.75rem;display:flex;align-items:center;z-index:1001}.spinner-border[_ngcontent-%COMP%]{color:#6c757d}input[_ngcontent-%COMP%]{padding-right:2.5em}.input-group[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{position:absolute;right:0;z-index:5}"],changeDetection:0})}return _e})();function ce(_e){return _e.trim().toLowerCase()}},6567:(Pe,V,a)=>{"use strict";a.d(V,{e:()=>w});var t=a(5879);class d{constructor(){this.$implicit=null,this.erzLet=null}}let w=(()=>{class L{set erzLet(O){this.context.$implicit=this.context.erzLet=O}constructor(O,R){this.vcr=O,this.templateRef=R,this.context=new d}ngOnInit(){this.vcr.createEmbeddedView(this.templateRef,this.context)}static#e=this.\u0275fac=function(R){return new(R||L)(t.Y36(t.s_b),t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:L,selectors:[["","erzLet",""]],inputs:{erzLet:"erzLet"}})}return L})()},8121:(Pe,V,a)=>{"use strict";a.d(V,{X_:()=>j,jJ:()=>q,L9:()=>S,wS:()=>B,Wx:()=>P,$f:()=>f,s3:()=>$});var t=a(754),d=a(5040),w=a(5803),L=t.sH("JsonArray",function(){return t.Bk(O)}),p=t.sH("JsonRecord",function(){return t.IM(t.Z_,O)}),O=t.G0([t.O7,t.pk,t.Z_,t.lB,L,p],"Json"),R=new t.Dy("JsonFromString",O.is,function(ie,k){try{return t.Vp(JSON.parse(ie))}catch{return t.Rn(ie,k)}},function(ie){return JSON.stringify(ie)}),F=a(2220);function P(ie){return t.G0([t.lB,ie])}function B(ie){return t.G0([t.lB,t.S1,ie])}const $=t.dt({Id:t.pk,HRef:P(t.Z_)}),f=t.dt({Id:P(t.pk),HRef:P(t.Z_)}),j=t.Z_.pipe(R,"JsonFromUnknown"),S=new t.Dy("LocalDateTimeFromString",ie=>ie instanceof Date,(ie,k)=>(0,d.zG)(t.Z_.validate(ie,k),(0,w.tS)(Te=>{const Me=(0,F.Uy)(Te);return isNaN(Me.getTime())?t.Rn(ie,k):t.Vp(Me)})),ie=>(0,F.oZ)(ie)),q=new t.Dy("LocalDateTimeFromString",ie=>ie instanceof Date,(ie,k)=>(0,d.zG)(t.Z_.validate(ie,k),(0,w.tS)(Te=>{const Me=(0,F.nx)(Te);return isNaN(Me.getTime())?t.Rn(ie,k):t.Vp(Me)})),ie=>(0,F.Aq)(ie))},7379:(Pe,V,a)=>{"use strict";a.d(V,{Ff:()=>Me,T0:()=>q,Ly:()=>S,mJ:()=>Te});var t=a(754),d=a(8121),w=a(4717),L=a(2738);const p=t.dt({TestId:t.pk,CourseRegistrationId:t.pk,GradeId:(0,d.Wx)(t.pk),GradeValue:(0,d.Wx)(t.pk),GradeDesignation:(0,d.Wx)(t.Z_),Points:(0,d.Wx)(t.pk),StudentId:t.pk,Id:t.Z_}),O=t.dt({Id:t.pk,CourseId:t.pk,Date:d.L9,Designation:t.Z_,Weight:t.pk,WeightPercent:t.pk,IsPointGrading:t.O7,MaxPoints:(0,d.Wx)(t.pk),MaxPointsAdjusted:(0,d.Wx)(t.pk),IsPublished:t.O7,IsOwner:t.O7,Owner:(0,d.Wx)(t.Z_),Creation:t.Z_,GradingScaleId:(0,d.Wx)(t.pk),GradingScale:(0,d.Wx)(t.Z_),Results:(0,d.Wx)(t.IX(p))}),R=t.dt({Id:t.pk}),F=t.r$({HRef:(0,d.Wx)(t.Z_)}),P=t.r$({HasEvaluationStarted:t.O7,EvaluationUntil:(0,d.Wx)(d.L9),HasReviewOfEvaluationStarted:t.O7,HasTestGrading:t.O7,Id:t.pk}),B=t.jV([R,F,P]),$=t.r$({Id:t.pk,StudentCount:t.pk}),f=t.jV([R,F,$]),j=t.dt({EventDesignation:t.Z_,EventId:t.pk,EventNumber:t.Z_,Grade:t.Z_,GradeComment:(0,d.Wx)(t.Z_),GradeValue:(0,d.Wx)(t.pk),AverageTestResult:t.pk,Id:t.pk,IsAdequate:t.O7,StudentFullName:t.Z_,StudentId:t.pk,StudentMatriculationNumber:(0,d.Wx)(t.pk),StudentNameTooltip:t.Z_}),S=t.dt({AverageTestResult:t.pk,CanGrade:t.O7,EventDesignation:t.Z_,EventId:t.pk,EventNumber:t.Z_,GradeComment:(0,d.Wx)(t.Z_),GradeId:(0,d.Wx)(t.pk),GradeValue:(0,d.Wx)(t.pk),Id:t.pk,StudentFullName:t.Z_,StudentId:t.pk,StudentMatriculationNumber:(0,d.Wx)(t.pk),StudentNameTooltip:t.Z_}),q=t.dt({HRef:t.Z_,Id:t.pk,Number:t.Z_,Designation:t.Z_,DateFrom:(0,d.Wx)(d.L9),DateTo:(0,d.Wx)(d.L9),StatusId:t.pk,GradingScaleId:(0,d.Wx)(t.pk),FinalGrades:(0,d.Wx)(t.IX(j)),Gradings:(0,d.Wx)(t.IX(S)),Tests:(0,d.Wx)(t.IX(O)),EvaluationStatusRef:B,AttendanceRef:f,ParticipatingStudents:(0,d.Wx)(t.IX(w.Z)),Classes:(0,d.Wx)(t.IX(L.y))}),Te=(t.dt({StudentIds:t.IX(t.pk),TestId:t.pk,Points:(0,d.Wx)(t.pk)}),t.dt({StudentIds:t.IX(t.pk),TestId:t.pk,GradeId:(0,d.Wx)(t.pk)}),t.dt({TestResults:t.IX(p),Gradings:t.IX(S)})),Me=t.dt({Gradings:t.IX(S)})},8470:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>d});var t=a(754);const d=t.dt({Key:t.G0([t.pk,t.Z_]),Value:t.Z_})},8952:(Pe,V,a)=>{"use strict";a.d(V,{C:()=>R});var t=a(754),d=a(8121);const w=t.dt({Id:t.pk}),L=t.r$({HRef:(0,d.Wx)(t.Z_)}),p=t.r$({From:d.L9,To:d.L9,EventNumber:t.Z_,EventDesignation:t.Z_,Designation:(0,d.Wx)(t.Z_)}),O=t.jV([w,L,p]),R=t.dt({Id:t.Z_,LessonRef:O,StudentRef:d.s3,TypeRef:d.s3,Type:(0,d.Wx)(t.Z_),ConfirmationState:(0,d.Wx)(t.Z_),ConfirmationStateId:t.pk,Comment:(0,d.Wx)(t.Z_),StudentFullName:t.Z_,RegistrationId:t.pk,HRef:t.Z_})},4717:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});var t=a(754),d=a(8121);const w=t.dt({Id:t.pk,AddressLine1:(0,d.Wx)(t.Z_),AddressLine2:(0,d.wS)(t.Z_),Birthdate:(0,d.Wx)(d.L9),DisplayEmail:(0,d.Wx)(t.Z_),FullName:t.Z_,Gender:t.G0([t.i0("M"),t.i0("F"),t.i0("X")]),Location:(0,d.Wx)(t.Z_),PhoneMobile:(0,d.Wx)(t.Z_),PhonePrivate:(0,d.Wx)(t.Z_),PostalCode:(0,d.Wx)(t.Z_)})},2738:(Pe,V,a)=>{"use strict";a.d(V,{y:()=>d});var t=a(754);const d=t.dt({Id:t.pk,Designation:t.Z_,StudentCount:t.pk,Number:t.Z_})},6514:(Pe,V,a)=>{"use strict";a.d(V,{Y:()=>p,t:()=>L});var t=a(754),d=a(8121),w=a(8470);const L=t.dt({Id:t.Z_,SubscriptionId:t.pk,VssId:t.pk,EventId:t.pk,DropdownItems:(0,d.Wx)(t.IX(w.b)),IdPerson:t.pk,ShowAsRadioButtons:t.O7,Value:(0,d.Wx)(t.Z_)}),p=t.dt({Id:t.pk,CurrentWorkProgressId:(0,d.Wx)(t.Z_||(0,d.Wx)(t.pk)),EventId:(0,d.Wx)(t.pk),PersonId:(0,d.Wx)(t.pk),Status:t.Z_,StatusId:(0,d.Wx)(t.pk),IsOkay:(0,d.Wx)(t.O7),IsQueued:(0,d.Wx)(t.O7),EventDesignation:(0,d.Wx)(t.Z_),EventInformation:(0,d.Wx)(t.Z_||t.pk),EventNotes:(0,d.Wx)(t.Z_||t.pk),CheckPersonalInformation:(0,d.Wx)(t.O7),CorrespondencePersonId:(0,d.Wx)(t.pk),CorrespondenceAddressTypeId:(0,d.Wx)(t.Z_||t.pk),Billing1PersonId:(0,d.Wx)(t.pk),Billing1AddressTypeId:(0,d.Wx)(t.Z_||t.pk),Billing2PersonId:(0,d.Wx)(t.Z_||t.pk),Billing2AddressTypeId:(0,d.Wx)(t.Z_||t.pk),KindOfPaymentId1:(0,d.Wx)(t.Z_||t.pk),KindOfPaymentEmail1:(0,d.Wx)(t.Z_||t.pk),KindOfPaymentId2:(0,d.Wx)(t.Z_||t.pk),KindOfPaymentEmail2:(0,d.Wx)(t.Z_||t.pk),IdObject:(0,d.Wx)(t.pk),IdSubscription:(0,d.Wx)(t.pk),IdStatus:(0,d.Wx)(t.pk),AnsweredQuestions:(0,d.Wx)(t.Z_||t.pk),Messages:(0,d.Wx)(t.Z_||t.pk),SubscriptionDetails:(0,d.Wx)(t.IX(L)),HRef:(0,d.Wx)(t.Z_)})},3786:(Pe,V,a)=>{"use strict";a.d(V,{Az:()=>Te,b7:()=>B,zn:()=>j,k_:()=>$,Sx:()=>k,PW:()=>S,iu:()=>q,PG:()=>P});var t=a(754);var L=a(5803);function p(Me,ye,ce){return void 0===ce&&(ce="withFallback("+Me.name+")"),function w(Me,ye,ce){void 0===ce&&(ce=Me.name);var _e=function d(Me){var ye=Object.create(Object.getPrototypeOf(Me));return Object.assign(ye,Me),ye}(Me);return _e.validate=ye,_e.decode=function(ve){return ye(ve,t.Ju(_e))},_e.name=ce,_e}(Me,function(_e,ve){return(0,L.vx)(function(){return t.Vp(ye)})(Me.validate(_e,ve))},ce)}var O=a(8121),R=a(8470);const F=t.dt({Key:t.Z_,Value:t.Z_}),P=t.dt({Id:t.Z_,Settings:t.OT(t.IX(F))}),B=O.X_.pipe(t.dt({mail:p(t.O7,!1),gui:p(t.O7,!1),phoneMobile:p(t.O7,!1)})),$=new t.Dy("NotificationTypesInactive",Me=>Array.isArray(Me)&&Me.every(ye=>"string"==typeof ye),(Me,ye)=>"string"==typeof Me?t.Vp(Me.split(";").filter(Boolean)):t.Rn(Me,ye),Me=>Me.join(";")),f=t.dt({id:t.pk,subject:t.Z_,body:t.Z_}),j=O.X_.pipe(t.OT(t.IX(f)));var S=function(Me){return Me.Grid="grid",Me.List="list",Me}(S||{});const q=O.X_.pipe(t.dt({presenceControl:t.mM({grid:null,list:null})})),ie=t.dt({eventId:(0,O.Wx)(t.pk),group:(0,O.Wx)(R.b.props.Key)}),k=O.X_.pipe(t.OT(t.IX(ie))),Te=t.dt({AccessInfo:t.dt({Roles:t.IX(t.Z_),Permissions:t.IX(t.Z_)})})},500:(Pe,V,a)=>{"use strict";a.d(V,{u:()=>w});var t=a(5879),d=a(8299);let w=(()=>{class L{constructor(O){this.i18n=O}transform(O,R){return"fr-CH"===this.i18n.detectLanguage()?(Array.from(R).map(P=>O=O.replace(P," ".concat(P))),O):O}static#e=this.\u0275fac=function(R){return new(R||L)(t.Y36(d.D,16))};static#t=this.\u0275pipe=t.Yjl({name:"addSpace",type:L,pure:!0})}return L})()},238:(Pe,V,a)=>{"use strict";a.d(V,{Q:()=>F});var t=a(5351),d=a(9189),w=a(2816),O=a(5879),R=a(9515);let F=(()=>{class P{constructor($){this.translate=$}transform($){if(!$)return"";const f=function p(P,B){(0,w.Z)(2,arguments);var $=(0,d.Z)(P),f=(0,d.Z)(B),j=$.getTime()-(0,t.Z)($),S=f.getTime()-(0,t.Z)(f);return Math.round((j-S)/864e5)}($,new Date);return this.translate.instant(`shared.daysDifference.${this.getKey(f)}`,{count:Math.abs(f)})}getKey($){return 0===$?"today":1===$?"tomorrow":-1===$?"yesterday":$>0?"in":"ago"}static#e=this.\u0275fac=function(f){return new(f||P)(O.Y36(R.sK,16))};static#t=this.\u0275pipe=O.Yjl({name:"erzDaysDifference",type:P,pure:!0})}return P})()},6651:(Pe,V,a)=>{"use strict";a.d(V,{GR:()=>L,ey:()=>O,fY:()=>p});var t=a(6814),d=a(5879);const w="1-3",L="\u2013";let p=(()=>{class F{constructor(B){this.locale=B}transform(B,$,f){const j=Number(B??null);return isNaN(j)?L:O(Number(B??null),f??this.locale,$)}static#e=this.\u0275fac=function($){return new($||F)(d.Y36(d.soG,16))};static#t=this.\u0275pipe=d.Yjl({name:"decimalOrDash",type:F,pure:!0})}return F})();function O(F,P,B){return 0===F?L:(0,t.uf)(F,P,`1.${function R(F){return F?String(F).includes("-")?String(F):`${F}-${F}`:w}(B)}`)}},9753:(Pe,V,a)=>{"use strict";a.d(V,{U:()=>d});var t=a(5879);let d=(()=>{class w{transform(p){return p?.DisplayEmail||p?.Email||p?.Email2||null}static#e=this.\u0275fac=function(O){return new(O||w)};static#t=this.\u0275pipe=t.Yjl({name:"erzPersonEmail",type:w,pure:!0})}return w})()},4703:(Pe,V,a)=>{"use strict";a.d(V,{y:()=>w});var t=a(5879),d=a(6593);let w=(()=>{class L{constructor(O){this.sanitizer=O}transform(O,R){switch(R){case"html":return this.sanitizer.bypassSecurityTrustHtml(O);case"style":return this.sanitizer.bypassSecurityTrustStyle(O);case"script":return this.sanitizer.bypassSecurityTrustScript(O);case"url":return this.sanitizer.bypassSecurityTrustUrl(O);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(O);default:throw new Error(`Invalid safe type specified: ${R}`)}}static#e=this.\u0275fac=function(R){return new(R||L)(t.Y36(d.H7,16))};static#t=this.\u0275pipe=t.Yjl({name:"safe",type:L,pure:!0})}return L})()},9410:(Pe,V,a)=>{"use strict";a.d(V,{Q:()=>L});var t=a(7424),d=a.n(t),w=a(5879);let L=(()=>{class p{transform(R,F){return d()(R,F)}static#e=this.\u0275fac=function(F){return new(F||p)};static#t=this.\u0275pipe=w.Yjl({name:"xss",type:p,pure:!0})}return p})()},813:(Pe,V,a)=>{"use strict";a.d(V,{e:()=>w});var t=a(5879),d=a(8173);let w=(()=>{class L{constructor(O){this.storage=O}get isAuthenticated(){return!!this.accessToken}get accessToken(){return this.storage.getAccessToken()}static#e=this.\u0275fac=function(R){return new(R||L)(t.LFG(d.V))};static#t=this.\u0275prov=t.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})()},8393:(Pe,V,a)=>{"use strict";a.d(V,{o:()=>f});var t=a(7398),d=a(7081),w=a(8180),L=a(8706),p=a(6561),O=a(49),R=a(3942),F=a(2324),P=a(7727),B=a(4141),$=a(5879);let f=(()=>{class S extends p.z{constructor(ie){super(),this.settings=ie,this.selectedIds$=this.selection$.pipe((0,t.U)(j),(0,t.U)(({openAbsencesEntries:k,lessonPresences:Te})=>(0,O.PO)([...(0,P.MX)(k),...Te])),(0,d.d)(1)),this.selectedLessons$=this.selection$.pipe((0,t.U)(j),(0,t.U)(({openAbsencesEntries:k,lessonPresences:Te})=>[...(0,P.MX)(k),...Te]),(0,d.d)(1)),this.selectedWithoutPresenceType$=this.selection$.pipe((0,t.U)(j),(0,t.U)(({openAbsencesEntries:k,lessonPresences:Te})=>[...(0,P.MX)(k),...Te].filter(Me=>Me.TypeRef.Id===this.settings.absencePresenceTypeId)))}clearNonOpenAbsencesEntries(){this.selection$.pipe((0,w.q)(1),(0,t.U)(j)).subscribe(({openAbsencesEntries:ie})=>this.clear(ie))}clearNonLessonPresences(){this.selection$.pipe((0,w.q)(1),(0,t.U)(j)).subscribe(({lessonPresences:ie})=>this.clear(ie))}static#e=this.\u0275fac=function(k){return new(k||S)($.LFG(B.L6))};static#t=this.\u0275prov=$.Yz7({token:S,factory:S.\u0275fac})}return S})();function j(S){return{openAbsencesEntries:S.filter((0,R.V9)(F.G)),lessonPresences:S.filter((0,L.ff)((0,R.V9)(F.G)))}}},1074:(Pe,V,a)=>{"use strict";a.d(V,{s:()=>j});var t=a(4664),d=a(7398),w=a(2096),L=a(754),p=a(4141),O=a(7379),R=a(275),F=a(6031),P=a(8366),B=a(7470),$=a(5879),f=a(9862);let j=(()=>{class S extends P.v{constructor(ie,k){super(ie,k,O.T0,"Courses"),this.statusCodec=L.dt((0,B.e)(this.codec.props,["Id","StatusId","EvaluationStatusRef"]))}getNumberOfCoursesForRating(){return this.http.get(`${this.baseUrl}/?expand=EvaluationStatusRef&fields=Id,StatusId,EvaluationStatusRef&filter.StatusId=;10300;10240`,{headers:{"X-Role-Restriction":"TeacherRole"}}).pipe((0,t.w)((0,R.Y0)(this.statusCodec)),(0,d.U)(ie=>ie.filter(k=>!0===k.EvaluationStatusRef.HasEvaluationStarted)),(0,d.U)(ie=>ie.length))}getExpandedCourses(ie){return(0,F.n)(ie,"TeacherRole")?this.http.get(`${this.baseUrl}/?expand=EvaluationStatusRef,AttendanceRef,Classes,FinalGrades&filter.StatusId=;${this.settings.eventlist.statusfilter}`,{headers:{"X-Role-Restriction":"TeacherRole"}}).pipe((0,t.w)((0,R.Y0)(O.T0))):(0,w.of)([])}getExpandedCourse(ie){return this.http.get(`${this.baseUrl}/${ie}?expand=ParticipatingStudents,EvaluationStatusRef,Tests,Gradings,FinalGrades,Classes`).pipe((0,t.w)((0,R.Jx)(O.T0)))}getExpandedCoursesForDossier(){return this.http.get(`${this.baseUrl}/?expand=Tests,Gradings,FinalGrades,EvaluationStatusRef,ParticipatingStudents,Classes&filter.StatusId=;${this.settings.eventlist.statusfilter}`).pipe((0,t.w)((0,R.Y0)(O.T0)))}getExpandedCoursesForStudent(){return this.http.get(`${this.baseUrl}/?expand=Tests,Gradings,FinalGrades&filter.StatusId=;${this.settings.eventlist.statusfilter}`,{headers:{"X-Role-Restriction":"StudentRole"}}).pipe((0,t.w)((0,R.Y0)(O.T0)))}add(ie,k,Te,Me,ye,ce,_e){return this.http.put(`${this.baseUrl}/${ie}/Tests/New`,{Tests:[{Date:k,Designation:Te,Weight:Me,IsPointGrading:ye,MaxPoints:ce,MaxPointsAdjusted:_e}]}).pipe((0,d.U)(()=>{}))}update(ie,k,Te,Me,ye,ce,_e,ve){return this.http.put(`${this.baseUrl}/${ie}/Tests/Update`,{Tests:[{Id:k,Designation:Te,Date:Me,Weight:ye,IsPointGrading:ce,MaxPoints:_e,MaxPointsAdjusted:ve}]}).pipe((0,d.U)(()=>{}))}delete(ie,k){return this.http.put(`${this.baseUrl}/${ie}/Tests/Delete`,{TestIds:[k]}).pipe((0,d.U)(()=>k))}updateTestResult(ie,k){return this.http.put(`${this.baseUrl}/${ie}/SetTestResult`,k).pipe((0,t.w)((0,R.Jx)(O.mJ)),(0,t.w)(Te=>(0,w.of)({courseId:ie,body:Te})))}setAverageAsFinalGrade(ie){return this.http.put(`${this.baseUrl}/SetAverageTestResult`,ie).pipe((0,t.w)((0,R.Jx)(O.Ff)))}publishTest(ie){return this.http.put(`${this.baseUrl}/PublishTest`,{TestIds:[ie]}).pipe((0,d.U)(()=>ie))}unpublishTest(ie){return this.http.put(`${this.baseUrl}/UnpublishTest`,{TestIds:[ie]}).pipe((0,d.U)(()=>ie))}static#e=this.\u0275fac=function(k){return new(k||S)($.LFG(f.eN),$.LFG(p.L6))};static#t=this.\u0275prov=$.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})()},8405:(Pe,V,a)=>{"use strict";a.d(V,{S:()=>ye});var t=a(7328),d=a(8645),w=a(3997),L=a(4664),p=a(7398),O=a(7081),R=a(3019),F=a(2572),P=a(9315),B=a(4141),$=a(3942),f=a(7483),j=a(2460),S=a(5879),q=a(1074),ie=a(3219),k=a(6016),Te=a(3005),Me=a(1760);let ye=(()=>{class ce{constructor(ve,xe,be,ke,vt,it){this.coursesRestService=ve,this.subscriptionRestService=xe,this.reportsService=be,this.loadingService=ke,this.gradingScalesRestService=vt,this.settings=it,this.studentId$=new t.t(1),this.updateTest$=new d.x,this.initialStudentCourses$=this.studentId$.pipe((0,w.x)(),(0,L.w)(this.loadCourses.bind(this)),(0,p.U)(St=>St.sort((qe,_t)=>qe.Designation.localeCompare(_t.Designation))),(0,O.d)(1)),this.updatedStudentCourses$=this.updateTest$.pipe((0,j.M)(this.initialStudentCourses$),(0,p.U)(([St,qe])=>this.updateCourses(qe,St))),this.studentCourses$=(0,R.T)(this.initialStudentCourses$,this.updatedStudentCourses$).pipe((0,O.d)(1)),this.loading$=this.loadingService.loading$,this.studentCourseIds$=this.studentCourses$.pipe((0,p.U)(St=>St.flatMap(qe=>qe.Id))),this.idSubscriptions$=(0,F.a)([this.studentId$,this.studentCourseIds$]).pipe((0,L.w)(([St,qe])=>this.subscriptionRestService.getIdSubscriptionsByStudentAndCourse(St,qe))),this.ids$=this.idSubscriptions$.pipe((0,p.U)(St=>St.map(qe=>qe.Id))),this.testReportUrl$=this.ids$.pipe((0,p.U)(St=>this.reportsService.getSubscriptionReportUrl(this.settings.testsBySubscriptionReportIdTeacher,St))),this.tests$=this.studentCourses$.pipe((0,p.U)(St=>St.flatMap(qe=>qe.Tests).filter($.Nf))),this.gradingScaleIdsFromTests$=this.tests$.pipe((0,p.U)(St=>[...St.map(qe=>qe.GradingScaleId)].filter($.Nf).filter($.Tw))),this.gradingScaleIdsFromCourses$=this.studentCourses$.pipe((0,p.U)(St=>St.flatMap(qe=>qe.GradingScaleId).filter($.Nf).filter($.Tw))),this.gradingScaleIds$=(0,F.a)([this.gradingScaleIdsFromCourses$,this.gradingScaleIdsFromTests$]).pipe((0,p.U)(([St,qe])=>St.concat(qe).filter($.Tw))),this.gradingScales$=this.gradingScaleIds$.pipe((0,L.w)(St=>(0,P.D)(St.map(qe=>this.gradingScalesRestService.getGradingScale(qe)))))}setStudentId(ve){this.studentId$.next(ve)}getFinalGradeForStudent(ve,xe){return ve?.FinalGrades?.find(be=>be.StudentId===xe)}getGradingForStudent(ve,xe){return ve?.Gradings?.find(be=>be.StudentId===xe)}getGradingScaleOfCourse(ve,xe){return xe?.find(be=>be.Id===ve.GradingScaleId)}getGradesForStudent(ve,xe,be){return ve.Tests?.flatMap(ke=>({value:Number((0,f.fr)(ke,be)?.Grades.find(it=>it.Id===(0,f.W3)(xe,ke)?.GradeId)?.Designation),weight:ke.Weight})).filter(({value:ke})=>!!ke)||[]}loadCourses(ve){return this.loadingService.load(this.coursesRestService.getExpandedCoursesForDossier().pipe((0,p.U)(xe=>xe.filter(be=>be.ParticipatingStudents?.find(ke=>ke.Id===ve)))))}updateCourses(ve,xe){return ve.map(be=>({...be,Tests:null!==be.Tests?be.Tests.map(ke=>ke.Id===xe.Id?xe:ke):null}))}static#e=this.\u0275fac=function(xe){return new(xe||ce)(S.LFG(q.s),S.LFG(ie.o),S.LFG(k.F),S.LFG(Te.b),S.LFG(Me.R),S.LFG(B.L6))};static#t=this.\u0275prov=S.Yz7({token:ce,factory:ce.\u0275fac})}return ce})()},4409:(Pe,V,a)=>{"use strict";a.d(V,{j:()=>P});var t=a(5619),d=a(7398),w=a(4664),L=a(7081),p=a(1342),O=a(5879),R=a(7909),F=a(1523);let P=(()=>{class B{constructor(f,j){this.profileService=f,this.route=j,this.currentDossier$=new t.X("addresses"),this.studentId$=this.route.paramMap.pipe((0,d.U)(S=>Number(S.get("id")))),this.profile$=this.studentId$.pipe((0,w.w)(S=>this.profileService.getProfile(S)),(0,L.d)(1)),this.returnParams$=this.route.queryParams.pipe((0,d.U)(({returnparams:S})=>S)),this.backlinkQueryParams$=this.returnParams$.pipe((0,d.U)(p.dD)),this.loading$=this.profileService.loading$}static#e=this.\u0275fac=function(j){return new(j||B)(O.LFG(R.J),O.LFG(F.gz))};static#t=this.\u0275prov=O.Yz7({token:B,factory:B.\u0275fac})}return B})()},5001:(Pe,V,a)=>{"use strict";a.d(V,{R:()=>F});var t=a(4664),d=a(7081),w=a(275),L=a(4141),p=a(8470),O=a(5879),R=a(9862);let F=(()=>{class P{constructor($,f){this.http=$,this.settings=f}getAbsenceConfirmationStates(){return this.http.get(`${this.baseUrl}/AbsenceConfirmationStates`).pipe((0,t.w)((0,w.Y0)(p.b)),(0,d.d)(1))}getStayPermits(){return this.http.get(`${this.baseUrl}/StayPermits`).pipe((0,t.w)((0,w.Y0)(p.b)),(0,d.d)(1))}get baseUrl(){return`${this.settings.apiUrl}/DropDownItems`}static#e=this.\u0275fac=function(f){return new(f||P)(O.LFG(R.eN),O.LFG(L.L6))};static#t=this.\u0275prov=O.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})()},1760:(Pe,V,a)=>{"use strict";a.d(V,{R:()=>S});var t=a(2096),d=a(4664),w=a(9315),L=a(7081),p=a(4141),O=a(754),R=a(8121);const F=O.dt({Id:O.pk,IdGradingScale:O.pk,Designation:O.Z_,Value:O.pk,Sufficient:O.O7,Sort:O.Z_,IdObject:O.pk,HRef:(0,R.Wx)(O.Z_)}),P=O.dt({Id:O.pk,Designation:O.Z_,MinGrade:(0,R.Wx)(O.pk),MaxGrade:(0,R.Wx)(O.pk),CommentsAllowed:O.O7,LowestSufficientGrade:O.pk,RisingGrades:O.O7,Grades:O.IX(F),IdObject:O.pk,FreeGrading:O.O7,HRef:O.Z_});var B=a(275),$=a(8366),f=a(5879),j=a(9862);let S=(()=>{class q extends $.v{constructor(k,Te){super(k,Te,P,"GradingScales")}getGradingScale(k){return null===k?(0,t.of)(null):this.http.get(`${this.baseUrl}/${k}`).pipe((0,d.w)((0,B.Jx)(P)))}loadGradingScales(k){return k.pipe((0,d.w)(Te=>(0,w.D)(Te.map(Me=>this.getGradingScale(Me)))),(0,L.d)(1))}static#e=this.\u0275fac=function(Te){return new(Te||q)(f.LFG(j.eN),f.LFG(p.L6))};static#t=this.\u0275prov=f.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"})}return q})()},8299:(Pe,V,a)=>{"use strict";a.d(V,{D:()=>O});var t=a(5879),d=a(9515),w=a(8173);const L=["de-CH","fr-CH"],p=L[0];let O=(()=>{class R{constructor(P,B){this.translate=P,this.storage=B}initialize(){this.translate.setDefaultLang(p),this.translate.use(this.detectLanguage())}detectLanguage(){return this.detectedLanguage||(this.detectedLanguage=this.getDocumentLanguage()||this.getStoredLanguage()||this.getBrowserLanguage()||p),this.detectedLanguage}getLocalizedLanguage(P){return(P=L.find(B=>B===`${(P||"").toLowerCase()}-CH`))||p}getDocumentLanguage(){const P=document.querySelector("[lang]");return this.normalizeLanguage(P&&P.lang)}getStoredLanguage(){return this.normalizeLanguage(this.storage.getLanguage())}getBrowserLanguage(){return this.normalizeLanguage(this.translate.getBrowserLang())}normalizeLanguage(P){return(P=(P||"").split("-")[0])&&L.find(B=>P===B.split("-")[0])||null}static#e=this.\u0275fac=function(B){return new(B||R)(t.LFG(d.sK),t.LFG(w.V))};static#t=this.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"})}return R})()},7575:(Pe,V,a)=>{"use strict";a.d(V,{q:()=>vt});var t=a(9862),d=a(5301),w=a(3166),L=a(4307),p=a(8584),O=a(754),R=a(2096),F=a(9315),P=a(4664),B=a(7398),$=a(7727),f=a(4141),j=a(8121);const S=O.dt({StudentRef:j.s3,StudentFullName:O.Z_,TotalAbsences:O.pk,TotalAbsencesUnconfirmed:O.pk,TotalAbsencesValidExcuse:O.pk,TotalAbsencesWithoutExcuse:O.pk,TotalAbsencesUnchecked:O.pk,TotalDispensations:O.pk,TotalHalfDays:O.pk,TotalIncidents:O.pk}),q=O.dt({Id:O.Z_,LessonRef:j.s3,StudentRef:j.s3,EventRef:j.s3,TypeRef:j.$f,RegistrationRef:j.$f,StudyClassRef:j.$f,ConfirmationStateId:(0,j.Wx)(O.pk),EventDesignation:O.Z_,HasStudyCourseConfirmationCode:O.O7,LessonDateTimeFrom:j.L9,LessonDateTimeTo:j.L9,Comment:(0,j.Wx)(O.Z_),Date:(0,j.Wx)(j.jJ),Type:(0,j.Wx)(O.Z_),StudentFullName:O.Z_,StudyClassNumber:O.Z_,TeacherInformation:O.Z_}),ie=O.dt({LessonRef:j.s3,EventRef:j.s3,EventDesignation:O.Z_,StudyClassNumber:O.Z_,TeacherInformation:O.Z_,LessonDateTimeFrom:j.L9,LessonDateTimeTo:j.L9});var k=a(275),Te=a(1389);function Me(qe){return _t=>_t.pipe((0,P.w)($e=>{const Ee=Number($e.headers.get("X-Pagination-Offset")),ze=Number($e.headers.get("X-Pagination-Total"));return(0,k.Y0)(qe)($e.body).pipe((0,B.U)(J=>({offset:Ee,total:ze,entries:J})))}))}function ye(qe,_t,$e=new t.LE){return $e.set("offset",String(qe)).set("limit",String(_t))}function ce(qe=new t.WM){return qe.set("X-Pagination-Total","on")}var _e=a(7470),ve=a(8366),xe=a(6031),be=a(5879),ke=a(8173);let vt=(()=>{class qe extends ve.v{constructor($e,Ee,ze){super($e,Ee,q,"LessonPresences"),this.storage=ze,this.lessonPresenceRefCodec=O.dt((0,_e.e)(this.codec.props,["LessonRef","RegistrationRef","StudentRef","EventRef","StudyClassRef","TypeRef"])),this.lessonPresenceIdCodec=O.dt((0,_e.e)(this.codec.props,["Id"]))}getLessonsByDate($e){const Ee={fields:Object.keys(ie.props).join(","),"filter.LessonDateTimeFrom":`=${(0,d.Z)($e,"yyyy-MM-dd")}`,sort:"LessonDateTimeFrom"};return this.http.get(`${this.baseUrl}/`,{params:Ee,headers:{"X-Role-Restriction":"LessonTeacherRole"}}).pipe((0,P.w)((0,k.Y0)(ie)))}getListByLessons($e){if(0===$e.length)return(0,R.of)([]);const ze={"filter.LessonRef":`;${$e.map(J=>J.LessonRef.Id).join(";")}`};return this.getList({params:ze,headers:{"X-Role-Restriction":"LessonTeacherRole"}})}getListByDateStudentClass($e,Ee,ze){const J={"filter.LessonDateTimeFrom":`=${(0,d.Z)($e,"yyyy-MM-dd")}`,"filter.StudentRef":`=${Ee}`};return null!=ze&&(J["filter.StudyClassRef"]=`=${ze}`),this.getList({params:J,headers:{"X-Role-Restriction":"LessonTeacherRole"}})}getListForToday(){return this.http.get(`${this.baseUrl}/Today`,{headers:{"X-Role-Restriction":"LessonTeacherRole"}}).pipe((0,P.w)((0,k.Y0)(this.codec)))}getListOfUnconfirmed($e){return(0,xe.n)(this.storage.getPayload()?.roles,"ClassTeacherRole")?(0,F.D)([this.getListOfUnconfirmedClassTeacher($e),this.getListOfUnconfirmedLessonTeacher($e)]).pipe((0,B.U)((0,Te.h)($.HM))):(0,xe.n)(this.storage.getPayload()?.roles,"LessonTeacherRole")?this.getListOfUnconfirmedLessonTeacher($e):(0,xe.n)(this.storage.getPayload()?.roles,"AbsenceAdministratorRole")?this.getListOfUnconfirmedAbsenceAdministrator($e):(0,R.of)([])}getStatistics($e,Ee,ze){let J=it([[$e.student,"StudentRef"],[$e.educationalEvent,"EventRef"],[$e.studyClass,"StudyClassRef"]]);return J=function St(qe,_t=new t.LE){return qe?_t.set("sort",`${qe.key}.${qe.ascending?"asc":"desc"}`):_t}(Ee,J),J=ye(ze,this.settings.paginationLimit,J),this.http.get(`${this.baseUrl}/Statistics`,{params:J,headers:ce(),observe:"response"}).pipe(Me(S))}getLessonRefs($e){let Ee=it([[$e.student,"StudentRef"],[$e.educationalEvent,"EventRef"],[$e.studyClass,"StudyClassRef"]]);return Ee=Ee.set("filter.TypeRef",">0"),Ee=Ee.set("fields",["LessonRef","RegistrationRef","StudentRef","EventRef","StudyClassRef","TypeRef"].join(",")),this.http.get(`${this.baseUrl}/`,{params:Ee}).pipe((0,P.w)((0,k.Y0)(this.lessonPresenceRefCodec)))}getRegistrationRefsByEventIds($e){let Ee=new t.LE;return Ee.set("filter.EventRef",`;${$e.join(";")}`),Ee=Ee.set("fields",["LessonRef","RegistrationRef","StudentRef","EventRef","StudyClassRef","TypeRef"].join(",")),this.http.get(`${this.baseUrl}/`,{params:Ee}).pipe((0,P.w)((0,k.Y0)(this.lessonPresenceRefCodec)))}getFilteredList($e,Ee,ze){let J=it([[$e.student,"StudentRef"],[$e.educationalEvent,"EventRef"],[$e.studyClass,"StudyClassRef"]],new t.LE({fromObject:ze}));return $e.teacher&&(J=J.set("filter.TeacherInformation",`~*${$e.teacher}*`)),$e.dateFrom&&$e.dateTo&&(0,w.Z)($e.dateFrom,$e.dateTo)?J=J.set("filter.LessonDateTimeFrom",`=${(0,d.Z)($e.dateFrom,"yyyy-MM-dd")}`):($e.dateFrom&&(J=J.set("filter.LessonDateTimeFrom",`>${(0,d.Z)((0,L.Z)($e.dateFrom,1),"yyyy-MM-dd")}`)),$e.dateTo&&(J=J.set("filter.LessonDateTimeTo",`<${(0,d.Z)((0,p.Z)($e.dateTo,1),"yyyy-MM-dd")}`))),$e.confirmationStates&&(J=J.set("filter.ConfirmationStateId",`;${$e.confirmationStates.join(";")}`)),$e.incidentTypes&&(J=J.set("filter.TypeRef",`;${$e.incidentTypes.join(";")}`)),$e.presenceTypes&&(J=J.set("filter.TypeRef",`;${$e.presenceTypes.join(";")}`)),$e.incidentTypes&&$e.presenceTypes&&(J=J.set("filter.TypeRef",`;${$e.presenceTypes.join(";")};${$e.incidentTypes.join(";")}`)),this.http.get(`${this.baseUrl}/`,{params:ye(Ee,this.settings.paginationLimit,J),headers:ce(),observe:"response"}).pipe(Me(q))}hasLessonsLessonTeacher(){const $e=(new t.LE).set("fields","Id");return this.http.get(`${this.baseUrl}/`,{params:ye(0,1,$e),headers:{"X-Role-Restriction":"LessonTeacherRole"}}).pipe((0,P.w)((0,k.Y0)(this.lessonPresenceIdCodec)),(0,B.U)(Ee=>Ee.length>0))}checkableAbsencesCount(){return this.http.get(`${this.baseUrl}/`,{headers:{"X-Role-Restriction":"LessonTeacherRole"},params:{"filter.ConfirmationStateId":`;${this.settings.checkableAbsenceStateId}`,fields:"Id,ConfirmationStateId"}}).pipe((0,P.w)((0,k.Y0)(this.lessonPresenceIdCodec)),(0,B.U)($e=>$e.length))}getListOfUnconfirmedLessonTeacher($e){return this.getList({headers:{"X-Role-Restriction":"LessonTeacherRole"},params:{...$e,"filter.ConfirmationStateId":`=${this.settings.unconfirmedAbsenceStateId}`,"filter.HasStudyCourseConfirmationCode":"=false"}})}getListOfUnconfirmedClassTeacher($e){return this.getList({headers:{"X-Role-Restriction":"ClassTeacherRole"},params:{...$e,"filter.ConfirmationStateId":`=${this.settings.unconfirmedAbsenceStateId}`,"filter.HasStudyCourseConfirmationCode":"=true"}})}getListOfUnconfirmedAbsenceAdministrator($e){return this.getList({headers:{"X-Role-Restriction":"AbsenceAdministratorRole"},params:{...$e,"filter.ConfirmationStateId":`=${this.settings.unconfirmedAbsenceStateId}`}})}static#e=this.\u0275fac=function(Ee){return new(Ee||qe)(be.LFG(t.eN),be.LFG(f.L6),be.LFG(ke.V))};static#t=this.\u0275prov=be.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();function it(qe,_t=new t.LE){return qe.reduce(($e,[Ee,ze])=>Ee&&ze?$e.set(`filter.${ze}`,`=${Ee}`):$e,_t)}},6023:(Pe,V,a)=>{"use strict";a.d(V,{O:()=>p});var t=a(7398),d=a(4141),w=a(5879),L=a(9862);let p=(()=>{class O{constructor(F,P){this.http=F,this.settings=P}editLessonPresences(F,P,B,$,f){const j={LessonIds:F,PersonIds:P};return void 0!==B&&(j.PresenceTypeId=B),void 0!==$&&(j.ConfirmationValue=$),this.http.put(`${this.settings.apiUrl}/LessonPresences/Edit`,j,{params:f}).pipe((0,t.U)(()=>{}))}removeLessonPresences(F,P,B){return this.http.put(`${this.settings.apiUrl}/LessonPresences/Reset`,{LessonIds:F,PersonIds:P,WithComment:!0},{params:B}).pipe((0,t.U)(()=>{}))}confirmLessonPresences(F,P,B,$){return this.http.put(`${this.settings.apiUrl}/LessonAbsences/Confirm`,{LessonIds:F,PersonIds:P,AbsenceTypeId:B,ConfirmationValue:$}).pipe((0,t.U)(()=>{}))}static#e=this.\u0275fac=function(P){return new(P||O)(w.LFG(L.eN),w.LFG(d.L6))};static#t=this.\u0275prov=w.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"})}return O})()},3005:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>f});var t=a(8645),d=a(7),w=a(7328),L=a(6699),p=a(7921),O=a(7398),R=a(3997),F=a(4716),P=a(7105),B=a(5879);const $="default";let f=(()=>{class S{constructor(){this.action$=new t.x,this.loadingCounts$=(0,d.b)(this.action$.pipe((0,L.R)((ie,{action:k,context:Te})=>{switch(k){case"increment":return ie[Te]=(ie[Te]||0)+1,ie;case"decrement":return ie[Te]=Math.max(0,(ie[Te]||0)-1),ie;default:return ie}},{}),(0,p.O)({})),{connector:()=>new w.t(1)}),this.loading$=this.loading(),this.loadingCountsSub=this.loadingCounts$.connect()}ngOnDestroy(){this.loadingCountsSub.unsubscribe()}loading(ie=$){return this.loadingCounts$.pipe((0,O.U)(k=>k[ie]),(0,O.U)(j),(0,R.x)())}load(ie,k=$){return ie.pipe((0,P.Pl)(this.incrementLoadingCount(k)),(0,F.x)(this.decrementLoadingCount(k)))}incrementLoadingCount(ie){return()=>this.action$.next({action:"increment",context:ie})}decrementLoadingCount(ie){return()=>this.action$.next({action:"decrement",context:ie})}static#e=this.\u0275fac=function(k){return new(k||S)};static#t=this.\u0275prov=B.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})();function j(S){return 0!==(S||0)}},5258:(Pe,V,a)=>{"use strict";a.d(V,{J:()=>f});var t=a(4664),d=a(7398),w=a(8366),L=a(4141),p=a(754),O=a(8121);const R=p.dt({Id:p.pk,FormOfAddress:p.Z_,Nationality:(0,O.Wx)(p.Z_),AddressLine1:(0,O.Wx)(p.Z_),AddressLine2:(0,O.Wx)(p.Z_),BillingAddress:(0,O.Wx)(p.Z_),Birthdate:(0,O.Wx)(O.L9),CorrespondenceAddress:(0,O.Wx)(p.Z_),DisplayEmail:(0,O.Wx)(p.Z_),Email:(0,O.wS)(p.Z_),Email2:(0,O.wS)(p.Z_),FirstName:(0,O.Wx)(p.Z_),Gender:(0,O.Wx)(p.G0([p.i0("M"),p.i0("F"),p.i0("X")])),HomeTown:(0,O.Wx)(p.Z_),LastName:(0,O.Wx)(p.Z_),FullName:(0,O.Wx)(p.Z_),Location:(0,O.Wx)(p.Z_),MiddleName:(0,O.Wx)(p.Z_),NativeLanguage:(0,O.Wx)(p.Z_),PhoneMobile:(0,O.Wx)(p.Z_),PhonePrivate:(0,O.Wx)(p.Z_),PhoneBusiness:(0,O.wS)(p.Z_),SocialSecurityNumber:(0,O.Wx)(p.Z_),StayPermit:(0,O.Wx)(p.pk),StayPermitExpiry:(0,O.Wx)(O.L9),Zip:(0,O.Wx)(p.Z_)});var F=a(275),P=a(7470),B=a(5879),$=a(9862);let f=(()=>{class j extends w.v{constructor(q,ie){super(q,ie,R,"Persons"),this.personEmailCodec=p.dt((0,P.e)(this.codec.props,["Email","FormOfAddress"]))}getListForIds(q){return this.getList({params:{"filter.Id":`;${q.join(";")}`}})}getMyself(){return this.http.get(`${this.baseUrl}/me`).pipe((0,t.w)((0,F.Jx)(this.codec)))}getByIdWithEmailInfos(q){return this.http.get(`${this.baseUrl}/`,{params:{"filter.Id=":q.toString(),fields:["FormOfAddress","Email"].join(",")}}).pipe((0,t.w)((0,F.Y0)(this.personEmailCodec)),(0,d.U)(ie=>ie[0]))}update(q,ie,k,Te){return this.http.put(`${this.baseUrl}/${q}`,{PhonePrivate:ie,PhoneMobile:k,Email2:Te}).pipe((0,d.U)(()=>{}))}static#e=this.\u0275fac=function(ie){return new(ie||j)(B.LFG($.eN),B.LFG(L.L6))};static#t=this.\u0275prov=B.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"})}return j})()},905:(Pe,V,a)=>{"use strict";a.d(V,{c:()=>S});var t=a(7081),d=a(7398),w=a(7921),L=a(3997),p=a(4141),O=a(7749),R=a(5879),F=a(8366),P=a(754),B=a(8121);const $=P.dt({Id:P.pk,Active:P.O7,Designation:(0,B.Wx)(P.Z_),IsAbsence:P.O7,IsComment:P.O7,IsDispensation:P.O7,IsIncident:P.O7,IsHalfDay:P.O7,NeedsConfirmation:P.O7,Sort:P.pk});var f=a(9862);let j=(()=>{class q extends F.v{constructor(k,Te){super(k,Te,$,"PresenceTypes")}static#e=this.\u0275fac=function(Te){return new(Te||q)(R.LFG(f.eN),R.LFG(p.L6))};static#t=this.\u0275prov=R.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"})}return q})(),S=(()=>{class q{constructor(k,Te){this.restService=k,this.settings=Te,this.presenceTypes$=this.loadPresenceTypes().pipe((0,t.d)(1)),this.activePresenceTypes$=this.presenceTypes$.pipe((0,d.U)(this.filterActiveTypes.bind(this)),(0,t.d)(1)),this.confirmationTypes$=this.presenceTypes$.pipe((0,d.U)(this.filterConfirmationTypes.bind(this)),(0,t.d)(1)),this.incidentTypes$=this.presenceTypes$.pipe((0,d.U)(this.filterIncidentTypes.bind(this)),(0,t.d)(1)),this.displayedTypes$=this.presenceTypes$.pipe((0,d.U)(this.filterDisplayedTypes.bind(this)),(0,t.d)(1)),this.halfDayActive$=this.presenceTypes$.pipe((0,d.U)(this.isHalfDayActive.bind(this)),(0,w.O)(!1),(0,L.x)(),(0,t.d)(1))}getPresenceType(k){return this.presenceTypes$.pipe((0,d.U)(Te=>{const Me=Te.find(ye=>ye.Id===k);if(!Me)throw new Error("presence type not found");return Me}))}loadPresenceTypes(){return this.restService.getList().pipe((0,d.U)(O.KV))}filterActiveTypes(k){return k.filter(Te=>Te.Active)}filterConfirmationTypes(k){return k.filter(Te=>Te.NeedsConfirmation&&Te.Active&&Te.Id!==this.settings.absencePresenceTypeId)}filterIncidentTypes(k){return k.filter(Te=>Te.IsIncident&&Te.Active)}filterDisplayedTypes(k){return k.filter(Te=>Te.Id!==this.settings.absencePresenceTypeId)}isHalfDayActive(k){return!!k.find(Te=>Te.Id===this.settings.halfDayPresenceTypeId)?.Active}static#e=this.\u0275fac=function(Te){return new(Te||q)(R.LFG(j),R.LFG(p.L6))};static#t=this.\u0275prov=R.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"})}return q})()},6016:(Pe,V,a)=>{"use strict";a.d(V,{F:()=>ie});var t=a(8645),d=a(7),w=a(7328),L=a(7081),p=a(7398),O=a(7921),R=a(3997),F=a(2181),P=a(4664),B=a(4141),$=a(3942),f=a(5879),j=a(8173),S=a(3219),q=a(9862);let ie=(()=>{class k{constructor(Me,ye,ce,_e){this.settings=Me,this.storageService=ye,this.subscriptionService=ce,this.http=_e,this.studentConfirmationAvailabilityRecordIds$=new t.x,this.personMasterDataAvailability$=this.loadReportAvailability("Person",this.settings.personMasterDataReportId,[Number(this.storageService.getPayload()?.id_person)]).pipe((0,L.d)(1)),this.studentConfirmationAvailability$=this.loadReportAvailabilityByAsyncRecordIds("Praesenzinformation",this.settings.studentConfirmationReportId,this.studentConfirmationAvailabilityRecordIds$),this.studentConfirmationAvailabilitySub=this.studentConfirmationAvailability$.connect()}ngOnDestroy(){this.studentConfirmationAvailabilitySub.unsubscribe()}getPersonMasterDataUrl(Me){return this.getReportUrl("Person",this.settings.personMasterDataReportId,[Me])}getStudentConfirmationUrl(Me){return this.getReportUrl("Praesenzinformation",this.settings.studentConfirmationReportId,Me)}getEvaluateAbsencesUrl(Me){return this.getReportUrl("Praesenzinformation",this.settings.evaluateAbsencesReportId,Me)}getEventReportUrl(Me){return this.getReportUrl("Anlass",this.settings.testsByCourseReportId,[Me])}getSubscriptionReportUrl(Me,ye){return`${this.settings.apiUrl}/Files/CrystalReports/Anmeldung/${Me}?ids=${ye}&token=${this.storageService.getAccessToken()}`}setStudentConfirmationAvailabilityRecordIds(Me){this.studentConfirmationAvailabilityRecordIds$.next(Me)}getReportUrl(Me,ye,ce){return`${this.settings.apiUrl}/Files/CrystalReports/${Me}/${ye}?ids=${ce.join(",")}&token=${this.storageService.getAccessToken()}`}loadReportAvailability(Me,ye,ce){return this.http.get(`${this.settings.apiUrl}/CrystalReports/AvailableReports/${Me}?ids=${ye}&keys=${ce.join(",")}`).pipe((0,p.U)($.Nf),(0,O.O)(!1),(0,R.x)())}loadReportAvailabilityByAsyncRecordIds(Me,ye,ce){return(0,d.b)(ce.pipe((0,F.h)((_e,ve)=>0===ve),(0,P.w)(_e=>this.loadReportAvailability(Me,ye,_e))),{connector:()=>new w.t(1)})}static#e=this.\u0275fac=function(ye){return new(ye||k)(f.LFG(B.L6),f.LFG(j.V),f.LFG(S.o),f.LFG(q.eN))};static#t=this.\u0275prov=f.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})()},8366:(Pe,V,a)=>{"use strict";a.d(V,{v:()=>w});var t=a(4664),d=a(275);class w{constructor(p,O,R,F){this.http=p,this.settings=O,this.codec=R,this.resourcePath=F}get(p,O){return this.http.get(`${this.baseUrl}/${p}`,O).pipe((0,t.w)((0,d.Jx)(this.codec)))}getList(p){return this.http.get(`${this.baseUrl}/`,p).pipe((0,t.w)((0,d.Y0)(this.codec)))}get baseUrl(){return`${this.settings.apiUrl}/${this.resourcePath}`}}},6561:(Pe,V,a)=>{"use strict";a.d(V,{z:()=>B});var t=a(8645),d=a(7),w=a(7328),L=a(6699),p=a(7921),O=a(7398),R=a(3997),F=a(5879),P=function($){return $.ToggleSelection="TOGGLE",$.ClearSelection="CLEAR",$}(P||{});let B=(()=>{class ${constructor(){this.action$=new t.x,this.selection$=(0,d.b)(this.action$.pipe((0,L.R)(this.reduceSelection.bind(this),[]),(0,p.O)([])),{connector:()=>new w.t(1)}),this.selectionSub=this.selection$.connect()}ngOnDestroy(){this.selectionSub.unsubscribe()}toggle(j){this.action$.next({type:P.ToggleSelection,payload:j})}clear(j=null){this.action$.next({type:P.ClearSelection,payload:j})}isSelected$(j){return this.selection$.pipe((0,O.U)(S=>S.includes(j)),(0,R.x)())}reduceSelection(j,S){switch(S.type){case P.ToggleSelection:return j.includes(S.payload)?j.filter(q=>q!==S.payload):[...j,S.payload];case P.ClearSelection:return S.payload||[];default:return j}}static#e=this.\u0275fac=function(S){return new(S||$)};static#t=this.\u0275prov=F.Yz7({token:$,factory:$.\u0275fac})}return $})()},8173:(Pe,V,a)=>{"use strict";a.d(V,{V:()=>O});var t=a(5879);let O=(()=>{class R{getLanguage(){return this.getValue("uiCulture")}getAccessToken(){const P=this.getValue("CLX.LoginToken");return P?P.replace(/^"+|"+$/g,""):null}getRefreshToken(){return this.getValue("CLX.RefreshToken")}getTokenExpire(){return this.getValue("CLX.TokenExpire")}getPayload(){const P=this.getAccessToken(),B=P?P.split(".")[1]:null,$=B?B.replace("-","+").replace("_","/"):null,f=JSON.parse(window.atob($||""));return f.roles="holder_roles"in f?f.holder_roles:f.roles,f}getValue(P){return sessionStorage.getItem(P)||localStorage.getItem(P)}static#e=this.\u0275fac=function(B){return new(B||R)};static#t=this.\u0275prov=t.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"})}return R})()},7909:(Pe,V,a)=>{"use strict";a.d(V,{J:()=>_t});var t=a(2572),d=a(2096),w=a(4664),L=a(2181),p=a(7398),O=a(2769),R=a(1389),F=a(7105),P=a(3942),B=a(581),$=a(2816);function j($e,Ee){(0,$.Z)(2,arguments);var ze=(0,B.Z)($e),J=(0,B.Z)(Ee),Q=ze.getTime()-J.getTime();return Q<0?-1:Q>0?1:Q}var k=a(5879),Te=a(3779),Me=a(5258),ye=a(4141),ce=a(754),_e=a(8121);const ve=ce.dt({Email:(0,_e.Wx)(ce.Z_),Email2:(0,_e.Wx)(ce.Z_),PhoneBusiness:(0,_e.Wx)(ce.Z_),CompanyName:(0,_e.wS)(ce.Z_),CompanyNameAddition:(0,_e.wS)(ce.Z_),Firstname:(0,_e.Wx)(ce.Z_),Lastname:(0,_e.Wx)(ce.Z_),AddressLine1:(0,_e.wS)(ce.Z_),AddressLine2:(0,_e.wS)(ce.Z_),PostalCode:(0,_e.Wx)(ce.Z_),Location:(0,_e.Wx)(ce.Z_),Id:ce.pk});var xe=a(8366),be=a(9862);let ke=(()=>{class $e extends xe.v{constructor(ze,J){super(ze,J,ve,"ApprenticeshipManagers")}static#e=this.\u0275fac=function(J){return new(J||$e)(k.LFG(be.eN),k.LFG(ye.L6))};static#t=this.\u0275prov=k.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"})}return $e})();const vt=ce.dt({Email:(0,_e.Wx)(ce.Z_),Email2:(0,_e.Wx)(ce.Z_),PhoneBusiness:(0,_e.Wx)(ce.Z_),PhoneMobile:(0,_e.Wx)(ce.Z_),Firstname:(0,_e.Wx)(ce.Z_),Lastname:(0,_e.Wx)(ce.Z_),Id:ce.pk});let it=(()=>{class $e extends xe.v{constructor(ze,J){super(ze,J,vt,"JobTrainers")}static#e=this.\u0275fac=function(J){return new(J||$e)(k.LFG(be.eN),k.LFG(ye.L6))};static#t=this.\u0275prov=k.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"})}return $e})();var St=a(3005),qe=a(5001);let _t=(()=>{class $e{constructor(ze,J,Q,oe,se,ae){this.studentService=ze,this.personsService=J,this.apprenticeshipManagersService=Q,this.jobTrainersService=oe,this.loadingService=se,this.dropDownItemsService=ae,this.loading$=this.loadingService.loading$}getProfile(ze){return this.loadingService.load((0,t.a)([this.loadStudent(ze),this.loadLegalRepresentatives(ze),this.loadApprenticeshipContracts(ze)]).pipe((0,w.w)((0,R.h)(this.mapToProfile.bind(this)))))}getMyProfile(){return this.loadingService.load(this.personsService.getMyself().pipe((0,w.w)(ze=>(0,t.a)([(0,d.of)(ze),this.loadLegalRepresentatives(ze.Id),this.loadApprenticeshipContracts(ze.Id),this.loadStayPermitValue(ze.StayPermit)]))).pipe((0,w.w)((0,R.h)(this.mapToProfile.bind(this))),(0,L.h)(P.Nf)))}loadStudent(ze){return this.studentService.get(ze,{params:(0,O.I)({disableErrorHandlingForStatus:[404]})}).pipe((0,F.Qx)())}loadLegalRepresentatives(ze){return this.studentService.getLegalRepresentatives(ze)}loadApprenticeshipContracts(ze){return this.studentService.getCurrentApprenticeshipContracts(ze,(0,O.I)({disableErrorHandlingForStatus:[404]})).pipe((0,F.Qx)([]))}loadStayPermitValue(ze){return this.dropDownItemsService.getStayPermits().pipe((0,p.U)(J=>J.find(Q=>Q.Key===ze)?.Value||null))}mapToProfile(ze,J,Q,oe=null){return ze?(J=this.getRelevantLegalRepresentatives(ze,J),(0,t.a)([this.loadLegalRepresentativPersons(J),this.loadJobTrainers(Q),this.loadApprenticeshipManagers(Q)]).pipe((0,p.U)(([se,ae,fe])=>this.createProfile(ze,oe,J,se,Q,fe,ae)))):(0,d.of)(null)}loadLegalRepresentativPersons(ze){return 0===ze.length?(0,d.of)([]):this.personsService.getListForIds(ze.map(J=>J.RepresentativeId))}loadJobTrainers(ze){const J=ze.map(Q=>Q.JobTrainer).filter(Q=>"number"==typeof Q);return 0===J.length?(0,d.of)([]):(0,t.a)(J.map(Q=>this.jobTrainersService.get(Q)))}loadApprenticeshipManagers(ze){const J=ze.map(Q=>Q.ApprenticeshipManagerId);return 0===J.length?(0,d.of)([]):(0,t.a)(J.map(Q=>this.apprenticeshipManagersService.get(Q)))}createProfile(ze,J,Q,oe,se,ae,fe){return{student:ze,stayPermitValue:J||void 0,legalRepresentativePersons:Q.map(je=>this.findPerson(je.RepresentativeId,oe)).filter(P.Nf),apprenticeshipCompanies:se.map(je=>this.createApprenticeshipCompany(je,ae,fe))}}getRelevantLegalRepresentatives(ze,J){const Q=function ie($e){return function S($e,Ee){(0,$.Z)(2,arguments);var ze=(0,B.Z)($e),J=(0,B.Z)(Ee),Q=j(ze,J),oe=Math.abs(function f($e,Ee){(0,$.Z)(2,arguments);var ze=(0,B.Z)($e),J=(0,B.Z)(Ee);return ze.getFullYear()-J.getFullYear()}(ze,J));ze.setFullYear(1584),J.setFullYear(1584);var se=j(ze,J)===-Q,ae=Q*(oe-Number(se));return 0===ae?0:ae}(new Date,$e.Birthdate||new Date)>=18}(ze);return J.filter(oe=>!Q||oe.RepresentativeAfterMajority)}createApprenticeshipCompany(ze,J,Q){return{apprenticeshipContract:ze,jobTrainer:this.findPerson(ze.JobTrainer,Q),apprenticeshipManager:this.findPerson(ze.ApprenticeshipManagerId,J)}}findPerson(ze,J){return ze&&J.find(Q=>Q.Id===ze)||null}static#e=this.\u0275fac=function(J){return new(J||$e)(k.LFG(Te.l),k.LFG(Me.J),k.LFG(ke),k.LFG(it),k.LFG(St.b),k.LFG(qe.R))};static#t=this.\u0275prov=k.Yz7({token:$e,factory:$e.\u0275fac,providedIn:"root"})}return $e})()},3779:(Pe,V,a)=>{"use strict";a.d(V,{l:()=>ie});var t=a(9862),d=a(4664),w=a(4141),L=a(7346),p=a(275),O=a(4717),R=a(754);const F=R.dt({Id:R.pk,RepresentativeId:R.pk,RepresentativeAfterMajority:R.O7});var P=a(8121);const B=R.dt({Id:R.pk,JobTrainer:(0,P.Wx)(R.pk),ApprenticeshipManagerId:R.pk,ContractDateFrom:(0,P.Wx)(P.L9),ContractDateTo:(0,P.Wx)(P.L9)}),$=R.dt({Id:R.pk,From:P.L9,To:P.L9,EventId:R.pk,EventNumber:R.Z_,EventDesignation:R.Z_,EventLocation:(0,P.Wx)(R.Z_),EventManagerInformation:R.Z_});var f=a(8952);const j=R.dt({LessonRef:P.s3,StudentRef:P.s3,TypeRef:P.s3,Comment:(0,P.Wx)(R.Z_),StudentFullName:R.Z_,Type:(0,P.Wx)(R.Z_),RegistrationId:R.pk,HRef:R.Z_}),S=R.dt({Id:R.Z_,LessonRef:P.s3,StudentRef:P.s3,TypeRef:P.s3,Type:(0,P.Wx)(R.Z_),Comment:(0,P.Wx)(R.Z_),StudentFullName:R.Z_,HRef:R.Z_});var q=a(5879);let ie=(()=>{class k extends L.r{constructor(Me,ye){super(Me,ye,O.Z,"Students","FullName")}getLegalRepresentatives(Me,ye){return this.http.get(`${this.baseUrl}/${Me}/LegalRepresentatives`,{params:ye}).pipe((0,d.w)((0,p.Y0)(F)))}getCurrentApprenticeshipContracts(Me,ye){return this.http.get(`${this.baseUrl}/${Me}/ApprenticeshipContracts/Current`,{params:ye}).pipe((0,d.w)((0,p.Y0)(B)))}getLessonAbsences(Me,ye){return this.http.get(`${this.baseUrl}/${Me}/LessonAbsences`,{params:ye}).pipe((0,d.w)((0,p.Y0)(f.C)))}getLessonIncidents(Me,ye){return this.http.get(`${this.baseUrl}/${Me}/LessonIncidents`,{params:ye}).pipe((0,d.w)((0,p.Y0)(j)))}getLessonDispensations(Me,ye){return this.http.get(`${this.baseUrl}/${Me}/LessonDispensations`,{params:ye}).pipe((0,d.w)((0,p.Y0)(S)))}getTimetableEntries(Me,ye={}){return ye instanceof t.LE||(ye=new t.LE({fromObject:ye})),ye=ye.set("fields","Id,From,To,EventId,EventNumber,EventDesignation,EventLocation,EventManagerInformation"),this.http.get(`${this.baseUrl}/${Me}/TimetableEntries/CurrentSemester`,{params:ye}).pipe((0,d.w)((0,p.Y0)($)))}static#e=this.\u0275fac=function(ye){return new(ye||k)(q.LFG(t.eN),q.LFG(w.L6))};static#t=this.\u0275prov=q.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})()},3219:(Pe,V,a)=>{"use strict";a.d(V,{o:()=>F});var t=a(4664),d=a(4141),w=a(6514),L=a(275),p=a(8366),O=a(5879),R=a(9862);let F=(()=>{class P extends p.v{constructor($,f){super($,f,w.t,"Subscriptions")}getIdSubscriptionsByStudentAndCourse($,f){return this.http.get(`${this.settings.apiUrl}/Subscriptions/?filter.PersonId==${$}&filter.EventId=;${f}`).pipe((0,t.w)((0,L.Y0)(w.Y)))}static#e=this.\u0275fac=function(f){return new(f||P)(O.LFG(R.eN),O.LFG(d.L6))};static#t=this.\u0275prov=O.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})()},6869:(Pe,V,a)=>{"use strict";a.d(V,{k:()=>p});var t=a(8658),d=a(5619),w=a(8180),L=a(5879);let p=(()=>{class O{constructor(){this.toastsSubject=new d.X([]),this.toasts$=this.toastsSubject.asObservable()}success(F,P){this.addUnique({message:F,header:P,classname:"bg-success text-light",icon:"check_circle"})}warning(F,P){this.addUnique({message:F,header:P,classname:"bg-warning",icon:"help"})}error(F,P){this.addUnique({message:F,header:P,classname:"bg-danger text-light",icon:"cancel"})}remove(F){this.updateToasts(P=>P.filter(B=>!(0,t.Z)(B,F)))}addUnique(F){this.updateToasts(P=>{if(!this.exists(P,F))return[...P,F]})}exists(F,P){return!!F.find(B=>B.message===P.message&&B.header===P.header)}updateToasts(F){this.toasts$.pipe((0,w.q)(1)).subscribe(P=>{const B=F(P);B&&this.toastsSubject.next(B)})}static#e=this.\u0275fac=function(P){return new(P||O)};static#t=this.\u0275prov=L.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"})}return O})()},7346:(Pe,V,a)=>{"use strict";a.d(V,{r:()=>F});var t=a(4664),d=a(7398),w=a(754),L=a(7470),p=a(275),O=a(8366);class F extends O.v{constructor(B,$,f,j,S,q="Id"){super(B,$,f,j),this.labelAttr=S,this.keyAttr=q,this.typeaheadCodec=w.dt((0,L.e)(this.codec.props,[this.keyAttr,this.labelAttr]))}getTypeaheadItems(B,$){const f={params:{fields:[this.keyAttr,this.labelAttr].join(","),[`filter.${this.labelAttr}`]:`~*${B}*`}};return this.http.get(`${this.baseUrl}/`,$?this.mergeHttpParams(f,$):f).pipe((0,t.w)((0,p.Y0)(this.typeaheadCodec)),(0,d.U)(j=>j.map(S=>({Key:S[this.keyAttr],Value:S[this.labelAttr]}))))}getTypeaheadItemByKey(B){return this.http.get(`${this.baseUrl}/${B}`,{params:{fields:[this.keyAttr,this.labelAttr].join(",")}}).pipe((0,t.w)((0,p.Jx)(this.typeaheadCodec)),(0,d.U)($=>({Key:$[this.keyAttr],Value:$[this.labelAttr]})))}mergeHttpParams(B,$){const f={params:{...B.params,...$.params}};return $.params.fields&&(f.params.fields=B.params.fields.concat(",",$.params.fields)),f}}},7938:(Pe,V,a)=>{"use strict";a.d(V,{s:()=>_e});var t=a(8645),d=a(7921),w=a(3620),L=a(4664),p=a(7398),O=a(7081),R=a(9397),F=a(3786),P=a(275),B=a(7105),$=a(5879),f=a(8366),j=a(4141),S=a(9862);let q=(()=>{class ve extends f.v{constructor(be,ke){super(be,ke,F.PG,"UserSettings")}getUserSettingsCst(be){return this.http.get(`${this.baseUrl}/Cst`,{params:be}).pipe((0,L.w)((0,P.Jx)(this.codec)))}updateUserSettingsCst(be){return this.http.patch(`${this.baseUrl}/Cst`,be)}getAccessInfo(){return this.http.get(`${this.baseUrl}/?expand=AccessInfo`).pipe((0,L.w)((0,P.Jx)(F.Az)),(0,p.U)(({AccessInfo:be})=>be))}static#e=this.\u0275fac=function(ke){return new(ke||ve)($.LFG(S.eN),$.LFG(j.L6))};static#t=this.\u0275prov=$.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"})}return ve})();const k="presenceControlViewMode",Te="presenceControlGroupView",Me="notification",ye="notificationTypesInactive",ce="notificationData";let _e=(()=>{class ve{constructor(be){this.settingsRestService=be,this.refetch$=new t.x,this.settings$=this.refetch$.pipe((0,d.O)(null),(0,w.b)(100),(0,L.w)(()=>this.settingsRestService.getUserSettingsCst()),(0,p.U)(ke=>ke.Settings),(0,O.d)(1)),this.accessInfo$=this.settingsRestService.getAccessInfo().pipe((0,O.d)(1))}refetch(){this.refetch$.next()}getSetting(be){return this.settings$.pipe((0,p.U)(ke=>ke.find(vt=>vt.Key===be)?.Value??null))}saveSetting(be,ke){return this.settingsRestService.updateUserSettingsCst(this.buildSettings(be,ke)).pipe((0,R.b)(()=>this.refetch$.next()))}getPresenceControlViewMode(){return this.getSetting(k).pipe((0,B.LS)('{"presenceControl":"grid"}'),(0,L.w)((0,P.Jx)(F.iu)),(0,p.U)(({presenceControl:be})=>be))}savePresenceControlViewMode(be){return this.saveSetting(k,F.iu.encode({presenceControl:be}))}getPresenceControlGroupView(){return this.getSetting(Te).pipe((0,B.LS)("[]"),(0,L.w)((0,P.Jx)(F.Sx)))}savePresenceControlGroupView(be){return this.saveSetting(Te,F.Sx.encode(be))}getNotificationChannels(){return this.getSetting(Me).pipe((0,B.LS)("{}"),(0,L.w)((0,P.Jx)(F.b7)))}saveNotificationChannels(be){return this.saveSetting(Me,F.b7.encode(be))}getNotificationTypesInactive(){return this.getSetting(ye).pipe((0,B.LS)(""),(0,L.w)((0,P.Jx)(F.k_)))}saveNotificationTypesInactive(be){return this.saveSetting(ye,F.k_.encode(be))}getNotificationData(){return this.getSetting(ce).pipe((0,B.LS)("[]"),(0,L.w)((0,P.Jx)(F.zn)))}saveNotificationData(be){return this.saveSetting(ce,F.zn.encode(be))}getRolesAndPermissions(){return this.accessInfo$.pipe((0,p.U)(({Roles:be,Permissions:ke})=>[...be,...ke]),(0,d.O)(null))}buildSettings(be,ke){return{Id:"Cst",Settings:[{Key:be,Value:ke}]}}static#e=this.\u0275fac=function(ke){return new(ke||ve)($.LFG(q))};static#t=this.\u0275prov=$.Yz7({token:ve,factory:ve.\u0275fac,providedIn:"root"})}return ve})()},6486:(Pe,V,a)=>{"use strict";a.d(V,{m:()=>ji});var t=a(6814),d=a(9862),w=a(6223),L=a(1523),p=a(253),O=a(9515),P=(a(2628),a(59),a(6567)),B=a(6283),$=a(4141),f=a(5879),j=a(813);let S=(()=>{class ft{constructor(et,xt){this.auth=et,this.settings=xt}intercept(et,xt){if(et.url.startsWith(this.settings.apiUrl)&&this.auth.accessToken){const hn=et.headers.set("CLX-Authorization",`token_type=urn:ietf:params:oauth:token-type:jwt-bearer, access_token=${this.auth.accessToken}`);return xt.handle(et.clone({headers:hn}))}return xt.handle(et)}static#e=this.\u0275fac=function(xt){return new(xt||ft)(f.LFG(j.e),f.LFG($.L6))};static#t=this.\u0275prov=f.Yz7({token:ft,factory:ft.\u0275fac})}return ft})();var q=a(2769),ie=a(2394);const ye=function Me(ft,Pn,et){var xt=ft.length;return et=void 0===et?xt:et,!Pn&&et>=xt?ft:function k(ft,Pn,et){var xt=-1,hn=ft.length;Pn<0&&(Pn=-Pn>hn?0:hn+Pn),(et=et>hn?hn:et)<0&&(et+=hn),hn=Pn>et?0:et-Pn>>>0,Pn>>>=0;for(var Gr=Array(hn);++xt{class ft{constructor(et,xt){this.router=et,this.settings=xt}intercept(et,xt){if(!et.headers.has("X-Role-Restriction")&&this.settings.headerRoleRestriction){const hn=this.getCurrentModuleName();if(hn&&this.settings.headerRoleRestriction[hn]){const Gr=et.headers.set("X-Role-Restriction",this.settings.headerRoleRestriction[hn]);return xt.handle(et.clone({headers:Gr}))}}return xt.handle(et)}getCurrentModuleName(){const et=this.router.url?(0,Ae.D9)(this.router.url):null;return et?Oe(et):null}static#e=this.\u0275fac=function(xt){return new(xt||ft)(f.LFG(L.F0),f.LFG($.L6))};static#t=this.\u0275prov=f.Yz7({token:ft,factory:ft.\u0275fac})}return ft})();a(2015),a(1133);var _n=a(4229),ir=(a(9608),a(5582),a(8898)),Wi=(a(1442),a(9949),a(8075),a(3036),a(917),a(9753),a(238),a(6651)),jn=(a(4703),a(9410),a(500),a(6001),a(363));let vr=(()=>{class ft{constructor(et){this.translate=et}transform(et){return`${this.translate.instant("tests.factor")} ${et.Weight} (${et.WeightPercent}%)`}static#e=this.\u0275fac=function(xt){return new(xt||ft)(f.Y36(O.sK,16))};static#t=this.\u0275pipe=f.Yjl({name:"erzTestWeight",type:ft,pure:!0})}return ft})();var Mr=a(7483);let vi=(()=>{class ft{constructor(et){this.translate=et}transform(et,xt,hn="tests.points"){return et.IsPointGrading&&et.IsPublished?`${(0,Mr.W3)(xt,et)?.Points||"\u2013"} / ${et.MaxPointsAdjusted||et.MaxPoints} ${this.translate.instant(hn)}`:""}static#e=this.\u0275fac=function(xt){return new(xt||ft)(f.Y36(O.sK,16))};static#t=this.\u0275pipe=f.Yjl({name:"erzTestPoints",type:ft,pure:!0})}return ft})();a(9707),a(3388),a(8705);var ui=a(5619);function ys(ft,Pn,et){return Pn?Pn.Grade:function Bi(ft,Pn){return Pn?.Grades.find(et=>et.Id===ft?.GradeId)?.Designation}(ft,et)||ft?.GradeValue}let xr=(()=>{class ft{constructor(){}getGradeForStudent(){return ys(this.grading,this.finalGrade,this.gradingScale)}static#e=this.\u0275fac=function(xt){return new(xt||ft)};static#t=this.\u0275cmp=f.Xpm({type:ft,selectors:[["erz-dossier-grades-final-grade"]],inputs:{finalGrade:"finalGrade",grading:"grading",gradingScale:"gradingScale",average:"average"},features:[f._Bn([t.JJ])],decls:14,vars:11,consts:[[1,"final-entry"],["data-testid","final-grade"],["data-testid","average-test-results"]],template:function(xt,hn){1&xt&&(f.TgZ(0,"div",0)(1,"div"),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"div",1)(5,"span"),f._uU(6),f.qZA()(),f.TgZ(7,"div"),f._uU(8),f.ALo(9,"translate"),f.qZA(),f.TgZ(10,"div",2)(11,"span"),f._uU(12),f.ALo(13,"decimalOrDash"),f.qZA()()()),2&xt&&(f.xp6(2),f.Oqu(f.lcZ(3,4,"dossier.grade")),f.xp6(4),f.Oqu(hn.getGradeForStudent()||"\u2013"),f.xp6(2),f.Oqu(f.lcZ(9,6,"dossier.average")),f.xp6(4),f.Oqu(f.xi3(13,8,hn.average,"1-3")))},dependencies:[O.X$,Wi.fY],styles:[".final-entry[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:repeat(2,1fr)}span[_ngcontent-%COMP%]{margin-left:2em}"]})}return ft})();var Kt=a(7328),Mn=a(7398),hr=a(8645),$r=a(3620),bi=a(2181),Nr=a(9773),Ze=a(1074);const Ve=function(ft){return{maxPoints:ft}};function ct(ft,Pn){if(1&ft&&(f.TgZ(0,"div",15),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ft){const et=f.oxw(2);f.xp6(1),f.hij(" ",f.xi3(2,1,"global.validation-errors.invalidPoints",f.VKq(4,Ve,et.maxPoints))," ")}}function Yt(ft,Pn){if(1&ft){const et=f.EpF();f.TgZ(0,"div",10)(1,"label",11),f._uU(2),f.ALo(3,"translate"),f.qZA(),f.TgZ(4,"div",5)(5,"input",12,13),f.NdJ("input",function(){f.CHM(et);const hn=f.MAs(6),Gr=f.oxw();return f.KtG(Gr.onPointsChange(hn.value))}),f.qZA()(),f.YNc(7,ct,3,6,"div",14),f.qZA()}if(2&ft){const et=f.oxw();f.xp6(2),f.Oqu(f.lcZ(3,8,"dossier.dialog.points")),f.xp6(2),f.ekj("is-invalid",et.pointsInput.errors),f.xp6(1),f.ekj("is-invalid",et.pointsInput.errors),f.s9C("max",et.maxPoints),f.Q6J("formControl",et.pointsInput),f.xp6(2),f.Q6J("ngIf",et.pointsInput.errors)}}let gr=(()=>{class ft{constructor(et,xt){this.activeModal=et,this.courseService=xt,this.maxPoints=0,this.gradeSubject$=new hr.x,this.pointsSubject$=new hr.x,this.closeButtonDisabled$=new ui.X(!1),this.gradingScaleDisabled$=new ui.X(!0),this.grade$=this.gradeSubject$.pipe((0,$r.b)(500)),this.points$=this.pointsSubject$.pipe((0,$r.b)(500),(0,bi.h)(this.isValid.bind(this)),(0,Mn.U)(Number)),this.destroy$=new hr.x}ngOnInit(){this.maxPoints=(0,Mr.Re)(this.test),this.pointsInput=new w.p4({value:this.points,disabled:!1},[w.kI.min(0),w.kI.pattern("[0-9]+([\\.][0-9]+)?"),this.maxPointValidator()]),this.gradingScaleDisabled$.next(this.test.IsPointGrading&&this.points>0),this.grade$.pipe((0,Nr.R)(this.destroy$),(0,Mn.U)(this.buildRuequestBodyForGradeChange.bind(this))).subscribe(et=>this.updateTestResult(et)),this.points$.pipe((0,Nr.R)(this.destroy$),(0,Mn.U)(this.buildRequestBodyPointsChange.bind(this))).subscribe(et=>this.updateTestResult(et))}onGradeChange(et){this.gradeSubject$.next(et)}onPointsChange(et){this.pointsSubject$.next(et),this.gradingScaleDisabled$.next(et.length>0)}get updatedTestResult(){return this.updatedTest?.TestResults[0]}updateTestResult(et){this.closeButtonDisabled$.next(!0),this.courseService.updateTestResult(this.test.CourseId,et).subscribe(xt=>{this.gradeId=xt.body.TestResults[0]?.GradeId,this.updatedTest=xt.body,this.closeButtonDisabled$.next(!1)})}buildRuequestBodyForGradeChange(et){return{StudentIds:[this.studentId],TestId:this.test.Id,GradeId:et}}buildRequestBodyPointsChange(et){return{StudentIds:[this.studentId],TestId:this.test.Id,Points:et}}isValid(et){return""!==et&&!isNaN(Number(et))&&!(Number(et)<0||Number(et)>this.maxPoints)}maxPointValidator(){return et=>Number(et.value)>(0,Mr.Re)(this.test)?{customMax:!0}:null}static#e=this.\u0275fac=function(xt){return new(xt||ft)(f.Y36(p.Kz),f.Y36(Ze.s))};static#t=this.\u0275cmp=f.Xpm({type:ft,selectors:[["erz-dossier-grades-edit"]],inputs:{test:"test",gradeId:"gradeId",gradeOptions:"gradeOptions",points:"points",studentId:"studentId"},decls:19,vars:20,consts:[[1,"modal-body"],[1,"mb-4"],["class","form-group row",4,"ngIf"],[1,"form-group","row","mt-2"],["for","grade",1,"col-6","col-form-label"],[1,"col-6"],["id","grade",3,"options","value","allowEmpty","disabled","valueChange"],[1,"text-muted","mt-4"],[1,"modal-footer"],["type","button",1,"btn","btn-primary",3,"disabled","click"],[1,"form-group","row"],["for","points",1,"col-6","col-form-label"],["id","points","type","number","step","0.01","min","0",1,"form-control",3,"max","formControl","input"],["pointInput",""],["class","invalid-feedback col-6 offset-6","data-testid","validation-error-message",4,"ngIf"],["data-testid","validation-error-message",1,"invalid-feedback","col-6","offset-6"]],template:function(xt,hn){1&xt&&(f.TgZ(0,"div",0)(1,"p",1),f._uU(2),f.qZA(),f.YNc(3,Yt,8,10,"div",2),f.TgZ(4,"div",3)(5,"label",4),f._uU(6),f.ALo(7,"translate"),f.qZA(),f.TgZ(8,"div",5)(9,"erz-select",6),f.NdJ("valueChange",function(Ki){return hn.onGradeChange(Ki)}),f.ALo(10,"async"),f.qZA()()(),f.TgZ(11,"p",7),f._uU(12),f.ALo(13,"translate"),f.qZA()(),f.TgZ(14,"div",8)(15,"button",9),f.NdJ("click",function(){return hn.activeModal.close(hn.updatedTestResult)}),f.ALo(16,"async"),f._uU(17),f.ALo(18,"translate"),f.qZA()()),2&xt&&(f.xp6(2),f.Oqu(hn.test.Designation),f.xp6(1),f.Q6J("ngIf",hn.test.IsPointGrading),f.xp6(3),f.Oqu(f.lcZ(7,10,"dossier.dialog.grade")),f.xp6(3),f.Q6J("options",hn.gradeOptions)("value",hn.gradeId)("allowEmpty",!1)("disabled",f.lcZ(10,12,hn.gradingScaleDisabled$)),f.xp6(3),f.hij(" ",f.lcZ(13,14,hn.test.IsPointGrading?"dossier.dialog.hint.points":"dossier.dialog.hint.grade")," "),f.xp6(3),f.Q6J("disabled",f.lcZ(16,16,hn.closeButtonDisabled$)),f.xp6(2),f.hij(" ",f.lcZ(18,18,"dossier.dialog.close")," "))},dependencies:[t.O5,w.Fj,w.wV,w.JJ,w.qQ,w.Fd,w.oH,_n.H,t.Ov,O.X$]})}return ft})();var Mi=a(8405);function Yn(ft,Pn){if(1&ft){const et=f.EpF();f.TgZ(0,"a",11),f.NdJ("click",function(){f.CHM(et);const hn=f.oxw().erzLet,Gr=f.oxw();return f.KtG(Gr.editGrading(hn))}),f.TgZ(1,"i",12),f._uU(2,"edit"),f.qZA(),f.TgZ(3,"span",13),f._uU(4),f.ALo(5,"async"),f.qZA()()}if(2&ft){const et=f.oxw(2);f.xp6(4),f.Oqu(f.lcZ(5,1,et.grading$))}}function sr(ft,Pn){if(1&ft&&(f.TgZ(0,"span",13),f._uU(1),f.ALo(2,"async"),f.qZA()),2&ft){const et=f.oxw(2);f.xp6(1),f.Oqu(f.lcZ(2,1,et.grading$))}}function Wr(ft,Pn){if(1&ft&&(f.TgZ(0,"div",14),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ft){const et=f.oxw().erzLet;f.xp6(1),f.hij(" ",f.lcZ(2,1,et.IsPublished?"tests.published":"tests.not-published")," ")}}function Si(ft,Pn){if(1&ft&&(f.TgZ(0,"div",1)(1,"div",2),f._uU(2),f.qZA(),f.TgZ(3,"div",3),f._uU(4),f.ALo(5,"date"),f.qZA(),f.TgZ(6,"div",4),f.YNc(7,Yn,6,3,"a",5),f.YNc(8,sr,3,3,"ng-template",null,6,f.W1O),f.qZA(),f.TgZ(10,"div",7),f._uU(11),f.ALo(12,"erzTestWeight"),f.qZA(),f.TgZ(13,"div",8)(14,"span"),f._uU(15),f.ALo(16,"erzTestPoints"),f.qZA()(),f.TgZ(17,"div",9),f._uU(18),f.qZA(),f.YNc(19,Wr,3,3,"div",10),f.qZA()),2&ft){const et=Pn.erzLet,xt=f.MAs(9),hn=f.oxw();f.xp6(2),f.hij(" ",et.Designation," "),f.xp6(2),f.hij(" ",f.xi3(5,8,et.Date,"dd.MM.yyyy")," "),f.xp6(3),f.Q6J("ngIf",hn.isEditable&&et.IsOwner)("ngIfElse",xt),f.xp6(4),f.hij(" ",f.lcZ(12,11,et)," "),f.xp6(4),f.Oqu(f.Dn7(16,13,et,hn.studentId,"dossier.points")),f.xp6(3),f.hij(" ",et.Owner," "),f.xp6(1),f.Q6J("ngIf",hn.isEditable)}}let di=(()=>{class ft{constructor(et,xt){this.gradeService=et,this.modalService=xt,this.test$=new Kt.t(1),this.grading$=this.test$.pipe((0,Mn.U)(this.getGrading.bind(this)))}ngOnChanges(et){et.test&&this.test$.next(this.test)}editGrading(et){const xt=this.modalService.open(gr,{backdrop:"static"});xt.componentInstance.test=et,xt.componentInstance.gradeId=this.getGradeId(et),xt.componentInstance.gradeOptions=ft.mapToOptions(this.gradingScale),xt.componentInstance.studentId=this.studentId,xt.componentInstance.points=this.getPoints(et),xt.result.then(hn=>{hn&&this.updateStudentGrade(hn,et)},()=>{})}updateStudentGrade(et,xt){const hn=(0,Mr.Ps)(et,xt);this.gradeService.updateTest$.next(hn)}getGrading(et){return this.gradingScale?.Grades.find(xt=>xt.Id===this.getGradeId(et))?.Designation||"\u2013"}getGradeId(et){return(0,Mr.W3)(this.studentId,et)?.GradeId||null}getPoints(et){return(0,Mr.W3)(this.studentId,et)?.Points||null}static mapToOptions(et){return et?.Grades.map(xt=>({Key:xt.Id,Value:xt.Designation}))||null}static#e=this.\u0275fac=function(xt){return new(xt||ft)(f.Y36(Mi.S),f.Y36(p.FF))};static#t=this.\u0275cmp=f.Xpm({type:ft,selectors:[["erz-dossier-single-test"]],inputs:{test:"test",studentId:"studentId",gradingScale:"gradingScale",isEditable:"isEditable"},features:[f.TTD],decls:2,vars:3,consts:[["class","test-entry",4,"erzLet"],[1,"test-entry"],["data-testid","test-designation",1,"designation"],["data-testid","test-date",1,"date"],[1,"grade"],["class","btn btn-link","aria-label","edit grade",3,"click",4,"ngIf","ngIfElse"],["notEditable",""],["data-testid","test-factor",1,"factor"],["data-testid","test-points",1,"points"],["data-testid","test-teacher",1,"teacher"],["class","state","data-testid","test-status",4,"ngIf"],["aria-label","edit grade",1,"btn","btn-link",3,"click"],["data-testid","test-grade-edit-icon",1,"material-icons"],["data-testid","test-grade"],["data-testid","test-status",1,"state"]],template:function(xt,hn){1&xt&&(f.YNc(0,Si,20,17,"div",0),f.ALo(1,"async")),2&xt&&f.Q6J("erzLet",f.lcZ(1,1,hn.test$))},dependencies:[t.O5,P.e,t.Ov,t.uU,O.X$,vr,vi],styles:['.test-entry[_ngcontent-%COMP%]{border-top:1px solid #dee2e6;padding:1rem;display:grid;grid-template-areas:"designation designation grade factor" "date date points ." "teacher teacher . ." "state state . .";grid-template-columns:repeat(4,1fr)}span[_ngcontent-%COMP%]{margin-left:2em}.designation[_ngcontent-%COMP%]{grid-area:designation}.date[_ngcontent-%COMP%]{grid-area:date}.grade[_ngcontent-%COMP%]{grid-area:grade}.grade[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;color:#000;padding:0;text-decoration:none}.grade[_ngcontent-%COMP%] a[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-decoration:underline}.grade[_ngcontent-%COMP%] a[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:hover{text-decoration-color:#ea161f}.grade[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:-1em;color:#00000080}.points[_ngcontent-%COMP%]{grid-area:points;color:#00000080}.teacher[_ngcontent-%COMP%]{grid-area:teacher}.state[_ngcontent-%COMP%]{grid-area:state}@media (max-width: 575.98px){.test-entry[_ngcontent-%COMP%]{grid-template-areas:"designation designation" "date grade" "factor points" "teacher teacher" "state state";grid-template-columns:repeat(2,1fr)}}']})}return ft})();function rs(ft,Pn){if(1&ft&&f._UZ(0,"erz-dossier-single-test",5),2&ft){const et=Pn.$implicit,xt=f.oxw(3);f.Q6J("test",et)("studentId",xt.studentId)("gradingScale",xt.getGradingScaleOfTest(et))("isEditable",xt.isEditable)}}function bs(ft,Pn){if(1&ft&&(f.TgZ(0,"div"),f._UZ(1,"erz-dossier-grades-final-grade",3),f.YNc(2,rs,1,4,"erz-dossier-single-test",4),f.qZA()),2&ft){const et=f.oxw().erzLet,xt=f.oxw();f.xp6(1),f.Q6J("finalGrade",xt.decoratedCourse.finalGrade)("grading",xt.decoratedCourse.grading)("gradingScale",xt.decoratedCourse.gradingScale)("average",xt.decoratedCourse.average),f.xp6(1),f.Q6J("ngForOf",et)}}function zi(ft,Pn){1&ft&&(f.TgZ(0,"p",6),f._uU(1),f.ALo(2,"translate"),f.qZA()),2&ft&&(f.xp6(1),f.hij(" ",f.lcZ(2,1,"dossier.no-tests")," "))}function Oi(ft,Pn){if(1&ft&&(f.ynx(0),f.YNc(1,bs,3,5,"div",1),f.YNc(2,zi,3,3,"ng-template",null,2,f.W1O),f.BQk()),2&ft){const et=Pn.erzLet,xt=f.MAs(3);f.xp6(1),f.Q6J("ngIf",et.length>0)("ngIfElse",xt)}}let Ii=(()=>{class ft{ngOnChanges(et){et.decoratedCourse&&this.sortedTests$.next(this.sortedTests())}constructor(){this.sortedTests$=new ui.X([])}sortedTests(){return this.decoratedCourse.course.Tests?(0,Mr.df)(this.decoratedCourse.course.Tests):[]}getGradingScaleOfTest(et){return(0,Mr.fr)(et,this.gradingScales)}static#e=this.\u0275fac=function(xt){return new(xt||ft)};static#t=this.\u0275cmp=f.Xpm({type:ft,selectors:[["erz-dossier-course-tests"]],inputs:{studentId:"studentId",decoratedCourse:"decoratedCourse",gradingScales:"gradingScales",isEditable:"isEditable"},features:[f.TTD],decls:2,vars:3,consts:[[4,"erzLet"],[4,"ngIf","ngIfElse"],["noTests",""],[3,"finalGrade","grading","gradingScale","average"],[3,"test","studentId","gradingScale","isEditable",4,"ngFor","ngForOf"],[3,"test","studentId","gradingScale","isEditable"],["data-testid","message-no-tests",1,"p-3"]],template:function(xt,hn){1&xt&&(f.YNc(0,Oi,4,2,"ng-container",0),f.ALo(1,"async")),2&xt&&f.Q6J("erzLet",f.lcZ(1,1,hn.sortedTests$))},dependencies:[t.sg,t.O5,P.e,xr,di,t.Ov,O.X$]})}return ft})();var Pi=a(5841);function Gn(ft,Pn){if(1&ft&&(f.TgZ(0,"span",2),f._uU(1),f.qZA()),2&ft){const et=f.oxw();f.xp6(1),f.hij(" (",et.grade,")")}}function Es(ft,Pn){if(1&ft&&(f.TgZ(0,"span",3),f._uU(1),f.ALo(2,"number"),f.qZA()),2&ft){const et=f.oxw();f.xp6(1),f.hij(" (",f.xi3(2,1,et.average,"1.1-3"),")")}}let Zi=(()=>{class ft{constructor(){}get grade(){return this.getGradeForStudent()}getGradeForStudent(){return ys(this.grading,this.finalGrade,this.gradingScale)}static#e=this.\u0275fac=function(xt){return new(xt||ft)};static#t=this.\u0275cmp=f.Xpm({type:ft,selectors:[["erz-dossier-grades-course-header"]],inputs:{designation:"designation",finalGrade:"finalGrade",grading:"grading",gradingScale:"gradingScale",average:"average"},decls:3,vars:3,consts:[["class","grade","data-testId","grade",4,"ngIf"],["class","average","data-testId","average",4,"ngIf"],["data-testId","grade",1,"grade"],["data-testId","average",1,"average"]],template:function(xt,hn){1&xt&&(f._uU(0),f.YNc(1,Gn,2,1,"span",0),f.YNc(2,Es,3,4,"span",1)),2&xt&&(f.Oqu(hn.designation),f.xp6(1),f.Q6J("ngIf",hn.grade),f.xp6(1),f.Q6J("ngIf",!hn.grade&&hn.average))},dependencies:[t.O5,t.JJ],styles:[".average[_ngcontent-%COMP%]{color:#00000080}"]})}return ft})();a(1703),a(7625),a(5791);let ji=(()=>{class ft{static#e=this.\u0275fac=function(xt){return new(xt||ft)};static#t=this.\u0275mod=f.oAB({type:ft});static#n=this.\u0275inj=f.cJS({providers:[{provide:d.TP,useClass:q.R,multi:!0},{provide:d.TP,useClass:S,multi:!0},{provide:d.TP,useClass:mt,multi:!0}],imports:[t.ez,w.u5,w.UX,L.Bz,d.JF,O.aw.forChild(),p.IJ,B.Rq,jn.A0,t.ez,w.u5,w.UX,L.Bz,d.JF,O.aw,p.IJ,B.Rq,jn.A0]})}return ft})();f.B6R(Pi.d,function(){return[t.sg,t.O5,p.gY,p.Gk,p.gW,p.k9,ir.H,Ii,Zi]},function(){return[t.Ov,O.X$]})},6163:(Pe,V,a)=>{"use strict";a.d(V,{m:()=>d});const d=new(a(5879).OlP)("Confirm Absences Service")},6100:(Pe,V,a)=>{"use strict";function p(F){return 0===F.length}function R(F){return Array.isArray(F)}a.d(V,{kJ:()=>R,yD:()=>p})},2220:(Pe,V,a)=>{"use strict";function t(O){const R=O.split(/\D/).map(F=>Number(F));return new Date(R[0],R[1]-1,R[2],R[3],R[4],R[5])}function d(O){const R=O.split(/\D/).map(F=>Number(F));return new Date(R[0],R[1]-1,R[2])}function w(O){return L(O)+`T${p(O.getHours())}:${p(O.getMinutes())}:${p(O.getSeconds())}`}function L(O){return`${O.getFullYear()}-${p(O.getMonth()+1)}-${p(O.getDate())}`}function p(O){return("0"+O).slice(-2)}a.d(V,{Aq:()=>L,Uy:()=>t,nx:()=>d,oZ:()=>w})},275:(Pe,V,a)=>{"use strict";a.d(V,{Jx:()=>j,Y0:()=>S});var t=a(754),d=a(5040),w=a(5803);function O(q){return void 0!==q.message?q.message:"Invalid value ".concat(function L(q){return"function"==typeof q?(0,t.$P)(q):"number"!=typeof q||isFinite(q)?JSON.stringify(q):isNaN(q)?"NaN":q>0?"Infinity":"-Infinity"}(q.value)," supplied to ").concat(function p(q){return q.map(function(ie){var Te=ie.type;return"".concat(ie.key,": ").concat(Te.name)}).join("/")}(q.context))}var P={report:(0,w.g_)(function R(q){return q.map(O)},function F(){return["No errors!"]})},B=a(8504),$=a(2096);class f extends Error{constructor(){super(...arguments),this.name="DecodeError"}}function j(q){return ie=>(0,d.zG)(q.decode(ie),(0,w.g_)(k=>(0,B._)(()=>new f(P.report((0,w.t$)(k)).join("\n"))),k=>(0,$.of)(k)))}function S(q){return j(t.IX(q))}},1140:(Pe,V,a)=>{"use strict";a.d(V,{I:()=>w,q:()=>d});var t=a(7398);function d(L,p){return L.pipe((0,t.U)(O=>O.find(R=>R.Key===p)||null))}function w(L){return L.slice().sort((p,O)=>p.Value.localeCompare(O.Value))}},3942:(Pe,V,a)=>{"use strict";function d(P){return null!==P}function w(P){return"string"==typeof P&&P.length>0}function L(P){return B=>!P(B)}function p(P){return B=>B.length>=P}function O(P){return!!P}function R(P){return B=>B instanceof P}function F(P,B,$){return $.indexOf(P)===B}a.d(V,{$L:()=>p,Nf:()=>d,Tw:()=>F,V9:()=>R,YO:()=>w,fQ:()=>O,ff:()=>L})},1257:(Pe,V,a)=>{"use strict";a.d(V,{YV:()=>B,Z6:()=>P,ZX:()=>$});var t=a(2572),d=a(2096),w=a(6232),L=a(2181),p=a(4664),O=a(7921),R=a(7398),F=a(7081);function P(j,S,q){return(0,t.a)([j,S]).pipe((0,L.h)(([ie,k])=>k),(0,p.w)(([ie,k])=>{const Te=q?ie?.get(q)||null:ie;return Te?Te.statusChanges.pipe((0,O.O)(Te.status),(0,R.U)(()=>function f(j){return j?Object.keys(j.errors||{}).map(S=>({error:S,params:j.errors&&j.errors[S]instanceof Object?j.errors[S]:null})):[]}(Te))):(0,d.of)([])}),(0,O.O)([]),(0,F.d)(1))}function B(j,S){return j.pipe((0,R.U)(q=>q.get(S)||null))}function $(j,S){return B(j,S).pipe((0,p.w)(q=>q?q.valueChanges:w.E))}},1389:(Pe,V,a)=>{"use strict";function t(d){return w=>d(...w)}a.d(V,{h:()=>t})},49:(Pe,V,a)=>{"use strict";a.d(V,{PO:()=>w,Qw:()=>p,fG:()=>d,kK:()=>O});var t=a(5301);function d(R){const F=R.reduce((P,B)=>(P[B.StudentRef.Id]||(P[B.StudentRef.Id]=[]),P[B.StudentRef.Id].push(B.LessonRef.Id),P),{});return Object.keys(F).map(P=>({personIds:[Number(P)],lessonIds:F[P]}))}function w(R){const F={};return R.forEach(P=>{F[P.StudentRef.Id]||(F[P.StudentRef.Id]={}),F[P.StudentRef.Id][String(P.TypeRef.Id)]||(F[P.StudentRef.Id][String(P.TypeRef.Id)]=[]),F[P.StudentRef.Id][String(P.TypeRef.Id)].push(P.LessonRef.Id)}),Object.keys(F).reduce((P,B)=>[...P,...Object.keys(F[B]).map($=>({personId:Number(B),presenceTypeId:"null"===$?null:Number($),lessonIds:F[B][String($)]}))],[])}function p(R){return R.slice().sort((F,P)=>F.LessonDateTimeFrom.getTime()-P.LessonDateTimeFrom.getTime())}function O(R){return`${R.EventDesignation}, ${(0,t.Z)(R.LessonDateTimeFrom,"dd.MM.yyyy")}, ${(0,t.Z)(R.LessonDateTimeFrom,"HH:mm")}-${(0,t.Z)(R.LessonDateTimeTo,"HH:mm")}`}},3986:(Pe,V,a)=>{"use strict";function t(p){return 0===p.length?0:w(p.map(({value:O,weight:R})=>O*R))/w(p.map(({weight:O})=>O))}function d(p){return 0===p.length?0:Number(w(p)/p.length)}function w(p){return p.reduce(L,0)}function L(p,O){return p+O}a.d(V,{S:()=>t,Y:()=>d})},7105:(Pe,V,a)=>{"use strict";a.d(V,{LS:()=>ie,Pl:()=>q,Qx:()=>j,eG:()=>k,re:()=>Te});var t=a(9862),d=a(2096),w=a(8504),L=a(4911),p=a(3019),O=a(2438),R=a(1687),F=a(6306),P=a(7398),B=a(3572),$=a(4664),f=a(7921);function j(Me){return(0,F.K)(ye=>ye instanceof t.UA&&404===ye.status?(0,d.of)(Me||null):(0,w._)(()=>ye))}function q(Me){return ye=>(0,L.P)(()=>(Me(),ye))}function ie(Me){return ye=>ye.pipe((0,P.U)(ce=>ce??Me),(0,B.d)(Me))}function k(Me,ye){return Me.pipe((0,$.w)(ce=>ye.pipe((0,f.O)(ce),(0,P.U)(()=>ce))))}function Te(Me,ye=window.document){return(0,p.T)(...["click","keydown"].map(ce=>(0,O.R)(ye,ce))).pipe((0,f.O)(null),(0,$.w)(()=>(0,R.F)(Me)),(0,P.U)(()=>{}))}},7749:(Pe,V,a)=>{"use strict";function t(L){return L.slice().sort((p,O)=>p.Sort-O.Sort)}function d(L){return L.map(p=>({Key:p.Id,Value:p.Designation||""}))}function w(L,p){return L.map(O=>Object.assign(O,{Group:p}))}a.d(V,{KV:()=>t,nC:()=>d,pt:()=>w})},6031:(Pe,V,a)=>{"use strict";function t(w,L){return d(w).includes(L)}function d(w){return w?w.split(";"):[]}a.d(V,{F:()=>d,n:()=>t})},7470:(Pe,V,a)=>{"use strict";function t(d,w){return w.reduce((L,p)=>({...L,[p]:d[p]}),{})}a.d(V,{e:()=>t})},1342:(Pe,V,a)=>{"use strict";a.d(V,{D9:()=>L,dD:()=>d,tW:()=>w});var t=a(1523);function d(p){return String(p||"").split("&").reduce((O,R)=>{const[F,P]=R.split("=");return{...O,[F]:P}},{})}function w(p){return Object.keys(p).reduce((O,R)=>{const F=p[R];return[...O,null==F?R:`${R}=${F}`]},[]).join("&")}function L(p){const P=(new t.sz).parse(p)?.root.children[t.eC]?.segments;return P?P[0].path:null}},4515:(Pe,V,a)=>{"use strict";var t=a(6593),d=a(5879),w=a(6814),L=a(9862);const p=void 0,R=["de-CH",[["AM","PM"],p,p],p,[["S","M","D","M","D","F","S"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So","Mo","Di","Mi","Do","Fr","Sa"]],[["S","M","D","M","D","F","S"],["So","Mo","Di","Mi","Do","Fr","Sa"],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan.","Feb.","M\xe4rz","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["v. Chr.","n. Chr."],p,p],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",p,"{1} 'um' {0}",p],[".","\u2019",";","%","+","-","E","\xb7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4\xa0#,##0.00;\xa4-#,##0.00","#E0"],"CHF","CHF","Schweizer Franken",{ATS:["\xf6S"],AUD:["AU$","$"],BGM:["BGK"],BGO:["BGJ"],BYN:[p,"\u0440."],CUC:[p,"Cub$"],DEM:["DM"],EUR:[],FKP:[p,"Fl\xa3"],GHS:[p,"\u20b5"],GNF:[p,"F.G."],KMF:[p,"FC"],PHP:[p,"\u20b1"],RON:[p,"L"],RUR:[p,"\u0440."],RWF:[p,"F.Rw"],SYP:[],THB:["\u0e3f"],TWD:["NT$"],XXX:[],ZMW:[p,"K"]},"ltr",function O(W){const v=Math.floor(Math.abs(W)),I=W.toString().replace(/^[^.]*\.?/,"").length;return 1===v&&0===I?1:5}],F=void 0,B=["fr-CH",[["AM","PM"],F,F],F,[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],F,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]],F,[["av. J.-C.","ap. J.-C."],F,["avant J\xe9sus-Christ","apr\xe8s J\xe9sus-Christ"]],1,[6,0],["dd.MM.yy","d MMM y","d MMMM y","EEEE, d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH.mm:ss 'h' zzzz"],["{1} {0}","{1}, {0}","{1} '\xe0' {0}",F],[",","\u202f",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":","."],["#,##0.###","#,##0%","#,##0.00\xa0\xa4","#E0"],"CHF","CHF","franc suisse",{ARS:["$AR","$"],AUD:["$AU","$"],BEF:["FB"],BMD:["$BM","$"],BND:["$BN","$"],BYN:[F,"\u0440."],BZD:["$BZ","$"],CAD:["$CA","$"],CLP:["$CL","$"],CNY:[F,"\xa5"],COP:["$CO","$"],CYP:["\xa3CY"],EGP:[F,"\xa3E"],FJD:["$FJ","$"],FKP:["\xa3FK","\xa3"],FRF:["F"],GBP:["\xa3GB","\xa3"],GIP:["\xa3GI","\xa3"],HKD:[F,"$"],IEP:["\xa3IE"],ILP:["\xa3IL"],ITL:["\u20a4IT"],JPY:[F,"\xa5"],KMF:[F,"FC"],LBP:["\xa3LB","\xa3L"],MTP:["\xa3MT"],MXN:["$MX","$"],NAD:["$NA","$"],NIO:[F,"$C"],NZD:["$NZ","$"],PHP:[F,"\u20b1"],RHD:["$RH"],RON:[F,"L"],RWF:[F,"FR"],SBD:["$SB","$"],SGD:["$SG","$"],SRD:["$SR","$"],TOP:[F,"$T"],TTD:["$TT","$"],TWD:[F,"NT$"],USD:["$US","$"],UYU:["$UY","$"],WST:["$WS"],XCD:[F,"$"],XPF:["FCFP"],ZMW:[F,"Kw"]},"ltr",function P(W){const v=Math.floor(Math.abs(W)),I=W.toString().replace(/^[^.]*\.?/,"").length,te=parseInt(W.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return 0===v||1===v?1:0===te&&0!==v&&v%1e6==0&&0===I||!(te>=0&&te<=5)?4:5}];var $=a(7328),f=a(3019),j=a(4664),S=a(7398);const q={schedule(W,h){const v=setTimeout(W,h);return()=>clearTimeout(v)},scheduleBeforeRender(W){if(typeof window>"u")return q.schedule(W,0);if(typeof window.requestAnimationFrame>"u")return q.schedule(W,16);const h=window.requestAnimationFrame(W);return()=>window.cancelAnimationFrame(h)}};let ye;function ke(W,h,v){let I=v;return function k(W){return!!W&&W.nodeType===Node.ELEMENT_NODE}(W)&&h.some((te,me)=>!("*"===te||!function ce(W,h){if(!ye){const v=Element.prototype;ye=v.matches||v.matchesSelector||v.mozMatchesSelector||v.msMatchesSelector||v.oMatchesSelector||v.webkitMatchesSelector}return W.nodeType===Node.ELEMENT_NODE&&ye.call(W,h)}(W,te)||(I=me,0))),I}class it{constructor(h,v){this.componentFactory=v.get(d._Vd).resolveComponentFactory(h)}create(h){return new St(this.componentFactory,h)}}class St{constructor(h,v){this.componentFactory=h,this.injector=v,this.eventEmitters=new $.t(1),this.events=this.eventEmitters.pipe((0,j.w)(I=>(0,f.T)(...I))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:I})=>I)),this.ngZone=this.injector.get(d.R0b),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(h){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(h)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=q.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(h){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(h):this.componentRef.instance[h])}setInputValue(h,v,I){this.runInZone(()=>{I&&(v=I.call(this.componentRef?.instance,v)),null!==this.componentRef?function _e(W,h){return W===h||W!=W&&h!=h}(v,this.getInputValue(h))&&(void 0!==v||!this.unchangedInputs.has(h))||(this.recordInputChange(h,v),this.unchangedInputs.delete(h),this.hasInputChanges=!0,this.componentRef.instance[h]=v,this.scheduleDetectChanges()):this.initialInputValues.set(h,v)})}initializeComponent(h){const v=d.zs3.create({providers:[],parent:this.injector}),I=function be(W,h){const v=W.childNodes,I=h.map(()=>[]);let te=-1;h.some((me,Ne)=>"*"===me&&(te=Ne,!0));for(let me=0,Ne=v.length;me{this.initialInputValues.has(h)&&this.setInputValue(h,this.initialInputValues.get(h),v)}),this.initialInputValues.clear()}initializeOutputs(h){const v=this.componentFactory.outputs.map(({propName:I,templateName:te})=>h.instance[I].pipe((0,S.U)(Ne=>({name:te,value:Ne}))));this.eventEmitters.next(v)}callNgOnChanges(h){if(!this.implementsOnChanges||null===this.inputChanges)return;const v=this.inputChanges;this.inputChanges=null,h.instance.ngOnChanges(v)}markViewForCheck(h){this.hasInputChanges&&(this.hasInputChanges=!1,h.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=q.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(h,v){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const I=this.inputChanges[h];if(I)return void(I.currentValue=v);const te=this.unchangedInputs.has(h),me=te?void 0:this.getInputValue(h);this.inputChanges[h]=new d.WD2(me,v,te)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(h){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(h):h()}}class qe extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function _t(W,h){const v=function xe(W,h){return h.get(d._Vd).resolveComponentFactory(W).inputs}(W,h.injector),I=h.strategyFactory||new it(W,h.injector),te=function ve(W){const h={};return W.forEach(({propName:v,templateName:I,transform:te})=>{h[function ie(W){return W.replace(/[A-Z]/g,h=>`-${h.toLowerCase()}`)}(I)]=[v,te]}),h}(v);class me extends qe{static#e=this.observedAttributes=Object.keys(te);get ngElementStrategy(){if(!this._ngElementStrategy){const Fe=this._ngElementStrategy=I.create(this.injector||h.injector);v.forEach(({propName:ot,transform:Dt})=>{if(!this.hasOwnProperty(ot))return;const nn=this[ot];delete this[ot],Fe.setInputValue(ot,nn,Dt)})}return this._ngElementStrategy}constructor(Fe){super(),this.injector=Fe}attributeChangedCallback(Fe,ot,Dt,nn){const[Xt,Cn]=te[Fe];this.ngElementStrategy.setInputValue(Xt,Dt,Cn)}connectedCallback(){let Fe=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),Fe=!0),this.ngElementStrategy.connect(this),Fe||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(Fe=>{const ot=new CustomEvent(Fe.name,{detail:Fe.value});this.dispatchEvent(ot)})}}return v.forEach(({propName:Ne,transform:Fe})=>{Object.defineProperty(me.prototype,Ne,{get(){return this.ngElementStrategy.getInputValue(Ne)},set(ot){this.ngElementStrategy.setInputValue(Ne,ot,Fe)},configurable:!0,enumerable:!0})}),me}class Ee{}class ze{}const J="*";function ae(W,h=null){return{type:2,steps:W,options:h}}function fe(W){return{type:6,styles:W,offset:null}}class tt{constructor(h=0,v=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=h+v}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(h=>h()),this._onDoneFns=[])}onStart(h){this._originalOnStartFns.push(h),this._onStartFns.push(h)}onDone(h){this._originalOnDoneFns.push(h),this._onDoneFns.push(h)}onDestroy(h){this._onDestroyFns.push(h)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(h=>h()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(h=>h()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(h){this._position=this.totalTime?h*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(h){const v="start"==h?this._onStartFns:this._onDoneFns;v.forEach(I=>I()),v.length=0}}class Pt{constructor(h){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=h;let v=0,I=0,te=0;const me=this.players.length;0==me?queueMicrotask(()=>this._onFinish()):this.players.forEach(Ne=>{Ne.onDone(()=>{++v==me&&this._onFinish()}),Ne.onDestroy(()=>{++I==me&&this._onDestroy()}),Ne.onStart(()=>{++te==me&&this._onStart()})}),this.totalTime=this.players.reduce((Ne,Fe)=>Math.max(Ne,Fe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(h=>h()),this._onDoneFns=[])}init(){this.players.forEach(h=>h.init())}onStart(h){this._onStartFns.push(h)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(h=>h()),this._onStartFns=[])}onDone(h){this._onDoneFns.push(h)}onDestroy(h){this._onDestroyFns.push(h)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(h=>h.play())}pause(){this.players.forEach(h=>h.pause())}restart(){this.players.forEach(h=>h.restart())}finish(){this._onFinish(),this.players.forEach(h=>h.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(h=>h.destroy()),this._onDestroyFns.forEach(h=>h()),this._onDestroyFns=[])}reset(){this.players.forEach(h=>h.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(h){const v=h*this.totalTime;this.players.forEach(I=>{const te=I.totalTime?Math.min(1,v/I.totalTime):1;I.setPosition(te)})}getPosition(){const h=this.players.reduce((v,I)=>null===v||I.totalTime>v.totalTime?I:v,null);return null!=h?h.getPosition():0}beforeDestroy(){this.players.forEach(h=>{h.beforeDestroy&&h.beforeDestroy()})}triggerCallback(h){const v="start"==h?this._onStartFns:this._onDoneFns;v.forEach(I=>I()),v.length=0}}function Rn(W){return new d.vHH(3e3,!1)}function Vt(W){switch(W.length){case 0:return new tt;case 1:return W[0];default:return new Pt(W)}}function Un(W,h,v=new Map,I=new Map){const te=[],me=[];let Ne=-1,Fe=null;if(h.forEach(ot=>{const Dt=ot.get("offset"),nn=Dt==Ne,Xt=nn&&Fe||new Map;ot.forEach((Cn,Vn)=>{let An=Vn,Fn=Cn;if("offset"!==Vn)switch(An=W.normalizePropertyName(An,te),Fn){case"!":Fn=v.get(Vn);break;case J:Fn=I.get(Vn);break;default:Fn=W.normalizeStyleValue(Vn,An,Fn,te)}Xt.set(An,Fn)}),nn||me.push(Xt),Fe=Xt,Ne=Dt}),te.length)throw function Dr(W){return new d.vHH(3502,!1)}();return me}function sn(W,h,v,I){switch(h){case"start":W.onStart(()=>I(v&&rr(v,"start",W)));break;case"done":W.onDone(()=>I(v&&rr(v,"done",W)));break;case"destroy":W.onDestroy(()=>I(v&&rr(v,"destroy",W)))}}function rr(W,h,v){const me=an(W.element,W.triggerName,W.fromState,W.toState,h||W.phaseName,v.totalTime??W.totalTime,!!v.disabled),Ne=W._data;return null!=Ne&&(me._data=Ne),me}function an(W,h,v,I,te="",me=0,Ne){return{element:W,triggerName:h,fromState:v,toState:I,phaseName:te,totalTime:me,disabled:!!Ne}}function $n(W,h,v){let I=W.get(h);return I||W.set(h,I=v),I}function Qe(W){const h=W.indexOf(":");return[W.substring(1,h),W.slice(h+1)]}const Le=(()=>typeof document>"u"?null:document.documentElement)();function Ue(W){const h=W.parentNode||W.host||null;return h===Le?null:h}let Rt=null,kt=!1;function pr(W,h){for(;h;){if(h===W)return!0;h=Ue(h)}return!1}function jr(W,h,v){if(v)return Array.from(W.querySelectorAll(h));const I=W.querySelector(h);return I?[I]:[]}let Ar=(()=>{class W{validateStyleProperty(v){return function Ft(W){Rt||(Rt=function Tn(){return typeof document<"u"?document.body:null}()||{},kt=!!Rt.style&&"WebkitAppearance"in Rt.style);let h=!0;return Rt.style&&!function bt(W){return"ebkit"==W.substring(1,6)}(W)&&(h=W in Rt.style,!h&&kt&&(h="Webkit"+W.charAt(0).toUpperCase()+W.slice(1)in Rt.style)),h}(v)}matchesElement(v,I){return!1}containsElement(v,I){return pr(v,I)}getParentElement(v){return Ue(v)}query(v,I,te){return jr(v,I,te)}computeStyle(v,I,te){return te||""}animate(v,I,te,me,Ne,Fe=[],ot){return new tt(te,me)}static#e=this.\u0275fac=function(I){return new(I||W)};static#t=this.\u0275prov=d.Yz7({token:W,factory:W.\u0275fac})}return W})(),Hr=(()=>{class W{static#e=this.NOOP=new Ar}return W})();const Zr=1e3,Ur="ng-enter",ai="ng-leave",pe="ng-trigger",z=".ng-trigger",K="ng-animating",D=".ng-animating";function X(W){if("number"==typeof W)return W;const h=W.match(/^(-?[\.\d]+)(m?s)/);return!h||h.length<2?0:de(parseFloat(h[1]),h[2])}function de(W,h){return"s"===h?W*Zr:W}function Oe(W,h,v){return W.hasOwnProperty("duration")?W:function Ae(W,h,v){let te,me=0,Ne="";if("string"==typeof W){const Fe=W.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Fe)return h.push(Rn()),{duration:0,delay:0,easing:""};te=de(parseFloat(Fe[1]),Fe[2]);const ot=Fe[3];null!=ot&&(me=de(parseFloat(ot),Fe[4]));const Dt=Fe[5];Dt&&(Ne=Dt)}else te=W;if(!v){let Fe=!1,ot=h.length;te<0&&(h.push(function We(){return new d.vHH(3100,!1)}()),Fe=!0),me<0&&(h.push(function Ye(){return new d.vHH(3101,!1)}()),Fe=!0),Fe&&h.splice(ot,0,Rn())}return{duration:te,delay:me,easing:Ne}}(W,h,v)}function mt(W,h={}){return Object.keys(W).forEach(v=>{h[v]=W[v]}),h}function $t(W){const h=new Map;return Object.keys(W).forEach(v=>{h.set(v,W[v])}),h}function bn(W,h=new Map,v){if(v)for(let[I,te]of v)h.set(I,te);for(let[I,te]of W)h.set(I,te);return h}function Nn(W,h,v){h.forEach((I,te)=>{const me=Wi(te);v&&!v.has(te)&&v.set(te,W.style[me]),W.style[me]=I})}function ir(W,h){h.forEach((v,I)=>{const te=Wi(I);W.style[te]=""})}function _r(W){return Array.isArray(W)?1==W.length?W[0]:ae(W):W}const Yr=new RegExp("{{\\s*(.+?)\\s*}}","g");function ts(W){let h=[];if("string"==typeof W){let v;for(;v=Yr.exec(W);)h.push(v[1]);Yr.lastIndex=0}return h}function _i(W,h,v){const I=W.toString(),te=I.replace(Yr,(me,Ne)=>{let Fe=h[Ne];return null==Fe&&(v.push(function Ot(W){return new d.vHH(3003,!1)}()),Fe=""),Fe.toString()});return te==I?W:te}function Ti(W){const h=[];let v=W.next();for(;!v.done;)h.push(v.value),v=W.next();return h}const ms=/-+([a-z0-9])/g;function Wi(W){return W.replace(ms,(...h)=>h[1].toUpperCase())}function Vr(W,h,v){switch(h.type){case 7:return W.visitTrigger(h,v);case 0:return W.visitState(h,v);case 1:return W.visitTransition(h,v);case 2:return W.visitSequence(h,v);case 3:return W.visitGroup(h,v);case 4:return W.visitAnimate(h,v);case 5:return W.visitKeyframes(h,v);case 6:return W.visitStyle(h,v);case 8:return W.visitReference(h,v);case 9:return W.visitAnimateChild(h,v);case 10:return W.visitAnimateRef(h,v);case 11:return W.visitQuery(h,v);case 12:return W.visitStagger(h,v);default:throw function tn(W){return new d.vHH(3004,!1)}()}}function jn(W,h){return window.getComputedStyle(W)[h]}const ui="*";function ys(W,h){const v=[];return"string"==typeof W?W.split(/\s*,\s*/).forEach(I=>function Bi(W,h,v){if(":"==W[0]){const ot=function xr(W,h){switch(W){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(v,I)=>parseFloat(I)>parseFloat(v);case":decrement":return(v,I)=>parseFloat(I) *"}}(W,v);if("function"==typeof ot)return void h.push(ot);W=ot}const I=W.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==I||I.length<4)return v.push(function Qt(W){return new d.vHH(3015,!1)}()),h;const te=I[1],me=I[2],Ne=I[3];h.push(hr(te,Ne));"<"==me[0]&&!(te==ui&&Ne==ui)&&h.push(hr(Ne,te))}(I,v,h)):v.push(W),v}const Kt=new Set(["true","1"]),Mn=new Set(["false","0"]);function hr(W,h){const v=Kt.has(W)||Mn.has(W),I=Kt.has(h)||Mn.has(h);return(te,me)=>{let Ne=W==ui||W==te,Fe=h==ui||h==me;return!Ne&&v&&"boolean"==typeof te&&(Ne=te?Kt.has(W):Mn.has(W)),!Fe&&I&&"boolean"==typeof me&&(Fe=me?Kt.has(h):Mn.has(h)),Ne&&Fe}}const bi=new RegExp("s*:selfs*,?","g");function Nr(W,h,v,I){return new Ve(W).build(h,v,I)}class Ve{constructor(h){this._driver=h}build(h,v,I){const te=new Bt(v);return this._resetContextStyleTimingState(te),Vr(this,_r(h),te)}_resetContextStyleTimingState(h){h.currentQuerySelector="",h.collectedStyles=new Map,h.collectedStyles.set("",new Map),h.currentTime=0}visitTrigger(h,v){let I=v.queryCount=0,te=v.depCount=0;const me=[],Ne=[];return"@"==h.name.charAt(0)&&v.errors.push(function Ht(){return new d.vHH(3006,!1)}()),h.definitions.forEach(Fe=>{if(this._resetContextStyleTimingState(v),0==Fe.type){const ot=Fe,Dt=ot.name;Dt.toString().split(/\s*,\s*/).forEach(nn=>{ot.name=nn,me.push(this.visitState(ot,v))}),ot.name=Dt}else if(1==Fe.type){const ot=this.visitTransition(Fe,v);I+=ot.queryCount,te+=ot.depCount,Ne.push(ot)}else v.errors.push(function Zt(){return new d.vHH(3007,!1)}())}),{type:7,name:h.name,states:me,transitions:Ne,queryCount:I,depCount:te,options:null}}visitState(h,v){const I=this.visitStyle(h.styles,v),te=h.options&&h.options.params||null;if(I.containsDynamicStyles){const me=new Set,Ne=te||{};I.styles.forEach(Fe=>{Fe instanceof Map&&Fe.forEach(ot=>{ts(ot).forEach(Dt=>{Ne.hasOwnProperty(Dt)||me.add(Dt)})})}),me.size&&(Ti(me.values()),v.errors.push(function dn(W,h){return new d.vHH(3008,!1)}()))}return{type:0,name:h.name,style:I,options:te?{params:te}:null}}visitTransition(h,v){v.queryCount=0,v.depCount=0;const I=Vr(this,_r(h.animation),v);return{type:1,matchers:ys(h.expr,v.errors),animation:I,queryCount:v.queryCount,depCount:v.depCount,options:Yn(h.options)}}visitSequence(h,v){return{type:2,steps:h.steps.map(I=>Vr(this,I,v)),options:Yn(h.options)}}visitGroup(h,v){const I=v.currentTime;let te=0;const me=h.steps.map(Ne=>{v.currentTime=I;const Fe=Vr(this,Ne,v);return te=Math.max(te,v.currentTime),Fe});return v.currentTime=te,{type:3,steps:me,options:Yn(h.options)}}visitAnimate(h,v){const I=function Mi(W,h){if(W.hasOwnProperty("duration"))return W;if("number"==typeof W)return sr(Oe(W,h).duration,0,"");const v=W;if(v.split(/\s+/).some(me=>"{"==me.charAt(0)&&"{"==me.charAt(1))){const me=sr(0,0,"");return me.dynamic=!0,me.strValue=v,me}const te=Oe(v,h);return sr(te.duration,te.delay,te.easing)}(h.timings,v.errors);v.currentAnimateTimings=I;let te,me=h.styles?h.styles:fe({});if(5==me.type)te=this.visitKeyframes(me,v);else{let Ne=h.styles,Fe=!1;if(!Ne){Fe=!0;const Dt={};I.easing&&(Dt.easing=I.easing),Ne=fe(Dt)}v.currentTime+=I.duration+I.delay;const ot=this.visitStyle(Ne,v);ot.isEmptyStep=Fe,te=ot}return v.currentAnimateTimings=null,{type:4,timings:I,style:te,options:null}}visitStyle(h,v){const I=this._makeStyleAst(h,v);return this._validateStyleAst(I,v),I}_makeStyleAst(h,v){const I=[],te=Array.isArray(h.styles)?h.styles:[h.styles];for(let Fe of te)"string"==typeof Fe?Fe===J?I.push(Fe):v.errors.push(new d.vHH(3002,!1)):I.push($t(Fe));let me=!1,Ne=null;return I.forEach(Fe=>{if(Fe instanceof Map&&(Fe.has("easing")&&(Ne=Fe.get("easing"),Fe.delete("easing")),!me))for(let ot of Fe.values())if(ot.toString().indexOf("{{")>=0){me=!0;break}}),{type:6,styles:I,easing:Ne,offset:h.offset,containsDynamicStyles:me,options:null}}_validateStyleAst(h,v){const I=v.currentAnimateTimings;let te=v.currentTime,me=v.currentTime;I&&me>0&&(me-=I.duration+I.delay),h.styles.forEach(Ne=>{"string"!=typeof Ne&&Ne.forEach((Fe,ot)=>{const Dt=v.collectedStyles.get(v.currentQuerySelector),nn=Dt.get(ot);let Xt=!0;nn&&(me!=te&&me>=nn.startTime&&te<=nn.endTime&&(v.errors.push(function qt(W,h,v,I,te){return new d.vHH(3010,!1)}()),Xt=!1),me=nn.startTime),Xt&&Dt.set(ot,{startTime:me,endTime:te}),v.options&&function Kr(W,h,v){const I=h.params||{},te=ts(W);te.length&&te.forEach(me=>{I.hasOwnProperty(me)||v.push(function At(W){return new d.vHH(3001,!1)}())})}(Fe,v.options,v.errors)})})}visitKeyframes(h,v){const I={type:5,styles:[],options:null};if(!v.currentAnimateTimings)return v.errors.push(function En(){return new d.vHH(3011,!1)}()),I;let me=0;const Ne=[];let Fe=!1,ot=!1,Dt=0;const nn=h.steps.map(M=>{const y=this._makeStyleAst(M,v);let x=null!=y.offset?y.offset:function gr(W){if("string"==typeof W)return null;let h=null;if(Array.isArray(W))W.forEach(v=>{if(v instanceof Map&&v.has("offset")){const I=v;h=parseFloat(I.get("offset")),I.delete("offset")}});else if(W instanceof Map&&W.has("offset")){const v=W;h=parseFloat(v.get("offset")),v.delete("offset")}return h}(y.styles),G=0;return null!=x&&(me++,G=y.offset=x),ot=ot||G<0||G>1,Fe=Fe||G0&&me{const x=Cn>0?y==Vn?1:Cn*y:Ne[y],G=x*E;v.currentTime=An+Fn.delay+G,Fn.duration=G,this._validateStyleAst(M,v),M.offset=x,I.styles.push(M)}),I}visitReference(h,v){return{type:8,animation:Vr(this,_r(h.animation),v),options:Yn(h.options)}}visitAnimateChild(h,v){return v.depCount++,{type:9,options:Yn(h.options)}}visitAnimateRef(h,v){return{type:10,animation:this.visitReference(h.animation,v),options:Yn(h.options)}}visitQuery(h,v){const I=v.currentQuerySelector,te=h.options||{};v.queryCount++,v.currentQuery=h;const[me,Ne]=function ct(W){const h=!!W.split(/\s*,\s*/).find(v=>":self"==v);return h&&(W=W.replace(bi,"")),W=W.replace(/@\*/g,z).replace(/@\w+/g,v=>z+"-"+v.slice(1)).replace(/:animating/g,D),[W,h]}(h.selector);v.currentQuerySelector=I.length?I+" "+me:me,$n(v.collectedStyles,v.currentQuerySelector,new Map);const Fe=Vr(this,_r(h.animation),v);return v.currentQuery=null,v.currentQuerySelector=I,{type:11,selector:me,limit:te.limit||0,optional:!!te.optional,includeSelf:Ne,animation:Fe,originalSelector:h.selector,options:Yn(h.options)}}visitStagger(h,v){v.currentQuery||v.errors.push(function st(){return new d.vHH(3013,!1)}());const I="full"===h.timings?{duration:0,delay:0,easing:"full"}:Oe(h.timings,v.errors,!0);return{type:12,animation:Vr(this,_r(h.animation),v),timings:I,options:null}}}class Bt{constructor(h){this.errors=h,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 Yn(W){return W?(W=mt(W)).params&&(W.params=function Yt(W){return W?mt(W):null}(W.params)):W={},W}function sr(W,h,v){return{duration:W,delay:h,easing:v}}function Wr(W,h,v,I,te,me,Ne=null,Fe=!1){return{type:1,element:W,keyframes:h,preStyleProps:v,postStyleProps:I,duration:te,delay:me,totalTime:te+me,easing:Ne,subTimeline:Fe}}class Si{constructor(){this._map=new Map}get(h){return this._map.get(h)||[]}append(h,v){let I=this._map.get(h);I||this._map.set(h,I=[]),I.push(...v)}has(h){return this._map.has(h)}clear(){this._map.clear()}}const bs=new RegExp(":enter","g"),Oi=new RegExp(":leave","g");function Ii(W,h,v,I,te,me=new Map,Ne=new Map,Fe,ot,Dt=[]){return(new Pi).buildKeyframes(W,h,v,I,te,me,Ne,Fe,ot,Dt)}class Pi{buildKeyframes(h,v,I,te,me,Ne,Fe,ot,Dt,nn=[]){Dt=Dt||new Si;const Xt=new Es(h,v,Dt,te,me,nn,[]);Xt.options=ot;const Cn=ot.delay?X(ot.delay):0;Xt.currentTimeline.delayNextStep(Cn),Xt.currentTimeline.setStyles([Ne],null,Xt.errors,ot),Vr(this,I,Xt);const Vn=Xt.timelines.filter(An=>An.containsAnimation());if(Vn.length&&Fe.size){let An;for(let Fn=Vn.length-1;Fn>=0;Fn--){const E=Vn[Fn];if(E.element===v){An=E;break}}An&&!An.allowOnlyTimelineStyles()&&An.setStyles([Fe],null,Xt.errors,ot)}return Vn.length?Vn.map(An=>An.buildKeyframes()):[Wr(v,[],[],[],0,Cn,"",!1)]}visitTrigger(h,v){}visitState(h,v){}visitTransition(h,v){}visitAnimateChild(h,v){const I=v.subInstructions.get(v.element);if(I){const te=v.createSubContext(h.options),me=v.currentTimeline.currentTime,Ne=this._visitSubInstructions(I,te,te.options);me!=Ne&&v.transformIntoNewTimeline(Ne)}v.previousNode=h}visitAnimateRef(h,v){const I=v.createSubContext(h.options);I.transformIntoNewTimeline(),this._applyAnimationRefDelays([h.options,h.animation.options],v,I),this.visitReference(h.animation,I),v.transformIntoNewTimeline(I.currentTimeline.currentTime),v.previousNode=h}_applyAnimationRefDelays(h,v,I){for(const te of h){const me=te?.delay;if(me){const Ne="number"==typeof me?me:X(_i(me,te?.params??{},v.errors));I.delayNextStep(Ne)}}}_visitSubInstructions(h,v,I){let me=v.currentTimeline.currentTime;const Ne=null!=I.duration?X(I.duration):null,Fe=null!=I.delay?X(I.delay):null;return 0!==Ne&&h.forEach(ot=>{const Dt=v.appendInstructionToTimeline(ot,Ne,Fe);me=Math.max(me,Dt.duration+Dt.delay)}),me}visitReference(h,v){v.updateOptions(h.options,!0),Vr(this,h.animation,v),v.previousNode=h}visitSequence(h,v){const I=v.subContextCount;let te=v;const me=h.options;if(me&&(me.params||me.delay)&&(te=v.createSubContext(me),te.transformIntoNewTimeline(),null!=me.delay)){6==te.previousNode.type&&(te.currentTimeline.snapshotCurrentStyles(),te.previousNode=Gn);const Ne=X(me.delay);te.delayNextStep(Ne)}h.steps.length&&(h.steps.forEach(Ne=>Vr(this,Ne,te)),te.currentTimeline.applyStylesToKeyframe(),te.subContextCount>I&&te.transformIntoNewTimeline()),v.previousNode=h}visitGroup(h,v){const I=[];let te=v.currentTimeline.currentTime;const me=h.options&&h.options.delay?X(h.options.delay):0;h.steps.forEach(Ne=>{const Fe=v.createSubContext(h.options);me&&Fe.delayNextStep(me),Vr(this,Ne,Fe),te=Math.max(te,Fe.currentTimeline.currentTime),I.push(Fe.currentTimeline)}),I.forEach(Ne=>v.currentTimeline.mergeTimelineCollectedStyles(Ne)),v.transformIntoNewTimeline(te),v.previousNode=h}_visitTiming(h,v){if(h.dynamic){const I=h.strValue;return Oe(v.params?_i(I,v.params,v.errors):I,v.errors)}return{duration:h.duration,delay:h.delay,easing:h.easing}}visitAnimate(h,v){const I=v.currentAnimateTimings=this._visitTiming(h.timings,v),te=v.currentTimeline;I.delay&&(v.incrementTime(I.delay),te.snapshotCurrentStyles());const me=h.style;5==me.type?this.visitKeyframes(me,v):(v.incrementTime(I.duration),this.visitStyle(me,v),te.applyStylesToKeyframe()),v.currentAnimateTimings=null,v.previousNode=h}visitStyle(h,v){const I=v.currentTimeline,te=v.currentAnimateTimings;!te&&I.hasCurrentStyleProperties()&&I.forwardFrame();const me=te&&te.easing||h.easing;h.isEmptyStep?I.applyEmptyStep(me):I.setStyles(h.styles,me,v.errors,v.options),v.previousNode=h}visitKeyframes(h,v){const I=v.currentAnimateTimings,te=v.currentTimeline.duration,me=I.duration,Fe=v.createSubContext().currentTimeline;Fe.easing=I.easing,h.styles.forEach(ot=>{Fe.forwardTime((ot.offset||0)*me),Fe.setStyles(ot.styles,ot.easing,v.errors,v.options),Fe.applyStylesToKeyframe()}),v.currentTimeline.mergeTimelineCollectedStyles(Fe),v.transformIntoNewTimeline(te+me),v.previousNode=h}visitQuery(h,v){const I=v.currentTimeline.currentTime,te=h.options||{},me=te.delay?X(te.delay):0;me&&(6===v.previousNode.type||0==I&&v.currentTimeline.hasCurrentStyleProperties())&&(v.currentTimeline.snapshotCurrentStyles(),v.previousNode=Gn);let Ne=I;const Fe=v.invokeQuery(h.selector,h.originalSelector,h.limit,h.includeSelf,!!te.optional,v.errors);v.currentQueryTotal=Fe.length;let ot=null;Fe.forEach((Dt,nn)=>{v.currentQueryIndex=nn;const Xt=v.createSubContext(h.options,Dt);me&&Xt.delayNextStep(me),Dt===v.element&&(ot=Xt.currentTimeline),Vr(this,h.animation,Xt),Xt.currentTimeline.applyStylesToKeyframe(),Ne=Math.max(Ne,Xt.currentTimeline.currentTime)}),v.currentQueryIndex=0,v.currentQueryTotal=0,v.transformIntoNewTimeline(Ne),ot&&(v.currentTimeline.mergeTimelineCollectedStyles(ot),v.currentTimeline.snapshotCurrentStyles()),v.previousNode=h}visitStagger(h,v){const I=v.parentContext,te=v.currentTimeline,me=h.timings,Ne=Math.abs(me.duration),Fe=Ne*(v.currentQueryTotal-1);let ot=Ne*v.currentQueryIndex;switch(me.duration<0?"reverse":me.easing){case"reverse":ot=Fe-ot;break;case"full":ot=I.currentStaggerTime}const nn=v.currentTimeline;ot&&nn.delayNextStep(ot);const Xt=nn.currentTime;Vr(this,h.animation,v),v.previousNode=h,I.currentStaggerTime=te.currentTime-Xt+(te.startTime-I.currentTimeline.startTime)}}const Gn={};class Es{constructor(h,v,I,te,me,Ne,Fe,ot){this._driver=h,this.element=v,this.subInstructions=I,this._enterClassName=te,this._leaveClassName=me,this.errors=Ne,this.timelines=Fe,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Gn,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=ot||new Zi(this._driver,v,0),Fe.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(h,v){if(!h)return;const I=h;let te=this.options;null!=I.duration&&(te.duration=X(I.duration)),null!=I.delay&&(te.delay=X(I.delay));const me=I.params;if(me){let Ne=te.params;Ne||(Ne=this.options.params={}),Object.keys(me).forEach(Fe=>{(!v||!Ne.hasOwnProperty(Fe))&&(Ne[Fe]=_i(me[Fe],Ne,this.errors))})}}_copyOptions(){const h={};if(this.options){const v=this.options.params;if(v){const I=h.params={};Object.keys(v).forEach(te=>{I[te]=v[te]})}}return h}createSubContext(h=null,v,I){const te=v||this.element,me=new Es(this._driver,te,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(te,I||0));return me.previousNode=this.previousNode,me.currentAnimateTimings=this.currentAnimateTimings,me.options=this._copyOptions(),me.updateOptions(h),me.currentQueryIndex=this.currentQueryIndex,me.currentQueryTotal=this.currentQueryTotal,me.parentContext=this,this.subContextCount++,me}transformIntoNewTimeline(h){return this.previousNode=Gn,this.currentTimeline=this.currentTimeline.fork(this.element,h),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(h,v,I){const te={duration:v??h.duration,delay:this.currentTimeline.currentTime+(I??0)+h.delay,easing:""},me=new is(this._driver,h.element,h.keyframes,h.preStyleProps,h.postStyleProps,te,h.stretchStartingKeyframe);return this.timelines.push(me),te}incrementTime(h){this.currentTimeline.forwardTime(this.currentTimeline.duration+h)}delayNextStep(h){h>0&&this.currentTimeline.delayNextStep(h)}invokeQuery(h,v,I,te,me,Ne){let Fe=[];if(te&&Fe.push(this.element),h.length>0){h=(h=h.replace(bs,"."+this._enterClassName)).replace(Oi,"."+this._leaveClassName);let Dt=this._driver.query(this.element,h,1!=I);0!==I&&(Dt=I<0?Dt.slice(Dt.length+I,Dt.length):Dt.slice(0,I)),Fe.push(...Dt)}return!me&&0==Fe.length&&Ne.push(function Ut(W){return new d.vHH(3014,!1)}()),Fe}}class Zi{constructor(h,v,I,te){this._driver=h,this.element=v,this.startTime=I,this._elementTimelineStylesLookup=te,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(v),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(v,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(h){const v=1===this._keyframes.size&&this._pendingStyles.size;this.duration||v?(this.forwardTime(this.currentTime+h),v&&this.snapshotCurrentStyles()):this.startTime+=h}fork(h,v){return this.applyStylesToKeyframe(),new Zi(this._driver,h,v||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(h){this.applyStylesToKeyframe(),this.duration=h,this._loadKeyframe()}_updateStyle(h,v){this._localTimelineStyles.set(h,v),this._globalTimelineStyles.set(h,v),this._styleSummary.set(h,{time:this.currentTime,value:v})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(h){h&&this._previousKeyframe.set("easing",h);for(let[v,I]of this._globalTimelineStyles)this._backFill.set(v,I||J),this._currentKeyframe.set(v,J);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(h,v,I,te){v&&this._previousKeyframe.set("easing",v);const me=te&&te.params||{},Ne=function ss(W,h){const v=new Map;let I;return W.forEach(te=>{if("*"===te){I=I||h.keys();for(let me of I)v.set(me,J)}else bn(te,v)}),v}(h,this._globalTimelineStyles);for(let[Fe,ot]of Ne){const Dt=_i(ot,me,I);this._pendingStyles.set(Fe,Dt),this._localTimelineStyles.has(Fe)||this._backFill.set(Fe,this._globalTimelineStyles.get(Fe)??J),this._updateStyle(Fe,Dt)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((h,v)=>{this._currentKeyframe.set(v,h)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((h,v)=>{this._currentKeyframe.has(v)||this._currentKeyframe.set(v,h)}))}snapshotCurrentStyles(){for(let[h,v]of this._localTimelineStyles)this._pendingStyles.set(h,v),this._updateStyle(h,v)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const h=[];for(let v in this._currentKeyframe)h.push(v);return h}mergeTimelineCollectedStyles(h){h._styleSummary.forEach((v,I)=>{const te=this._styleSummary.get(I);(!te||v.time>te.time)&&this._updateStyle(I,v.value)})}buildKeyframes(){this.applyStylesToKeyframe();const h=new Set,v=new Set,I=1===this._keyframes.size&&0===this.duration;let te=[];this._keyframes.forEach((Fe,ot)=>{const Dt=bn(Fe,new Map,this._backFill);Dt.forEach((nn,Xt)=>{"!"===nn?h.add(Xt):nn===J&&v.add(Xt)}),I||Dt.set("offset",ot/this.duration),te.push(Dt)});const me=h.size?Ti(h.values()):[],Ne=v.size?Ti(v.values()):[];if(I){const Fe=te[0],ot=new Map(Fe);Fe.set("offset",0),ot.set("offset",1),te=[Fe,ot]}return Wr(this.element,te,me,Ne,this.duration,this.startTime,this.easing,!1)}}class is extends Zi{constructor(h,v,I,te,me,Ne,Fe=!1){super(h,v,Ne.delay),this.keyframes=I,this.preStyleProps=te,this.postStyleProps=me,this._stretchStartingKeyframe=Fe,this.timings={duration:Ne.duration,delay:Ne.delay,easing:Ne.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let h=this.keyframes,{delay:v,duration:I,easing:te}=this.timings;if(this._stretchStartingKeyframe&&v){const me=[],Ne=I+v,Fe=v/Ne,ot=bn(h[0]);ot.set("offset",0),me.push(ot);const Dt=bn(h[0]);Dt.set("offset",Pr(Fe)),me.push(Dt);const nn=h.length-1;for(let Xt=1;Xt<=nn;Xt++){let Cn=bn(h[Xt]);const Vn=Cn.get("offset");Cn.set("offset",Pr((v+Vn*I)/Ne)),me.push(Cn)}I=Ne,v=0,te="",h=me}return Wr(this.element,h,this.preStyleProps,this.postStyleProps,I,v,te,!0)}}function Pr(W,h=3){const v=Math.pow(10,h-1);return Math.round(W*v)/v}class ji{}const Pn=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 et extends ji{normalizePropertyName(h,v){return Wi(h)}normalizeStyleValue(h,v,I,te){let me="";const Ne=I.toString().trim();if(Pn.has(v)&&0!==I&&"0"!==I)if("number"==typeof I)me="px";else{const Fe=I.match(/^[+-]?[\d\.]+([a-z]*)$/);Fe&&0==Fe[1].length&&te.push(function Et(W,h){return new d.vHH(3005,!1)}())}return Ne+me}}function xt(W,h,v,I,te,me,Ne,Fe,ot,Dt,nn,Xt,Cn){return{type:0,element:W,triggerName:h,isRemovalTransition:te,fromState:v,fromStyles:me,toState:I,toStyles:Ne,timelines:Fe,queriedElements:ot,preStyleProps:Dt,postStyleProps:nn,totalTime:Xt,errors:Cn}}const hn={};class Gr{constructor(h,v,I){this._triggerName=h,this.ast=v,this._stateStyles=I}match(h,v,I,te){return function fi(W,h,v,I,te){return W.some(me=>me(h,v,I,te))}(this.ast.matchers,h,v,I,te)}buildStyles(h,v,I){let te=this._stateStyles.get("*");return void 0!==h&&(te=this._stateStyles.get(h?.toString())||te),te?te.buildStyles(v,I):new Map}build(h,v,I,te,me,Ne,Fe,ot,Dt,nn){const Xt=[],Cn=this.ast.options&&this.ast.options.params||hn,An=this.buildStyles(I,Fe&&Fe.params||hn,Xt),Fn=ot&&ot.params||hn,E=this.buildStyles(te,Fn,Xt),M=new Set,y=new Map,x=new Map,G="void"===te,he={params:Hs(Fn,Cn),delay:this.ast.options?.delay},Se=nn?[]:Ii(h,v,this.ast.animation,me,Ne,An,E,he,Dt,Xt);let lt=0;if(Se.forEach(en=>{lt=Math.max(en.duration+en.delay,lt)}),Xt.length)return xt(v,this._triggerName,I,te,G,An,E,[],[],y,x,lt,Xt);Se.forEach(en=>{const kn=en.element,Rr=$n(y,kn,new Set);en.preStyleProps.forEach(hi=>Rr.add(hi));const or=$n(x,kn,new Set);en.postStyleProps.forEach(hi=>or.add(hi)),kn!==v&&M.add(kn)});const pt=Ti(M.values());return xt(v,this._triggerName,I,te,G,An,E,Se,pt,y,x,lt)}}function Hs(W,h){const v=mt(h);for(const I in W)W.hasOwnProperty(I)&&null!=W[I]&&(v[I]=W[I]);return v}class po{constructor(h,v,I){this.styles=h,this.defaultParams=v,this.normalizer=I}buildStyles(h,v){const I=new Map,te=mt(this.defaultParams);return Object.keys(h).forEach(me=>{const Ne=h[me];null!==Ne&&(te[me]=Ne)}),this.styles.styles.forEach(me=>{"string"!=typeof me&&me.forEach((Ne,Fe)=>{Ne&&(Ne=_i(Ne,te,v));const ot=this.normalizer.normalizePropertyName(Fe,v);Ne=this.normalizer.normalizeStyleValue(Fe,ot,Ne,v),I.set(Fe,Ne)})}),I}}class Xs{constructor(h,v,I){this.name=h,this.ast=v,this._normalizer=I,this.transitionFactories=[],this.states=new Map,v.states.forEach(te=>{this.states.set(te.name,new po(te.style,te.options&&te.options.params||{},I))}),qs(this.states,"true","1"),qs(this.states,"false","0"),v.transitions.forEach(te=>{this.transitionFactories.push(new Gr(h,te,this.states))}),this.fallbackTransition=function Co(W,h,v){return new Gr(W,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Ne,Fe)=>!0],options:null,queryCount:0,depCount:0},h)}(h,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(h,v,I,te){return this.transitionFactories.find(Ne=>Ne.match(h,v,I,te))||null}matchStyles(h,v,I){return this.fallbackTransition.buildStyles(h,v,I)}}function qs(W,h,v){W.has(h)?W.has(v)||W.set(v,W.get(h)):W.has(v)&&W.set(h,W.get(v))}const Y=new Si;class re{constructor(h,v,I){this.bodyNode=h,this._driver=v,this._normalizer=I,this._animations=new Map,this._playersById=new Map,this.players=[]}register(h,v){const I=[],me=Nr(this._driver,v,I,[]);if(I.length)throw function wr(W){return new d.vHH(3503,!1)}();this._animations.set(h,me)}_buildPlayer(h,v,I){const te=h.element,me=Un(this._normalizer,h.keyframes,v,I);return this._driver.animate(te,me,h.duration,h.delay,h.easing,[],!0)}create(h,v,I={}){const te=[],me=this._animations.get(h);let Ne;const Fe=new Map;if(me?(Ne=Ii(this._driver,v,me,Ur,ai,new Map,new Map,I,Y,te),Ne.forEach(nn=>{const Xt=$n(Fe,nn.element,new Map);nn.postStyleProps.forEach(Cn=>Xt.set(Cn,null))})):(te.push(function Or(){return new d.vHH(3300,!1)}()),Ne=[]),te.length)throw function Ir(W){return new d.vHH(3504,!1)}();Fe.forEach((nn,Xt)=>{nn.forEach((Cn,Vn)=>{nn.set(Vn,this._driver.computeStyle(Xt,Vn,J))})});const Dt=Vt(Ne.map(nn=>{const Xt=Fe.get(nn.element);return this._buildPlayer(nn,new Map,Xt)}));return this._playersById.set(h,Dt),Dt.onDestroy(()=>this.destroy(h)),this.players.push(Dt),Dt}destroy(h){const v=this._getPlayer(h);v.destroy(),this._playersById.delete(h);const I=this.players.indexOf(v);I>=0&&this.players.splice(I,1)}_getPlayer(h){const v=this._playersById.get(h);if(!v)throw function Br(W){return new d.vHH(3301,!1)}();return v}listen(h,v,I,te){const me=an(v,"","","");return sn(this._getPlayer(h),I,me,te),()=>{}}command(h,v,I,te){if("register"==I)return void this.register(h,te[0]);if("create"==I)return void this.create(h,v,te[0]||{});const me=this._getPlayer(h);switch(I){case"play":me.play();break;case"pause":me.pause();break;case"reset":me.reset();break;case"restart":me.restart();break;case"finish":me.finish();break;case"init":me.init();break;case"setPosition":me.setPosition(parseFloat(te[0]));break;case"destroy":this.destroy(h)}}}const N="ng-animate-queued",Re="ng-animate-disabled",os=[],eo={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Pa={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},as="__ng_removed";class to{get params(){return this.options.params}constructor(h,v=""){this.namespaceId=v;const I=h&&h.hasOwnProperty("value");if(this.value=function To(W){return W??null}(I?h.value:h),I){const me=mt(h);delete me.value,this.options=me}else this.options={};this.options.params||(this.options.params={})}absorbOptions(h){const v=h.params;if(v){const I=this.options.params;Object.keys(v).forEach(te=>{null==I[te]&&(I[te]=v[te])})}}}const Vs="void",Go=new to(Vs);class Ra{constructor(h,v,I){this.id=h,this.hostElement=v,this._engine=I,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+h,Ni(v,this._hostClassName)}listen(h,v,I,te){if(!this._triggers.has(v))throw function oi(W,h){return new d.vHH(3302,!1)}();if(null==I||0==I.length)throw function zn(W){return new d.vHH(3303,!1)}();if(!function pi(W){return"start"==W||"done"==W}(I))throw function dt(W,h){return new d.vHH(3400,!1)}();const me=$n(this._elementListeners,h,[]),Ne={name:v,phase:I,callback:te};me.push(Ne);const Fe=$n(this._engine.statesByElement,h,new Map);return Fe.has(v)||(Ni(h,pe),Ni(h,pe+"-"+v),Fe.set(v,Go)),()=>{this._engine.afterFlush(()=>{const ot=me.indexOf(Ne);ot>=0&&me.splice(ot,1),this._triggers.has(v)||Fe.delete(v)})}}register(h,v){return!this._triggers.has(h)&&(this._triggers.set(h,v),!0)}_getTrigger(h){const v=this._triggers.get(h);if(!v)throw function at(W){return new d.vHH(3401,!1)}();return v}trigger(h,v,I,te=!0){const me=this._getTrigger(v),Ne=new ls(this.id,v,h);let Fe=this._engine.statesByElement.get(h);Fe||(Ni(h,pe),Ni(h,pe+"-"+v),this._engine.statesByElement.set(h,Fe=new Map));let ot=Fe.get(v);const Dt=new to(I,this.id);if(!(I&&I.hasOwnProperty("value"))&&ot&&Dt.absorbOptions(ot.options),Fe.set(v,Dt),ot||(ot=Go),Dt.value!==Vs&&ot.value===Dt.value){if(!function wo(W,h){const v=Object.keys(W),I=Object.keys(h);if(v.length!=I.length)return!1;for(let te=0;te{ir(h,E),Nn(h,M)})}return}const Cn=$n(this._engine.playersByElement,h,[]);Cn.forEach(Fn=>{Fn.namespaceId==this.id&&Fn.triggerName==v&&Fn.queued&&Fn.destroy()});let Vn=me.matchTransition(ot.value,Dt.value,h,Dt.params),An=!1;if(!Vn){if(!te)return;Vn=me.fallbackTransition,An=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:h,triggerName:v,transition:Vn,fromState:ot,toState:Dt,player:Ne,isFallbackTransition:An}),An||(Ni(h,N),Ne.onStart(()=>{Ps(h,N)})),Ne.onDone(()=>{let Fn=this.players.indexOf(Ne);Fn>=0&&this.players.splice(Fn,1);const E=this._engine.playersByElement.get(h);if(E){let M=E.indexOf(Ne);M>=0&&E.splice(M,1)}}),this.players.push(Ne),Cn.push(Ne),Ne}deregister(h){this._triggers.delete(h),this._engine.statesByElement.forEach(v=>v.delete(h)),this._elementListeners.forEach((v,I)=>{this._elementListeners.set(I,v.filter(te=>te.name!=h))})}clearElementCache(h){this._engine.statesByElement.delete(h),this._elementListeners.delete(h);const v=this._engine.playersByElement.get(h);v&&(v.forEach(I=>I.destroy()),this._engine.playersByElement.delete(h))}_signalRemovalForInnerTriggers(h,v){const I=this._engine.driver.query(h,z,!0);I.forEach(te=>{if(te[as])return;const me=this._engine.fetchNamespacesByElement(te);me.size?me.forEach(Ne=>Ne.triggerLeaveAnimation(te,v,!1,!0)):this.clearElementCache(te)}),this._engine.afterFlushAnimationsDone(()=>I.forEach(te=>this.clearElementCache(te)))}triggerLeaveAnimation(h,v,I,te){const me=this._engine.statesByElement.get(h),Ne=new Map;if(me){const Fe=[];if(me.forEach((ot,Dt)=>{if(Ne.set(Dt,ot.value),this._triggers.has(Dt)){const nn=this.trigger(h,Dt,Vs,te);nn&&Fe.push(nn)}}),Fe.length)return this._engine.markElementAsRemoved(this.id,h,!0,v,Ne),I&&Vt(Fe).onDone(()=>this._engine.processLeaveNode(h)),!0}return!1}prepareLeaveAnimationListeners(h){const v=this._elementListeners.get(h),I=this._engine.statesByElement.get(h);if(v&&I){const te=new Set;v.forEach(me=>{const Ne=me.name;if(te.has(Ne))return;te.add(Ne);const ot=this._triggers.get(Ne).fallbackTransition,Dt=I.get(Ne)||Go,nn=new to(Vs),Xt=new ls(this.id,Ne,h);this._engine.totalQueuedPlayers++,this._queue.push({element:h,triggerName:Ne,transition:ot,fromState:Dt,toState:nn,player:Xt,isFallbackTransition:!0})})}}removeNode(h,v){const I=this._engine;if(h.childElementCount&&this._signalRemovalForInnerTriggers(h,v),this.triggerLeaveAnimation(h,v,!0))return;let te=!1;if(I.totalAnimations){const me=I.players.length?I.playersByQueriedElement.get(h):[];if(me&&me.length)te=!0;else{let Ne=h;for(;Ne=Ne.parentNode;)if(I.statesByElement.get(Ne)){te=!0;break}}}if(this.prepareLeaveAnimationListeners(h),te)I.markElementAsRemoved(this.id,h,!1,v);else{const me=h[as];(!me||me===eo)&&(I.afterFlush(()=>this.clearElementCache(h)),I.destroyInnerAnimations(h),I._onRemovalComplete(h,v))}}insertNode(h,v){Ni(h,this._hostClassName)}drainQueuedTransitions(h){const v=[];return this._queue.forEach(I=>{const te=I.player;if(te.destroyed)return;const me=I.element,Ne=this._elementListeners.get(me);Ne&&Ne.forEach(Fe=>{if(Fe.name==I.triggerName){const ot=an(me,I.triggerName,I.fromState.value,I.toState.value);ot._data=h,sn(I.player,Fe.phase,ot,Fe.callback)}}),te.markedForDestroy?this._engine.afterFlush(()=>{te.destroy()}):v.push(I)}),this._queue=[],v.sort((I,te)=>{const me=I.transition.ast.depCount,Ne=te.transition.ast.depCount;return 0==me||0==Ne?me-Ne:this._engine.driver.containsElement(I.element,te.element)?1:-1})}destroy(h){this.players.forEach(v=>v.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,h)}}class ho{_onRemovalComplete(h,v){this.onRemovalComplete(h,v)}constructor(h,v,I){this.bodyNode=h,this.driver=v,this._normalizer=I,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=(te,me)=>{}}get queuedPlayers(){const h=[];return this._namespaceList.forEach(v=>{v.players.forEach(I=>{I.queued&&h.push(I)})}),h}createNamespace(h,v){const I=new Ra(h,v,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,v)?this._balanceNamespaceList(I,v):(this.newHostElements.set(v,I),this.collectEnterElement(v)),this._namespaceLookup[h]=I}_balanceNamespaceList(h,v){const I=this._namespaceList,te=this.namespacesByHostElement;if(I.length-1>=0){let Ne=!1,Fe=this.driver.getParentElement(v);for(;Fe;){const ot=te.get(Fe);if(ot){const Dt=I.indexOf(ot);I.splice(Dt+1,0,h),Ne=!0;break}Fe=this.driver.getParentElement(Fe)}Ne||I.unshift(h)}else I.push(h);return te.set(v,h),h}register(h,v){let I=this._namespaceLookup[h];return I||(I=this.createNamespace(h,v)),I}registerTrigger(h,v,I){let te=this._namespaceLookup[h];te&&te.register(v,I)&&this.totalAnimations++}destroy(h,v){h&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const I=this._fetchNamespace(h);this.namespacesByHostElement.delete(I.hostElement);const te=this._namespaceList.indexOf(I);te>=0&&this._namespaceList.splice(te,1),I.destroy(v),delete this._namespaceLookup[h]}))}_fetchNamespace(h){return this._namespaceLookup[h]}fetchNamespacesByElement(h){const v=new Set,I=this.statesByElement.get(h);if(I)for(let te of I.values())if(te.namespaceId){const me=this._fetchNamespace(te.namespaceId);me&&v.add(me)}return v}trigger(h,v,I,te){if(Yi(v)){const me=this._fetchNamespace(h);if(me)return me.trigger(v,I,te),!0}return!1}insertNode(h,v,I,te){if(!Yi(v))return;const me=v[as];if(me&&me.setForRemoval){me.setForRemoval=!1,me.setForMove=!0;const Ne=this.collectedLeaveElements.indexOf(v);Ne>=0&&this.collectedLeaveElements.splice(Ne,1)}if(h){const Ne=this._fetchNamespace(h);Ne&&Ne.insertNode(v,I)}te&&this.collectEnterElement(v)}collectEnterElement(h){this.collectedEnterElements.push(h)}markElementAsDisabled(h,v){v?this.disabledNodes.has(h)||(this.disabledNodes.add(h),Ni(h,Re)):this.disabledNodes.has(h)&&(this.disabledNodes.delete(h),Ps(h,Re))}removeNode(h,v,I){if(Yi(v)){const te=h?this._fetchNamespace(h):null;te?te.removeNode(v,I):this.markElementAsRemoved(h,v,!1,I);const me=this.namespacesByHostElement.get(v);me&&me.id!==h&&me.removeNode(v,I)}else this._onRemovalComplete(v,I)}markElementAsRemoved(h,v,I,te,me){this.collectedLeaveElements.push(v),v[as]={namespaceId:h,setForRemoval:te,hasAnimation:I,removedBeforeQueried:!1,previousTriggersValues:me}}listen(h,v,I,te,me){return Yi(v)?this._fetchNamespace(h).listen(v,I,te,me):()=>{}}_buildInstruction(h,v,I,te,me){return h.transition.build(this.driver,h.element,h.fromState.value,h.toState.value,I,te,h.fromState.options,h.toState.options,v,me)}destroyInnerAnimations(h){let v=this.driver.query(h,z,!0);v.forEach(I=>this.destroyActiveAnimationsForElement(I)),0!=this.playersByQueriedElement.size&&(v=this.driver.query(h,D,!0),v.forEach(I=>this.finishActiveQueriedAnimationOnElement(I)))}destroyActiveAnimationsForElement(h){const v=this.playersByElement.get(h);v&&v.forEach(I=>{I.queued?I.markedForDestroy=!0:I.destroy()})}finishActiveQueriedAnimationOnElement(h){const v=this.playersByQueriedElement.get(h);v&&v.forEach(I=>I.finish())}whenRenderingDone(){return new Promise(h=>{if(this.players.length)return Vt(this.players).onDone(()=>h());h()})}processLeaveNode(h){const v=h[as];if(v&&v.setForRemoval){if(h[as]=eo,v.namespaceId){this.destroyInnerAnimations(h);const I=this._fetchNamespace(v.namespaceId);I&&I.clearElementCache(h)}this._onRemovalComplete(h,v.setForRemoval)}h.classList?.contains(Re)&&this.markElementAsDisabled(h,!1),this.driver.query(h,".ng-animate-disabled",!0).forEach(I=>{this.markElementAsDisabled(I,!1)})}flush(h=-1){let v=[];if(this.newHostElements.size&&(this.newHostElements.forEach((I,te)=>this._balanceNamespaceList(I,te)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let I=0;II()),this._flushFns=[],this._whenQuietFns.length){const I=this._whenQuietFns;this._whenQuietFns=[],v.length?Vt(v).onDone(()=>{I.forEach(te=>te())}):I.forEach(te=>te())}}reportError(h){throw function we(W){return new d.vHH(3402,!1)}()}_flushAnimations(h,v){const I=new Si,te=[],me=new Map,Ne=[],Fe=new Map,ot=new Map,Dt=new Map,nn=new Set;this.disabledNodes.forEach(gn=>{nn.add(gn);const xn=this.driver.query(gn,".ng-animate-queued",!0);for(let yn=0;yn{const yn=Ur+Fn++;An.set(xn,yn),gn.forEach(tr=>Ni(tr,yn))});const E=[],M=new Set,y=new Set;for(let gn=0;gnM.add(tr)):y.add(xn))}const x=new Map,G=no(Cn,Array.from(M));G.forEach((gn,xn)=>{const yn=ai+Fn++;x.set(xn,yn),gn.forEach(tr=>Ni(tr,yn))}),h.push(()=>{Vn.forEach((gn,xn)=>{const yn=An.get(xn);gn.forEach(tr=>Ps(tr,yn))}),G.forEach((gn,xn)=>{const yn=x.get(xn);gn.forEach(tr=>Ps(tr,yn))}),E.forEach(gn=>{this.processLeaveNode(gn)})});const he=[],Se=[];for(let gn=this._namespaceList.length-1;gn>=0;gn--)this._namespaceList[gn].drainQueuedTransitions(v).forEach(yn=>{const tr=yn.player,ar=yn.element;if(he.push(tr),this.collectedEnterElements.length){const ri=ar[as];if(ri&&ri.setForMove){if(ri.previousTriggersValues&&ri.previousTriggersValues.has(yn.triggerName)){const Xi=ri.previousTriggersValues.get(yn.triggerName),ps=this.statesByElement.get(yn.element);if(ps&&ps.has(yn.triggerName)){const ao=ps.get(yn.triggerName);ao.value=Xi,ps.set(yn.triggerName,ao)}}return void tr.destroy()}}const Ss=!Xt||!this.driver.containsElement(Xt,ar),Qi=x.get(ar),fr=An.get(ar),ni=this._buildInstruction(yn,I,fr,Qi,Ss);if(ni.errors&&ni.errors.length)return void Se.push(ni);if(Ss)return tr.onStart(()=>ir(ar,ni.fromStyles)),tr.onDestroy(()=>Nn(ar,ni.toStyles)),void te.push(tr);if(yn.isFallbackTransition)return tr.onStart(()=>ir(ar,ni.fromStyles)),tr.onDestroy(()=>Nn(ar,ni.toStyles)),void te.push(tr);const Jo=[];ni.timelines.forEach(ri=>{ri.stretchStartingKeyframe=!0,this.disabledNodes.has(ri.element)||Jo.push(ri)}),ni.timelines=Jo,I.append(ar,ni.timelines),Ne.push({instruction:ni,player:tr,element:ar}),ni.queriedElements.forEach(ri=>$n(Fe,ri,[]).push(tr)),ni.preStyleProps.forEach((ri,Xi)=>{if(ri.size){let ps=ot.get(Xi);ps||ot.set(Xi,ps=new Set),ri.forEach((ao,lo)=>ps.add(lo))}}),ni.postStyleProps.forEach((ri,Xi)=>{let ps=Dt.get(Xi);ps||Dt.set(Xi,ps=new Set),ri.forEach((ao,lo)=>ps.add(lo))})});if(Se.length){const gn=[];Se.forEach(xn=>{gn.push(function yt(W,h){return new d.vHH(3505,!1)}())}),he.forEach(xn=>xn.destroy()),this.reportError(gn)}const lt=new Map,pt=new Map;Ne.forEach(gn=>{const xn=gn.element;I.has(xn)&&(pt.set(xn,xn),this._beforeAnimationBuild(gn.player.namespaceId,gn.instruction,lt))}),te.forEach(gn=>{const xn=gn.element;this._getPreviousPlayers(xn,!1,gn.namespaceId,gn.triggerName,null).forEach(tr=>{$n(lt,xn,[]).push(tr),tr.destroy()})});const en=E.filter(gn=>Mo(gn,ot,Dt)),kn=new Map;yi(kn,this.driver,y,Dt,J).forEach(gn=>{Mo(gn,ot,Dt)&&en.push(gn)});const or=new Map;Vn.forEach((gn,xn)=>{yi(or,this.driver,new Set(gn),ot,"!")}),en.forEach(gn=>{const xn=kn.get(gn),yn=or.get(gn);kn.set(gn,new Map([...xn?.entries()??[],...yn?.entries()??[]]))});const hi=[],Gs=[],Ns={};Ne.forEach(gn=>{const{element:xn,player:yn,instruction:tr}=gn;if(I.has(xn)){if(nn.has(xn))return yn.onDestroy(()=>Nn(xn,tr.toStyles)),yn.disabled=!0,yn.overrideTotalTime(tr.totalTime),void te.push(yn);let ar=Ns;if(pt.size>1){let Qi=xn;const fr=[];for(;Qi=Qi.parentNode;){const ni=pt.get(Qi);if(ni){ar=ni;break}fr.push(Qi)}fr.forEach(ni=>pt.set(ni,ar))}const Ss=this._buildAnimation(yn.namespaceId,tr,lt,me,or,kn);if(yn.setRealPlayer(Ss),ar===Ns)hi.push(yn);else{const Qi=this.playersByElement.get(ar);Qi&&Qi.length&&(yn.parentPlayer=Vt(Qi)),te.push(yn)}}else ir(xn,tr.fromStyles),yn.onDestroy(()=>Nn(xn,tr.toStyles)),Gs.push(yn),nn.has(xn)&&te.push(yn)}),Gs.forEach(gn=>{const xn=me.get(gn.element);if(xn&&xn.length){const yn=Vt(xn);gn.setRealPlayer(yn)}}),te.forEach(gn=>{gn.parentPlayer?gn.syncPlayerEvents(gn.parentPlayer):gn.destroy()});for(let gn=0;gn!Ss.destroyed);ar.length?ro(this,xn,ar):this.processLeaveNode(xn)}return E.length=0,hi.forEach(gn=>{this.players.push(gn),gn.onDone(()=>{gn.destroy();const xn=this.players.indexOf(gn);this.players.splice(xn,1)}),gn.play()}),hi}afterFlush(h){this._flushFns.push(h)}afterFlushAnimationsDone(h){this._whenQuietFns.push(h)}_getPreviousPlayers(h,v,I,te,me){let Ne=[];if(v){const Fe=this.playersByQueriedElement.get(h);Fe&&(Ne=Fe)}else{const Fe=this.playersByElement.get(h);if(Fe){const ot=!me||me==Vs;Fe.forEach(Dt=>{Dt.queued||!ot&&Dt.triggerName!=te||Ne.push(Dt)})}}return(I||te)&&(Ne=Ne.filter(Fe=>!(I&&I!=Fe.namespaceId||te&&te!=Fe.triggerName))),Ne}_beforeAnimationBuild(h,v,I){const me=v.element,Ne=v.isRemovalTransition?void 0:h,Fe=v.isRemovalTransition?void 0:v.triggerName;for(const ot of v.timelines){const Dt=ot.element,nn=Dt!==me,Xt=$n(I,Dt,[]);this._getPreviousPlayers(Dt,nn,Ne,Fe,v.toState).forEach(Vn=>{const An=Vn.getRealPlayer();An.beforeDestroy&&An.beforeDestroy(),Vn.destroy(),Xt.push(Vn)})}ir(me,v.fromStyles)}_buildAnimation(h,v,I,te,me,Ne){const Fe=v.triggerName,ot=v.element,Dt=[],nn=new Set,Xt=new Set,Cn=v.timelines.map(An=>{const Fn=An.element;nn.add(Fn);const E=Fn[as];if(E&&E.removedBeforeQueried)return new tt(An.duration,An.delay);const M=Fn!==ot,y=function io(W){const h=[];return go(W,h),h}((I.get(Fn)||os).map(lt=>lt.getRealPlayer())).filter(lt=>!!lt.element&<.element===Fn),x=me.get(Fn),G=Ne.get(Fn),he=Un(this._normalizer,An.keyframes,x,G),Se=this._buildPlayer(An,he,y);if(An.subTimeline&&te&&Xt.add(Fn),M){const lt=new ls(h,Fe,Fn);lt.setRealPlayer(Se),Dt.push(lt)}return Se});Dt.forEach(An=>{$n(this.playersByQueriedElement,An.element,[]).push(An),An.onDone(()=>function cs(W,h,v){let I=W.get(h);if(I){if(I.length){const te=I.indexOf(v);I.splice(te,1)}0==I.length&&W.delete(h)}return I}(this.playersByQueriedElement,An.element,An))}),nn.forEach(An=>Ni(An,K));const Vn=Vt(Cn);return Vn.onDestroy(()=>{nn.forEach(An=>Ps(An,K)),Nn(ot,v.toStyles)}),Xt.forEach(An=>{$n(te,An,[]).push(Vn)}),Vn}_buildPlayer(h,v,I){return v.length>0?this.driver.animate(h.element,v,h.duration,h.delay,h.easing,I):new tt(h.duration,h.delay)}}class ls{constructor(h,v,I){this.namespaceId=h,this.triggerName=v,this.element=I,this._player=new tt,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(h){this._containsRealPlayer||(this._player=h,this._queuedCallbacks.forEach((v,I)=>{v.forEach(te=>sn(h,I,void 0,te))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(h.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(h){this.totalTime=h}syncPlayerEvents(h){const v=this._player;v.triggerCallback&&h.onStart(()=>v.triggerCallback("start")),h.onDone(()=>this.finish()),h.onDestroy(()=>this.destroy())}_queueEvent(h,v){$n(this._queuedCallbacks,h,[]).push(v)}onDone(h){this.queued&&this._queueEvent("done",h),this._player.onDone(h)}onStart(h){this.queued&&this._queueEvent("start",h),this._player.onStart(h)}onDestroy(h){this.queued&&this._queueEvent("destroy",h),this._player.onDestroy(h)}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(h){this.queued||this._player.setPosition(h)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(h){const v=this._player;v.triggerCallback&&v.triggerCallback(h)}}function Yi(W){return W&&1===W.nodeType}function us(W,h){const v=W.style.display;return W.style.display=h??"none",v}function yi(W,h,v,I,te){const me=[];v.forEach(ot=>me.push(us(ot)));const Ne=[];I.forEach((ot,Dt)=>{const nn=new Map;ot.forEach(Xt=>{const Cn=h.computeStyle(Dt,Xt,te);nn.set(Xt,Cn),(!Cn||0==Cn.length)&&(Dt[as]=Pa,Ne.push(Dt))}),W.set(Dt,nn)});let Fe=0;return v.forEach(ot=>us(ot,me[Fe++])),Ne}function no(W,h){const v=new Map;if(W.forEach(Fe=>v.set(Fe,[])),0==h.length)return v;const te=new Set(h),me=new Map;function Ne(Fe){if(!Fe)return 1;let ot=me.get(Fe);if(ot)return ot;const Dt=Fe.parentNode;return ot=v.has(Dt)?Dt:te.has(Dt)?1:Ne(Dt),me.set(Fe,ot),ot}return h.forEach(Fe=>{const ot=Ne(Fe);1!==ot&&v.get(ot).push(Fe)}),v}function Ni(W,h){W.classList?.add(h)}function Ps(W,h){W.classList?.remove(h)}function ro(W,h,v){Vt(v).onDone(()=>W.processLeaveNode(h))}function go(W,h){for(let v=0;vte.add(me)):h.set(W,I),v.delete(W),!0}class so{constructor(h,v,I){this.bodyNode=h,this._driver=v,this._normalizer=I,this._triggerCache={},this.onRemovalComplete=(te,me)=>{},this._transitionEngine=new ho(h,v,I),this._timelineEngine=new re(h,v,I),this._transitionEngine.onRemovalComplete=(te,me)=>this.onRemovalComplete(te,me)}registerTrigger(h,v,I,te,me){const Ne=h+"-"+te;let Fe=this._triggerCache[Ne];if(!Fe){const ot=[],nn=Nr(this._driver,me,ot,[]);if(ot.length)throw function nr(W,h){return new d.vHH(3404,!1)}();Fe=function Ds(W,h,v){return new Xs(W,h,v)}(te,nn,this._normalizer),this._triggerCache[Ne]=Fe}this._transitionEngine.registerTrigger(v,te,Fe)}register(h,v){this._transitionEngine.register(h,v)}destroy(h,v){this._transitionEngine.destroy(h,v)}onInsert(h,v,I,te){this._transitionEngine.insertNode(h,v,I,te)}onRemove(h,v,I){this._transitionEngine.removeNode(h,v,I)}disableAnimations(h,v){this._transitionEngine.markElementAsDisabled(h,v)}process(h,v,I,te){if("@"==I.charAt(0)){const[me,Ne]=Qe(I);this._timelineEngine.command(me,v,Ne,te)}else this._transitionEngine.trigger(h,v,I,te)}listen(h,v,I,te,me){if("@"==I.charAt(0)){const[Ne,Fe]=Qe(I);return this._timelineEngine.listen(Ne,v,Fe,me)}return this._transitionEngine.listen(h,v,I,te,me)}flush(h=-1){this._transitionEngine.flush(h)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(h){this._transitionEngine.afterFlushAnimationsDone(h)}}let ua=(()=>{class W{static#e=this.initialStylesByElement=new WeakMap;constructor(v,I,te){this._element=v,this._startStyles=I,this._endStyles=te,this._state=0;let me=W.initialStylesByElement.get(v);me||W.initialStylesByElement.set(v,me=new Map),this._initialStyles=me}start(){this._state<1&&(this._startStyles&&Nn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Nn(this._element,this._initialStyles),this._endStyles&&(Nn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(W.initialStylesByElement.delete(this._element),this._startStyles&&(ir(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ir(this._element,this._endStyles),this._endStyles=null),Nn(this._element,this._initialStyles),this._state=3)}}return W})();function Cs(W){let h=null;return W.forEach((v,I)=>{(function mo(W){return"display"===W||"position"===W})(I)&&(h=h||new Map,h.set(I,v))}),h}class Rs{constructor(h,v,I,te){this.element=h,this.keyframes=v,this.options=I,this._specialStyles=te,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=I.duration,this._delay=I.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(h=>h()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const h=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,h,this.options),this._finalKeyframe=h.length?h[h.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(h){const v=[];return h.forEach(I=>{v.push(Object.fromEntries(I))}),v}_triggerWebAnimation(h,v,I){return h.animate(this._convertKeyframesToObject(v),I)}onStart(h){this._originalOnStartFns.push(h),this._onStartFns.push(h)}onDone(h){this._originalOnDoneFns.push(h),this._onDoneFns.push(h)}onDestroy(h){this._onDestroyFns.push(h)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(h=>h()),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(h=>h()),this._onDestroyFns=[])}setPosition(h){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=h*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const h=new Map;this.hasStarted()&&this._finalKeyframe.forEach((I,te)=>{"offset"!==te&&h.set(te,this._finished?I:jn(this.element,te))}),this.currentSnapshot=h}triggerCallback(h){const v="start"===h?this._onStartFns:this._onDoneFns;v.forEach(I=>I()),v.length=0}}class da{validateStyleProperty(h){return!0}validateAnimatableStyleProperty(h){return!0}matchesElement(h,v){return!1}containsElement(h,v){return pr(h,v)}getParentElement(h){return Ue(h)}query(h,v,I){return jr(h,v,I)}computeStyle(h,v,I){return window.getComputedStyle(h)[v]}animate(h,v,I,te,me,Ne=[]){const ot={duration:I,delay:te,fill:0==te?"both":"forwards"};me&&(ot.easing=me);const Dt=new Map,nn=Ne.filter(Vn=>Vn instanceof Rs);(function ki(W,h){return 0===W||0===h})(I,te)&&nn.forEach(Vn=>{Vn.currentSnapshot.forEach((An,Fn)=>Dt.set(Fn,An))});let Xt=function ln(W){return W.length?W[0]instanceof Map?W:W.map(h=>$t(h)):[]}(v).map(Vn=>bn(Vn));Xt=function Gi(W,h,v){if(v.size&&h.length){let I=h[0],te=[];if(v.forEach((me,Ne)=>{I.has(Ne)||te.push(Ne),I.set(Ne,me)}),te.length)for(let me=1;meNe.set(Fe,jn(W,Fe)))}}return h}(h,Xt,Dt);const Cn=function ca(W,h){let v=null,I=null;return Array.isArray(h)&&h.length?(v=Cs(h[0]),h.length>1&&(I=Cs(h[h.length-1]))):h instanceof Map&&(v=Cs(h)),v||I?new ua(W,v,I):null}(h,Xt);return new Rs(h,Xt,ot,Cn)}}let fa=(()=>{class W extends Ee{constructor(v,I){super(),this._nextAnimationId=0,this._renderer=v.createRenderer(I.body,{id:"0",encapsulation:d.ifc.None,styles:[],data:{animation:[]}})}build(v){const I=this._nextAnimationId.toString();this._nextAnimationId++;const te=Array.isArray(v)?ae(v):v;return zo(this._renderer,null,I,"register",[te]),new pa(I,this._renderer)}static#e=this.\u0275fac=function(I){return new(I||W)(d.LFG(d.FYo),d.LFG(w.K0))};static#t=this.\u0275prov=d.Yz7({token:W,factory:W.\u0275fac})}return W})();class pa extends ze{constructor(h,v){super(),this._id=h,this._renderer=v}create(h,v){return new hl(this._id,h,v||{},this._renderer)}}class hl{constructor(h,v,I,te){this.id=h,this.element=v,this._renderer=te,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",I)}_listen(h,v){return this._renderer.listen(this.element,`@@${this.id}:${h}`,v)}_command(h,...v){return zo(this._renderer,this.element,this.id,h,v)}onDone(h){this._listen("done",h)}onStart(h){this._listen("start",h)}onDestroy(h){this._listen("destroy",h)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(h){this._command("setPosition",h)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function zo(W,h,v,I,te){return W.setProperty(h,`@@${v}:${I}`,te)}const Zo="@.disabled";let Ko=(()=>{class W{constructor(v,I,te){this.delegate=v,this.engine=I,this._zone=te,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,I.onRemovalComplete=(me,Ne)=>{const Fe=Ne?.parentNode(me);Fe&&Ne.removeChild(Fe,me)}}createRenderer(v,I){const me=this.delegate.createRenderer(v,I);if(!(v&&I&&I.data&&I.data.animation)){let nn=this._rendererCache.get(me);return nn||(nn=new _o("",me,this.engine,()=>this._rendererCache.delete(me)),this._rendererCache.set(me,nn)),nn}const Ne=I.id,Fe=I.id+"-"+this._currentId;this._currentId++,this.engine.register(Fe,v);const ot=nn=>{Array.isArray(nn)?nn.forEach(ot):this.engine.registerTrigger(Ne,Fe,v,nn.name,nn)};return I.data.animation.forEach(ot),new ha(this,Fe,me,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(v,I,te){v>=0&&vI(te)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(me=>{const[Ne,Fe]=me;Ne(Fe)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([I,te]))}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()}static#e=this.\u0275fac=function(I){return new(I||W)(d.LFG(d.FYo),d.LFG(so),d.LFG(d.R0b))};static#t=this.\u0275prov=d.Yz7({token:W,factory:W.\u0275fac})}return W})();class _o{constructor(h,v,I,te){this.namespaceId=h,this.delegate=v,this.engine=I,this._onDestroy=te}get data(){return this.delegate.data}destroyNode(h){this.delegate.destroyNode?.(h)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(h,v){return this.delegate.createElement(h,v)}createComment(h){return this.delegate.createComment(h)}createText(h){return this.delegate.createText(h)}appendChild(h,v){this.delegate.appendChild(h,v),this.engine.onInsert(this.namespaceId,v,h,!1)}insertBefore(h,v,I,te=!0){this.delegate.insertBefore(h,v,I),this.engine.onInsert(this.namespaceId,v,h,te)}removeChild(h,v,I){this.engine.onRemove(this.namespaceId,v,this.delegate)}selectRootElement(h,v){return this.delegate.selectRootElement(h,v)}parentNode(h){return this.delegate.parentNode(h)}nextSibling(h){return this.delegate.nextSibling(h)}setAttribute(h,v,I,te){this.delegate.setAttribute(h,v,I,te)}removeAttribute(h,v,I){this.delegate.removeAttribute(h,v,I)}addClass(h,v){this.delegate.addClass(h,v)}removeClass(h,v){this.delegate.removeClass(h,v)}setStyle(h,v,I,te){this.delegate.setStyle(h,v,I,te)}removeStyle(h,v,I){this.delegate.removeStyle(h,v,I)}setProperty(h,v,I){"@"==v.charAt(0)&&v==Zo?this.disableAnimations(h,!!I):this.delegate.setProperty(h,v,I)}setValue(h,v){this.delegate.setValue(h,v)}listen(h,v,I){return this.delegate.listen(h,v,I)}disableAnimations(h,v){this.engine.disableAnimations(h,v)}}class ha extends _o{constructor(h,v,I,te,me){super(v,I,te,me),this.factory=h,this.namespaceId=v}setProperty(h,v,I){"@"==v.charAt(0)?"."==v.charAt(1)&&v==Zo?this.disableAnimations(h,I=void 0===I||!!I):this.engine.process(this.namespaceId,h,v.slice(1),I):this.delegate.setProperty(h,v,I)}listen(h,v,I){if("@"==v.charAt(0)){const te=function Ao(W){switch(W){case"body":return document.body;case"document":return document;case"window":return window;default:return W}}(h);let me=v.slice(1),Ne="";return"@"!=me.charAt(0)&&([me,Ne]=function Na(W){const h=W.indexOf(".");return[W.substring(0,h),W.slice(h+1)]}(me)),this.engine.listen(this.namespaceId,te,me,Ne,Fe=>{this.factory.scheduleListenerCallback(Fe._data||-1,I,Fe)})}return this.delegate.listen(h,v,I)}}const T=[{provide:Ee,useClass:fa},{provide:ji,useFactory:function oo(){return new et}},{provide:so,useClass:(()=>{class W extends so{constructor(v,I,te,me){super(v.body,I,te)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(I){return new(I||W)(d.LFG(w.K0),d.LFG(Hr),d.LFG(ji),d.LFG(d.z2F))};static#t=this.\u0275prov=d.Yz7({token:W,factory:W.\u0275fac})}return W})()},{provide:d.FYo,useFactory:function xo(W,h,v){return new Ko(W,h,v)},deps:[t.se,so,d.R0b]}],le=[{provide:Hr,useFactory:()=>new da},{provide:d.QbO,useValue:"BrowserAnimations"},...T],U=[{provide:Hr,useClass:Ar},{provide:d.QbO,useValue:"NoopAnimations"},...T];let ee=(()=>{class W{static withConfig(v){return{ngModule:W,providers:v.disableAnimations?U:le}}static#e=this.\u0275fac=function(I){return new(I||W)};static#t=this.\u0275mod=d.oAB({type:W});static#n=this.\u0275inj=d.cJS({providers:le,imports:[t.b2]})}return W})();var Jt=a(1523),Bn=a(9515);class dr{http;prefix;suffix;constructor(h,v="/assets/i18n/",I=".json"){this.http=h,this.prefix=v,this.suffix=I}getTranslation(h){return this.http.get(`${this.prefix}${h}${this.suffix}`)}}function yr(W,h){if(1&W&&(d.TgZ(0,"li")(1,"h2")(2,"a",2),d._uU(3),d.ALo(4,"translate"),d.qZA()()()),2&W){const v=h.$implicit;let I;d.xp6(2),d.Q6J("routerLink","/"+v.path),d.xp6(1),d.hij(" ",d.lcZ(4,2,(null!==(I=v.name)&&void 0!==I?I:v.path)+".title")," ")}}let Kn=(()=>{class W{constructor(){this.sections=[{path:"dashboard"},{path:"presence-control"},{path:"open-absences"},{path:"edit-absences"},{path:"evaluate-absences"},{path:"events"},{path:"events/current",name:"events.current"},{path:"my-absences"},{path:"my-profile"},{path:"my-grades"},{path:"my-settings"}]}static#e=this.\u0275fac=function(I){return new(I||W)};static#t=this.\u0275cmp=d.Xpm({type:W,selectors:[["erz-home"]],decls:2,vars:1,consts:[[1,"mt-3"],[4,"ngFor","ngForOf"],[3,"routerLink"]],template:function(I,te){1&I&&(d.TgZ(0,"ul",0),d.YNc(1,yr,5,4,"li",1),d.qZA()),2&I&&(d.xp6(1),d.Q6J("ngForOf",te.sections))},dependencies:[w.sg,Jt.rH,Bn.X$],changeDetection:0})}return W})();var Jr=a(813);function Jn(){return()=>{const W=(0,d.f3M)(Jr.e),h=(0,d.f3M)(Jt.F0);return!!W.isAuthenticated||(h.navigate(["/unauthenticated"]),!1)}}let ei=(()=>{class W{constructor(){}static#e=this.\u0275fac=function(I){return new(I||W)};static#t=this.\u0275cmp=d.Xpm({type:W,selectors:[["erz-unauthenticated"]],decls:4,vars:3,consts:[[1,"erz-container"],[1,"alert","alert-danger","my-3"]],template:function(I,te){1&I&&(d.TgZ(0,"div",0)(1,"div",1),d._uU(2),d.ALo(3,"translate"),d.qZA()()),2&I&&(d.xp6(2),d.hij(" ",d.lcZ(3,1,"unauthenticated.message")," "))},dependencies:[Bn.X$],encapsulation:2})}return W})();const Ei=[{path:"dashboard",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(592),a.e(66)]).then(a.bind(a,66)).then(W=>W.DashboardModule)},{path:"presence-control",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(105),a.e(592),a.e(373)]).then(a.bind(a,3373)).then(W=>W.PresenceControlModule)},{path:"open-absences",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(592),a.e(480)]).then(a.bind(a,4480)).then(W=>W.OpenAbsencesModule)},{path:"edit-absences",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(105),a.e(162),a.e(592),a.e(403)]).then(a.bind(a,9403)).then(W=>W.EditAbsencesModule)},{path:"evaluate-absences",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(162),a.e(592),a.e(685)]).then(a.bind(a,7685)).then(W=>W.EvaluateAbsencesModule)},{path:"events",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(105),a.e(592),a.e(218)]).then(a.bind(a,6218)).then(W=>W.EventsModule)},{path:"my-absences",canActivate:[Jn()],loadChildren:()=>Promise.all([a.e(105),a.e(162),a.e(592),a.e(862)]).then(a.bind(a,862)).then(W=>W.MyAbsencesModule)},{path:"my-profile",canActivate:[Jn()],loadChildren:()=>a.e(958).then(a.bind(a,1958)).then(W=>W.MyProfileModule)},{path:"my-grades",canActivate:[Jn()],loadChildren:()=>a.e(232).then(a.bind(a,2150)).then(W=>W.MyGradesModule)},{path:"my-settings",canActivate:[Jn()],loadChildren:()=>a.e(269).then(a.bind(a,7269)).then(W=>W.MySettingsModule)},{path:"unauthenticated",component:ei},{path:"",component:Kn,pathMatch:"full"}];let Ai=(()=>{class W{static#e=this.\u0275fac=function(I){return new(I||W)};static#t=this.\u0275mod=d.oAB({type:W});static#n=this.\u0275inj=d.cJS({imports:[Jt.Bz.forRoot(Ei,{useHash:!0}),Jt.Bz]})}return W})();var Hi=a(6306),Li=a(6232),ti=a(4141),ds=a(275);const Ts=new d.OlP("Navigator API",{providedIn:"root",factory:()=>navigator});var er=a(8299),ws=a(6869),li=a(253);function Di(W,h){if(1&W&&(d.TgZ(0,"i",4),d._uU(1),d.qZA()),2&W){const v=d.oxw().$implicit;d.xp6(1),d.Oqu(v.icon)}}function ga(W,h){if(1&W){const v=d.EpF();d.TgZ(0,"ngb-toast",1),d.NdJ("hidden",function(){const me=d.CHM(v).$implicit,Ne=d.oxw();return d.KtG(Ne.toastService.remove(me))}),d.TgZ(1,"div",2),d.YNc(2,Di,2,1,"i",3),d.TgZ(3,"span"),d._uU(4),d.qZA()()()}if(2&W){const v=h.$implicit;d.Tol(v.classname),d.Q6J("header",v.header)("autohide",!0),d.xp6(2),d.Q6J("ngIf",v.icon),d.xp6(2),d.Oqu(v.message)}}let Oo=(()=>{class W{constructor(v){this.toastService=v}static#e=this.\u0275fac=function(I){return new(I||W)(d.Y36(ws.k))};static#t=this.\u0275cmp=d.Xpm({type:W,selectors:[["erz-toast"]],decls:2,vars:3,consts:[[3,"header","class","autohide","hidden",4,"ngFor","ngForOf"],[3,"header","autohide","hidden"],[1,"d-flex","gap-2"],["class","material-icons",4,"ngIf"],[1,"material-icons"]],template:function(I,te){1&I&&(d.YNc(0,ga,5,6,"ngb-toast",0),d.ALo(1,"async")),2&I&&d.Q6J("ngForOf",d.lcZ(1,1,te.toastService.toasts$))},dependencies:[w.sg,w.O5,li.Iv,w.Ov],styles:["[_nghost-%COMP%]{position:fixed;top:0;right:0;margin:.5em;z-index:1200}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{font-size:medium}"]})}return W})(),Ji=(()=>{class W{constructor(v,I,te,me,Ne){this.router=v,this.toastService=te,this.settings=me,this.navigator=Ne,this.router.initialNavigation(),I.initialize(),this.checkSettings()}checkSettings(){(0,ds.Jx)(ti.Zr)(this.settings).pipe((0,Hi.K)(v=>(console.error(String(v)),this.toastService.error("Please check the contents of the settings.js file (see Console output for more details).","Invalid Settings"),Li.E))).subscribe()}static#e=this.\u0275fac=function(I){return new(I||W)(d.Y36(Jt.F0),d.Y36(er.D),d.Y36(ws.k),d.Y36(ti.L6),d.Y36(Ts))};static#t=this.\u0275cmp=d.Xpm({type:W,selectors:[["ng-component"]],decls:2,vars:0,consts:[["aria-live","polite","aria-atomic","true"]],template:function(I,te){1&I&&d._UZ(0,"erz-toast",0)(1,"router-outlet")},dependencies:[Jt.lC,Oo],styles:["[_nghost-%COMP%]{width:100%}"],changeDetection:0})}return W})(),Vi=(()=>{class W{constructor(v,I,te){this.ngZone=v,this.translate=I,this.toastService=te}handleError(v){console.error(String(v)),v instanceof L.UA||this.notifyError()}notifyError(){this.ngZone.run(()=>{this.toastService.error(this.translate.instant("global.app-errors.exception-message"),this.translate.instant("global.app-errors.exception-title"))})}static#e=this.\u0275fac=function(I){return new(I||W)(d.LFG(d.R0b),d.LFG(Bn.sK),d.LFG(ws.k))};static#t=this.\u0275prov=d.Yz7({token:W,factory:W.\u0275fac})}return W})();var gl=a(5619),Io=a(1687),$s=a(8645),fs=a(8504),Po=a(7081),ma=a(7921),xi=a(9773),vo=a(2460),Fa=a(7938),ka=a(6567),Hn=a(4703),Yo=a(9410);const _a=["notificationspopup"];function Ro(W,h){if(1&W){const v=d.EpF();d.TgZ(0,"div",16)(1,"div",17),d._UZ(2,"div",18),d.ALo(3,"safe"),d.ALo(4,"xss"),d._UZ(5,"div",19),d.ALo(6,"safe"),d.ALo(7,"xss"),d.qZA(),d.TgZ(8,"div",20)(9,"button",21),d.NdJ("click",function(){const me=d.CHM(v).$implicit,Ne=d.oxw(3);return d.KtG(Ne.deleteNotification(me.id))}),d.O4$(),d.TgZ(10,"svg",22),d._UZ(11,"path",23)(12,"path",24),d.qZA()()()()}if(2&W){const v=h.$implicit,I=d.oxw(3);d.xp6(2),d.Q6J("innerHTML",d.xi3(3,2,d.xi3(4,5,v.subject,I.xssOptions),"html"),d.oJD),d.xp6(3),d.Q6J("innerHTML",d.xi3(6,8,d.xi3(7,11,v.body,I.xssOptions),"html"),d.oJD)}}function Ba(W,h){if(1&W&&(d.TgZ(0,"div",14),d.YNc(1,Ro,13,14,"div",15),d.qZA()),2&W){const v=d.oxw().erzLet;d.xp6(1),d.Q6J("ngForOf",v.notifications)}}function Ua(W,h){1&W&&(d.TgZ(0,"div",25),d._uU(1),d.ALo(2,"translate"),d.qZA()),2&W&&(d.xp6(1),d.hij(" ",d.lcZ(2,1,"my-notifications.none")," "))}function Ws(W,h){if(1&W){const v=d.EpF();d.TgZ(0,"div",1)(1,"button",2),d.NdJ("click",function(){d.CHM(v);const te=d.oxw();return d.KtG(te.toggleNotificationsPopup())}),d.ALo(2,"translate"),d.TgZ(3,"span",3),d.O4$(),d.TgZ(4,"svg",4),d._UZ(5,"path",5),d.qZA()(),d.kcU(),d.TgZ(6,"span",6),d._uU(7),d.qZA()(),d.TgZ(8,"div",7,8)(10,"div")(11,"div",9)(12,"span",10),d._uU(13),d.ALo(14,"translate"),d.qZA(),d.TgZ(15,"button",11),d.NdJ("click",function(){d.CHM(v);const te=d.oxw();return d.KtG(te.deleteAll())}),d._uU(16),d.ALo(17,"translate"),d.qZA()(),d.YNc(18,Ba,2,1,"div",12),d.YNc(19,Ua,3,3,"ng-template",null,13,d.W1O),d.qZA()()()}if(2&W){const v=h.erzLet,I=d.MAs(20);d.xp6(1),d.uIk("aria-label",d.lcZ(2,11,"my-notifications.title")),d.xp6(2),d.Q6J("ngClass",v.isAuthenticated?"":"notifications-bell-hidden"),d.xp6(1),d.Q6J("ngClass",v.isAuthenticated?"":"notifications-bell-hidden"),d.xp6(2),d.Q6J("hidden",v.notificationsCount<1)("ngClass",v.isAuthenticated?"notifications-bell-counter-visible":"notifications-bell-counter-hidden"),d.xp6(1),d.Oqu(v.notificationsCount),d.xp6(6),d.hij(" ",d.lcZ(14,13,"my-notifications.title")," "),d.xp6(2),d.Q6J("disabled",v.notificationsCount<1),d.xp6(1),d.hij(" ",d.lcZ(17,15,"my-notifications.deleteAll")," "),d.xp6(2),d.Q6J("ngIf",v.notificationsCount>0)("ngIfElse",I)}}const Ms=function(W,h,v){return{notifications:W,notificationsCount:h,isAuthenticated:v}};let ml=(()=>{class W{constructor(v,I,te){this.settings=I,this.userSettings=te,this.notifications$=this.loadNotifications().pipe((0,Po.d)()),this.isAuthenticated$=new gl.X(!1),this.refetchTimer$=(0,Io.F)(1e3*this.settings.notificationRefreshTime).pipe((0,ma.O)(null)),this.deleteAllNotifications$=new $s.x,this.deleteNotification$=new $s.x,this.toggleNotificationsPopup$=new $s.x,this.destroy$=new $s.x,this.xssOptions={whiteList:{br:[],div:["style"],span:["style"],a:["href"],ul:[],ol:[],li:[],sup:[],sub:[],code:[],cite:[]},css:!1},v.initialize(),this.notifications$.pipe((0,xi.R)(this.destroy$)).subscribe(()=>this.isAuthenticated$.next(!0)),this.toggleNotificationsPopup$.pipe((0,vo.M)(this.isAuthenticated$),(0,xi.R)(this.destroy$)).subscribe(([me,Ne])=>{me&&!0===Ne&&(me.style.display="block"===me.style.display?"none":"block")}),this.refetchTimer$.pipe((0,xi.R)(this.destroy$)).subscribe(()=>this.userSettings.refetch()),this.deleteNotification$.pipe((0,vo.M)(this.notifications$),(0,j.w)(([me,Ne])=>this.userSettings.saveNotificationData(this.deleteNotificationFromArray(me,Ne))),(0,xi.R)(this.destroy$)).subscribe(),this.deleteAllNotifications$.pipe((0,j.w)(()=>this.userSettings.saveNotificationData([])),(0,xi.R)(this.destroy$)).subscribe()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}toggleNotificationsPopup(){this.popup.nativeElement&&this.toggleNotificationsPopup$.next(this.popup.nativeElement)}deleteNotification(v){this.deleteNotification$.next(v)}deleteAll(){this.deleteAllNotifications$.next()}deleteNotificationFromArray(v,I){return I.filter(te=>te.id!==v)}loadNotifications(){return this.userSettings.getNotificationData().pipe((0,Hi.K)(v=>401===v.status?(this.isAuthenticated$.next(!1),[]):(0,fs._)(()=>v)))}static#e=this.\u0275fac=function(I){return new(I||W)(d.Y36(er.D),d.Y36(ti.L6),d.Y36(Fa.s))};static#t=this.\u0275cmp=d.Xpm({type:W,selectors:[["ng-component"]],viewQuery:function(I,te){if(1&I&&d.Gf(_a,5),2&I){let me;d.iGM(me=d.CRH())&&(te.popup=me.first)}},decls:4,vars:11,consts:[["class","notifications-container",4,"erzLet"],[1,"notifications-container"],["type","button","id","notifications-button",1,"btn","btn-link","notifications-button","p-0","m-0",3,"click"],[1,"notifications-bell",3,"ngClass"],["xmlns","http://www.w3.org/2000/svg","height","32px","viewBox","0 0 24 24","width","32px","fill","#000000",1,"notifications-bell",3,"ngClass"],["d","M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"],["id","notifications-bell-counter",1,"notifications-bell-counter",3,"hidden","ngClass"],["id","notifications-popup",1,"notifications-popup","border"],["notificationspopup",""],[1,"d-flex","justify-content-between","border-bottom","p-3","align-items-center"],[1,"pe-3"],["type","button","id","notifications-delete-all",1,"btn","btn-primary",3,"disabled","click"],["class","notifications-popup-data",4,"ngIf","ngIfElse"],["noNotifications",""],[1,"notifications-popup-data"],["class","border-bottom p-3",4,"ngFor","ngForOf"],[1,"border-bottom","p-3"],[1,"d-flex","justify-content-between"],[1,"text-start","pe-3",3,"innerHTML"],[1,"text-end",3,"innerHTML"],[1,"pt-1","text-end"],["type","button",1,"btn","btn-link","p-0","notifications-delete-notification",3,"click"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px"],["d","M0 0h24v24H0z","fill","none"],["d","M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"],[1,"d-flex","p-3","align-items-center","p-2"]],template:function(I,te){if(1&I&&(d.YNc(0,Ws,21,17,"div",0),d.ALo(1,"async"),d.ALo(2,"async"),d.ALo(3,"async")),2&I){let me;d.Q6J("erzLet",d.kEZ(7,Ms,d.lcZ(1,1,te.notifications$),(null==(me=d.lcZ(2,3,te.notifications$))?null:me.length)||0,d.lcZ(3,5,te.isAuthenticated$)))}},dependencies:[w.mk,w.sg,w.O5,ka.e,w.Ov,Bn.X$,Hn.y,Yo.Q],styles:['@charset "UTF-8";:host{--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;position:relative}:root,[data-bs-theme=light]{--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: rgb(208, 16, 24);--bs-orange: rgb(239, 124, 0);--bs-yellow: rgb(255, 168, 20);--bs-green: rgb(61, 134, 8);--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: rgba(78, 78, 78, .95);--bs-secondary: rgb(222, 222, 222);--bs-success: rgb(61, 134, 8);--bs-info: #0dcaf0;--bs-warning: rgb(255, 168, 20);--bs-danger: rgb(208, 16, 24);--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 78, 78, 78;--bs-secondary-rgb: 222, 222, 222;--bs-success-rgb: 61, 134, 8;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 168, 20;--bs-danger-rgb: 208, 16, 24;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-primary-text-emphasis: rgba(29, 29, 29, .98);--bs-secondary-text-emphasis: #595959;--bs-success-text-emphasis: #183603;--bs-info-text-emphasis: #055160;--bs-warning-text-emphasis: #664308;--bs-danger-text-emphasis: #53060a;--bs-light-text-emphasis: #495057;--bs-dark-text-emphasis: #495057;--bs-primary-bg-subtle: rgba(222, 222, 222, .99);--bs-secondary-bg-subtle: #f8f8f8;--bs-success-bg-subtle: #d8e7ce;--bs-info-bg-subtle: #cff4fc;--bs-warning-bg-subtle: #ffeed0;--bs-danger-bg-subtle: #f6cfd1;--bs-light-bg-subtle: #fcfcfd;--bs-dark-bg-subtle: #ced4da;--bs-primary-border-subtle: rgba(188, 188, 188, .98);--bs-secondary-border-subtle: #f2f2f2;--bs-success-border-subtle: #b1cf9c;--bs-info-border-subtle: #9eeaf9;--bs-warning-border-subtle: #ffdca1;--bs-danger-border-subtle: #ec9fa3;--bs-light-border-subtle: #e9ecef;--bs-dark-border-subtle: #adb5bd;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-font-sans-serif: "Roboto", sans-serif;--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 300;--bs-body-line-height: 1.625;--bs-body-color: rgb(0, 0, 0);--bs-body-color-rgb: 0, 0, 0;--bs-body-bg: rgb(255, 255, 255);--bs-body-bg-rgb: 255, 255, 255;--bs-emphasis-color: #000;--bs-emphasis-color-rgb: 0, 0, 0;--bs-secondary-color: rgba(0, 0, 0, .75);--bs-secondary-color-rgb: 0, 0, 0;--bs-secondary-bg: #e9ecef;--bs-secondary-bg-rgb: 233, 236, 239;--bs-tertiary-color: rgba(0, 0, 0, .5);--bs-tertiary-color-rgb: 0, 0, 0;--bs-tertiary-bg: #f8f9fa;--bs-tertiary-bg-rgb: 248, 249, 250;--bs-heading-color: inherit;--bs-link-color: rgb(0, 0, 0);--bs-link-color-rgb: 0, 0, 0;--bs-link-decoration: underline;--bs-link-hover-color: rgb(234, 22, 31);--bs-link-hover-color-rgb: 234, 22, 31;--bs-code-color: #d63384;--bs-highlight-color: rgb(0, 0, 0);--bs-highlight-bg: #ffeed0;--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, .175);--bs-border-radius: .375rem;--bs-border-radius-sm: .25rem;--bs-border-radius-lg: .5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-xxl: 2rem;--bs-border-radius-2xl: var(--bs-border-radius-xxl);--bs-border-radius-pill: 50rem;--bs-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-box-shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, .075);--bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, .175);--bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, .075);--bs-focus-ring-width: .25rem;--bs-focus-ring-opacity: .25;--bs-focus-ring-color: rgba(78, 78, 78, .25);--bs-form-valid-color: rgb(61, 134, 8);--bs-form-valid-border-color: rgb(61, 134, 8);--bs-form-invalid-color: rgb(208, 16, 24);--bs-form-invalid-border-color: rgb(208, 16, 24)}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color: #dee2e6;--bs-body-color-rgb: 222, 226, 230;--bs-body-bg: #212529;--bs-body-bg-rgb: 33, 37, 41;--bs-emphasis-color: #fff;--bs-emphasis-color-rgb: 255, 255, 255;--bs-secondary-color: rgba(222, 226, 230, .75);--bs-secondary-color-rgb: 222, 226, 230;--bs-secondary-bg: #343a40;--bs-secondary-bg-rgb: 52, 58, 64;--bs-tertiary-color: rgba(222, 226, 230, .5);--bs-tertiary-color-rgb: 222, 226, 230;--bs-tertiary-bg: #2b3035;--bs-tertiary-bg-rgb: 43, 48, 53;--bs-primary-text-emphasis: rgba(153, 153, 153, .97);--bs-secondary-text-emphasis: #ebebeb;--bs-success-text-emphasis: #8bb66b;--bs-info-text-emphasis: #6edff6;--bs-warning-text-emphasis: #ffcb72;--bs-danger-text-emphasis: #e37074;--bs-light-text-emphasis: #f8f9fa;--bs-dark-text-emphasis: #dee2e6;--bs-primary-bg-subtle: rgba(14, 14, 14, .99);--bs-secondary-bg-subtle: #2c2c2c;--bs-success-bg-subtle: #0c1b02;--bs-info-bg-subtle: #032830;--bs-warning-bg-subtle: #332204;--bs-danger-bg-subtle: #2a0305;--bs-light-bg-subtle: #343a40;--bs-dark-bg-subtle: #1a1d20;--bs-primary-border-subtle: rgba(45, 45, 45, .97);--bs-secondary-border-subtle: #858585;--bs-success-border-subtle: #255005;--bs-info-border-subtle: #087990;--bs-warning-border-subtle: #99650c;--bs-danger-border-subtle: #7d0a0e;--bs-light-border-subtle: #495057;--bs-dark-border-subtle: #343a40;--bs-heading-color: inherit;--bs-link-color: rgba(153, 153, 153, .97);--bs-link-hover-color: rgba(174, 174, 174, .976);--bs-link-color-rgb: 153, 153, 153;--bs-link-hover-color-rgb: 174, 174, 174;--bs-code-color: #e685b5;--bs-highlight-color: #dee2e6;--bs-highlight-bg: #664308;--bs-border-color: #495057;--bs-border-color-translucent: rgba(255, 255, 255, .15);--bs-form-valid-color: #8bb66b;--bs-form-valid-border-color: #8bb66b;--bs-form-invalid-color: #e37074;--bs-form-invalid-border-color: #e37074}*,*:before,*:after{box-sizing:border-box}@media (prefers-reduced-motion: no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}hr{margin:1rem 0;color:inherit;border:0;border-top:var(--bs-border-width) solid;opacity:.25}h6,.h6,h5,.h5,h4,.h4,h3,.h3,h2,.h2,h1,.h1{margin-top:0;margin-bottom:.5rem;font-weight:300;line-height:1.2;color:var(--bs-heading-color)}h1,.h1{font-size:calc(1.4625rem + 2.55vw)}@media (min-width: 1200px){h1,.h1{font-size:3.375rem}}h2,.h2{font-size:calc(1.3125rem + .75vw)}@media (min-width: 1200px){h2,.h2{font-size:1.875rem}}h3,.h3{font-size:calc(1.2875rem + .45vw)}@media (min-width: 1200px){h3,.h3{font-size:1.625rem}}h4,.h4{font-size:calc(1.275rem + .3vw)}@media (min-width: 1200px){h4,.h4{font-size:1.5rem}}h5,.h5{font-size:calc(1.25625rem + .075vw)}@media (min-width: 1200px){h5,.h5{font-size:1.3125rem}}h6,.h6{font-size:1.125rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}ol,ul,dl{margin-top:0;margin-bottom:1rem}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small,.small{font-size:.875em}mark,.mark{padding:.1875em;color:var(--bs-highlight-color);background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity, 1));text-decoration:underline}a:hover{--bs-link-color-rgb: var(--bs-link-hover-color-rgb)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}pre,code,kbd,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-secondary-color);text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button:not(:disabled),[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width: 1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:calc(1.625rem + 4.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-1{font-size:5rem}}.display-2{font-size:calc(1.575rem + 3.9vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-2{font-size:4.5rem}}.display-3{font-size:calc(1.525rem + 3.3vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-3{font-size:4rem}}.display-4{font-size:calc(1.475rem + 2.7vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-4{font-size:3.5rem}}.display-5{font-size:calc(1.425rem + 2.1vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-5{font-size:3rem}}.display-6{font-size:calc(1.375rem + 1.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-6{font-size:2.5rem}}.list-unstyled,.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer:before{content:"\\2014\\a0"}.btn{--bs-btn-padding-x: 1.5rem;--bs-btn-padding-y: .375rem;--bs-btn-font-family: ;--bs-btn-font-size: 1rem;--bs-btn-font-weight: 400;--bs-btn-line-height: 1.625;--bs-btn-color: var(--bs-body-color);--bs-btn-bg: transparent;--bs-btn-border-width: var(--bs-border-width);--bs-btn-border-color: transparent;--bs-btn-border-radius: 2.5rem;--bs-btn-hover-border-color: transparent;--bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);--bs-btn-disabled-opacity: .25;--bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,:not(.btn-check)+.btn:active,.btn:first-child:active,.btn.active,.btn.show{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,:not(.btn-check)+.btn:active:focus-visible,.btn:first-child:active:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn:disabled,.btn.disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color: #fff;--bs-btn-bg: rgba(78, 78, 78, .95);--bs-btn-border-color: rgba(78, 78, 78, .95);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgba(65, 65, 65, .9575);--bs-btn-hover-border-color: rgba(61, 61, 61, .96);--bs-btn-focus-shadow-rgb: 107, 107, 107;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgba(61, 61, 61, .96);--bs-btn-active-border-color: rgba(57, 57, 57, .9625);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: rgba(78, 78, 78, .95);--bs-btn-disabled-border-color: rgba(78, 78, 78, .95)}.btn-secondary{--bs-btn-color: #000;--bs-btn-bg: rgb(222, 222, 222);--bs-btn-border-color: rgb(222, 222, 222);--bs-btn-hover-color: #000;--bs-btn-hover-bg: #e3e3e3;--bs-btn-hover-border-color: #e1e1e1;--bs-btn-focus-shadow-rgb: 189, 189, 189;--bs-btn-active-color: #000;--bs-btn-active-bg: #e5e5e5;--bs-btn-active-border-color: #e1e1e1;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: rgb(222, 222, 222);--bs-btn-disabled-border-color: rgb(222, 222, 222)}.btn-success{--bs-btn-color: #fff;--bs-btn-bg: rgb(61, 134, 8);--bs-btn-border-color: rgb(61, 134, 8);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #347207;--bs-btn-hover-border-color: #316b06;--bs-btn-focus-shadow-rgb: 90, 152, 45;--bs-btn-active-color: #fff;--bs-btn-active-bg: #316b06;--bs-btn-active-border-color: #2e6506;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: rgb(61, 134, 8);--bs-btn-disabled-border-color: rgb(61, 134, 8)}.btn-info{--bs-btn-color: #000;--bs-btn-bg: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #31d2f2;--bs-btn-hover-border-color: #25cff2;--bs-btn-focus-shadow-rgb: 11, 172, 204;--bs-btn-active-color: #000;--bs-btn-active-bg: #3dd5f3;--bs-btn-active-border-color: #25cff2;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #0dcaf0;--bs-btn-disabled-border-color: #0dcaf0}.btn-warning{--bs-btn-color: #000;--bs-btn-bg: rgb(255, 168, 20);--bs-btn-border-color: rgb(255, 168, 20);--bs-btn-hover-color: #000;--bs-btn-hover-bg: #ffb537;--bs-btn-hover-border-color: #ffb12c;--bs-btn-focus-shadow-rgb: 217, 143, 17;--bs-btn-active-color: #000;--bs-btn-active-bg: #ffb943;--bs-btn-active-border-color: #ffb12c;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: rgb(255, 168, 20);--bs-btn-disabled-border-color: rgb(255, 168, 20)}.btn-danger{--bs-btn-color: #fff;--bs-btn-bg: rgb(208, 16, 24);--bs-btn-border-color: rgb(208, 16, 24);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #b10e14;--bs-btn-hover-border-color: #a60d13;--bs-btn-focus-shadow-rgb: 215, 52, 59;--bs-btn-active-color: #fff;--bs-btn-active-bg: #a60d13;--bs-btn-active-border-color: #9c0c12;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: rgb(208, 16, 24);--bs-btn-disabled-border-color: rgb(208, 16, 24)}.btn-light{--bs-btn-color: #000;--bs-btn-bg: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #d3d4d5;--bs-btn-hover-border-color: #c6c7c8;--bs-btn-focus-shadow-rgb: 211, 212, 213;--bs-btn-active-color: #000;--bs-btn-active-bg: #c6c7c8;--bs-btn-active-border-color: #babbbc;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #f8f9fa;--bs-btn-disabled-border-color: #f8f9fa}.btn-dark{--bs-btn-color: #fff;--bs-btn-bg: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #424649;--bs-btn-hover-border-color: #373b3e;--bs-btn-focus-shadow-rgb: 66, 70, 73;--bs-btn-active-color: #fff;--bs-btn-active-bg: #4d5154;--bs-btn-active-border-color: #373b3e;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #212529;--bs-btn-disabled-border-color: #212529}.btn-outline-primary{--bs-btn-color: rgba(78, 78, 78, .95);--bs-btn-border-color: rgba(78, 78, 78, .95);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgba(78, 78, 78, .95);--bs-btn-hover-border-color: rgba(78, 78, 78, .95);--bs-btn-focus-shadow-rgb: 78, 78, 78;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgba(78, 78, 78, .95);--bs-btn-active-border-color: rgba(78, 78, 78, .95);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgba(78, 78, 78, .95);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgba(78, 78, 78, .95);--bs-gradient: none}.btn-outline-secondary{--bs-btn-color: rgb(222, 222, 222);--bs-btn-border-color: rgb(222, 222, 222);--bs-btn-hover-color: #000;--bs-btn-hover-bg: rgb(222, 222, 222);--bs-btn-hover-border-color: rgb(222, 222, 222);--bs-btn-focus-shadow-rgb: 222, 222, 222;--bs-btn-active-color: #000;--bs-btn-active-bg: rgb(222, 222, 222);--bs-btn-active-border-color: rgb(222, 222, 222);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(222, 222, 222);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(222, 222, 222);--bs-gradient: none}.btn-outline-success{--bs-btn-color: rgb(61, 134, 8);--bs-btn-border-color: rgb(61, 134, 8);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(61, 134, 8);--bs-btn-hover-border-color: rgb(61, 134, 8);--bs-btn-focus-shadow-rgb: 61, 134, 8;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(61, 134, 8);--bs-btn-active-border-color: rgb(61, 134, 8);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(61, 134, 8);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(61, 134, 8);--bs-gradient: none}.btn-outline-info{--bs-btn-color: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #0dcaf0;--bs-btn-hover-border-color: #0dcaf0;--bs-btn-focus-shadow-rgb: 13, 202, 240;--bs-btn-active-color: #000;--bs-btn-active-bg: #0dcaf0;--bs-btn-active-border-color: #0dcaf0;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #0dcaf0;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #0dcaf0;--bs-gradient: none}.btn-outline-warning{--bs-btn-color: rgb(255, 168, 20);--bs-btn-border-color: rgb(255, 168, 20);--bs-btn-hover-color: #000;--bs-btn-hover-bg: rgb(255, 168, 20);--bs-btn-hover-border-color: rgb(255, 168, 20);--bs-btn-focus-shadow-rgb: 255, 168, 20;--bs-btn-active-color: #000;--bs-btn-active-bg: rgb(255, 168, 20);--bs-btn-active-border-color: rgb(255, 168, 20);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(255, 168, 20);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(255, 168, 20);--bs-gradient: none}.btn-outline-danger{--bs-btn-color: rgb(208, 16, 24);--bs-btn-border-color: rgb(208, 16, 24);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(208, 16, 24);--bs-btn-hover-border-color: rgb(208, 16, 24);--bs-btn-focus-shadow-rgb: 208, 16, 24;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(208, 16, 24);--bs-btn-active-border-color: rgb(208, 16, 24);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(208, 16, 24);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(208, 16, 24);--bs-gradient: none}.btn-outline-light{--bs-btn-color: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #f8f9fa;--bs-btn-hover-border-color: #f8f9fa;--bs-btn-focus-shadow-rgb: 248, 249, 250;--bs-btn-active-color: #000;--bs-btn-active-bg: #f8f9fa;--bs-btn-active-border-color: #f8f9fa;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #f8f9fa;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #f8f9fa;--bs-gradient: none}.btn-outline-dark{--bs-btn-color: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #212529;--bs-btn-hover-border-color: #212529;--bs-btn-focus-shadow-rgb: 33, 37, 41;--bs-btn-active-color: #fff;--bs-btn-active-bg: #212529;--bs-btn-active-border-color: #212529;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #212529;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #212529;--bs-gradient: none}.btn-link{--bs-btn-font-weight: 400;--bs-btn-color: var(--bs-link-color);--bs-btn-bg: transparent;--bs-btn-border-color: transparent;--bs-btn-hover-color: var(--bs-link-hover-color);--bs-btn-hover-border-color: transparent;--bs-btn-active-color: var(--bs-link-hover-color);--bs-btn-active-border-color: transparent;--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-border-color: transparent;--bs-btn-box-shadow: 0 0 0 #000;--bs-btn-focus-shadow-rgb: 38, 38, 38;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-lg{--bs-btn-padding-y: .5rem;--bs-btn-padding-x: 1rem;--bs-btn-font-size: 1.25rem;--bs-btn-border-radius: var(--bs-border-radius-lg)}.btn-sm{--bs-btn-padding-y: .25rem;--bs-btn-padding-x: .5rem;--bs-btn-font-size: .875rem;--bs-btn-border-radius: var(--bs-border-radius-sm)}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.object-fit-contain{object-fit:contain!important}.object-fit-cover{object-fit:cover!important}.object-fit-fill{object-fit:fill!important}.object-fit-scale{object-fit:scale-down!important}.object-fit-none{object-fit:none!important}.opacity-0{opacity:0!important}.opacity-25{opacity:.25!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.opacity-100{opacity:1!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.overflow-x-auto{overflow-x:auto!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-x-visible{overflow-x:visible!important}.overflow-x-scroll{overflow-x:scroll!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overflow-y-visible{overflow-y:visible!important}.overflow-y-scroll{overflow-y:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-inline-grid{display:inline-grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:var(--bs-box-shadow)!important}.shadow-sm{box-shadow:var(--bs-box-shadow-sm)!important}.shadow-lg{box-shadow:var(--bs-box-shadow-lg)!important}.shadow-none{box-shadow:none!important}.focus-ring-primary{--bs-focus-ring-color: rgba(var(--bs-primary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-secondary{--bs-focus-ring-color: rgba(var(--bs-secondary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-success{--bs-focus-ring-color: rgba(var(--bs-success-rgb), var(--bs-focus-ring-opacity))}.focus-ring-info{--bs-focus-ring-color: rgba(var(--bs-info-rgb), var(--bs-focus-ring-opacity))}.focus-ring-warning{--bs-focus-ring-color: rgba(var(--bs-warning-rgb), var(--bs-focus-ring-opacity))}.focus-ring-danger{--bs-focus-ring-color: rgba(var(--bs-danger-rgb), var(--bs-focus-ring-opacity))}.focus-ring-light{--bs-focus-ring-color: rgba(var(--bs-light-rgb), var(--bs-focus-ring-opacity))}.focus-ring-dark{--bs-focus-ring-color: rgba(var(--bs-dark-rgb), var(--bs-focus-ring-opacity))}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translate(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-0{border:0!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-start-0{border-left:0!important}.border-primary{--bs-border-opacity: 1;border-color:rgba(var(--bs-primary-rgb),var(--bs-border-opacity))!important}.border-secondary{--bs-border-opacity: 1;border-color:rgba(var(--bs-secondary-rgb),var(--bs-border-opacity))!important}.border-success{--bs-border-opacity: 1;border-color:rgba(var(--bs-success-rgb),var(--bs-border-opacity))!important}.border-info{--bs-border-opacity: 1;border-color:rgba(var(--bs-info-rgb),var(--bs-border-opacity))!important}.border-warning{--bs-border-opacity: 1;border-color:rgba(var(--bs-warning-rgb),var(--bs-border-opacity))!important}.border-danger{--bs-border-opacity: 1;border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity))!important}.border-light{--bs-border-opacity: 1;border-color:rgba(var(--bs-light-rgb),var(--bs-border-opacity))!important}.border-dark{--bs-border-opacity: 1;border-color:rgba(var(--bs-dark-rgb),var(--bs-border-opacity))!important}.border-black{--bs-border-opacity: 1;border-color:rgba(var(--bs-black-rgb),var(--bs-border-opacity))!important}.border-white{--bs-border-opacity: 1;border-color:rgba(var(--bs-white-rgb),var(--bs-border-opacity))!important}.border-primary-subtle{border-color:var(--bs-primary-border-subtle)!important}.border-secondary-subtle{border-color:var(--bs-secondary-border-subtle)!important}.border-success-subtle{border-color:var(--bs-success-border-subtle)!important}.border-info-subtle{border-color:var(--bs-info-border-subtle)!important}.border-warning-subtle{border-color:var(--bs-warning-border-subtle)!important}.border-danger-subtle{border-color:var(--bs-danger-border-subtle)!important}.border-light-subtle{border-color:var(--bs-light-border-subtle)!important}.border-dark-subtle{border-color:var(--bs-dark-border-subtle)!important}.border-1{border-width:1px!important}.border-2{border-width:2px!important}.border-3{border-width:3px!important}.border-4{border-width:4px!important}.border-5{border-width:5px!important}.border-opacity-10{--bs-border-opacity: .1}.border-opacity-25{--bs-border-opacity: .25}.border-opacity-50{--bs-border-opacity: .5}.border-opacity-75{--bs-border-opacity: .75}.border-opacity-100{--bs-border-opacity: 1}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:3rem!important;margin-left:3rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:3rem!important;padding-left:3rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:3rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:3rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}.row-gap-0{row-gap:0!important}.row-gap-1{row-gap:.25rem!important}.row-gap-2{row-gap:.5rem!important}.row-gap-3{row-gap:1rem!important}.row-gap-4{row-gap:1.5rem!important}.row-gap-5{row-gap:3rem!important}.column-gap-0{column-gap:0!important}.column-gap-1{column-gap:.25rem!important}.column-gap-2{column-gap:.5rem!important}.column-gap-3{column-gap:1rem!important}.column-gap-4{column-gap:1.5rem!important}.column-gap-5{column-gap:3rem!important}.font-monospace{font-family:var(--bs-font-monospace)!important}.fs-1{font-size:calc(1.4625rem + 2.55vw)!important}.fs-2{font-size:calc(1.3125rem + .75vw)!important}.fs-3{font-size:calc(1.2875rem + .45vw)!important}.fs-4{font-size:calc(1.275rem + .3vw)!important}.fs-5{font-size:calc(1.25625rem + .075vw)!important}.fs-6{font-size:1.125rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-lighter{font-weight:lighter!important}.fw-light{font-weight:300!important}.fw-normal{font-weight:400!important}.fw-medium,.fw-semibold{font-weight:500!important}.fw-bold{font-weight:700!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.625!important}.lh-lg{line-height:2!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-primary{--bs-text-opacity: 1;color:rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important}.text-secondary{--bs-text-opacity: 1;color:rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important}.text-success{--bs-text-opacity: 1;color:rgba(var(--bs-success-rgb),var(--bs-text-opacity))!important}.text-info{--bs-text-opacity: 1;color:rgba(var(--bs-info-rgb),var(--bs-text-opacity))!important}.text-warning{--bs-text-opacity: 1;color:rgba(var(--bs-warning-rgb),var(--bs-text-opacity))!important}.text-danger{--bs-text-opacity: 1;color:rgba(var(--bs-danger-rgb),var(--bs-text-opacity))!important}.text-light{--bs-text-opacity: 1;color:rgba(var(--bs-light-rgb),var(--bs-text-opacity))!important}.text-dark{--bs-text-opacity: 1;color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important}.text-black{--bs-text-opacity: 1;color:rgba(var(--bs-black-rgb),var(--bs-text-opacity))!important}.text-white{--bs-text-opacity: 1;color:rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important}.text-body{--bs-text-opacity: 1;color:rgba(var(--bs-body-color-rgb),var(--bs-text-opacity))!important}.text-muted{--bs-text-opacity: 1;color:var(--bs-secondary-color)!important}.text-black-50{--bs-text-opacity: 1;color:#00000080!important}.text-white-50{--bs-text-opacity: 1;color:#ffffff80!important}.text-body-secondary{--bs-text-opacity: 1;color:var(--bs-secondary-color)!important}.text-body-tertiary{--bs-text-opacity: 1;color:var(--bs-tertiary-color)!important}.text-body-emphasis{--bs-text-opacity: 1;color:var(--bs-emphasis-color)!important}.text-reset{--bs-text-opacity: 1;color:inherit!important}.text-opacity-25{--bs-text-opacity: .25}.text-opacity-50{--bs-text-opacity: .5}.text-opacity-75{--bs-text-opacity: .75}.text-opacity-100{--bs-text-opacity: 1}.text-primary-emphasis{color:var(--bs-primary-text-emphasis)!important}.text-secondary-emphasis{color:var(--bs-secondary-text-emphasis)!important}.text-success-emphasis{color:var(--bs-success-text-emphasis)!important}.text-info-emphasis{color:var(--bs-info-text-emphasis)!important}.text-warning-emphasis{color:var(--bs-warning-text-emphasis)!important}.text-danger-emphasis{color:var(--bs-danger-text-emphasis)!important}.text-light-emphasis{color:var(--bs-light-text-emphasis)!important}.text-dark-emphasis{color:var(--bs-dark-text-emphasis)!important}.link-opacity-10,.link-opacity-10-hover:hover{--bs-link-opacity: .1}.link-opacity-25,.link-opacity-25-hover:hover{--bs-link-opacity: .25}.link-opacity-50,.link-opacity-50-hover:hover{--bs-link-opacity: .5}.link-opacity-75,.link-opacity-75-hover:hover{--bs-link-opacity: .75}.link-opacity-100,.link-opacity-100-hover:hover{--bs-link-opacity: 1}.link-offset-1,.link-offset-1-hover:hover{text-underline-offset:.125em!important}.link-offset-2,.link-offset-2-hover:hover{text-underline-offset:.25em!important}.link-offset-3,.link-offset-3-hover:hover{text-underline-offset:.375em!important}.link-underline-primary{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-primary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-secondary{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-secondary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-success{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-success-rgb),var(--bs-link-underline-opacity))!important}.link-underline-info{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-info-rgb),var(--bs-link-underline-opacity))!important}.link-underline-warning{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-warning-rgb),var(--bs-link-underline-opacity))!important}.link-underline-danger{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-danger-rgb),var(--bs-link-underline-opacity))!important}.link-underline-light{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-light-rgb),var(--bs-link-underline-opacity))!important}.link-underline-dark{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-dark-rgb),var(--bs-link-underline-opacity))!important}.link-underline{--bs-link-underline-opacity: 1;text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-underline-opacity, 1))!important}.link-underline-opacity-0,.link-underline-opacity-0-hover:hover{--bs-link-underline-opacity: 0}.link-underline-opacity-10,.link-underline-opacity-10-hover:hover{--bs-link-underline-opacity: .1}.link-underline-opacity-25,.link-underline-opacity-25-hover:hover{--bs-link-underline-opacity: .25}.link-underline-opacity-50,.link-underline-opacity-50-hover:hover{--bs-link-underline-opacity: .5}.link-underline-opacity-75,.link-underline-opacity-75-hover:hover{--bs-link-underline-opacity: .75}.link-underline-opacity-100,.link-underline-opacity-100-hover:hover{--bs-link-underline-opacity: 1}.bg-primary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important}.bg-secondary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important}.bg-success{--bs-bg-opacity: 1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important}.bg-info{--bs-bg-opacity: 1;background-color:rgba(var(--bs-info-rgb),var(--bs-bg-opacity))!important}.bg-warning{--bs-bg-opacity: 1;background-color:rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important}.bg-danger{--bs-bg-opacity: 1;background-color:rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important}.bg-light{--bs-bg-opacity: 1;background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important}.bg-dark{--bs-bg-opacity: 1;background-color:rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important}.bg-black{--bs-bg-opacity: 1;background-color:rgba(var(--bs-black-rgb),var(--bs-bg-opacity))!important}.bg-white{--bs-bg-opacity: 1;background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important}.bg-body{--bs-bg-opacity: 1;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important}.bg-transparent{--bs-bg-opacity: 1;background-color:transparent!important}.bg-body-secondary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-secondary-bg-rgb),var(--bs-bg-opacity))!important}.bg-body-tertiary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-tertiary-bg-rgb),var(--bs-bg-opacity))!important}.bg-opacity-10{--bs-bg-opacity: .1}.bg-opacity-25{--bs-bg-opacity: .25}.bg-opacity-50{--bs-bg-opacity: .5}.bg-opacity-75{--bs-bg-opacity: .75}.bg-opacity-100{--bs-bg-opacity: 1}.bg-primary-subtle{background-color:var(--bs-primary-bg-subtle)!important}.bg-secondary-subtle{background-color:var(--bs-secondary-bg-subtle)!important}.bg-success-subtle{background-color:var(--bs-success-bg-subtle)!important}.bg-info-subtle{background-color:var(--bs-info-bg-subtle)!important}.bg-warning-subtle{background-color:var(--bs-warning-bg-subtle)!important}.bg-danger-subtle{background-color:var(--bs-danger-bg-subtle)!important}.bg-light-subtle{background-color:var(--bs-light-bg-subtle)!important}.bg-dark-subtle{background-color:var(--bs-dark-bg-subtle)!important}.bg-gradient{background-image:var(--bs-gradient)!important}.user-select-all{-webkit-user-select:all!important;user-select:all!important}.user-select-auto{-webkit-user-select:auto!important;user-select:auto!important}.user-select-none{-webkit-user-select:none!important;user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--bs-border-radius-sm)!important}.rounded-2{border-radius:var(--bs-border-radius)!important}.rounded-3{border-radius:var(--bs-border-radius-lg)!important}.rounded-4{border-radius:var(--bs-border-radius-xl)!important}.rounded-5{border-radius:var(--bs-border-radius-xxl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--bs-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-0{border-top-left-radius:0!important;border-top-right-radius:0!important}.rounded-top-1{border-top-left-radius:var(--bs-border-radius-sm)!important;border-top-right-radius:var(--bs-border-radius-sm)!important}.rounded-top-2{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-3{border-top-left-radius:var(--bs-border-radius-lg)!important;border-top-right-radius:var(--bs-border-radius-lg)!important}.rounded-top-4{border-top-left-radius:var(--bs-border-radius-xl)!important;border-top-right-radius:var(--bs-border-radius-xl)!important}.rounded-top-5{border-top-left-radius:var(--bs-border-radius-xxl)!important;border-top-right-radius:var(--bs-border-radius-xxl)!important}.rounded-top-circle{border-top-left-radius:50%!important;border-top-right-radius:50%!important}.rounded-top-pill{border-top-left-radius:var(--bs-border-radius-pill)!important;border-top-right-radius:var(--bs-border-radius-pill)!important}.rounded-end{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.rounded-end-1{border-top-right-radius:var(--bs-border-radius-sm)!important;border-bottom-right-radius:var(--bs-border-radius-sm)!important}.rounded-end-2{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-3{border-top-right-radius:var(--bs-border-radius-lg)!important;border-bottom-right-radius:var(--bs-border-radius-lg)!important}.rounded-end-4{border-top-right-radius:var(--bs-border-radius-xl)!important;border-bottom-right-radius:var(--bs-border-radius-xl)!important}.rounded-end-5{border-top-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-right-radius:var(--bs-border-radius-xxl)!important}.rounded-end-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.rounded-end-pill{border-top-right-radius:var(--bs-border-radius-pill)!important;border-bottom-right-radius:var(--bs-border-radius-pill)!important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-0{border-bottom-right-radius:0!important;border-bottom-left-radius:0!important}.rounded-bottom-1{border-bottom-right-radius:var(--bs-border-radius-sm)!important;border-bottom-left-radius:var(--bs-border-radius-sm)!important}.rounded-bottom-2{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-3{border-bottom-right-radius:var(--bs-border-radius-lg)!important;border-bottom-left-radius:var(--bs-border-radius-lg)!important}.rounded-bottom-4{border-bottom-right-radius:var(--bs-border-radius-xl)!important;border-bottom-left-radius:var(--bs-border-radius-xl)!important}.rounded-bottom-5{border-bottom-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-left-radius:var(--bs-border-radius-xxl)!important}.rounded-bottom-circle{border-bottom-right-radius:50%!important;border-bottom-left-radius:50%!important}.rounded-bottom-pill{border-bottom-right-radius:var(--bs-border-radius-pill)!important;border-bottom-left-radius:var(--bs-border-radius-pill)!important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-0{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-start-1{border-bottom-left-radius:var(--bs-border-radius-sm)!important;border-top-left-radius:var(--bs-border-radius-sm)!important}.rounded-start-2{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-3{border-bottom-left-radius:var(--bs-border-radius-lg)!important;border-top-left-radius:var(--bs-border-radius-lg)!important}.rounded-start-4{border-bottom-left-radius:var(--bs-border-radius-xl)!important;border-top-left-radius:var(--bs-border-radius-xl)!important}.rounded-start-5{border-bottom-left-radius:var(--bs-border-radius-xxl)!important;border-top-left-radius:var(--bs-border-radius-xxl)!important}.rounded-start-circle{border-bottom-left-radius:50%!important;border-top-left-radius:50%!important}.rounded-start-pill{border-bottom-left-radius:var(--bs-border-radius-pill)!important;border-top-left-radius:var(--bs-border-radius-pill)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}.z-n1{z-index:-1!important}.z-0{z-index:0!important}.z-1{z-index:1!important}.z-2{z-index:2!important}.z-3{z-index:3!important}@media (min-width: 576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.object-fit-sm-contain{object-fit:contain!important}.object-fit-sm-cover{object-fit:cover!important}.object-fit-sm-fill{object-fit:fill!important}.object-fit-sm-scale{object-fit:scale-down!important}.object-fit-sm-none{object-fit:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-inline-grid{display:inline-grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:3rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:3rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:3rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:3rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:3rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:3rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:3rem!important;padding-left:3rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:3rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:3rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:3rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:3rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:3rem!important}.row-gap-sm-0{row-gap:0!important}.row-gap-sm-1{row-gap:.25rem!important}.row-gap-sm-2{row-gap:.5rem!important}.row-gap-sm-3{row-gap:1rem!important}.row-gap-sm-4{row-gap:1.5rem!important}.row-gap-sm-5{row-gap:3rem!important}.column-gap-sm-0{column-gap:0!important}.column-gap-sm-1{column-gap:.25rem!important}.column-gap-sm-2{column-gap:.5rem!important}.column-gap-sm-3{column-gap:1rem!important}.column-gap-sm-4{column-gap:1.5rem!important}.column-gap-sm-5{column-gap:3rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width: 768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.object-fit-md-contain{object-fit:contain!important}.object-fit-md-cover{object-fit:cover!important}.object-fit-md-fill{object-fit:fill!important}.object-fit-md-scale{object-fit:scale-down!important}.object-fit-md-none{object-fit:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-inline-grid{display:inline-grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:3rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:3rem!important;margin-left:3rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:3rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:3rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:3rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:3rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:3rem!important;padding-left:3rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:3rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:3rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:3rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:3rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:3rem!important}.row-gap-md-0{row-gap:0!important}.row-gap-md-1{row-gap:.25rem!important}.row-gap-md-2{row-gap:.5rem!important}.row-gap-md-3{row-gap:1rem!important}.row-gap-md-4{row-gap:1.5rem!important}.row-gap-md-5{row-gap:3rem!important}.column-gap-md-0{column-gap:0!important}.column-gap-md-1{column-gap:.25rem!important}.column-gap-md-2{column-gap:.5rem!important}.column-gap-md-3{column-gap:1rem!important}.column-gap-md-4{column-gap:1.5rem!important}.column-gap-md-5{column-gap:3rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width: 992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.object-fit-lg-contain{object-fit:contain!important}.object-fit-lg-cover{object-fit:cover!important}.object-fit-lg-fill{object-fit:fill!important}.object-fit-lg-scale{object-fit:scale-down!important}.object-fit-lg-none{object-fit:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-inline-grid{display:inline-grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:3rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:3rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:3rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:3rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:3rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:3rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:3rem!important;padding-left:3rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:3rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:3rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:3rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:3rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:3rem!important}.row-gap-lg-0{row-gap:0!important}.row-gap-lg-1{row-gap:.25rem!important}.row-gap-lg-2{row-gap:.5rem!important}.row-gap-lg-3{row-gap:1rem!important}.row-gap-lg-4{row-gap:1.5rem!important}.row-gap-lg-5{row-gap:3rem!important}.column-gap-lg-0{column-gap:0!important}.column-gap-lg-1{column-gap:.25rem!important}.column-gap-lg-2{column-gap:.5rem!important}.column-gap-lg-3{column-gap:1rem!important}.column-gap-lg-4{column-gap:1.5rem!important}.column-gap-lg-5{column-gap:3rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width: 1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.object-fit-xl-contain{object-fit:contain!important}.object-fit-xl-cover{object-fit:cover!important}.object-fit-xl-fill{object-fit:fill!important}.object-fit-xl-scale{object-fit:scale-down!important}.object-fit-xl-none{object-fit:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-inline-grid{display:inline-grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:3rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:3rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:3rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:3rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:3rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:3rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:3rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:3rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:3rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:3rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:3rem!important}.row-gap-xl-0{row-gap:0!important}.row-gap-xl-1{row-gap:.25rem!important}.row-gap-xl-2{row-gap:.5rem!important}.row-gap-xl-3{row-gap:1rem!important}.row-gap-xl-4{row-gap:1.5rem!important}.row-gap-xl-5{row-gap:3rem!important}.column-gap-xl-0{column-gap:0!important}.column-gap-xl-1{column-gap:.25rem!important}.column-gap-xl-2{column-gap:.5rem!important}.column-gap-xl-3{column-gap:1rem!important}.column-gap-xl-4{column-gap:1.5rem!important}.column-gap-xl-5{column-gap:3rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}}@media (min-width: 1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.object-fit-xxl-contain{object-fit:contain!important}.object-fit-xxl-cover{object-fit:cover!important}.object-fit-xxl-fill{object-fit:fill!important}.object-fit-xxl-scale{object-fit:scale-down!important}.object-fit-xxl-none{object-fit:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-inline-grid{display:inline-grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:3rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:3rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:3rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:3rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:3rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:3rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:3rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:3rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:3rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:3rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:3rem!important}.row-gap-xxl-0{row-gap:0!important}.row-gap-xxl-1{row-gap:.25rem!important}.row-gap-xxl-2{row-gap:.5rem!important}.row-gap-xxl-3{row-gap:1rem!important}.row-gap-xxl-4{row-gap:1.5rem!important}.row-gap-xxl-5{row-gap:3rem!important}.column-gap-xxl-0{column-gap:0!important}.column-gap-xxl-1{column-gap:.25rem!important}.column-gap-xxl-2{column-gap:.5rem!important}.column-gap-xxl-3{column-gap:1rem!important}.column-gap-xxl-4{column-gap:1.5rem!important}.column-gap-xxl-5{column-gap:3rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}}@media (min-width: 1200px){.fs-1{font-size:3.375rem!important}.fs-2{font-size:1.875rem!important}.fs-3{font-size:1.625rem!important}.fs-4{font-size:1.5rem!important}.fs-5{font-size:1.3125rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-inline-grid{display:inline-grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}}.notifications-popup{position:absolute;margin-top:10px;right:0;z-index:1000;display:none;min-width:33vw;background-color:#fff}@media (max-width: 800px){.notifications-popup{position:fixed;min-width:auto;width:100vw;right:0}}.notifications-popup-data{max-height:calc(100vh - 145px);overflow:auto}.notifications-bell{color:#000}.notifications-bell-hidden{color:#ccc}.notifications-bell-counter{margin-left:-10px;color:#fff;font-weight:700;text-align:center;line-height:1;padding:1.25px 6px;background-color:#ea161f;border-radius:50%;box-shadow:0 0 0 2px #fff}.notifications-bell-counter-hidden{display:none}.notifications-bell-counter-visible{display:inline}.notifications-delete-notification{color:#4e4e4ef2}hr{margin:0}\n'],encapsulation:3})}return W})();var ja=a(6486),mc=a(363),_c=a(6223);function _l(W,h){return new dr(W,`${h.scriptsAndAssetsPath}/assets/locales/`,".json")}(0,w.qS)(R),(0,w.qS)(B);let Nt=(()=>{class W{constructor(v){this.injector=v;const I=_t(ml,{injector:this.injector});customElements.define("erz-notifications",I);const te=_t(Ji,{injector:this.injector});customElements.define("erz-app",te)}ngDoBootstrap(v){}static#e=this.\u0275fac=function(I){return new(I||W)(d.LFG(d.zs3))};static#t=this.\u0275mod=d.oAB({type:W});static#n=this.\u0275inj=d.cJS({providers:[{provide:d.qLn,useClass:Vi},{provide:d.soG,useFactory:v=>v.detectLanguage(),deps:[er.D]}],imports:[t.b2,Ai,Jt.Bz,L.JF,ee,Bn.aw.forRoot({loader:{provide:Bn.Zw,useFactory:_l,deps:[L.eN,ti.L6]}}),ja.m,mc.A0,_c.u5]})}return W})();a.p=window.schulverwaltung.settings.scriptsAndAssetsPath+"/",(0,d.G48)(),t.q6().bootstrapModule(Nt).catch(W=>console.error(W))},7482:(Pe,V,a)=>{var t=a(9698),d=a(8955);function L(R){return null==R}function O(R){(R=function p(R){var F={};for(var P in R)F[P]=R[P];return F}(R||{})).whiteList=R.whiteList||t.whiteList,R.onAttr=R.onAttr||t.onAttr,R.onIgnoreAttr=R.onIgnoreAttr||t.onIgnoreAttr,R.safeAttrValue=R.safeAttrValue||t.safeAttrValue,this.options=R}a(3034),O.prototype.process=function(R){if(!(R=(R=R||"").toString()))return"";var P=this.options,B=P.whiteList,$=P.onAttr,f=P.onIgnoreAttr,j=P.safeAttrValue;return d(R,function(q,ie,k,Te,Me){var ye=B[k],ce=!1;if(!0===ye?ce=ye:"function"==typeof ye?ce=ye(Te):ye instanceof RegExp&&(ce=ye.test(Te)),!0!==ce&&(ce=!1),Te=j(k,Te)){var ve,_e={position:ie,sourcePosition:q,source:Me,isWhite:ce};if(ce)return L(ve=$(k,Te,_e))?k+":"+Te:ve;if(!L(ve=f(k,Te,_e)))return ve}})},Pe.exports=O},9698:(Pe,V)=>{function a(){return{"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1}}var w=/javascript\s*\:/gim;V.whiteList={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1},V.getDefaultWhiteList=a,V.onAttr=function t(p,O,R){},V.onIgnoreAttr=function d(p,O,R){},V.safeAttrValue=function L(p,O){return w.test(O)?"":O}},1474:(Pe,V,a)=>{var t=a(9698),d=a(7482);for(var L in(V=Pe.exports=function w(p,O){return new d(O).process(p)}).FilterCSS=d,t)V[L]=t[L];typeof window<"u"&&(window.filterCSS=Pe.exports)},8955:(Pe,V,a)=>{var t=a(3034);Pe.exports=function d(w,L){";"!==(w=t.trimRight(w))[w.length-1]&&(w+=";");var p=w.length,O=!1,R=0,F=0,P="";function B(){if(!O){var j=t.trim(w.slice(R,F)),S=j.indexOf(":");if(-1!==S){var q=t.trim(j.slice(0,S)),ie=t.trim(j.slice(S+1));if(q){var k=L(R,P.length,q,ie,j);k&&(P+=k+"; ")}}}R=F+1}for(;F{Pe.exports={indexOf:function(V,a){var t,d;if(Array.prototype.indexOf)return V.indexOf(a);for(t=0,d=V.length;t{"use strict";a.d(V,{Z:()=>Xe});var t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function L(nt){return function(){var wt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},It=wt.width?String(wt.width):nt.defaultWidth;return nt.formats[It]||nt.formats[nt.defaultWidth]}}var F={date:L({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:L({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:L({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},B={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function j(nt){return function(wt,It){var Tt;if("formatting"===(null!=It&&It.context?String(It.context):"standalone")&&nt.formattingValues){var tt=nt.defaultFormattingWidth||nt.defaultWidth,Pt=null!=It&&It.width?String(It.width):tt;Tt=nt.formattingValues[Pt]||nt.formattingValues[tt]}else{var zt=nt.defaultWidth,un=null!=It&&It.width?String(It.width):nt.defaultWidth;Tt=nt.values[un]||nt.values[zt]}return Tt[nt.argumentCallback?nt.argumentCallback(wt):wt]}}function ve(nt){return function(wt){var It=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Je=It.width,tt=wt.match(Je&&nt.matchPatterns[Je]||nt.matchPatterns[nt.defaultMatchWidth]);if(!tt)return null;var Rn,Pt=tt[0],zt=Je&&nt.parsePatterns[Je]||nt.parsePatterns[nt.defaultParseWidth],un=Array.isArray(zt)?function be(nt,wt){for(var It=0;It0?"in "+Tt:Tt+" ago":Tt},formatLong:F,formatRelative:function(wt,It,Je,Tt){return B[wt]},localize:{ordinalNumber:function(wt,It){var Je=Number(wt),Tt=Je%100;if(Tt>20||Tt<10)switch(Tt%10){case 1:return Je+"st";case 2:return Je+"nd";case 3:return Je+"rd"}return Je+"th"},era:j({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:j({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(wt){return wt-1}}),month:j({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:j({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:j({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function ke(nt){return function(wt){var It=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Je=wt.match(nt.matchPattern);if(!Je)return null;var Tt=Je[0],tt=wt.match(nt.parsePattern);if(!tt)return null;var Pt=nt.valueCallback?nt.valueCallback(tt[0]):tt[0];return{value:Pt=It.valueCallback?It.valueCallback(Pt):Pt,rest:wt.slice(Tt.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(wt){return parseInt(wt,10)}}),era:ve({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:ve({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(wt){return wt+1}}),month:ve({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ve({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ve({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},5227:(Pe,V,a)=>{"use strict";a.d(V,{j:()=>d});var t={};function d(){return t}},3001:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>p});var t=function(R,F){switch(R){case"P":return F.date({width:"short"});case"PP":return F.date({width:"medium"});case"PPP":return F.date({width:"long"});default:return F.date({width:"full"})}},d=function(R,F){switch(R){case"p":return F.time({width:"short"});case"pp":return F.time({width:"medium"});case"ppp":return F.time({width:"long"});default:return F.time({width:"full"})}};const p={p:d,P:function(R,F){var f,P=R.match(/(P+)(p+)?/)||[],B=P[1],$=P[2];if(!$)return t(R,F);switch(B){case"P":f=F.dateTime({width:"short"});break;case"PP":f=F.dateTime({width:"medium"});break;case"PPP":f=F.dateTime({width:"long"});break;default:f=F.dateTime({width:"full"})}return f.replace("{{date}}",t(B,F)).replace("{{time}}",d($,F))}}},5351:(Pe,V,a)=>{"use strict";function t(d){var w=new Date(Date.UTC(d.getFullYear(),d.getMonth(),d.getDate(),d.getHours(),d.getMinutes(),d.getSeconds(),d.getMilliseconds()));return w.setUTCFullYear(d.getFullYear()),d.getTime()-w.getTime()}a.d(V,{Z:()=>t})},3606:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>R});var t=a(581),d=a(9307),w=a(2603),L=a(2816),O=6048e5;function R(F){(0,L.Z)(1,arguments);var P=(0,t.Z)(F),B=(0,d.Z)(P).getTime()-function p(F){(0,L.Z)(1,arguments);var P=(0,w.Z)(F),B=new Date(0);return B.setUTCFullYear(P,0,4),B.setUTCHours(0,0,0,0),(0,d.Z)(B)}(P).getTime();return Math.round(B/O)+1}},2603:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(581),d=a(2816),w=a(9307);function L(p){(0,d.Z)(1,arguments);var O=(0,t.Z)(p),R=O.getUTCFullYear(),F=new Date(0);F.setUTCFullYear(R+1,0,4),F.setUTCHours(0,0,0,0);var P=(0,w.Z)(F),B=new Date(0);B.setUTCFullYear(R,0,4),B.setUTCHours(0,0,0,0);var $=(0,w.Z)(B);return O.getTime()>=P.getTime()?R+1:O.getTime()>=$.getTime()?R:R-1}},7356:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>P});var t=a(581),d=a(5163),w=a(3281),L=a(2816),p=a(6156),O=a(5227),F=6048e5;function P(B,$){(0,L.Z)(1,arguments);var f=(0,t.Z)(B),j=(0,d.Z)(f,$).getTime()-function R(B,$){var f,j,S,q,ie,k,Te,Me;(0,L.Z)(1,arguments);var ye=(0,O.j)(),ce=(0,p.Z)(null!==(f=null!==(j=null!==(S=null!==(q=$?.firstWeekContainsDate)&&void 0!==q?q:null==$||null===(ie=$.locale)||void 0===ie||null===(k=ie.options)||void 0===k?void 0:k.firstWeekContainsDate)&&void 0!==S?S:ye.firstWeekContainsDate)&&void 0!==j?j:null===(Te=ye.locale)||void 0===Te||null===(Me=Te.options)||void 0===Me?void 0:Me.firstWeekContainsDate)&&void 0!==f?f:1),_e=(0,w.Z)(B,$),ve=new Date(0);return ve.setUTCFullYear(_e,0,ce),ve.setUTCHours(0,0,0,0),(0,d.Z)(ve,$)}(f,$).getTime();return Math.round(j/F)+1}},3281:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>O});var t=a(581),d=a(2816),w=a(5163),L=a(6156),p=a(5227);function O(R,F){var P,B,$,f,j,S,q,ie;(0,d.Z)(1,arguments);var k=(0,t.Z)(R),Te=k.getUTCFullYear(),Me=(0,p.j)(),ye=(0,L.Z)(null!==(P=null!==(B=null!==($=null!==(f=F?.firstWeekContainsDate)&&void 0!==f?f:null==F||null===(j=F.locale)||void 0===j||null===(S=j.options)||void 0===S?void 0:S.firstWeekContainsDate)&&void 0!==$?$:Me.firstWeekContainsDate)&&void 0!==B?B:null===(q=Me.locale)||void 0===q||null===(ie=q.options)||void 0===ie?void 0:ie.firstWeekContainsDate)&&void 0!==P?P:1);if(!(ye>=1&&ye<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ce=new Date(0);ce.setUTCFullYear(Te+1,0,ye),ce.setUTCHours(0,0,0,0);var _e=(0,w.Z)(ce,F),ve=new Date(0);ve.setUTCFullYear(Te,0,ye),ve.setUTCHours(0,0,0,0);var xe=(0,w.Z)(ve,F);return k.getTime()>=_e.getTime()?Te+1:k.getTime()>=xe.getTime()?Te:Te-1}},2566:(Pe,V,a)=>{"use strict";a.d(V,{Do:()=>L,Iu:()=>w,qp:()=>p});var t=["D","DD"],d=["YY","YYYY"];function w(O){return-1!==t.indexOf(O)}function L(O){return-1!==d.indexOf(O)}function p(O,R,F){if("YYYY"===O)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(R,"`) for formatting years to the input `").concat(F,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===O)throw new RangeError("Use `yy` instead of `YY` (in `".concat(R,"`) for formatting years to the input `").concat(F,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===O)throw new RangeError("Use `d` instead of `D` (in `".concat(R,"`) for formatting days of the month to the input `").concat(F,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===O)throw new RangeError("Use `dd` instead of `DD` (in `".concat(R,"`) for formatting days of the month to the input `").concat(F,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}},2816:(Pe,V,a)=>{"use strict";function t(d,w){if(w.length1?"s":"")+" required, but only "+w.length+" present")}a.d(V,{Z:()=>t})},9307:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});var t=a(581),d=a(2816);function w(L){(0,d.Z)(1,arguments);var O=(0,t.Z)(L),R=O.getUTCDay(),F=(R<1?7:0)+R-1;return O.setUTCDate(O.getUTCDate()-F),O.setUTCHours(0,0,0,0),O}},5163:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>p});var t=a(581),d=a(2816),w=a(6156),L=a(5227);function p(O,R){var F,P,B,$,f,j,S,q;(0,d.Z)(1,arguments);var ie=(0,L.j)(),k=(0,w.Z)(null!==(F=null!==(P=null!==(B=null!==($=R?.weekStartsOn)&&void 0!==$?$:null==R||null===(f=R.locale)||void 0===f||null===(j=f.options)||void 0===j?void 0:j.weekStartsOn)&&void 0!==B?B:ie.weekStartsOn)&&void 0!==P?P:null===(S=ie.locale)||void 0===S||null===(q=S.options)||void 0===q?void 0:q.weekStartsOn)&&void 0!==F?F:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var Te=(0,t.Z)(O),Me=Te.getUTCDay(),ye=(Me{"use strict";function t(d){if(null===d||!0===d||!1===d)return NaN;var w=Number(d);return isNaN(w)?w:w<0?Math.ceil(w):Math.floor(w)}a.d(V,{Z:()=>t})},8584:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(6156),d=a(581),w=a(2816);function L(p,O){(0,w.Z)(2,arguments);var R=(0,d.Z)(p),F=(0,t.Z)(O);return isNaN(F)?new Date(NaN):(F&&R.setDate(R.getDate()+F),R)}},5301:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>Ee});var t=a(1002),d=a(2816),L=a(581);var O=a(591),P=a(3606),B=a(2603),$=a(7356),f=a(3281);function j(J,Q){for(var oe=J<0?"-":"",se=Math.abs(J).toString();se.length0?se:1-se;return j("yy"===oe?ae%100:ae,oe.length)},q_M=function(Q,oe){var se=Q.getUTCMonth();return"M"===oe?String(se+1):j(se+1,2)},q_d=function(Q,oe){return j(Q.getUTCDate(),oe.length)},q_h=function(Q,oe){return j(Q.getUTCHours()%12||12,oe.length)},q_H=function(Q,oe){return j(Q.getUTCHours(),oe.length)},q_m=function(Q,oe){return j(Q.getUTCMinutes(),oe.length)},q_s=function(Q,oe){return j(Q.getUTCSeconds(),oe.length)},q_S=function(Q,oe){var se=oe.length,ae=Q.getUTCMilliseconds();return j(Math.floor(ae*Math.pow(10,se-3)),oe.length)};function Te(J,Q){var oe=J>0?"-":"+",se=Math.abs(J),ae=Math.floor(se/60),fe=se%60;if(0===fe)return oe+String(ae);var De=Q||"";return oe+String(ae)+De+j(fe,2)}function Me(J,Q){return J%60==0?(J>0?"-":"+")+j(Math.abs(J)/60,2):ye(J,Q)}function ye(J,Q){var oe=Q||"",se=J>0?"-":"+",ae=Math.abs(J);return se+j(Math.floor(ae/60),2)+oe+j(ae%60,2)}const ce={G:function(Q,oe,se){var ae=Q.getUTCFullYear()>0?1:0;switch(oe){case"G":case"GG":case"GGG":return se.era(ae,{width:"abbreviated"});case"GGGGG":return se.era(ae,{width:"narrow"});default:return se.era(ae,{width:"wide"})}},y:function(Q,oe,se){if("yo"===oe){var ae=Q.getUTCFullYear();return se.ordinalNumber(ae>0?ae:1-ae,{unit:"year"})}return q_y(Q,oe)},Y:function(Q,oe,se,ae){var fe=(0,f.Z)(Q,ae),De=fe>0?fe:1-fe;return"YY"===oe?j(De%100,2):"Yo"===oe?se.ordinalNumber(De,{unit:"year"}):j(De,oe.length)},R:function(Q,oe){return j((0,B.Z)(Q),oe.length)},u:function(Q,oe){return j(Q.getUTCFullYear(),oe.length)},Q:function(Q,oe,se){var ae=Math.ceil((Q.getUTCMonth()+1)/3);switch(oe){case"Q":return String(ae);case"QQ":return j(ae,2);case"Qo":return se.ordinalNumber(ae,{unit:"quarter"});case"QQQ":return se.quarter(ae,{width:"abbreviated",context:"formatting"});case"QQQQQ":return se.quarter(ae,{width:"narrow",context:"formatting"});default:return se.quarter(ae,{width:"wide",context:"formatting"})}},q:function(Q,oe,se){var ae=Math.ceil((Q.getUTCMonth()+1)/3);switch(oe){case"q":return String(ae);case"qq":return j(ae,2);case"qo":return se.ordinalNumber(ae,{unit:"quarter"});case"qqq":return se.quarter(ae,{width:"abbreviated",context:"standalone"});case"qqqqq":return se.quarter(ae,{width:"narrow",context:"standalone"});default:return se.quarter(ae,{width:"wide",context:"standalone"})}},M:function(Q,oe,se){var ae=Q.getUTCMonth();switch(oe){case"M":case"MM":return q_M(Q,oe);case"Mo":return se.ordinalNumber(ae+1,{unit:"month"});case"MMM":return se.month(ae,{width:"abbreviated",context:"formatting"});case"MMMMM":return se.month(ae,{width:"narrow",context:"formatting"});default:return se.month(ae,{width:"wide",context:"formatting"})}},L:function(Q,oe,se){var ae=Q.getUTCMonth();switch(oe){case"L":return String(ae+1);case"LL":return j(ae+1,2);case"Lo":return se.ordinalNumber(ae+1,{unit:"month"});case"LLL":return se.month(ae,{width:"abbreviated",context:"standalone"});case"LLLLL":return se.month(ae,{width:"narrow",context:"standalone"});default:return se.month(ae,{width:"wide",context:"standalone"})}},w:function(Q,oe,se,ae){var fe=(0,$.Z)(Q,ae);return"wo"===oe?se.ordinalNumber(fe,{unit:"week"}):j(fe,oe.length)},I:function(Q,oe,se){var ae=(0,P.Z)(Q);return"Io"===oe?se.ordinalNumber(ae,{unit:"week"}):j(ae,oe.length)},d:function(Q,oe,se){return"do"===oe?se.ordinalNumber(Q.getUTCDate(),{unit:"date"}):q_d(Q,oe)},D:function(Q,oe,se){var ae=function F(J){(0,d.Z)(1,arguments);var Q=(0,L.Z)(J),oe=Q.getTime();Q.setUTCMonth(0,1),Q.setUTCHours(0,0,0,0);var se=Q.getTime();return Math.floor((oe-se)/864e5)+1}(Q);return"Do"===oe?se.ordinalNumber(ae,{unit:"dayOfYear"}):j(ae,oe.length)},E:function(Q,oe,se){var ae=Q.getUTCDay();switch(oe){case"E":case"EE":case"EEE":return se.day(ae,{width:"abbreviated",context:"formatting"});case"EEEEE":return se.day(ae,{width:"narrow",context:"formatting"});case"EEEEEE":return se.day(ae,{width:"short",context:"formatting"});default:return se.day(ae,{width:"wide",context:"formatting"})}},e:function(Q,oe,se,ae){var fe=Q.getUTCDay(),De=(fe-ae.weekStartsOn+8)%7||7;switch(oe){case"e":return String(De);case"ee":return j(De,2);case"eo":return se.ordinalNumber(De,{unit:"day"});case"eee":return se.day(fe,{width:"abbreviated",context:"formatting"});case"eeeee":return se.day(fe,{width:"narrow",context:"formatting"});case"eeeeee":return se.day(fe,{width:"short",context:"formatting"});default:return se.day(fe,{width:"wide",context:"formatting"})}},c:function(Q,oe,se,ae){var fe=Q.getUTCDay(),De=(fe-ae.weekStartsOn+8)%7||7;switch(oe){case"c":return String(De);case"cc":return j(De,oe.length);case"co":return se.ordinalNumber(De,{unit:"day"});case"ccc":return se.day(fe,{width:"abbreviated",context:"standalone"});case"ccccc":return se.day(fe,{width:"narrow",context:"standalone"});case"cccccc":return se.day(fe,{width:"short",context:"standalone"});default:return se.day(fe,{width:"wide",context:"standalone"})}},i:function(Q,oe,se){var ae=Q.getUTCDay(),fe=0===ae?7:ae;switch(oe){case"i":return String(fe);case"ii":return j(fe,oe.length);case"io":return se.ordinalNumber(fe,{unit:"day"});case"iii":return se.day(ae,{width:"abbreviated",context:"formatting"});case"iiiii":return se.day(ae,{width:"narrow",context:"formatting"});case"iiiiii":return se.day(ae,{width:"short",context:"formatting"});default:return se.day(ae,{width:"wide",context:"formatting"})}},a:function(Q,oe,se){var fe=Q.getUTCHours()/12>=1?"pm":"am";switch(oe){case"a":case"aa":return se.dayPeriod(fe,{width:"abbreviated",context:"formatting"});case"aaa":return se.dayPeriod(fe,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return se.dayPeriod(fe,{width:"narrow",context:"formatting"});default:return se.dayPeriod(fe,{width:"wide",context:"formatting"})}},b:function(Q,oe,se){var fe,ae=Q.getUTCHours();switch(fe=12===ae?"noon":0===ae?"midnight":ae/12>=1?"pm":"am",oe){case"b":case"bb":return se.dayPeriod(fe,{width:"abbreviated",context:"formatting"});case"bbb":return se.dayPeriod(fe,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return se.dayPeriod(fe,{width:"narrow",context:"formatting"});default:return se.dayPeriod(fe,{width:"wide",context:"formatting"})}},B:function(Q,oe,se){var fe,ae=Q.getUTCHours();switch(fe=ae>=17?"evening":ae>=12?"afternoon":ae>=4?"morning":"night",oe){case"B":case"BB":case"BBB":return se.dayPeriod(fe,{width:"abbreviated",context:"formatting"});case"BBBBB":return se.dayPeriod(fe,{width:"narrow",context:"formatting"});default:return se.dayPeriod(fe,{width:"wide",context:"formatting"})}},h:function(Q,oe,se){if("ho"===oe){var ae=Q.getUTCHours()%12;return 0===ae&&(ae=12),se.ordinalNumber(ae,{unit:"hour"})}return q_h(Q,oe)},H:function(Q,oe,se){return"Ho"===oe?se.ordinalNumber(Q.getUTCHours(),{unit:"hour"}):q_H(Q,oe)},K:function(Q,oe,se){var ae=Q.getUTCHours()%12;return"Ko"===oe?se.ordinalNumber(ae,{unit:"hour"}):j(ae,oe.length)},k:function(Q,oe,se){var ae=Q.getUTCHours();return 0===ae&&(ae=24),"ko"===oe?se.ordinalNumber(ae,{unit:"hour"}):j(ae,oe.length)},m:function(Q,oe,se){return"mo"===oe?se.ordinalNumber(Q.getUTCMinutes(),{unit:"minute"}):q_m(Q,oe)},s:function(Q,oe,se){return"so"===oe?se.ordinalNumber(Q.getUTCSeconds(),{unit:"second"}):q_s(Q,oe)},S:function(Q,oe){return q_S(Q,oe)},X:function(Q,oe,se,ae){var De=(ae._originalDate||Q).getTimezoneOffset();if(0===De)return"Z";switch(oe){case"X":return Me(De);case"XXXX":case"XX":return ye(De);default:return ye(De,":")}},x:function(Q,oe,se,ae){var De=(ae._originalDate||Q).getTimezoneOffset();switch(oe){case"x":return Me(De);case"xxxx":case"xx":return ye(De);default:return ye(De,":")}},O:function(Q,oe,se,ae){var De=(ae._originalDate||Q).getTimezoneOffset();switch(oe){case"O":case"OO":case"OOO":return"GMT"+Te(De,":");default:return"GMT"+ye(De,":")}},z:function(Q,oe,se,ae){var De=(ae._originalDate||Q).getTimezoneOffset();switch(oe){case"z":case"zz":case"zzz":return"GMT"+Te(De,":");default:return"GMT"+ye(De,":")}},t:function(Q,oe,se,ae){return j(Math.floor((ae._originalDate||Q).getTime()/1e3),oe.length)},T:function(Q,oe,se,ae){return j((ae._originalDate||Q).getTime(),oe.length)}};var _e=a(3001),ve=a(5351),xe=a(2566),be=a(6156),ke=a(5227),vt=a(6719),it=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,St=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,qe=/^'([^]*?)'?$/,_t=/''/g,$e=/[a-zA-Z]/;function Ee(J,Q,oe){var se,ae,fe,De,je,Xe,nt,wt,It,Je,Tt,tt,Pt,zt,un,Rn,We,Ye;(0,d.Z)(2,arguments);var At=String(Q),Ot=(0,ke.j)(),tn=null!==(se=null!==(ae=oe?.locale)&&void 0!==ae?ae:Ot.locale)&&void 0!==se?se:vt.Z,Et=(0,be.Z)(null!==(fe=null!==(De=null!==(je=null!==(Xe=oe?.firstWeekContainsDate)&&void 0!==Xe?Xe:null==oe||null===(nt=oe.locale)||void 0===nt||null===(wt=nt.options)||void 0===wt?void 0:wt.firstWeekContainsDate)&&void 0!==je?je:Ot.firstWeekContainsDate)&&void 0!==De?De:null===(It=Ot.locale)||void 0===It||null===(Je=It.options)||void 0===Je?void 0:Je.firstWeekContainsDate)&&void 0!==fe?fe:1);if(!(Et>=1&&Et<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Ht=(0,be.Z)(null!==(Tt=null!==(tt=null!==(Pt=null!==(zt=oe?.weekStartsOn)&&void 0!==zt?zt:null==oe||null===(un=oe.locale)||void 0===un||null===(Rn=un.options)||void 0===Rn?void 0:Rn.weekStartsOn)&&void 0!==Pt?Pt:Ot.weekStartsOn)&&void 0!==tt?tt:null===(We=Ot.locale)||void 0===We||null===(Ye=We.options)||void 0===Ye?void 0:Ye.weekStartsOn)&&void 0!==Tt?Tt:0);if(!(Ht>=0&&Ht<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!tn.localize)throw new RangeError("locale must contain localize property");if(!tn.formatLong)throw new RangeError("locale must contain formatLong property");var Zt=(0,L.Z)(J);if(!function p(J){if((0,d.Z)(1,arguments),!function w(J){return(0,d.Z)(1,arguments),J instanceof Date||"object"===(0,t.Z)(J)&&"[object Date]"===Object.prototype.toString.call(J)}(J)&&"number"!=typeof J)return!1;var Q=(0,L.Z)(J);return!isNaN(Number(Q))}(Zt))throw new RangeError("Invalid time value");var dn=(0,ve.Z)(Zt),wn=(0,O.Z)(Zt,dn),fn={firstWeekContainsDate:Et,weekStartsOn:Ht,locale:tn,_originalDate:Zt},qt=At.match(St).map(function(En){var Wn=En[0];return"p"===Wn||"P"===Wn?(0,_e.Z[Wn])(En,tn.formatLong):En}).join("").match(it).map(function(En){if("''"===En)return"'";var Wn=En[0];if("'"===Wn)return function ze(J){var Q=J.match(qe);return Q?Q[1].replace(_t,"'"):J}(En);var mn=ce[Wn];if(mn)return!(null!=oe&&oe.useAdditionalWeekYearTokens)&&(0,xe.Do)(En)&&(0,xe.qp)(En,Q,String(J)),!(null!=oe&&oe.useAdditionalDayOfYearTokens)&&(0,xe.Iu)(En)&&(0,xe.qp)(En,Q,String(J)),mn(wn,En,tn.localize,fn);if(Wn.match($e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Wn+"`");return En}).join("");return qt}},3166:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});var t=a(9189),d=a(2816);function w(L,p){(0,d.Z)(2,arguments);var O=(0,t.Z)(L),R=(0,t.Z)(p);return O.getTime()===R.getTime()}},9189:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});var t=a(581),d=a(2816);function w(L){(0,d.Z)(1,arguments);var p=(0,t.Z)(L);return p.setHours(0,0,0,0),p}},4307:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(8584),d=a(2816),w=a(6156);function L(p,O){(0,d.Z)(2,arguments);var R=(0,w.Z)(O);return(0,t.Z)(p,-R)}},591:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>p});var t=a(6156),d=a(581),w=a(2816);function p(O,R){return(0,w.Z)(2,arguments),function L(O,R){(0,w.Z)(2,arguments);var F=(0,d.Z)(O).getTime(),P=(0,t.Z)(R);return new Date(F+P)}(O,-(0,t.Z)(R))}},581:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});var t=a(1002),d=a(2816);function w(L){(0,d.Z)(1,arguments);var p=Object.prototype.toString.call(L);return L instanceof Date||"object"===(0,t.Z)(L)&&"[object Date]"===p?new Date(L.getTime()):"number"==typeof L||"[object Number]"===p?new Date(L):(("string"==typeof L||"[object String]"===p)&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},5803:(Pe,V,a)=>{"use strict";a.d(V,{tS:()=>wi,g_:()=>bt,nM:()=>an,t$:()=>se,vx:()=>$t,F2:()=>ae});var p=a(5040);function $(Ze){return function(Ve,ct){return Ze.map(Ve,function(){return ct})}}var se=function(Ze){return{_tag:"Left",left:Ze}},ae=function(Ze){return{_tag:"Right",right:Ze}},fe=(0,p.OB)(2,function(Ze,Ve){return an(Ze)?Ze:Ve(Ze.right)}),De=function(Ze,Ve){return(0,p.zG)(Ze,Zt(Ve))},Zt=function(Ze){return function(Ve){return an(Ve)?Ve:ae(Ze(Ve.right))}},dn={URI:"Either",map:De},mn=((0,p.OB)(2,$(dn)),function f(Ze){var Ve=$(Ze)}(dn),function(Ze){return function(Ve){return an(Ve)?Ve:an(Ze)?Ze:ae(Ve.right(Ze.right))}}),an=function(Ze){return"Left"===Ze._tag},bt=function(Ze,Ve){return function(ct){return an(ct)?Ze(ct.left):Ve(ct.right)}},$t=(function d(Ze){return function(Ve,ct){return Ze.chain(Ve,function(Yt){return Ze.map(ct(Yt),function(){return Yt})})}}({URI:"Either",map:De,ap:function(Ze,Ve){return(0,p.zG)(Ze,mn(Ve))},chain:fe}),function(Ze){return function(Ve){return an(Ve)?Ze(Ve.left):Ve}}),wi=fe},8706:(Pe,V,a)=>{"use strict";a.d(V,{ff:()=>B}),a(5040);var B=function(j){return function(S){return!j(S)}}},5040:(Pe,V,a)=>{"use strict";function F(qe){return qe}function k(qe,_t,$e,Ee,ze,J,Q,oe,se){switch(arguments.length){case 1:return qe;case 2:return function(){return _t(qe.apply(this,arguments))};case 3:return function(){return $e(_t(qe.apply(this,arguments)))};case 4:return function(){return Ee($e(_t(qe.apply(this,arguments))))};case 5:return function(){return ze(Ee($e(_t(qe.apply(this,arguments)))))};case 6:return function(){return J(ze(Ee($e(_t(qe.apply(this,arguments))))))};case 7:return function(){return Q(J(ze(Ee($e(_t(qe.apply(this,arguments)))))))};case 8:return function(){return oe(Q(J(ze(Ee($e(_t(qe.apply(this,arguments))))))))};case 9:return function(){return se(oe(Q(J(ze(Ee($e(_t(qe.apply(this,arguments)))))))))}}}function xe(qe,_t,$e,Ee,ze,J,Q,oe,se){switch(arguments.length){case 1:return qe;case 2:return _t(qe);case 3:return $e(_t(qe));case 4:return Ee($e(_t(qe)));case 5:return ze(Ee($e(_t(qe))));case 6:return J(ze(Ee($e(_t(qe)))));case 7:return Q(J(ze(Ee($e(_t(qe))))));case 8:return oe(Q(J(ze(Ee($e(_t(qe)))))));case 9:return se(oe(Q(J(ze(Ee($e(_t(qe))))))));default:for(var ae=arguments[0],fe=1;feSt,ls:()=>k,yR:()=>F,zG:()=>xe});var St=function(qe,_t){var $e="number"==typeof qe?function(Ee){return Ee.length>=qe}:qe;return function(){var Ee=Array.from(arguments);return $e(arguments)?_t.apply(this,Ee):function(ze){return _t.apply(void 0,function(qe,_t,$e){if($e||2===arguments.length)for(var J,Ee=0,ze=_t.length;Ee{"use strict";a.d(V,{$P:()=>B,Bk:()=>sn,Dy:()=>F,G0:()=>dt,IM:()=>oi,IX:()=>nr,Ju:()=>Fr,O7:()=>Zt,OT:()=>Vt,Rn:()=>O,S1:()=>tt,Vp:()=>R,Z_:()=>Ye,dt:()=>wr,i0:()=>Wn,jV:()=>we,lB:()=>Je,mM:()=>Er,pk:()=>Ot,r$:()=>Ir,sH:()=>Sn});var pe,t=a(5803),d=(pe=function(z,K){return(pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,X){D.__proto__=X}||function(D,X){for(var de in X)Object.prototype.hasOwnProperty.call(X,de)&&(D[de]=X[de])})(z,K)},function(z,K){if("function"!=typeof K&&null!==K)throw new TypeError("Class extends value "+String(K)+" is not a constructor or null");function D(){this.constructor=z}pe(z,K),z.prototype=null===K?Object.create(K):(D.prototype=K.prototype,new D)}),w=function(){return w=Object.assign||function(pe){for(var z,K=1,D=arguments.length;K")}function f(pe,z,K,D){for(var X=pe.length,de=Array(X+1),Oe=0;Oe0}var it={};function St(pe,z){for(var K=[],D=0,X=pe;D")),new On(z,function(K){return wn.is(K)&&K.every(pe.is)},function(K,D){var X=wn.validate(K,D);if((0,t.nM)(X))return X;for(var de=X.right,Oe=de.length,Ae=de,mt=[],$t=0;$t0?p(mt):R(Ae)},pe.encode===P?P:function(K){return K.map(pe.encode)},pe)}var Dr=function(pe){function z(K,D,X,de,Oe){var Ae=pe.call(this,K,D,X,de)||this;return Ae.props=Oe,Ae._tag="InterfaceType",Ae}return d(z,pe),z}(F);function wr(pe,z){void 0===z&&(z=k(pe));var K=Object.keys(pe),D=K.map(function(de){return pe[de]}),X=K.length;return new Dr(z,function(de){if(qt.is(de)){for(var Oe=0;Oe0?p(ln):R($t)},ie(D)?P:function(de){for(var Oe=w({},de),Ae=0;Ae")}(k(pe)));var K=Object.keys(pe),D=K.map(function(de){return pe[de]}),X=K.length;return new Or(z,function(de){if(qt.is(de)){for(var Oe=0;Oe0?p(ln):R($t)},ie(D)?P:function(de){for(var Oe=w({},de),Ae=0;Ae0?p(ln):R(_n||Object.keys(mt).length!==X?$t:mt)},K.encode===P?P:function(de){for(var Oe={},Ae=0;Ae0?p(Oe):R($t?de:D)}return $e(z)&&Array.isArray(D)?R(D):O(D,X)},pe.encode===P&&z.encode===P?P:function(D){for(var X={},de=Object.keys(D),Oe=de.length,Ae=0;Ae0){var D=K[0],X=K[1],de=X.length,Oe=function(Ae){for(var mt=0;mt0?p(Oe):R(ve(D,de))},0===pe.length?P:function(D){return ve(D,pe.map(function(X){return X.encode(D)}))},pe)}!function(pe){d(function z(K,D,X,de,Oe){var Ae=pe.call(this,K,D,X,de)||this;return Ae.types=Oe,Ae._tag="TupleType",Ae},pe)}(F);var Wt=function(pe){function z(K,D,X,de,Oe){var Ae=pe.call(this,K,D,X,de)||this;return Ae.type=Oe,Ae._tag="ReadonlyType",Ae}return d(z,pe),z}(F);function Vt(pe,z){return void 0===z&&(z="Readonly<".concat(pe.name,">")),new Wt(z,pe.is,pe.validate,pe.encode,pe)}var Un=function(pe){function z(K,D,X,de,Oe){var Ae=pe.call(this,K,D,X,de)||this;return Ae.type=Oe,Ae._tag="ReadonlyArrayType",Ae}return d(z,pe),z}(F);function sn(pe,z){void 0===z&&(z="ReadonlyArray<".concat(pe.name,">"));var K=nr(pe);return new Un(z,K.is,K.validate,K.encode,pe)}!function(pe){d(function z(K,D,X,de,Oe){var Ae=pe.call(this,K,D,X,de)||this;return Ae.type=Oe,Ae._tag="ExactType",Ae},pe)}(F);var Qe=function(pe){function z(){var K=pe.call(this,"Function",function(D){return"function"==typeof D},function(D,X){return K.is(D)?R(D):O(D,X)},P)||this;return K._tag="FunctionType",K}return d(z,pe),z}(F),Ue=(new Qe,function(pe){function z(){var K=pe.call(this,"never",function(D){return!1},function(D,X){return O(D,X)},function(){throw new Error("cannot encode never")})||this;return K._tag="NeverType",K}return d(z,pe),z}(F)),Rt=(new Ue,function(pe){function z(){var K=pe.call(this,"any",function(D){return!0},R,P)||this;return K._tag="AnyType",K}return d(z,pe),z}(F));function Ft(pe,z,K){return void 0===K&&(K="(".concat(pe.name," | ").concat(B(z),")")),new st(K,function(D){return pe.is(D)&&z(D)},function(D,X){var de=pe.validate(D,X);if((0,t.nM)(de))return de;var Oe=de.right;return z(Oe)?R(Oe):O(Oe,X)},pe.encode,pe,z)}new Rt,Ft(Ot,Number.isInteger,"Integer");var Tn=function(pe){function z(K,D,X,de,Oe,Ae){var mt=pe.call(this,K,D,X,de,Oe)||this;return mt.tag=Ae,mt}return d(z,pe),z}(zn),Fr=function(pe){return[{key:"",type:pe}]},Hr=function(pe){function z(){var K=pe.call(this,"object",function(D){return null!==D&&"object"==typeof D},function(D,X){return K.is(D)?R(D):O(D,X)},P)||this;return K._tag="ObjectType",K}return d(z,pe),z}(F);new Hr,function(pe){d(function z(K,D,X,de,Oe){var Ae=pe.call(this,K,D,X,de)||this;return Ae.props=Oe,Ae._tag="StrictType",Ae},pe)}(F)},5619:(Pe,V,a)=>{"use strict";a.d(V,{X:()=>d});var t=a(8645);class d extends t.x{constructor(L){super(),this._value=L}get value(){return this.getValue()}_subscribe(L){const p=super._subscribe(L);return!p.closed&&L.next(this._value),p}getValue(){const{hasError:L,thrownError:p,_value:O}=this;if(L)throw p;return this._throwIfClosed(),O}next(L){super.next(this._value=L)}}},5592:(Pe,V,a)=>{"use strict";a.d(V,{y:()=>F});var t=a(305),d=a(7394),w=a(4850),L=a(8407),p=a(2653),O=a(4674),R=a(1441);let F=(()=>{class f{constructor(S){S&&(this._subscribe=S)}lift(S){const q=new f;return q.source=this,q.operator=S,q}subscribe(S,q,ie){const k=function $(f){return f&&f instanceof t.Lv||function B(f){return f&&(0,O.m)(f.next)&&(0,O.m)(f.error)&&(0,O.m)(f.complete)}(f)&&(0,d.Nn)(f)}(S)?S:new t.Hp(S,q,ie);return(0,R.x)(()=>{const{operator:Te,source:Me}=this;k.add(Te?Te.call(k,Me):Me?this._subscribe(k):this._trySubscribe(k))}),k}_trySubscribe(S){try{return this._subscribe(S)}catch(q){S.error(q)}}forEach(S,q){return new(q=P(q))((ie,k)=>{const Te=new t.Hp({next:Me=>{try{S(Me)}catch(ye){k(ye),Te.unsubscribe()}},error:k,complete:ie});this.subscribe(Te)})}_subscribe(S){var q;return null===(q=this.source)||void 0===q?void 0:q.subscribe(S)}[w.L](){return this}pipe(...S){return(0,L.U)(S)(this)}toPromise(S){return new(S=P(S))((q,ie)=>{let k;this.subscribe(Te=>k=Te,Te=>ie(Te),()=>q(k))})}}return f.create=j=>new f(j),f})();function P(f){var j;return null!==(j=f??p.config.Promise)&&void 0!==j?j:Promise}},7328:(Pe,V,a)=>{"use strict";a.d(V,{t:()=>w});var t=a(8645),d=a(4552);class w extends t.x{constructor(p=1/0,O=1/0,R=d.l){super(),this._bufferSize=p,this._windowTime=O,this._timestampProvider=R,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=O===1/0,this._bufferSize=Math.max(1,p),this._windowTime=Math.max(1,O)}next(p){const{isStopped:O,_buffer:R,_infiniteTimeWindow:F,_timestampProvider:P,_windowTime:B}=this;O||(R.push(p),!F&&R.push(P.now()+B)),this._trimBuffer(),super.next(p)}_subscribe(p){this._throwIfClosed(),this._trimBuffer();const O=this._innerSubscribe(p),{_infiniteTimeWindow:R,_buffer:F}=this,P=F.slice();for(let B=0;B{"use strict";a.d(V,{x:()=>R});var t=a(5592),d=a(7394);const L=(0,a(2306).d)(P=>function(){P(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var p=a(9039),O=a(1441);let R=(()=>{class P extends t.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift($){const f=new F(this,this);return f.operator=$,f}_throwIfClosed(){if(this.closed)throw new L}next($){(0,O.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const f of this.currentObservers)f.next($)}})}error($){(0,O.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=$;const{observers:f}=this;for(;f.length;)f.shift().error($)}})}complete(){(0,O.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:$}=this;for(;$.length;)$.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var $;return(null===($=this.observers)||void 0===$?void 0:$.length)>0}_trySubscribe($){return this._throwIfClosed(),super._trySubscribe($)}_subscribe($){return this._throwIfClosed(),this._checkFinalizedStatuses($),this._innerSubscribe($)}_innerSubscribe($){const{hasError:f,isStopped:j,observers:S}=this;return f||j?d.Lc:(this.currentObservers=null,S.push($),new d.w0(()=>{this.currentObservers=null,(0,p.P)(S,$)}))}_checkFinalizedStatuses($){const{hasError:f,thrownError:j,isStopped:S}=this;f?$.error(j):S&&$.complete()}asObservable(){const $=new t.y;return $.source=this,$}}return P.create=(B,$)=>new F(B,$),P})();class F extends R{constructor(B,$){super(),this.destination=B,this.source=$}next(B){var $,f;null===(f=null===($=this.destination)||void 0===$?void 0:$.next)||void 0===f||f.call($,B)}error(B){var $,f;null===(f=null===($=this.destination)||void 0===$?void 0:$.error)||void 0===f||f.call($,B)}complete(){var B,$;null===($=null===(B=this.destination)||void 0===B?void 0:B.complete)||void 0===$||$.call(B)}_subscribe(B){var $,f;return null!==(f=null===($=this.source)||void 0===$?void 0:$.subscribe(B))&&void 0!==f?f:d.Lc}}},305:(Pe,V,a)=>{"use strict";a.d(V,{Hp:()=>ie,Lv:()=>f});var t=a(4674),d=a(7394),w=a(2653),L=a(3894),p=a(2420);const O=P("C",void 0,void 0);function P(ce,_e,ve){return{kind:ce,value:_e,error:ve}}var B=a(7599),$=a(1441);class f extends d.w0{constructor(_e){super(),this.isStopped=!1,_e?(this.destination=_e,(0,d.Nn)(_e)&&_e.add(this)):this.destination=ye}static create(_e,ve,xe){return new ie(_e,ve,xe)}next(_e){this.isStopped?Me(function F(ce){return P("N",ce,void 0)}(_e),this):this._next(_e)}error(_e){this.isStopped?Me(function R(ce){return P("E",void 0,ce)}(_e),this):(this.isStopped=!0,this._error(_e))}complete(){this.isStopped?Me(O,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(_e){this.destination.next(_e)}_error(_e){try{this.destination.error(_e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const j=Function.prototype.bind;function S(ce,_e){return j.call(ce,_e)}class q{constructor(_e){this.partialObserver=_e}next(_e){const{partialObserver:ve}=this;if(ve.next)try{ve.next(_e)}catch(xe){k(xe)}}error(_e){const{partialObserver:ve}=this;if(ve.error)try{ve.error(_e)}catch(xe){k(xe)}else k(_e)}complete(){const{partialObserver:_e}=this;if(_e.complete)try{_e.complete()}catch(ve){k(ve)}}}class ie extends f{constructor(_e,ve,xe){let be;if(super(),(0,t.m)(_e)||!_e)be={next:_e??void 0,error:ve??void 0,complete:xe??void 0};else{let ke;this&&w.config.useDeprecatedNextContext?(ke=Object.create(_e),ke.unsubscribe=()=>this.unsubscribe(),be={next:_e.next&&S(_e.next,ke),error:_e.error&&S(_e.error,ke),complete:_e.complete&&S(_e.complete,ke)}):be=_e}this.destination=new q(be)}}function k(ce){w.config.useDeprecatedSynchronousErrorHandling?(0,$.O)(ce):(0,L.h)(ce)}function Me(ce,_e){const{onStoppedNotification:ve}=w.config;ve&&B.z.setTimeout(()=>ve(ce,_e))}const ye={closed:!0,next:p.Z,error:function Te(ce){throw ce},complete:p.Z}},7394:(Pe,V,a)=>{"use strict";a.d(V,{Lc:()=>O,w0:()=>p,Nn:()=>R});var t=a(4674);const w=(0,a(2306).d)(P=>function($){P(this),this.message=$?`${$.length} errors occurred during unsubscription:\n${$.map((f,j)=>`${j+1}) ${f.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=$});var L=a(9039);class p{constructor(B){this.initialTeardown=B,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let B;if(!this.closed){this.closed=!0;const{_parentage:$}=this;if($)if(this._parentage=null,Array.isArray($))for(const S of $)S.remove(this);else $.remove(this);const{initialTeardown:f}=this;if((0,t.m)(f))try{f()}catch(S){B=S instanceof w?S.errors:[S]}const{_finalizers:j}=this;if(j){this._finalizers=null;for(const S of j)try{F(S)}catch(q){B=B??[],q instanceof w?B=[...B,...q.errors]:B.push(q)}}if(B)throw new w(B)}}add(B){var $;if(B&&B!==this)if(this.closed)F(B);else{if(B instanceof p){if(B.closed||B._hasParent(this))return;B._addParent(this)}(this._finalizers=null!==($=this._finalizers)&&void 0!==$?$:[]).push(B)}}_hasParent(B){const{_parentage:$}=this;return $===B||Array.isArray($)&&$.includes(B)}_addParent(B){const{_parentage:$}=this;this._parentage=Array.isArray($)?($.push(B),$):$?[$,B]:B}_removeParent(B){const{_parentage:$}=this;$===B?this._parentage=null:Array.isArray($)&&(0,L.P)($,B)}remove(B){const{_finalizers:$}=this;$&&(0,L.P)($,B),B instanceof p&&B._removeParent(this)}}p.EMPTY=(()=>{const P=new p;return P.closed=!0,P})();const O=p.EMPTY;function R(P){return P instanceof p||P&&"closed"in P&&(0,t.m)(P.remove)&&(0,t.m)(P.add)&&(0,t.m)(P.unsubscribe)}function F(P){(0,t.m)(P)?P():P.unsubscribe()}},2653:(Pe,V,a)=>{"use strict";a.d(V,{config:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},2572:(Pe,V,a)=>{"use strict";a.d(V,{a:()=>B});var t=a(5592),d=a(7453),w=a(7715),L=a(2737),p=a(7400),O=a(9940),R=a(2714),F=a(8251),P=a(7103);function B(...j){const S=(0,O.yG)(j),q=(0,O.jO)(j),{args:ie,keys:k}=(0,d.D)(j);if(0===ie.length)return(0,w.D)([],S);const Te=new t.y(function $(j,S,q=L.y){return ie=>{f(S,()=>{const{length:k}=j,Te=new Array(k);let Me=k,ye=k;for(let ce=0;ce{const _e=(0,w.D)(j[ce],S);let ve=!1;_e.subscribe((0,F.x)(ie,xe=>{Te[ce]=xe,ve||(ve=!0,ye--),ye||ie.next(q(Te.slice()))},()=>{--Me||ie.complete()}))},ie)},ie)}}(ie,S,k?Me=>(0,R.n)(k,Me):L.y));return q?Te.pipe((0,p.Z)(q)):Te}function f(j,S,q){j?(0,P.f)(q,j,S):S()}},5211:(Pe,V,a)=>{"use strict";a.d(V,{z:()=>p});var t=a(7537),w=a(9940),L=a(7715);function p(...O){return function d(){return(0,t.J)(1)}()((0,L.D)(O,(0,w.yG)(O)))}},7:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>p});var t=a(8645),d=a(5592),w=a(4911);const L={connector:()=>new t.x,resetOnDisconnect:!0};function p(O,R=L){let F=null;const{connector:P,resetOnDisconnect:B=!0}=R;let $=P();const f=new d.y(j=>$.subscribe(j));return f.connect=()=>((!F||F.closed)&&(F=(0,w.P)(()=>O).subscribe($),B&&F.add(()=>$=P())),F),f}},4911:(Pe,V,a)=>{"use strict";a.d(V,{P:()=>w});var t=a(5592),d=a(4829);function w(L){return new t.y(p=>{(0,d.Xf)(L()).subscribe(p)})}},6232:(Pe,V,a)=>{"use strict";a.d(V,{E:()=>d});const d=new(a(5592).y)(p=>p.complete())},9315:(Pe,V,a)=>{"use strict";a.d(V,{D:()=>F});var t=a(5592),d=a(7453),w=a(4829),L=a(9940),p=a(8251),O=a(7400),R=a(2714);function F(...P){const B=(0,L.jO)(P),{args:$,keys:f}=(0,d.D)(P),j=new t.y(S=>{const{length:q}=$;if(!q)return void S.complete();const ie=new Array(q);let k=q,Te=q;for(let Me=0;Me{ye||(ye=!0,Te--),ie[Me]=ce},()=>k--,void 0,()=>{(!k||!ye)&&(Te||S.next(f?(0,R.n)(f,ie):ie),S.complete())}))}});return B?j.pipe((0,O.Z)(B)):j}},7715:(Pe,V,a)=>{"use strict";a.d(V,{D:()=>xe});var t=a(4829),d=a(7103),w=a(9360),L=a(8251);function p(be,ke=0){return(0,w.e)((vt,it)=>{vt.subscribe((0,L.x)(it,St=>(0,d.f)(it,be,()=>it.next(St),ke),()=>(0,d.f)(it,be,()=>it.complete(),ke),St=>(0,d.f)(it,be,()=>it.error(St),ke)))})}function O(be,ke=0){return(0,w.e)((vt,it)=>{it.add(be.schedule(()=>vt.subscribe(it),ke))})}var P=a(5592),$=a(4971),f=a(4674);function S(be,ke){if(!be)throw new Error("Iterable cannot be null");return new P.y(vt=>{(0,d.f)(vt,ke,()=>{const it=be[Symbol.asyncIterator]();(0,d.f)(vt,ke,()=>{it.next().then(St=>{St.done?vt.complete():vt.next(St.value)})},0,!0)})})}var q=a(8382),ie=a(4026),k=a(4266),Te=a(3664),Me=a(5726),ye=a(9853),ce=a(541);function xe(be,ke){return ke?function ve(be,ke){if(null!=be){if((0,q.c)(be))return function R(be,ke){return(0,t.Xf)(be).pipe(O(ke),p(ke))}(be,ke);if((0,k.z)(be))return function B(be,ke){return new P.y(vt=>{let it=0;return ke.schedule(function(){it===be.length?vt.complete():(vt.next(be[it++]),vt.closed||this.schedule())})})}(be,ke);if((0,ie.t)(be))return function F(be,ke){return(0,t.Xf)(be).pipe(O(ke),p(ke))}(be,ke);if((0,Me.D)(be))return S(be,ke);if((0,Te.T)(be))return function j(be,ke){return new P.y(vt=>{let it;return(0,d.f)(vt,ke,()=>{it=be[$.h](),(0,d.f)(vt,ke,()=>{let St,qe;try{({value:St,done:qe}=it.next())}catch(_t){return void vt.error(_t)}qe?vt.complete():vt.next(St)},0,!0)}),()=>(0,f.m)(it?.return)&&it.return()})}(be,ke);if((0,ce.L)(be))return function _e(be,ke){return S((0,ce.Q)(be),ke)}(be,ke)}throw(0,ye.z)(be)}(be,ke):(0,t.Xf)(be)}},2438:(Pe,V,a)=>{"use strict";a.d(V,{R:()=>B});var t=a(4829),d=a(5592),w=a(1631),L=a(4266),p=a(4674),O=a(7400);const R=["addListener","removeListener"],F=["addEventListener","removeEventListener"],P=["on","off"];function B(q,ie,k,Te){if((0,p.m)(k)&&(Te=k,k=void 0),Te)return B(q,ie,k).pipe((0,O.Z)(Te));const[Me,ye]=function S(q){return(0,p.m)(q.addEventListener)&&(0,p.m)(q.removeEventListener)}(q)?F.map(ce=>_e=>q[ce](ie,_e,k)):function f(q){return(0,p.m)(q.addListener)&&(0,p.m)(q.removeListener)}(q)?R.map($(q,ie)):function j(q){return(0,p.m)(q.on)&&(0,p.m)(q.off)}(q)?P.map($(q,ie)):[];if(!Me&&(0,L.z)(q))return(0,w.z)(ce=>B(ce,ie,k))((0,t.Xf)(q));if(!Me)throw new TypeError("Invalid event target");return new d.y(ce=>{const _e=(...ve)=>ce.next(1ye(_e)})}function $(q,ie){return k=>Te=>q[k](ie,Te)}},4829:(Pe,V,a)=>{"use strict";a.d(V,{Xf:()=>j});var t=a(7582),d=a(4266),w=a(4026),L=a(5592),p=a(8382),O=a(5726),R=a(9853),F=a(3664),P=a(541),B=a(4674),$=a(3894),f=a(4850);function j(ce){if(ce instanceof L.y)return ce;if(null!=ce){if((0,p.c)(ce))return function S(ce){return new L.y(_e=>{const ve=ce[f.L]();if((0,B.m)(ve.subscribe))return ve.subscribe(_e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ce);if((0,d.z)(ce))return function q(ce){return new L.y(_e=>{for(let ve=0;ve{ce.then(ve=>{_e.closed||(_e.next(ve),_e.complete())},ve=>_e.error(ve)).then(null,$.h)})}(ce);if((0,O.D)(ce))return Te(ce);if((0,F.T)(ce))return function k(ce){return new L.y(_e=>{for(const ve of ce)if(_e.next(ve),_e.closed)return;_e.complete()})}(ce);if((0,P.L)(ce))return function Me(ce){return Te((0,P.Q)(ce))}(ce)}throw(0,R.z)(ce)}function Te(ce){return new L.y(_e=>{(function ye(ce,_e){var ve,xe,be,ke;return(0,t.mG)(this,void 0,void 0,function*(){try{for(ve=(0,t.KL)(ce);!(xe=yield ve.next()).done;)if(_e.next(xe.value),_e.closed)return}catch(vt){be={error:vt}}finally{try{xe&&!xe.done&&(ke=ve.return)&&(yield ke.call(ve))}finally{if(be)throw be.error}}_e.complete()})})(ce,_e).catch(ve=>_e.error(ve))})}},1687:(Pe,V,a)=>{"use strict";a.d(V,{F:()=>w});var t=a(6321),d=a(4825);function w(L=0,p=t.z){return L<0&&(L=0),(0,d.H)(L,L,p)}},3019:(Pe,V,a)=>{"use strict";a.d(V,{T:()=>O});var t=a(7537),d=a(4829),w=a(6232),L=a(9940),p=a(7715);function O(...R){const F=(0,L.yG)(R),P=(0,L._6)(R,1/0),B=R;return B.length?1===B.length?(0,d.Xf)(B[0]):(0,t.J)(P)((0,p.D)(B,F)):w.E}},2096:(Pe,V,a)=>{"use strict";a.d(V,{of:()=>w});var t=a(9940),d=a(7715);function w(...L){const p=(0,t.yG)(L);return(0,d.D)(L,p)}},8504:(Pe,V,a)=>{"use strict";a.d(V,{_:()=>w});var t=a(5592),d=a(4674);function w(L,p){const O=(0,d.m)(L)?L:()=>L,R=F=>F.error(O());return new t.y(p?F=>p.schedule(R,0,F):R)}},4825:(Pe,V,a)=>{"use strict";a.d(V,{H:()=>p});var t=a(5592),d=a(6321),w=a(671);function p(O=0,R,F=d.P){let P=-1;return null!=R&&((0,w.K)(R)?F=R:P=R),new t.y(B=>{let $=function L(O){return O instanceof Date&&!isNaN(O)}(O)?+O-F.now():O;$<0&&($=0);let f=0;return F.schedule(function(){B.closed||(B.next(f++),0<=P?this.schedule(void 0,P):B.complete())},$)})}},8251:(Pe,V,a)=>{"use strict";a.d(V,{x:()=>d});var t=a(305);function d(L,p,O,R,F){return new w(L,p,O,R,F)}class w extends t.Lv{constructor(p,O,R,F,P,B){super(p),this.onFinalize=P,this.shouldUnsubscribe=B,this._next=O?function($){try{O($)}catch(f){p.error(f)}}:super._next,this._error=F?function($){try{F($)}catch(f){p.error(f)}finally{this.unsubscribe()}}:super._error,this._complete=R?function(){try{R()}catch($){p.error($)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var p;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:O}=this;super.unsubscribe(),!O&&(null===(p=this.onFinalize)||void 0===p||p.call(this))}}}},6306:(Pe,V,a)=>{"use strict";a.d(V,{K:()=>L});var t=a(4829),d=a(8251),w=a(9360);function L(p){return(0,w.e)((O,R)=>{let B,F=null,P=!1;F=O.subscribe((0,d.x)(R,void 0,void 0,$=>{B=(0,t.Xf)(p($,L(p)(O))),F?(F.unsubscribe(),F=null,B.subscribe(R)):P=!0})),P&&(F.unsubscribe(),F=null,B.subscribe(R))})}},6328:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>w});var t=a(1631),d=a(4674);function w(L,p){return(0,d.m)(p)?(0,t.z)(L,p,1):(0,t.z)(L,1)}},3620:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>L});var t=a(6321),d=a(9360),w=a(8251);function L(p,O=t.z){return(0,d.e)((R,F)=>{let P=null,B=null,$=null;const f=()=>{if(P){P.unsubscribe(),P=null;const S=B;B=null,F.next(S)}};function j(){const S=$+p,q=O.now();if(q{B=S,$=O.now(),P||(P=O.schedule(j,p),F.add(P))},()=>{f(),F.complete()},void 0,()=>{B=P=null}))})}},3572:(Pe,V,a)=>{"use strict";a.d(V,{d:()=>w});var t=a(9360),d=a(8251);function w(L){return(0,t.e)((p,O)=>{let R=!1;p.subscribe((0,d.x)(O,F=>{R=!0,O.next(F)},()=>{R||O.next(L),O.complete()}))})}},3997:(Pe,V,a)=>{"use strict";a.d(V,{x:()=>L});var t=a(2737),d=a(9360),w=a(8251);function L(O,R=t.y){return O=O??p,(0,d.e)((F,P)=>{let B,$=!0;F.subscribe((0,w.x)(P,f=>{const j=R(f);($||!O(B,j))&&($=!1,B=j,P.next(f))}))})}function p(O,R){return O===R}},2181:(Pe,V,a)=>{"use strict";a.d(V,{h:()=>w});var t=a(9360),d=a(8251);function w(L,p){return(0,t.e)((O,R)=>{let F=0;O.subscribe((0,d.x)(R,P=>L.call(p,P,F++)&&R.next(P)))})}},4716:(Pe,V,a)=>{"use strict";a.d(V,{x:()=>d});var t=a(9360);function d(w){return(0,t.e)((L,p)=>{try{L.subscribe(p)}finally{p.add(w)}})}},7398:(Pe,V,a)=>{"use strict";a.d(V,{U:()=>w});var t=a(9360),d=a(8251);function w(L,p){return(0,t.e)((O,R)=>{let F=0;O.subscribe((0,d.x)(R,P=>{R.next(L.call(p,P,F++))}))})}},975:(Pe,V,a)=>{"use strict";a.d(V,{h:()=>d});var t=a(7398);function d(w){return(0,t.U)(()=>w)}},7537:(Pe,V,a)=>{"use strict";a.d(V,{J:()=>w});var t=a(1631),d=a(2737);function w(L=1/0){return(0,t.z)(d.y,L)}},1631:(Pe,V,a)=>{"use strict";a.d(V,{z:()=>F});var t=a(7398),d=a(4829),w=a(9360),L=a(7103),p=a(8251),R=a(4674);function F(P,B,$=1/0){return(0,R.m)(B)?F((f,j)=>(0,t.U)((S,q)=>B(f,S,j,q))((0,d.Xf)(P(f,j))),$):("number"==typeof B&&($=B),(0,w.e)((f,j)=>function O(P,B,$,f,j,S,q,ie){const k=[];let Te=0,Me=0,ye=!1;const ce=()=>{ye&&!k.length&&!Te&&B.complete()},_e=xe=>Te{S&&B.next(xe),Te++;let be=!1;(0,d.Xf)($(xe,Me++)).subscribe((0,p.x)(B,ke=>{j?.(ke),S?_e(ke):B.next(ke)},()=>{be=!0},void 0,()=>{if(be)try{for(Te--;k.length&&Teve(ke)):ve(ke)}ce()}catch(ke){B.error(ke)}}))};return P.subscribe((0,p.x)(B,_e,()=>{ye=!0,ce()})),()=>{ie?.()}}(f,j,P,$)))}},6699:(Pe,V,a)=>{"use strict";a.d(V,{R:()=>L});var t=a(9360),d=a(8251);function L(p,O){return(0,t.e)(function w(p,O,R,F,P){return(B,$)=>{let f=R,j=O,S=0;B.subscribe((0,d.x)($,q=>{const ie=S++;j=f?p(j,q,ie):(f=!0,q),F&&$.next(j)},P&&(()=>{f&&$.next(j),$.complete()})))}}(p,O,arguments.length>=2,!0))}},3020:(Pe,V,a)=>{"use strict";a.d(V,{B:()=>p});var t=a(4829),d=a(8645),w=a(305),L=a(9360);function p(R={}){const{connector:F=(()=>new d.x),resetOnError:P=!0,resetOnComplete:B=!0,resetOnRefCountZero:$=!0}=R;return f=>{let j,S,q,ie=0,k=!1,Te=!1;const Me=()=>{S?.unsubscribe(),S=void 0},ye=()=>{Me(),j=q=void 0,k=Te=!1},ce=()=>{const _e=j;ye(),_e?.unsubscribe()};return(0,L.e)((_e,ve)=>{ie++,!Te&&!k&&Me();const xe=q=q??F();ve.add(()=>{ie--,0===ie&&!Te&&!k&&(S=O(ce,$))}),xe.subscribe(ve),!j&&ie>0&&(j=new w.Hp({next:be=>xe.next(be),error:be=>{Te=!0,Me(),S=O(ye,P,be),xe.error(be)},complete:()=>{k=!0,Me(),S=O(ye,B),xe.complete()}}),(0,t.Xf)(_e).subscribe(j))})(f)}}function O(R,F,...P){if(!0===F)return void R();if(!1===F)return;const B=new w.Hp({next:()=>{B.unsubscribe(),R()}});return(0,t.Xf)(F(...P)).subscribe(B)}},7081:(Pe,V,a)=>{"use strict";a.d(V,{d:()=>w});var t=a(7328),d=a(3020);function w(L,p,O){let R,F=!1;return L&&"object"==typeof L?({bufferSize:R=1/0,windowTime:p=1/0,refCount:F=!1,scheduler:O}=L):R=L??1/0,(0,d.B)({connector:()=>new t.t(R,p,O),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:F})}},836:(Pe,V,a)=>{"use strict";a.d(V,{T:()=>d});var t=a(2181);function d(w){return(0,t.h)((L,p)=>w<=p)}},7921:(Pe,V,a)=>{"use strict";a.d(V,{O:()=>L});var t=a(5211),d=a(9940),w=a(9360);function L(...p){const O=(0,d.yG)(p);return(0,w.e)((R,F)=>{(O?(0,t.z)(p,R,O):(0,t.z)(p,R)).subscribe(F)})}},2689:(Pe,V,a)=>{"use strict";a.d(V,{B:()=>w});var t=a(4664),d=a(2737);function w(){return(0,t.w)(d.y)}},4664:(Pe,V,a)=>{"use strict";a.d(V,{w:()=>L});var t=a(4829),d=a(9360),w=a(8251);function L(p,O){return(0,d.e)((R,F)=>{let P=null,B=0,$=!1;const f=()=>$&&!P&&F.complete();R.subscribe((0,w.x)(F,j=>{P?.unsubscribe();let S=0;const q=B++;(0,t.Xf)(p(j,q)).subscribe(P=(0,w.x)(F,ie=>F.next(O?O(j,ie,q,S++):ie),()=>{P=null,f()}))},()=>{$=!0,f()}))})}},8180:(Pe,V,a)=>{"use strict";a.d(V,{q:()=>L});var t=a(6232),d=a(9360),w=a(8251);function L(p){return p<=0?()=>t.E:(0,d.e)((O,R)=>{let F=0;O.subscribe((0,w.x)(R,P=>{++F<=p&&(R.next(P),p<=F&&R.complete())}))})}},9773:(Pe,V,a)=>{"use strict";a.d(V,{R:()=>p});var t=a(9360),d=a(8251),w=a(4829),L=a(2420);function p(O){return(0,t.e)((R,F)=>{(0,w.Xf)(O).subscribe((0,d.x)(F,()=>F.complete(),L.Z)),!F.closed&&R.subscribe(F)})}},9397:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>p});var t=a(4674),d=a(9360),w=a(8251),L=a(2737);function p(O,R,F){const P=(0,t.m)(O)||R||F?{next:O,error:R,complete:F}:O;return P?(0,d.e)((B,$)=>{var f;null===(f=P.subscribe)||void 0===f||f.call(P);let j=!0;B.subscribe((0,w.x)($,S=>{var q;null===(q=P.next)||void 0===q||q.call(P,S),$.next(S)},()=>{var S;j=!1,null===(S=P.complete)||void 0===S||S.call(P),$.complete()},S=>{var q;j=!1,null===(q=P.error)||void 0===q||q.call(P,S),$.error(S)},()=>{var S,q;j&&(null===(S=P.unsubscribe)||void 0===S||S.call(P)),null===(q=P.finalize)||void 0===q||q.call(P)}))}):L.y}},2460:(Pe,V,a)=>{"use strict";a.d(V,{M:()=>R});var t=a(9360),d=a(8251),w=a(4829),L=a(2737),p=a(2420),O=a(9940);function R(...F){const P=(0,O.jO)(F);return(0,t.e)((B,$)=>{const f=F.length,j=new Array(f);let S=F.map(()=>!1),q=!1;for(let ie=0;ie{j[ie]=k,!q&&!S[ie]&&(S[ie]=!0,(q=S.every(L.y))&&(S=null))},p.Z));B.subscribe((0,d.x)($,ie=>{if(q){const k=[ie,...j];$.next(P?P(...k):k)}}))})}},1954:(Pe,V,a)=>{"use strict";a.d(V,{o:()=>p});var t=a(7394);class d extends t.w0{constructor(R,F){super()}schedule(R,F=0){return this}}const w={setInterval(O,R,...F){const{delegate:P}=w;return P?.setInterval?P.setInterval(O,R,...F):setInterval(O,R,...F)},clearInterval(O){const{delegate:R}=w;return(R?.clearInterval||clearInterval)(O)},delegate:void 0};var L=a(9039);class p extends d{constructor(R,F){super(R,F),this.scheduler=R,this.work=F,this.pending=!1}schedule(R,F=0){var P;if(this.closed)return this;this.state=R;const B=this.id,$=this.scheduler;return null!=B&&(this.id=this.recycleAsyncId($,B,F)),this.pending=!0,this.delay=F,this.id=null!==(P=this.id)&&void 0!==P?P:this.requestAsyncId($,this.id,F),this}requestAsyncId(R,F,P=0){return w.setInterval(R.flush.bind(R,this),P)}recycleAsyncId(R,F,P=0){if(null!=P&&this.delay===P&&!1===this.pending)return F;null!=F&&w.clearInterval(F)}execute(R,F){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const P=this._execute(R,F);if(P)return P;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(R,F){let B,P=!1;try{this.work(R)}catch($){P=!0,B=$||new Error("Scheduled action threw falsy error")}if(P)return this.unsubscribe(),B}unsubscribe(){if(!this.closed){const{id:R,scheduler:F}=this,{actions:P}=F;this.work=this.state=this.scheduler=null,this.pending=!1,(0,L.P)(P,this),null!=R&&(this.id=this.recycleAsyncId(F,R,null)),this.delay=null,super.unsubscribe()}}}},2631:(Pe,V,a)=>{"use strict";a.d(V,{v:()=>w});var t=a(4552);class d{constructor(p,O=d.now){this.schedulerActionCtor=p,this.now=O}schedule(p,O=0,R){return new this.schedulerActionCtor(this,p).schedule(R,O)}}d.now=t.l.now;class w extends d{constructor(p,O=d.now){super(p,O),this.actions=[],this._active=!1}flush(p){const{actions:O}=this;if(this._active)return void O.push(p);let R;this._active=!0;do{if(R=p.execute(p.state,p.delay))break}while(p=O.shift());if(this._active=!1,R){for(;p=O.shift();)p.unsubscribe();throw R}}}},6321:(Pe,V,a)=>{"use strict";a.d(V,{P:()=>L,z:()=>w});var t=a(1954);const w=new(a(2631).v)(t.o),L=w},4552:(Pe,V,a)=>{"use strict";a.d(V,{l:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},7599:(Pe,V,a)=>{"use strict";a.d(V,{z:()=>t});const t={setTimeout(d,w,...L){const{delegate:p}=t;return p?.setTimeout?p.setTimeout(d,w,...L):setTimeout(d,w,...L)},clearTimeout(d){const{delegate:w}=t;return(w?.clearTimeout||clearTimeout)(d)},delegate:void 0}},4971:(Pe,V,a)=>{"use strict";a.d(V,{h:()=>d});const d=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},4850:(Pe,V,a)=>{"use strict";a.d(V,{L:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},9940:(Pe,V,a)=>{"use strict";a.d(V,{_6:()=>O,jO:()=>L,yG:()=>p});var t=a(4674),d=a(671);function w(R){return R[R.length-1]}function L(R){return(0,t.m)(w(R))?R.pop():void 0}function p(R){return(0,d.K)(w(R))?R.pop():void 0}function O(R,F){return"number"==typeof w(R)?R.pop():F}},7453:(Pe,V,a)=>{"use strict";a.d(V,{D:()=>p});const{isArray:t}=Array,{getPrototypeOf:d,prototype:w,keys:L}=Object;function p(R){if(1===R.length){const F=R[0];if(t(F))return{args:F,keys:null};if(function O(R){return R&&"object"==typeof R&&d(R)===w}(F)){const P=L(F);return{args:P.map(B=>F[B]),keys:P}}}return{args:R,keys:null}}},9039:(Pe,V,a)=>{"use strict";function t(d,w){if(d){const L=d.indexOf(w);0<=L&&d.splice(L,1)}}a.d(V,{P:()=>t})},2306:(Pe,V,a)=>{"use strict";function t(d){const L=d(p=>{Error.call(p),p.stack=(new Error).stack});return L.prototype=Object.create(Error.prototype),L.prototype.constructor=L,L}a.d(V,{d:()=>t})},2714:(Pe,V,a)=>{"use strict";function t(d,w){return d.reduce((L,p,O)=>(L[p]=w[O],L),{})}a.d(V,{n:()=>t})},1441:(Pe,V,a)=>{"use strict";a.d(V,{O:()=>L,x:()=>w});var t=a(2653);let d=null;function w(p){if(t.config.useDeprecatedSynchronousErrorHandling){const O=!d;if(O&&(d={errorThrown:!1,error:null}),p(),O){const{errorThrown:R,error:F}=d;if(d=null,R)throw F}}else p()}function L(p){t.config.useDeprecatedSynchronousErrorHandling&&d&&(d.errorThrown=!0,d.error=p)}},7103:(Pe,V,a)=>{"use strict";function t(d,w,L,p=0,O=!1){const R=w.schedule(function(){L(),O?d.add(this.schedule(null,p)):this.unsubscribe()},p);if(d.add(R),!O)return R}a.d(V,{f:()=>t})},2737:(Pe,V,a)=>{"use strict";function t(d){return d}a.d(V,{y:()=>t})},4266:(Pe,V,a)=>{"use strict";a.d(V,{z:()=>t});const t=d=>d&&"number"==typeof d.length&&"function"!=typeof d},5726:(Pe,V,a)=>{"use strict";a.d(V,{D:()=>d});var t=a(4674);function d(w){return Symbol.asyncIterator&&(0,t.m)(w?.[Symbol.asyncIterator])}},4674:(Pe,V,a)=>{"use strict";function t(d){return"function"==typeof d}a.d(V,{m:()=>t})},8382:(Pe,V,a)=>{"use strict";a.d(V,{c:()=>w});var t=a(4850),d=a(4674);function w(L){return(0,d.m)(L[t.L])}},3664:(Pe,V,a)=>{"use strict";a.d(V,{T:()=>w});var t=a(4971),d=a(4674);function w(L){return(0,d.m)(L?.[t.h])}},2664:(Pe,V,a)=>{"use strict";a.d(V,{b:()=>w});var t=a(5592),d=a(4674);function w(L){return!!L&&(L instanceof t.y||(0,d.m)(L.lift)&&(0,d.m)(L.subscribe))}},4026:(Pe,V,a)=>{"use strict";a.d(V,{t:()=>d});var t=a(4674);function d(w){return(0,t.m)(w?.then)}},541:(Pe,V,a)=>{"use strict";a.d(V,{L:()=>L,Q:()=>w});var t=a(7582),d=a(4674);function w(p){return(0,t.FC)(this,arguments,function*(){const R=p.getReader();try{for(;;){const{value:F,done:P}=yield(0,t.qq)(R.read());if(P)return yield(0,t.qq)(void 0);yield yield(0,t.qq)(F)}}finally{R.releaseLock()}})}function L(p){return(0,d.m)(p?.getReader)}},671:(Pe,V,a)=>{"use strict";a.d(V,{K:()=>d});var t=a(4674);function d(w){return w&&(0,t.m)(w.schedule)}},9360:(Pe,V,a)=>{"use strict";a.d(V,{A:()=>d,e:()=>w});var t=a(4674);function d(L){return(0,t.m)(L?.lift)}function w(L){return p=>{if(d(p))return p.lift(function(O){try{return L(O,this)}catch(R){this.error(R)}});throw new TypeError("Unable to lift unknown Observable type")}}},7400:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(7398);const{isArray:d}=Array;function L(p){return(0,t.U)(O=>function w(p,O){return d(O)?p(...O):p(O)}(p,O))}},2420:(Pe,V,a)=>{"use strict";function t(){}a.d(V,{Z:()=>t})},8407:(Pe,V,a)=>{"use strict";a.d(V,{U:()=>w,z:()=>d});var t=a(2737);function d(...L){return w(L)}function w(L){return 0===L.length?t.y:1===L.length?L[0]:function(O){return L.reduce((R,F)=>F(R),O)}}},3894:(Pe,V,a)=>{"use strict";a.d(V,{h:()=>w});var t=a(2653),d=a(7599);function w(L){d.z.setTimeout(()=>{const{onUnhandledError:p}=t.config;if(!p)throw L;p(L)})}},9853:(Pe,V,a)=>{"use strict";function t(d){return new TypeError(`You provided ${null!==d&&"object"==typeof d?"an invalid object":`'${d}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}a.d(V,{z:()=>t})},5129:(Pe,V,a)=>{var t=a(1474).FilterCSS,d=a(1474).getDefaultWhiteList,w=a(8735);var p=new t;function B(Ee){return Ee.replace(f,"<").replace(j,">")}var f=//g,S=/"/g,q=/"/g,ie=/&#([a-zA-Z0-9]*);?/gim,k=/:?/gim,Te=/&newline;?/gim,Me=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,ye=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,ce=/u\s*r\s*l\s*\(.*/gi;function _e(Ee){return Ee.replace(S,""")}function ve(Ee){return Ee.replace(q,'"')}function xe(Ee){return Ee.replace(ie,function(J,Q){return String.fromCharCode("x"===Q[0]||"X"===Q[0]?parseInt(Q.substr(1),16):parseInt(Q,10))})}function be(Ee){return Ee.replace(k,":").replace(Te," ")}function ke(Ee){for(var ze="",J=0,Q=Ee.length;J{var t=a(5129),d=a(4469),w=a(9278);function L(O,R){return new w(R).process(O)}(V=Pe.exports=L).filterXSS=L,V.FilterXSS=w,function(){for(var O in t)V[O]=t[O];for(var R in d)V[R]=d[R]}(),typeof window<"u"&&(window.filterXSS=Pe.exports),function p(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}()&&(self.filterXSS=Pe.exports)},4469:(Pe,V,a)=>{var t=a(8735);function d(f){var S,j=t.spaceIndex(f);return S=f.slice(1,-1===j?-1:j+1),"/"===(S=t.trim(S).toLowerCase()).slice(0,1)&&(S=S.slice(1)),"/"===S.slice(-1)&&(S=S.slice(0,-1)),S}function w(f){return"0;j--){var S=f[j];if(" "!==S)return"="===S?j:-1}}function $(f){return function B(f){return'"'===f[0]&&'"'===f[f.length-1]||"'"===f[0]&&"'"===f[f.length-1]}(f)?f.substr(1,f.length-2):f}V.parseTag=function L(f,j,S){"use strict";var q="",ie=0,k=!1,Te=!1,Me=0,ye=f.length,ce="",_e="";e:for(Me=0;Me"===ve||Me===ye-1){q+=S(f.slice(ie,k)),ce=d(_e=f.slice(k,Me+1)),q+=j(k,q.length,ce,_e,w(_e)),ie=Me+1,k=!1;continue}if('"'===ve||"'"===ve)for(var xe=1,be=f.charAt(Me-xe);""===be.trim()||"="===be;){if("="===be){Te=ve;continue e}be=f.charAt(Me-++xe)}}else if(ve===Te){Te=!1;continue}}return ie{Pe.exports={indexOf:function(V,a){var t,d;if(Array.prototype.indexOf)return V.indexOf(a);for(t=0,d=V.length;t{var t=a(1474).FilterCSS,d=a(5129),w=a(4469),L=w.parseTag,p=w.parseAttr,O=a(8735);function R(f){return null==f}function $(f){(f=function P(f){var j={};for(var S in f)j[S]=f[S];return j}(f||{})).stripIgnoreTag&&(f.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),f.onIgnoreTag=d.onIgnoreTagStripAll),f.whiteList=f.whiteList||f.allowList?function B(f){var j={};for(var S in f)Array.isArray(f[S])?j[S.toLowerCase()]=f[S].map(function(q){return q.toLowerCase()}):j[S.toLowerCase()]=f[S];return j}(f.whiteList||f.allowList):d.whiteList,f.onTag=f.onTag||d.onTag,f.onTagAttr=f.onTagAttr||d.onTagAttr,f.onIgnoreTag=f.onIgnoreTag||d.onIgnoreTag,f.onIgnoreTagAttr=f.onIgnoreTagAttr||d.onIgnoreTagAttr,f.safeAttrValue=f.safeAttrValue||d.safeAttrValue,f.escapeHtml=f.escapeHtml||d.escapeHtml,this.options=f,!1===f.css?this.cssFilter=!1:(f.css=f.css||{},this.cssFilter=new t(f.css))}$.prototype.process=function(f){if(!(f=(f=f||"").toString()))return"";var S=this.options,q=S.whiteList,ie=S.onTag,k=S.onIgnoreTag,Te=S.onTagAttr,Me=S.onIgnoreTagAttr,ye=S.safeAttrValue,ce=S.escapeHtml,_e=this.cssFilter;S.stripBlankChar&&(f=d.stripBlankChar(f)),S.allowCommentTag||(f=d.stripCommentTag(f));var ve=!1;S.stripIgnoreTagBody&&(ve=d.StripTagBody(S.stripIgnoreTagBody,k),k=ve.onIgnoreTag);var xe=L(f,function(be,ke,vt,it,St){var qe={sourcePosition:be,position:ke,isClosing:St,isWhite:Object.prototype.hasOwnProperty.call(q,vt)},_t=ie(vt,it,qe);if(!R(_t))return _t;if(qe.isWhite){if(qe.isClosing)return"";var $e=function F(f){var j=O.spaceIndex(f);if(-1===j)return{html:"",closing:"/"===f[f.length-2]};var S="/"===(f=O.trim(f.slice(j+1,-1)))[f.length-1];return S&&(f=O.trim(f.slice(0,-1))),{html:f,closing:S}}(it),Ee=q[vt],ze=p($e.html,function(J,Q){var oe=-1!==O.indexOf(Ee,J),se=Te(vt,J,Q,oe);return R(se)?oe?(Q=ye(vt,J,Q,_e))?J+'="'+Q+'"':J:R(se=Me(vt,J,Q,oe))?void 0:se:se});return it="<"+vt,ze&&(it+=" "+ze),$e.closing&&(it+=" /"),it+">"}return R(_t=k(vt,it,qe))?ce(it):_t},ce);return ve&&(xe=ve.remove(xe)),xe},Pe.exports=$},6814:(Pe,V,a)=>{"use strict";a.d(V,{Do:()=>ie,EM:()=>di,HT:()=>L,JF:()=>Oi,JJ:()=>Kt,K0:()=>O,Mn:()=>$e,Mx:()=>Hr,O5:()=>X,Ov:()=>Wi,PC:()=>ir,PM:()=>Yn,S$:()=>j,Tn:()=>ke,UT:()=>Ee,V_:()=>F,Ye:()=>k,ax:()=>z,b0:()=>q,bD:()=>ct,ez:()=>Ve,mk:()=>qn,p6:()=>dn,q:()=>w,qS:()=>Ar,sg:()=>z,tP:()=>_r,uU:()=>vi,uf:()=>bt,w_:()=>p,x:()=>be});var t=a(5879);let d=null;function w(){return d}function L(T){d||(d=T)}class p{}const O=new t.OlP("DocumentToken");let R=(()=>{class T{historyGo(U){throw new Error("Not implemented")}static#e=this.\u0275fac=function(ee){return new(ee||T)};static#t=this.\u0275prov=t.Yz7({token:T,factory:function(){return(0,t.f3M)(P)},providedIn:"platform"})}return T})();const F=new t.OlP("Location Initialized");let P=(()=>{class T extends R{constructor(){super(),this._doc=(0,t.f3M)(O),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return w().getBaseHref(this._doc)}onPopState(U){const ee=w().getGlobalEventTarget(this._doc,"window");return ee.addEventListener("popstate",U,!1),()=>ee.removeEventListener("popstate",U)}onHashChange(U){const ee=w().getGlobalEventTarget(this._doc,"window");return ee.addEventListener("hashchange",U,!1),()=>ee.removeEventListener("hashchange",U)}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(U){this._location.pathname=U}pushState(U,ee,Ie){this._history.pushState(U,ee,Ie)}replaceState(U,ee,Ie){this._history.replaceState(U,ee,Ie)}forward(){this._history.forward()}back(){this._history.back()}historyGo(U=0){this._history.go(U)}getState(){return this._history.state}static#e=this.\u0275fac=function(ee){return new(ee||T)};static#t=this.\u0275prov=t.Yz7({token:T,factory:function(){return new T},providedIn:"platform"})}return T})();function B(T,le){if(0==T.length)return le;if(0==le.length)return T;let U=0;return T.endsWith("/")&&U++,le.startsWith("/")&&U++,2==U?T+le.substring(1):1==U?T+le:T+"/"+le}function $(T){const le=T.match(/#|\?|$/),U=le&&le.index||T.length;return T.slice(0,U-("/"===T[U-1]?1:0))+T.slice(U)}function f(T){return T&&"?"!==T[0]?"?"+T:T}let j=(()=>{class T{historyGo(U){throw new Error("Not implemented")}static#e=this.\u0275fac=function(ee){return new(ee||T)};static#t=this.\u0275prov=t.Yz7({token:T,factory:function(){return(0,t.f3M)(q)},providedIn:"root"})}return T})();const S=new t.OlP("appBaseHref");let q=(()=>{class T extends j{constructor(U,ee){super(),this._platformLocation=U,this._removeListenerFns=[],this._baseHref=ee??this._platformLocation.getBaseHrefFromDOM()??(0,t.f3M)(O).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(U){this._removeListenerFns.push(this._platformLocation.onPopState(U),this._platformLocation.onHashChange(U))}getBaseHref(){return this._baseHref}prepareExternalUrl(U){return B(this._baseHref,U)}path(U=!1){const ee=this._platformLocation.pathname+f(this._platformLocation.search),Ie=this._platformLocation.hash;return Ie&&U?`${ee}${Ie}`:ee}pushState(U,ee,Ie,gt){const Ct=this.prepareExternalUrl(Ie+f(gt));this._platformLocation.pushState(U,ee,Ct)}replaceState(U,ee,Ie,gt){const Ct=this.prepareExternalUrl(Ie+f(gt));this._platformLocation.replaceState(U,ee,Ct)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(U=0){this._platformLocation.historyGo?.(U)}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.LFG(R),t.LFG(S,8))};static#t=this.\u0275prov=t.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"})}return T})(),ie=(()=>{class T extends j{constructor(U,ee){super(),this._platformLocation=U,this._baseHref="",this._removeListenerFns=[],null!=ee&&(this._baseHref=ee)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(U){this._removeListenerFns.push(this._platformLocation.onPopState(U),this._platformLocation.onHashChange(U))}getBaseHref(){return this._baseHref}path(U=!1){let ee=this._platformLocation.hash;return null==ee&&(ee="#"),ee.length>0?ee.substring(1):ee}prepareExternalUrl(U){const ee=B(this._baseHref,U);return ee.length>0?"#"+ee:ee}pushState(U,ee,Ie,gt){let Ct=this.prepareExternalUrl(Ie+f(gt));0==Ct.length&&(Ct=this._platformLocation.pathname),this._platformLocation.pushState(U,ee,Ct)}replaceState(U,ee,Ie,gt){let Ct=this.prepareExternalUrl(Ie+f(gt));0==Ct.length&&(Ct=this._platformLocation.pathname),this._platformLocation.replaceState(U,ee,Ct)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(U=0){this._platformLocation.historyGo?.(U)}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.LFG(R),t.LFG(S,8))};static#t=this.\u0275prov=t.Yz7({token:T,factory:T.\u0275fac})}return T})(),k=(()=>{class T{constructor(U){this._subject=new t.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=U;const ee=this._locationStrategy.getBaseHref();this._basePath=function ce(T){if(new RegExp("^(https?:)?//").test(T)){const[,U]=T.split(/\/\/[^\/]+/);return U}return T}($(ye(ee))),this._locationStrategy.onPopState(Ie=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ie.state,type:Ie.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(U=!1){return this.normalize(this._locationStrategy.path(U))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(U,ee=""){return this.path()==this.normalize(U+f(ee))}normalize(U){return T.stripTrailingSlash(function Me(T,le){if(!T||!le.startsWith(T))return le;const U=le.substring(T.length);return""===U||["/",";","?","#"].includes(U[0])?U:le}(this._basePath,ye(U)))}prepareExternalUrl(U){return U&&"/"!==U[0]&&(U="/"+U),this._locationStrategy.prepareExternalUrl(U)}go(U,ee="",Ie=null){this._locationStrategy.pushState(Ie,"",U,ee),this._notifyUrlChangeListeners(this.prepareExternalUrl(U+f(ee)),Ie)}replaceState(U,ee="",Ie=null){this._locationStrategy.replaceState(Ie,"",U,ee),this._notifyUrlChangeListeners(this.prepareExternalUrl(U+f(ee)),Ie)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(U=0){this._locationStrategy.historyGo?.(U)}onUrlChange(U){return this._urlChangeListeners.push(U),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ee=>{this._notifyUrlChangeListeners(ee.url,ee.state)})),()=>{const ee=this._urlChangeListeners.indexOf(U);this._urlChangeListeners.splice(ee,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(U="",ee){this._urlChangeListeners.forEach(Ie=>Ie(U,ee))}subscribe(U,ee,Ie){return this._subject.subscribe({next:U,error:ee,complete:Ie})}static#e=this.normalizeQueryParams=f;static#t=this.joinWithSlash=B;static#n=this.stripTrailingSlash=$;static#r=this.\u0275fac=function(ee){return new(ee||T)(t.LFG(j))};static#i=this.\u0275prov=t.Yz7({token:T,factory:function(){return function Te(){return new k((0,t.LFG)(j))}()},providedIn:"root"})}return T})();function ye(T){return T.replace(/\/index.html$/,"")}var ve=function(T){return T[T.Decimal=0]="Decimal",T[T.Percent=1]="Percent",T[T.Currency=2]="Currency",T[T.Scientific=3]="Scientific",T}(ve||{}),be=function(T){return T[T.Format=0]="Format",T[T.Standalone=1]="Standalone",T}(be||{}),ke=function(T){return T[T.Narrow=0]="Narrow",T[T.Abbreviated=1]="Abbreviated",T[T.Wide=2]="Wide",T[T.Short=3]="Short",T}(ke||{}),vt=function(T){return T[T.Short=0]="Short",T[T.Medium=1]="Medium",T[T.Long=2]="Long",T[T.Full=3]="Full",T}(vt||{}),it=function(T){return T[T.Decimal=0]="Decimal",T[T.Group=1]="Group",T[T.List=2]="List",T[T.PercentSign=3]="PercentSign",T[T.PlusSign=4]="PlusSign",T[T.MinusSign=5]="MinusSign",T[T.Exponential=6]="Exponential",T[T.SuperscriptingExponent=7]="SuperscriptingExponent",T[T.PerMille=8]="PerMille",T[T.Infinity=9]="Infinity",T[T.NaN=10]="NaN",T[T.TimeSeparator=11]="TimeSeparator",T[T.CurrencyDecimal=12]="CurrencyDecimal",T[T.CurrencyGroup=13]="CurrencyGroup",T}(it||{});function $e(T,le,U){const ee=(0,t.cg1)(T),gt=zt([ee[t.wAp.DaysFormat],ee[t.wAp.DaysStandalone]],le);return zt(gt,U)}function Ee(T,le,U){const ee=(0,t.cg1)(T),gt=zt([ee[t.wAp.MonthsFormat],ee[t.wAp.MonthsStandalone]],le);return zt(gt,U)}function oe(T,le){return zt((0,t.cg1)(T)[t.wAp.DateFormat],le)}function se(T,le){return zt((0,t.cg1)(T)[t.wAp.TimeFormat],le)}function ae(T,le){return zt((0,t.cg1)(T)[t.wAp.DateTimeFormat],le)}function fe(T,le){const U=(0,t.cg1)(T),ee=U[t.wAp.NumberSymbols][le];if(typeof ee>"u"){if(le===it.CurrencyDecimal)return U[t.wAp.NumberSymbols][it.Decimal];if(le===it.CurrencyGroup)return U[t.wAp.NumberSymbols][it.Group]}return ee}function Je(T){if(!T[t.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${T[t.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function zt(T,le){for(let U=le;U>-1;U--)if(typeof T[U]<"u")return T[U];throw new Error("Locale data API: locale data undefined")}function un(T){const[le,U]=T.split(":");return{hours:+le,minutes:+U}}const At=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ot={},tn=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Et=function(T){return T[T.Short=0]="Short",T[T.ShortGMT=1]="ShortGMT",T[T.Long=2]="Long",T[T.Extended=3]="Extended",T}(Et||{}),Ht=function(T){return T[T.FullYear=0]="FullYear",T[T.Month=1]="Month",T[T.Date=2]="Date",T[T.Hours=3]="Hours",T[T.Minutes=4]="Minutes",T[T.Seconds=5]="Seconds",T[T.FractionalSeconds=6]="FractionalSeconds",T[T.Day=7]="Day",T}(Ht||{}),Zt=function(T){return T[T.DayPeriods=0]="DayPeriods",T[T.Days=1]="Days",T[T.Months=2]="Months",T[T.Eras=3]="Eras",T}(Zt||{});function dn(T,le,U,ee){let Ie=function dt(T){if(we(T))return T;if("number"==typeof T&&!isNaN(T))return new Date(T);if("string"==typeof T){if(T=T.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(T)){const[Ie,gt=1,Ct=1]=T.split("-").map(Jt=>+Jt);return wn(Ie,gt-1,Ct)}const U=parseFloat(T);if(!isNaN(T-U))return new Date(U);let ee;if(ee=T.match(At))return function at(T){const le=new Date(0);let U=0,ee=0;const Ie=T[8]?le.setUTCFullYear:le.setFullYear,gt=T[8]?le.setUTCHours:le.setHours;T[9]&&(U=Number(T[9]+T[10]),ee=Number(T[9]+T[11])),Ie.call(le,Number(T[1]),Number(T[2])-1,Number(T[3]));const Ct=Number(T[4]||0)-U,Jt=Number(T[5]||0)-ee,Bn=Number(T[6]||0),dr=Math.floor(1e3*parseFloat("0."+(T[7]||0)));return gt.call(le,Ct,Jt,Bn,dr),le}(ee)}const le=new Date(T);if(!we(le))throw new Error(`Unable to convert "${T}" into a date`);return le}(T);le=fn(U,le)||le;let Jt,Ct=[];for(;le;){if(Jt=tn.exec(le),!Jt){Ct.push(le);break}{Ct=Ct.concat(Jt.slice(1));const yr=Ct.pop();if(!yr)break;le=yr}}let Bn=Ie.getTimezoneOffset();ee&&(Bn=Br(ee,Bn),Ie=function zn(T,le,U){const ee=U?-1:1,Ie=T.getTimezoneOffset();return function oi(T,le){return(T=new Date(T.getTime())).setMinutes(T.getMinutes()+le),T}(T,ee*(Br(le,Ie)-Ie))}(Ie,ee,!0));let dr="";return Ct.forEach(yr=>{const Kn=function Ir(T){if(Or[T])return Or[T];let le;switch(T){case"G":case"GG":case"GGG":le=st(Zt.Eras,ke.Abbreviated);break;case"GGGG":le=st(Zt.Eras,ke.Wide);break;case"GGGGG":le=st(Zt.Eras,ke.Narrow);break;case"y":le=mn(Ht.FullYear,1,0,!1,!0);break;case"yy":le=mn(Ht.FullYear,2,0,!0,!0);break;case"yyy":le=mn(Ht.FullYear,3,0,!1,!0);break;case"yyyy":le=mn(Ht.FullYear,4,0,!1,!0);break;case"Y":le=wr(1);break;case"YY":le=wr(2,!0);break;case"YYY":le=wr(3);break;case"YYYY":le=wr(4);break;case"M":case"L":le=mn(Ht.Month,1,1);break;case"MM":case"LL":le=mn(Ht.Month,2,1);break;case"MMM":le=st(Zt.Months,ke.Abbreviated);break;case"MMMM":le=st(Zt.Months,ke.Wide);break;case"MMMMM":le=st(Zt.Months,ke.Narrow);break;case"LLL":le=st(Zt.Months,ke.Abbreviated,be.Standalone);break;case"LLLL":le=st(Zt.Months,ke.Wide,be.Standalone);break;case"LLLLL":le=st(Zt.Months,ke.Narrow,be.Standalone);break;case"w":le=Dr(1);break;case"ww":le=Dr(2);break;case"W":le=Dr(1,!0);break;case"d":le=mn(Ht.Date,1);break;case"dd":le=mn(Ht.Date,2);break;case"c":case"cc":le=mn(Ht.Day,1);break;case"ccc":le=st(Zt.Days,ke.Abbreviated,be.Standalone);break;case"cccc":le=st(Zt.Days,ke.Wide,be.Standalone);break;case"ccccc":le=st(Zt.Days,ke.Narrow,be.Standalone);break;case"cccccc":le=st(Zt.Days,ke.Short,be.Standalone);break;case"E":case"EE":case"EEE":le=st(Zt.Days,ke.Abbreviated);break;case"EEEE":le=st(Zt.Days,ke.Wide);break;case"EEEEE":le=st(Zt.Days,ke.Narrow);break;case"EEEEEE":le=st(Zt.Days,ke.Short);break;case"a":case"aa":case"aaa":le=st(Zt.DayPeriods,ke.Abbreviated);break;case"aaaa":le=st(Zt.DayPeriods,ke.Wide);break;case"aaaaa":le=st(Zt.DayPeriods,ke.Narrow);break;case"b":case"bb":case"bbb":le=st(Zt.DayPeriods,ke.Abbreviated,be.Standalone,!0);break;case"bbbb":le=st(Zt.DayPeriods,ke.Wide,be.Standalone,!0);break;case"bbbbb":le=st(Zt.DayPeriods,ke.Narrow,be.Standalone,!0);break;case"B":case"BB":case"BBB":le=st(Zt.DayPeriods,ke.Abbreviated,be.Format,!0);break;case"BBBB":le=st(Zt.DayPeriods,ke.Wide,be.Format,!0);break;case"BBBBB":le=st(Zt.DayPeriods,ke.Narrow,be.Format,!0);break;case"h":le=mn(Ht.Hours,1,-12);break;case"hh":le=mn(Ht.Hours,2,-12);break;case"H":le=mn(Ht.Hours,1);break;case"HH":le=mn(Ht.Hours,2);break;case"m":le=mn(Ht.Minutes,1);break;case"mm":le=mn(Ht.Minutes,2);break;case"s":le=mn(Ht.Seconds,1);break;case"ss":le=mn(Ht.Seconds,2);break;case"S":le=mn(Ht.FractionalSeconds,1);break;case"SS":le=mn(Ht.FractionalSeconds,2);break;case"SSS":le=mn(Ht.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":le=Qt(Et.Short);break;case"ZZZZZ":le=Qt(Et.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":le=Qt(Et.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":le=Qt(Et.Long);break;default:return null}return Or[T]=le,le}(yr);dr+=Kn?Kn(Ie,U,Bn):"''"===yr?"'":yr.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),dr}function wn(T,le,U){const ee=new Date(0);return ee.setFullYear(T,le,U),ee.setHours(0,0,0),ee}function fn(T,le){const U=function qe(T){return(0,t.cg1)(T)[t.wAp.LocaleId]}(T);if(Ot[U]=Ot[U]||{},Ot[U][le])return Ot[U][le];let ee="";switch(le){case"shortDate":ee=oe(T,vt.Short);break;case"mediumDate":ee=oe(T,vt.Medium);break;case"longDate":ee=oe(T,vt.Long);break;case"fullDate":ee=oe(T,vt.Full);break;case"shortTime":ee=se(T,vt.Short);break;case"mediumTime":ee=se(T,vt.Medium);break;case"longTime":ee=se(T,vt.Long);break;case"fullTime":ee=se(T,vt.Full);break;case"short":const Ie=fn(T,"shortTime"),gt=fn(T,"shortDate");ee=qt(ae(T,vt.Short),[Ie,gt]);break;case"medium":const Ct=fn(T,"mediumTime"),Jt=fn(T,"mediumDate");ee=qt(ae(T,vt.Medium),[Ct,Jt]);break;case"long":const Bn=fn(T,"longTime"),dr=fn(T,"longDate");ee=qt(ae(T,vt.Long),[Bn,dr]);break;case"full":const yr=fn(T,"fullTime"),Kn=fn(T,"fullDate");ee=qt(ae(T,vt.Full),[yr,Kn])}return ee&&(Ot[U][le]=ee),ee}function qt(T,le){return le&&(T=T.replace(/\{([^}]+)}/g,function(U,ee){return null!=le&&ee in le?le[ee]:U})),T}function En(T,le,U="-",ee,Ie){let gt="";(T<0||Ie&&T<=0)&&(Ie?T=1-T:(T=-T,gt=U));let Ct=String(T);for(;Ct.length0||Jt>-U)&&(Jt+=U),T===Ht.Hours)0===Jt&&-12===U&&(Jt=12);else if(T===Ht.FractionalSeconds)return function Wn(T,le){return En(T,3).substring(0,le)}(Jt,le);const Bn=fe(Ct,it.MinusSign);return En(Jt,le,Bn,ee,Ie)}}function st(T,le,U=be.Format,ee=!1){return function(Ie,gt){return function Ut(T,le,U,ee,Ie,gt){switch(U){case Zt.Months:return Ee(le,Ie,ee)[T.getMonth()];case Zt.Days:return $e(le,Ie,ee)[T.getDay()];case Zt.DayPeriods:const Ct=T.getHours(),Jt=T.getMinutes();if(gt){const dr=function Tt(T){const le=(0,t.cg1)(T);return Je(le),(le[t.wAp.ExtraData][2]||[]).map(ee=>"string"==typeof ee?un(ee):[un(ee[0]),un(ee[1])])}(le),yr=function tt(T,le,U){const ee=(0,t.cg1)(T);Je(ee);const gt=zt([ee[t.wAp.ExtraData][0],ee[t.wAp.ExtraData][1]],le)||[];return zt(gt,U)||[]}(le,Ie,ee),Kn=dr.findIndex(Jr=>{if(Array.isArray(Jr)){const[Jn,ei]=Jr,Ei=Ct>=Jn.hours&&Jt>=Jn.minutes,Ai=Ct0?Math.floor(Ie/60):Math.ceil(Ie/60);switch(T){case Et.Short:return(Ie>=0?"+":"")+En(Ct,2,gt)+En(Math.abs(Ie%60),2,gt);case Et.ShortGMT:return"GMT"+(Ie>=0?"+":"")+En(Ct,1,gt);case Et.Long:return"GMT"+(Ie>=0?"+":"")+En(Ct,2,gt)+":"+En(Math.abs(Ie%60),2,gt);case Et.Extended:return 0===ee?"Z":(Ie>=0?"+":"")+En(Ct,2,gt)+":"+En(Math.abs(Ie%60),2,gt);default:throw new Error(`Unknown zone width "${T}"`)}}}const Dn=0,Sn=4;function nr(T){return wn(T.getFullYear(),T.getMonth(),T.getDate()+(Sn-T.getDay()))}function Dr(T,le=!1){return function(U,ee){let Ie;if(le){const gt=new Date(U.getFullYear(),U.getMonth(),1).getDay()-1,Ct=U.getDate();Ie=1+Math.floor((Ct+gt)/7)}else{const gt=nr(U),Ct=function On(T){const le=wn(T,Dn,1).getDay();return wn(T,0,1+(le<=Sn?Sn:Sn+7)-le)}(gt.getFullYear()),Jt=gt.getTime()-Ct.getTime();Ie=1+Math.round(Jt/6048e5)}return En(Ie,T,fe(ee,it.MinusSign))}}function wr(T,le=!1){return function(U,ee){return En(nr(U).getFullYear(),T,fe(ee,it.MinusSign),le)}}const Or={};function Br(T,le){T=T.replace(/:/g,"");const U=Date.parse("Jan 01, 1970 00:00:00 "+T)/6e4;return isNaN(U)?le:U}function we(T){return T instanceof Date&&!isNaN(T.valueOf())}const He=/^(\d+)?\.((\d+)(-(\d+))?)?$/,yt=22,Wt=".",Vt="0",Un=";",sn=",",rr="#";function bt(T,le,U){return function Qe(T,le,U,ee,Ie,gt,Ct=!1){let Jt="",Bn=!1;if(isFinite(T)){let dr=function Ft(T){let ee,Ie,gt,Ct,Jt,le=Math.abs(T)+"",U=0;for((Ie=le.indexOf(Wt))>-1&&(le=le.replace(Wt,"")),(gt=le.search(/e/i))>0?(Ie<0&&(Ie=gt),Ie+=+le.slice(gt+1),le=le.substring(0,gt)):Ie<0&&(Ie=le.length),gt=0;le.charAt(gt)===Vt;gt++);if(gt===(Jt=le.length))ee=[0],Ie=1;else{for(Jt--;le.charAt(Jt)===Vt;)Jt--;for(Ie-=gt,ee=[],Ct=0;gt<=Jt;gt++,Ct++)ee[Ct]=Number(le.charAt(gt))}return Ie>yt&&(ee=ee.splice(0,yt-1),U=Ie-1,Ie=1),{digits:ee,exponent:U,integerLen:Ie}}(T);Ct&&(dr=function kt(T){if(0===T.digits[0])return T;const le=T.digits.length-T.integerLen;return T.exponent?T.exponent+=2:(0===le?T.digits.push(0,0):1===le&&T.digits.push(0),T.integerLen+=2),T}(dr));let yr=le.minInt,Kn=le.minFrac,Jr=le.maxFrac;if(gt){const Li=gt.match(He);if(null===Li)throw new Error(`${gt} is not a valid digit info`);const ti=Li[1],ds=Li[3],Ts=Li[5];null!=ti&&(yr=Tn(ti)),null!=ds&&(Kn=Tn(ds)),null!=Ts?Jr=Tn(Ts):null!=ds&&Kn>Jr&&(Jr=Kn)}!function on(T,le,U){if(le>U)throw new Error(`The minimum number of digits after fraction (${le}) is higher than the maximum (${U}).`);let ee=T.digits,Ie=ee.length-T.integerLen;const gt=Math.min(Math.max(le,Ie),U);let Ct=gt+T.integerLen,Jt=ee[Ct];if(Ct>0){ee.splice(Math.max(T.integerLen,Ct));for(let Kn=Ct;Kn=5)if(Ct-1<0){for(let Kn=0;Kn>Ct;Kn--)ee.unshift(0),T.integerLen++;ee.unshift(1),T.integerLen++}else ee[Ct-1]++;for(;Ie=dr?ei.pop():Bn=!1),Jr>=10?1:0},0);yr&&(ee.unshift(yr),T.integerLen++)}(dr,Kn,Jr);let Jn=dr.digits,ei=dr.integerLen;const Ei=dr.exponent;let Ai=[];for(Bn=Jn.every(Li=>!Li);ei0?Ai=Jn.splice(ei,Jn.length):(Ai=Jn,Jn=[0]);const Hi=[];for(Jn.length>=le.lgSize&&Hi.unshift(Jn.splice(-le.lgSize,Jn.length).join(""));Jn.length>le.gSize;)Hi.unshift(Jn.splice(-le.gSize,Jn.length).join(""));Jn.length&&Hi.unshift(Jn.join("")),Jt=Hi.join(fe(U,ee)),Ai.length&&(Jt+=fe(U,Ie)+Ai.join("")),Ei&&(Jt+=fe(U,it.Exponential)+"+"+Ei)}else Jt=fe(U,it.Infinity);return Jt=T<0&&!Bn?le.negPre+Jt+le.negSuf:le.posPre+Jt+le.posSuf,Jt}(T,function Rt(T,le="-"){const U={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ee=T.split(Un),Ie=ee[0],gt=ee[1],Ct=-1!==Ie.indexOf(Wt)?Ie.split(Wt):[Ie.substring(0,Ie.lastIndexOf(Vt)+1),Ie.substring(Ie.lastIndexOf(Vt)+1)],Jt=Ct[0],Bn=Ct[1]||"";U.posPre=Jt.substring(0,Jt.indexOf(rr));for(let yr=0;yr{class T{constructor(U,ee,Ie,gt){this._iterableDiffers=U,this._keyValueDiffers=ee,this._ngEl=Ie,this._renderer=gt,this.initialClasses=Xn,this.stateMap=new Map}set klass(U){this.initialClasses=null!=U?U.trim().split(Zr):Xn}set ngClass(U){this.rawClass="string"==typeof U?U.trim().split(Zr):U}ngDoCheck(){for(const ee of this.initialClasses)this._updateState(ee,!0);const U=this.rawClass;if(Array.isArray(U)||U instanceof Set)for(const ee of U)this._updateState(ee,!0);else if(null!=U)for(const ee of Object.keys(U))this._updateState(ee,!!U[ee]);this._applyStateDiff()}_updateState(U,ee){const Ie=this.stateMap.get(U);void 0!==Ie?(Ie.enabled!==ee&&(Ie.changed=!0,Ie.enabled=ee),Ie.touched=!0):this.stateMap.set(U,{enabled:ee,changed:!0,touched:!0})}_applyStateDiff(){for(const U of this.stateMap){const ee=U[0],Ie=U[1];Ie.changed?(this._toggleClass(ee,Ie.enabled),Ie.changed=!1):Ie.touched||(Ie.enabled&&this._toggleClass(ee,!1),this.stateMap.delete(ee)),Ie.touched=!1}}_toggleClass(U,ee){(U=U.trim()).length>0&&U.split(Zr).forEach(Ie=>{ee?this._renderer.addClass(this._ngEl.nativeElement,Ie):this._renderer.removeClass(this._ngEl.nativeElement,Ie)})}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.SBq),t.Y36(t.Qsj))};static#t=this.\u0275dir=t.lG2({type:T,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return T})();class pe{constructor(le,U,ee,Ie){this.$implicit=le,this.ngForOf=U,this.index=ee,this.count=Ie}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 z=(()=>{class T{set ngForOf(U){this._ngForOf=U,this._ngForOfDirty=!0}set ngForTrackBy(U){this._trackByFn=U}get ngForTrackBy(){return this._trackByFn}constructor(U,ee,Ie){this._viewContainer=U,this._template=ee,this._differs=Ie,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(U){U&&(this._template=U)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const U=this._ngForOf;!this._differ&&U&&(this._differ=this._differs.find(U).create(this.ngForTrackBy))}if(this._differ){const U=this._differ.diff(this._ngForOf);U&&this._applyChanges(U)}}_applyChanges(U){const ee=this._viewContainer;U.forEachOperation((Ie,gt,Ct)=>{if(null==Ie.previousIndex)ee.createEmbeddedView(this._template,new pe(Ie.item,this._ngForOf,-1,-1),null===Ct?void 0:Ct);else if(null==Ct)ee.remove(null===gt?void 0:gt);else if(null!==gt){const Jt=ee.get(gt);ee.move(Jt,Ct),K(Jt,Ie)}});for(let Ie=0,gt=ee.length;Ie{K(ee.get(Ie.currentIndex),Ie)})}static ngTemplateContextGuard(U,ee){return!0}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(t.ZZ4))};static#t=this.\u0275dir=t.lG2({type:T,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return T})();function K(T,le){T.context.$implicit=le.item}let X=(()=>{class T{constructor(U,ee){this._viewContainer=U,this._context=new de,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ee}set ngIf(U){this._context.$implicit=this._context.ngIf=U,this._updateView()}set ngIfThen(U){Oe("ngIfThen",U),this._thenTemplateRef=U,this._thenViewRef=null,this._updateView()}set ngIfElse(U){Oe("ngIfElse",U),this._elseTemplateRef=U,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(U,ee){return!0}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.s_b),t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:T,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return T})();class de{constructor(){this.$implicit=null,this.ngIf=null}}function Oe(T,le){if(le&&!le.createEmbeddedView)throw new Error(`${T} must be a TemplateRef, but received '${(0,t.AaK)(le)}'.`)}let ir=(()=>{class T{constructor(U,ee,Ie){this._ngEl=U,this._differs=ee,this._renderer=Ie,this._ngStyle=null,this._differ=null}set ngStyle(U){this._ngStyle=U,!this._differ&&U&&(this._differ=this._differs.find(U).create())}ngDoCheck(){if(this._differ){const U=this._differ.diff(this._ngStyle);U&&this._applyChanges(U)}}_setStyle(U,ee){const[Ie,gt]=U.split("."),Ct=-1===Ie.indexOf("-")?void 0:t.JOm.DashCase;null!=ee?this._renderer.setStyle(this._ngEl.nativeElement,Ie,gt?`${ee}${gt}`:ee,Ct):this._renderer.removeStyle(this._ngEl.nativeElement,Ie,Ct)}_applyChanges(U){U.forEachRemovedItem(ee=>this._setStyle(ee.key,null)),U.forEachAddedItem(ee=>this._setStyle(ee.key,ee.currentValue)),U.forEachChangedItem(ee=>this._setStyle(ee.key,ee.currentValue))}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.SBq),t.Y36(t.aQg),t.Y36(t.Qsj))};static#t=this.\u0275dir=t.lG2({type:T,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return T})(),_r=(()=>{class T{constructor(U){this._viewContainerRef=U,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(U){if(U.ngTemplateOutlet||U.ngTemplateOutletInjector){const ee=this._viewContainerRef;if(this._viewRef&&ee.remove(ee.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Ie,ngTemplateOutletContext:gt,ngTemplateOutletInjector:Ct}=this;this._viewRef=ee.createEmbeddedView(Ie,gt,Ct?{injector:Ct}:void 0)}else this._viewRef=null}else this._viewRef&&U.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.s_b))};static#t=this.\u0275dir=t.lG2({type:T,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[t.TTD]})}return T})();function Yr(T,le){return new t.vHH(2100,!1)}class ts{createSubscription(le,U){return(0,t.rg0)(()=>le.subscribe({next:U,error:ee=>{throw ee}}))}dispose(le){(0,t.rg0)(()=>le.unsubscribe())}}class _i{createSubscription(le,U){return le.then(U,ee=>{throw ee})}dispose(le){}}const Ti=new _i,ms=new ts;let Wi=(()=>{class T{constructor(U){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=U}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(U){return this._obj?U!==this._obj?(this._dispose(),this.transform(U)):this._latestValue:(U&&this._subscribe(U),this._latestValue)}_subscribe(U){this._obj=U,this._strategy=this._selectStrategy(U),this._subscription=this._strategy.createSubscription(U,ee=>this._updateLatestValue(U,ee))}_selectStrategy(U){if((0,t.QGY)(U))return Ti;if((0,t.F4k)(U))return ms;throw Yr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(U,ee){U===this._obj&&(this._latestValue=ee,this._ref.markForCheck())}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.sBO,16))};static#t=this.\u0275pipe=t.Yjl({name:"async",type:T,pure:!1,standalone:!0})}return T})();const vr=new t.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),Mr=new t.OlP("DATE_PIPE_DEFAULT_OPTIONS");let vi=(()=>{class T{constructor(U,ee,Ie){this.locale=U,this.defaultTimezone=ee,this.defaultOptions=Ie}transform(U,ee,Ie,gt){if(null==U||""===U||U!=U)return null;try{return dn(U,ee??this.defaultOptions?.dateFormat??"mediumDate",gt||this.locale,Ie??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Ct){throw Yr()}}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.soG,16),t.Y36(vr,24),t.Y36(Mr,24))};static#t=this.\u0275pipe=t.Yjl({name:"date",type:T,pure:!0,standalone:!0})}return T})(),Kt=(()=>{class T{constructor(U){this._locale=U}transform(U,ee,Ie){if(!function $r(T){return!(null==T||""===T||T!=T)}(U))return null;Ie=Ie||this._locale;try{return bt(function bi(T){if("string"==typeof T&&!isNaN(Number(T)-parseFloat(T)))return Number(T);if("number"!=typeof T)throw new Error(`${T} is not a number`);return T}(U),Ie,ee)}catch(gt){throw Yr()}}static#e=this.\u0275fac=function(ee){return new(ee||T)(t.Y36(t.soG,16))};static#t=this.\u0275pipe=t.Yjl({name:"number",type:T,pure:!0,standalone:!0})}return T})();let Ve=(()=>{class T{static#e=this.\u0275fac=function(ee){return new(ee||T)};static#t=this.\u0275mod=t.oAB({type:T});static#n=this.\u0275inj=t.cJS({})}return T})();const ct="browser",Yt="server";function Yn(T){return T===Yt}let di=(()=>{class T{static#e=this.\u0275prov=(0,t.Yz7)({token:T,providedIn:"root",factory:()=>new rs((0,t.LFG)(O),window)})}return T})();class rs{constructor(le,U){this.document=le,this.window=U,this.offset=()=>[0,0]}setOffset(le){this.offset=Array.isArray(le)?()=>le:le}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(le){this.supportsScrolling()&&this.window.scrollTo(le[0],le[1])}scrollToAnchor(le){if(!this.supportsScrolling())return;const U=function bs(T,le){const U=T.getElementById(le)||T.getElementsByName(le)[0];if(U)return U;if("function"==typeof T.createTreeWalker&&T.body&&"function"==typeof T.body.attachShadow){const ee=T.createTreeWalker(T.body,NodeFilter.SHOW_ELEMENT);let Ie=ee.currentNode;for(;Ie;){const gt=Ie.shadowRoot;if(gt){const Ct=gt.getElementById(le)||gt.querySelector(`[name="${le}"]`);if(Ct)return Ct}Ie=ee.nextNode()}}return null}(this.document,le);U&&(this.scrollToElement(U),U.focus())}setHistoryScrollRestoration(le){this.supportsScrolling()&&(this.window.history.scrollRestoration=le)}scrollToElement(le){const U=le.getBoundingClientRect(),ee=U.left+this.window.pageXOffset,Ie=U.top+this.window.pageYOffset,gt=this.offset();this.window.scrollTo(ee-gt[0],Ie-gt[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class Oi{}},9862:(Pe,V,a)=>{"use strict";a.d(V,{JF:()=>He,LE:()=>ce,TP:()=>Je,UA:()=>ze,WM:()=>j,eN:()=>Q});var t=a(5879),d=a(2096),w=a(7715),L=a(5592),p=a(6328),O=a(2181),R=a(7398),F=a(4716),P=a(4664),B=a(6814);class ${}class f{}class j{constructor(Le){this.normalizedNames=new Map,this.lazyUpdate=null,Le?"string"==typeof Le?this.lazyInit=()=>{this.headers=new Map,Le.split("\n").forEach(Ue=>{const bt=Ue.indexOf(":");if(bt>0){const Rt=Ue.slice(0,bt),kt=Rt.toLowerCase(),Ft=Ue.slice(bt+1).trim();this.maybeSetNormalizedName(Rt,kt),this.headers.has(kt)?this.headers.get(kt).push(Ft):this.headers.set(kt,[Ft])}})}:typeof Headers<"u"&&Le instanceof Headers?(this.headers=new Map,Le.forEach((Ue,bt)=>{this.setHeaderEntries(bt,Ue)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(Le).forEach(([Ue,bt])=>{this.setHeaderEntries(Ue,bt)})}:this.headers=new Map}has(Le){return this.init(),this.headers.has(Le.toLowerCase())}get(Le){this.init();const Ue=this.headers.get(Le.toLowerCase());return Ue&&Ue.length>0?Ue[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Le){return this.init(),this.headers.get(Le.toLowerCase())||null}append(Le,Ue){return this.clone({name:Le,value:Ue,op:"a"})}set(Le,Ue){return this.clone({name:Le,value:Ue,op:"s"})}delete(Le,Ue){return this.clone({name:Le,value:Ue,op:"d"})}maybeSetNormalizedName(Le,Ue){this.normalizedNames.has(Ue)||this.normalizedNames.set(Ue,Le)}init(){this.lazyInit&&(this.lazyInit instanceof j?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Le=>this.applyUpdate(Le)),this.lazyUpdate=null))}copyFrom(Le){Le.init(),Array.from(Le.headers.keys()).forEach(Ue=>{this.headers.set(Ue,Le.headers.get(Ue)),this.normalizedNames.set(Ue,Le.normalizedNames.get(Ue))})}clone(Le){const Ue=new j;return Ue.lazyInit=this.lazyInit&&this.lazyInit instanceof j?this.lazyInit:this,Ue.lazyUpdate=(this.lazyUpdate||[]).concat([Le]),Ue}applyUpdate(Le){const Ue=Le.name.toLowerCase();switch(Le.op){case"a":case"s":let bt=Le.value;if("string"==typeof bt&&(bt=[bt]),0===bt.length)return;this.maybeSetNormalizedName(Le.name,Ue);const Rt=("a"===Le.op?this.headers.get(Ue):void 0)||[];Rt.push(...bt),this.headers.set(Ue,Rt);break;case"d":const kt=Le.value;if(kt){let Ft=this.headers.get(Ue);if(!Ft)return;Ft=Ft.filter(on=>-1===kt.indexOf(on)),0===Ft.length?(this.headers.delete(Ue),this.normalizedNames.delete(Ue)):this.headers.set(Ue,Ft)}else this.headers.delete(Ue),this.normalizedNames.delete(Ue)}}setHeaderEntries(Le,Ue){const bt=(Array.isArray(Ue)?Ue:[Ue]).map(kt=>kt.toString()),Rt=Le.toLowerCase();this.headers.set(Rt,bt),this.maybeSetNormalizedName(Le,Rt)}forEach(Le){this.init(),Array.from(this.normalizedNames.keys()).forEach(Ue=>Le(this.normalizedNames.get(Ue),this.headers.get(Ue)))}}class q{encodeKey(Le){return Me(Le)}encodeValue(Le){return Me(Le)}decodeKey(Le){return decodeURIComponent(Le)}decodeValue(Le){return decodeURIComponent(Le)}}const k=/%(\d[a-f0-9])/gi,Te={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Me(Qe){return encodeURIComponent(Qe).replace(k,(Le,Ue)=>Te[Ue]??Le)}function ye(Qe){return`${Qe}`}class ce{constructor(Le={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Le.encoder||new q,Le.fromString){if(Le.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ie(Qe,Le){const Ue=new Map;return Qe.length>0&&Qe.replace(/^\?/,"").split("&").forEach(Rt=>{const kt=Rt.indexOf("="),[Ft,on]=-1==kt?[Le.decodeKey(Rt),""]:[Le.decodeKey(Rt.slice(0,kt)),Le.decodeValue(Rt.slice(kt+1))],Tn=Ue.get(Ft)||[];Tn.push(on),Ue.set(Ft,Tn)}),Ue}(Le.fromString,this.encoder)}else Le.fromObject?(this.map=new Map,Object.keys(Le.fromObject).forEach(Ue=>{const bt=Le.fromObject[Ue],Rt=Array.isArray(bt)?bt.map(ye):[ye(bt)];this.map.set(Ue,Rt)})):this.map=null}has(Le){return this.init(),this.map.has(Le)}get(Le){this.init();const Ue=this.map.get(Le);return Ue?Ue[0]:null}getAll(Le){return this.init(),this.map.get(Le)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Le,Ue){return this.clone({param:Le,value:Ue,op:"a"})}appendAll(Le){const Ue=[];return Object.keys(Le).forEach(bt=>{const Rt=Le[bt];Array.isArray(Rt)?Rt.forEach(kt=>{Ue.push({param:bt,value:kt,op:"a"})}):Ue.push({param:bt,value:Rt,op:"a"})}),this.clone(Ue)}set(Le,Ue){return this.clone({param:Le,value:Ue,op:"s"})}delete(Le,Ue){return this.clone({param:Le,value:Ue,op:"d"})}toString(){return this.init(),this.keys().map(Le=>{const Ue=this.encoder.encodeKey(Le);return this.map.get(Le).map(bt=>Ue+"="+this.encoder.encodeValue(bt)).join("&")}).filter(Le=>""!==Le).join("&")}clone(Le){const Ue=new ce({encoder:this.encoder});return Ue.cloneFrom=this.cloneFrom||this,Ue.updates=(this.updates||[]).concat(Le),Ue}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Le=>this.map.set(Le,this.cloneFrom.map.get(Le))),this.updates.forEach(Le=>{switch(Le.op){case"a":case"s":const Ue=("a"===Le.op?this.map.get(Le.param):void 0)||[];Ue.push(ye(Le.value)),this.map.set(Le.param,Ue);break;case"d":if(void 0===Le.value){this.map.delete(Le.param);break}{let bt=this.map.get(Le.param)||[];const Rt=bt.indexOf(ye(Le.value));-1!==Rt&&bt.splice(Rt,1),bt.length>0?this.map.set(Le.param,bt):this.map.delete(Le.param)}}}),this.cloneFrom=this.updates=null)}}class ve{constructor(){this.map=new Map}set(Le,Ue){return this.map.set(Le,Ue),this}get(Le){return this.map.has(Le)||this.map.set(Le,Le.defaultValue()),this.map.get(Le)}delete(Le){return this.map.delete(Le),this}has(Le){return this.map.has(Le)}keys(){return this.map.keys()}}function be(Qe){return typeof ArrayBuffer<"u"&&Qe instanceof ArrayBuffer}function ke(Qe){return typeof Blob<"u"&&Qe instanceof Blob}function vt(Qe){return typeof FormData<"u"&&Qe instanceof FormData}class St{constructor(Le,Ue,bt,Rt){let kt;if(this.url=Ue,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Le.toUpperCase(),function xe(Qe){switch(Qe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Rt?(this.body=void 0!==bt?bt:null,kt=Rt):kt=bt,kt&&(this.reportProgress=!!kt.reportProgress,this.withCredentials=!!kt.withCredentials,kt.responseType&&(this.responseType=kt.responseType),kt.headers&&(this.headers=kt.headers),kt.context&&(this.context=kt.context),kt.params&&(this.params=kt.params)),this.headers||(this.headers=new j),this.context||(this.context=new ve),this.params){const Ft=this.params.toString();if(0===Ft.length)this.urlWithParams=Ue;else{const on=Ue.indexOf("?");this.urlWithParams=Ue+(-1===on?"?":onFr.set(Ar,Le.setHeaders[Ar]),Tn)),Le.setParams&&(pr=Object.keys(Le.setParams).reduce((Fr,Ar)=>Fr.set(Ar,Le.setParams[Ar]),pr)),new St(Ue,bt,kt,{params:pr,headers:Tn,context:jr,reportProgress:on,responseType:Rt,withCredentials:Ft})}}var qe=function(Qe){return Qe[Qe.Sent=0]="Sent",Qe[Qe.UploadProgress=1]="UploadProgress",Qe[Qe.ResponseHeader=2]="ResponseHeader",Qe[Qe.DownloadProgress=3]="DownloadProgress",Qe[Qe.Response=4]="Response",Qe[Qe.User=5]="User",Qe}(qe||{});class _t{constructor(Le,Ue=200,bt="OK"){this.headers=Le.headers||new j,this.status=void 0!==Le.status?Le.status:Ue,this.statusText=Le.statusText||bt,this.url=Le.url||null,this.ok=this.status>=200&&this.status<300}}class $e extends _t{constructor(Le={}){super(Le),this.type=qe.ResponseHeader}clone(Le={}){return new $e({headers:Le.headers||this.headers,status:void 0!==Le.status?Le.status:this.status,statusText:Le.statusText||this.statusText,url:Le.url||this.url||void 0})}}class Ee extends _t{constructor(Le={}){super(Le),this.type=qe.Response,this.body=void 0!==Le.body?Le.body:null}clone(Le={}){return new Ee({body:void 0!==Le.body?Le.body:this.body,headers:Le.headers||this.headers,status:void 0!==Le.status?Le.status:this.status,statusText:Le.statusText||this.statusText,url:Le.url||this.url||void 0})}}class ze extends _t{constructor(Le){super(Le,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Le.url||"(unknown url)"}`:`Http failure response for ${Le.url||"(unknown url)"}: ${Le.status} ${Le.statusText}`,this.error=Le.error||null}}function J(Qe,Le){return{body:Le,headers:Qe.headers,context:Qe.context,observe:Qe.observe,params:Qe.params,reportProgress:Qe.reportProgress,responseType:Qe.responseType,withCredentials:Qe.withCredentials}}let Q=(()=>{class Qe{constructor(Ue){this.handler=Ue}request(Ue,bt,Rt={}){let kt;if(Ue instanceof St)kt=Ue;else{let Tn,pr;Tn=Rt.headers instanceof j?Rt.headers:new j(Rt.headers),Rt.params&&(pr=Rt.params instanceof ce?Rt.params:new ce({fromObject:Rt.params})),kt=new St(Ue,bt,void 0!==Rt.body?Rt.body:null,{headers:Tn,context:Rt.context,params:pr,reportProgress:Rt.reportProgress,responseType:Rt.responseType||"json",withCredentials:Rt.withCredentials})}const Ft=(0,d.of)(kt).pipe((0,p.b)(Tn=>this.handler.handle(Tn)));if(Ue instanceof St||"events"===Rt.observe)return Ft;const on=Ft.pipe((0,O.h)(Tn=>Tn instanceof Ee));switch(Rt.observe||"body"){case"body":switch(kt.responseType){case"arraybuffer":return on.pipe((0,R.U)(Tn=>{if(null!==Tn.body&&!(Tn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Tn.body}));case"blob":return on.pipe((0,R.U)(Tn=>{if(null!==Tn.body&&!(Tn.body instanceof Blob))throw new Error("Response is not a Blob.");return Tn.body}));case"text":return on.pipe((0,R.U)(Tn=>{if(null!==Tn.body&&"string"!=typeof Tn.body)throw new Error("Response is not a string.");return Tn.body}));default:return on.pipe((0,R.U)(Tn=>Tn.body))}case"response":return on;default:throw new Error(`Unreachable: unhandled observe type ${Rt.observe}}`)}}delete(Ue,bt={}){return this.request("DELETE",Ue,bt)}get(Ue,bt={}){return this.request("GET",Ue,bt)}head(Ue,bt={}){return this.request("HEAD",Ue,bt)}jsonp(Ue,bt){return this.request("JSONP",Ue,{params:(new ce).append(bt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Ue,bt={}){return this.request("OPTIONS",Ue,bt)}patch(Ue,bt,Rt={}){return this.request("PATCH",Ue,J(Rt,bt))}post(Ue,bt,Rt={}){return this.request("POST",Ue,J(Rt,bt))}put(Ue,bt,Rt={}){return this.request("PUT",Ue,J(Rt,bt))}static#e=this.\u0275fac=function(bt){return new(bt||Qe)(t.LFG($))};static#t=this.\u0275prov=t.Yz7({token:Qe,factory:Qe.\u0275fac})}return Qe})();function nt(Qe,Le){return Le(Qe)}function wt(Qe,Le){return(Ue,bt)=>Le.intercept(Ue,{handle:Rt=>Qe(Rt,bt)})}const Je=new t.OlP(""),Tt=new t.OlP(""),tt=new t.OlP("");function Pt(){let Qe=null;return(Le,Ue)=>{null===Qe&&(Qe=((0,t.f3M)(Je,{optional:!0})??[]).reduceRight(wt,nt));const bt=(0,t.f3M)(t.HDt),Rt=bt.add();return Qe(Le,Ue).pipe((0,F.x)(()=>bt.remove(Rt)))}}let zt=(()=>{class Qe extends ${constructor(Ue,bt){super(),this.backend=Ue,this.injector=bt,this.chain=null,this.pendingTasks=(0,t.f3M)(t.HDt)}handle(Ue){if(null===this.chain){const Rt=Array.from(new Set([...this.injector.get(Tt),...this.injector.get(tt,[])]));this.chain=Rt.reduceRight((kt,Ft)=>function It(Qe,Le,Ue){return(bt,Rt)=>Ue.runInContext(()=>Le(bt,kt=>Qe(kt,Rt)))}(kt,Ft,this.injector),nt)}const bt=this.pendingTasks.add();return this.chain(Ue,Rt=>this.backend.handle(Rt)).pipe((0,F.x)(()=>this.pendingTasks.remove(bt)))}static#e=this.\u0275fac=function(bt){return new(bt||Qe)(t.LFG(f),t.LFG(t.lqb))};static#t=this.\u0275prov=t.Yz7({token:Qe,factory:Qe.\u0275fac})}return Qe})();const wn=/^\)\]\}',?\n/;let qt=(()=>{class Qe{constructor(Ue){this.xhrFactory=Ue}handle(Ue){if("JSONP"===Ue.method)throw new t.vHH(-2800,!1);const bt=this.xhrFactory;return(bt.\u0275loadImpl?(0,w.D)(bt.\u0275loadImpl()):(0,d.of)(null)).pipe((0,P.w)(()=>new L.y(kt=>{const Ft=bt.build();if(Ft.open(Ue.method,Ue.urlWithParams),Ue.withCredentials&&(Ft.withCredentials=!0),Ue.headers.forEach((Xn,qn)=>Ft.setRequestHeader(Xn,qn.join(","))),Ue.headers.has("Accept")||Ft.setRequestHeader("Accept","application/json, text/plain, */*"),!Ue.headers.has("Content-Type")){const Xn=Ue.detectContentTypeHeader();null!==Xn&&Ft.setRequestHeader("Content-Type",Xn)}if(Ue.responseType){const Xn=Ue.responseType.toLowerCase();Ft.responseType="json"!==Xn?Xn:"text"}const on=Ue.serializeBody();let Tn=null;const pr=()=>{if(null!==Tn)return Tn;const Xn=Ft.statusText||"OK",qn=new j(Ft.getAllResponseHeaders()),Ur=function fn(Qe){return"responseURL"in Qe&&Qe.responseURL?Qe.responseURL:/^X-Request-URL:/m.test(Qe.getAllResponseHeaders())?Qe.getResponseHeader("X-Request-URL"):null}(Ft)||Ue.url;return Tn=new $e({headers:qn,status:Ft.status,statusText:Xn,url:Ur}),Tn},jr=()=>{let{headers:Xn,status:qn,statusText:Ur,url:ai}=pr(),pe=null;204!==qn&&(pe=typeof Ft.response>"u"?Ft.responseText:Ft.response),0===qn&&(qn=pe?200:0);let z=qn>=200&&qn<300;if("json"===Ue.responseType&&"string"==typeof pe){const K=pe;pe=pe.replace(wn,"");try{pe=""!==pe?JSON.parse(pe):null}catch(D){pe=K,z&&(z=!1,pe={error:D,text:pe})}}z?(kt.next(new Ee({body:pe,headers:Xn,status:qn,statusText:Ur,url:ai||void 0})),kt.complete()):kt.error(new ze({error:pe,headers:Xn,status:qn,statusText:Ur,url:ai||void 0}))},Fr=Xn=>{const{url:qn}=pr(),Ur=new ze({error:Xn,status:Ft.status||0,statusText:Ft.statusText||"Unknown Error",url:qn||void 0});kt.error(Ur)};let Ar=!1;const Hr=Xn=>{Ar||(kt.next(pr()),Ar=!0);let qn={type:qe.DownloadProgress,loaded:Xn.loaded};Xn.lengthComputable&&(qn.total=Xn.total),"text"===Ue.responseType&&Ft.responseText&&(qn.partialText=Ft.responseText),kt.next(qn)},Zr=Xn=>{let qn={type:qe.UploadProgress,loaded:Xn.loaded};Xn.lengthComputable&&(qn.total=Xn.total),kt.next(qn)};return Ft.addEventListener("load",jr),Ft.addEventListener("error",Fr),Ft.addEventListener("timeout",Fr),Ft.addEventListener("abort",Fr),Ue.reportProgress&&(Ft.addEventListener("progress",Hr),null!==on&&Ft.upload&&Ft.upload.addEventListener("progress",Zr)),Ft.send(on),kt.next({type:qe.Sent}),()=>{Ft.removeEventListener("error",Fr),Ft.removeEventListener("abort",Fr),Ft.removeEventListener("load",jr),Ft.removeEventListener("timeout",Fr),Ue.reportProgress&&(Ft.removeEventListener("progress",Hr),null!==on&&Ft.upload&&Ft.upload.removeEventListener("progress",Zr)),Ft.readyState!==Ft.DONE&&Ft.abort()}})))}static#e=this.\u0275fac=function(bt){return new(bt||Qe)(t.LFG(B.JF))};static#t=this.\u0275prov=t.Yz7({token:Qe,factory:Qe.\u0275fac})}return Qe})();const En=new t.OlP("XSRF_ENABLED"),mn=new t.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),st=new t.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Ut{}let Qt=(()=>{class Qe{constructor(Ue,bt,Rt){this.doc=Ue,this.platform=bt,this.cookieName=Rt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Ue=this.doc.cookie||"";return Ue!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,B.Mx)(Ue,this.cookieName),this.lastCookieString=Ue),this.lastToken}static#e=this.\u0275fac=function(bt){return new(bt||Qe)(t.LFG(B.K0),t.LFG(t.Lbi),t.LFG(mn))};static#t=this.\u0275prov=t.Yz7({token:Qe,factory:Qe.\u0275fac})}return Qe})();function Dn(Qe,Le){const Ue=Qe.url.toLowerCase();if(!(0,t.f3M)(En)||"GET"===Qe.method||"HEAD"===Qe.method||Ue.startsWith("http://")||Ue.startsWith("https://"))return Le(Qe);const bt=(0,t.f3M)(Ut).getToken(),Rt=(0,t.f3M)(st);return null!=bt&&!Qe.headers.has(Rt)&&(Qe=Qe.clone({headers:Qe.headers.set(Rt,bt)})),Le(Qe)}var On=function(Qe){return Qe[Qe.Interceptors=0]="Interceptors",Qe[Qe.LegacyInterceptors=1]="LegacyInterceptors",Qe[Qe.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Qe[Qe.NoXsrfProtection=3]="NoXsrfProtection",Qe[Qe.JsonpSupport=4]="JsonpSupport",Qe[Qe.RequestsMadeViaParent=5]="RequestsMadeViaParent",Qe[Qe.Fetch=6]="Fetch",Qe}(On||{});function Dr(...Qe){const Le=[Q,qt,zt,{provide:$,useExisting:zt},{provide:f,useExisting:qt},{provide:Tt,useValue:Dn,multi:!0},{provide:En,useValue:!0},{provide:Ut,useClass:Qt}];for(const Ue of Qe)Le.push(...Ue.\u0275providers);return(0,t.MR2)(Le)}const Or=new t.OlP("LEGACY_INTERCEPTOR_FN");function Ir(){return function nr(Qe,Le){return{\u0275kind:Qe,\u0275providers:Le}}(On.LegacyInterceptors,[{provide:Or,useFactory:Pt},{provide:Tt,useExisting:Or,multi:!0}])}let He=(()=>{class Qe{static#e=this.\u0275fac=function(bt){return new(bt||Qe)};static#t=this.\u0275mod=t.oAB({type:Qe});static#n=this.\u0275inj=t.cJS({providers:[Dr(Ir())]})}return Qe})()},5879:(Pe,V,a)=>{"use strict";a.d(V,{$8M:()=>Va,$WT:()=>vi,$Z:()=>pm,AFp:()=>Rg,ALo:()=>qv,AaK:()=>f,AsE:()=>Qp,B6R:()=>_i,BQk:()=>xd,CHM:()=>W,CRH:()=>v0,DdM:()=>Vv,Dn7:()=>n0,EJc:()=>iT,EiD:()=>Dg,EpF:()=>o_,F$t:()=>p_,F4k:()=>a_,FYo:()=>jg,FiY:()=>Lo,G48:()=>UT,Gf:()=>m0,GfV:()=>Hg,GkF:()=>Hp,Gpc:()=>q,Gre:()=>G_,HDt:()=>H0,Hsn:()=>h_,Ikx:()=>eh,JOm:()=>Il,JVY:()=>Ma,JZr:()=>ye,KtG:()=>h,L6k:()=>Bo,LAX:()=>Hl,LFG:()=>Vt,LMc:()=>gw,LSH:()=>Gf,Lbi:()=>ep,Lck:()=>QD,MAs:()=>r_,MGl:()=>Od,MMx:()=>Nv,MR2:()=>Zf,NdJ:()=>$p,O4$:()=>Ss,Ojb:()=>Yy,OlP:()=>zr,Oqu:()=>Jp,P3R:()=>wg,PXZ:()=>IT,Q6J:()=>Bp,QGY:()=>Vp,QbO:()=>Ky,Qsj:()=>ub,R0b:()=>es,RDi:()=>qr,Rgc:()=>gu,SBq:()=>Qc,SDv:()=>Av,Sil:()=>aT,Suo:()=>_0,TTD:()=>yr,TgZ:()=>Md,Tol:()=>I_,VKq:()=>$v,VuI:()=>pw,W1O:()=>D0,WD2:()=>dr,WLB:()=>Wv,XFs:()=>Et,Xpm:()=>ts,Xq5:()=>Hm,Xts:()=>Zc,Y36:()=>Ql,YKP:()=>Pv,YNc:()=>e_,Yjl:()=>Vr,Yz7:()=>Je,Z0I:()=>zt,ZZ4:()=>Nh,_Bn:()=>Iv,_UZ:()=>jp,_Vd:()=>Jc,_c5:()=>tw,_uU:()=>B_,aQg:()=>Lh,c2e:()=>j0,cJS:()=>tt,cg1:()=>th,dDg:()=>ST,dqk:()=>qt,dwT:()=>XE,eBb:()=>sl,eFA:()=>Q0,eJc:()=>vh,ekj:()=>Kp,eoX:()=>Z0,f3M:()=>sn,g9A:()=>Ng,h0i:()=>fl,hGG:()=>nw,hij:()=>Rd,iGM:()=>g0,ifc:()=>kt,ip1:()=>U0,jDz:()=>Lv,kEZ:()=>Gv,kL8:()=>nv,kcU:()=>fr,l5B:()=>zv,lG2:()=>Gi,lcZ:()=>e0,lnq:()=>Xp,lqb:()=>Uo,lri:()=>G0,mCW:()=>$l,n5z:()=>Tc,oAB:()=>Wi,oJD:()=>Cg,oxw:()=>f_,pB0:()=>sa,pZz:()=>Qi,q3G:()=>al,qFp:()=>mw,qLn:()=>xa,qOj:()=>Op,qZA:()=>Sd,qbA:()=>Zv,qzn:()=>uo,rWj:()=>z0,rg0:()=>Ie,s9C:()=>Wp,sBO:()=>jT,s_b:()=>jd,soG:()=>Vd,tb:()=>Ah,tp0:()=>Ja,uIk:()=>Pp,vHH:()=>ce,vpe:()=>jo,wAp:()=>uc,xDo:()=>qp,xi3:()=>t0,xp6:()=>dm,ynx:()=>Ad,z2F:()=>hc,z3N:()=>Js,zSh:()=>Jf,zW0:()=>km,zs3:()=>bo});var t=a(8645),d=a(7394),w=a(5592),L=a(3019),p=a(5619),O=a(2096),R=a(3020),F=a(4664),P=a(3997);function B(e){for(let n in e)if(e[n]===B)return n;throw Error("Could not find renamed property on target object.")}function $(e,n){for(const r in n)n.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=n[r])}function f(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(f).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const r=n.indexOf("\n");return-1===r?n:n.substring(0,r)}function j(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const S=B({__forward_ref__:B});function q(e){return e.__forward_ref__=q,e.toString=function(){return f(this())},e}function ie(e){return k(e)?e():e}function k(e){return"function"==typeof e&&e.hasOwnProperty(S)&&e.__forward_ref__===q}function Te(e){return e&&!!e.\u0275providers}const ye="https://g.co/ng/security#xss";class ce extends Error{constructor(n,r){super(function _e(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,r)),this.code=n}}function ve(e){return"string"==typeof e?e:null==e?"":String(e)}function it(e,n){throw new ce(-201,!1)}function Xe(e,n,r,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${r} ${i} ${n} <=Actual]`))}function Je(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function tt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Pt(e){return un(e,Ye)||un(e,Ot)}function zt(e){return null!==Pt(e)}function un(e,n){return e.hasOwnProperty(n)?e[n]:null}function We(e){return e&&(e.hasOwnProperty(At)||e.hasOwnProperty(tn))?e[At]:null}const Ye=B({\u0275prov:B}),At=B({\u0275inj:B}),Ot=B({ngInjectableDef:B}),tn=B({ngInjectorDef:B});var Et=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Et||{});let Ht;function dn(e){const n=Ht;return Ht=e,n}function wn(e,n,r){const i=Pt(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:r&Et.Optional?null:void 0!==n?n:void it(f(e))}const qt=globalThis,Or={},Ir="__NG_DI_FLAG__",Br="ngTempTokenPath",zn=/\n/gm,at="__source";let we;function yt(e){const n=we;return we=e,n}function Wt(e,n=Et.Default){if(void 0===we)throw new ce(-203,!1);return null===we?wn(e,void 0,n):we.get(e,n&Et.Optional?null:void 0,n)}function Vt(e,n=Et.Default){return(function Zt(){return Ht}()||Wt)(ie(e),n)}function sn(e,n=Et.Default){return Vt(e,rr(n))}function rr(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function an(e){const n=[];for(let r=0;rn){g=u-1;break}}}for(;uu?"":o[Ce+1].toLowerCase();const rt=8&i?Ke:null;if(rt&&-1!==Xn(rt,Z,0)||2&i&&Z!==Ke){if(Ae(i))return!1;g=!0}}}}else{if(!g&&!Ae(i)&&!Ae(A))return!1;if(g&&Ae(A))continue;g=!1,i=A|1&i}}return Ae(i)||g}function Ae(e){return 0==(1&e)}function mt(e,n,r,i){if(null===n)return-1;let o=0;if(i||!r){let u=!1;for(;o-1)for(r++;r0?'="'+b+'"':"")+"]"}else 8&i?o+="."+g:4&i&&(o+=" "+g);else""!==o&&!Ae(g)&&(n+=ir(u,o),o=""),i=g,u=u||!Ae(i);r++}return""!==o&&(n+=ir(u,o)),n}function ts(e){return bt(()=>{const n=ns(e),r={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Rt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||kt.Emulated,styles:e.styles||on,_:null,schemas:e.schemas||null,tView:null,id:""};wi(r);const i=e.dependencies;return r.directiveDefs=ui(i,!1),r.pipeDefs=ui(i,!0),r.id=function Bi(e){let n=0;const r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of r)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(r),r})}function _i(e,n,r){const i=e.\u0275cmp;i.directiveDefs=ui(n,!1),i.pipeDefs=ui(r,!0)}function Ti(e){return jn(e)||vr(e)}function ms(e){return null!==e}function Wi(e){return bt(()=>({type:e.type,bootstrap:e.bootstrap||on,declarations:e.declarations||on,imports:e.imports||on,exports:e.exports||on,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function ki(e,n){if(null==e)return Ft;const r={};for(const i in e)if(e.hasOwnProperty(i)){let o=e[i],u=o;Array.isArray(o)&&(u=o[1],o=o[0]),r[o]=i,n&&(n[o]=u)}return r}function Gi(e){return bt(()=>{const n=ns(e);return wi(n),n})}function Vr(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function jn(e){return e[Tn]||null}function vr(e){return e[pr]||null}function Mr(e){return e[jr]||null}function vi(e){const n=jn(e)||vr(e)||Mr(e);return null!==n&&n.standalone}function ci(e,n){const r=e[Fr]||null;if(!r&&!0===n)throw new Error(`Type ${f(e)} does not have '\u0275mod' property.`);return r}function ns(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||Ft,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||on,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ki(e.inputs,n),outputs:ki(e.outputs)}}function wi(e){e.features?.forEach(n=>n(e))}function ui(e,n){if(!e)return null;const r=n?Mr:Ti;return()=>("function"==typeof e?e():e).map(i=>r(i)).filter(ms)}const xr=0,Kt=1,Mn=2,hr=3,$r=4,bi=5,Nr=6,Ze=7,Ve=8,ct=9,Yt=10,Bt=11,gr=12,Mi=13,Yn=14,sr=15,Wr=16,Si=17,di=18,rs=19,bs=20,zi=21,Oi=22,Ii=23,Pi=24,Gn=25,Zi=1,is=2,Pr=7,Ui=9,ft=11;function et(e){return Array.isArray(e)&&"object"==typeof e[Zi]}function xt(e){return Array.isArray(e)&&!0===e[Zi]}function hn(e){return 0!=(4&e.flags)}function Gr(e){return e.componentOffset>-1}function Ki(e){return 1==(1&e.flags)}function fi(e){return!!e.template}function Hs(e){return 0!=(512&e[Mn])}function ls(e,n){return e.hasOwnProperty(Ar)?e[Ar]:null}let pi=null,us=!1;function yi(e){const n=pi;return pi=e,n}const no={version: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:()=>{}};function Ps(e){if(!mo(e)||e.dirty){if(!e.producerMustRecompute(e)&&!so(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function go(e){e.dirty=!0,function ro(e){if(void 0===e.liveConsumerNode)return;const n=us;us=!0;try{for(const r of e.liveConsumerNode)r.dirty||go(r)}finally{us=n}}(e),e.consumerMarkedDirty?.(e)}function wo(e){return e&&(e.nextProducerIndex=0),yi(e)}function Mo(e,n){if(yi(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(mo(e))for(let r=e.nextProducerIndex;re.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function so(e){Rs(e);for(let n=0;n0}function Rs(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let Ko=null;function Ie(e){const n=yi(null);try{return e()}finally{yi(n)}}const Ct=()=>{},Jt=(()=>({...no,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:Ct}))();class dr{constructor(n,r,i){this.previousValue=n,this.currentValue=r,this.firstChange=i}isFirstChange(){return this.firstChange}}function yr(){return Kn}function Kn(e){return e.type.prototype.ngOnChanges&&(e.setInput=Jn),Jr}function Jr(){const e=Ei(this),n=e?.current;if(n){const r=e.previous;if(r===Ft)e.previous=n;else for(let i in n)r[i]=n[i];e.current=null,this.ngOnChanges(n)}}function Jn(e,n,r,i){const o=this.declaredInputs[r],u=Ei(e)||function Ai(e,n){return e[ei]=n}(e,{previous:Ft,current:null}),g=u.current||(u.current={}),b=u.previous,A=b[o];g[o]=new dr(A&&A.currentValue,n,b===Ft),e[i]=n}yr.ngInherit=!0;const ei="__ngSimpleChanges__";function Ei(e){return e[ei]||null}const ti=function(e,n,r){},ds="svg",Ts="math";function er(e){for(;Array.isArray(e);)e=e[xr];return e}function li(e,n){return er(n[e])}function Di(e,n){return er(n[e.index])}function Oo(e,n){return e.data[n]}function Ji(e,n){return e[n]}function Vi(e,n){const r=n[e];return et(r)?r:r[xr]}function fs(e,n){return null==n?null:e[n]}function Po(e){e[Si]=0}function ma(e){1024&e[Mn]||(e[Mn]|=1024,vo(e,1))}function xi(e){1024&e[Mn]&&(e[Mn]&=-1025,vo(e,-1))}function vo(e,n){let r=e[hr];if(null===r)return;r[bi]+=n;let i=r;for(r=r[hr];null!==r&&(1===n&&1===i[bi]||-1===n&&0===i[bi]);)r[bi]+=n,i=r,r=r[hr]}const Hn={lFrame:or(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ws(){return Hn.bindingsEnabled}function Ms(){return null!==Hn.skipHydrationRootTNode}function Nt(){return Hn.lFrame.lView}function mr(){return Hn.lFrame.tView}function W(e){return Hn.lFrame.contextLView=e,e[Ve]}function h(e){return Hn.lFrame.contextLView=null,e}function v(){let e=I();for(;null!==e&&64===e.type;)e=e.parent;return e}function I(){return Hn.lFrame.currentTNode}function te(){const e=Hn.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}function me(e,n){const r=Hn.lFrame;r.currentTNode=e,r.isParent=n}function Ne(){return Hn.lFrame.isParent}function Fe(){Hn.lFrame.isParent=!1}function Xt(){const e=Hn.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function Cn(){return Hn.lFrame.bindingIndex}function An(){return Hn.lFrame.bindingIndex++}function Fn(e){const n=Hn.lFrame,r=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,r}function M(e){Hn.lFrame.inI18n=e}function y(e,n){const r=Hn.lFrame;r.bindingIndex=r.bindingRootIndex=e,G(n)}function G(e){Hn.lFrame.currentDirectiveIndex=e}function Se(){return Hn.lFrame.currentQueryIndex}function lt(e){Hn.lFrame.currentQueryIndex=e}function pt(e){const n=e[Kt];return 2===n.type?n.declTNode:1===n.type?e[Nr]:null}function en(e,n,r){if(r&Et.SkipSelf){let o=n,u=e;for(;!(o=o.parent,null!==o||r&Et.Host||(o=pt(u),null===o||(u=u[Yn],10&o.type))););if(null===o)return!1;n=o,e=u}const i=Hn.lFrame=Rr();return i.currentTNode=n,i.lView=e,!0}function kn(e){const n=Rr(),r=e[Kt];Hn.lFrame=n,n.currentTNode=r.firstChild,n.lView=e,n.tView=r,n.contextLView=e,n.bindingIndex=r.bindingStartIndex,n.inI18n=!1}function Rr(){const e=Hn.lFrame,n=null===e?null:e.child;return null===n?or(e):n}function or(e){const n={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:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function hi(){const e=Hn.lFrame;return Hn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Gs=hi;function Ns(){const e=hi();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function yn(){return Hn.lFrame.selectedIndex}function tr(e){Hn.lFrame.selectedIndex=e}function ar(){const e=Hn.lFrame;return Oo(e.tView,e.selectedIndex)}function Ss(){Hn.lFrame.currentNamespace=ds}function Qi(){Hn.lFrame.currentNamespace=Ts}function fr(){!function ni(){Hn.lFrame.currentNamespace=null}()}let vl=!0;function ri(){return vl}function Xi(e){vl=e}function ao(e,n){for(let r=n.directiveStart,i=n.directiveEnd;r=i)break}else n[A]<0&&(e[Si]+=65536),(b>13>16&&(3&e[Mn])===n&&(e[Mn]+=8192,yu(b,u)):yu(b,u)}const Xo=-1;class va{constructor(n,r,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=i}}function yc(e){return e!==Xo}function Ha(e){return 32767&e}function ya(e,n){let r=function Jd(e){return e>>16}(e),i=n;for(;r>0;)i=i[Yn],r--;return i}let El=!0;function qo(e){const n=El;return El=e,n}const Dl=255,Du=5;let bc=0;const co={};function Ec(e,n){const r=Qd(e,n);if(-1!==r)return r;const i=n[Kt];i.firstCreatePass&&(e.injectorIndex=n.length,Tu(i.data,e),Tu(n,null),Tu(i.blueprint,null));const o=Dc(e,n),u=e.injectorIndex;if(yc(o)){const g=Ha(o),b=ya(o,n),A=b[Kt].data;for(let Z=0;Z<8;Z++)n[u+Z]=b[g+Z]|A[g+Z]}return n[u+8]=o,u}function Tu(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Qd(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Dc(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let r=0,i=null,o=n;for(;null!==o;){if(i=ii(o),null===i)return Xo;if(r++,o=o[Yn],-1!==i.injectorIndex)return i.injectorIndex|r<<16}return Xo}function wu(e,n,r){!function Cu(e,n,r){let i;"string"==typeof r?i=r.charCodeAt(0)||0:r.hasOwnProperty(Hr)&&(i=r[Hr]),null==i&&(i=r[Hr]=bc++);const o=i&Dl;n.data[e+(o>>Du)]|=1<=0?n&Dl:Gh:n}(r);if("function"==typeof u){if(!en(n,e,i))return i&Et.Host?Xd(o,0,i):qd(n,r,i,o);try{let g;if(g=u(i),null!=g||i&Et.Optional)return g;it()}finally{Gs()}}else if("number"==typeof u){let g=null,b=Qd(e,n),A=Xo,Z=i&Et.Host?n[sr][Nr]:null;for((-1===b||i&Et.SkipSelf)&&(A=-1===b?Dc(e,n):n[b+8],A!==Xo&&sf(i,!1)?(g=n[Kt],b=Ha(A),n=ya(A,n)):b=-1);-1!==b;){const ue=n[Kt];if(rf(u,b,ue.data)){const Ce=$h(b,n,r,g,i,Z);if(Ce!==co)return Ce}A=n[b+8],A!==Xo&&sf(i,n[Kt].data[b+8]===Z)&&rf(u,b,n)?(g=ue,b=Ha(A),n=ya(A,n)):b=-1}}return o}function $h(e,n,r,i,o,u){const g=n[Kt],b=g.data[e+8],ue=Cc(b,g,r,null==i?Gr(b)&&El:i!=g&&0!=(3&b.type),o&Et.Host&&u===b);return null!==ue?ba(n,g,ue,b):co}function Cc(e,n,r,i,o){const u=e.providerIndexes,g=n.data,b=1048575&u,A=e.directiveStart,ue=u>>20,Ke=o?b+ue:e.directiveEnd;for(let rt=i?b:b+ue;rt=A&&Mt.type===r)return rt}if(o){const rt=g[A];if(rt&&fi(rt)&&rt.type===r)return A}return null}function ba(e,n,r,i){let o=e[r];const u=n.data;if(function bu(e){return e instanceof va}(o)){const g=o;g.resolving&&function be(e,n){const r=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new ce(-200,`Circular dependency in DI detected for ${e}${r}`)}(function xe(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ve(e)}(u[r]));const b=qo(g.canSeeViewProviders);g.resolving=!0;const Z=g.injectImpl?dn(g.injectImpl):null;en(e,i,Et.Default);try{o=e[r]=g.factory(void 0,u,e,i),n.firstCreatePass&&r>=i.directiveStart&&function ps(e,n,r){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:u}=n.type.prototype;if(i){const g=Kn(n);(r.preOrderHooks??=[]).push(e,g),(r.preOrderCheckHooks??=[]).push(e,g)}o&&(r.preOrderHooks??=[]).push(0-e,o),u&&((r.preOrderHooks??=[]).push(e,u),(r.preOrderCheckHooks??=[]).push(e,u))}(r,u[r],n)}finally{null!==Z&&dn(Z),qo(b),g.resolving=!1,Gs()}}return o}function rf(e,n,r){return!!(r[n+(e>>Du)]&1<{const n=e.prototype.constructor,r=n[Ar]||Mu(n),i=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==i;){const u=o[Ar]||Mu(o);if(u&&u!==r)return u;o=Object.getPrototypeOf(o)}return u=>new u})}function Mu(e){return k(e)?()=>{const n=Mu(ie(e));return n&&n()}:ls(e)}function ii(e){const n=e[Kt],r=n.type;return 2===r?n.declTNode:1===r?e[Nr]:null}function Va(e){return function Vh(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const r=e.attrs;if(r){const i=r.length;let o=0;for(;o{const i=function $a(e){return function(...r){if(e){const i=e(...r);for(const o in i)this[o]=i[o]}}}(n);function o(...u){if(this instanceof o)return i.apply(this,u),this;const g=new o(...u);return b.annotation=g,b;function b(A,Z,ue){const Ce=A.hasOwnProperty(No)?A[No]:Object.defineProperty(A,No,{value:[]})[No];for(;Ce.length<=ue;)Ce.push(null);return(Ce[ue]=Ce[ue]||[]).push(g),A}}return r&&(o.prototype=Object.create(r.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function Za(e,n){e.forEach(r=>Array.isArray(r)?Za(r,n):n(r))}function lf(e,n,r){n>=e.length?e.push(r):e.splice(n,0,r)}function wc(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function Al(e,n){const r=[];for(let i=0;i=0?e[1|i]=r:(i=~i,function Qh(e,n,r,i){let o=e.length;if(o==n)e.push(r,i);else if(1===o)e.push(i,e[0]),e[0]=r;else{for(o--,e.push(e[o-1],e[o]);o>n;)e[o]=e[o-2],o--;e[n]=r,e[n+1]=i}}(e,i,n,r)),i}function xu(e,n){const r=Ka(e,n);if(r>=0)return e[1|r]}function Ka(e,n){return function Ou(e,n,r){let i=0,o=e.length>>r;for(;o!==i;){const u=i+(o-i>>1),g=e[u<n?o=u:i=u+1}return~(o<|^->||--!>|)/g,og="\u200b$1\u200b";const Vu=new Map;let $u=0;const Gu="__ngContext__";function gs(e,n){et(n)?(e[Gu]=n[rs],function lg(e){Vu.set(e[rs],e)}(n)):e[Gu]=n}let Nc;function zu(e,n){return Nc(e,n)}function il(e){const n=e[hr];return xt(n)?n[hr]:n}function Lc(e){return Ku(e[gr])}function Zu(e){return Ku(e[$r])}function Ku(e){for(;null!==e&&!xt(e);)e=e[$r];return e}function Ta(e,n,r,i,o){if(null!=i){let u,g=!1;xt(i)?u=i:et(i)&&(g=!0,i=i[xr]);const b=er(i);0===e&&null!==r?null==o?kf(n,r,b):wa(n,r,b,o||null,!0):1===e&&null!==r?wa(n,r,b,o||null,!0):2===e?function H(e,n,r){const i=Uc(e,n);i&&function yg(e,n,r,i){e.removeChild(n,r,i)}(e,i,n,r)}(n,b,g):3===e&&n.destroyNode(b),null!=u&&function rn(e,n,r,i,o){const u=r[Pr];u!==er(r)&&Ta(n,e,i,u,o);for(let b=ft;bn.replace(sg,og))}(n))}function Ll(e,n,r){return e.createElement(n,r)}function Qu(e,n){const r=e[Ui],i=r.indexOf(n);xi(n),r.splice(i,1)}function Fl(e,n){if(e.length<=ft)return;const r=ft+n,i=e[r];if(i){const o=i[Wr];null!==o&&o!==e&&Qu(o,i),n>0&&(e[r-1][$r]=i[$r]);const u=wc(e,ft+n);!function Of(e,n){Ge(e,n,n[Bt],2,null,null),n[xr]=null,n[Nr]=null}(i[Kt],i);const g=u[di];null!==g&&g.detachView(u[Kt]),i[hr]=null,i[$r]=null,i[Mn]&=-129}return i}function Fc(e,n){if(!(256&n[Mn])){const r=n[Bt];n[Ii]&&ca(n[Ii]),n[Pi]&&ca(n[Pi]),r.destroyNode&&Ge(e,n,r,3,null,null),function Ju(e){let n=e[gr];if(!n)return kl(e[Kt],e);for(;n;){let r=null;if(et(n))r=n[gr];else{const i=n[ft];i&&(r=i)}if(!r){for(;n&&!n[$r]&&n!==e;)et(n)&&kl(n[Kt],n),n=n[hr];null===n&&(n=e),et(n)&&kl(n[Kt],n),r=n&&n[$r]}n=r}}(n)}}function kl(e,n){if(!(256&n[Mn])){n[Mn]&=-129,n[Mn]|=256,function Ff(e,n){let r;if(null!=e&&null!=(r=e.destroyHooks))for(let i=0;i=0?i[g]():i[-g].unsubscribe(),u+=2}else r[u].call(i[r[u+1]]);null!==i&&(n[Ze]=null);const o=n[zi];if(null!==o){n[zi]=null;for(let u=0;u-1){const{encapsulation:u}=e.data[i.directiveStart+o];if(u===kt.None||u===kt.Emulated)return null}return Di(i,r)}}function wa(e,n,r,i,o){e.insertBefore(n,r,i,o)}function kf(e,n,r){e.appendChild(n,r)}function Xu(e,n,r,i,o){null!==i?wa(e,n,r,i,o):kf(e,n,r)}function Uc(e,n){return e.parentNode(n)}function Bf(e,n,r){return qu(e,n,r)}function jc(e,n,r){return 40&e.type?Di(e,r):null}let Hc,In,Qr,mi,qu=jc;function l(e,n){qu=e,Hc=n}function C(e,n,r,i){const o=kc(e,i,n),u=n[Bt],b=Bf(i.parent||n[Nr],i,n);if(null!=o)if(Array.isArray(r))for(let A=0;Ae,createScript:e=>e,createScriptURL:e=>e})}catch{}return In}()?.createHTML(e)||e}function qr(e){Qr=e}function gi(){if(void 0!==Qr)return Qr;if(typeof document<"u")return document;throw new ce(210,!1)}function Fi(){if(void 0===mi&&(mi=null,qt.trustedTypes))try{mi=qt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return mi}function ks(e){return Fi()?.createHTML(e)||e}function ko(e){return Fi()?.createScriptURL(e)||e}class As{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ye})`}}class xs extends As{getTypeName(){return"HTML"}}class Ys extends As{getTypeName(){return"Style"}}class Bl extends As{getTypeName(){return"Script"}}class ia extends As{getTypeName(){return"URL"}}class Ul extends As{getTypeName(){return"ResourceURL"}}function Js(e){return e instanceof As?e.changingThisBreaksApplicationSecurity:e}function uo(e,n){const r=function jl(e){return e instanceof As&&e.getTypeName()||null}(e);if(null!=r&&r!==n){if("ResourceURL"===r&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${r} (see ${ye})`)}return r===n}function Ma(e){return new xs(e)}function Bo(e){return new Ys(e)}function sl(e){return new Bl(e)}function Hl(e){return new ia(e)}function sa(e){return new Ul(e)}function Vl(e){const n=new Vc(e);return function jf(){try{return!!(new window.DOMParser).parseFromString(cr(""),"text/html")}catch{return!1}}()?new Uf(n):n}class Uf{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const r=(new window.DOMParser).parseFromString(cr(n),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(n):(r.removeChild(r.firstChild),r)}catch{return null}}}class Vc{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const r=this.inertDocument.createElement("template");return r.innerHTML=cr(n),r}}const ed=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function $l(e){return(e=String(e)).match(ed)?e:"unsafe:"+e}function yo(e){const n={};for(const r of e.split(","))n[r]=!0;return n}function Sa(...e){const n={};for(const r of e)for(const i in r)r.hasOwnProperty(i)&&(n[i]=!0);return n}const $c=yo("area,br,col,hr,img,wbr"),td=yo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),nd=yo("rp,rt"),Wl=Sa($c,Sa(td,yo("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")),Sa(nd,yo("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")),Sa(nd,td)),ol=yo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Gc=Sa(ol,yo("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),yo("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")),rd=yo("script,style,template");class xy{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let r=n.firstChild,i=!0;for(;r;)if(r.nodeType===Node.ELEMENT_NODE?i=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,i&&r.firstChild)r=r.firstChild;else for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let o=this.checkClobberedElement(r,r.nextSibling);if(o){r=o;break}r=this.checkClobberedElement(r,r.parentNode)}return this.buf.join("")}startElement(n){const r=n.nodeName.toLowerCase();if(!Wl.hasOwnProperty(r))return this.sanitizedSomething=!0,!rd.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);const i=n.attributes;for(let o=0;o"),!0}endElement(n){const r=n.nodeName.toLowerCase();Wl.hasOwnProperty(r)&&!$c.hasOwnProperty(r)&&(this.buf.push(""))}chars(n){this.buf.push(Eg(n))}checkClobberedElement(n,r){if(r&&(n.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return r}}const Oy=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Iy=/([^\#-~ |!])/g;function Eg(e){return e.replace(/&/g,"&").replace(Oy,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(Iy,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let id;function Dg(e,n){let r=null;try{id=id||Vl(e);let i=n?String(n):"";r=id.getInertBodyElement(i);let o=5,u=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=u,u=r.innerHTML,r=id.getInertBodyElement(i)}while(i!==u);return cr((new xy).sanitizeChildren(Wf(r)||r))}finally{if(r){const i=Wf(r)||r;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Wf(e){return"content"in e&&function Py(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var al=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(al||{});function Cg(e){const n=zc();return n?ks(n.sanitize(al.HTML,e)||""):uo(e,"HTML")?ks(Js(e)):Dg(gi(),ve(e))}function Gf(e){const n=zc();return n?n.sanitize(al.URL,e)||"":uo(e,"URL")?Js(e):$l(ve(e))}function Tg(e){const n=zc();if(n)return ko(n.sanitize(al.RESOURCE_URL,e)||"");if(uo(e,"ResourceURL"))return ko(Js(e));throw new ce(904,!1)}function wg(e,n,r){return function ky(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?Tg:Gf}(n,r)(e)}function zc(){const e=Nt();return e&&e[Yt].sanitizer}class zr{constructor(n,r){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof r?this.__NG_ELEMENT_ID__=r:void 0!==r&&(this.\u0275prov=Je({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Zc=new zr("ENVIRONMENT_INITIALIZER"),Mg=new zr("INJECTOR",-1),Sg=new zr("INJECTOR_DEF_TYPES");class zf{get(n,r=Or){if(r===Or){const i=new Error(`NullInjectorError: No provider for ${f(n)}!`);throw i.name="NullInjectorError",i}return r}}function Zf(e){return{\u0275providers:e}}function By(...e){return{\u0275providers:Ag(0,e),\u0275fromNgModule:!0}}function Ag(e,...n){const r=[],i=new Set;let o;const u=g=>{r.push(g)};return Za(n,g=>{const b=g;sd(b,u,[],i)&&(o||=[],o.push(b))}),void 0!==o&&xg(o,u),r}function xg(e,n){for(let r=0;r{n(u,i)})}}function sd(e,n,r,i){if(!(e=ie(e)))return!1;let o=null,u=We(e);const g=!u&&jn(e);if(u||g){if(g&&!g.standalone)return!1;o=e}else{const A=e.ngModule;if(u=We(A),!u)return!1;o=A}const b=i.has(o);if(g){if(b)return!1;if(i.add(o),g.dependencies){const A="function"==typeof g.dependencies?g.dependencies():g.dependencies;for(const Z of A)sd(Z,n,r,i)}}else{if(!u)return!1;{if(null!=u.imports&&!b){let Z;i.add(o);try{Za(u.imports,ue=>{sd(ue,n,r,i)&&(Z||=[],Z.push(ue))})}finally{}void 0!==Z&&xg(Z,n)}if(!b){const Z=ls(o)||(()=>new o);n({provide:o,useFactory:Z,deps:on},o),n({provide:Sg,useValue:o,multi:!0},o),n({provide:Zc,useValue:()=>Vt(o),multi:!0},o)}const A=u.providers;if(null!=A&&!b){const Z=e;Kf(A,ue=>{n(ue,Z)})}}}return o!==e&&void 0!==e.providers}function Kf(e,n){for(let r of e)Te(r)&&(r=r.\u0275providers),Array.isArray(r)?Kf(r,n):n(r)}const Uy=B({provide:String,useValue:B});function Yf(e){return null!==e&&"object"==typeof e&&Uy in e}function ll(e){return"function"==typeof e}const Jf=new zr("Set Injector scope."),od={},Hy={};let Qf;function ad(){return void 0===Qf&&(Qf=new zf),Qf}class Uo{}class ld extends Uo{get destroyed(){return this._destroyed}constructor(n,r,i,o){super(),this.parent=r,this.source=i,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,qf(n,g=>this.processProvider(g)),this.records.set(Mg,Gl(void 0,this)),o.has("environment")&&this.records.set(Uo,Gl(void 0,this));const u=this.records.get(Jf);null!=u&&"string"==typeof u.value&&this.scopes.add(u.value),this.injectorDefTypes=new Set(this.get(Sg.multi,on,Et.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const r=yt(this),i=dn(void 0);try{return n()}finally{yt(r),dn(i)}}get(n,r=Or,i=Et.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Zr))return n[Zr](this);i=rr(i);const u=yt(this),g=dn(void 0);try{if(!(i&Et.SkipSelf)){let A=this.records.get(n);if(void 0===A){const Z=function zy(e){return"function"==typeof e||"object"==typeof e&&e instanceof zr}(n)&&Pt(n);A=Z&&this.injectableDefInScope(Z)?Gl(Xf(n),od):null,this.records.set(n,A)}if(null!=A)return this.hydrate(n,A)}return(i&Et.Self?ad():this.parent).get(n,r=i&Et.Optional&&r===Or?null:r)}catch(b){if("NullInjectorError"===b.name){if((b[Br]=b[Br]||[]).unshift(f(n)),u)throw b;return function Le(e,n,r,i){const o=e[Br];throw n[at]&&o.unshift(n[at]),e.message=function Ue(e,n,r,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=f(n);if(Array.isArray(n))o=n.map(f).join(" -> ");else if("object"==typeof n){let u=[];for(let g in n)if(n.hasOwnProperty(g)){let b=n[g];u.push(g+":"+("string"==typeof b?JSON.stringify(b):f(b)))}o=`{${u.join(", ")}}`}return`${r}${i?"("+i+")":""}[${o}]: ${e.replace(zn,"\n ")}`}("\n"+e.message,o,r,i),e.ngTokenPath=o,e[Br]=null,e}(b,n,"R3InjectorError",this.source)}throw b}finally{dn(g),yt(u)}}resolveInjectorInitializers(){const n=yt(this),r=dn(void 0);try{const o=this.get(Zc.multi,on,Et.Self);for(const u of o)u()}finally{yt(n),dn(r)}}toString(){const n=[],r=this.records;for(const i of r.keys())n.push(f(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ce(205,!1)}processProvider(n){let r=ll(n=ie(n))?n:ie(n&&n.provide);const i=function $y(e){return Yf(e)?Gl(void 0,e.useValue):Gl(Pg(e),od)}(n);if(ll(n)||!0!==n.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=Gl(void 0,od,!0),o.factory=()=>an(o.multi),this.records.set(r,o)),r=n,o.multi.push(n)}this.records.set(r,i)}hydrate(n,r){return r.value===od&&(r.value=Hy,r.value=r.factory()),"object"==typeof r.value&&r.value&&function Gy(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}injectableDefInScope(n){if(!n.providedIn)return!1;const r=ie(n.providedIn);return"string"==typeof r?"any"===r||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(n){const r=this._onDestroyHooks.indexOf(n);-1!==r&&this._onDestroyHooks.splice(r,1)}}function Xf(e){const n=Pt(e),r=null!==n?n.factory:ls(e);if(null!==r)return r;if(e instanceof zr)throw new ce(204,!1);if(e instanceof Function)return function Vy(e){const n=e.length;if(n>0)throw Al(n,"?"),new ce(204,!1);const r=function Rn(e){return e&&(e[Ye]||e[Ot])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new ce(204,!1)}function Pg(e,n,r){let i;if(ll(e)){const o=ie(e);return ls(o)||Xf(o)}if(Yf(e))i=()=>ie(e.useValue);else if(function Ig(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...an(e.deps||[]));else if(function Og(e){return!(!e||!e.useExisting)}(e))i=()=>Vt(ie(e.useExisting));else{const o=ie(e&&(e.useClass||e.provide));if(!function Wy(e){return!!e.deps}(e))return ls(o)||Xf(o);i=()=>new o(...an(e.deps))}return i}function Gl(e,n,r=!1){return{factory:e,value:n,multi:r?[]:void 0}}function qf(e,n){for(const r of e)Array.isArray(r)?qf(r,n):r&&Te(r)?qf(r.\u0275providers,n):n(r)}const Rg=new zr("AppId",{providedIn:"root",factory:()=>Zy}),Zy="ng",Ng=new zr("Platform Initializer"),ep=new zr("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ky=new zr("AnimationModuleType"),Yy=new zr("CSP nonce",{providedIn:"root",factory:()=>gi().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Lg=(e,n,r)=>null;function lp(e,n,r=!1){return Lg(e,n,r)}class sb{}class Bg{}class ab{resolveComponentFactory(n){throw function ob(e){const n=Error(`No component factory found for ${f(e)}.`);return n.ngComponent=e,n}(n)}}let Jc=(()=>{class e{static#e=this.NULL=new ab}return e})();function lb(){return Kl(v(),Nt())}function Kl(e,n){return new Qc(Di(e,n))}let Qc=(()=>{class e{constructor(r){this.nativeElement=r}static#e=this.__NG_ELEMENT_ID__=lb}return e})();function cb(e){return e instanceof Qc?e.nativeElement:e}class jg{}let ub=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function db(){const e=Nt(),r=Vi(v().index,e);return(et(r)?r:e)[Bt]}()}return e})(),fb=(()=>{class e{static#e=this.\u0275prov=Je({token:e,providedIn:"root",factory:()=>null})}return e})();class Hg{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const pb=new Hg("16.2.10"),dp={};function Gg(e,n=null,r=null,i){const o=zg(e,n,r,i);return o.resolveInjectorInitializers(),o}function zg(e,n=null,r=null,i,o=new Set){const u=[r||on,By(e)];return i=i||("object"==typeof e?void 0:f(e)),new ld(u,n||ad(),i||null,o)}let bo=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=Or;static#t=this.NULL=new zf;static create(r,i){if(Array.isArray(r))return Gg({name:""},i,r,"");{const o=r.name??"";return Gg({name:o},r.parent,r.providers,o)}}static#n=this.\u0275prov=Je({token:e,providedIn:"any",factory:()=>Vt(Mg)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function pp(e){return e.ngOriginalError}class xa{constructor(){this._console=console}handleError(n){const r=this._findOriginalError(n);this._console.error("ERROR",n),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(n){let r=n&&pp(n);for(;r&&pp(r);)r=pp(r);return r||null}}function gp(e){return n=>{setTimeout(e,void 0,n)}}const jo=class bb extends t.x{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,r,i){let o=n,u=r||(()=>null),g=i;if(n&&"object"==typeof n){const A=n;o=A.next?.bind(A),u=A.error?.bind(A),g=A.complete?.bind(A)}this.__isAsync&&(u=gp(u),o&&(o=gp(o)),g&&(g=gp(g)));const b=super.subscribe({next:o,error:u,complete:g});return n instanceof d.w0&&n.add(b),b}};function Kg(...e){}class es{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new jo(!1),this.onMicrotaskEmpty=new jo(!1),this.onStable=new jo(!1),this.onError=new jo(!1),typeof Zone>"u")throw new ce(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&r,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function Eb(){const e="function"==typeof qt.requestAnimationFrame;let n=qt[e?"requestAnimationFrame":"setTimeout"],r=qt[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&r){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const o=r[Zone.__symbol__("OriginalDelegate")];o&&(r=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function Tb(e){const n=()=>{!function Cb(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(qt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,_p(e),e.isCheckStableRunning=!0,mp(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),_p(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,i,o,u,g,b)=>{if(function Mb(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(b))return r.invokeTask(o,u,g,b);try{return Yg(e),r.invokeTask(o,u,g,b)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===u.type||e.shouldCoalesceRunChangeDetection)&&n(),Jg(e)}},onInvoke:(r,i,o,u,g,b,A)=>{try{return Yg(e),r.invoke(o,u,g,b,A)}finally{e.shouldCoalesceRunChangeDetection&&n(),Jg(e)}},onHasTask:(r,i,o,u)=>{r.hasTask(o,u),i===o&&("microTask"==u.change?(e._hasPendingMicrotasks=u.microTask,_p(e),mp(e)):"macroTask"==u.change&&(e.hasPendingMacrotasks=u.macroTask))},onHandleError:(r,i,o,u)=>(r.handleError(o,u),e.runOutsideAngular(()=>e.onError.emit(u)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!es.isInAngularZone())throw new ce(909,!1)}static assertNotInAngularZone(){if(es.isInAngularZone())throw new ce(909,!1)}run(n,r,i){return this._inner.run(n,r,i)}runTask(n,r,i,o){const u=this._inner,g=u.scheduleEventTask("NgZoneEvent: "+o,n,Db,Kg,Kg);try{return u.runTask(g,r,i)}finally{u.cancelTask(g)}}runGuarded(n,r,i){return this._inner.runGuarded(n,r,i)}runOutsideAngular(n){return this._outer.run(n)}}const Db={};function mp(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function _p(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Yg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Jg(e){e._nesting--,mp(e)}class wb{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new jo,this.onMicrotaskEmpty=new jo,this.onStable=new jo,this.onError=new jo}run(n,r,i){return n.apply(r,i)}runGuarded(n,r,i){return n.apply(r,i)}runOutsideAngular(n){return n()}runTask(n,r,i,o){return n.apply(r,i)}}const Qg=new zr("",{providedIn:"root",factory:Xg});function Xg(){const e=sn(es);let n=!0;const r=new w.y(o=>{n=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(n),o.complete()})}),i=new w.y(o=>{let u;e.runOutsideAngular(()=>{u=e.onStable.subscribe(()=>{es.assertNotInAngularZone(),queueMicrotask(()=>{!n&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(n=!0,o.next(!0))})})});const g=e.onUnstable.subscribe(()=>{es.assertInAngularZone(),n&&(n=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{u.unsubscribe(),g.unsubscribe()}});return(0,L.T)(r,i.pipe((0,R.B)()))}function oa(e){return e instanceof Function?e():e}let vp=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=Je({token:e,providedIn:"root",factory:()=>new e})}return e})();function Xc(e){for(;e;){e[Mn]|=64;const n=il(e);if(Hs(e)&&!n)return e;e=n}return null}const rm=new zr("",{providedIn:"root",factory:()=>!1});let gd=null;function am(e,n){return e[n]??um()}function lm(e,n){const r=um();r.producerNode?.length&&(e[n]=gd,r.lView=e,gd=cm())}const Fb={...no,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Xc(e.lView)},lView:null};function cm(){return Object.create(Fb)}function um(){return gd??=cm(),gd}const ur={};function dm(e){fm(mr(),Nt(),yn()+e,!1)}function fm(e,n,r,i){if(!i)if(3==(3&n[Mn])){const u=e.preOrderCheckHooks;null!==u&&lo(n,u,r)}else{const u=e.preOrderHooks;null!==u&&Qo(n,u,0,r)}tr(r)}function Ql(e,n=Et.Default){const r=Nt();return null===r?Vt(e,n):ef(v(),r,ie(e),n)}function pm(){throw new Error("invalid")}function md(e,n,r,i,o,u,g,b,A,Z,ue){const Ce=n.blueprint.slice();return Ce[xr]=o,Ce[Mn]=140|i,(null!==Z||e&&2048&e[Mn])&&(Ce[Mn]|=2048),Po(Ce),Ce[hr]=Ce[Yn]=e,Ce[Ve]=r,Ce[Yt]=g||e&&e[Yt],Ce[Bt]=b||e&&e[Bt],Ce[ct]=A||e&&e[ct]||null,Ce[Nr]=u,Ce[rs]=function ag(){return $u++}(),Ce[Oi]=ue,Ce[bs]=Z,Ce[sr]=2==n.type?e[sr]:Ce,Ce}function Xl(e,n,r,i,o){let u=e.data[n];if(null===u)u=yp(e,n,r,i,o),function E(){return Hn.lFrame.inI18n}()&&(u.flags|=32);else if(64&u.type){u.type=r,u.value=i,u.attrs=o;const g=te();u.injectorIndex=null===g?-1:g.injectorIndex}return me(u,!0),u}function yp(e,n,r,i,o){const u=I(),g=Ne(),A=e.data[n]=function Wb(e,n,r,i,o,u){let g=n?n.injectorIndex:-1,b=0;return Ms()&&(b|=128),{type:r,index:i,insertBeforeIndex:null,injectorIndex:g,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:b,providerIndexes:0,value:o,attrs:u,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,g?u:u&&u.parent,r,n,i,o);return null===e.firstChild&&(e.firstChild=A),null!==u&&(g?null==u.child&&null!==A.parent&&(u.child=A):null===u.next&&(u.next=A,A.prev=u)),A}function qc(e,n,r,i){if(0===r)return-1;const o=n.length;for(let u=0;uGn&&fm(e,n,Gn,!1),ti(b?2:0,o);const Z=b?u:null,ue=wo(Z);try{null!==Z&&(Z.dirty=!1),r(i,o)}finally{Mo(Z,ue)}}finally{b&&null===n[Ii]&&lm(n,Ii),tr(g),ti(b?3:1,o)}}function bp(e,n,r){if(hn(n)){const i=yi(null);try{const u=n.directiveEnd;for(let g=n.directiveStart;gnull;function _m(e,n,r,i){for(let o in e)if(e.hasOwnProperty(o)){r=null===r?{}:r;const u=e[o];null===i?vm(r,n,o,u):i.hasOwnProperty(o)&&vm(r,n,i[o],u)}return r}function vm(e,n,r,i){e.hasOwnProperty(r)?e[r].push(n,i):e[r]=[n,i]}function Qs(e,n,r,i,o,u,g,b){const A=Di(n,r);let ue,Z=n.inputs;!b&&null!=Z&&(ue=Z[i])?(Ap(e,r,ue,i,o),Gr(n)&&function Zb(e,n){const r=Vi(n,e);16&r[Mn]||(r[Mn]|=64)}(r,n.index)):3&n.type&&(i=function zb(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),o=null!=g?g(o,n.value||"",i):o,u.setProperty(A,i,o))}function Tp(e,n,r,i){if(Ws()){const o=null===i?null:{"":-1},u=function qb(e,n){const r=e.directiveRegistry;let i=null,o=null;if(r)for(let u=0;u0;){const r=e[--n];if("number"==typeof r&&r<0)return r}return 0})(g)!=b&&g.push(b),g.push(r,i,u)}}(e,n,i,qc(e,r,o.hostVars,ur),o)}function Ho(e,n,r,i,o,u){const g=Di(e,n);!function Mp(e,n,r,i,o,u,g){if(null==u)e.removeAttribute(n,o,r);else{const b=null==g?ve(u):g(u,i||"",o);e.setAttribute(n,o,b,r)}}(n[Bt],g,u,e.value,r,i,o)}function s1(e,n,r,i,o,u){const g=u[n];if(null!==g)for(let b=0;b{class e{constructor(){this.all=new Set,this.queue=new Map}create(r,i,o){const u=typeof Zone>"u"?null:Zone.current,g=function gt(e,n,r){const i=Object.create(Jt);r&&(i.consumerAllowSignalWrites=!0),i.fn=e,i.schedule=n;const o=g=>{i.cleanupFn=g};return i.ref={notify:()=>go(i),run:()=>{if(i.dirty=!1,i.hasRun&&!so(i))return;i.hasRun=!0;const g=wo(i);try{i.cleanupFn(),i.cleanupFn=Ct,i.fn(o)}finally{Mo(i,g)}},cleanup:()=>i.cleanupFn()},i.ref}(r,Z=>{this.all.has(Z)&&this.queue.set(Z,u)},o);let b;this.all.add(g),g.notify();const A=()=>{g.cleanup(),b?.(),this.all.delete(g),this.queue.delete(g)};return b=i?.onDestroy(A),{destroy:A}}flush(){if(0!==this.queue.size)for(const[r,i]of this.queue)this.queue.delete(r),i?i.run(()=>r.run()):r.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=Je({token:e,providedIn:"root",factory:()=>new e})}return e})();function vd(e,n,r){let i=r?e.styles:null,o=r?e.classes:null,u=0;if(null!==n)for(let g=0;g0){Im(e,1);const o=r.components;null!==o&&Rm(e,o,1)}}function Rm(e,n,r){for(let i=0;i-1&&(Fl(n,i),wc(r,i))}this._attachedToViewContainer=!1}Fc(this._lView[Kt],this._lView)}onDestroy(n){!function Fa(e,n){if(256==(256&e[Mn]))throw new ce(911,!1);null===e[zi]&&(e[zi]=[]),e[zi].push(n)}(this._lView,n)}markForCheck(){Xc(this._cdRefInjectingView||this._lView)}detach(){this._lView[Mn]&=-129}reattach(){this._lView[Mn]|=128}detectChanges(){yd(this._lView[Kt],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ce(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Pf(e,n){Ge(e,n,n[Bt],2,null,null)}(this._lView[Kt],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new ce(902,!1);this._appRef=n}}class h1 extends tu{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;yd(n[Kt],n,n[Ve],!1)}checkNoChanges(){}get context(){return null}}class Nm extends Jc{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const r=jn(n);return new nu(r,this.ngModule)}}function Lm(e){const n=[];for(let r in e)e.hasOwnProperty(r)&&n.push({propName:e[r],templateName:r});return n}class m1{constructor(n,r){this.injector=n,this.parentInjector=r}get(n,r,i){i=rr(i);const o=this.injector.get(n,dp,i);return o!==dp||r===dp?o:this.parentInjector.get(n,r,i)}}class nu extends Bg{get inputs(){const n=this.componentDef,r=n.inputTransforms,i=Lm(n.inputs);if(null!==r)for(const o of i)r.hasOwnProperty(o.propName)&&(o.transform=r[o.propName]);return i}get outputs(){return Lm(this.componentDef.outputs)}constructor(n,r){super(),this.componentDef=n,this.ngModule=r,this.componentType=n.type,this.selector=function Kr(e){return e.map(_r).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!r}create(n,r,i,o){let u=(o=o||this.ngModule)instanceof Uo?o:o?.injector;u&&null!==this.componentDef.getStandaloneInjector&&(u=this.componentDef.getStandaloneInjector(u)||u);const g=u?new m1(n,u):n,b=g.get(jg,null);if(null===b)throw new ce(407,!1);const Ce={rendererFactory:b,sanitizer:g.get(fb,null),effectManager:g.get(Am,null),afterRenderEventManager:g.get(vp,null)},Ke=b.createRenderer(null,this.componentDef),rt=this.componentDef.selectors[0][0]||"div",Mt=i?function Ub(e,n,r,i){const u=i.get(rm,!1)||r===kt.ShadowDom,g=e.selectRootElement(n,u);return function jb(e){mm(e)}(g),g}(Ke,i,this.componentDef.encapsulation,g):Ll(Ke,rt,function g1(e){const n=e.toLowerCase();return"svg"===n?ds:"math"===n?Ts:null}(rt)),Ln=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let Lt=null;null!==Mt&&(Lt=lp(Mt,g,!0));const Qn=Cp(0,null,null,1,0,null,null,null,null,null,null),Tr=md(null,Qn,null,Ln,null,null,Ce,Ke,g,null,Lt);let Xr,js;kn(Tr);try{const la=this.componentDef;let gc,kh=null;la.findHostDirectiveDefs?(gc=[],kh=new Map,la.findHostDirectiveDefs(la,gc,kh),gc.push(la)):gc=[la];const _w=function v1(e,n){const r=e[Kt],i=Gn;return e[i]=n,Xl(r,i,2,"#host",null)}(Tr,Mt),vw=function y1(e,n,r,i,o,u,g){const b=o[Kt];!function b1(e,n,r,i){for(const o of e)n.mergedAttrs=pe(n.mergedAttrs,o.hostAttrs);null!==n.mergedAttrs&&(vd(n,n.mergedAttrs,!0),null!==r&&lr(i,r,n))}(i,e,n,g);let A=null;null!==n&&(A=lp(n,o[ct]));const Z=u.rendererFactory.createRenderer(n,r);let ue=16;r.signals?ue=4096:r.onPush&&(ue=64);const Ce=md(o,gm(r),null,ue,o[e.index],e,u,Z,null,null,A);return b.firstCreatePass&&wp(b,e,i.length-1),_d(o,Ce),o[e.index]=Ce}(_w,Mt,la,gc,Tr,Ce,Ke);js=Oo(Qn,Gn),Mt&&function D1(e,n,r,i){if(i)qn(e,r,["ng-version",pb.full]);else{const{attrs:o,classes:u}=function Yr(e){const n=[],r=[];let i=1,o=2;for(;i0&&Sr(e,r,u.join(" "))}}(Ke,la,Mt,i),void 0!==r&&function C1(e,n,r){const i=e.projection=[];for(let o=0;o=0;i--){const o=e[i];o.hostVars=n+=o.hostVars,o.hostAttrs=pe(o.hostAttrs,r=pe(r,o.hostAttrs))}}(i)}function bd(e){return e===Ft?{}:e===on?[]:e}function M1(e,n){const r=e.viewQuery;e.viewQuery=r?(i,o)=>{n(i,o),r(i,o)}:n}function S1(e,n){const r=e.contentQueries;e.contentQueries=r?(i,o,u)=>{n(i,o,u),r(i,o,u)}:n}function A1(e,n){const r=e.hostBindings;e.hostBindings=r?(i,o)=>{n(i,o),r(i,o)}:n}function km(e){return n=>{n.findHostDirectiveDefs=Bm,n.hostDirectives=(Array.isArray(e)?e:e()).map(r=>"function"==typeof r?{directive:ie(r),inputs:Ft,outputs:Ft}:{directive:ie(r.directive),inputs:Um(r.inputs),outputs:Um(r.outputs)})}}function Bm(e,n,r){if(null!==e.hostDirectives)for(const i of e.hostDirectives){const o=vr(i.directive);P1(o.declaredInputs,i.inputs),Bm(o,n,r),r.set(o,i),n.push(o)}}function Um(e){if(void 0===e||0===e.length)return Ft;const n={};for(let r=0;r(Xi(!0),Ll(i,o,function Jo(){return Hn.lFrame.currentNamespace}()));function Ad(e,n,r){const i=Nt(),o=mr(),u=e+Gn,g=o.firstCreatePass?function sE(e,n,r,i,o){const u=n.consts,g=fs(u,i),b=Xl(n,e,8,"ng-container",g);return null!==g&&vd(b,g,!0),Tp(n,r,b,fs(u,o)),null!==n.queries&&n.queries.elementStart(n,b),b}(u,o,i,n,r):o.data[u];me(g,!0);const b=s_(o,i,g,e);return i[u]=b,ri()&&C(o,i,b,g),gs(b,i),Ki(g)&&(Ep(o,i,g),bp(o,g,i)),null!=r&&Dp(i,g),Ad}function xd(){let e=v();const n=mr();return Ne()?Fe():(e=e.parent,me(e,!1)),n.firstCreatePass&&(ao(n,e),hn(e)&&n.queries.elementEnd(e)),xd}function Hp(e,n,r){return Ad(e,n,r),xd(),Hp}let s_=(e,n,r,i)=>(Xi(!0),Nl(n[Bt],""));function o_(){return Nt()}function Vp(e){return!!e&&"function"==typeof e.then}function a_(e){return!!e&&"function"==typeof e.subscribe}function $p(e,n,r,i){const o=Nt(),u=mr(),g=v();return function c_(e,n,r,i,o,u,g){const b=Ki(i),Z=e.firstCreatePass&&wm(e),ue=n[Ve],Ce=Tm(n);let Ke=!0;if(3&i.type||g){const jt=Di(i,n),pn=g?g(jt):jt,Ln=Ce.length,Lt=g?Tr=>g(er(Tr[i.index])):i.index;let Qn=null;if(!g&&b&&(Qn=function lE(e,n,r,i){const o=e.cleanup;if(null!=o)for(let u=0;uA?b[A]:null}"string"==typeof g&&(u+=2)}return null}(e,n,o,i.index)),null!==Qn)(Qn.__ngLastListenerFn__||Qn).__ngNextListenerFn__=u,Qn.__ngLastListenerFn__=u,Ke=!1;else{u=d_(i,n,ue,u,!1);const Tr=r.listen(pn,o,u);Ce.push(u,Tr),Z&&Z.push(o,Lt,Ln,Ln+1)}}else u=d_(i,n,ue,u,!1);const rt=i.outputs;let Mt;if(Ke&&null!==rt&&(Mt=rt[o])){const jt=Mt.length;if(jt)for(let pn=0;pn-1?Vi(e.index,n):n);let A=u_(n,r,i,g),Z=u.__ngNextListenerFn__;for(;Z;)A=u_(n,r,Z,g)&&A,Z=Z.__ngNextListenerFn__;return o&&!1===A&&g.preventDefault(),A}}function f_(e=1){return function gn(e){return(Hn.lFrame.contextLView=function xn(e,n){for(;e>0;)n=n[Yn],e--;return n}(e,Hn.lFrame.contextLView))[Ve]}(e)}function cE(e,n){let r=null;const i=function ln(e){const n=e.attrs;if(null!=n){const r=n.indexOf(5);if(!(1&r))return n[r+1]}return null}(e);for(let o=0;o>17&32767}function Gp(e){return 2|e}function ul(e){return(131068&e)>>2}function zp(e,n){return-131069&e|n<<2}function Zp(e){return 1|e}function C_(e,n,r,i,o){const u=e[r+1],g=null===n;let b=i?Oa(u):ul(u),A=!1;for(;0!==b&&(!1===A||g);){const ue=e[b+1];gE(e[b],n)&&(A=!0,e[b+1]=i?Zp(ue):Gp(ue)),b=i?Oa(ue):ul(ue)}A&&(e[r+1]=i?Gp(u):Zp(u))}function gE(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Ka(e,n)>=0}const $i={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function T_(e){return e.substring($i.key,$i.keyEnd)}function w_(e,n){const r=$i.textEnd;return r===n?-1:(n=$i.keyEnd=function yE(e,n,r){for(;n32;)n++;return n}(e,$i.key=n,r),lc(e,n,r))}function lc(e,n,r){for(;n=0;r=w_(n,r))Fs(e,T_(n),!0)}function Do(e,n,r,i){const o=mr(),u=Fn(2);o.firstUpdatePass&&R_(o,null,u,i);const g=Nt();if(r!==ur&&vs(g,u,r)){const b=o.data[yn()];if(k_(b,i)&&!P_(o,u)){let A=i?b.classesWithoutHost:b.stylesWithoutHost;null!==A&&(r=j(A,r||"")),Up(o,b,g,r,i)}else!function xE(e,n,r,i,o,u,g,b){o===ur&&(o=on);let A=0,Z=0,ue=0=e.expandoStartIndex}function R_(e,n,r,i){const o=e.data;if(null===o[r+1]){const u=o[yn()],g=P_(e,r);k_(u,i)&&null===n&&!g&&(n=!1),n=function CE(e,n,r,i){const o=function he(e){const n=Hn.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let u=i?n.residualClasses:n.residualStyles;if(null===o)0===(i?n.classBindings:n.styleBindings)&&(r=au(r=Yp(null,e,n,r,i),n.attrs,i),u=null);else{const g=n.directiveStylingLast;if(-1===g||e[g]!==o)if(r=Yp(o,e,n,r,i),null===u){let A=function TE(e,n,r){const i=r?n.classBindings:n.styleBindings;if(0!==ul(i))return e[Oa(i)]}(e,n,i);void 0!==A&&Array.isArray(A)&&(A=Yp(null,e,n,A[1],i),A=au(A,n.attrs,i),function wE(e,n,r,i){e[Oa(r?n.classBindings:n.styleBindings)]=i}(e,n,i,A))}else u=function ME(e,n,r){let i;const o=n.directiveEnd;for(let u=1+n.directiveStylingLast;u0)&&(Z=!0)):ue=r,o)if(0!==A){const Ke=Oa(e[b+1]);e[i+1]=Id(Ke,b),0!==Ke&&(e[Ke+1]=zp(e[Ke+1],i)),e[b+1]=function dE(e,n){return 131071&e|n<<17}(e[b+1],i)}else e[i+1]=Id(b,0),0!==b&&(e[b+1]=zp(e[b+1],i)),b=i;else e[i+1]=Id(A,0),0===b?b=i:e[A+1]=zp(e[A+1],i),A=i;Z&&(e[i+1]=Gp(e[i+1])),C_(e,ue,i,!0),C_(e,ue,i,!1),function hE(e,n,r,i,o){const u=o?e.residualClasses:e.residualStyles;null!=u&&"string"==typeof n&&Ka(u,n)>=0&&(r[i+1]=Zp(r[i+1]))}(n,ue,e,i,u),g=Id(b,A),u?n.classBindings=g:n.styleBindings=g}(o,u,n,r,g,i)}}function Yp(e,n,r,i,o){let u=null;const g=r.directiveEnd;let b=r.directiveStylingLast;for(-1===b?b=r.directiveStart:b++;b0;){const A=e[o],Z=Array.isArray(A),ue=Z?A[1]:A,Ce=null===ue;let Ke=r[o+1];Ke===ur&&(Ke=Ce?on:void 0);let rt=Ce?xu(Ke,i):ue===i?Ke:void 0;if(Z&&!Pd(rt)&&(rt=xu(A,i)),Pd(rt)&&(b=rt,g))return b;const Mt=e[o+1];o=g?Oa(Mt):ul(Mt)}if(null!==n){let A=u?n.residualClasses:n.residualStyles;null!=A&&(b=xu(A,i))}return b}function Pd(e){return void 0!==e}function k_(e,n){return 0!=(e.flags&(n?8:16))}function B_(e,n=""){const r=Nt(),i=mr(),o=e+Gn,u=i.firstCreatePass?Xl(i,o,1,n,null):i.data[o],g=U_(i,r,u,n,e);r[o]=g,ri()&&C(i,r,g,u),me(u,!1)}let U_=(e,n,r,i,o)=>(Xi(!0),Rl(n[Bt],i));function Jp(e){return Rd("",e,""),Jp}function Rd(e,n,r){const i=Nt(),o=ec(i,e,n,r);return o!==ur&&aa(i,yn(),o),Rd}function Qp(e,n,r,i,o){const u=Nt(),g=function tc(e,n,r,i,o,u){const b=cl(e,Cn(),r,o);return Fn(2),b?n+ve(r)+i+ve(o)+u:ur}(u,e,n,r,i,o);return g!==ur&&aa(u,yn(),g),Qp}function Xp(e,n,r,i,o,u,g){const b=Nt(),A=function nc(e,n,r,i,o,u,g,b){const Z=Dd(e,Cn(),r,o,g);return Fn(3),Z?n+ve(r)+i+ve(o)+u+ve(g)+b:ur}(b,e,n,r,i,o,u,g);return A!==ur&&aa(b,yn(),A),Xp}function qp(e,n,r,i,o,u,g,b,A,Z,ue){const Ce=Nt(),Ke=function ic(e,n,r,i,o,u,g,b,A,Z,ue,Ce){const Ke=Cn();let rt=fo(e,Ke,r,o,g,A);return rt=vs(e,Ke+4,ue)||rt,Fn(5),rt?n+ve(r)+i+ve(o)+u+ve(g)+b+ve(A)+Z+ve(ue)+Ce:ur}(Ce,e,n,r,i,o,u,g,b,A,Z,ue);return Ke!==ur&&aa(Ce,yn(),Ke),qp}function G_(e,n,r){Do(Fs,Wo,ec(Nt(),e,n,r),!0)}function eh(e,n,r){const i=Nt();return vs(i,An(),n)&&Qs(mr(),ar(),i,e,n,i[Bt],r,!0),eh}const dl=void 0;var QE=["en",[["a","p"],["AM","PM"],dl],[["AM","PM"],dl,dl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],dl,[["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"]],dl,[["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}",dl,"{1} 'at' {0}",dl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function JE(e){const r=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===i?1:5}];let cc={};function XE(e,n,r){"string"!=typeof n&&(r=n,n=e[uc.LocaleId]),n=n.toLowerCase().replace(/_/g,"-"),cc[n]=e,r&&(cc[n][uc.ExtraData]=r)}function th(e){const n=function qE(e){return e.toLowerCase().replace(/_/g,"-")}(e);let r=rv(n);if(r)return r;const i=n.split("-")[0];if(r=rv(i),r)return r;if("en"===i)return QE;throw new ce(701,!1)}function nv(e){return th(e)[uc.PluralCase]}function rv(e){return e in cc||(cc[e]=qt.ng&&qt.ng.common&&qt.ng.common.locales&&qt.ng.common.locales[e]),cc[e]}var uc=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(uc||{});const dc="en-US",Nd={marker:"element"},Ld={marker:"ICU"};var Bs=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}(Bs||{});let iv=dc;function sv(e){(function je(e,n){null==e&&Xe(n,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(iv=e.toLowerCase().replace(/_/g,"-"))}function ov(e,n,r){const i=n.insertBeforeIndex,o=Array.isArray(i)?i[0]:i;return null===o?jc(e,0,r):er(r[o])}function av(e,n,r,i,o){const u=n.insertBeforeIndex;if(Array.isArray(u)){let g=i,b=null;if(3&n.type||(b=g,g=o),null!==g&&-1===n.componentOffset)for(let A=1;A1)for(let r=e.length-2;r>=0;r--){const i=e[r];cv(i)||iD(i,n)&&null===sD(i)&&oD(i,n.index)}}function cv(e){return!(64&e.type)}function iD(e,n){return cv(n)||e.index>n.index}function sD(e){const n=e.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function oD(e,n){const r=e.insertBeforeIndex;Array.isArray(r)?r[0]=n:(l(ov,av),e.insertBeforeIndex=n)}function cD(e,n,r){const i=yp(e,r,64,null,null);return lv(n,i),i}function mD(){const e=[];let r,i,n=-1;function u(b,A){n=0;const Z=function Fd(e,n){const r=n[e.currentCaseLViewIndex];return null===r?r:r<0?~r:r}(b,A);i=null!==Z?b.remove[Z]:on}function g(){if(n0?r[b]:(e.push(n,i),u(r[Kt].data[~b],r),g())}return 0===e.length?null:(i=e.pop(),n=e.pop(),g())}return function o(b,A){for(r=A;e.length;)e.pop();return u(b.value,A),g}}const kd=/\ufffd(\d+):?\d*\ufffd/gi,vD=/\ufffd(\d+)\ufffd/,vv=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,du="\ufffd",yD=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,bD=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,ED=/\uE500/g;function yv(e,n,r,i,o,u,g){const b=qc(e,i,1,null);let A=b<r.length&&r.push(A)}return{type:i,mainBinding:o,cases:n,values:r}}function nh(e){if(!e)return[];let n=0;const r=[],i=[],o=/[{}]/g;let u;for(o.lastIndex=0;u=o.exec(e);){const b=u.index;if("}"==u[0]){if(r.pop(),0==r.length){const A=e.substring(n,b);vv.test(A)?i.push(xD(A)):i.push(A),n=b+1}}else{if(0==r.length){const A=e.substring(n,b);i.push(A),n=b+1}r.push("{")}}const g=e.substring(n);return i.push(g),i}function OD(e,n,r,i,o,u,g,b){const A=[],Z=[],ue=[];n.cases.push(u),n.create.push(A),n.remove.push(Z),n.update.push(ue);const Ke=Vl(gi()).getInertBodyElement(g),rt=Wf(Ke)||Ke;return rt?Cv(e,n,r,i,A,Z,ue,rt,o,b,0):0}function Cv(e,n,r,i,o,u,g,b,A,Z,ue){let Ce=0,Ke=b.firstChild;for(;Ke;){const rt=qc(e,r,1,null);switch(Ke.nodeType){case Node.ELEMENT_NODE:const Mt=Ke,jt=Mt.tagName.toLowerCase();if(Wl.hasOwnProperty(jt)){rh(o,Nd,jt,A,rt),e.data[rt]=jt;const Qn=Mt.attributes;for(let Tr=0;Tr>>Bs.SHIFT;let Ce=e[ue];null===Ce&&(Ce=e[ue]=(g&Bs.COMMENT)===Bs.COMMENT?o.createComment(b):Rl(o,b)),Z&&null!==r&&wa(o,r,Ce,i,!1)}})(o,A.create,ue,b&&8&b.type?o[b.index]:null),M(!0)}function Av(e,n,r){Mv(e,n,r),function Sv(){M(!1)}()}function ih(e,n,r,i,o){if(e=ie(e),Array.isArray(e))for(let u=0;u>20;if(ll(e)||!e.multi){const rt=new va(Z,o,Ql),Mt=oh(A,n,o?ue:ue+Ke,Ce);-1===Mt?(wu(Ec(b,g),u,A),sh(u,e,n.length),n.push(A),b.directiveStart++,b.directiveEnd++,o&&(b.providerIndexes+=1048576),r.push(rt),g.push(rt)):(r[Mt]=rt,g[Mt]=rt)}else{const rt=oh(A,n,ue+Ke,Ce),Mt=oh(A,n,ue,ue+Ke),pn=Mt>=0&&r[Mt];if(o&&!pn||!o&&!(rt>=0&&r[rt])){wu(Ec(b,g),u,A);const Ln=function JD(e,n,r,i,o){const u=new va(e,r,Ql);return u.multi=[],u.index=n,u.componentProviders=0,Ov(u,o,i&&!r),u}(o?YD:KD,r.length,o,i,Z);!o&&pn&&(r[Mt].providerFactory=Ln),sh(u,e,n.length,0),n.push(A),b.directiveStart++,b.directiveEnd++,o&&(b.providerIndexes+=1048576),r.push(Ln),g.push(Ln)}else sh(u,e,rt>-1?rt:Mt,Ov(r[o?Mt:rt],Z,!o&&i));!o&&i&&pn&&r[Mt].componentProviders++}}}function sh(e,n,r,i){const o=ll(n),u=function jy(e){return!!e.useClass}(n);if(o||u){const A=(u?ie(n.useClass):n).prototype.ngOnDestroy;if(A){const Z=e.destroyHooks||(e.destroyHooks=[]);if(!o&&n.multi){const ue=Z.indexOf(r);-1===ue?Z.push(r,[i,A]):Z[ue+1].push(i,A)}else Z.push(r,A)}}}function Ov(e,n,r){return r&&e.componentProviders++,e.multi.push(n)-1}function oh(e,n,r,i){for(let o=r;o{r.providersResolver=(i,o)=>function ZD(e,n,r){const i=mr();if(i.firstCreatePass){const o=fi(e);ih(r,i.data,i.blueprint,o,!0),ih(n,i.data,i.blueprint,o,!1)}}(i,o?o(e):e,n)}}class fl{}class Pv{}function QD(e,n){return new lh(e,n??null,[])}class lh extends fl{constructor(n,r,i){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Nm(this);const o=ci(n);this._bootstrapComponents=oa(o.bootstrap),this._r3Injector=zg(n,r,[{provide:fl,useValue:this},{provide:Jc,useValue:this.componentFactoryResolver},...i],f(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class ch extends Pv{constructor(n){super(),this.moduleType=n}create(n){return new lh(this.moduleType,n,[])}}class Rv extends fl{constructor(n){super(),this.componentFactoryResolver=new Nm(this),this.instance=null;const r=new ld([...n.providers,{provide:fl,useValue:this},{provide:Jc,useValue:this.componentFactoryResolver}],n.parent||ad(),n.debugName,new Set(["environment"]));this.injector=r,n.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Nv(e,n,r=null){return new Rv({providers:e,parent:n,debugName:r,runEnvironmentInitializers:!0}).injector}let qD=(()=>{class e{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){const i=Ag(0,r.type),o=i.length>0?Nv([i],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,o)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(const r of this.cachedInjectors.values())null!==r&&r.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Je({token:e,providedIn:"environment",factory:()=>new e(Vt(Uo))})}return e})();function Lv(e){e.getStandaloneInjector=n=>n.get(qD).getOrCreateStandaloneInjector(e)}function Vv(e,n,r){const i=Xt()+e,o=Nt();return o[i]===ur?Vo(o,i,r?n.call(r):n()):ru(o,i)}function $v(e,n,r,i){return Kv(Nt(),Xt(),e,n,r,i)}function Wv(e,n,r,i,o){return Yv(Nt(),Xt(),e,n,r,i,o)}function Gv(e,n,r,i,o,u){return Jv(Nt(),Xt(),e,n,r,i,o,u)}function zv(e,n,r,i,o,u,g){return function Qv(e,n,r,i,o,u,g,b,A){const Z=n+r;return fo(e,Z,o,u,g,b)?Vo(e,Z+4,A?i.call(A,o,u,g,b):i(o,u,g,b)):pu(e,Z+4)}(Nt(),Xt(),e,n,r,i,o,u,g)}function Zv(e,n,r,i,o,u,g,b){const A=Xt()+e,Z=Nt(),ue=fo(Z,A,r,i,o,u);return vs(Z,A+4,g)||ue?Vo(Z,A+5,b?n.call(b,r,i,o,u,g):n(r,i,o,u,g)):ru(Z,A+5)}function pu(e,n){const r=e[n];return r===ur?void 0:r}function Kv(e,n,r,i,o,u){const g=n+r;return vs(e,g,o)?Vo(e,g+1,u?i.call(u,o):i(o)):pu(e,g+1)}function Yv(e,n,r,i,o,u,g){const b=n+r;return cl(e,b,o,u)?Vo(e,b+2,g?i.call(g,o,u):i(o,u)):pu(e,b+2)}function Jv(e,n,r,i,o,u,g,b){const A=n+r;return Dd(e,A,o,u,g)?Vo(e,A+3,b?i.call(b,o,u,g):i(o,u,g)):pu(e,A+3)}function qv(e,n){const r=mr();let i;const o=e+Gn;r.firstCreatePass?(i=function fC(e,n){if(n)for(let r=n.length-1;r>=0;r--){const i=n[r];if(e===i.name)return i}}(n,r.pipeRegistry),r.data[o]=i,i.onDestroy&&(r.destroyHooks??=[]).push(o,i.onDestroy)):i=r.data[o];const u=i.factory||(i.factory=ls(i.type)),b=dn(Ql);try{const A=qo(!1),Z=u();return qo(A),function tE(e,n,r,i){r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),n[r]=i}(r,Nt(),o,Z),Z}finally{dn(b)}}function e0(e,n,r){const i=e+Gn,o=Nt(),u=Ji(o,i);return hu(o,i)?Kv(o,Xt(),n,u.transform,r,u):u.transform(r)}function t0(e,n,r,i){const o=e+Gn,u=Nt(),g=Ji(u,o);return hu(u,o)?Yv(u,Xt(),n,g.transform,r,i,g):g.transform(r,i)}function n0(e,n,r,i,o){const u=e+Gn,g=Nt(),b=Ji(g,u);return hu(g,u)?Jv(g,Xt(),n,b.transform,r,i,o,b):b.transform(r,i,o)}function hu(e,n){return e[Kt].data[n].pure}function gC(){return this._results[Symbol.iterator]()}class dh{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new jo)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const r=dh.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=gC)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,r){return this._results.reduce(n,r)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,r){const i=this;i.dirty=!1;const o=function Ks(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function Au(e,n,r){if(e.length!==n.length)return!1;for(let i=0;i0&&(r[o-1][$r]=n),i{class e{static#e=this.__NG_ELEMENT_ID__=bC}return e})();const vC=gu,yC=class extends vC{constructor(n,r,i){super(),this._declarationLView=n,this._declarationTContainer=r,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,i){const o=function mC(e,n,r,i){const o=n.tView,b=md(e,o,r,4096&e[Mn]?4096:16,null,n,null,null,null,i?.injector??null,i?.hydrationInfo??null);b[Wr]=e[n.index];const Z=e[di];return null!==Z&&(b[di]=Z.createEmbeddedView(o)),xp(o,b,r),b}(this._declarationLView,this._declarationTContainer,n,{injector:r,hydrationInfo:i});return new tu(o)}};function bC(){return Bd(v(),Nt())}function Bd(e,n){return 4&e.type?new yC(n,e,Kl(e,n)):null}let jd=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=MC}return e})();function MC(){return u0(v(),Nt())}const SC=jd,l0=class extends SC{constructor(n,r,i){super(),this._lContainer=n,this._hostTNode=r,this._hostLView=i}get element(){return Kl(this._hostTNode,this._hostLView)}get injector(){return new _s(this._hostTNode,this._hostLView)}get parentInjector(){const n=Dc(this._hostTNode,this._hostLView);if(yc(n)){const r=ya(n,this._hostLView),i=Ha(n);return new _s(r[Kt].data[i+8],r)}return new _s(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const r=c0(this._lContainer);return null!==r&&r[n]||null}get length(){return this._lContainer.length-ft}createEmbeddedView(n,r,i){let o,u;"number"==typeof i?o=i:null!=i&&(o=i.index,u=i.injector);const b=n.createEmbeddedViewImpl(r||{},u,null);return this.insertImpl(b,o,false),b}createComponent(n,r,i,o,u){const g=n&&!function Zs(e){return"function"==typeof e}(n);let b;if(g)b=r;else{const jt=r||{};b=jt.index,i=jt.injector,o=jt.projectableNodes,u=jt.environmentInjector||jt.ngModuleRef}const A=g?n:new nu(jn(n)),Z=i||this.parentInjector;if(!u&&null==A.ngModule){const pn=(g?Z:this.parentInjector).get(Uo,null);pn&&(u=pn)}jn(A.componentType??{});const rt=A.create(Z,o,null,u);return this.insertImpl(rt.hostView,b,false),rt}insert(n,r){return this.insertImpl(n,r,!1)}insertImpl(n,r,i){const o=n._lView;if(function $s(e){return xt(e[hr])}(o)){const A=this.indexOf(n);if(-1!==A)this.detach(A);else{const Z=o[hr],ue=new l0(Z,Z[Nr],Z[hr]);ue.detach(ue.indexOf(n))}}const g=this._adjustIndex(r),b=this._lContainer;return _C(b,o,g,!i),n.attachToViewContainerRef(),lf(fh(b),g,n),n}move(n,r){return this.insert(n,r)}indexOf(n){const r=c0(this._lContainer);return null!==r?r.indexOf(n):-1}remove(n){const r=this._adjustIndex(n,-1),i=Fl(this._lContainer,r);i&&(wc(fh(this._lContainer),r),Fc(i[Kt],i))}detach(n){const r=this._adjustIndex(n,-1),i=Fl(this._lContainer,r);return i&&null!=wc(fh(this._lContainer),r)?new tu(i):null}_adjustIndex(n,r=0){return n??this.length+r}};function c0(e){return e[8]}function fh(e){return e[8]||(e[8]=[])}function u0(e,n){let r;const i=n[e.index];return xt(i)?r=i:(r=Dm(i,n,null,e),n[e.index]=r,_d(n,r)),d0(r,n,e,i),new l0(r,e,n)}let d0=function f0(e,n,r,i){if(e[Pr])return;let o;o=8&r.type?er(i):function AC(e,n){const r=e[Bt],i=r.createComment(""),o=Di(n,e);return wa(r,Uc(r,o),i,function bg(e,n){return e.nextSibling(n)}(r,o),!1),i}(n,r),e[Pr]=o};class ph{constructor(n){this.queryList=n,this.matches=null}clone(){return new ph(this.queryList)}setDirty(){this.queryList.setDirty()}}class hh{constructor(n=[]){this.queries=n}createEmbeddedView(n){const r=n.queries;if(null!==r){const i=null!==n.contentQueries?n.contentQueries[0]:r.length,o=[];for(let u=0;u0)i.push(g[b/2]);else{const Z=u[b+1],ue=n[-A];for(let Ce=ft;Ce{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i}),this.appInits=sn(U0,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const r=[];for(const o of this.appInits){const u=o();if(Vp(u))r.push(u);else if(a_(u)){const g=new Promise((b,A)=>{u.subscribe({complete:b,error:A})});r.push(g)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{i()}).catch(o=>{this.reject(o)}),0===r.length&&i(),this.initialized=!0}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),j0=(()=>{class e{log(r){console.log(r)}warn(r){console.warn(r)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const Vd=new zr("LocaleId",{providedIn:"root",factory:()=>sn(Vd,Et.Optional|Et.SkipSelf)||function rT(){return typeof $localize<"u"&&$localize.locale||dc}()}),iT=new zr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let H0=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new p.X(!1)}add(){this.hasPendingTasks.next(!0);const r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class oT{constructor(n,r){this.ngModuleFactory=n,this.componentFactories=r}}let aT=(()=>{class e{compileModuleSync(r){return new ch(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){const i=this.compileModuleSync(r),u=oa(ci(r).declarations).reduce((g,b)=>{const A=jn(b);return A&&g.push(new nu(A)),g},[]);return new oT(i,u)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const G0=new zr(""),z0=new zr("");let Mh,ST=(()=>{class e{constructor(r,i,o){this._ngZone=r,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Mh||(function AT(e){Mh=e}(o),o.addToWindow(i)),this._watchAngularEvents(),r.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{es.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,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 r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb(this._didWork)}this._didWork=!1});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(r)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,i,o){let u=-1;i&&i>0&&(u=setTimeout(()=>{this._callbacks=this._callbacks.filter(g=>g.timeoutId!==u),r(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:r,timeoutId:u,updateCb:o})}whenStable(r,i,o){if(o&&!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(r,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,i,o){return[]}static#e=this.\u0275fac=function(i){return new(i||e)(Vt(es),Vt(Z0),Vt(z0))};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac})}return e})(),Z0=(()=>{class e{constructor(){this._applications=new Map}registerApplication(r,i){this._applications.set(r,i)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,i=!0){return Mh?.findTestabilityInTree(this,r,i)??null}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),Ia=null;const K0=new zr("AllowMultipleToken"),Sh=new zr("PlatformDestroyListeners"),Ah=new zr("appBootstrapListener");class IT{constructor(n,r){this.name=n,this.token=r}}function Q0(e,n,r=[]){const i=`Platform: ${n}`,o=new zr(i);return(u=[])=>{let g=xh();if(!g||g.injector.get(K0,!1)){const b=[...r,...u,{provide:o,useValue:!0}];e?e(b):function PT(e){if(Ia&&!Ia.get(K0,!1))throw new ce(400,!1);(function Y0(){!function ha(e){Ko=e}(()=>{throw new ce(600,!1)})})(),Ia=e;const n=e.get(q0);(function J0(e){e.get(Ng,null)?.forEach(r=>r())})(e)}(function X0(e=[],n){return bo.create({name:n,providers:[{provide:Jf,useValue:"platform"},{provide:Sh,useValue:new Set([()=>Ia=null])},...e]})}(b,i))}return function NT(e){const n=xh();if(!n)throw new ce(401,!1);return n}()}}function xh(){return Ia?.get(q0)??null}let q0=(()=>{class e{constructor(r){this._injector=r,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(r,i){const o=function LT(e="zone.js",n){return"noop"===e?new wb:"zone.js"===e?new es(n):e}(i?.ngZone,function ey(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{const u=function XD(e,n,r){return new lh(e,n,r)}(r.moduleType,this.injector,function sy(e){return[{provide:es,useFactory:e},{provide:Zc,multi:!0,useFactory:()=>{const n=sn(kT,{optional:!0});return()=>n.initialize()}},{provide:iy,useFactory:FT},{provide:Qg,useFactory:Xg}]}(()=>o)),g=u.injector.get(xa,null);return o.runOutsideAngular(()=>{const b=o.onError.subscribe({next:A=>{g.handleError(A)}});u.onDestroy(()=>{Wd(this._modules,u),b.unsubscribe()})}),function ty(e,n,r){try{const i=r();return Vp(i)?i.catch(o=>{throw n.runOutsideAngular(()=>e.handleError(o)),o}):i}catch(i){throw n.runOutsideAngular(()=>e.handleError(i)),i}}(g,o,()=>{const b=u.injector.get(Ch);return b.runInitializers(),b.donePromise.then(()=>(sv(u.injector.get(Vd,dc)||dc),this._moduleDoBootstrap(u),u))})})}bootstrapModule(r,i=[]){const o=ny({},i);return function xT(e,n,r){const i=new ch(r);return Promise.resolve(i)}(0,0,r).then(u=>this.bootstrapModuleFactory(u,o))}_moduleDoBootstrap(r){const i=r.injector.get(hc);if(r._bootstrapComponents.length>0)r._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!r.instance.ngDoBootstrap)throw new ce(-403,!1);r.instance.ngDoBootstrap(i)}this._modules.push(r)}onDestroy(r){this._destroyListeners.push(r)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ce(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const r=this._injector.get(Sh,null);r&&(r.forEach(i=>i()),r.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(i){return new(i||e)(Vt(bo))};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function ny(e,n){return Array.isArray(n)?n.reduce(ny,e):{...e,...n}}let hc=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=sn(iy),this.zoneIsStable=sn(Qg),this.componentTypes=[],this.components=[],this.isStable=sn(H0).hasPendingTasks.pipe((0,F.w)(r=>r?(0,O.of)(!1):this.zoneIsStable),(0,P.x)(),(0,R.B)()),this._injector=sn(Uo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,i){const o=r instanceof Bg;if(!this._injector.get(Ch).done)throw!o&&vi(r),new ce(405,!1);let g;g=o?r:this._injector.get(Jc).resolveComponentFactory(r),this.componentTypes.push(g.componentType);const b=function OT(e){return e.isBoundToModule}(g)?void 0:this._injector.get(fl),Z=g.create(bo.NULL,[],i||g.selector,b),ue=Z.location.nativeElement,Ce=Z.injector.get(G0,null);return Ce?.registerApplication(ue),Z.onDestroy(()=>{this.detachView(Z.hostView),Wd(this.components,Z),Ce?.unregisterApplication(ue)}),this._loadComponent(Z),Z}tick(){if(this._runningTick)throw new ce(101,!1);try{this._runningTick=!0;for(let r of this._views)r.detectChanges()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1}}attachView(r){const i=r;this._views.push(i),i.attachToAppRef(this)}detachView(r){const i=r;Wd(this._views,i),i.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);const i=this._injector.get(Ah,[]);i.push(...this._bootstrapListeners),i.forEach(o=>o(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Wd(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new ce(406,!1);const r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Wd(e,n){const r=e.indexOf(n);r>-1&&e.splice(r,1)}const iy=new zr("",{providedIn:"root",factory:()=>sn(xa).handleError.bind(void 0)});function FT(){const e=sn(es),n=sn(xa);return r=>e.runOutsideAngular(()=>n.handleError(r))}let kT=(()=>{class e{constructor(){this.zone=sn(es),this.applicationRef=sn(hc)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(i){return new(i||e)};static#t=this.\u0275prov=Je({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function UT(){}let jT=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=HT}return e})();function HT(e){return function VT(e,n,r){if(Gr(e)&&!r){const i=Vi(e.index,n);return new tu(i,i)}return 47&e.type?new tu(n[sr],n):null}(v(),Nt(),16==(16&e))}class cy{constructor(){}supports(n){return Ed(n)}create(n){return new KT(n)}}const ZT=(e,n)=>n;class KT{constructor(n){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=n||ZT}forEachItem(n){let r;for(r=this._itHead;null!==r;r=r._next)n(r)}forEachOperation(n){let r=this._itHead,i=this._removalsHead,o=0,u=null;for(;r||i;){const g=!i||r&&r.currentIndex{g=this._trackByFn(o,b),null!==r&&Object.is(r.trackById,g)?(i&&(r=this._verifyReinsertion(r,b,g,o)),Object.is(r.item,b)||this._addIdentityChange(r,b)):(r=this._mismatch(r,b,g,o),i=!0),r=r._next,o++}),this.length=o;return this._truncate(r),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,r,i,o){let u;return null===n?u=this._itTail:(u=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,r)||this._addIdentityChange(n,r),this._reinsertAfter(n,u,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(n.item,r)||this._addIdentityChange(n,r),this._moveAfter(n,u,o)):n=this._addAfter(new YT(r,i),u,o),n}_verifyReinsertion(n,r,i,o){let u=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==u?n=this._reinsertAfter(u,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const r=n._next;this._addToRemovals(this._unlink(n)),n=r}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(n,r,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,u=n._nextRemoved;return null===o?this._removalsHead=u:o._nextRemoved=u,null===u?this._removalsTail=o:u._prevRemoved=o,this._insertAfter(n,r,i),this._addToMoves(n,i),n}_moveAfter(n,r,i){return this._unlink(n),this._insertAfter(n,r,i),this._addToMoves(n,i),n}_addAfter(n,r,i){return this._insertAfter(n,r,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,r,i){const o=null===r?this._itHead:r._next;return n._next=o,n._prev=r,null===o?this._itTail=n:o._prev=n,null===r?this._itHead=n:r._next=n,null===this._linkedRecords&&(this._linkedRecords=new uy),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const r=n._prev,i=n._next;return null===r?this._itHead=i:r._next=i,null===i?this._itTail=r:i._prev=r,n}_addToMoves(n,r){return n.previousIndex===r||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new uy),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,r){return n.item=r,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class YT{constructor(n,r){this.item=n,this.trackById=r,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 JT{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,r){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===r||r<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const r=n._prevDup,i=n._nextDup;return null===r?this._head=i:r._nextDup=i,null===i?this._tail=r:i._prevDup=r,null===this._head}}class uy{constructor(){this.map=new Map}put(n){const r=n.trackById;let i=this.map.get(r);i||(i=new JT,this.map.set(r,i)),i.add(n)}get(n,r){const o=this.map.get(n);return o?o.get(n,r):null}remove(n){const r=n.trackById;return this.map.get(r).remove(n)&&this.map.delete(r),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function dy(e,n,r){const i=e.previousIndex;if(null===i)return i;let o=0;return r&&i{if(r&&r.key===o)this._maybeAddToChanges(r,i),this._appendAfter=r,r=r._next;else{const u=this._getOrCreateRecordForKey(o,i);r=this._insertBeforeOrAppend(r,u)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let i=r;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,r){if(n){const i=n._prev;return r._next=n,r._prev=i,n._prev=r,i&&(i._next=r),n===this._mapHead&&(this._mapHead=r),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(n,r){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,r);const u=o._prev,g=o._next;return u&&(u._next=g),g&&(g._prev=u),o._next=null,o._prev=null,o}const i=new XT(n);return this._records.set(n,i),i.currentValue=r,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,r){Object.is(r,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=r,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,r){n instanceof Map?n.forEach(r):Object.keys(n).forEach(i=>r(n[i],i))}}class XT{constructor(n){this.key=n,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 py(){return new Nh([new cy])}let Nh=(()=>{class e{static#e=this.\u0275prov=Je({token:e,providedIn:"root",factory:py});constructor(r){this.factories=r}static create(r,i){if(null!=i){const o=i.factories.slice();r=r.concat(o)}return new e(r)}static extend(r){return{provide:e,useFactory:i=>e.create(r,i||py()),deps:[[e,new Ja,new Lo]]}}find(r){const i=this.factories.find(o=>o.supports(r));if(null!=i)return i;throw new ce(901,!1)}}return e})();function hy(){return new Lh([new fy])}let Lh=(()=>{class e{static#e=this.\u0275prov=Je({token:e,providedIn:"root",factory:hy});constructor(r){this.factories=r}static create(r,i){if(i){const o=i.factories.slice();r=r.concat(o)}return new e(r)}static extend(r){return{provide:e,useFactory:i=>e.create(r,i||hy()),deps:[[e,new Ja,new Lo]]}}find(r){const i=this.factories.find(o=>o.supports(r));if(i)return i;throw new ce(901,!1)}}return e})();const tw=Q0(null,"core",[]);let nw=(()=>{class e{constructor(r){}static#e=this.\u0275fac=function(i){return new(i||e)(Vt(hc))};static#t=this.\u0275mod=Wi({type:e});static#n=this.\u0275inj=tt({})}return e})();function pw(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function gw(e,n){const r=jn(e),i=n.elementInjector||ad();return new nu(r).create(i,n.projectableNodes,n.hostElement,n.environmentInjector)}function mw(e){const n=jn(e);if(!n)return null;const r=new nu(n);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}},6223:(Pe,V,a)=>{"use strict";a.d(V,{Cf:()=>k,EJ:()=>Nr,F:()=>K,Fd:()=>di,Fj:()=>S,JJ:()=>Rn,JL:()=>We,JU:()=>F,Kr:()=>Mi,On:()=>Yr,Q7:()=>Ii,QS:()=>Ds,UX:()=>qs,Wl:()=>B,YN:()=>Ze,_:()=>Gi,_Y:()=>ts,kI:()=>ye,oH:()=>vi,p4:()=>Oe,qQ:()=>bs,sg:()=>ns,u:()=>Mn,u5:()=>Co,wV:()=>Ti});var t=a(5879),d=a(6814),w=a(7715),L=a(9315),p=a(7398);let O=(()=>{class Y{constructor(N,ge){this._renderer=N,this._elementRef=ge,this.onChange=Re=>{},this.onTouched=()=>{}}setProperty(N,ge){this._renderer.setProperty(this._elementRef.nativeElement,N,ge)}registerOnTouched(N){this.onTouched=N}registerOnChange(N){this.onChange=N}setDisabledState(N){this.setProperty("disabled",N)}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(t.Qsj),t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:Y})}return Y})(),R=(()=>{class Y extends O{static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,features:[t.qOj]})}return Y})();const F=new t.OlP("NgValueAccessor"),P={provide:F,useExisting:(0,t.Gpc)(()=>B),multi:!0};let B=(()=>{class Y extends R{writeValue(N){this.setProperty("checked",N)}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("change",function(Zn){return Re.onChange(Zn.target.checked)})("blur",function(){return Re.onTouched()})},features:[t._Bn([P]),t.qOj]})}return Y})();const $={provide:F,useExisting:(0,t.Gpc)(()=>S),multi:!0},j=new t.OlP("CompositionEventMode");let S=(()=>{class Y extends O{constructor(N,ge,Re){super(N,ge),this._compositionMode=Re,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function f(){const Y=(0,d.q)()?(0,d.q)().getUserAgent():"";return/android (\d+)/.test(Y.toLowerCase())}())}writeValue(N){this.setProperty("value",N??"")}_handleInput(N){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(N)}_compositionStart(){this._composing=!0}_compositionEnd(N){this._composing=!1,this._compositionMode&&this.onChange(N)}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(j,8))};static#t=this.\u0275dir=t.lG2({type:Y,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(ge,Re){1&ge&&t.NdJ("input",function(Zn){return Re._handleInput(Zn.target.value)})("blur",function(){return Re.onTouched()})("compositionstart",function(){return Re._compositionStart()})("compositionend",function(Zn){return Re._compositionEnd(Zn.target.value)})},features:[t._Bn([$]),t.qOj]})}return Y})();function q(Y){return null==Y||("string"==typeof Y||Array.isArray(Y))&&0===Y.length}function ie(Y){return null!=Y&&"number"==typeof Y.length}const k=new t.OlP("NgValidators"),Te=new t.OlP("NgAsyncValidators"),Me=/^(?=.{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 ye{static min(re){return ce(re)}static max(re){return _e(re)}static required(re){return ve(re)}static requiredTrue(re){return function xe(Y){return!0===Y.value?null:{required:!0}}(re)}static email(re){return function be(Y){return q(Y.value)||Me.test(Y.value)?null:{email:!0}}(re)}static minLength(re){return function ke(Y){return re=>q(re.value)||!ie(re.value)?null:re.value.lengthie(re.value)&&re.value.length>Y?{maxlength:{requiredLength:Y,actualLength:re.value.length}}:null}(re)}static pattern(re){return function it(Y){if(!Y)return St;let re,N;return"string"==typeof Y?(N="","^"!==Y.charAt(0)&&(N+="^"),N+=Y,"$"!==Y.charAt(Y.length-1)&&(N+="$"),re=new RegExp(N)):(N=Y.toString(),re=Y),ge=>{if(q(ge.value))return null;const Re=ge.value;return re.test(Re)?null:{pattern:{requiredPattern:N,actualValue:Re}}}}(re)}static nullValidator(re){return null}static compose(re){return Q(re)}static composeAsync(re){return se(re)}}function ce(Y){return re=>{if(q(re.value)||q(Y))return null;const N=parseFloat(re.value);return!isNaN(N)&&N{if(q(re.value)||q(Y))return null;const N=parseFloat(re.value);return!isNaN(N)&&N>Y?{max:{max:Y,actual:re.value}}:null}}function ve(Y){return q(Y.value)?{required:!0}:null}function St(Y){return null}function qe(Y){return null!=Y}function _t(Y){return(0,t.QGY)(Y)?(0,w.D)(Y):Y}function $e(Y){let re={};return Y.forEach(N=>{re=null!=N?{...re,...N}:re}),0===Object.keys(re).length?null:re}function Ee(Y,re){return re.map(N=>N(Y))}function J(Y){return Y.map(re=>function ze(Y){return!Y.validate}(re)?re:N=>re.validate(N))}function Q(Y){if(!Y)return null;const re=Y.filter(qe);return 0==re.length?null:function(N){return $e(Ee(N,re))}}function oe(Y){return null!=Y?Q(J(Y)):null}function se(Y){if(!Y)return null;const re=Y.filter(qe);return 0==re.length?null:function(N){const ge=Ee(N,re).map(_t);return(0,L.D)(ge).pipe((0,p.U)($e))}}function ae(Y){return null!=Y?se(J(Y)):null}function fe(Y,re){return null===Y?[re]:Array.isArray(Y)?[...Y,re]:[Y,re]}function De(Y){return Y._rawValidators}function je(Y){return Y._rawAsyncValidators}function Xe(Y){return Y?Array.isArray(Y)?Y:[Y]:[]}function nt(Y,re){return Array.isArray(Y)?Y.includes(re):Y===re}function wt(Y,re){const N=Xe(re);return Xe(Y).forEach(Re=>{nt(N,Re)||N.push(Re)}),N}function It(Y,re){return Xe(re).filter(N=>!nt(Y,N))}class Je{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(re){this._rawValidators=re||[],this._composedValidatorFn=oe(this._rawValidators)}_setAsyncValidators(re){this._rawAsyncValidators=re||[],this._composedAsyncValidatorFn=ae(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(re){this._onDestroyCallbacks.push(re)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(re=>re()),this._onDestroyCallbacks=[]}reset(re=void 0){this.control&&this.control.reset(re)}hasError(re,N){return!!this.control&&this.control.hasError(re,N)}getError(re,N){return this.control?this.control.getError(re,N):null}}class Tt extends Je{get formDirective(){return null}get path(){return null}}class tt extends Je{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Pt{constructor(re){this._cd=re}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Rn=(()=>{class Y extends Pt{constructor(N){super(N)}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(tt,2))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(ge,Re){2&ge&&t.ekj("ng-untouched",Re.isUntouched)("ng-touched",Re.isTouched)("ng-pristine",Re.isPristine)("ng-dirty",Re.isDirty)("ng-valid",Re.isValid)("ng-invalid",Re.isInvalid)("ng-pending",Re.isPending)},features:[t.qOj]})}return Y})(),We=(()=>{class Y extends Pt{constructor(N){super(N)}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(Tt,10))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(ge,Re){2&ge&&t.ekj("ng-untouched",Re.isUntouched)("ng-touched",Re.isTouched)("ng-pristine",Re.isPristine)("ng-dirty",Re.isDirty)("ng-valid",Re.isValid)("ng-invalid",Re.isInvalid)("ng-pending",Re.isPending)("ng-submitted",Re.isSubmitted)},features:[t.qOj]})}return Y})();const Qt="VALID",Dn="INVALID",Sn="PENDING",On="DISABLED";function nr(Y){return(Ir(Y)?Y.validators:Y)||null}function wr(Y,re){return(Ir(re)?re.asyncValidators:Y)||null}function Ir(Y){return null!=Y&&!Array.isArray(Y)&&"object"==typeof Y}function Br(Y,re,N){const ge=Y.controls;if(!(re?Object.keys(ge):ge).length)throw new t.vHH(1e3,"");if(!ge[N])throw new t.vHH(1001,"")}function oi(Y,re,N){Y._forEachChild((ge,Re)=>{if(void 0===N[Re])throw new t.vHH(1002,"")})}class zn{constructor(re,N){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(re),this._assignAsyncValidators(N)}get validator(){return this._composedValidatorFn}set validator(re){this._rawValidators=this._composedValidatorFn=re}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(re){this._rawAsyncValidators=this._composedAsyncValidatorFn=re}get parent(){return this._parent}get valid(){return this.status===Qt}get invalid(){return this.status===Dn}get pending(){return this.status==Sn}get disabled(){return this.status===On}get enabled(){return this.status!==On}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(re){this._assignValidators(re)}setAsyncValidators(re){this._assignAsyncValidators(re)}addValidators(re){this.setValidators(wt(re,this._rawValidators))}addAsyncValidators(re){this.setAsyncValidators(wt(re,this._rawAsyncValidators))}removeValidators(re){this.setValidators(It(re,this._rawValidators))}removeAsyncValidators(re){this.setAsyncValidators(It(re,this._rawAsyncValidators))}hasValidator(re){return nt(this._rawValidators,re)}hasAsyncValidator(re){return nt(this._rawAsyncValidators,re)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(re={}){this.touched=!0,this._parent&&!re.onlySelf&&this._parent.markAsTouched(re)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(re=>re.markAllAsTouched())}markAsUntouched(re={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(N=>{N.markAsUntouched({onlySelf:!0})}),this._parent&&!re.onlySelf&&this._parent._updateTouched(re)}markAsDirty(re={}){this.pristine=!1,this._parent&&!re.onlySelf&&this._parent.markAsDirty(re)}markAsPristine(re={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(N=>{N.markAsPristine({onlySelf:!0})}),this._parent&&!re.onlySelf&&this._parent._updatePristine(re)}markAsPending(re={}){this.status=Sn,!1!==re.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!re.onlySelf&&this._parent.markAsPending(re)}disable(re={}){const N=this._parentMarkedDirty(re.onlySelf);this.status=On,this.errors=null,this._forEachChild(ge=>{ge.disable({...re,onlySelf:!0})}),this._updateValue(),!1!==re.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...re,skipPristineCheck:N}),this._onDisabledChange.forEach(ge=>ge(!0))}enable(re={}){const N=this._parentMarkedDirty(re.onlySelf);this.status=Qt,this._forEachChild(ge=>{ge.enable({...re,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:re.emitEvent}),this._updateAncestors({...re,skipPristineCheck:N}),this._onDisabledChange.forEach(ge=>ge(!1))}_updateAncestors(re){this._parent&&!re.onlySelf&&(this._parent.updateValueAndValidity(re),re.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(re){this._parent=re}getRawValue(){return this.value}updateValueAndValidity(re={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Qt||this.status===Sn)&&this._runAsyncValidator(re.emitEvent)),!1!==re.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!re.onlySelf&&this._parent.updateValueAndValidity(re)}_updateTreeValidity(re={emitEvent:!0}){this._forEachChild(N=>N._updateTreeValidity(re)),this.updateValueAndValidity({onlySelf:!0,emitEvent:re.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?On:Qt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(re){if(this.asyncValidator){this.status=Sn,this._hasOwnPendingAsyncValidator=!0;const N=_t(this.asyncValidator(this));this._asyncValidationSubscription=N.subscribe(ge=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(ge,{emitEvent:re})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(re,N={}){this.errors=re,this._updateControlsErrors(!1!==N.emitEvent)}get(re){let N=re;return null==N||(Array.isArray(N)||(N=N.split(".")),0===N.length)?null:N.reduce((ge,Re)=>ge&&ge._find(Re),this)}getError(re,N){const ge=N?this.get(N):this;return ge&&ge.errors?ge.errors[re]:null}hasError(re,N){return!!this.getError(re,N)}get root(){let re=this;for(;re._parent;)re=re._parent;return re}_updateControlsErrors(re){this.status=this._calculateStatus(),re&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(re)}_initObservables(){this.valueChanges=new t.vpe,this.statusChanges=new t.vpe}_calculateStatus(){return this._allControlsDisabled()?On:this.errors?Dn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Sn)?Sn:this._anyControlsHaveStatus(Dn)?Dn:Qt}_anyControlsHaveStatus(re){return this._anyControls(N=>N.status===re)}_anyControlsDirty(){return this._anyControls(re=>re.dirty)}_anyControlsTouched(){return this._anyControls(re=>re.touched)}_updatePristine(re={}){this.pristine=!this._anyControlsDirty(),this._parent&&!re.onlySelf&&this._parent._updatePristine(re)}_updateTouched(re={}){this.touched=this._anyControlsTouched(),this._parent&&!re.onlySelf&&this._parent._updateTouched(re)}_registerOnCollectionChange(re){this._onCollectionChange=re}_setUpdateStrategy(re){Ir(re)&&null!=re.updateOn&&(this._updateOn=re.updateOn)}_parentMarkedDirty(re){return!re&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(re){return null}_assignValidators(re){this._rawValidators=Array.isArray(re)?re.slice():re,this._composedValidatorFn=function Dr(Y){return Array.isArray(Y)?oe(Y):Y||null}(this._rawValidators)}_assignAsyncValidators(re){this._rawAsyncValidators=Array.isArray(re)?re.slice():re,this._composedAsyncValidatorFn=function Or(Y){return Array.isArray(Y)?ae(Y):Y||null}(this._rawAsyncValidators)}}class dt extends zn{constructor(re,N,ge){super(nr(N),wr(ge,N)),this.controls=re,this._initObservables(),this._setUpdateStrategy(N),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(re,N){return this.controls[re]?this.controls[re]:(this.controls[re]=N,N.setParent(this),N._registerOnCollectionChange(this._onCollectionChange),N)}addControl(re,N,ge={}){this.registerControl(re,N),this.updateValueAndValidity({emitEvent:ge.emitEvent}),this._onCollectionChange()}removeControl(re,N={}){this.controls[re]&&this.controls[re]._registerOnCollectionChange(()=>{}),delete this.controls[re],this.updateValueAndValidity({emitEvent:N.emitEvent}),this._onCollectionChange()}setControl(re,N,ge={}){this.controls[re]&&this.controls[re]._registerOnCollectionChange(()=>{}),delete this.controls[re],N&&this.registerControl(re,N),this.updateValueAndValidity({emitEvent:ge.emitEvent}),this._onCollectionChange()}contains(re){return this.controls.hasOwnProperty(re)&&this.controls[re].enabled}setValue(re,N={}){oi(this,0,re),Object.keys(re).forEach(ge=>{Br(this,!0,ge),this.controls[ge].setValue(re[ge],{onlySelf:!0,emitEvent:N.emitEvent})}),this.updateValueAndValidity(N)}patchValue(re,N={}){null!=re&&(Object.keys(re).forEach(ge=>{const Re=this.controls[ge];Re&&Re.patchValue(re[ge],{onlySelf:!0,emitEvent:N.emitEvent})}),this.updateValueAndValidity(N))}reset(re={},N={}){this._forEachChild((ge,Re)=>{ge.reset(re?re[Re]:null,{onlySelf:!0,emitEvent:N.emitEvent})}),this._updatePristine(N),this._updateTouched(N),this.updateValueAndValidity(N)}getRawValue(){return this._reduceChildren({},(re,N,ge)=>(re[ge]=N.getRawValue(),re))}_syncPendingControls(){let re=this._reduceChildren(!1,(N,ge)=>!!ge._syncPendingControls()||N);return re&&this.updateValueAndValidity({onlySelf:!0}),re}_forEachChild(re){Object.keys(this.controls).forEach(N=>{const ge=this.controls[N];ge&&re(ge,N)})}_setUpControls(){this._forEachChild(re=>{re.setParent(this),re._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(re){for(const[N,ge]of Object.entries(this.controls))if(this.contains(N)&&re(ge))return!0;return!1}_reduceValue(){return this._reduceChildren({},(N,ge,Re)=>((ge.enabled||this.disabled)&&(N[Re]=ge.value),N))}_reduceChildren(re,N){let ge=re;return this._forEachChild((Re,vn)=>{ge=N(ge,Re,vn)}),ge}_allControlsDisabled(){for(const re of Object.keys(this.controls))if(this.controls[re].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(re){return this.controls.hasOwnProperty(re)?this.controls[re]:null}}class He extends dt{}const Wt=new t.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>Vt}),Vt="always";function Un(Y,re){return[...re.path,Y]}function sn(Y,re,N=Vt){Qe(Y,re),re.valueAccessor.writeValue(Y.value),(Y.disabled||"always"===N)&&re.valueAccessor.setDisabledState?.(Y.disabled),function Ue(Y,re){re.valueAccessor.registerOnChange(N=>{Y._pendingValue=N,Y._pendingChange=!0,Y._pendingDirty=!0,"change"===Y.updateOn&&Rt(Y,re)})}(Y,re),function kt(Y,re){const N=(ge,Re)=>{re.valueAccessor.writeValue(ge),Re&&re.viewToModelUpdate(ge)};Y.registerOnChange(N),re._registerOnDestroy(()=>{Y._unregisterOnChange(N)})}(Y,re),function bt(Y,re){re.valueAccessor.registerOnTouched(()=>{Y._pendingTouched=!0,"blur"===Y.updateOn&&Y._pendingChange&&Rt(Y,re),"submit"!==Y.updateOn&&Y.markAsTouched()})}(Y,re),function $n(Y,re){if(re.valueAccessor.setDisabledState){const N=ge=>{re.valueAccessor.setDisabledState(ge)};Y.registerOnDisabledChange(N),re._registerOnDestroy(()=>{Y._unregisterOnDisabledChange(N)})}}(Y,re)}function rr(Y,re,N=!0){const ge=()=>{};re.valueAccessor&&(re.valueAccessor.registerOnChange(ge),re.valueAccessor.registerOnTouched(ge)),Le(Y,re),Y&&(re._invokeOnDestroyCallbacks(),Y._registerOnCollectionChange(()=>{}))}function an(Y,re){Y.forEach(N=>{N.registerOnValidatorChange&&N.registerOnValidatorChange(re)})}function Qe(Y,re){const N=De(Y);null!==re.validator?Y.setValidators(fe(N,re.validator)):"function"==typeof N&&Y.setValidators([N]);const ge=je(Y);null!==re.asyncValidator?Y.setAsyncValidators(fe(ge,re.asyncValidator)):"function"==typeof ge&&Y.setAsyncValidators([ge]);const Re=()=>Y.updateValueAndValidity();an(re._rawValidators,Re),an(re._rawAsyncValidators,Re)}function Le(Y,re){let N=!1;if(null!==Y){if(null!==re.validator){const Re=De(Y);if(Array.isArray(Re)&&Re.length>0){const vn=Re.filter(Zn=>Zn!==re.validator);vn.length!==Re.length&&(N=!0,Y.setValidators(vn))}}if(null!==re.asyncValidator){const Re=je(Y);if(Array.isArray(Re)&&Re.length>0){const vn=Re.filter(Zn=>Zn!==re.asyncValidator);vn.length!==Re.length&&(N=!0,Y.setAsyncValidators(vn))}}}const ge=()=>{};return an(re._rawValidators,ge),an(re._rawAsyncValidators,ge),N}function Rt(Y,re){Y._pendingDirty&&Y.markAsDirty(),Y.setValue(Y._pendingValue,{emitModelToViewChange:!1}),re.viewToModelUpdate(Y._pendingValue),Y._pendingChange=!1}function Ft(Y,re){Qe(Y,re)}function Hr(Y,re){if(!Y.hasOwnProperty("model"))return!1;const N=Y.model;return!!N.isFirstChange()||!Object.is(re,N.currentValue)}function Xn(Y,re){Y._syncPendingControls(),re.forEach(N=>{const ge=N.control;"submit"===ge.updateOn&&ge._pendingChange&&(N.viewToModelUpdate(ge._pendingValue),ge._pendingChange=!1)})}function qn(Y,re){if(!re)return null;let N,ge,Re;return Array.isArray(re),re.forEach(vn=>{vn.constructor===S?N=vn:function Zr(Y){return Object.getPrototypeOf(Y.constructor)===R}(vn)?ge=vn:Re=vn}),Re||ge||N||null}const pe={provide:Tt,useExisting:(0,t.Gpc)(()=>K)},z=(()=>Promise.resolve())();let K=(()=>{class Y extends Tt{constructor(N,ge,Re){super(),this.callSetDisabledState=Re,this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.vpe,this.form=new dt({},oe(N),ae(ge))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(N){z.then(()=>{const ge=this._findContainer(N.path);N.control=ge.registerControl(N.name,N.control),sn(N.control,N,this.callSetDisabledState),N.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(N)})}getControl(N){return this.form.get(N.path)}removeControl(N){z.then(()=>{const ge=this._findContainer(N.path);ge&&ge.removeControl(N.name),this._directives.delete(N)})}addFormGroup(N){z.then(()=>{const ge=this._findContainer(N.path),Re=new dt({});Ft(Re,N),ge.registerControl(N.name,Re),Re.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(N){z.then(()=>{const ge=this._findContainer(N.path);ge&&ge.removeControl(N.name)})}getFormGroup(N){return this.form.get(N.path)}updateModel(N,ge){z.then(()=>{this.form.get(N.path).setValue(ge)})}setValue(N){this.control.setValue(N)}onSubmit(N){return this.submitted=!0,Xn(this.form,this._directives),this.ngSubmit.emit(N),"dialog"===N?.target?.method}onReset(){this.resetForm()}resetForm(N=void 0){this.form.reset(N),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(N){return N.pop(),N.length?this.form.get(N):this.form}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(k,10),t.Y36(Te,10),t.Y36(Wt,8))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("submit",function(Zn){return Re.onSubmit(Zn)})("reset",function(){return Re.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([pe]),t.qOj]})}return Y})();function D(Y,re){const N=Y.indexOf(re);N>-1&&Y.splice(N,1)}function X(Y){return"object"==typeof Y&&null!==Y&&2===Object.keys(Y).length&&"value"in Y&&"disabled"in Y}const de=class extends zn{constructor(re=null,N,ge){super(nr(N),wr(ge,N)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(re),this._setUpdateStrategy(N),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ir(N)&&(N.nonNullable||N.initialValueIsDefault)&&(this.defaultValue=X(re)?re.value:re)}setValue(re,N={}){this.value=this._pendingValue=re,this._onChange.length&&!1!==N.emitModelToViewChange&&this._onChange.forEach(ge=>ge(this.value,!1!==N.emitViewToModelChange)),this.updateValueAndValidity(N)}patchValue(re,N={}){this.setValue(re,N)}reset(re=this.defaultValue,N={}){this._applyFormState(re),this.markAsPristine(N),this.markAsUntouched(N),this.setValue(this.value,N),this._pendingChange=!1}_updateValue(){}_anyControls(re){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(re){this._onChange.push(re)}_unregisterOnChange(re){D(this._onChange,re)}registerOnDisabledChange(re){this._onDisabledChange.push(re)}_unregisterOnDisabledChange(re){D(this._onDisabledChange,re)}_forEachChild(re){}_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(re){X(re)?(this.value=this._pendingValue=re.value,re.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=re}},Oe=de,_r={provide:tt,useExisting:(0,t.Gpc)(()=>Yr)},Kr=(()=>Promise.resolve())();let Yr=(()=>{class Y extends tt{constructor(N,ge,Re,vn,Zn,Ri){super(),this._changeDetectorRef=Zn,this.callSetDisabledState=Ri,this.control=new de,this._registered=!1,this.name="",this.update=new t.vpe,this._parent=N,this._setValidators(ge),this._setAsyncValidators(Re),this.valueAccessor=qn(0,vn)}ngOnChanges(N){if(this._checkForErrors(),!this._registered||"name"in N){if(this._registered&&(this._checkName(),this.formDirective)){const ge=N.name.previousValue;this.formDirective.removeControl({name:ge,path:this._getPath(ge)})}this._setUpControl()}"isDisabled"in N&&this._updateDisabled(N),Hr(N,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(N){this.viewModel=N,this.update.emit(N)}_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(){sn(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(N){Kr.then(()=>{this.control.setValue(N,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(N){const ge=N.isDisabled.currentValue,Re=0!==ge&&(0,t.VuI)(ge);Kr.then(()=>{Re&&!this.control.disabled?this.control.disable():!Re&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(N){return this._parent?Un(N,this._parent):[N]}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(Tt,9),t.Y36(k,10),t.Y36(Te,10),t.Y36(F,10),t.Y36(t.sBO,8),t.Y36(Wt,8))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t._Bn([_r]),t.qOj,t.TTD]})}return Y})(),ts=(()=>{class Y{static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return Y})();const _i={provide:F,useExisting:(0,t.Gpc)(()=>Ti),multi:!0};let Ti=(()=>{class Y extends R{writeValue(N){this.setProperty("value",N??"")}registerOnChange(N){this.onChange=ge=>{N(""==ge?null:parseFloat(ge))}}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("input",function(Zn){return Re.onChange(Zn.target.value)})("blur",function(){return Re.onTouched()})},features:[t._Bn([_i]),t.qOj]})}return Y})();const ms={provide:F,useExisting:(0,t.Gpc)(()=>Gi),multi:!0};let Is=(()=>{class Y{static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275mod=t.oAB({type:Y});static#n=this.\u0275inj=t.cJS({})}return Y})(),ki=(()=>{class Y{constructor(){this._accessors=[]}add(N,ge){this._accessors.push([N,ge])}remove(N){for(let ge=this._accessors.length-1;ge>=0;--ge)if(this._accessors[ge][1]===N)return void this._accessors.splice(ge,1)}select(N){this._accessors.forEach(ge=>{this._isSameGroup(ge,N)&&ge[1]!==N&&ge[1].fireUncheck(N.value)})}_isSameGroup(N,ge){return!!N[0].control&&N[0]._parent===ge._control._parent&&N[1].name===ge.name}static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275prov=t.Yz7({token:Y,factory:Y.\u0275fac,providedIn:Is})}return Y})(),Gi=(()=>{class Y extends R{constructor(N,ge,Re,vn){super(N,ge),this._registry=Re,this._injector=vn,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,t.f3M)(Wt,{optional:!0})??Vt}ngOnInit(){this._control=this._injector.get(tt),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(N){this._state=N===this.value,this.setProperty("checked",this._state)}registerOnChange(N){this._fn=N,this.onChange=()=>{N(this.value),this._registry.select(this)}}setDisabledState(N){(this.setDisabledStateFired||N||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",N),this.setDisabledStateFired=!0}fireUncheck(N){this.writeValue(N)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(ki),t.Y36(t.zs3))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("change",function(){return Re.onChange()})("blur",function(){return Re.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[t._Bn([ms]),t.qOj]})}return Y})();const vr=new t.OlP("NgModelWithFormControlWarning"),Mr={provide:tt,useExisting:(0,t.Gpc)(()=>vi)};let vi=(()=>{class Y extends tt{set isDisabled(N){}static#e=this._ngModelWarningSentOnce=!1;constructor(N,ge,Re,vn,Zn){super(),this._ngModelWarningConfig=vn,this.callSetDisabledState=Zn,this.update=new t.vpe,this._ngModelWarningSent=!1,this._setValidators(N),this._setAsyncValidators(ge),this.valueAccessor=qn(0,Re)}ngOnChanges(N){if(this._isControlChanged(N)){const ge=N.form.previousValue;ge&&rr(ge,this,!1),sn(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Hr(N,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&rr(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(N){this.viewModel=N,this.update.emit(N)}_isControlChanged(N){return N.hasOwnProperty("form")}static#t=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(k,10),t.Y36(Te,10),t.Y36(F,10),t.Y36(vr,8),t.Y36(Wt,8))};static#n=this.\u0275dir=t.lG2({type:Y,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t._Bn([Mr]),t.qOj,t.TTD]})}return Y})();const ci={provide:Tt,useExisting:(0,t.Gpc)(()=>ns)};let ns=(()=>{class Y extends Tt{constructor(N,ge,Re){super(),this.callSetDisabledState=Re,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.vpe,this._setValidators(N),this._setAsyncValidators(ge)}ngOnChanges(N){this._checkFormPresent(),N.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Le(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(N){const ge=this.form.get(N.path);return sn(ge,N,this.callSetDisabledState),ge.updateValueAndValidity({emitEvent:!1}),this.directives.push(N),ge}getControl(N){return this.form.get(N.path)}removeControl(N){rr(N.control||null,N,!1),function Ur(Y,re){const N=Y.indexOf(re);N>-1&&Y.splice(N,1)}(this.directives,N)}addFormGroup(N){this._setUpFormContainer(N)}removeFormGroup(N){this._cleanUpFormContainer(N)}getFormGroup(N){return this.form.get(N.path)}addFormArray(N){this._setUpFormContainer(N)}removeFormArray(N){this._cleanUpFormContainer(N)}getFormArray(N){return this.form.get(N.path)}updateModel(N,ge){this.form.get(N.path).setValue(ge)}onSubmit(N){return this.submitted=!0,Xn(this.form,this.directives),this.ngSubmit.emit(N),"dialog"===N?.target?.method}onReset(){this.resetForm()}resetForm(N=void 0){this.form.reset(N),this.submitted=!1}_updateDomValue(){this.directives.forEach(N=>{const ge=N.control,Re=this.form.get(N.path);ge!==Re&&(rr(ge||null,N),(Y=>Y instanceof de)(Re)&&(sn(Re,N,this.callSetDisabledState),N.control=Re))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(N){const ge=this.form.get(N.path);Ft(ge,N),ge.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(N){if(this.form){const ge=this.form.get(N.path);ge&&function on(Y,re){return Le(Y,re)}(ge,N)&&ge.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Qe(this.form,this),this._oldForm&&Le(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(k,10),t.Y36(Te,10),t.Y36(Wt,8))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["","formGroup",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("submit",function(Zn){return Re.onSubmit(Zn)})("reset",function(){return Re.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([ci]),t.qOj,t.TTD]})}return Y})();const Kt={provide:tt,useExisting:(0,t.Gpc)(()=>Mn)};let Mn=(()=>{class Y extends tt{set isDisabled(N){}static#e=this._ngModelWarningSentOnce=!1;constructor(N,ge,Re,vn,Zn){super(),this._ngModelWarningConfig=Zn,this._added=!1,this.name=null,this.update=new t.vpe,this._ngModelWarningSent=!1,this._parent=N,this._setValidators(ge),this._setAsyncValidators(Re),this.valueAccessor=qn(0,vn)}ngOnChanges(N){this._added||this._setUpControl(),Hr(N,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(N){this.viewModel=N,this.update.emit(N)}get path(){return Un(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#t=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(Tt,13),t.Y36(k,10),t.Y36(Te,10),t.Y36(F,10),t.Y36(vr,8))};static#n=this.\u0275dir=t.lG2({type:Y,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t._Bn([Kt]),t.qOj,t.TTD]})}return Y})();const hr={provide:F,useExisting:(0,t.Gpc)(()=>Nr),multi:!0};function $r(Y,re){return null==Y?`${re}`:(re&&"object"==typeof re&&(re="Object"),`${Y}: ${re}`.slice(0,50))}let Nr=(()=>{class Y extends R{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(N){this._compareWith=N}writeValue(N){this.value=N;const Re=$r(this._getOptionId(N),N);this.setProperty("value",Re)}registerOnChange(N){this.onChange=ge=>{this.value=this._getOptionValue(ge),N(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(N){for(const ge of this._optionMap.keys())if(this._compareWith(this._optionMap.get(ge),N))return ge;return null}_getOptionValue(N){const ge=function bi(Y){return Y.split(":")[0]}(N);return this._optionMap.has(ge)?this._optionMap.get(ge):N}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(ge,Re){1&ge&&t.NdJ("change",function(Zn){return Re.onChange(Zn.target.value)})("blur",function(){return Re.onTouched()})},inputs:{compareWith:"compareWith"},features:[t._Bn([hr]),t.qOj]})}return Y})(),Ze=(()=>{class Y{constructor(N,ge,Re){this._element=N,this._renderer=ge,this._select=Re,this._select&&(this.id=this._select._registerOption())}set ngValue(N){null!=this._select&&(this._select._optionMap.set(this.id,N),this._setElementValue($r(this.id,N)),this._select.writeValue(this._select.value))}set value(N){this._setElementValue(N),this._select&&this._select.writeValue(this._select.value)}_setElementValue(N){this._renderer.setProperty(this._element.nativeElement,"value",N)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(Nr,9))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return Y})();const Ve={provide:F,useExisting:(0,t.Gpc)(()=>gr),multi:!0};function ct(Y,re){return null==Y?`${re}`:("string"==typeof re&&(re=`'${re}'`),re&&"object"==typeof re&&(re="Object"),`${Y}: ${re}`.slice(0,50))}let gr=(()=>{class Y extends R{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(N){this._compareWith=N}writeValue(N){let ge;if(this.value=N,Array.isArray(N)){const Re=N.map(vn=>this._getOptionId(vn));ge=(vn,Zn)=>{vn._setSelected(Re.indexOf(Zn.toString())>-1)}}else ge=(Re,vn)=>{Re._setSelected(!1)};this._optionMap.forEach(ge)}registerOnChange(N){this.onChange=ge=>{const Re=[],vn=ge.selectedOptions;if(void 0!==vn){const Zn=vn;for(let Ri=0;Ri{class Y{constructor(N,ge,Re){this._element=N,this._renderer=ge,this._select=Re,this._select&&(this.id=this._select._registerOption(this))}set ngValue(N){null!=this._select&&(this._value=N,this._setElementValue(ct(this.id,N)),this._select.writeValue(this._select.value))}set value(N){this._select?(this._value=N,this._setElementValue(ct(this.id,N)),this._select.writeValue(this._select.value)):this._setElementValue(N)}_setElementValue(N){this._renderer.setProperty(this._element.nativeElement,"value",N)}_setSelected(N){this._renderer.setProperty(this._element.nativeElement,"selected",N)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(ge){return new(ge||Y)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(gr,9))};static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return Y})();function sr(Y){return"number"==typeof Y?Y:parseFloat(Y)}let Wr=(()=>{class Y{constructor(){this._validator=St}ngOnChanges(N){if(this.inputName in N){const ge=this.normalizeInput(N[this.inputName].currentValue);this._enabled=this.enabled(ge),this._validator=this._enabled?this.createValidator(ge):St,this._onChange&&this._onChange()}}validate(N){return this._validator(N)}registerOnValidatorChange(N){this._onChange=N}enabled(N){return null!=N}static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275dir=t.lG2({type:Y,features:[t.TTD]})}return Y})();const Si={provide:k,useExisting:(0,t.Gpc)(()=>di),multi:!0};let di=(()=>{class Y extends Wr{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=N=>sr(N),this.createValidator=N=>_e(N)}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(ge,Re){2&ge&&t.uIk("max",Re._enabled?Re.max:null)},inputs:{max:"max"},features:[t._Bn([Si]),t.qOj]})}return Y})();const rs={provide:k,useExisting:(0,t.Gpc)(()=>bs),multi:!0};let bs=(()=>{class Y extends Wr{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=N=>sr(N),this.createValidator=N=>ce(N)}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(ge,Re){2&ge&&t.uIk("min",Re._enabled?Re.min:null)},inputs:{min:"min"},features:[t._Bn([rs]),t.qOj]})}return Y})();const zi={provide:k,useExisting:(0,t.Gpc)(()=>Ii),multi:!0};let Ii=(()=>{class Y extends Wr{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=t.VuI,this.createValidator=N=>ve}enabled(N){return N}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275dir=t.lG2({type:Y,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(ge,Re){2&ge&&t.uIk("required",Re._enabled?"":null)},inputs:{required:"required"},features:[t._Bn([zi]),t.qOj]})}return Y})(),xt=(()=>{class Y{static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275mod=t.oAB({type:Y});static#n=this.\u0275inj=t.cJS({imports:[Is]})}return Y})();class hn extends zn{constructor(re,N,ge){super(nr(N),wr(ge,N)),this.controls=re,this._initObservables(),this._setUpdateStrategy(N),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(re){return this.controls[this._adjustIndex(re)]}push(re,N={}){this.controls.push(re),this._registerControl(re),this.updateValueAndValidity({emitEvent:N.emitEvent}),this._onCollectionChange()}insert(re,N,ge={}){this.controls.splice(re,0,N),this._registerControl(N),this.updateValueAndValidity({emitEvent:ge.emitEvent})}removeAt(re,N={}){let ge=this._adjustIndex(re);ge<0&&(ge=0),this.controls[ge]&&this.controls[ge]._registerOnCollectionChange(()=>{}),this.controls.splice(ge,1),this.updateValueAndValidity({emitEvent:N.emitEvent})}setControl(re,N,ge={}){let Re=this._adjustIndex(re);Re<0&&(Re=0),this.controls[Re]&&this.controls[Re]._registerOnCollectionChange(()=>{}),this.controls.splice(Re,1),N&&(this.controls.splice(Re,0,N),this._registerControl(N)),this.updateValueAndValidity({emitEvent:ge.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(re,N={}){oi(this,0,re),re.forEach((ge,Re)=>{Br(this,!1,Re),this.at(Re).setValue(ge,{onlySelf:!0,emitEvent:N.emitEvent})}),this.updateValueAndValidity(N)}patchValue(re,N={}){null!=re&&(re.forEach((ge,Re)=>{this.at(Re)&&this.at(Re).patchValue(ge,{onlySelf:!0,emitEvent:N.emitEvent})}),this.updateValueAndValidity(N))}reset(re=[],N={}){this._forEachChild((ge,Re)=>{ge.reset(re[Re],{onlySelf:!0,emitEvent:N.emitEvent})}),this._updatePristine(N),this._updateTouched(N),this.updateValueAndValidity(N)}getRawValue(){return this.controls.map(re=>re.getRawValue())}clear(re={}){this.controls.length<1||(this._forEachChild(N=>N._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:re.emitEvent}))}_adjustIndex(re){return re<0?re+this.length:re}_syncPendingControls(){let re=this.controls.reduce((N,ge)=>!!ge._syncPendingControls()||N,!1);return re&&this.updateValueAndValidity({onlySelf:!0}),re}_forEachChild(re){this.controls.forEach((N,ge)=>{re(N,ge)})}_updateValue(){this.value=this.controls.filter(re=>re.enabled||this.disabled).map(re=>re.value)}_anyControls(re){return this.controls.some(N=>N.enabled&&re(N))}_setUpControls(){this._forEachChild(re=>this._registerControl(re))}_allControlsDisabled(){for(const re of this.controls)if(re.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(re){re.setParent(this),re._registerOnCollectionChange(this._onCollectionChange)}_find(re){return this.at(re)??null}}function fi(Y){return!!Y&&(void 0!==Y.asyncValidators||void 0!==Y.validators||void 0!==Y.updateOn)}let Hs=(()=>{class Y{constructor(){this.useNonNullable=!1}get nonNullable(){const N=new Y;return N.useNonNullable=!0,N}group(N,ge=null){const Re=this._reduceControls(N);let vn={};return fi(ge)?vn=ge:null!==ge&&(vn.validators=ge.validator,vn.asyncValidators=ge.asyncValidator),new dt(Re,vn)}record(N,ge=null){const Re=this._reduceControls(N);return new He(Re,ge)}control(N,ge,Re){let vn={};return this.useNonNullable?(fi(ge)?vn=ge:(vn.validators=ge,vn.asyncValidators=Re),new de(N,{...vn,nonNullable:!0})):new de(N,ge,Re)}array(N,ge,Re){const vn=N.map(Zn=>this._createControl(Zn));return new hn(vn,ge,Re)}_reduceControls(N){const ge={};return Object.keys(N).forEach(Re=>{ge[Re]=this._createControl(N[Re])}),ge}_createControl(N){return N instanceof de||N instanceof zn?N:Array.isArray(N)?this.control(N[0],N.length>1?N[1]:null,N.length>2?N[2]:null):this.control(N)}static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275prov=t.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"})}return Y})(),Ds=(()=>{class Y extends Hs{group(N,ge=null){return super.group(N,ge)}control(N,ge,Re){return super.control(N,ge,Re)}array(N,ge,Re){return super.array(N,ge,Re)}static#e=this.\u0275fac=function(){let N;return function(Re){return(N||(N=t.n5z(Y)))(Re||Y)}}();static#t=this.\u0275prov=t.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"})}return Y})(),Co=(()=>{class Y{static withConfig(N){return{ngModule:Y,providers:[{provide:Wt,useValue:N.callSetDisabledState??Vt}]}}static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275mod=t.oAB({type:Y});static#n=this.\u0275inj=t.cJS({imports:[xt]})}return Y})(),qs=(()=>{class Y{static withConfig(N){return{ngModule:Y,providers:[{provide:vr,useValue:N.warnOnNgModelWithFormControl??"always"},{provide:Wt,useValue:N.callSetDisabledState??Vt}]}}static#e=this.\u0275fac=function(ge){return new(ge||Y)};static#t=this.\u0275mod=t.oAB({type:Y});static#n=this.\u0275inj=t.cJS({imports:[xt]})}return Y})()},6593:(Pe,V,a)=>{"use strict";a.d(V,{Dx:()=>At,H7:()=>Dn,b2:()=>zt,q6:()=>Je,se:()=>ke});var t=a(5879),d=a(6814);class w extends d.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class L extends w{static makeCurrent(){(0,d.HT)(new L)}onAndCancel(at,we,He){return at.addEventListener(we,He),()=>{at.removeEventListener(we,He)}}dispatchEvent(at,we){at.dispatchEvent(we)}remove(at){at.parentNode&&at.parentNode.removeChild(at)}createElement(at,we){return(we=we||this.getDefaultDocument()).createElement(at)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(at){return at.nodeType===Node.ELEMENT_NODE}isShadowRoot(at){return at instanceof DocumentFragment}getGlobalEventTarget(at,we){return"window"===we?window:"document"===we?at:"body"===we?at.body:null}getBaseHref(at){const we=function O(){return p=p||document.querySelector("base"),p?p.getAttribute("href"):null}();return null==we?null:function F(dt){R=R||document.createElement("a"),R.setAttribute("href",dt);const at=R.pathname;return"/"===at.charAt(0)?at:`/${at}`}(we)}resetBaseElement(){p=null}getUserAgent(){return window.navigator.userAgent}getCookie(at){return(0,d.Mx)(document.cookie,at)}}let R,p=null,B=(()=>{class dt{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(He){return new(He||dt)};static#t=this.\u0275prov=t.Yz7({token:dt,factory:dt.\u0275fac})}return dt})();const $=new t.OlP("EventManagerPlugins");let f=(()=>{class dt{constructor(we,He){this._zone=He,this._eventNameToPlugin=new Map,we.forEach(yt=>{yt.manager=this}),this._plugins=we.slice().reverse()}addEventListener(we,He,yt){return this._findPluginFor(He).addEventListener(we,He,yt)}getZone(){return this._zone}_findPluginFor(we){let He=this._eventNameToPlugin.get(we);if(He)return He;if(He=this._plugins.find(Wt=>Wt.supports(we)),!He)throw new t.vHH(5101,!1);return this._eventNameToPlugin.set(we,He),He}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG($),t.LFG(t.R0b))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:dt.\u0275fac})}return dt})();class j{constructor(at){this._doc=at}}const S="ng-app-id";let q=(()=>{class dt{constructor(we,He,yt,Wt={}){this.doc=we,this.appId=He,this.nonce=yt,this.platformId=Wt,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,d.PM)(Wt),this.resetHostNodes()}addStyles(we){for(const He of we)1===this.changeUsageCount(He,1)&&this.onStyleAdded(He)}removeStyles(we){for(const He of we)this.changeUsageCount(He,-1)<=0&&this.onStyleRemoved(He)}ngOnDestroy(){const we=this.styleNodesInDOM;we&&(we.forEach(He=>He.remove()),we.clear());for(const He of this.getAllStyles())this.onStyleRemoved(He);this.resetHostNodes()}addHost(we){this.hostNodes.add(we);for(const He of this.getAllStyles())this.addStyleToHost(we,He)}removeHost(we){this.hostNodes.delete(we)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(we){for(const He of this.hostNodes)this.addStyleToHost(He,we)}onStyleRemoved(we){const He=this.styleRef;He.get(we)?.elements?.forEach(yt=>yt.remove()),He.delete(we)}collectServerRenderedStyles(){const we=this.doc.head?.querySelectorAll(`style[${S}="${this.appId}"]`);if(we?.length){const He=new Map;return we.forEach(yt=>{null!=yt.textContent&&He.set(yt.textContent,yt)}),He}return null}changeUsageCount(we,He){const yt=this.styleRef;if(yt.has(we)){const Wt=yt.get(we);return Wt.usage+=He,Wt.usage}return yt.set(we,{usage:He,elements:[]}),He}getStyleElement(we,He){const yt=this.styleNodesInDOM,Wt=yt?.get(He);if(Wt?.parentNode===we)return yt.delete(He),Wt.removeAttribute(S),Wt;{const Vt=this.doc.createElement("style");return this.nonce&&Vt.setAttribute("nonce",this.nonce),Vt.textContent=He,this.platformIsServer&&Vt.setAttribute(S,this.appId),Vt}}addStyleToHost(we,He){const yt=this.getStyleElement(we,He);we.appendChild(yt);const Wt=this.styleRef,Vt=Wt.get(He)?.elements;Vt?Vt.push(yt):Wt.set(He,{elements:[yt],usage:1})}resetHostNodes(){const we=this.hostNodes;we.clear(),we.add(this.doc.head)}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(d.K0),t.LFG(t.AFp),t.LFG(t.Ojb,8),t.LFG(t.Lbi))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:dt.\u0275fac})}return dt})();const ie={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/"},k=/%COMP%/g,_e=new t.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function be(dt,at){return at.map(we=>we.replace(k,dt))}let ke=(()=>{class dt{constructor(we,He,yt,Wt,Vt,Un,sn,rr=null){this.eventManager=we,this.sharedStylesHost=He,this.appId=yt,this.removeStylesOnCompDestroy=Wt,this.doc=Vt,this.platformId=Un,this.ngZone=sn,this.nonce=rr,this.rendererByCompId=new Map,this.platformIsServer=(0,d.PM)(Un),this.defaultRenderer=new vt(we,Vt,sn,this.platformIsServer)}createRenderer(we,He){if(!we||!He)return this.defaultRenderer;this.platformIsServer&&He.encapsulation===t.ifc.ShadowDom&&(He={...He,encapsulation:t.ifc.Emulated});const yt=this.getOrCreateRenderer(we,He);return yt instanceof Ee?yt.applyToHost(we):yt instanceof $e&&yt.applyStyles(),yt}getOrCreateRenderer(we,He){const yt=this.rendererByCompId;let Wt=yt.get(He.id);if(!Wt){const Vt=this.doc,Un=this.ngZone,sn=this.eventManager,rr=this.sharedStylesHost,an=this.removeStylesOnCompDestroy,$n=this.platformIsServer;switch(He.encapsulation){case t.ifc.Emulated:Wt=new Ee(sn,rr,He,this.appId,an,Vt,Un,$n);break;case t.ifc.ShadowDom:return new _t(sn,rr,we,He,Vt,Un,this.nonce,$n);default:Wt=new $e(sn,rr,He,an,Vt,Un,$n)}yt.set(He.id,Wt)}return Wt}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(f),t.LFG(q),t.LFG(t.AFp),t.LFG(_e),t.LFG(d.K0),t.LFG(t.Lbi),t.LFG(t.R0b),t.LFG(t.Ojb))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:dt.\u0275fac})}return dt})();class vt{constructor(at,we,He,yt){this.eventManager=at,this.doc=we,this.ngZone=He,this.platformIsServer=yt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(at,we){return we?this.doc.createElementNS(ie[we]||we,at):this.doc.createElement(at)}createComment(at){return this.doc.createComment(at)}createText(at){return this.doc.createTextNode(at)}appendChild(at,we){(qe(at)?at.content:at).appendChild(we)}insertBefore(at,we,He){at&&(qe(at)?at.content:at).insertBefore(we,He)}removeChild(at,we){at&&at.removeChild(we)}selectRootElement(at,we){let He="string"==typeof at?this.doc.querySelector(at):at;if(!He)throw new t.vHH(-5104,!1);return we||(He.textContent=""),He}parentNode(at){return at.parentNode}nextSibling(at){return at.nextSibling}setAttribute(at,we,He,yt){if(yt){we=yt+":"+we;const Wt=ie[yt];Wt?at.setAttributeNS(Wt,we,He):at.setAttribute(we,He)}else at.setAttribute(we,He)}removeAttribute(at,we,He){if(He){const yt=ie[He];yt?at.removeAttributeNS(yt,we):at.removeAttribute(`${He}:${we}`)}else at.removeAttribute(we)}addClass(at,we){at.classList.add(we)}removeClass(at,we){at.classList.remove(we)}setStyle(at,we,He,yt){yt&(t.JOm.DashCase|t.JOm.Important)?at.style.setProperty(we,He,yt&t.JOm.Important?"important":""):at.style[we]=He}removeStyle(at,we,He){He&t.JOm.DashCase?at.style.removeProperty(we):at.style[we]=""}setProperty(at,we,He){at[we]=He}setValue(at,we){at.nodeValue=we}listen(at,we,He){if("string"==typeof at&&!(at=(0,d.q)().getGlobalEventTarget(this.doc,at)))throw new Error(`Unsupported event target ${at} for event ${we}`);return this.eventManager.addEventListener(at,we,this.decoratePreventDefault(He))}decoratePreventDefault(at){return we=>{if("__ngUnwrap__"===we)return at;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>at(we)):at(we))&&we.preventDefault()}}}function qe(dt){return"TEMPLATE"===dt.tagName&&void 0!==dt.content}class _t extends vt{constructor(at,we,He,yt,Wt,Vt,Un,sn){super(at,Wt,Vt,sn),this.sharedStylesHost=we,this.hostEl=He,this.shadowRoot=He.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const rr=be(yt.id,yt.styles);for(const an of rr){const $n=document.createElement("style");Un&&$n.setAttribute("nonce",Un),$n.textContent=an,this.shadowRoot.appendChild($n)}}nodeOrShadowRoot(at){return at===this.hostEl?this.shadowRoot:at}appendChild(at,we){return super.appendChild(this.nodeOrShadowRoot(at),we)}insertBefore(at,we,He){return super.insertBefore(this.nodeOrShadowRoot(at),we,He)}removeChild(at,we){return super.removeChild(this.nodeOrShadowRoot(at),we)}parentNode(at){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(at)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class $e extends vt{constructor(at,we,He,yt,Wt,Vt,Un,sn){super(at,Wt,Vt,Un),this.sharedStylesHost=we,this.removeStylesOnCompDestroy=yt,this.styles=sn?be(sn,He.styles):He.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Ee extends $e{constructor(at,we,He,yt,Wt,Vt,Un,sn){const rr=yt+"-"+He.id;super(at,we,He,Wt,Vt,Un,sn,rr),this.contentAttr=function ve(dt){return"_ngcontent-%COMP%".replace(k,dt)}(rr),this.hostAttr=function xe(dt){return"_nghost-%COMP%".replace(k,dt)}(rr)}applyToHost(at){this.applyStyles(),this.setAttribute(at,this.hostAttr,"")}createElement(at,we){const He=super.createElement(at,we);return super.setAttribute(He,this.contentAttr,""),He}}let ze=(()=>{class dt extends j{constructor(we){super(we)}supports(we){return!0}addEventListener(we,He,yt){return we.addEventListener(He,yt,!1),()=>this.removeEventListener(we,He,yt)}removeEventListener(we,He,yt){return we.removeEventListener(He,yt)}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(d.K0))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:dt.\u0275fac})}return dt})();const J=["alt","control","meta","shift"],Q={"\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"},oe={alt:dt=>dt.altKey,control:dt=>dt.ctrlKey,meta:dt=>dt.metaKey,shift:dt=>dt.shiftKey};let se=(()=>{class dt extends j{constructor(we){super(we)}supports(we){return null!=dt.parseEventName(we)}addEventListener(we,He,yt){const Wt=dt.parseEventName(He),Vt=dt.eventCallback(Wt.fullKey,yt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,d.q)().onAndCancel(we,Wt.domEventName,Vt))}static parseEventName(we){const He=we.toLowerCase().split("."),yt=He.shift();if(0===He.length||"keydown"!==yt&&"keyup"!==yt)return null;const Wt=dt._normalizeKey(He.pop());let Vt="",Un=He.indexOf("code");if(Un>-1&&(He.splice(Un,1),Vt="code."),J.forEach(rr=>{const an=He.indexOf(rr);an>-1&&(He.splice(an,1),Vt+=rr+".")}),Vt+=Wt,0!=He.length||0===Wt.length)return null;const sn={};return sn.domEventName=yt,sn.fullKey=Vt,sn}static matchEventFullKeyCode(we,He){let yt=Q[we.key]||we.key,Wt="";return He.indexOf("code.")>-1&&(yt=we.code,Wt="code."),!(null==yt||!yt)&&(yt=yt.toLowerCase()," "===yt?yt="space":"."===yt&&(yt="dot"),J.forEach(Vt=>{Vt!==yt&&(0,oe[Vt])(we)&&(Wt+=Vt+".")}),Wt+=yt,Wt===He)}static eventCallback(we,He,yt){return Wt=>{dt.matchEventFullKeyCode(Wt,we)&&yt.runGuarded(()=>He(Wt))}}static _normalizeKey(we){return"esc"===we?"escape":we}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(d.K0))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:dt.\u0275fac})}return dt})();const Je=(0,t.eFA)(t._c5,"browser",[{provide:t.Lbi,useValue:d.bD},{provide:t.g9A,useValue:function Xe(){L.makeCurrent()},multi:!0},{provide:d.K0,useFactory:function wt(){return(0,t.RDi)(document),document},deps:[]}]),Tt=new t.OlP(""),tt=[{provide:t.rWj,useClass:class P{addToWindow(at){t.dqk.getAngularTestability=(He,yt=!0)=>{const Wt=at.findTestabilityInTree(He,yt);if(null==Wt)throw new t.vHH(5103,!1);return Wt},t.dqk.getAllAngularTestabilities=()=>at.getAllTestabilities(),t.dqk.getAllAngularRootElements=()=>at.getAllRootElements(),t.dqk.frameworkStabilizers||(t.dqk.frameworkStabilizers=[]),t.dqk.frameworkStabilizers.push(He=>{const yt=t.dqk.getAllAngularTestabilities();let Wt=yt.length,Vt=!1;const Un=function(sn){Vt=Vt||sn,Wt--,0==Wt&&He(Vt)};yt.forEach(sn=>{sn.whenStable(Un)})})}findTestabilityInTree(at,we,He){return null==we?null:at.getTestability(we)??(He?(0,d.q)().isShadowRoot(we)?this.findTestabilityInTree(at,we.host,!0):this.findTestabilityInTree(at,we.parentElement,!0):null)}},deps:[]},{provide:t.lri,useClass:t.dDg,deps:[t.R0b,t.eoX,t.rWj]},{provide:t.dDg,useClass:t.dDg,deps:[t.R0b,t.eoX,t.rWj]}],Pt=[{provide:t.zSh,useValue:"root"},{provide:t.qLn,useFactory:function nt(){return new t.qLn},deps:[]},{provide:$,useClass:ze,multi:!0,deps:[d.K0,t.R0b,t.Lbi]},{provide:$,useClass:se,multi:!0,deps:[d.K0]},ke,q,f,{provide:t.FYo,useExisting:ke},{provide:d.JF,useClass:B,deps:[]},[]];let zt=(()=>{class dt{constructor(we){}static withServerTransition(we){return{ngModule:dt,providers:[{provide:t.AFp,useValue:we.appId}]}}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(Tt,12))};static#t=this.\u0275mod=t.oAB({type:dt});static#n=this.\u0275inj=t.cJS({providers:[...Pt,...tt],imports:[d.ez,t.hGG]})}return dt})(),At=(()=>{class dt{constructor(we){this._doc=we}getTitle(){return this._doc.title}setTitle(we){this._doc.title=we||""}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(d.K0))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:function(He){let yt=null;return yt=He?new He:function Ye(){return new At((0,t.LFG)(d.K0))}(),yt},providedIn:"root"})}return dt})();typeof window<"u"&&window;let Dn=(()=>{class dt{static#e=this.\u0275fac=function(He){return new(He||dt)};static#t=this.\u0275prov=t.Yz7({token:dt,factory:function(He){let yt=null;return yt=He?new(He||dt):t.LFG(On),yt},providedIn:"root"})}return dt})(),On=(()=>{class dt extends Dn{constructor(we){super(),this._doc=we}sanitize(we,He){if(null==He)return null;switch(we){case t.q3G.NONE:return He;case t.q3G.HTML:return(0,t.qzn)(He,"HTML")?(0,t.z3N)(He):(0,t.EiD)(this._doc,String(He)).toString();case t.q3G.STYLE:return(0,t.qzn)(He,"Style")?(0,t.z3N)(He):He;case t.q3G.SCRIPT:if((0,t.qzn)(He,"Script"))return(0,t.z3N)(He);throw new t.vHH(5200,!1);case t.q3G.URL:return(0,t.qzn)(He,"URL")?(0,t.z3N)(He):(0,t.mCW)(String(He));case t.q3G.RESOURCE_URL:if((0,t.qzn)(He,"ResourceURL"))return(0,t.z3N)(He);throw new t.vHH(5201,!1);default:throw new t.vHH(5202,!1)}}bypassSecurityTrustHtml(we){return(0,t.JVY)(we)}bypassSecurityTrustStyle(we){return(0,t.L6k)(we)}bypassSecurityTrustScript(we){return(0,t.eBb)(we)}bypassSecurityTrustUrl(we){return(0,t.LAX)(we)}bypassSecurityTrustResourceUrl(we){return(0,t.pB0)(we)}static#e=this.\u0275fac=function(He){return new(He||dt)(t.LFG(d.K0))};static#t=this.\u0275prov=t.Yz7({token:dt,factory:function(He){let yt=null;return yt=He?new He:function Sn(dt){return new On(dt.get(d.K0))}(t.LFG(t.zs3)),yt},providedIn:"root"})}return dt})()},1523:(Pe,V,a)=>{"use strict";a.d(V,{gz:()=>wi,jw:()=>ts,sz:()=>st,m2:()=>X,OD:()=>D,eC:()=>nt,F0:()=>er,rH:()=>Di,Od:()=>ga,Bz:()=>v,lC:()=>bi});var t=a(5879),d=a(2664),w=a(7715),L=a(2096),p=a(5619),O=a(2572);const F=(0,a(2306).d)(E=>function(){E(this),this.name="EmptyError",this.message="no elements in sequence"});var P=a(5211),B=a(4911),$=a(8407),f=a(8504),j=a(6232),S=a(5592),q=a(7394),ie=a(9360),k=a(8251);function Te(){return(0,ie.e)((E,M)=>{let y=null;E._refCount++;const x=(0,k.x)(M,void 0,void 0,void 0,()=>{if(!E||E._refCount<=0||0<--E._refCount)return void(y=null);const G=E._connection,he=y;y=null,G&&(!he||G===he)&&G.unsubscribe(),M.unsubscribe()});E.subscribe(x),x.closed||(y=E.connect())})}class Me extends S.y{constructor(M,y){super(),this.source=M,this.subjectFactory=y,this._subject=null,this._refCount=0,this._connection=null,(0,ie.A)(M)&&(this.lift=M.lift)}_subscribe(M){return this.getSubject().subscribe(M)}getSubject(){const M=this._subject;return(!M||M.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:M}=this;this._subject=this._connection=null,M?.unsubscribe()}connect(){let M=this._connection;if(!M){M=this._connection=new q.w0;const y=this.getSubject();M.add(this.source.subscribe((0,k.x)(y,void 0,()=>{this._teardown(),y.complete()},x=>{this._teardown(),y.error(x)},()=>this._teardown()))),M.closed&&(this._connection=null,M=q.w0.EMPTY)}return M}refCount(){return Te()(this)}}var ye=a(8645),ce=a(6814),_e=a(7398),ve=a(4664),xe=a(8180),be=a(7921),ke=a(2181),vt=a(1631),it=a(3572);function St(E=qe){return(0,ie.e)((M,y)=>{let x=!1;M.subscribe((0,k.x)(y,G=>{x=!0,y.next(G)},()=>x?y.complete():y.error(E())))})}function qe(){return new F}var _t=a(2737);function $e(E,M){const y=arguments.length>=2;return x=>x.pipe(E?(0,ke.h)((G,he)=>E(G,he,x)):_t.y,(0,xe.q)(1),y?(0,it.d)(M):St(()=>new F))}var Ee=a(6328),ze=a(9397),J=a(6306),Q=a(6699);function oe(E){return E<=0?()=>j.E:(0,ie.e)((M,y)=>{let x=[];M.subscribe((0,k.x)(y,G=>{x.push(G),E{for(const G of x)y.next(G);y.complete()},void 0,()=>{x=null}))})}var ae=a(975),fe=a(4716),De=a(9773),je=a(7537),Xe=a(6593);const nt="primary",wt=Symbol("RouteTitle");class It{constructor(M){this.params=M||{}}has(M){return Object.prototype.hasOwnProperty.call(this.params,M)}get(M){if(this.has(M)){const y=this.params[M];return Array.isArray(y)?y[0]:y}return null}getAll(M){if(this.has(M)){const y=this.params[M];return Array.isArray(y)?y:[y]}return[]}get keys(){return Object.keys(this.params)}}function Je(E){return new It(E)}function Tt(E,M,y){const x=y.path.split("/");if(x.length>E.length||"full"===y.pathMatch&&(M.hasChildren()||x.lengthx[he]===G)}return E===M}function un(E){return E.length>0?E[E.length-1]:null}function Rn(E){return(0,d.b)(E)?E:(0,t.QGY)(E)?(0,w.D)(Promise.resolve(E)):(0,L.of)(E)}const We={exact:function tn(E,M,y){if(!Wn(E.segments,M.segments)||!dn(E.segments,M.segments,y)||E.numberOfChildren!==M.numberOfChildren)return!1;for(const x in M.children)if(!E.children[x]||!tn(E.children[x],M.children[x],y))return!1;return!0},subset:Ht},Ye={exact:function Ot(E,M){return Pt(E,M)},subset:function Et(E,M){return Object.keys(M).length<=Object.keys(E).length&&Object.keys(M).every(y=>zt(E[y],M[y]))},ignored:()=>!0};function At(E,M,y){return We[y.paths](E.root,M.root,y.matrixParams)&&Ye[y.queryParams](E.queryParams,M.queryParams)&&!("exact"===y.fragment&&E.fragment!==M.fragment)}function Ht(E,M,y){return Zt(E,M,M.segments,y)}function Zt(E,M,y,x){if(E.segments.length>y.length){const G=E.segments.slice(0,y.length);return!(!Wn(G,y)||M.hasChildren()||!dn(G,y,x))}if(E.segments.length===y.length){if(!Wn(E.segments,y)||!dn(E.segments,y,x))return!1;for(const G in M.children)if(!E.children[G]||!Ht(E.children[G],M.children[G],x))return!1;return!0}{const G=y.slice(0,E.segments.length),he=y.slice(E.segments.length);return!!(Wn(E.segments,G)&&dn(E.segments,G,x)&&E.children[nt])&&Zt(E.children[nt],M,he,x)}}function dn(E,M,y){return M.every((x,G)=>Ye[y](E[G].parameters,x.parameters))}class wn{constructor(M=new fn([],{}),y={},x=null){this.root=M,this.queryParams=y,this.fragment=x}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Je(this.queryParams)),this._queryParamMap}toString(){return Ut.serialize(this)}}class fn{constructor(M,y){this.segments=M,this.children=y,this.parent=null,Object.values(y).forEach(x=>x.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Qt(this)}}class qt{constructor(M,y){this.path=M,this.parameters=y}get parameterMap(){return this._parameterMap||(this._parameterMap=Je(this.parameters)),this._parameterMap}toString(){return Ir(this)}}function Wn(E,M){return E.length===M.length&&E.every((y,x)=>y.path===M[x].path)}let Er=(()=>{class E{static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:function(){return new st},providedIn:"root"})}return E})();class st{parse(M){const y=new Un(M);return new wn(y.parseRootSegment(),y.parseQueryParams(),y.parseFragment())}serialize(M){const y=`/${Dn(M.root,!0)}`,x=function oi(E){const M=Object.keys(E).map(y=>{const x=E[y];return Array.isArray(x)?x.map(G=>`${On(y)}=${On(G)}`).join("&"):`${On(y)}=${On(x)}`}).filter(y=>!!y);return M.length?`?${M.join("&")}`:""}(M.queryParams);return`${y}${x}${"string"==typeof M.fragment?`#${function nr(E){return encodeURI(E)}(M.fragment)}`:""}`}}const Ut=new st;function Qt(E){return E.segments.map(M=>Ir(M)).join("/")}function Dn(E,M){if(!E.hasChildren())return Qt(E);if(M){const y=E.children[nt]?Dn(E.children[nt],!1):"",x=[];return Object.entries(E.children).forEach(([G,he])=>{G!==nt&&x.push(`${G}:${Dn(he,!1)}`)}),x.length>0?`${y}(${x.join("//")})`:y}{const y=function mn(E,M){let y=[];return Object.entries(E.children).forEach(([x,G])=>{x===nt&&(y=y.concat(M(G,x)))}),Object.entries(E.children).forEach(([x,G])=>{x!==nt&&(y=y.concat(M(G,x)))}),y}(E,(x,G)=>G===nt?[Dn(E.children[nt],!1)]:[`${G}:${Dn(x,!1)}`]);return 1===Object.keys(E.children).length&&null!=E.children[nt]?`${Qt(E)}/${y[0]}`:`${Qt(E)}/(${y.join("//")})`}}function Sn(E){return encodeURIComponent(E).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function On(E){return Sn(E).replace(/%3B/gi,";")}function Dr(E){return Sn(E).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function wr(E){return decodeURIComponent(E)}function Or(E){return wr(E.replace(/\+/g,"%20"))}function Ir(E){return`${Dr(E.path)}${function Br(E){return Object.keys(E).map(M=>`;${Dr(M)}=${Dr(E[M])}`).join("")}(E.parameters)}`}const zn=/^[^\/()?;#]+/;function dt(E){const M=E.match(zn);return M?M[0]:""}const at=/^[^\/()?;=#]+/,He=/^[^=?&#]+/,Wt=/^[^&#]+/;class Un{constructor(M){this.url=M,this.remaining=M}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new fn([],{}):new fn([],this.parseChildren())}parseQueryParams(){const M={};if(this.consumeOptional("?"))do{this.parseQueryParam(M)}while(this.consumeOptional("&"));return M}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const M=[];for(this.peekStartsWith("(")||M.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),M.push(this.parseSegment());let y={};this.peekStartsWith("/(")&&(this.capture("/"),y=this.parseParens(!0));let x={};return this.peekStartsWith("(")&&(x=this.parseParens(!1)),(M.length>0||Object.keys(y).length>0)&&(x[nt]=new fn(M,y)),x}parseSegment(){const M=dt(this.remaining);if(""===M&&this.peekStartsWith(";"))throw new t.vHH(4009,!1);return this.capture(M),new qt(wr(M),this.parseMatrixParams())}parseMatrixParams(){const M={};for(;this.consumeOptional(";");)this.parseParam(M);return M}parseParam(M){const y=function we(E){const M=E.match(at);return M?M[0]:""}(this.remaining);if(!y)return;this.capture(y);let x="";if(this.consumeOptional("=")){const G=dt(this.remaining);G&&(x=G,this.capture(x))}M[wr(y)]=wr(x)}parseQueryParam(M){const y=function yt(E){const M=E.match(He);return M?M[0]:""}(this.remaining);if(!y)return;this.capture(y);let x="";if(this.consumeOptional("=")){const Se=function Vt(E){const M=E.match(Wt);return M?M[0]:""}(this.remaining);Se&&(x=Se,this.capture(x))}const G=Or(y),he=Or(x);if(M.hasOwnProperty(G)){let Se=M[G];Array.isArray(Se)||(Se=[Se],M[G]=Se),Se.push(he)}else M[G]=he}parseParens(M){const y={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const x=dt(this.remaining),G=this.remaining[x.length];if("/"!==G&&")"!==G&&";"!==G)throw new t.vHH(4010,!1);let he;x.indexOf(":")>-1?(he=x.slice(0,x.indexOf(":")),this.capture(he),this.capture(":")):M&&(he=nt);const Se=this.parseChildren();y[he]=1===Object.keys(Se).length?Se[nt]:new fn([],Se),this.consumeOptional("//")}return y}peekStartsWith(M){return this.remaining.startsWith(M)}consumeOptional(M){return!!this.peekStartsWith(M)&&(this.remaining=this.remaining.substring(M.length),!0)}capture(M){if(!this.consumeOptional(M))throw new t.vHH(4011,!1)}}function sn(E){return E.segments.length>0?new fn([],{[nt]:E}):E}function rr(E){const M={};for(const x of Object.keys(E.children)){const he=rr(E.children[x]);if(x===nt&&0===he.segments.length&&he.hasChildren())for(const[Se,lt]of Object.entries(he.children))M[Se]=lt;else(he.segments.length>0||he.hasChildren())&&(M[x]=he)}return function an(E){if(1===E.numberOfChildren&&E.children[nt]){const M=E.children[nt];return new fn(E.segments.concat(M.segments),M.children)}return E}(new fn(E.segments,M))}function $n(E){return E instanceof wn}function Le(E){let M;const G=sn(function y(he){const Se={};for(const pt of he.children){const en=y(pt);Se[pt.outlet]=en}const lt=new fn(he.url,Se);return he===E&&(M=lt),lt}(E.root));return M??G}function Ue(E,M,y,x){let G=E;for(;G.parent;)G=G.parent;if(0===M.length)return kt(G,G,G,y,x);const he=function Tn(E){if("string"==typeof E[0]&&1===E.length&&"/"===E[0])return new on(!0,0,E);let M=0,y=!1;const x=E.reduce((G,he,Se)=>{if("object"==typeof he&&null!=he){if(he.outlets){const lt={};return Object.entries(he.outlets).forEach(([pt,en])=>{lt[pt]="string"==typeof en?en.split("/"):en}),[...G,{outlets:lt}]}if(he.segmentPath)return[...G,he.segmentPath]}return"string"!=typeof he?[...G,he]:0===Se?(he.split("/").forEach((lt,pt)=>{0==pt&&"."===lt||(0==pt&&""===lt?y=!0:".."===lt?M++:""!=lt&&G.push(lt))}),G):[...G,he]},[]);return new on(y,M,x)}(M);if(he.toRoot())return kt(G,G,new fn([],{}),y,x);const Se=function jr(E,M,y){if(E.isAbsolute)return new pr(M,!0,0);if(!y)return new pr(M,!1,NaN);if(null===y.parent)return new pr(y,!0,0);const x=bt(E.commands[0])?0:1;return function Fr(E,M,y){let x=E,G=M,he=y;for(;he>G;){if(he-=G,x=x.parent,!x)throw new t.vHH(4005,!1);G=x.segments.length}return new pr(x,!1,G-he)}(y,y.segments.length-1+x,E.numberOfDoubleDots)}(he,G,E),lt=Se.processChildren?Zr(Se.segmentGroup,Se.index,he.commands):Hr(Se.segmentGroup,Se.index,he.commands);return kt(G,Se.segmentGroup,lt,y,x)}function bt(E){return"object"==typeof E&&null!=E&&!E.outlets&&!E.segmentPath}function Rt(E){return"object"==typeof E&&null!=E&&E.outlets}function kt(E,M,y,x,G){let Se,he={};x&&Object.entries(x).forEach(([pt,en])=>{he[pt]=Array.isArray(en)?en.map(kn=>`${kn}`):`${en}`}),Se=E===M?y:Ft(E,M,y);const lt=sn(rr(Se));return new wn(lt,he,G)}function Ft(E,M,y){const x={};return Object.entries(E.children).forEach(([G,he])=>{x[G]=he===M?y:Ft(he,M,y)}),new fn(E.segments,x)}class on{constructor(M,y,x){if(this.isAbsolute=M,this.numberOfDoubleDots=y,this.commands=x,M&&x.length>0&&bt(x[0]))throw new t.vHH(4003,!1);const G=x.find(Rt);if(G&&G!==un(x))throw new t.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class pr{constructor(M,y,x){this.segmentGroup=M,this.processChildren=y,this.index=x}}function Hr(E,M,y){if(E||(E=new fn([],{})),0===E.segments.length&&E.hasChildren())return Zr(E,M,y);const x=function Xn(E,M,y){let x=0,G=M;const he={match:!1,pathIndex:0,commandIndex:0};for(;G=y.length)return he;const Se=E.segments[G],lt=y[x];if(Rt(lt))break;const pt=`${lt}`,en=x0&&void 0===pt)break;if(pt&&en&&"object"==typeof en&&void 0===en.outlets){if(!pe(pt,en,Se))return he;x+=2}else{if(!pe(pt,{},Se))return he;x++}G++}return{match:!0,pathIndex:G,commandIndex:x}}(E,M,y),G=y.slice(x.commandIndex);if(x.match&&x.pathIndexhe!==nt)&&E.children[nt]&&1===E.numberOfChildren&&0===E.children[nt].segments.length){const he=Zr(E.children[nt],M,y);return new fn(E.segments,he.children)}return Object.entries(x).forEach(([he,Se])=>{"string"==typeof Se&&(Se=[Se]),null!==Se&&(G[he]=Hr(E.children[he],M,Se))}),Object.entries(E.children).forEach(([he,Se])=>{void 0===x[he]&&(G[he]=Se)}),new fn(E.segments,G)}}function qn(E,M,y){const x=E.segments.slice(0,M);let G=0;for(;G{"string"==typeof x&&(x=[x]),null!==x&&(M[y]=qn(new fn([],{}),0,x))}),M}function ai(E){const M={};return Object.entries(E).forEach(([y,x])=>M[y]=`${x}`),M}function pe(E,M,y){return E==y.path&&Pt(M,y.parameters)}const z="imperative";class K{constructor(M,y){this.id=M,this.url=y}}class D extends K{constructor(M,y,x="imperative",G=null){super(M,y),this.type=0,this.navigationTrigger=x,this.restoredState=G}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class X extends K{constructor(M,y,x){super(M,y),this.urlAfterRedirects=x,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class de extends K{constructor(M,y,x,G){super(M,y),this.reason=x,this.code=G,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Oe extends K{constructor(M,y,x,G){super(M,y),this.reason=x,this.code=G,this.type=16}}class Ae extends K{constructor(M,y,x,G){super(M,y),this.error=x,this.target=G,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class mt extends K{constructor(M,y,x,G){super(M,y),this.urlAfterRedirects=x,this.state=G,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $t extends K{constructor(M,y,x,G){super(M,y),this.urlAfterRedirects=x,this.state=G,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ln extends K{constructor(M,y,x,G,he){super(M,y),this.urlAfterRedirects=x,this.state=G,this.shouldActivate=he,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class _n extends K{constructor(M,y,x,G){super(M,y),this.urlAfterRedirects=x,this.state=G,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bn extends K{constructor(M,y,x,G){super(M,y),this.urlAfterRedirects=x,this.state=G,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Nn{constructor(M){this.route=M,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ir{constructor(M){this.route=M,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class _r{constructor(M){this.snapshot=M,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Kr{constructor(M){this.snapshot=M,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yr{constructor(M){this.snapshot=M,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ts{constructor(M){this.snapshot=M,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _i{constructor(M,y,x){this.routerEvent=M,this.position=y,this.anchor=x,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ti{}class ms{constructor(M){this.url=M}}class Is{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ki,this.attachRef=null}}let ki=(()=>{class E{constructor(){this.contexts=new Map}onChildOutletCreated(y,x){const G=this.getOrCreateContext(y);G.outlet=x,this.contexts.set(y,G)}onChildOutletDestroyed(y){const x=this.getContext(y);x&&(x.outlet=null,x.attachRef=null)}onOutletDeactivated(){const y=this.contexts;return this.contexts=new Map,y}onOutletReAttached(y){this.contexts=y}getOrCreateContext(y){let x=this.getContext(y);return x||(x=new Is,this.contexts.set(y,x)),x}getContext(y){return this.contexts.get(y)||null}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();class Gi{constructor(M){this._root=M}get root(){return this._root.value}parent(M){const y=this.pathFromRoot(M);return y.length>1?y[y.length-2]:null}children(M){const y=Vr(M,this._root);return y?y.children.map(x=>x.value):[]}firstChild(M){const y=Vr(M,this._root);return y&&y.children.length>0?y.children[0].value:null}siblings(M){const y=jn(M,this._root);return y.length<2?[]:y[y.length-2].children.map(G=>G.value).filter(G=>G!==M)}pathFromRoot(M){return jn(M,this._root).map(y=>y.value)}}function Vr(E,M){if(E===M.value)return M;for(const y of M.children){const x=Vr(E,y);if(x)return x}return null}function jn(E,M){if(E===M.value)return[M];for(const y of M.children){const x=jn(E,y);if(x.length)return x.unshift(M),x}return[]}class vr{constructor(M,y){this.value=M,this.children=y}toString(){return`TreeNode(${this.value})`}}function Mr(E){const M={};return E&&E.children.forEach(y=>M[y.value.outlet]=y),M}class vi extends Gi{constructor(M,y){super(M),this.snapshot=y,Kt(this,M)}toString(){return this.snapshot.toString()}}function ci(E,M){const y=function ns(E,M){const Se=new Bi([],{},{},"",{},nt,M,null,{});return new xr("",new vr(Se,[]))}(0,M),x=new p.X([new qt("",{})]),G=new p.X({}),he=new p.X({}),Se=new p.X({}),lt=new p.X(""),pt=new wi(x,G,Se,lt,he,nt,M,y.root);return pt.snapshot=y.root,new vi(new vr(pt,[]),y)}class wi{constructor(M,y,x,G,he,Se,lt,pt){this.urlSubject=M,this.paramsSubject=y,this.queryParamsSubject=x,this.fragmentSubject=G,this.dataSubject=he,this.outlet=Se,this.component=lt,this._futureSnapshot=pt,this.title=this.dataSubject?.pipe((0,_e.U)(en=>en[wt]))??(0,L.of)(void 0),this.url=M,this.params=y,this.queryParams=x,this.fragment=G,this.data=he}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._paramMap=this.params.pipe((0,_e.U)(M=>Je(M)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,_e.U)(M=>Je(M)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ui(E,M="emptyOnly"){const y=E.pathFromRoot;let x=0;if("always"!==M)for(x=y.length-1;x>=1;){const G=y[x],he=y[x-1];if(G.routeConfig&&""===G.routeConfig.path)x--;else{if(he.component)break;x--}}return function ys(E){return E.reduce((M,y)=>({params:{...M.params,...y.params},data:{...M.data,...y.data},resolve:{...y.data,...M.resolve,...y.routeConfig?.data,...y._resolvedData}}),{params:{},data:{},resolve:{}})}(y.slice(x))}class Bi{get title(){return this.data?.[wt]}constructor(M,y,x,G,he,Se,lt,pt,en){this.url=M,this.params=y,this.queryParams=x,this.fragment=G,this.data=he,this.outlet=Se,this.component=lt,this.routeConfig=pt,this._resolve=en}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._paramMap=Je(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Je(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(x=>x.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class xr extends Gi{constructor(M,y){super(y),this.url=M,Kt(this,y)}toString(){return Mn(this._root)}}function Kt(E,M){M.value._routerState=E,M.children.forEach(y=>Kt(E,y))}function Mn(E){const M=E.children.length>0?` { ${E.children.map(Mn).join(", ")} } `:"";return`${E.value}${M}`}function hr(E){if(E.snapshot){const M=E.snapshot,y=E._futureSnapshot;E.snapshot=y,Pt(M.queryParams,y.queryParams)||E.queryParamsSubject.next(y.queryParams),M.fragment!==y.fragment&&E.fragmentSubject.next(y.fragment),Pt(M.params,y.params)||E.paramsSubject.next(y.params),function tt(E,M){if(E.length!==M.length)return!1;for(let y=0;yPt(y.parameters,M[x].parameters))}(E.url,M.url);return y&&!(!E.parent!=!M.parent)&&(!E.parent||$r(E.parent,M.parent))}let bi=(()=>{class E{constructor(){this.activated=null,this._activatedRoute=null,this.name=nt,this.activateEvents=new t.vpe,this.deactivateEvents=new t.vpe,this.attachEvents=new t.vpe,this.detachEvents=new t.vpe,this.parentContexts=(0,t.f3M)(ki),this.location=(0,t.f3M)(t.s_b),this.changeDetector=(0,t.f3M)(t.sBO),this.environmentInjector=(0,t.f3M)(t.lqb),this.inputBinder=(0,t.f3M)(Ze,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(y){if(y.name){const{firstChange:x,previousValue:G}=y.name;if(x)return;this.isTrackedInParentContexts(G)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(G)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(y){return this.parentContexts.getContext(y)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const y=this.parentContexts.getContext(this.name);y?.route&&(y.attachRef?this.attach(y.attachRef,y.route):this.activateWith(y.route,y.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new t.vHH(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new t.vHH(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new t.vHH(4012,!1);this.location.detach();const y=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(y.instance),y}attach(y,x){this.activated=y,this._activatedRoute=x,this.location.insert(y.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(y.instance)}deactivate(){if(this.activated){const y=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(y)}}activateWith(y,x){if(this.isActivated)throw new t.vHH(4013,!1);this._activatedRoute=y;const G=this.location,Se=y.snapshot.component,lt=this.parentContexts.getOrCreateContext(this.name).children,pt=new Nr(y,lt,G.injector);this.activated=G.createComponent(Se,{index:G.length,injector:pt,environmentInjector:x??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275dir=t.lG2({type:E,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[t.TTD]})}return E})();class Nr{constructor(M,y,x){this.route=M,this.childContexts=y,this.parent=x}get(M,y){return M===wi?this.route:M===ki?this.childContexts:this.parent.get(M,y)}}const Ze=new t.OlP("");let Ve=(()=>{class E{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(y){this.unsubscribeFromRouteData(y),this.subscribeToRouteData(y)}unsubscribeFromRouteData(y){this.outletDataSubscriptions.get(y)?.unsubscribe(),this.outletDataSubscriptions.delete(y)}subscribeToRouteData(y){const{activatedRoute:x}=y,G=(0,O.a)([x.queryParams,x.params,x.data]).pipe((0,ve.w)(([he,Se,lt],pt)=>(lt={...he,...Se,...lt},0===pt?(0,L.of)(lt):Promise.resolve(lt)))).subscribe(he=>{if(!y.isActivated||!y.activatedComponentRef||y.activatedRoute!==x||null===x.component)return void this.unsubscribeFromRouteData(y);const Se=(0,t.qFp)(x.component);if(Se)for(const{templateName:lt}of Se.inputs)y.activatedComponentRef.setInput(lt,he[lt]);else this.unsubscribeFromRouteData(y)});this.outletDataSubscriptions.set(y,G)}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac})}return E})();function Yt(E,M,y){if(y&&E.shouldReuseRoute(M.value,y.value.snapshot)){const x=y.value;x._futureSnapshot=M.value;const G=function Bt(E,M,y){return M.children.map(x=>{for(const G of y.children)if(E.shouldReuseRoute(x.value,G.value.snapshot))return Yt(E,x,G);return Yt(E,x)})}(E,M,y);return new vr(x,G)}{if(E.shouldAttach(M.value)){const he=E.retrieve(M.value);if(null!==he){const Se=he.route;return Se.value._futureSnapshot=M.value,Se.children=M.children.map(lt=>Yt(E,lt)),Se}}const x=function gr(E){return new wi(new p.X(E.url),new p.X(E.params),new p.X(E.queryParams),new p.X(E.fragment),new p.X(E.data),E.outlet,E.component,E)}(M.value),G=M.children.map(he=>Yt(E,he));return new vr(x,G)}}const Mi="ngNavigationCancelingError";function Yn(E,M){const{redirectTo:y,navigationBehaviorOptions:x}=$n(M)?{redirectTo:M,navigationBehaviorOptions:void 0}:M,G=sr(!1,0,M);return G.url=y,G.navigationBehaviorOptions=x,G}function sr(E,M,y){const x=new Error("NavigationCancelingError: "+(E||""));return x[Mi]=!0,x.cancellationCode=M,y&&(x.url=y),x}function Si(E){return E&&E[Mi]}let di=(()=>{class E{static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275cmp=t.Xpm({type:E,selectors:[["ng-component"]],standalone:!0,features:[t.jDz],decls:1,vars:0,template:function(x,G){1&x&&t._UZ(0,"router-outlet")},dependencies:[bi],encapsulation:2})}return E})();function is(E){const M=E.children&&E.children.map(is),y=M?{...E,children:M}:{...E};return!y.component&&!y.loadComponent&&(M||y.loadChildren)&&y.outlet&&y.outlet!==nt&&(y.component=di),y}function Pr(E){return E.outlet||nt}function Ui(E){if(!E)return null;if(E.routeConfig?._injector)return E.routeConfig._injector;for(let M=E.parent;M;M=M.parent){const y=M.routeConfig;if(y?._loadedInjector)return y._loadedInjector;if(y?._injector)return y._injector}return null}class Pn{constructor(M,y,x,G,he){this.routeReuseStrategy=M,this.futureState=y,this.currState=x,this.forwardEvent=G,this.inputBindingEnabled=he}activate(M){const y=this.futureState._root,x=this.currState?this.currState._root:null;this.deactivateChildRoutes(y,x,M),hr(this.futureState.root),this.activateChildRoutes(y,x,M)}deactivateChildRoutes(M,y,x){const G=Mr(y);M.children.forEach(he=>{const Se=he.value.outlet;this.deactivateRoutes(he,G[Se],x),delete G[Se]}),Object.values(G).forEach(he=>{this.deactivateRouteAndItsChildren(he,x)})}deactivateRoutes(M,y,x){const G=M.value,he=y?y.value:null;if(G===he)if(G.component){const Se=x.getContext(G.outlet);Se&&this.deactivateChildRoutes(M,y,Se.children)}else this.deactivateChildRoutes(M,y,x);else he&&this.deactivateRouteAndItsChildren(y,x)}deactivateRouteAndItsChildren(M,y){M.value.component&&this.routeReuseStrategy.shouldDetach(M.value.snapshot)?this.detachAndStoreRouteSubtree(M,y):this.deactivateRouteAndOutlet(M,y)}detachAndStoreRouteSubtree(M,y){const x=y.getContext(M.value.outlet),G=x&&M.value.component?x.children:y,he=Mr(M);for(const Se of Object.keys(he))this.deactivateRouteAndItsChildren(he[Se],G);if(x&&x.outlet){const Se=x.outlet.detach(),lt=x.children.onOutletDeactivated();this.routeReuseStrategy.store(M.value.snapshot,{componentRef:Se,route:M,contexts:lt})}}deactivateRouteAndOutlet(M,y){const x=y.getContext(M.value.outlet),G=x&&M.value.component?x.children:y,he=Mr(M);for(const Se of Object.keys(he))this.deactivateRouteAndItsChildren(he[Se],G);x&&(x.outlet&&(x.outlet.deactivate(),x.children.onOutletDeactivated()),x.attachRef=null,x.route=null)}activateChildRoutes(M,y,x){const G=Mr(y);M.children.forEach(he=>{this.activateRoutes(he,G[he.value.outlet],x),this.forwardEvent(new ts(he.value.snapshot))}),M.children.length&&this.forwardEvent(new Kr(M.value.snapshot))}activateRoutes(M,y,x){const G=M.value,he=y?y.value:null;if(hr(G),G===he)if(G.component){const Se=x.getOrCreateContext(G.outlet);this.activateChildRoutes(M,y,Se.children)}else this.activateChildRoutes(M,y,x);else if(G.component){const Se=x.getOrCreateContext(G.outlet);if(this.routeReuseStrategy.shouldAttach(G.snapshot)){const lt=this.routeReuseStrategy.retrieve(G.snapshot);this.routeReuseStrategy.store(G.snapshot,null),Se.children.onOutletReAttached(lt.contexts),Se.attachRef=lt.componentRef,Se.route=lt.route.value,Se.outlet&&Se.outlet.attach(lt.componentRef,lt.route.value),hr(lt.route.value),this.activateChildRoutes(M,null,Se.children)}else{const lt=Ui(G.snapshot);Se.attachRef=null,Se.route=G,Se.injector=lt,Se.outlet&&Se.outlet.activateWith(G,Se.injector),this.activateChildRoutes(M,null,Se.children)}}else this.activateChildRoutes(M,null,x)}}class et{constructor(M){this.path=M,this.route=this.path[this.path.length-1]}}class xt{constructor(M,y){this.component=M,this.route=y}}function hn(E,M,y){const x=E._root;return fi(x,M?M._root:null,y,[x.value])}function Ki(E,M){const y=Symbol(),x=M.get(E,y);return x===y?"function"!=typeof E||(0,t.Z0I)(E)?M.get(E):E:x}function fi(E,M,y,x,G={canDeactivateChecks:[],canActivateChecks:[]}){const he=Mr(M);return E.children.forEach(Se=>{(function Hs(E,M,y,x,G={canDeactivateChecks:[],canActivateChecks:[]}){const he=E.value,Se=M?M.value:null,lt=y?y.getContext(E.value.outlet):null;if(Se&&he.routeConfig===Se.routeConfig){const pt=function po(E,M,y){if("function"==typeof y)return y(E,M);switch(y){case"pathParamsChange":return!Wn(E.url,M.url);case"pathParamsOrQueryParamsChange":return!Wn(E.url,M.url)||!Pt(E.queryParams,M.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$r(E,M)||!Pt(E.queryParams,M.queryParams);default:return!$r(E,M)}}(Se,he,he.routeConfig.runGuardsAndResolvers);pt?G.canActivateChecks.push(new et(x)):(he.data=Se.data,he._resolvedData=Se._resolvedData),fi(E,M,he.component?lt?lt.children:null:y,x,G),pt&<&<.outlet&<.outlet.isActivated&&G.canDeactivateChecks.push(new xt(lt.outlet.component,Se))}else Se&&Ds(M,lt,G),G.canActivateChecks.push(new et(x)),fi(E,null,he.component?lt?lt.children:null:y,x,G)})(Se,he[Se.value.outlet],y,x.concat([Se.value]),G),delete he[Se.value.outlet]}),Object.entries(he).forEach(([Se,lt])=>Ds(lt,y.getContext(Se),G)),G}function Ds(E,M,y){const x=Mr(E),G=E.value;Object.entries(x).forEach(([he,Se])=>{Ds(Se,G.component?M?M.children.getContext(he):null:M,y)}),y.canDeactivateChecks.push(new xt(G.component&&M&&M.outlet&&M.outlet.isActivated?M.outlet.component:null,G))}function Xs(E){return"function"==typeof E}function Zn(E){return E instanceof F||"EmptyError"===E?.name}const Ri=Symbol("INITIAL_VALUE");function os(){return(0,ve.w)(E=>(0,O.a)(E.map(M=>M.pipe((0,xe.q)(1),(0,be.O)(Ri)))).pipe((0,_e.U)(M=>{for(const y of M)if(!0!==y){if(y===Ri)return Ri;if(!1===y||y instanceof wn)return y}return!0}),(0,ke.h)(M=>M!==Ri),(0,xe.q)(1)))}function cs(E){return(0,$.z)((0,ze.b)(M=>{if($n(M))throw Yn(0,M)}),(0,_e.U)(M=>!0===M))}class Yi{constructor(M){this.segmentGroup=M||null}}class pi{constructor(M){this.urlTree=M}}function us(E){return(0,f._)(new Yi(E))}function yi(E){return(0,f._)(new pi(E))}class Ps{constructor(M,y){this.urlSerializer=M,this.urlTree=y}noMatchError(M){return new t.vHH(4002,!1)}lineralizeSegments(M,y){let x=[],G=y.root;for(;;){if(x=x.concat(G.segments),0===G.numberOfChildren)return(0,L.of)(x);if(G.numberOfChildren>1||!G.children[nt])return(0,f._)(new t.vHH(4e3,!1));G=G.children[nt]}}applyRedirectCommands(M,y,x){return this.applyRedirectCreateUrlTree(y,this.urlSerializer.parse(y),M,x)}applyRedirectCreateUrlTree(M,y,x,G){const he=this.createSegmentGroup(M,y.root,x,G);return new wn(he,this.createQueryParams(y.queryParams,this.urlTree.queryParams),y.fragment)}createQueryParams(M,y){const x={};return Object.entries(M).forEach(([G,he])=>{if("string"==typeof he&&he.startsWith(":")){const lt=he.substring(1);x[G]=y[lt]}else x[G]=he}),x}createSegmentGroup(M,y,x,G){const he=this.createSegments(M,y.segments,x,G);let Se={};return Object.entries(y.children).forEach(([lt,pt])=>{Se[lt]=this.createSegmentGroup(M,pt,x,G)}),new fn(he,Se)}createSegments(M,y,x,G){return y.map(he=>he.path.startsWith(":")?this.findPosParam(M,he,G):this.findOrReturn(he,x))}findPosParam(M,y,x){const G=x[y.path.substring(1)];if(!G)throw new t.vHH(4001,!1);return G}findOrReturn(M,y){let x=0;for(const G of y){if(G.path===M.path)return y.splice(x),G;x++}return M}}const ro={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function io(E,M,y,x,G){const he=go(E,M,y);return he.matched?(x=function rs(E,M){return E.providers&&!E._injector&&(E._injector=(0,t.MMx)(E.providers,M,`Route: ${E.path}`)),E._injector??M}(M,x),function To(E,M,y,x){const G=M.canMatch;if(!G||0===G.length)return(0,L.of)(!0);const he=G.map(Se=>{const lt=Ki(Se,E);return Rn(function ge(E){return E&&Xs(E.canMatch)}(lt)?lt.canMatch(M,y):E.runInContext(()=>lt(M,y)))});return(0,L.of)(he).pipe(os(),cs())}(x,M,y).pipe((0,_e.U)(Se=>!0===Se?he:{...ro}))):(0,L.of)(he)}function go(E,M,y){if(""===M.path)return"full"===M.pathMatch&&(E.hasChildren()||y.length>0)?{...ro}:{matched:!0,consumedSegments:[],remainingSegments:y,parameters:{},positionalParamSegments:{}};const G=(M.matcher||Tt)(y,E,M);if(!G)return{...ro};const he={};Object.entries(G.posParams??{}).forEach(([lt,pt])=>{he[lt]=pt.path});const Se=G.consumed.length>0?{...he,...G.consumed[G.consumed.length-1].parameters}:he;return{matched:!0,consumedSegments:G.consumed,remainingSegments:y.slice(G.consumed.length),parameters:Se,positionalParamSegments:G.posParams??{}}}function wo(E,M,y,x){return y.length>0&&function ca(E,M,y){return y.some(x=>Cs(E,M,x)&&Pr(x)!==nt)}(E,y,x)?{segmentGroup:new fn(M,so(x,new fn(y,E.children))),slicedSegments:[]}:0===y.length&&function ua(E,M,y){return y.some(x=>Cs(E,M,x))}(E,y,x)?{segmentGroup:new fn(E.segments,Mo(E,0,y,x,E.children)),slicedSegments:y}:{segmentGroup:new fn(E.segments,E.children),slicedSegments:y}}function Mo(E,M,y,x,G){const he={};for(const Se of x)if(Cs(E,y,Se)&&!G[Pr(Se)]){const lt=new fn([],{});he[Pr(Se)]=lt}return{...G,...he}}function so(E,M){const y={};y[nt]=M;for(const x of E)if(""===x.path&&Pr(x)!==nt){const G=new fn([],{});y[Pr(x)]=G}return y}function Cs(E,M,y){return(!(E.hasChildren()||M.length>0)||"full"!==y.pathMatch)&&""===y.path}class fa{constructor(M,y,x,G,he,Se,lt){this.injector=M,this.configLoader=y,this.rootComponentType=x,this.config=G,this.urlTree=he,this.paramsInheritanceStrategy=Se,this.urlSerializer=lt,this.allowRedirects=!0,this.applyRedirects=new Ps(this.urlSerializer,this.urlTree)}noMatchError(M){return new t.vHH(4002,!1)}recognize(){const M=wo(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,M,nt).pipe((0,J.K)(y=>{if(y instanceof pi)return this.allowRedirects=!1,this.urlTree=y.urlTree,this.match(y.urlTree);throw y instanceof Yi?this.noMatchError(y):y}),(0,_e.U)(y=>{const x=new Bi([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},nt,this.rootComponentType,null,{}),G=new vr(x,y),he=new xr("",G),Se=function Qe(E,M,y=null,x=null){return Ue(Le(E),M,y,x)}(x,[],this.urlTree.queryParams,this.urlTree.fragment);return Se.queryParams=this.urlTree.queryParams,he.url=this.urlSerializer.serialize(Se),this.inheritParamsAndData(he._root),{state:he,tree:Se}}))}match(M){return this.processSegmentGroup(this.injector,this.config,M.root,nt).pipe((0,J.K)(x=>{throw x instanceof Yi?this.noMatchError(x):x}))}inheritParamsAndData(M){const y=M.value,x=ui(y,this.paramsInheritanceStrategy);y.params=Object.freeze(x.params),y.data=Object.freeze(x.data),M.children.forEach(G=>this.inheritParamsAndData(G))}processSegmentGroup(M,y,x,G){return 0===x.segments.length&&x.hasChildren()?this.processChildren(M,y,x):this.processSegment(M,y,x,x.segments,G,!0)}processChildren(M,y,x){const G=[];for(const he of Object.keys(x.children))"primary"===he?G.unshift(he):G.push(he);return(0,w.D)(G).pipe((0,Ee.b)(he=>{const Se=x.children[he],lt=function ss(E,M){const y=E.filter(x=>Pr(x)===M);return y.push(...E.filter(x=>Pr(x)!==M)),y}(y,he);return this.processSegmentGroup(M,lt,Se,he)}),(0,Q.R)((he,Se)=>(he.push(...Se),he)),(0,it.d)(null),function se(E,M){const y=arguments.length>=2;return x=>x.pipe(E?(0,ke.h)((G,he)=>E(G,he,x)):_t.y,oe(1),y?(0,it.d)(M):St(()=>new F))}(),(0,vt.z)(he=>{if(null===he)return us(x);const Se=zo(he);return function pa(E){E.sort((M,y)=>M.value.outlet===nt?-1:y.value.outlet===nt?1:M.value.outlet.localeCompare(y.value.outlet))}(Se),(0,L.of)(Se)}))}processSegment(M,y,x,G,he,Se){return(0,w.D)(y).pipe((0,Ee.b)(lt=>this.processSegmentAgainstRoute(lt._injector??M,y,lt,x,G,he,Se).pipe((0,J.K)(pt=>{if(pt instanceof Yi)return(0,L.of)(null);throw pt}))),$e(lt=>!!lt),(0,J.K)(lt=>{if(Zn(lt))return function Rs(E,M,y){return 0===M.length&&!E.children[y]}(x,G,he)?(0,L.of)([]):us(x);throw lt}))}processSegmentAgainstRoute(M,y,x,G,he,Se,lt){return function mo(E,M,y,x){return!!(Pr(E)===x||x!==nt&&Cs(M,y,E))&&("**"===E.path||go(M,E,y).matched)}(x,G,he,Se)?void 0===x.redirectTo?this.matchSegmentAgainstRoute(M,G,x,he,Se,lt):lt&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(M,G,y,x,he,Se):us(G):us(G)}expandSegmentAgainstRouteUsingRedirect(M,y,x,G,he,Se){return"**"===G.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(M,x,G,Se):this.expandRegularSegmentAgainstRouteUsingRedirect(M,y,x,G,he,Se)}expandWildCardWithParamsAgainstRouteUsingRedirect(M,y,x,G){const he=this.applyRedirects.applyRedirectCommands([],x.redirectTo,{});return x.redirectTo.startsWith("/")?yi(he):this.applyRedirects.lineralizeSegments(x,he).pipe((0,vt.z)(Se=>{const lt=new fn(Se,{});return this.processSegment(M,y,lt,Se,G,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(M,y,x,G,he,Se){const{matched:lt,consumedSegments:pt,remainingSegments:en,positionalParamSegments:kn}=go(y,G,he);if(!lt)return us(y);const Rr=this.applyRedirects.applyRedirectCommands(pt,G.redirectTo,kn);return G.redirectTo.startsWith("/")?yi(Rr):this.applyRedirects.lineralizeSegments(G,Rr).pipe((0,vt.z)(or=>this.processSegment(M,x,y,or.concat(en),Se,!1)))}matchSegmentAgainstRoute(M,y,x,G,he,Se){let lt;if("**"===x.path){const pt=G.length>0?un(G).parameters:{},en=new Bi(G,pt,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Zo(x),Pr(x),x.component??x._loadedComponent??null,x,Ko(x));lt=(0,L.of)({snapshot:en,consumedSegments:[],remainingSegments:[]}),y.children={}}else lt=io(y,x,G,M).pipe((0,_e.U)(({matched:pt,consumedSegments:en,remainingSegments:kn,parameters:Rr})=>pt?{snapshot:new Bi(en,Rr,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Zo(x),Pr(x),x.component??x._loadedComponent??null,x,Ko(x)),consumedSegments:en,remainingSegments:kn}:null));return lt.pipe((0,ve.w)(pt=>null===pt?us(y):this.getChildConfig(M=x._injector??M,x,G).pipe((0,ve.w)(({routes:en})=>{const kn=x._loadedInjector??M,{snapshot:Rr,consumedSegments:or,remainingSegments:hi}=pt,{segmentGroup:Gs,slicedSegments:Ns}=wo(y,or,hi,en);if(0===Ns.length&&Gs.hasChildren())return this.processChildren(kn,en,Gs).pipe((0,_e.U)(xn=>null===xn?null:[new vr(Rr,xn)]));if(0===en.length&&0===Ns.length)return(0,L.of)([new vr(Rr,[])]);const gn=Pr(x)===he;return this.processSegment(kn,en,Gs,Ns,gn?nt:he,!0).pipe((0,_e.U)(xn=>[new vr(Rr,xn)]))}))))}getChildConfig(M,y,x){return y.children?(0,L.of)({routes:y.children,injector:M}):y.loadChildren?void 0!==y._loadedRoutes?(0,L.of)({routes:y._loadedRoutes,injector:y._loadedInjector}):function ls(E,M,y,x){const G=M.canLoad;if(void 0===G||0===G.length)return(0,L.of)(!0);const he=G.map(Se=>{const lt=Ki(Se,E);return Rn(function qs(E){return E&&Xs(E.canLoad)}(lt)?lt.canLoad(M,y):E.runInContext(()=>lt(M,y)))});return(0,L.of)(he).pipe(os(),cs())}(M,y,x).pipe((0,vt.z)(G=>G?this.configLoader.loadChildren(M,y).pipe((0,ze.b)(he=>{y._loadedRoutes=he.routes,y._loadedInjector=he.injector})):function Ni(E){return(0,f._)(sr(!1,3))}())):(0,L.of)({routes:[],injector:M})}}function hl(E){const M=E.value.routeConfig;return M&&""===M.path}function zo(E){const M=[],y=new Set;for(const x of E){if(!hl(x)){M.push(x);continue}const G=M.find(he=>x.value.routeConfig===he.value.routeConfig);void 0!==G?(G.children.push(...x.children),y.add(G)):M.push(x)}for(const x of y){const G=zo(x.children);M.push(new vr(x.value,G))}return M.filter(x=>!y.has(x))}function Zo(E){return E.data||{}}function Ko(E){return E.resolve||{}}function xo(E){return"string"==typeof E.title||null===E.title}function T(E){return(0,ve.w)(M=>{const y=E(M);return y?(0,w.D)(y).pipe((0,_e.U)(()=>M)):(0,L.of)(M)})}const le=new t.OlP("ROUTES");let U=(()=>{class E{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,t.f3M)(t.Sil)}loadComponent(y){if(this.componentLoaders.get(y))return this.componentLoaders.get(y);if(y._loadedComponent)return(0,L.of)(y._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(y);const x=Rn(y.loadComponent()).pipe((0,_e.U)(gt),(0,ze.b)(he=>{this.onLoadEndListener&&this.onLoadEndListener(y),y._loadedComponent=he}),(0,fe.x)(()=>{this.componentLoaders.delete(y)})),G=new Me(x,()=>new ye.x).pipe(Te());return this.componentLoaders.set(y,G),G}loadChildren(y,x){if(this.childrenLoaders.get(x))return this.childrenLoaders.get(x);if(x._loadedRoutes)return(0,L.of)({routes:x._loadedRoutes,injector:x._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(x);const he=function ee(E,M,y,x){return Rn(E.loadChildren()).pipe((0,_e.U)(gt),(0,vt.z)(G=>G instanceof t.YKP||Array.isArray(G)?(0,L.of)(G):(0,w.D)(M.compileModuleAsync(G))),(0,_e.U)(G=>{x&&x(E);let he,Se,lt=!1;return Array.isArray(G)?(Se=G,!0):(he=G.create(y).injector,Se=he.get(le,[],{optional:!0,self:!0}).flat()),{routes:Se.map(is),injector:he}}))}(x,this.compiler,y,this.onLoadEndListener).pipe((0,fe.x)(()=>{this.childrenLoaders.delete(x)})),Se=new Me(he,()=>new ye.x).pipe(Te());return this.childrenLoaders.set(x,Se),Se}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();function gt(E){return function Ie(E){return E&&"object"==typeof E&&"default"in E}(E)?E.default:E}let Ct=(()=>{class E{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ye.x,this.transitionAbortSubject=new ye.x,this.configLoader=(0,t.f3M)(U),this.environmentInjector=(0,t.f3M)(t.lqb),this.urlSerializer=(0,t.f3M)(Er),this.rootContexts=(0,t.f3M)(ki),this.inputBindingEnabled=null!==(0,t.f3M)(Ze,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,L.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=G=>this.events.next(new ir(G)),this.configLoader.onLoadStartListener=G=>this.events.next(new Nn(G))}complete(){this.transitions?.complete()}handleNavigationRequest(y){const x=++this.navigationId;this.transitions?.next({...this.transitions.value,...y,id:x})}setupNavigations(y,x,G){return this.transitions=new p.X({id:0,currentUrlTree:x,currentRawUrl:x,currentBrowserUrl:x,extractedUrl:y.urlHandlingStrategy.extract(x),urlAfterRedirects:y.urlHandlingStrategy.extract(x),rawUrl:x,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:z,restoredState:null,currentSnapshot:G.snapshot,targetSnapshot:null,currentRouterState:G,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,ke.h)(he=>0!==he.id),(0,_e.U)(he=>({...he,extractedUrl:y.urlHandlingStrategy.extract(he.rawUrl)})),(0,ve.w)(he=>{this.currentTransition=he;let Se=!1,lt=!1;return(0,L.of)(he).pipe((0,ze.b)(pt=>{this.currentNavigation={id:pt.id,initialUrl:pt.rawUrl,extractedUrl:pt.extractedUrl,trigger:pt.source,extras:pt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,ve.w)(pt=>{const en=pt.currentBrowserUrl.toString(),kn=!y.navigated||pt.extractedUrl.toString()!==en||en!==pt.currentUrlTree.toString();if(!kn&&"reload"!==(pt.extras.onSameUrlNavigation??y.onSameUrlNavigation)){const or="";return this.events.next(new Oe(pt.id,this.urlSerializer.serialize(pt.rawUrl),or,0)),pt.resolve(null),j.E}if(y.urlHandlingStrategy.shouldProcessUrl(pt.rawUrl))return(0,L.of)(pt).pipe((0,ve.w)(or=>{const hi=this.transitions?.getValue();return this.events.next(new D(or.id,this.urlSerializer.serialize(or.extractedUrl),or.source,or.restoredState)),hi!==this.transitions?.getValue()?j.E:Promise.resolve(or)}),function _o(E,M,y,x,G,he){return(0,vt.z)(Se=>function da(E,M,y,x,G,he,Se="emptyOnly"){return new fa(E,M,y,x,G,Se,he).recognize()}(E,M,y,x,Se.extractedUrl,G,he).pipe((0,_e.U)(({state:lt,tree:pt})=>({...Se,targetSnapshot:lt,urlAfterRedirects:pt}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,y.config,this.urlSerializer,y.paramsInheritanceStrategy),(0,ze.b)(or=>{he.targetSnapshot=or.targetSnapshot,he.urlAfterRedirects=or.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:or.urlAfterRedirects};const hi=new mt(or.id,this.urlSerializer.serialize(or.extractedUrl),this.urlSerializer.serialize(or.urlAfterRedirects),or.targetSnapshot);this.events.next(hi)}));if(kn&&y.urlHandlingStrategy.shouldProcessUrl(pt.currentRawUrl)){const{id:or,extractedUrl:hi,source:Gs,restoredState:Ns,extras:gn}=pt,xn=new D(or,this.urlSerializer.serialize(hi),Gs,Ns);this.events.next(xn);const yn=ci(0,this.rootComponentType).snapshot;return this.currentTransition=he={...pt,targetSnapshot:yn,urlAfterRedirects:hi,extras:{...gn,skipLocationChange:!1,replaceUrl:!1}},(0,L.of)(he)}{const or="";return this.events.next(new Oe(pt.id,this.urlSerializer.serialize(pt.extractedUrl),or,1)),pt.resolve(null),j.E}}),(0,ze.b)(pt=>{const en=new $t(pt.id,this.urlSerializer.serialize(pt.extractedUrl),this.urlSerializer.serialize(pt.urlAfterRedirects),pt.targetSnapshot);this.events.next(en)}),(0,_e.U)(pt=>(this.currentTransition=he={...pt,guards:hn(pt.targetSnapshot,pt.currentSnapshot,this.rootContexts)},he)),function eo(E,M){return(0,vt.z)(y=>{const{targetSnapshot:x,currentSnapshot:G,guards:{canActivateChecks:he,canDeactivateChecks:Se}}=y;return 0===Se.length&&0===he.length?(0,L.of)({...y,guardsResult:!0}):function Pa(E,M,y,x){return(0,w.D)(E).pipe((0,vt.z)(G=>function ho(E,M,y,x,G){const he=M&&M.routeConfig?M.routeConfig.canDeactivate:null;if(!he||0===he.length)return(0,L.of)(!0);const Se=he.map(lt=>{const pt=Ui(M)??G,en=Ki(lt,pt);return Rn(function N(E){return E&&Xs(E.canDeactivate)}(en)?en.canDeactivate(E,M,y,x):pt.runInContext(()=>en(E,M,y,x))).pipe($e())});return(0,L.of)(Se).pipe(os())}(G.component,G.route,y,M,x)),$e(G=>!0!==G,!0))}(Se,x,G,E).pipe((0,vt.z)(lt=>lt&&function Co(E){return"boolean"==typeof E}(lt)?function as(E,M,y,x){return(0,w.D)(M).pipe((0,Ee.b)(G=>(0,P.z)(function Vs(E,M){return null!==E&&M&&M(new _r(E)),(0,L.of)(!0)}(G.route.parent,x),function to(E,M){return null!==E&&M&&M(new Yr(E)),(0,L.of)(!0)}(G.route,x),function Ra(E,M,y){const x=M[M.length-1],he=M.slice(0,M.length-1).reverse().map(Se=>function Gr(E){const M=E.routeConfig?E.routeConfig.canActivateChild:null;return M&&0!==M.length?{node:E,guards:M}:null}(Se)).filter(Se=>null!==Se).map(Se=>(0,B.P)(()=>{const lt=Se.guards.map(pt=>{const en=Ui(Se.node)??y,kn=Ki(pt,en);return Rn(function re(E){return E&&Xs(E.canActivateChild)}(kn)?kn.canActivateChild(x,E):en.runInContext(()=>kn(x,E))).pipe($e())});return(0,L.of)(lt).pipe(os())}));return(0,L.of)(he).pipe(os())}(E,G.path,y),function Go(E,M,y){const x=M.routeConfig?M.routeConfig.canActivate:null;if(!x||0===x.length)return(0,L.of)(!0);const G=x.map(he=>(0,B.P)(()=>{const Se=Ui(M)??y,lt=Ki(he,Se);return Rn(function Y(E){return E&&Xs(E.canActivate)}(lt)?lt.canActivate(M,E):Se.runInContext(()=>lt(M,E))).pipe($e())}));return(0,L.of)(G).pipe(os())}(E,G.route,y))),$e(G=>!0!==G,!0))}(x,he,E,M):(0,L.of)(lt)),(0,_e.U)(lt=>({...y,guardsResult:lt})))})}(this.environmentInjector,pt=>this.events.next(pt)),(0,ze.b)(pt=>{if(he.guardsResult=pt.guardsResult,$n(pt.guardsResult))throw Yn(0,pt.guardsResult);const en=new ln(pt.id,this.urlSerializer.serialize(pt.extractedUrl),this.urlSerializer.serialize(pt.urlAfterRedirects),pt.targetSnapshot,!!pt.guardsResult);this.events.next(en)}),(0,ke.h)(pt=>!!pt.guardsResult||(this.cancelNavigationTransition(pt,"",3),!1)),T(pt=>{if(pt.guards.canActivateChecks.length)return(0,L.of)(pt).pipe((0,ze.b)(en=>{const kn=new _n(en.id,this.urlSerializer.serialize(en.extractedUrl),this.urlSerializer.serialize(en.urlAfterRedirects),en.targetSnapshot);this.events.next(kn)}),(0,ve.w)(en=>{let kn=!1;return(0,L.of)(en).pipe(function ha(E,M){return(0,vt.z)(y=>{const{targetSnapshot:x,guards:{canActivateChecks:G}}=y;if(!G.length)return(0,L.of)(y);let he=0;return(0,w.D)(G).pipe((0,Ee.b)(Se=>function Ao(E,M,y,x){const G=E.routeConfig,he=E._resolve;return void 0!==G?.title&&!xo(G)&&(he[wt]=G.title),function Na(E,M,y,x){const G=function La(E){return[...Object.keys(E),...Object.getOwnPropertySymbols(E)]}(E);if(0===G.length)return(0,L.of)({});const he={};return(0,w.D)(G).pipe((0,vt.z)(Se=>function oo(E,M,y,x){const G=Ui(M)??x,he=Ki(E,G);return Rn(he.resolve?he.resolve(M,y):G.runInContext(()=>he(M,y)))}(E[Se],M,y,x).pipe($e(),(0,ze.b)(lt=>{he[Se]=lt}))),oe(1),(0,ae.h)(he),(0,J.K)(Se=>Zn(Se)?j.E:(0,f._)(Se)))}(he,E,M,x).pipe((0,_e.U)(Se=>(E._resolvedData=Se,E.data=ui(E,y).resolve,G&&xo(G)&&(E.data[wt]=G.title),null)))}(Se.route,x,E,M)),(0,ze.b)(()=>he++),oe(1),(0,vt.z)(Se=>he===G.length?(0,L.of)(y):j.E))})}(y.paramsInheritanceStrategy,this.environmentInjector),(0,ze.b)({next:()=>kn=!0,complete:()=>{kn||this.cancelNavigationTransition(en,"",2)}}))}),(0,ze.b)(en=>{const kn=new bn(en.id,this.urlSerializer.serialize(en.extractedUrl),this.urlSerializer.serialize(en.urlAfterRedirects),en.targetSnapshot);this.events.next(kn)}))}),T(pt=>{const en=kn=>{const Rr=[];kn.routeConfig?.loadComponent&&!kn.routeConfig._loadedComponent&&Rr.push(this.configLoader.loadComponent(kn.routeConfig).pipe((0,ze.b)(or=>{kn.component=or}),(0,_e.U)(()=>{})));for(const or of kn.children)Rr.push(...en(or));return Rr};return(0,O.a)(en(pt.targetSnapshot.root)).pipe((0,it.d)(),(0,xe.q)(1))}),T(()=>this.afterPreactivation()),(0,_e.U)(pt=>{const en=function ct(E,M,y){const x=Yt(E,M._root,y?y._root:void 0);return new vi(x,M)}(y.routeReuseStrategy,pt.targetSnapshot,pt.currentRouterState);return this.currentTransition=he={...pt,targetRouterState:en},he}),(0,ze.b)(()=>{this.events.next(new Ti)}),((E,M,y,x)=>(0,_e.U)(G=>(new Pn(M,G.targetRouterState,G.currentRouterState,y,x).activate(E),G)))(this.rootContexts,y.routeReuseStrategy,pt=>this.events.next(pt),this.inputBindingEnabled),(0,xe.q)(1),(0,ze.b)({next:pt=>{Se=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new X(pt.id,this.urlSerializer.serialize(pt.extractedUrl),this.urlSerializer.serialize(pt.urlAfterRedirects))),y.titleStrategy?.updateTitle(pt.targetRouterState.snapshot),pt.resolve(!0)},complete:()=>{Se=!0}}),(0,De.R)(this.transitionAbortSubject.pipe((0,ze.b)(pt=>{throw pt}))),(0,fe.x)(()=>{Se||lt||this.cancelNavigationTransition(he,"",1),this.currentNavigation?.id===he.id&&(this.currentNavigation=null)}),(0,J.K)(pt=>{if(lt=!0,Si(pt))this.events.next(new de(he.id,this.urlSerializer.serialize(he.extractedUrl),pt.message,pt.cancellationCode)),function Wr(E){return Si(E)&&$n(E.url)}(pt)?this.events.next(new ms(pt.url)):he.resolve(!1);else{this.events.next(new Ae(he.id,this.urlSerializer.serialize(he.extractedUrl),pt,he.targetSnapshot??void 0));try{he.resolve(y.errorHandler(pt))}catch(en){he.reject(en)}}return j.E}))}))}cancelNavigationTransition(y,x,G){const he=new de(y.id,this.urlSerializer.serialize(y.extractedUrl),x,G);this.events.next(he),y.resolve(!1)}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();function Jt(E){return E!==z}let Bn=(()=>{class E{buildTitle(y){let x,G=y.root;for(;void 0!==G;)x=this.getResolvedTitleForRoute(G)??x,G=G.children.find(he=>he.outlet===nt);return x}getResolvedTitleForRoute(y){return y.data[wt]}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:function(){return(0,t.f3M)(dr)},providedIn:"root"})}return E})(),dr=(()=>{class E extends Bn{constructor(y){super(),this.title=y}updateTitle(y){const x=this.buildTitle(y);void 0!==x&&this.title.setTitle(x)}static#e=this.\u0275fac=function(x){return new(x||E)(t.LFG(Xe.Dx))};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})(),yr=(()=>{class E{static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:function(){return(0,t.f3M)(Jr)},providedIn:"root"})}return E})();class Kn{shouldDetach(M){return!1}store(M,y){}shouldAttach(M){return!1}retrieve(M){return null}shouldReuseRoute(M,y){return M.routeConfig===y.routeConfig}}let Jr=(()=>{class E extends Kn{static#e=this.\u0275fac=function(){let y;return function(G){return(y||(y=t.n5z(E)))(G||E)}}();static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();const Jn=new t.OlP("",{providedIn:"root",factory:()=>({})});let ei=(()=>{class E{static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:function(){return(0,t.f3M)(Ei)},providedIn:"root"})}return E})(),Ei=(()=>{class E{shouldProcessUrl(y){return!0}extract(y){return y}merge(y,x){return y}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();var Ai=function(E){return E[E.COMPLETE=0]="COMPLETE",E[E.FAILED=1]="FAILED",E[E.REDIRECTING=2]="REDIRECTING",E}(Ai||{});function Hi(E,M){E.events.pipe((0,ke.h)(y=>y instanceof X||y instanceof de||y instanceof Ae||y instanceof Oe),(0,_e.U)(y=>y instanceof X||y instanceof Oe?Ai.COMPLETE:y instanceof de&&(0===y.code||1===y.code)?Ai.REDIRECTING:Ai.FAILED),(0,ke.h)(y=>y!==Ai.REDIRECTING),(0,xe.q)(1)).subscribe(()=>{M()})}function Li(E){throw E}function ti(E,M,y){return M.parse("/")}const ds={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ts={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let er=(()=>{class E{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,t.f3M)(t.c2e),this.isNgZoneEnabled=!1,this._events=new ye.x,this.options=(0,t.f3M)(Jn,{optional:!0})||{},this.pendingTasks=(0,t.f3M)(t.HDt),this.errorHandler=this.options.errorHandler||Li,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||ti,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,t.f3M)(ei),this.routeReuseStrategy=(0,t.f3M)(yr),this.titleStrategy=(0,t.f3M)(Bn),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=(0,t.f3M)(le,{optional:!0})?.flat()??[],this.navigationTransitions=(0,t.f3M)(Ct),this.urlSerializer=(0,t.f3M)(Er),this.location=(0,t.f3M)(ce.Ye),this.componentInputBindingEnabled=!!(0,t.f3M)(Ze,{optional:!0}),this.eventsSubscription=new q.w0,this.isNgZoneEnabled=(0,t.f3M)(t.R0b)instanceof t.R0b&&t.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new wn,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ci(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(y=>{this.lastSuccessfulId=y.id,this.currentPageId=this.browserPageId},y=>{this.console.warn(`Unhandled Navigation Error: ${y}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const y=this.navigationTransitions.events.subscribe(x=>{try{const{currentTransition:G}=this.navigationTransitions;if(null===G)return void(li(x)&&this._events.next(x));if(x instanceof D)Jt(G.source)&&(this.browserUrlTree=G.extractedUrl);else if(x instanceof Oe)this.rawUrlTree=G.rawUrl;else if(x instanceof mt){if("eager"===this.urlUpdateStrategy){if(!G.extras.skipLocationChange){const he=this.urlHandlingStrategy.merge(G.urlAfterRedirects,G.rawUrl);this.setBrowserUrl(he,G)}this.browserUrlTree=G.urlAfterRedirects}}else if(x instanceof Ti)this.currentUrlTree=G.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(G.urlAfterRedirects,G.rawUrl),this.routerState=G.targetRouterState,"deferred"===this.urlUpdateStrategy&&(G.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,G),this.browserUrlTree=G.urlAfterRedirects);else if(x instanceof de)0!==x.code&&1!==x.code&&(this.navigated=!0),(3===x.code||2===x.code)&&this.restoreHistory(G);else if(x instanceof ms){const he=this.urlHandlingStrategy.merge(x.url,G.currentRawUrl),Se={skipLocationChange:G.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Jt(G.source)};this.scheduleNavigation(he,z,null,Se,{resolve:G.resolve,reject:G.reject,promise:G.promise})}x instanceof Ae&&this.restoreHistory(G,!0),x instanceof X&&(this.navigated=!0),li(x)&&this._events.next(x)}catch(G){this.navigationTransitions.transitionAbortSubject.next(G)}});this.eventsSubscription.add(y)}resetRootComponentType(y){this.routerState.root.component=y,this.navigationTransitions.rootComponentType=y}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const y=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),z,y)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(y=>{const x="popstate"===y.type?"popstate":"hashchange";"popstate"===x&&setTimeout(()=>{this.navigateToSyncWithBrowser(y.url,x,y.state)},0)}))}navigateToSyncWithBrowser(y,x,G){const he={replaceUrl:!0},Se=G?.navigationId?G:null;if(G){const pt={...G};delete pt.navigationId,delete pt.\u0275routerPageId,0!==Object.keys(pt).length&&(he.state=pt)}const lt=this.parseUrl(y);this.scheduleNavigation(lt,x,Se,he)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(y){this.config=y.map(is),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(y,x={}){const{relativeTo:G,queryParams:he,fragment:Se,queryParamsHandling:lt,preserveFragment:pt}=x,en=pt?this.currentUrlTree.fragment:Se;let Rr,kn=null;switch(lt){case"merge":kn={...this.currentUrlTree.queryParams,...he};break;case"preserve":kn=this.currentUrlTree.queryParams;break;default:kn=he||null}null!==kn&&(kn=this.removeEmptyProps(kn));try{Rr=Le(G?G.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof y[0]||!y[0].startsWith("/"))&&(y=[]),Rr=this.currentUrlTree.root}return Ue(Rr,y,kn,en??null)}navigateByUrl(y,x={skipLocationChange:!1}){const G=$n(y)?y:this.parseUrl(y),he=this.urlHandlingStrategy.merge(G,this.rawUrlTree);return this.scheduleNavigation(he,z,null,x)}navigate(y,x={skipLocationChange:!1}){return function ws(E){for(let M=0;M{const he=y[G];return null!=he&&(x[G]=he),x},{})}scheduleNavigation(y,x,G,he,Se){if(this.disposed)return Promise.resolve(!1);let lt,pt,en;Se?(lt=Se.resolve,pt=Se.reject,en=Se.promise):en=new Promise((Rr,or)=>{lt=Rr,pt=or});const kn=this.pendingTasks.add();return Hi(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(kn))}),this.navigationTransitions.handleNavigationRequest({source:x,restoredState:G,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:y,extras:he,resolve:lt,reject:pt,promise:en,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),en.catch(Rr=>Promise.reject(Rr))}setBrowserUrl(y,x){const G=this.urlSerializer.serialize(y);if(this.location.isCurrentPathEqualTo(G)||x.extras.replaceUrl){const Se={...x.extras.state,...this.generateNgRouterState(x.id,this.browserPageId)};this.location.replaceState(G,"",Se)}else{const he={...x.extras.state,...this.generateNgRouterState(x.id,this.browserPageId+1)};this.location.go(G,"",he)}}restoreHistory(y,x=!1){if("computed"===this.canceledNavigationResolution){const he=this.currentPageId-this.browserPageId;0!==he?this.location.historyGo(he):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===he&&(this.resetState(y),this.browserUrlTree=y.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(x&&this.resetState(y),this.resetUrlToCurrentUrlTree())}resetState(y){this.routerState=y.currentRouterState,this.currentUrlTree=y.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,y.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(y,x){return"computed"===this.canceledNavigationResolution?{navigationId:y,\u0275routerPageId:x}:{navigationId:y}}static#e=this.\u0275fac=function(x){return new(x||E)};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();function li(E){return!(E instanceof Ti||E instanceof ms)}let Di=(()=>{class E{constructor(y,x,G,he,Se,lt){this.router=y,this.route=x,this.tabIndexAttribute=G,this.renderer=he,this.el=Se,this.locationStrategy=lt,this.href=null,this.commands=null,this.onChanges=new ye.x,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const pt=Se.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===pt||"area"===pt,this.isAnchorElement?this.subscription=y.events.subscribe(en=>{en instanceof X&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(y){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",y)}ngOnChanges(y){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(y){null!=y?(this.commands=Array.isArray(y)?y:[y],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(y,x,G,he,Se){return!!(null===this.urlTree||this.isAnchorElement&&(0!==y||x||G||he||Se||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const y=null===this.href?null:(0,t.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",y)}applyAttributeValue(y,x){const G=this.renderer,he=this.el.nativeElement;null!==x?G.setAttribute(he,y,x):G.removeAttribute(he,y)}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#e=this.\u0275fac=function(x){return new(x||E)(t.Y36(er),t.Y36(wi),t.$8M("tabindex"),t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(ce.S$))};static#t=this.\u0275dir=t.lG2({type:E,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(x,G){1&x&&t.NdJ("click",function(Se){return G.onClick(Se.button,Se.ctrlKey,Se.shiftKey,Se.altKey,Se.metaKey)}),2&x&&t.uIk("target",G.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",t.VuI],skipLocationChange:["skipLocationChange","skipLocationChange",t.VuI],replaceUrl:["replaceUrl","replaceUrl",t.VuI],routerLink:"routerLink"},standalone:!0,features:[t.Xq5,t.TTD]})}return E})(),ga=(()=>{class E{get isActive(){return this._isActive}constructor(y,x,G,he,Se){this.router=y,this.element=x,this.renderer=G,this.cdr=he,this.link=Se,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.vpe,this.routerEventsSubscription=y.events.subscribe(lt=>{lt instanceof X&&this.update()})}ngAfterContentInit(){(0,L.of)(this.links.changes,(0,L.of)(null)).pipe((0,je.J)()).subscribe(y=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const y=[...this.links.toArray(),this.link].filter(x=>!!x).map(x=>x.onChanges);this.linkInputChangesSubscription=(0,w.D)(y).pipe((0,je.J)()).subscribe(x=>{this._isActive!==this.isLinkActive(this.router)(x)&&this.update()})}set routerLinkActive(y){const x=Array.isArray(y)?y:y.split(" ");this.classes=x.filter(G=>!!G)}ngOnChanges(y){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const y=this.hasActiveLinks();this._isActive!==y&&(this._isActive=y,this.cdr.markForCheck(),this.classes.forEach(x=>{y?this.renderer.addClass(this.element.nativeElement,x):this.renderer.removeClass(this.element.nativeElement,x)}),y&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(y))})}isLinkActive(y){const x=function Oo(E){return!!E.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return G=>!!G.urlTree&&y.isActive(G.urlTree,x)}hasActiveLinks(){const y=this.isLinkActive(this.router);return this.link&&y(this.link)||this.links.some(y)}static#e=this.\u0275fac=function(x){return new(x||E)(t.Y36(er),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(Di,8))};static#t=this.\u0275dir=t.lG2({type:E,selectors:[["","routerLinkActive",""]],contentQueries:function(x,G,he){if(1&x&&t.Suo(he,Di,5),2&x){let Se;t.iGM(Se=t.CRH())&&(G.links=Se)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[t.TTD]})}return E})();class Ji{}let Io=(()=>{class E{constructor(y,x,G,he,Se){this.router=y,this.injector=G,this.preloadingStrategy=he,this.loader=Se}setUpPreloading(){this.subscription=this.router.events.pipe((0,ke.h)(y=>y instanceof X),(0,Ee.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(y,x){const G=[];for(const he of x){he.providers&&!he._injector&&(he._injector=(0,t.MMx)(he.providers,y,`Route: ${he.path}`));const Se=he._injector??y,lt=he._loadedInjector??Se;(he.loadChildren&&!he._loadedRoutes&&void 0===he.canLoad||he.loadComponent&&!he._loadedComponent)&&G.push(this.preloadConfig(Se,he)),(he.children||he._loadedRoutes)&&G.push(this.processRoutes(lt,he.children??he._loadedRoutes))}return(0,w.D)(G).pipe((0,je.J)())}preloadConfig(y,x){return this.preloadingStrategy.preload(x,()=>{let G;G=x.loadChildren&&void 0===x.canLoad?this.loader.loadChildren(y,x):(0,L.of)(null);const he=G.pipe((0,vt.z)(Se=>null===Se?(0,L.of)(void 0):(x._loadedRoutes=Se.routes,x._loadedInjector=Se.injector,this.processRoutes(Se.injector??y,Se.routes))));if(x.loadComponent&&!x._loadedComponent){const Se=this.loader.loadComponent(x);return(0,w.D)([he,Se]).pipe((0,je.J)())}return he})}static#e=this.\u0275fac=function(x){return new(x||E)(t.LFG(er),t.LFG(t.Sil),t.LFG(t.lqb),t.LFG(Ji),t.LFG(U))};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();const $s=new t.OlP("");let fs=(()=>{class E{constructor(y,x,G,he,Se={}){this.urlSerializer=y,this.transitions=x,this.viewportScroller=G,this.zone=he,this.options=Se,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Se.scrollPositionRestoration=Se.scrollPositionRestoration||"disabled",Se.anchorScrolling=Se.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(y=>{y instanceof D?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=y.navigationTrigger,this.restoredId=y.restoredState?y.restoredState.navigationId:0):y instanceof X?(this.lastId=y.id,this.scheduleScrollEvent(y,this.urlSerializer.parse(y.urlAfterRedirects).fragment)):y instanceof Oe&&0===y.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(y,this.urlSerializer.parse(y.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(y=>{y instanceof _i&&(y.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(y.position):y.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(y.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(y,x){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new _i(y,"popstate"===this.lastSource?this.store[this.restoredId]:null,x))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(x){t.$Z()};static#t=this.\u0275prov=t.Yz7({token:E,factory:E.\u0275fac})}return E})();function xi(E,M){return{\u0275kind:E,\u0275providers:M}}function Yo(){const E=(0,t.f3M)(t.zs3);return M=>{const y=E.get(t.z2F);if(M!==y.components[0])return;const x=E.get(er),G=E.get(_a);1===E.get(Ro)&&x.initialNavigation(),E.get(Ms,null,t.XFs.Optional)?.setUpPreloading(),E.get($s,null,t.XFs.Optional)?.init(),x.resetRootComponentType(y.componentTypes[0]),G.closed||(G.next(),G.complete(),G.unsubscribe())}}const _a=new t.OlP("",{factory:()=>new ye.x}),Ro=new t.OlP("",{providedIn:"root",factory:()=>1}),Ms=new t.OlP("");function ml(E){return xi(0,[{provide:Ms,useExisting:Io},{provide:Ji,useExisting:E}])}const mr=new t.OlP("ROUTER_FORROOT_GUARD"),W=[ce.Ye,{provide:Er,useClass:st},er,ki,{provide:wi,useFactory:function ma(E){return E.routerState.root},deps:[er]},U,[]];function h(){return new t.PXZ("Router",er)}let v=(()=>{class E{constructor(y){}static forRoot(y,x){return{ngModule:E,providers:[W,[],{provide:le,multi:!0,useValue:y},{provide:mr,useFactory:Ne,deps:[[er,new t.FiY,new t.tp0]]},{provide:Jn,useValue:x||{}},x?.useHash?{provide:ce.S$,useClass:ce.Do}:{provide:ce.S$,useClass:ce.b0},{provide:$s,useFactory:()=>{const E=(0,t.f3M)(ce.EM),M=(0,t.f3M)(t.R0b),y=(0,t.f3M)(Jn),x=(0,t.f3M)(Ct),G=(0,t.f3M)(Er);return y.scrollOffset&&E.setOffset(y.scrollOffset),new fs(G,x,E,M,y)}},x?.preloadingStrategy?ml(x.preloadingStrategy).\u0275providers:[],{provide:t.PXZ,multi:!0,useFactory:h},x?.initialNavigation?Fe(x):[],x?.bindToComponentInputs?xi(8,[Ve,{provide:Ze,useExisting:Ve}]).\u0275providers:[],[{provide:ot,useFactory:Yo},{provide:t.tb,multi:!0,useExisting:ot}]]}}static forChild(y){return{ngModule:E,providers:[{provide:le,multi:!0,useValue:y}]}}static#e=this.\u0275fac=function(x){return new(x||E)(t.LFG(mr,8))};static#t=this.\u0275mod=t.oAB({type:E});static#n=this.\u0275inj=t.cJS({})}return E})();function Ne(E){return"guarded"}function Fe(E){return["disabled"===E.initialNavigation?xi(3,[{provide:t.ip1,multi:!0,useFactory:()=>{const M=(0,t.f3M)(er);return()=>{M.setUpLocationChangeListener()}}},{provide:Ro,useValue:2}]).\u0275providers:[],"enabledBlocking"===E.initialNavigation?xi(2,[{provide:Ro,useValue:0},{provide:t.ip1,multi:!0,deps:[t.zs3],useFactory:M=>{const y=M.get(ce.V_,Promise.resolve());return()=>y.then(()=>new Promise(x=>{const G=M.get(er),he=M.get(_a);Hi(G,()=>{x(!0)}),M.get(Ct).afterPreactivation=()=>(x(!0),he.closed?(0,L.of)(void 0):he),G.initialNavigation()}))}}]).\u0275providers:[]]}const ot=new t.OlP("")},253:(Pe,V,a)=>{"use strict";a.d(V,{gY:()=>vo,Kz:()=>Da,DO:()=>ri,s5:()=>Ou,NG:()=>bc,jt:()=>Lo,TH:()=>Mc,Vi:()=>Ya,iD:()=>Pu,J4:()=>Cu,Be:()=>Eu,FF:()=>Lu,IJ:()=>Hc,Gk:()=>Po,gW:()=>fs,k9:()=>Io,Iv:()=>Yu,_L:()=>Pf,dR:()=>kc});var t=a(5879),d=a(5592),w=a(6232),L=a(2096),p=a(8645),O=a(2438),R=a(4825),F=a(4829);const{isArray:P}=Array;function B(l){return 1===l.length&&P(l[0])?l[0]:l}var $=a(8251);function f(...l){return 1===(l=B(l)).length?(0,F.Xf)(l[0]):new d.y(function j(l){return C=>{let s=[];for(let c=0;s&&!C.closed&&c{if(s){for(let H=0;H{let m=s.map(()=>[]),H=s.map(()=>!1);c.add(()=>{m=H=null});for(let ne=0;!c.closed&&ne{if(m[ne].push(Be),m.every(Ge=>Ge.length)){const Ge=m.map(ut=>ut.shift());c.next(C?C(...Ge):Ge),m.some((ut,ht)=>!ut.length&&H[ht])&&c.complete()}},()=>{H[ne]=!0,!m[ne].length&&c.complete()}));return()=>{m=H=null}}):w.E}var k=a(5619),Te=a(5211),ye=a(9773),ce=a(2181),_e=a(8180),ve=a(9397),xe=a(7398),be=a(2460),ke=a(6321),vt=a(9360),it=a(2420),qe=a(975),_t=a(1631);function $e(l,C){return C?s=>(0,Te.z)(C.pipe((0,_e.q)(1),function St(){return(0,vt.e)((l,C)=>{l.subscribe((0,$.x)(C,it.Z))})}()),s.pipe($e(l))):(0,_t.z)((s,c)=>(0,F.Xf)(l(s,c)).pipe((0,_e.q)(1),(0,qe.h)(s)))}function Ee(l,C=ke.z){const s=(0,R.H)(l,C);return $e(()=>s)}var ze=a(4664),se=(a(7921),a(3997),a(836),a(3020)),ae=a(6814),fe=a(6223),De={left:"right",right:"left",bottom:"top",top:"bottom"};function je(l){return l.replace(/left|right|bottom|top/g,function(C){return De[C]})}function Xe(l){return l.split("-")[0]}var nt={start:"end",end:"start"};function wt(l){return l.replace(/start|end/g,function(C){return nt[C]})}var It="top",Je="bottom",Tt="right",tt="left",Pt="auto",zt=[It,Je,Tt,tt],un="start",Rn="end",Ye="viewport",At="popper",tn=zt.reduce(function(l,C){return l.concat([C+"-"+un,C+"-"+Rn])},[]),Et=[].concat(zt,[Pt]).reduce(function(l,C){return l.concat([C,C+"-"+un,C+"-"+Rn])},[]),Er=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function st(l){if(null==l)return window;if("[object Window]"!==l.toString()){var C=l.ownerDocument;return C&&C.defaultView||window}return l}function Ut(l){return l instanceof st(l).Element||l instanceof Element}function Qt(l){return l instanceof st(l).HTMLElement||l instanceof HTMLElement}function Dn(l){return!(typeof ShadowRoot>"u")&&(l instanceof st(l).ShadowRoot||l instanceof ShadowRoot)}function Sn(l){return((Ut(l)?l.ownerDocument:l.document)||window.document).documentElement}var On=Math.max,nr=Math.min,Dr=Math.round;function wr(){var l=navigator.userAgentData;return null!=l&&l.brands&&Array.isArray(l.brands)?l.brands.map(function(C){return C.brand+"/"+C.version}).join(" "):navigator.userAgent}function Or(){return!/^((?!chrome|android).)*safari/i.test(wr())}function Ir(l,C,s){void 0===C&&(C=!1),void 0===s&&(s=!1);var c=l.getBoundingClientRect(),m=1,H=1;C&&Qt(l)&&(m=l.offsetWidth>0&&Dr(c.width)/l.offsetWidth||1,H=l.offsetHeight>0&&Dr(c.height)/l.offsetHeight||1);var Be=(Ut(l)?st(l):window).visualViewport,Ge=!Or()&&s,ut=(c.left+(Ge&&Be?Be.offsetLeft:0))/m,ht=(c.top+(Ge&&Be?Be.offsetTop:0))/H,rn=c.width/m,Gt=c.height/H;return{width:rn,height:Gt,top:ht,right:ut+rn,bottom:ht+Gt,left:ut,x:ut,y:ht}}function Br(l){var C=st(l);return{scrollLeft:C.pageXOffset,scrollTop:C.pageYOffset}}function oi(l){return Ir(Sn(l)).left+Br(l).scrollLeft}function dt(l){return st(l).getComputedStyle(l)}function we(l){return l?(l.nodeName||"").toLowerCase():null}function He(l){return"html"===we(l)?l:l.assignedSlot||l.parentNode||(Dn(l)?l.host:null)||Sn(l)}function yt(l){var C=dt(l);return/auto|scroll|overlay|hidden/.test(C.overflow+C.overflowY+C.overflowX)}function Wt(l){return["html","body","#document"].indexOf(we(l))>=0?l.ownerDocument.body:Qt(l)&&yt(l)?l:Wt(He(l))}function Vt(l,C){var s;void 0===C&&(C=[]);var c=Wt(l),m=c===(null==(s=l.ownerDocument)?void 0:s.body),H=st(c),ne=m?[H].concat(H.visualViewport||[],yt(c)?c:[]):c,Be=C.concat(ne);return m?Be:Be.concat(Vt(He(ne)))}function Un(l){return["table","td","th"].indexOf(we(l))>=0}function sn(l){return Qt(l)&&"fixed"!==dt(l).position?l.offsetParent:null}function an(l){for(var C=st(l),s=sn(l);s&&Un(s)&&"static"===dt(s).position;)s=sn(s);return s&&("html"===we(s)||"body"===we(s)&&"static"===dt(s).position)?C:s||function rr(l){var C=/firefox/i.test(wr());if(/Trident/i.test(wr())&&Qt(l)&&"fixed"===dt(l).position)return null;var m=He(l);for(Dn(m)&&(m=m.host);Qt(m)&&["html","body"].indexOf(we(m))<0;){var H=dt(m);if("none"!==H.transform||"none"!==H.perspective||"paint"===H.contain||-1!==["transform","perspective"].indexOf(H.willChange)||C&&"filter"===H.willChange||C&&H.filter&&"none"!==H.filter)return m;m=m.parentNode}return null}(l)||C}function $n(l,C){var s=C.getRootNode&&C.getRootNode();if(l.contains(C))return!0;if(s&&Dn(s)){var c=C;do{if(c&&l.isSameNode(c))return!0;c=c.parentNode||c.host}while(c)}return!1}function Qe(l){return Object.assign({},l,{left:l.x,top:l.y,right:l.x+l.width,bottom:l.y+l.height})}function Ue(l,C,s){return C===Ye?Qe(function zn(l,C){var s=st(l),c=Sn(l),m=s.visualViewport,H=c.clientWidth,ne=c.clientHeight,Be=0,Ge=0;if(m){H=m.width,ne=m.height;var ut=Or();(ut||!ut&&"fixed"===C)&&(Be=m.offsetLeft,Ge=m.offsetTop)}return{width:H,height:ne,x:Be+oi(l),y:Ge}}(l,s)):Ut(C)?function Le(l,C){var s=Ir(l,!1,"fixed"===C);return s.top=s.top+l.clientTop,s.left=s.left+l.clientLeft,s.bottom=s.top+l.clientHeight,s.right=s.left+l.clientWidth,s.width=l.clientWidth,s.height=l.clientHeight,s.x=s.left,s.y=s.top,s}(C,s):Qe(function at(l){var C,s=Sn(l),c=Br(l),m=null==(C=l.ownerDocument)?void 0:C.body,H=On(s.scrollWidth,s.clientWidth,m?m.scrollWidth:0,m?m.clientWidth:0),ne=On(s.scrollHeight,s.clientHeight,m?m.scrollHeight:0,m?m.clientHeight:0),Be=-c.scrollLeft+oi(l),Ge=-c.scrollTop;return"rtl"===dt(m||s).direction&&(Be+=On(s.clientWidth,m?m.clientWidth:0)-H),{width:H,height:ne,x:Be,y:Ge}}(Sn(l)))}function kt(l){return l.split("-")[1]}function Ft(l){return["top","bottom"].indexOf(l)>=0?"x":"y"}function on(l){var Ge,C=l.reference,s=l.element,c=l.placement,m=c?Xe(c):null,H=c?kt(c):null,ne=C.x+C.width/2-s.width/2,Be=C.y+C.height/2-s.height/2;switch(m){case It:Ge={x:ne,y:C.y-s.height};break;case Je:Ge={x:ne,y:C.y+C.height};break;case Tt:Ge={x:C.x+C.width,y:Be};break;case tt:Ge={x:C.x-s.width,y:Be};break;default:Ge={x:C.x,y:C.y}}var ut=m?Ft(m):null;if(null!=ut){var ht="y"===ut?"height":"width";switch(H){case un:Ge[ut]=Ge[ut]-(C[ht]/2-s[ht]/2);break;case Rn:Ge[ut]=Ge[ut]+(C[ht]/2-s[ht]/2)}}return Ge}function pr(l){return Object.assign({},{top:0,right:0,bottom:0,left:0},l)}function jr(l,C){return C.reduce(function(s,c){return s[c]=l,s},{})}function Fr(l,C){void 0===C&&(C={});var c=C.placement,m=void 0===c?l.placement:c,H=C.strategy,ne=void 0===H?l.strategy:H,Be=C.boundary,Ge=void 0===Be?"clippingParents":Be,ut=C.rootBoundary,ht=void 0===ut?Ye:ut,rn=C.elementContext,Gt=void 0===rn?At:rn,cn=C.altBoundary,Sr=void 0!==cn&&cn,lr=C.padding,In=void 0===lr?0:lr,Cr=pr("number"!=typeof In?In:jr(In,zt)),si=l.rects.popper,br=l.elements[Sr?Gt===At?"reference":At:Gt],Lr=function Rt(l,C,s,c){var m="clippingParents"===C?function bt(l){var C=Vt(He(l)),c=["absolute","fixed"].indexOf(dt(l).position)>=0&&Qt(l)?an(l):l;return Ut(c)?C.filter(function(m){return Ut(m)&&$n(m,c)&&"body"!==we(m)}):[]}(l):[].concat(C),H=[].concat(m,[s]),Be=H.reduce(function(Ge,ut){var ht=Ue(l,ut,c);return Ge.top=On(ht.top,Ge.top),Ge.right=nr(ht.right,Ge.right),Ge.bottom=nr(ht.bottom,Ge.bottom),Ge.left=On(ht.left,Ge.left),Ge},Ue(l,H[0],c));return Be.width=Be.right-Be.left,Be.height=Be.bottom-Be.top,Be.x=Be.left,Be.y=Be.top,Be}(Ut(br)?br:br.contextElement||Sn(l.elements.popper),Ge,ht,ne),kr=Ir(l.elements.reference),Qr=on({reference:kr,element:si,strategy:"absolute",placement:m}),qr=Qe(Object.assign({},si,Qr)),gi=Gt===At?qr:kr,mi={top:Lr.top-gi.top+Cr.top,bottom:gi.bottom-Lr.bottom+Cr.bottom,left:Lr.left-gi.left+Cr.left,right:gi.right-Lr.right+Cr.right},Fi=l.modifiersData.offset;if(Gt===At&&Fi){var ks=Fi[m];Object.keys(mi).forEach(function(qi){var ko=[Tt,Je].indexOf(qi)>=0?1:-1,As=[It,Je].indexOf(qi)>=0?"y":"x";mi[qi]+=ks[As]*ko})}return mi}const Xn={name:"flip",enabled:!0,phase:"main",fn:function Zr(l){var C=l.state,s=l.options,c=l.name;if(!C.modifiersData[c]._skip){for(var m=s.mainAxis,H=void 0===m||m,ne=s.altAxis,Be=void 0===ne||ne,Ge=s.fallbackPlacements,ut=s.padding,ht=s.boundary,rn=s.rootBoundary,Gt=s.altBoundary,cn=s.flipVariations,Sr=void 0===cn||cn,lr=s.allowedAutoPlacements,In=C.options.placement,Cr=Xe(In),si=Ge||(Cr!==In&&Sr?function Hr(l){if(Xe(l)===Pt)return[];var C=je(l);return[wt(l),C,wt(C)]}(In):[je(In)]),br=[In].concat(si).reduce(function(Ma,Bo){return Ma.concat(Xe(Bo)===Pt?function Ar(l,C){void 0===C&&(C={});var m=C.boundary,H=C.rootBoundary,ne=C.padding,Be=C.flipVariations,Ge=C.allowedAutoPlacements,ut=void 0===Ge?Et:Ge,ht=kt(C.placement),rn=ht?Be?tn:tn.filter(function(Sr){return kt(Sr)===ht}):zt,Gt=rn.filter(function(Sr){return ut.indexOf(Sr)>=0});0===Gt.length&&(Gt=rn);var cn=Gt.reduce(function(Sr,lr){return Sr[lr]=Fr(l,{placement:lr,boundary:m,rootBoundary:H,padding:ne})[Xe(lr)],Sr},{});return Object.keys(cn).sort(function(Sr,lr){return cn[Sr]-cn[lr]})}(C,{placement:Bo,boundary:ht,rootBoundary:rn,padding:ut,flipVariations:Sr,allowedAutoPlacements:lr}):Bo)},[]),Lr=C.rects.reference,kr=C.rects.popper,Qr=new Map,qr=!0,gi=br[0],mi=0;mi=0,As=ko?"width":"height",xs=Fr(C,{placement:Fi,boundary:ht,rootBoundary:rn,altBoundary:Gt,padding:ut}),Ys=ko?qi?Tt:tt:qi?Je:It;Lr[As]>kr[As]&&(Ys=je(Ys));var Bl=je(Ys),ia=[];if(H&&ia.push(xs[ks]<=0),Be&&ia.push(xs[Ys]<=0,xs[Bl]<=0),ia.every(function(Ma){return Ma})){gi=Fi,qr=!1;break}Qr.set(Fi,ia)}if(qr)for(var Js=function(Bo){var sl=br.find(function(Hl){var sa=Qr.get(Hl);if(sa)return sa.slice(0,Bo).every(function(Vl){return Vl})});if(sl)return gi=sl,"break"},uo=Sr?3:1;uo>0&&"break"!==Js(uo);uo--);C.placement!==gi&&(C.modifiersData[c]._skip=!0,C.placement=gi,C.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ur(l,C,s){return On(l,nr(C,s))}function pe(l){var C=Ir(l),s=l.offsetWidth,c=l.offsetHeight;return Math.abs(C.width-s)<=1&&(s=C.width),Math.abs(C.height-c)<=1&&(c=C.height),{x:l.offsetLeft,y:l.offsetTop,width:s,height:c}}const K={name:"preventOverflow",enabled:!0,phase:"main",fn:function z(l){var C=l.state,s=l.options,c=l.name,m=s.mainAxis,H=void 0===m||m,ne=s.altAxis,Be=void 0!==ne&&ne,Gt=s.tether,cn=void 0===Gt||Gt,Sr=s.tetherOffset,lr=void 0===Sr?0:Sr,In=Fr(C,{boundary:s.boundary,rootBoundary:s.rootBoundary,padding:s.padding,altBoundary:s.altBoundary}),Cr=Xe(C.placement),cr=kt(C.placement),si=!cr,br=Ft(Cr),Lr=function qn(l){return"x"===l?"y":"x"}(br),kr=C.modifiersData.popperOffsets,Qr=C.rects.reference,qr=C.rects.popper,gi="function"==typeof lr?lr(Object.assign({},C.rects,{placement:C.placement})):lr,mi="number"==typeof gi?{mainAxis:gi,altAxis:gi}:Object.assign({mainAxis:0,altAxis:0},gi),Fi=C.modifiersData.offset?C.modifiersData.offset[C.placement]:null,ks={x:0,y:0};if(kr){if(H){var qi,ko="y"===br?It:tt,As="y"===br?Je:Tt,xs="y"===br?"height":"width",Ys=kr[br],Bl=Ys+In[ko],ia=Ys-In[As],Ul=cn?-qr[xs]/2:0,Js=cr===un?Qr[xs]:qr[xs],uo=cr===un?-qr[xs]:-Qr[xs],jl=C.elements.arrow,Ma=cn&&jl?pe(jl):{width:0,height:0},Bo=C.modifiersData["arrow#persistent"]?C.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},sl=Bo[ko],Hl=Bo[As],sa=Ur(0,Qr[xs],Ma[xs]),Vl=si?Qr[xs]/2-Ul-sa-sl-mi.mainAxis:Js-sa-sl-mi.mainAxis,Uf=si?-Qr[xs]/2+Ul+sa+Hl+mi.mainAxis:uo+sa+Hl+mi.mainAxis,Vc=C.elements.arrow&&an(C.elements.arrow),jf=Vc?"y"===br?Vc.clientTop||0:Vc.clientLeft||0:0,ed=null!=(qi=Fi?.[br])?qi:0,yo=Ys+Uf-ed,Sa=Ur(cn?nr(Bl,Ys+Vl-ed-jf):Bl,Ys,cn?On(ia,yo):ia);kr[br]=Sa,ks[br]=Sa-Ys}if(Be){var $c,Aa=kr[Lr],Wc="y"===Lr?"height":"width",Hf=Aa+In["x"===br?It:tt],Wl=Aa-In["x"===br?Je:Tt],ol=-1!==[It,tt].indexOf(Cr),Vf=null!=($c=Fi?.[Lr])?$c:0,$f=ol?Hf:Aa-Qr[Wc]-qr[Wc]-Vf+mi.altAxis,Gc=ol?Aa+Qr[Wc]+qr[Wc]-Vf-mi.altAxis:Wl,rd=cn&&ol?function ai(l,C,s){var c=Ur(l,C,s);return c>s?s:c}($f,Aa,Gc):Ur(cn?$f:Hf,Aa,cn?Gc:Wl);kr[Lr]=rd,ks[Lr]=rd-Aa}C.modifiersData[c]=ks}},requiresIfExists:["offset"]},Oe={name:"arrow",enabled:!0,phase:"main",fn:function X(l){var C,s=l.state,c=l.name,m=l.options,H=s.elements.arrow,ne=s.modifiersData.popperOffsets,Be=Xe(s.placement),Ge=Ft(Be),ht=[tt,Tt].indexOf(Be)>=0?"height":"width";if(H&&ne){var rn=function(C,s){return pr("number"!=typeof(C="function"==typeof C?C(Object.assign({},s.rects,{placement:s.placement})):C)?C:jr(C,zt))}(m.padding,s),Gt=pe(H),cn="y"===Ge?It:tt,Sr="y"===Ge?Je:Tt,lr=s.rects.reference[ht]+s.rects.reference[Ge]-ne[Ge]-s.rects.popper[ht],In=ne[Ge]-s.rects.reference[Ge],Cr=an(H),cr=Cr?"y"===Ge?Cr.clientHeight||0:Cr.clientWidth||0:0,kr=cr/2-Gt[ht]/2+(lr/2-In/2),Qr=Ur(rn[cn],kr,cr-Gt[ht]-rn[Sr]);s.modifiersData[c]=((C={})[Ge]=Qr,C.centerOffset=Qr-kr,C)}},effect:function de(l){var C=l.state,c=l.options.element,m=void 0===c?"[data-popper-arrow]":c;null!=m&&("string"==typeof m&&!(m=C.elements.popper.querySelector(m))||$n(C.elements.popper,m)&&(C.elements.arrow=m))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ln(l,C,s){void 0===s&&(s=!1);var c=Qt(C),m=Qt(C)&&function $t(l){var C=l.getBoundingClientRect(),s=Dr(C.width)/l.offsetWidth||1,c=Dr(C.height)/l.offsetHeight||1;return 1!==s||1!==c}(C),H=Sn(C),ne=Ir(l,m,s),Be={scrollLeft:0,scrollTop:0},Ge={x:0,y:0};return(c||!c&&!s)&&(("body"!==we(C)||yt(H))&&(Be=function mt(l){return l!==st(l)&&Qt(l)?function Ae(l){return{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}}(l):Br(l)}(C)),Qt(C)?((Ge=Ir(C,!0)).x+=C.clientLeft,Ge.y+=C.clientTop):H&&(Ge.x=oi(H))),{x:ne.left+Be.scrollLeft-Ge.x,y:ne.top+Be.scrollTop-Ge.y,width:ne.width,height:ne.height}}function _n(l){var C=new Map,s=new Set,c=[];function m(H){s.add(H.name),[].concat(H.requires||[],H.requiresIfExists||[]).forEach(function(Be){if(!s.has(Be)){var Ge=C.get(Be);Ge&&m(Ge)}}),c.push(H)}return l.forEach(function(H){C.set(H.name,H)}),l.forEach(function(H){s.has(H.name)||m(H)}),c}function Nn(l){var C;return function(){return C||(C=new Promise(function(s){Promise.resolve().then(function(){C=void 0,s(l())})})),C}}var _r={placement:"bottom",modifiers:[],strategy:"absolute"};function Kr(){for(var l=arguments.length,C=new Array(l),s=0;s=0?-1:1,H="function"==typeof s?s(Object.assign({},C,{placement:l})):s,ne=H[0],Be=H[1];return ne=ne||0,Be=(Be||0)*m,[tt,Tt].indexOf(c)>=0?{x:Be,y:ne}:{x:ne,y:Be}}(rn,C.rects,H),ht},{}),Be=ne[C.placement],ut=Be.y;null!=C.modifiersData.popperOffsets&&(C.modifiersData.popperOffsets.x+=Be.x,C.modifiersData.popperOffsets.y+=ut),C.modifiersData[c]=ne}};function xr(l,C){}function Kt(l,C){if(1&l&&(t.TgZ(0,"button",3),t._uU(1),t.YNc(2,xr,0,0,"ng-template",4),t.qZA()),2&l){const s=C.$implicit;t.Q6J("ngbPanelToggle",s),t.xp6(1),t.hij(" ",s.title," "),t.xp6(1),t.Q6J("ngTemplateOutlet",null==s.titleTpl?null:s.titleTpl.templateRef)}}function Mn(l,C){}function hr(l,C){}function $r(l,C){if(1&l){const s=t.EpF();t.TgZ(0,"div",8),t.NdJ("ngbRef",function(m){t.CHM(s);const H=t.oxw().$implicit;return t.KtG(H.panelDiv=m)}),t.TgZ(1,"div",9),t.YNc(2,hr,0,0,"ng-template",4),t.qZA()()}if(2&l){const s=t.oxw().$implicit;t.s9C("id",s.id),t.uIk("aria-labelledby",s.id+"-header"),t.xp6(2),t.Q6J("ngTemplateOutlet",(null==s.contentTpl?null:s.contentTpl.templateRef)||null)}}const bi=function(l,C){return{$implicit:l,opened:C}};function Nr(l,C){if(1&l&&(t.TgZ(0,"div")(1,"div",5),t.YNc(2,Mn,0,0,"ng-template",6),t.qZA(),t.YNc(3,$r,3,3,"div",7),t.qZA()),2&l){const s=C.$implicit,c=t.oxw(),m=t.MAs(1);t.Tol("accordion-item "+(s.cardClass||"")),t.xp6(1),t.Tol("accordion-header "+(s.type?"bg-"+s.type:c.type?"bg-"+c.type:"")),t.MGl("id","",s.id,"-header"),t.xp6(1),t.Q6J("ngTemplateOutlet",(null==s.headerTpl?null:s.headerTpl.templateRef)||m)("ngTemplateOutletContext",t.WLB(8,bi,s,s.isOpen)),t.xp6(1),t.Q6J("ngIf",!c.destroyOnHide||s.isOpen||s.transitionRunning)}}const Ve=["*"],Yn=["ngbDatepickerDayView",""],sr=["month"],Wr=["year"];function Si(l,C){if(1&l&&(t.TgZ(0,"option",5),t._uU(1),t.qZA()),2&l){const s=C.$implicit,c=t.oxw();t.Q6J("value",s),t.uIk("aria-label",c.i18n.getMonthFullName(s,c.date.year)),t.xp6(1),t.Oqu(c.i18n.getMonthShortName(s,c.date.year))}}function di(l,C){if(1&l&&(t.TgZ(0,"option",5),t._uU(1),t.qZA()),2&l){const s=C.$implicit,c=t.oxw();t.Q6J("value",s),t.xp6(1),t.Oqu(c.i18n.getYearNumerals(s))}}function rs(l,C){if(1&l){const s=t.EpF();t.TgZ(0,"ngb-datepicker-navigation-select",7),t.NdJ("select",function(m){t.CHM(s);const H=t.oxw();return t.KtG(H.select.emit(m))}),t.qZA()}if(2&l){const s=t.oxw();t.Q6J("date",s.date)("disabled",s.disabled)("months",s.selectBoxes.months)("years",s.selectBoxes.years)}}function bs(l,C){1&l&&t._UZ(0,"div",11)}function zi(l,C){1&l&&t._UZ(0,"div",11)}function Oi(l,C){if(1&l&&(t.YNc(0,bs,1,0,"div",9),t.TgZ(1,"div",10),t._uU(2),t.qZA(),t.YNc(3,zi,1,0,"div",9)),2&l){const s=C.$implicit,c=C.index,m=t.oxw(2);t.Q6J("ngIf",c>0),t.xp6(2),t.hij(" ",m.i18n.getMonthLabel(s.firstDate)," "),t.xp6(1),t.Q6J("ngIf",c!==m.months.length-1)}}function Ii(l,C){if(1&l&&t.YNc(0,Oi,4,3,"ng-template",8),2&l){const s=t.oxw();t.Q6J("ngForOf",s.months)}}function Pi(l,C){if(1&l&&(t.TgZ(0,"div",5),t._uU(1),t.qZA()),2&l){const s=t.oxw(2);t.xp6(1),t.Oqu(s.i18n.getWeekLabel())}}function Gn(l,C){if(1&l&&(t.TgZ(0,"div",6),t._uU(1),t.qZA()),2&l){const s=C.$implicit;t.xp6(1),t.Oqu(s)}}function Es(l,C){if(1&l&&(t.TgZ(0,"div",2),t.YNc(1,Pi,2,1,"div",3),t.YNc(2,Gn,2,1,"div",4),t.qZA()),2&l){const s=t.oxw();t.xp6(1),t.Q6J("ngIf",s.datepicker.showWeekNumbers),t.xp6(1),t.Q6J("ngForOf",s.viewModel.weekdays)}}function Zi(l,C){if(1&l&&(t.TgZ(0,"div",11),t._uU(1),t.qZA()),2&l){const s=t.oxw(2).$implicit,c=t.oxw();t.xp6(1),t.Oqu(c.i18n.getWeekNumerals(s.number))}}function is(l,C){}function Pr(l,C){if(1&l&&t.YNc(0,is,0,0,"ng-template",14),2&l){const s=t.oxw().$implicit,c=t.oxw(3);t.Q6J("ngTemplateOutlet",c.datepicker.dayTemplate)("ngTemplateOutletContext",s.context)}}function ss(l,C){if(1&l){const s=t.EpF();t.TgZ(0,"div",12),t.NdJ("click",function(m){const ne=t.CHM(s).$implicit;return t.oxw(3).doSelect(ne),t.KtG(m.preventDefault())}),t.YNc(1,Pr,1,2,"ng-template",13),t.qZA()}if(2&l){const s=C.$implicit;t.ekj("disabled",s.context.disabled)("hidden",s.hidden)("ngb-dp-today",s.context.today),t.Q6J("tabindex",s.tabindex),t.uIk("aria-label",s.ariaLabel),t.xp6(1),t.Q6J("ngIf",!s.hidden)}}function Ui(l,C){if(1&l&&(t.TgZ(0,"div",8),t.YNc(1,Zi,2,1,"div",9),t.YNc(2,ss,2,9,"div",10),t.qZA()),2&l){const s=t.oxw().$implicit,c=t.oxw();t.xp6(1),t.Q6J("ngIf",c.datepicker.showWeekNumbers),t.xp6(1),t.Q6J("ngForOf",s.days)}}function ji(l,C){1&l&&t.YNc(0,Ui,3,2,"div",7),2&l&&t.Q6J("ngIf",!C.$implicit.collapsed)}const ft=["defaultDayTemplate"],Pn=["content"];function et(l,C){if(1&l&&t._UZ(0,"div",8),2&l){const c=C.currentMonth,m=C.selected,H=C.disabled,ne=C.focused;t.Q6J("date",C.date)("currentMonth",c)("selected",m)("disabled",H)("focused",ne)}}function xt(l,C){if(1&l&&(t.TgZ(0,"div",13),t._uU(1),t.qZA()),2&l){const s=t.oxw().$implicit,c=t.oxw(2);t.xp6(1),t.hij(" ",c.i18n.getMonthLabel(s.firstDate)," ")}}function hn(l,C){if(1&l&&(t.TgZ(0,"div",10),t.YNc(1,xt,2,1,"div",11),t._UZ(2,"ngb-datepicker-month",12),t.qZA()),2&l){const s=C.$implicit,c=t.oxw(2);t.xp6(1),t.Q6J("ngIf","none"===c.navigation||c.displayMonths>1&&"select"===c.navigation),t.xp6(1),t.Q6J("month",s.firstDate)}}function Gr(l,C){if(1&l&&t.YNc(0,hn,3,2,"div",9),2&l){const s=t.oxw();t.Q6J("ngForOf",s.model.months)}}function Ki(l,C){if(1&l){const s=t.EpF();t.TgZ(0,"ngb-datepicker-navigation",14),t.NdJ("navigate",function(m){t.CHM(s);const H=t.oxw();return t.KtG(H.onNavigateEvent(m))})("select",function(m){t.CHM(s);const H=t.oxw();return t.KtG(H.onNavigateDateSelect(m))}),t.qZA()}if(2&l){const s=t.oxw();t.Q6J("date",s.model.firstDate)("months",s.model.months)("disabled",s.model.disabled)("showSelect","select"===s.model.navigation)("prevDisabled",s.model.prevDisabled)("nextDisabled",s.model.nextDisabled)("selectBoxes",s.model.selectBoxes)}}function fi(l,C){}function Hs(l,C){}const po=function(l){return{$implicit:l}},Ds=["dialog"];function _o(l,C){if(1&l&&(t.TgZ(0,"strong",3),t._uU(1),t.qZA()),2&l){const s=t.oxw();t.xp6(1),t.Oqu(s.header)}}function ha(l,C){}function Ao(l,C){if(1&l){const s=t.EpF();t.TgZ(0,"div",4),t.YNc(1,ha,0,0,"ng-template",5),t.TgZ(2,"button",6),t.NdJ("click",function(){t.CHM(s);const m=t.oxw();return t.KtG(m.hide())}),t.qZA()()}if(2&l){const s=t.oxw(),c=t.MAs(1);t.xp6(1),t.Q6J("ngTemplateOutlet",s.contentHeaderTpl||c)}}function Na(l,C){if(1&l&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&l){const s=t.oxw().$implicit,c=t.oxw();t.Tol(c.highlightClass),t.xp6(1),t.Oqu(s)}}function La(l,C){if(1&l&&t._uU(0),2&l){const s=t.oxw().$implicit;t.Oqu(s)}}function oo(l,C){if(1&l&&(t.YNc(0,Na,2,3,"span",1),t.YNc(1,La,1,1,"ng-template",null,2,t.W1O)),2&l){const s=C.odd,c=t.MAs(2);t.Q6J("ngIf",s)("ngIfElse",c)}}function xo(l,C){if(1&l&&t._UZ(0,"ngb-highlight",2),2&l){const c=C.term;t.Q6J("result",(0,C.formatter)(C.result))("term",c)}}function T(l,C){}const le=function(l,C,s){return{result:l,term:C,formatter:s}};function U(l,C){if(1&l){const s=t.EpF();t.TgZ(0,"button",3),t.NdJ("mouseenter",function(){const H=t.CHM(s).index,ne=t.oxw();return t.KtG(ne.markActive(H))})("click",function(){const H=t.CHM(s).$implicit,ne=t.oxw();return t.KtG(ne.select(H))}),t.YNc(1,T,0,0,"ng-template",4),t.qZA()}if(2&l){const s=C.$implicit,c=C.index,m=t.oxw(),H=t.MAs(1);t.ekj("active",c===m.activeIdx),t.Q6J("id",m.id+"-"+c),t.xp6(1),t.Q6J("ngTemplateOutlet",m.resultTemplate||H)("ngTemplateOutletContext",t.kEZ(5,le,s,m.term,m.formatter))}}function ee(l){return parseInt(`${l}`,10)}function Ie(l){return null!=l?`${l}`:""}function Ct(l){return"string"==typeof l}function Jt(l){return!isNaN(ee(l))}function Bn(l){return"number"==typeof l&&isFinite(l)&&Math.floor(l)===l}function dr(l){return null!=l}function Kn(l){return Jt(l)?`0${l}`.slice(-2):""}function Jn(l,C){return l&&l.className&&l.className.split&&l.className.split(/\s+/).indexOf(C)>=0}function Ei(l){return(l||document.body).getBoundingClientRect()}function Hi(l){return l.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Li(l=document){const C=l?.activeElement;return C?C.shadowRoot?Li(C.shadowRoot):C:null}const ds={animation:!0,transitionTimerDelayMs:5},Ts=()=>{},{transitionTimerDelayMs:er}=ds,ws=new Map,li=(l,C,s,c)=>{let m=c.context||{};const H=ws.get(C);if(H)switch(c.runningTransition){case"continue":return w.E;case"stop":l.run(()=>H.transition$.complete()),m=Object.assign(H.context,m),ws.delete(C)}const ne=s(C,c.animation,m)||Ts;if(!c.animation||"none"===window.getComputedStyle(C).transitionProperty)return l.run(()=>ne()),(0,L.of)(void 0).pipe(function Ai(l){return C=>new d.y(s=>C.subscribe({next:ne=>l.run(()=>s.next(ne)),error:ne=>l.run(()=>s.error(ne)),complete:()=>l.run(()=>s.complete())}))}(l));const Be=new p.x,Ge=new p.x,ut=Be.pipe(function Me(...l){return C=>(0,Te.z)(C,(0,L.of)(...l))}(!0));ws.set(C,{transition$:Be,complete:()=>{Ge.next(),Ge.complete()},context:m});const ht=function ti(l){const{transitionDelay:C,transitionDuration:s}=window.getComputedStyle(l);return 1e3*(parseFloat(C)+parseFloat(s))}(C);return l.runOutsideAngular(()=>{const rn=(0,O.R)(C,"transitionend").pipe((0,ye.R)(ut),(0,ce.h)(({target:cn})=>cn===C));f((0,R.H)(ht+er).pipe((0,ye.R)(ut)),rn,Ge).pipe((0,ye.R)(ut)).subscribe(()=>{ws.delete(C),l.run(()=>{ne(),Be.next(),Be.complete()})})}),Be.asObservable()},Oo=(l,C,s)=>{let{direction:c,maxSize:m,dimension:H}=s;const{classList:ne}=l;function Be(){ne.add("collapse"),"show"===c?ne.add("show"):ne.remove("show")}if(C)return m||(m=function ga(l,C){if(typeof navigator>"u")return"0px";const{classList:s}=l,c=s.contains("show");c||s.add("show"),l.style[C]="";const m=l.getBoundingClientRect()[C]+"px";return c||s.remove("show"),m}(l,H),s.maxSize=m,l.style[H]="show"!==c?m:"0px",ne.remove("collapse"),ne.remove("collapsing"),ne.remove("show"),Ei(l),ne.add("collapsing")),l.style[H]="show"===c?m:"0px",()=>{Be(),ne.remove("collapsing"),l.style[H]=""};Be()};let Ji=(()=>{class l{constructor(){this.animation=ds.animation}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Vi=(()=>{class l{constructor(s){this._ngbConfig=s,this.closeOthers=!1}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(Ji))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),gl=0,Io=(()=>{class l{constructor(s){this.templateRef=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["ng-template","ngbPanelHeader",""]],standalone:!0})}return l})(),$s=(()=>{class l{constructor(s){this.templateRef=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["ng-template","ngbPanelTitle",""]],standalone:!0})}return l})(),fs=(()=>{class l{constructor(s){this.templateRef=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["ng-template","ngbPanelContent",""]],standalone:!0})}return l})(),Po=(()=>{class l{constructor(){this.disabled=!1,this.id="ngb-panel-"+gl++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new t.vpe,this.hidden=new t.vpe}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["ngb-panel"]],contentQueries:function(c,m,H){if(1&c&&(t.Suo(H,$s,4),t.Suo(H,Io,4),t.Suo(H,fs,4)),2&c){let ne;t.iGM(ne=t.CRH())&&(m.titleTpls=ne),t.iGM(ne=t.CRH())&&(m.headerTpls=ne),t.iGM(ne=t.CRH())&&(m.contentTpls=ne)}},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"},standalone:!0})}return l})(),ma=(()=>{class l{constructor(s){this._El=s,this.ngbRef=new t.vpe}ngOnInit(){this.ngbRef.emit(this._El.nativeElement)}ngOnDestroy(){this.ngbRef.emit(null)}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbRef",""]],outputs:{ngbRef:"ngbRef"},standalone:!0})}return l})(),xi=(()=>{class l{set ngbPanelToggle(s){s&&(this.panel=s)}constructor(s,c){this.accordion=s,this.panel=c}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36((0,t.Gpc)(()=>vo)),t.Y36(Po,9))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(c,m){1&c&&t.NdJ("click",function(){return m.accordion.toggle(m.panel.id)}),2&c&&(t.Ikx("disabled",m.panel.disabled),t.uIk("aria-expanded",m.panel.isOpen)("aria-controls",m.panel.id),t.ekj("collapsed",!m.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"},standalone:!0})}return l})(),vo=(()=>{class l{constructor(s,c,m){this._ngZone=c,this._changeDetector=m,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new t.vpe,this.shown=new t.vpe,this.hidden=new t.vpe,this.animation=s.animation,this.type=s.type,this.closeOtherPanels=s.closeOthers}isExpanded(s){return this.activeIds.indexOf(s)>-1}expand(s){this._changeOpenState(this._findPanelById(s),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(s=>this._changeOpenState(s,!0))}collapse(s){this._changeOpenState(this._findPanelById(s),!1)}collapseAll(){this.panels.forEach(s=>{this._changeOpenState(s,!1)})}toggle(s){const c=this._findPanelById(s);c&&this._changeOpenState(c,!c.isOpen)}ngAfterContentChecked(){Ct(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(s=>{s.isOpen=!s.disabled&&this.activeIds.indexOf(s.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe((0,_e.q)(1)).subscribe(()=>{this.panels.forEach(s=>{const c=s.panelDiv;c?s.initClassDone||(s.initClassDone=!0,li(this._ngZone,c,Oo,{animation:!1,runningTransition:"continue",context:{direction:s.isOpen?"show":"hide",dimension:"height"}})):s.initClassDone=!1})})}_changeOpenState(s,c){if(null!=s&&!s.disabled&&s.isOpen!==c){let m=!1;this.panelChange.emit({panelId:s.id,nextState:c,preventDefault:()=>{m=!0}}),m||(s.isOpen=c,s.transitionRunning=!0,c&&this.closeOtherPanels&&this._closeOthers(s.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(s,c=!0){this.panels.forEach(m=>{m.id!==s&&m.isOpen&&(m.isOpen=!1,m.transitionRunning=c)})}_findPanelById(s){return this.panels.find(c=>c.id===s)||null}_updateActiveIds(){this.activeIds=this.panels.filter(s=>s.isOpen&&!s.disabled).map(s=>s.id)}_runTransitions(s){this._changeDetector.detectChanges(),this.panels.forEach(c=>{c.transitionRunning&&li(this._ngZone,c.panelDiv,Oo,{animation:s,runningTransition:"stop",context:{direction:c.isOpen?"show":"hide",dimension:"height"}}).subscribe(()=>{c.transitionRunning=!1;const{id:H}=c;c.isOpen?(c.shown.emit(),this.shown.emit(H)):(c.hidden.emit(),this.hidden.emit(H))})})}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(Vi),t.Y36(t.R0b),t.Y36(t.sBO))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-accordion"]],contentQueries:function(c,m,H){if(1&c&&t.Suo(H,Po,4),2&c){let ne;t.iGM(ne=t.CRH())&&(m.panels=ne)}},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(c,m){2&c&&t.uIk("aria-multiselectable",!m.closeOtherPanels)},inputs:{animation:"animation",activeIds:"activeIds",closeOtherPanels:["closeOthers","closeOtherPanels"],destroyOnHide:"destroyOnHide",type:"type"},outputs:{panelChange:"panelChange",shown:"shown",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0,features:[t.jDz],decls:3,vars:1,consts:[["ngbPanelHeader",""],["t",""],["ngFor","",3,"ngForOf"],[1,"accordion-button",3,"ngbPanelToggle"],[3,"ngTemplateOutlet"],["role","tab",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tabpanel",3,"id","ngbRef",4,"ngIf"],["role","tabpanel",3,"id","ngbRef"],[1,"accordion-body"]],template:function(c,m){1&c&&(t.YNc(0,Kt,3,3,"ng-template",0,1,t.W1O),t.YNc(2,Nr,4,11,"ng-template",2)),2&c&&(t.xp6(2),t.Q6J("ngForOf",m.panels))},dependencies:[ae.ax,ae.tP,xi,ma,Io,ae.O5],encapsulation:2})}return l})(),ja=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Nt=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),nn=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Xt=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})();class Cn{static from(C){return C instanceof Cn?C:C?new Cn(C.year,C.month,C.day):null}constructor(C,s,c){this.year=Bn(C)?C:null,this.month=Bn(s)?s:null,this.day=Bn(c)?c:null}equals(C){return null!=C&&this.year===C.year&&this.month===C.month&&this.day===C.day}before(C){return!!C&&(this.year===C.year?this.month===C.month?this.day!==C.day&&this.dayC.day:this.month>C.month:this.year>C.year)}}function Vn(l,C){return!function Fn(l,C){return!l&&!C||!!l&&!!C&&l.equals(C)}(l,C)}function An(l,C){return!(!l&&!C||l&&C&&l.year===C.year&&l.month===C.month)}function M(l,C,s){return l&&C&&l.before(C)?C:l&&s&&l.after(s)?s:l||null}function y(l,C){const{minDate:s,maxDate:c,disabled:m,markDisabled:H}=C;return!(null==l||m||H&&H(l,{year:l.year,month:l.month})||s&&l.before(s)||c&&l.after(c))}function kn(l){return new Cn(l.getFullYear(),l.getMonth()+1,l.getDate())}function Rr(l){const C=new Date(l.year,l.month-1,l.day,12);return isNaN(C.getTime())||C.setFullYear(l.year),C}let hi=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:function(){return function or(){return new Gs}()},providedIn:"root"})}return l})(),Gs=(()=>{class l extends hi{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(s,c="d",m=1){let H=Rr(s),ne=!0,Be=H.getMonth();switch(c){case"y":H.setFullYear(H.getFullYear()+m);break;case"m":Be+=m,H.setMonth(Be),Be%=12,Be<0&&(Be+=12);break;case"d":H.setDate(H.getDate()+m),ne=!1;break;default:return s}return ne&&H.getMonth()!==Be&&H.setDate(0),kn(H)}getPrev(s,c="d",m=1){return this.getNext(s,c,-m)}getWeekday(s){let m=Rr(s).getDay();return 0===m?7:m}getWeekNumber(s,c){7===c&&(c=0);const ne=Rr(s[(11-c)%7]);ne.setDate(ne.getDate()+4-(ne.getDay()||7));const Be=ne.getTime();return ne.setMonth(0),ne.setDate(1),Math.floor(Math.round((Be-ne.getTime())/864e5)/7)+1}getToday(){return kn(new Date)}isValid(s){if(!(s&&Bn(s.year)&&Bn(s.month)&&Bn(s.day)&&0!==s.year))return!1;const c=Rr(s);return!isNaN(c.getTime())&&c.getFullYear()===s.year&&c.getMonth()+1===s.month&&c.getDate()===s.day}static#e=this.\u0275fac=function(){let s;return function(m){return(s||(s=t.n5z(l)))(m||l)}}();static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac})}return l})(),gn=(()=>{class l{getMonthLabel(s){return`${this.getMonthFullName(s.month,s.year)} ${this.getYearNumerals(s.year)}`}getDayNumerals(s){return`${s.day}`}getWeekNumerals(s){return`${s}`}getYearNumerals(s){return`${s}`}getWeekLabel(){return""}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:function(c){let m=null;return m=c?new c:function Ns(l){return new xn(l)}(t.LFG(t.soG)),m},providedIn:"root"})}return l})(),xn=(()=>{class l extends gn{constructor(s){super(),this._locale=s,this._monthsShort=(0,ae.UT)(s,ae.x.Standalone,ae.Tn.Abbreviated),this._monthsFull=(0,ae.UT)(s,ae.x.Standalone,ae.Tn.Wide)}getWeekdayLabel(s,c){const m=(0,ae.Mn)(this._locale,ae.x.Standalone,void 0===c?ae.Tn.Short:c);return m.map((ne,Be)=>m[(Be+1)%7])[s-1]||""}getMonthShortName(s){return this._monthsShort[s-1]||""}getMonthFullName(s){return this._monthsFull[s-1]||""}getDayAriaLabel(s){const c=new Date(s.year,s.month-1,s.day);return(0,ae.p6)(c,"fullDate",this._locale)}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(t.soG))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac})}return l})(),yn=(()=>{class l{get model$(){return this._model$.pipe((0,ce.h)(s=>s.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe((0,ce.h)(s=>null!==s))}set(s){let c=Object.keys(s).map(m=>this._VALIDATORS[m](s[m])).reduce((m,H)=>({...m,...H}),{});Object.keys(c).length>0&&this._nextState(c)}constructor(s,c){this._calendar=s,this._i18n=c,this._VALIDATORS={dayTemplateData:m=>{if(this._state.dayTemplateData!==m)return{dayTemplateData:m}},displayMonths:m=>{if(Bn(m=ee(m))&&m>0&&this._state.displayMonths!==m)return{displayMonths:m}},disabled:m=>{if(this._state.disabled!==m)return{disabled:m}},firstDayOfWeek:m=>{if(Bn(m=ee(m))&&m>=0&&this._state.firstDayOfWeek!==m)return{firstDayOfWeek:m}},focusVisible:m=>{if(this._state.focusVisible!==m&&!this._state.disabled)return{focusVisible:m}},markDisabled:m=>{if(this._state.markDisabled!==m)return{markDisabled:m}},maxDate:m=>{const H=this.toValidDate(m,null);if(Vn(this._state.maxDate,H))return{maxDate:H}},minDate:m=>{const H=this.toValidDate(m,null);if(Vn(this._state.minDate,H))return{minDate:H}},navigation:m=>{if(this._state.navigation!==m)return{navigation:m}},outsideDays:m=>{if(this._state.outsideDays!==m)return{outsideDays:m}},weekdays:m=>{const H=!0===m||!1===m?ae.Tn.Short:m,ne=!0!==m&&!1!==m||m;if(this._state.weekdayWidth!==H||this._state.weekdaysVisible!==ne)return{weekdayWidth:H,weekdaysVisible:ne}}},this._model$=new p.x,this._dateSelect$=new p.x,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]},weekdayWidth:ae.Tn.Short,weekdaysVisible:!0}}focus(s){const c=this.toValidDate(s,null);null!=c&&!this._state.disabled&&Vn(this._state.focusDate,c)&&this._nextState({focusDate:s})}focusSelect(){y(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(s){const c=this.toValidDate(s,this._calendar.getToday());null!=c&&!this._state.disabled&&(!this._state.firstDate||An(this._state.firstDate,c))&&this._nextState({firstDate:c})}select(s,c={}){const m=this.toValidDate(s,null);null!=m&&!this._state.disabled&&(Vn(this._state.selectedDate,m)&&this._nextState({selectedDate:m}),c.emitEvent&&y(m,this._state)&&this._dateSelect$.next(m))}toValidDate(s,c){const m=Cn.from(s);return void 0===c&&(c=this._calendar.getToday()),this._calendar.isValid(m)?m:c}getMonth(s){for(let c of this._state.months)if(s.month===c.number&&s.year===c.year)return c;throw new Error(`month ${s.month} of year ${s.year} not found`)}_nextState(s){const c=this._updateState(s);this._patchContexts(c),this._state=c,this._model$.next(this._state)}_patchContexts(s){const{months:c,displayMonths:m,selectedDate:H,focusDate:ne,focusVisible:Be,disabled:Ge,outsideDays:ut}=s;s.months.forEach(ht=>{ht.weeks.forEach(rn=>{rn.days.forEach(Gt=>{ne&&(Gt.context.focused=ne.equals(Gt.date)&&Be),Gt.tabindex=!Ge&&ne&&Gt.date.equals(ne)&&ne.month===ht.number?0:-1,!0===Ge&&(Gt.context.disabled=!0),void 0!==H&&(Gt.context.selected=null!==H&&H.equals(Gt.date)),ht.number!==Gt.date.month&&(Gt.hidden="hidden"===ut||"collapsed"===ut||m>1&&Gt.date.after(c[0].firstDate)&&Gt.date.before(c[m-1].lastDate))})})})}_updateState(s){const c=Object.assign({},this._state,s);let m=c.firstDate;if(("minDate"in s||"maxDate"in s)&&(function E(l,C){if(C&&l&&C.before(l))throw new Error(`'maxDate' ${C} should be greater than 'minDate' ${l}`)}(c.minDate,c.maxDate),c.focusDate=M(c.focusDate,c.minDate,c.maxDate),c.firstDate=M(c.firstDate,c.minDate,c.maxDate),m=c.focusDate),"disabled"in s&&(c.focusVisible=!1),"selectedDate"in s&&0===this._state.months.length&&(m=c.selectedDate),"focusVisible"in s||"focusDate"in s&&(c.focusDate=M(c.focusDate,c.minDate,c.maxDate),m=c.focusDate,0!==c.months.length&&c.focusDate&&!c.focusDate.before(c.firstDate)&&!c.focusDate.after(c.lastDate)))return c;if("firstDate"in s&&(c.firstDate=M(c.firstDate,c.minDate,c.maxDate),m=c.firstDate),m){const ne=function lt(l,C,s,c,m){const{displayMonths:H,months:ne}=s,Be=ne.splice(0,ne.length);return Array.from({length:H},(ut,ht)=>{const rn=Object.assign(l.getNext(C,"m",ht),{day:1});if(ne[ht]=null,!m){const Gt=Be.findIndex(cn=>cn.firstDate.equals(rn));-1!==Gt&&(ne[ht]=Be.splice(Gt,1)[0])}return rn}).forEach((ut,ht)=>{null===ne[ht]&&(ne[ht]=function pt(l,C,s,c,m={}){const{dayTemplateData:H,minDate:ne,maxDate:Be,firstDayOfWeek:Ge,markDisabled:ut,outsideDays:ht,weekdayWidth:rn,weekdaysVisible:Gt}=s,cn=l.getToday();m.firstDate=null,m.lastDate=null,m.number=C.month,m.year=C.year,m.weeks=m.weeks||[],m.weekdays=m.weekdays||[],C=function en(l,C,s){const c=l.getDaysPerWeek(),m=new Cn(C.year,C.month,1),H=l.getWeekday(m)%c;return l.getPrev(m,"d",(c+H-s)%c)}(l,C,Ge),Gt||(m.weekdays.length=0);for(let Sr=0;SrCr.date),Ge),lr.collapsed="collapsed"===ht&&In[0].date.month!==m.number&&In[In.length-1].date.month!==m.number}return m}(l,ut,s,c,Be.shift()||{}))}),ne}(this._calendar,m,c,this._i18n,"dayTemplateData"in s||"firstDayOfWeek"in s||"markDisabled"in s||"minDate"in s||"maxDate"in s||"disabled"in s||"outsideDays"in s||"weekdaysVisible"in s);c.months=ne,c.firstDate=ne[0].firstDate,c.lastDate=ne[ne.length-1].lastDate,"selectedDate"in s&&!y(c.selectedDate,c)&&(c.selectedDate=null),"firstDate"in s&&(!c.focusDate||c.focusDate.before(c.firstDate)||c.focusDate.after(c.lastDate))&&(c.focusDate=m);const Be=!this._state.firstDate||this._state.firstDate.year!==c.firstDate.year,Ge=!this._state.firstDate||this._state.firstDate.month!==c.firstDate.month;"select"===c.navigation?(("minDate"in s||"maxDate"in s||0===c.selectBoxes.years.length||Be)&&(c.selectBoxes.years=function G(l,C,s){if(!l)return[];const c=C?Math.max(C.year,l.year-500):l.year-10,H=(s?Math.min(s.year,l.year+500):l.year+10)-c+1,ne=Array(H);for(let Be=0;Bene===s.month);m=m.slice(H)}if(c&&C.year===c.year){const H=m.findIndex(ne=>ne===c.month);m=m.slice(0,H+1)}return m}(this._calendar,c.firstDate,c.minDate,c.maxDate))):c.selectBoxes={years:[],months:[]},("arrows"===c.navigation||"select"===c.navigation)&&(Ge||Be||"minDate"in s||"maxDate"in s||"disabled"in s)&&(c.prevDisabled=c.disabled||function Se(l,C,s){const c=Object.assign(l.getPrev(C,"m"),{day:1});return null!=s&&(c.year===s.year&&c.month{class l{constructor(s){this.i18n=s}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(gn))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(c,m){2&c&&t.ekj("bg-primary",m.selected)("text-white",m.selected)("text-muted",m.isMuted())("outside",m.isMuted())("active",m.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},standalone:!0,features:[t.jDz],attrs:Yn,decls:1,vars:1,template:function(c,m){1&c&&t._uU(0),2&c&&t.Oqu(m.i18n.getDayNumerals(m.date))},styles:["[ngbDatepickerDayView]{text-align:center;width:2rem;height:2rem;line-height:2rem;border-radius:.25rem;background:transparent}[ngbDatepickerDayView]:hover:not(.bg-primary),[ngbDatepickerDayView].active:not(.bg-primary){background-color:var(--bs-btn-bg);outline:1px solid var(--bs-border-color)}[ngbDatepickerDayView].outside{opacity:.5}\n"],encapsulation:2,changeDetection:0})}return l})(),Ss=(()=>{class l{constructor(s,c){this.i18n=s,this._renderer=c,this.select=new t.vpe,this._month=-1,this._year=-1}changeMonth(s){this.select.emit(new Cn(this.date.year,ee(s),1))}changeYear(s){this.select.emit(new Cn(ee(s),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(gn),t.Y36(t.Qsj))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(c,m){if(1&c&&(t.Gf(sr,7,t.SBq),t.Gf(Wr,7,t.SBq)),2&c){let H;t.iGM(H=t.CRH())&&(m.monthSelect=H.first),t.iGM(H=t.CRH())&&(m.yearSelect=H.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},standalone:!0,features:[t.jDz],decls:6,vars:4,consts:function(){let s,c,m,H;return s=$localize`:@@ngb.datepicker.select-month:Select month`,c=$localize`:@@ngb.datepicker.select-month:Select month`,m=$localize`:@@ngb.datepicker.select-year:Select year`,H=$localize`:@@ngb.datepicker.select-year:Select year`,[["aria-label",s,"title",c,1,"form-select",3,"disabled","change"],["month",""],[3,"value",4,"ngFor","ngForOf"],["aria-label",m,"title",H,1,"form-select",3,"disabled","change"],["year",""],[3,"value"]]},template:function(c,m){1&c&&(t.TgZ(0,"select",0,1),t.NdJ("change",function(ne){return m.changeMonth(ne.target.value)}),t.YNc(2,Si,2,3,"option",2),t.qZA(),t.TgZ(3,"select",3,4),t.NdJ("change",function(ne){return m.changeYear(ne.target.value)}),t.YNc(5,di,2,2,"option",2),t.qZA()),2&c&&(t.Q6J("disabled",m.disabled),t.xp6(2),t.Q6J("ngForOf",m.months),t.xp6(1),t.Q6J("disabled",m.disabled),t.xp6(2),t.Q6J("ngForOf",m.years))},dependencies:[ae.ax],styles:["ngb-datepicker-navigation-select>.form-select{flex:1 1 auto;padding:0 .5rem;font-size:.875rem;height:1.85rem}ngb-datepicker-navigation-select>.form-select:focus{z-index:1}ngb-datepicker-navigation-select>.form-select::-ms-value{background-color:transparent!important}\n"],encapsulation:2,changeDetection:0})}return l})(),Qi=(()=>{class l{constructor(s){this.i18n=s,this.navigation=tr,this.months=[],this.navigate=new t.vpe,this.select=new t.vpe}onClickPrev(s){s.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(s){s.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(gn))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-datepicker-navigation"]],inputs:{date:"date",disabled:"disabled",months:"months",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},standalone:!0,features:[t.jDz],decls:8,vars:4,consts:function(){let s,c,m,H;return s=$localize`:@@ngb.datepicker.previous-month:Previous month`,c=$localize`:@@ngb.datepicker.previous-month:Previous month`,m=$localize`:@@ngb.datepicker.next-month:Next month`,H=$localize`:@@ngb.datepicker.next-month:Next month`,[[1,"ngb-dp-arrow","ngb-dp-arrow-prev"],["type","button","aria-label",s,"title",c,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-chevron"],["class","ngb-dp-navigation-select",3,"date","disabled","months","years","select",4,"ngIf"],[4,"ngIf"],[1,"ngb-dp-arrow","ngb-dp-arrow-next"],["type","button","aria-label",m,"title",H,1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years","select"],["ngFor","",3,"ngForOf"],["class","ngb-dp-arrow",4,"ngIf"],[1,"ngb-dp-month-name"],[1,"ngb-dp-arrow"]]},template:function(c,m){1&c&&(t.TgZ(0,"div",0)(1,"button",1),t.NdJ("click",function(ne){return m.onClickPrev(ne)}),t._UZ(2,"span",2),t.qZA()(),t.YNc(3,rs,1,4,"ngb-datepicker-navigation-select",3),t.YNc(4,Ii,1,1,null,4),t.TgZ(5,"div",5)(6,"button",6),t.NdJ("click",function(ne){return m.onClickNext(ne)}),t._UZ(7,"span",2),t.qZA()()),2&c&&(t.xp6(1),t.Q6J("disabled",m.prevDisabled),t.xp6(2),t.Q6J("ngIf",m.showSelect),t.xp6(1),t.Q6J("ngIf",!m.showSelect),t.xp6(2),t.Q6J("disabled",m.nextDisabled))},dependencies:[ae.O5,ae.ax,Ss],styles:["ngb-datepicker-navigation{display:flex;align-items:center}.ngb-dp-navigation-chevron{border-style:solid;border-width:.2em .2em 0 0;display:inline-block;width:.75em;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg)}.ngb-dp-arrow{display:flex;flex:1 1 auto;padding-right:0;padding-left:0;margin:0;width:2rem;height:2rem}.ngb-dp-arrow-next{justify-content:flex-end}.ngb-dp-arrow-next .ngb-dp-navigation-chevron{transform:rotate(45deg);margin-left:.15em;margin-right:.25em}.ngb-dp-arrow-btn{padding:0 .25rem;margin:0 .5rem;border:none;background-color:transparent;z-index:1}.ngb-dp-arrow-btn:focus{outline-width:1px;outline-style:auto}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{display:flex;flex:1 1 9rem}\n"],encapsulation:2,changeDetection:0})}return l})();var fr=function(l){return l[l.Tab=9]="Tab",l[l.Enter=13]="Enter",l[l.Escape=27]="Escape",l[l.Space=32]="Space",l[l.PageUp=33]="PageUp",l[l.PageDown=34]="PageDown",l[l.End=35]="End",l[l.Home=36]="Home",l[l.ArrowLeft=37]="ArrowLeft",l[l.ArrowUp=38]="ArrowUp",l[l.ArrowRight=39]="ArrowRight",l[l.ArrowDown=40]="ArrowDown",l}(fr||{});let ni=(()=>{class l{processKey(s,c){const{state:m,calendar:H}=c;switch(s.which){case fr.PageUp:c.focusDate(H.getPrev(m.focusedDate,s.shiftKey?"y":"m",1));break;case fr.PageDown:c.focusDate(H.getNext(m.focusedDate,s.shiftKey?"y":"m",1));break;case fr.End:c.focusDate(s.shiftKey?m.maxDate:m.lastDate);break;case fr.Home:c.focusDate(s.shiftKey?m.minDate:m.firstDate);break;case fr.ArrowLeft:c.focusDate(H.getPrev(m.focusedDate,"d",1));break;case fr.ArrowUp:c.focusDate(H.getPrev(m.focusedDate,"d",H.getDaysPerWeek()));break;case fr.ArrowRight:c.focusDate(H.getNext(m.focusedDate,"d",1));break;case fr.ArrowDown:c.focusDate(H.getNext(m.focusedDate,"d",H.getDaysPerWeek()));break;case fr.Enter:case fr.Space:c.focusSelect();break;default:return}s.preventDefault(),s.stopPropagation()}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Jo=(()=>{class l{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekNumbers=!1,this.weekdays=ae.Tn.Short}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),ri=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:function(){return function vl(){return new Xi}()},providedIn:"root"})}return l})(),Xi=(()=>{class l extends ri{fromModel(s){return s&&Bn(s.year)&&Bn(s.month)&&Bn(s.day)?{year:s.year,month:s.month,day:s.day}:null}toModel(s){return s&&Bn(s.year)&&Bn(s.month)&&Bn(s.day)?{year:s.year,month:s.month,day:s.day}:null}static#e=this.\u0275fac=function(){let s;return function(m){return(s||(s=t.n5z(l)))(m||l)}}();static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac})}return l})(),ps=(()=>{class l{constructor(s){this.templateRef=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["ng-template","ngbDatepickerContent",""]],standalone:!0})}return l})(),ao=(()=>{class l{set month(s){this.viewModel=this._service.getMonth(s)}constructor(s,c,m,H){this.i18n=s,this.datepicker=c,this._keyboardService=m,this._service=H}onKeyDown(s){this._keyboardService.processKey(s,this.datepicker)}doSelect(s){!s.context.disabled&&!s.hidden&&this.datepicker.onDateSelect(s.date)}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(gn),t.Y36((0,t.Gpc)(()=>lo)),t.Y36(ni),t.Y36(yn))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(c,m){1&c&&t.NdJ("keydown",function(ne){return m.onKeyDown(ne)})},inputs:{month:"month"},standalone:!0,features:[t.jDz],decls:2,vars:2,consts:[["class","ngb-dp-week ngb-dp-weekdays","role","row",4,"ngIf"],["ngFor","",3,"ngForOf"],["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],["class","ngb-dp-weekday ngb-dp-showweek small",4,"ngIf"],["class","ngb-dp-weekday small","role","columnheader",4,"ngFor","ngForOf"],[1,"ngb-dp-weekday","ngb-dp-showweek","small"],["role","columnheader",1,"ngb-dp-weekday","small"],["class","ngb-dp-week","role","row",4,"ngIf"],["role","row",1,"ngb-dp-week"],["class","ngb-dp-week-number small text-muted",4,"ngIf"],["class","ngb-dp-day","role","gridcell",3,"disabled","tabindex","hidden","ngb-dp-today","click",4,"ngFor","ngForOf"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"tabindex","click"],[3,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(c,m){1&c&&(t.YNc(0,Es,3,2,"div",0),t.YNc(1,ji,1,1,"ng-template",1)),2&c&&(t.Q6J("ngIf",m.viewModel.weekdays.length>0),t.xp6(1),t.Q6J("ngForOf",m.viewModel.weeks))},dependencies:[ae.O5,ae.ax,ae.tP],styles:['ngb-datepicker-month{display:block}.ngb-dp-weekday,.ngb-dp-week-number{line-height:2rem;text-align:center;font-style:italic}.ngb-dp-weekday{color:var(--bs-info)}.ngb-dp-week{border-radius:.25rem;display:flex}.ngb-dp-weekdays{border-bottom:1px solid var(--bs-border-color);border-radius:0;background-color:var(--bs-light)}.ngb-dp-day,.ngb-dp-weekday,.ngb-dp-week-number{width:2rem;height:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}\n'],encapsulation:2})}return l})(),lo=(()=>{class l{constructor(s,c,m,H,ne,Be,Ge,ut){this._service=s,this._calendar=c,this._i18n=m,this._elementRef=Be,this._ngbDateAdapter=Ge,this._ngZone=ut,this.injector=(0,t.f3M)(t.zs3),this._controlValue=null,this._destroyed$=new p.x,this._publicState={},this.navigate=new t.vpe,this.dateSelect=new t.vpe,this.onChange=ht=>{},this.onTouched=()=>{},["contentTemplate","dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekNumbers","startDate","weekdays"].forEach(ht=>this[ht]=H[ht]),s.dateSelect$.pipe((0,ye.R)(this._destroyed$)).subscribe(ht=>{this.dateSelect.emit(ht)}),s.model$.pipe((0,ye.R)(this._destroyed$)).subscribe(ht=>{const rn=ht.firstDate,Gt=this.model?this.model.firstDate:null;this._publicState={maxDate:ht.maxDate,minDate:ht.minDate,firstDate:ht.firstDate,lastDate:ht.lastDate,focusedDate:ht.focusDate,months:ht.months.map(Cr=>Cr.firstDate)};let cn=!1;if(!rn.equals(Gt)&&(this.navigate.emit({current:Gt?{year:Gt.year,month:Gt.month}:null,next:{year:rn.year,month:rn.month},preventDefault:()=>cn=!0}),cn&&null!==Gt))return void this._service.open(Gt);const Sr=ht.selectedDate,lr=ht.focusDate,In=this.model?this.model.focusDate:null;this.model=ht,Vn(Sr,this._controlValue)&&(this._controlValue=Sr,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(Sr))),Vn(lr,In)&&In&&ht.focusVisible&&this.focus(),ne.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}get i18n(){return this._i18n}focusDate(s){this._service.focus(Cn.from(s))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe((0,_e.q)(1)).subscribe(()=>{const s=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');s&&s.focus()})}navigateTo(s){this._service.open(Cn.from(s?s.day?s:{...s,day:1}:null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const s=(0,O.R)(this._contentEl.nativeElement,"focusin"),c=(0,O.R)(this._contentEl.nativeElement,"focusout"),{nativeElement:m}=this._elementRef;(0,S.T)(s,c).pipe((0,ce.h)(({target:H,relatedTarget:ne})=>!(Jn(H,"ngb-dp-day")&&Jn(ne,"ngb-dp-day")&&m.contains(H)&&m.contains(ne))),(0,ye.R)(this._destroyed$)).subscribe(({type:H})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===H})))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){if(void 0===this.model){const s={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].forEach(c=>s[c]=this[c]),this._service.set(s),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(s){const c={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].filter(m=>m in s).forEach(m=>c[m]=this[m]),this._service.set(c),"startDate"in s){const{currentValue:m,previousValue:H}=s.startDate;An(H,m)&&this.navigateTo(this.startDate)}}onDateSelect(s){this._service.focus(s),this._service.select(s,{emitEvent:!0})}onNavigateDateSelect(s){this._service.open(s)}onNavigateEvent(s){switch(s){case tr.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case tr.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){this._service.set({disabled:s})}writeValue(s){this._controlValue=Cn.from(this._ngbDateAdapter.fromModel(s)),this._service.select(this._controlValue)}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(yn),t.Y36(hi),t.Y36(gn),t.Y36(Jo),t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(ri),t.Y36(t.R0b))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-datepicker"]],contentQueries:function(c,m,H){if(1&c&&t.Suo(H,ps,7),2&c){let ne;t.iGM(ne=t.CRH())&&(m.contentTemplateFromContent=ne.first)}},viewQuery:function(c,m){if(1&c&&(t.Gf(ft,7),t.Gf(Pn,7)),2&c){let H;t.iGM(H=t.CRH())&&(m._defaultDayTemplate=H.first),t.iGM(H=t.CRH())&&(m._contentEl=H.first)}},hostVars:2,hostBindings:function(c,m){2&c&&t.ekj("disabled",m.model.disabled)},inputs:{contentTemplate:"contentTemplate",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",weekdays:"weekdays"},outputs:{navigate:"navigate",dateSelect:"dateSelect"},exportAs:["ngbDatepicker"],standalone:!0,features:[t._Bn([{provide:fe.JU,useExisting:(0,t.Gpc)(()=>l),multi:!0},yn]),t.TTD,t.jDz],decls:10,vars:9,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select",4,"ngIf"],[1,"ngb-dp-content"],["content",""],[3,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],["class","ngb-dp-month",4,"ngFor","ngForOf"],[1,"ngb-dp-month"],["class","ngb-dp-month-name",4,"ngIf"],[3,"month"],[1,"ngb-dp-month-name"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select"]],template:function(c,m){if(1&c&&(t.YNc(0,et,1,5,"ng-template",null,0,t.W1O),t.YNc(2,Gr,1,1,"ng-template",null,1,t.W1O),t.TgZ(4,"div",2),t.YNc(5,Ki,1,7,"ngb-datepicker-navigation",3),t.qZA(),t.TgZ(6,"div",4,5),t.YNc(8,fi,0,0,"ng-template",6),t.qZA(),t.YNc(9,Hs,0,0,"ng-template",7)),2&c){const H=t.MAs(3);t.xp6(5),t.Q6J("ngIf","none"!==m.navigation),t.xp6(1),t.ekj("ngb-dp-months",!m.contentTemplate),t.xp6(2),t.Q6J("ngTemplateOutlet",m.contentTemplate||(null==m.contentTemplateFromContent?null:m.contentTemplateFromContent.templateRef)||H)("ngTemplateOutletContext",t.VKq(7,po,m))("ngTemplateOutletInjector",m.injector),t.xp6(1),t.Q6J("ngTemplateOutlet",m.footerTemplate)}},dependencies:[ae.O5,ae.ax,ae.tP,ar,ao,Qi],styles:["ngb-datepicker{border:1px solid var(--bs-border-color);border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}ngb-datepicker.disabled .ngb-dp-weekday,ngb-datepicker.disabled .ngb-dp-week-number,ngb-datepicker.disabled .ngb-dp-month-name{color:var(--bs-text-muted)}.ngb-dp-body{z-index:1055}.ngb-dp-header{border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem;background-color:var(--bs-light)}.ngb-dp-months{display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center;background-color:var(--bs-light)}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}\n"],encapsulation:2,changeDetection:0})}return l})();const Qo=(l,C)=>!!C&&C.some(s=>s.contains(l)),yl=(l,C)=>!C||null!=function ei(l,C){return!C||typeof l.closest>"u"?null:l.closest(C)}(l,C),vu=typeof navigator<"u"&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function bl(l,C,s,c,m,H,ne,Be){s&&l.runOutsideAngular((l=>vu?()=>setTimeout(()=>l(),100):l)(()=>{const ut=(0,O.R)(C,"keydown").pipe((0,ye.R)(m),(0,ce.h)(Gt=>Gt.which===fr.Escape),(0,ve.b)(Gt=>Gt.preventDefault())),ht=(0,O.R)(C,"mousedown").pipe((0,xe.U)(Gt=>{const cn=Gt.target;return 2!==Gt.button&&!Qo(cn,ne)&&("inside"===s?Qo(cn,H)&&yl(cn,Be):"outside"===s?!Qo(cn,H):yl(cn,Be)||!Qo(cn,H))}),(0,ye.R)(m)),rn=(0,O.R)(C,"mouseup").pipe((0,be.M)(ht),(0,ce.h)(([Gt,cn])=>cn),Ee(0),(0,ye.R)(m));f([ut.pipe((0,xe.U)(Gt=>0)),rn.pipe((0,xe.U)(Gt=>1))]).subscribe(Gt=>l.run(()=>c(Gt)))}))}const Xo=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function va(l){const C=Array.from(l.querySelectorAll(Xo)).filter(s=>-1!==s.tabIndex);return[C[0],C[C.length-1]]}const bu=(l,C,s,c=!1)=>{l.runOutsideAngular(()=>{const m=(0,O.R)(C,"focusin").pipe((0,ye.R)(s),(0,xe.U)(H=>H.target));(0,O.R)(C,"keydown").pipe((0,ye.R)(s),(0,ce.h)(H=>H.which===fr.Tab),(0,be.M)(m)).subscribe(([H,ne])=>{const[Be,Ge]=va(C);(ne===Be||ne===C)&&H.shiftKey&&(Ge.focus(),H.preventDefault()),ne===Ge&&!H.shiftKey&&(Be.focus(),H.preventDefault())}),c&&(0,O.R)(C,"click").pipe((0,ye.R)(s),(0,be.M)(m),(0,xe.U)(H=>H[1])).subscribe(H=>H.focus())})};let Bh=(()=>{class l{constructor(s){this._element=s.documentElement}isRTL(){return"rtl"===(this._element.getAttribute("dir")||"").toLowerCase()}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(ae.K0))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();const vc=/\s+/,Uh=/ +/gi,Kd={top:["top"],bottom:["bottom"],start:["left","right"],left:["left"],end:["right","left"],right:["right"],"top-start":["top-start","top-end"],"top-left":["top-start"],"top-end":["top-end","top-start"],"top-right":["top-end"],"bottom-start":["bottom-start","bottom-end"],"bottom-left":["bottom-start"],"bottom-end":["bottom-end","bottom-start"],"bottom-right":["bottom-end"],"start-top":["left-start","right-start"],"left-top":["left-start"],"start-bottom":["left-end","right-end"],"left-bottom":["left-end"],"end-top":["right-start","left-start"],"right-top":["right-start"],"end-bottom":["right-end","left-end"],"right-bottom":["right-end"]},jh=/^left/,Hh=/^right/,yc=/^start/,Ha=/^end/;function ya({placement:l,baseClass:C},s){let c=Array.isArray(l)?l:l.split(vc),H=c.findIndex(ut=>"auto"===ut);H>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(ut){null==c.find(ht=>-1!==ht.search("^"+ut))&&c.splice(H++,1,ut)});const ne=c.map(ut=>function Yd(l,C){const[s,c]=Kd[l];return C&&c||s}(ut,s.isRTL()));return{placement:ne.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!C,phase:"write",fn({state:ut}){const ht=new RegExp(C+"(-[a-z]+)*","gi"),rn=ut.elements.popper,Gt=ut.placement;let cn=rn.className;cn=cn.replace(ht,""),cn+=` ${function Jd(l,C){let[s,c]=C.split("-");const m=s.replace(jh,"start").replace(Hh,"end");let H=[m];if(c){let ne=c;("left"===s||"right"===s)&&(ne=ne.replace(yc,"top").replace(Ha,"bottom")),H.push(`${m}-${ne}`)}return l&&(H=H.map(ne=>`${l}-${ne}`)),H.join(" ")}(C,Gt)}`,cn=cn.trim().replace(Uh," "),rn.className=cn}},Xn,K,Oe,{enabled:!0,name:"flip",options:{fallbackPlacements:ne}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function El(l){return l}function qo(){const l=(0,t.f3M)(Bh);let C=null;return{createPopper(s){if(!C){let m=(s.updatePopperOptions||El)(ya(s,l));C=wi(s.hostElement,s.targetElement,m)}},update(){C&&C.update()},setOptions(s){if(C){let m=(s.updatePopperOptions||El)(ya(s,l));C.setOptions(m)}},destroy(){C&&(C.destroy(),C=null)}}}let Eu=(()=>{class l extends Jo{constructor(){super(...arguments),this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=s=>s,this.restoreFocus=!0}static#e=this.\u0275fac=function(){let s;return function(m){return(s||(s=t.n5z(l)))(m||l)}}();static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();function Dl(l){return C=>(C.modifiers.push(Bi,{name:"offset",options:{offset:()=>l}}),C)}let bc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:function(){return function Du(){return new co}()},providedIn:"root"})}return l})(),co=(()=>{class l extends bc{parse(s){if(null!=s){const c=s.trim().split("-");if(1===c.length&&Jt(c[0]))return{year:ee(c[0]),month:null,day:null};if(2===c.length&&Jt(c[0])&&Jt(c[1]))return{year:ee(c[0]),month:ee(c[1]),day:null};if(3===c.length&&Jt(c[0])&&Jt(c[1])&&Jt(c[2]))return{year:ee(c[0]),month:ee(c[1]),day:ee(c[2])}}return null}format(s){return s?`${s.year}-${Jt(s.month)?Kn(s.month):""}-${Jt(s.day)?Kn(s.day):""}`:""}static#e=this.\u0275fac=function(){let s;return function(m){return(s||(s=t.n5z(l)))(m||l)}}();static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac})}return l})(),Cu=(()=>{class l{get disabled(){return this._disabled}set disabled(s){this._disabled=""===s||s&&"false"!==s,this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}constructor(s,c,m,H,ne,Be,Ge,ut,ht,rn){this._parserFormatter=s,this._elRef=c,this._vcRef=m,this._renderer=H,this._ngZone=ne,this._calendar=Be,this._dateAdapter=Ge,this._document=ut,this._changeDetector=ht,this._cRef=null,this._disabled=!1,this._elWithFocus=null,this._model=null,this._destroyCloseHandlers$=new p.x,this.dateSelect=new t.vpe,this.navigate=new t.vpe,this.closed=new t.vpe,this._onChange=Gt=>{},this._onTouched=()=>{},this._validatorChange=()=>{},["autoClose","container","positionTarget","placement","popperOptions"].forEach(Gt=>this[Gt]=rn[Gt]),this._positioning=qo()}registerOnChange(s){this._onChange=s}registerOnTouched(s){this._onTouched=s}registerOnValidatorChange(s){this._validatorChange=s}setDisabledState(s){this.disabled=s}validate(s){const{value:c}=s;if(null!=c){const m=this._fromDateStruct(this._dateAdapter.fromModel(c));if(!m)return{ngbDate:{invalid:c}};if(this.minDate&&m.before(Cn.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:c}}};if(this.maxDate&&m.after(Cn.from(this.maxDate)))return{ngbDate:{maxDate:{maxDate:this.maxDate,actual:c}}}}return null}writeValue(s){this._model=this._fromDateStruct(this._dateAdapter.fromModel(s)),this._writeModelValue(this._model)}manualDateChange(s,c=!1){const m=s!==this._inputValue;m&&(this._inputValue=s,this._model=this._fromDateStruct(this._parserFormatter.parse(s))),(m||!c)&&this._onChange(this._model?this._dateAdapter.toModel(this._model):""===s?null:s),c&&this._model&&this._writeModelValue(this._model)}isOpen(){return!!this._cRef}open(){if(!this.isOpen()){let s;if(this._cRef=this._vcRef.createComponent(lo),this._applyPopupStyling(this._cRef.location.nativeElement),this._applyDatepickerInputs(this._cRef),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)),this._cRef.instance.registerOnChange(c=>{this.writeValue(c),this._onChange(c),this._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._cRef.location.nativeElement),this._elWithFocus=this._document.activeElement,bu(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),setTimeout(()=>this._cRef?.instance.focus()),s=Ct(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?this.positionTarget:this._elRef.nativeElement,this._ngZone.runOutsideAngular(()=>{this._cRef&&(this._positioning.createPopper({hostElement:s,targetElement:this._cRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:c=>this.popperOptions(Dl([0,2])(c))}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update()))}),this.positionTarget&&!s)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");this._setCloseHandlers()}}close(){if(this.isOpen()){this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)),this._cRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._destroyCloseHandlers$.next(),this.closed.emit(),this._changeDetector.markForCheck();let s=this._elWithFocus;Ct(this.restoreFocus)?s=this._document.querySelector(this.restoreFocus):void 0!==this.restoreFocus&&(s=this.restoreFocus),s&&s.focus?s.focus():this._document.body.focus()}}toggle(){this.isOpen()?this.close():this.open()}navigateTo(s){this.isOpen()&&this._cRef.instance.navigateTo(s)}onBlur(){this._onTouched()}onFocus(){this._elWithFocus=this._elRef.nativeElement}ngOnChanges(s){if((s.minDate||s.maxDate)&&(this._validatorChange(),this.isOpen()&&(s.minDate&&(this._cRef.instance.minDate=this.minDate),s.maxDate&&(this._cRef.instance.maxDate=this.maxDate),this._cRef.instance.ngOnChanges(s))),s.datepickerClass){const{currentValue:c,previousValue:m}=s.datepickerClass;this._applyPopupClass(c,m)}s.autoClose&&this.isOpen()&&this._setCloseHandlers()}ngOnDestroy(){this.close()}_applyDatepickerInputs(s){["contentTemplate","dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekNumbers","weekdays"].forEach(c=>{void 0!==this[c]&&s.setInput(c,this[c])}),s.setInput("startDate",this.startDate||this._model)}_applyPopupClass(s,c){const m=this._cRef?.location.nativeElement;m&&(s&&this._renderer.addClass(m,s),c&&this._renderer.removeClass(m,c))}_applyPopupStyling(s){this._renderer.addClass(s,"dropdown-menu"),this._renderer.addClass(s,"show"),"body"===this.container&&this._renderer.addClass(s,"ngb-dp-body"),this._applyPopupClass(this.datepickerClass)}_subscribeForDatepickerOutputs(s){s.navigate.subscribe(c=>this.navigate.emit(c)),s.dateSelect.subscribe(c=>{this.dateSelect.emit(c),(!0===this.autoClose||"inside"===this.autoClose)&&this.close()})}_writeModelValue(s){const c=this._parserFormatter.format(s);this._inputValue=c,this._renderer.setProperty(this._elRef.nativeElement,"value",c),this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(s)),this._onTouched())}_fromDateStruct(s){const c=s?new Cn(s.year,s.month,s.day):null;return this._calendar.isValid(c)?c:null}_setCloseHandlers(){this._destroyCloseHandlers$.next(),bl(this._ngZone,this._document,this.autoClose,()=>this.close(),this._destroyCloseHandlers$,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(bc),t.Y36(t.SBq),t.Y36(t.s_b),t.Y36(t.Qsj),t.Y36(t.R0b),t.Y36(hi),t.Y36(ri),t.Y36(ae.K0),t.Y36(t.sBO),t.Y36(Eu))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(c,m){1&c&&t.NdJ("input",function(ne){return m.manualDateChange(ne.target.value)})("change",function(ne){return m.manualDateChange(ne.target.value,!0)})("focus",function(){return m.onFocus()})("blur",function(){return m.onBlur()}),2&c&&t.Ikx("disabled",m.disabled)},inputs:{autoClose:"autoClose",contentTemplate:"contentTemplate",datepickerClass:"datepickerClass",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",minDate:"minDate",maxDate:"maxDate",navigation:"navigation",outsideDays:"outsideDays",placement:"placement",popperOptions:"popperOptions",restoreFocus:"restoreFocus",showWeekNumbers:"showWeekNumbers",startDate:"startDate",container:"container",positionTarget:"positionTarget",weekdays:"weekdays",disabled:"disabled"},outputs:{dateSelect:"dateSelect",navigate:"navigate",closed:"closed"},exportAs:["ngbDatepicker"],standalone:!0,features:[t._Bn([{provide:fe.JU,useExisting:(0,t.Gpc)(()=>l),multi:!0},{provide:fe.Cf,useExisting:(0,t.Gpc)(()=>l),multi:!0},{provide:Jo,useExisting:Eu}]),t.TTD]})}return l})();new Date(1882,10,12),new Date(2174,10,25);let Ou=(()=>{class l extends ri{fromModel(s){return s instanceof Date&&!isNaN(s.getTime())?this._fromNativeDate(s):null}toModel(s){return s&&Bn(s.year)&&Bn(s.month)&&Bn(s.day)?this._toNativeDate(s):null}_fromNativeDate(s){return{year:s.getFullYear(),month:s.getMonth()+1,day:s.getDate()}}_toNativeDate(s){const c=new Date(s.year,s.month-1,s.day,12);return c.setFullYear(s.year),c}static#e=this.\u0275fac=function(){let s;return function(m){return(s||(s=t.n5z(l)))(m||l)}}();static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac})}return l})(),Iu=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),cf=(()=>{class l{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=s=>s}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Mc=(()=>{class l{set disabled(s){this._disabled=""===s||!0===s,this._renderer.setProperty(this.elementRef.nativeElement,"disabled",this._disabled)}get disabled(){return this._disabled}constructor(s,c){this.elementRef=s,this._renderer=c,this._disabled=!1}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.SBq),t.Y36(t.Qsj))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(c,m){2&c&&(t.Ikx("tabIndex",m.disabled?-1:0),t.ekj("disabled",m.disabled))},inputs:{disabled:"disabled"},standalone:!0})}return l})(),Ya=(()=>{class l{constructor(s,c){this.dropdown=s,this.placement="bottom",this.isOpen=!1,this.nativeElement=c.nativeElement}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36((0,t.Gpc)(()=>Lo)),t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(c,m,H){if(1&c&&t.Suo(H,Mc,4),2&c){let ne;t.iGM(ne=t.CRH())&&(m.menuItems=ne)}},hostVars:4,hostBindings:function(c,m){1&c&&t.NdJ("keydown.ArrowUp",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.ArrowDown",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Home",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.End",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Enter",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Space",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Tab",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Shift.Tab",function(ne){return m.dropdown.onKeyDown(ne)}),2&c&&t.ekj("dropdown-menu",!0)("show",m.dropdown.isOpen())},standalone:!0})}return l})(),ta=(()=>{class l{constructor(s,c){this.dropdown=s,this.nativeElement=c.nativeElement}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36((0,t.Gpc)(()=>Lo)),t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(c,m){2&c&&t.uIk("aria-expanded",m.dropdown.isOpen())},standalone:!0})}return l})(),Pu=(()=>{class l extends ta{constructor(s,c){super(s,c)}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36((0,t.Gpc)(()=>Lo)),t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:1,hostBindings:function(c,m){1&c&&t.NdJ("click",function(){return m.dropdown.toggle()})("keydown.ArrowUp",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.ArrowDown",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Home",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.End",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Tab",function(ne){return m.dropdown.onKeyDown(ne)})("keydown.Shift.Tab",function(ne){return m.dropdown.onKeyDown(ne)}),2&c&&t.uIk("aria-expanded",m.dropdown.isOpen())},standalone:!0,features:[t._Bn([{provide:ta,useExisting:(0,t.Gpc)(()=>l)}]),t.qOj]})}return l})(),Lo=(()=>{class l{constructor(s,c,m,H,ne,Be){this._changeDetector=s,this._document=m,this._ngZone=H,this._elementRef=ne,this._renderer=Be,this._destroyCloseHandlers$=new p.x,this._bodyContainer=null,this._open=!1,this.openChange=new t.vpe,this.placement=c.placement,this.popperOptions=c.popperOptions,this.container=c.container,this.autoClose=c.autoClose,this._positioning=qo()}ngOnInit(){this.display||(this.display=this._elementRef.nativeElement.closest(".navbar")?"static":"dynamic")}ngAfterContentInit(){this._ngZone.onStable.pipe((0,_e.q)(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(s){if(s.container&&this._open&&this._applyContainer(this.container),s.placement&&!s.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container}),this._applyPlacementClasses()),s.dropdownClass){const{currentValue:c,previousValue:m}=s.dropdownClass;this._applyCustomDropdownClass(c,m)}s.autoClose&&this._open&&(this.autoClose=s.autoClose.currentValue,this._setCloseHandlers())}isOpen(){return this._open}open(){this._open||(this._open=!0,this._applyContainer(this.container),this.openChange.emit(!0),this._setCloseHandlers(),this._anchor&&(this._anchor.nativeElement.focus(),"dynamic"===this.display&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:s=>this.popperOptions(Dl([0,2])(s))}),this._applyPlacementClasses(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positionMenu())})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),bl(this._ngZone,this._document,this.autoClose,s=>{this.close(),0===s&&this._anchor.nativeElement.focus()},this._destroyCloseHandlers$,this._menu?[this._menu.nativeElement]:[],this._anchor?[this._anchor.nativeElement]:[],".dropdown-item,.dropdown-divider")}close(){this._open&&(this._open=!1,this._resetContainer(),this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._destroyCloseHandlers$.next(),this.openChange.emit(!1),this._changeDetector.markForCheck())}toggle(){this.isOpen()?this.close():this.open()}ngOnDestroy(){this.close()}onKeyDown(s){const c=s.which,m=this._getMenuElements();let H=-1,ne=null;const Be=this._isEventFromToggle(s);if(!Be&&m.length&&m.forEach((Ge,ut)=>{Ge.contains(s.target)&&(ne=Ge),Ge===Li(this._document)&&(H=ut)}),c!==fr.Space&&c!==fr.Enter){if(c!==fr.Tab){if(Be||ne){if(this.open(),m.length){switch(c){case fr.ArrowDown:H=Math.min(H+1,m.length-1);break;case fr.ArrowUp:if(this._isDropup()&&-1===H){H=m.length-1;break}H=Math.max(H-1,0);break;case fr.Home:H=0;break;case fr.End:H=m.length-1}m[H].focus()}s.preventDefault()}}else if(s.target&&this.isOpen()&&this.autoClose){if(this._anchor.nativeElement===s.target)return void("body"!==this.container||s.shiftKey?s.shiftKey&&this.close():(this._renderer.setAttribute(this._menu.nativeElement,"tabindex","0"),this._menu.nativeElement.focus(),this._renderer.removeAttribute(this._menu.nativeElement,"tabindex")));if("body"===this.container){const Ge=this._menu.nativeElement.querySelectorAll(Xo);s.shiftKey&&s.target===Ge[0]?(this._anchor.nativeElement.focus(),s.preventDefault()):!s.shiftKey&&s.target===Ge[Ge.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else(0,O.R)(s.target,"focusout").pipe((0,_e.q)(1)).subscribe(({relatedTarget:Ge})=>{this._elementRef.nativeElement.contains(Ge)||this.close()})}}else ne&&(!0===this.autoClose||"inside"===this.autoClose)&&(0,O.R)(ne,"click").pipe((0,_e.q)(1)).subscribe(()=>this.close())}_isDropup(){return this._elementRef.nativeElement.classList.contains("dropup")}_isEventFromToggle(s){return this._anchor.nativeElement.contains(s.target)}_getMenuElements(){const s=this._menu;return null==s?[]:s.menuItems.filter(c=>!c.disabled).map(c=>c.elementRef.nativeElement)}_positionMenu(){const s=this._menu;this.isOpen()&&s&&("dynamic"===this.display?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(s){return Array.isArray(s)?s[0]:s.split(" ")[0]}_resetContainer(){const s=this._renderer;this._menu&&s.appendChild(this._elementRef.nativeElement,this._menu.nativeElement),this._bodyContainer&&(s.removeChild(this._document.body,this._bodyContainer),this._bodyContainer=null)}_applyContainer(s=null){if(this._resetContainer(),"body"===s){const c=this._renderer,m=this._menu.nativeElement,H=this._bodyContainer=this._bodyContainer||c.createElement("div");c.setStyle(H,"position","absolute"),c.setStyle(m,"position","static"),c.setStyle(H,"z-index","1055"),c.appendChild(H,m),c.appendChild(this._document.body,H)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(s,c){const m="body"===this.container?this._bodyContainer:this._elementRef.nativeElement;m&&(c&&this._renderer.removeClass(m,c),s&&this._renderer.addClass(m,s))}_applyPlacementClasses(s){const c=this._menu;if(c){s||(s=this._getFirstPlacement(this.placement));const m=this._renderer,H=this._elementRef.nativeElement;m.removeClass(H,"dropup"),m.removeClass(H,"dropdown");const{nativeElement:ne}=c;"static"===this.display?(c.placement=null,m.setAttribute(ne,"data-bs-popper","static")):(c.placement=s,m.removeAttribute(ne,"data-bs-popper"));const Be=-1!==s.search("^top")?"dropup":"dropdown";m.addClass(H,Be);const Ge=this._bodyContainer;Ge&&(m.removeClass(Ge,"dropup"),m.removeClass(Ge,"dropdown"),m.addClass(Ge,Be))}}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.sBO),t.Y36(cf),t.Y36(ae.K0),t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(t.Qsj))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbDropdown",""]],contentQueries:function(c,m,H){if(1&c&&(t.Suo(H,Ya,5),t.Suo(H,ta,5)),2&c){let ne;t.iGM(ne=t.CRH())&&(m._menu=ne.first),t.iGM(ne=t.CRH())&&(m._anchor=ne.first)}},hostVars:2,hostBindings:function(c,m){2&c&&t.ekj("show",m.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:["open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],standalone:!0,features:[t.TTD]})}return l})(),Ja=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})();class na{constructor(C,s,c){this.nodes=C,this.viewRef=s,this.componentRef=c}}class Sc{constructor(C,s,c,m,H,ne){this._componentType=C,this._injector=s,this._viewContainerRef=c,this._renderer=m,this._ngZone=H,this._applicationRef=ne,this._windowRef=null,this._contentRef=null}open(C,s,c=!1){this._windowRef||(this._contentRef=this._getContentRef(C,s),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:m}=this._windowRef.location,H=this._ngZone.onStable.pipe((0,_e.q)(1),(0,_t.z)(()=>li(this._ngZone,m,({classList:ne})=>ne.add("show"),{animation:c,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:H}}close(C=!1){return this._windowRef?li(this._ngZone,this._windowRef.location.nativeElement,({classList:s})=>s.remove("show"),{animation:C,runningTransition:"stop"}).pipe((0,ve.b)(()=>{this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),this._contentRef?.viewRef&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):(0,L.of)(void 0)}_getContentRef(C,s){if(C){if(C instanceof t.Rgc){const c=C.createEmbeddedView(s);return this._applicationRef.attachView(c),new na([c.rootNodes],c)}return new na([[this._renderer.createText(`${C}`)]])}return new na([])}}let Ac=(()=>{class l{constructor(s,c){this._el=s,this._zone=c}ngOnInit(){this._zone.onStable.asObservable().pipe((0,_e.q)(1)).subscribe(()=>{li(this._zone,this._el.nativeElement,(s,c)=>{c&&Ei(s),s.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return li(this._zone,this._el.nativeElement,({classList:s})=>s.remove("show"),{animation:this.animation,runningTransition:"stop"})}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.SBq),t.Y36(t.R0b))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(c,m){2&c&&(t.Tol("modal-backdrop"+(m.backdropClass?" "+m.backdropClass:"")),t.ekj("show",!m.animation)("fade",m.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[t.jDz],decls:0,vars:0,template:function(c,m){},encapsulation:2})}return l})();class Da{update(C){}close(C){}dismiss(C){}}const Ru=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],uf=["animation","backdropClass"];class df{_applyWindowOptions(C,s){Ru.forEach(c=>{dr(s[c])&&(C[c]=s[c])})}_applyBackdropOptions(C,s){uf.forEach(c=>{dr(s[c])&&(C[c]=s[c])})}update(C){this._applyWindowOptions(this._windowCmptRef.instance,C),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,C)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe((0,ye.R)(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe((0,ye.R)(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(C,s,c,m){this._windowCmptRef=C,this._contentRef=s,this._backdropCmptRef=c,this._beforeDismiss=m,this._closed=new p.x,this._dismissed=new p.x,this._hidden=new p.x,C.instance.dismissEvent.subscribe(H=>{this.dismiss(H)}),this.result=new Promise((H,ne)=>{this._resolve=H,this._reject=ne}),this.result.then(null,()=>{})}close(C){this._windowCmptRef&&(this._closed.next(C),this._resolve(C),this._removeModalElements())}_dismiss(C){this._dismissed.next(C),this._reject(C),this._removeModalElements()}dismiss(C){if(this._windowCmptRef)if(this._beforeDismiss){const s=this._beforeDismiss();!function yr(l){return l&&l.then}(s)?!1!==s&&this._dismiss(C):s.then(c=>{!1!==c&&this._dismiss(C)},()=>{})}else this._dismiss(C)}_removeModalElements(){const C=this._windowCmptRef.instance.hide(),s=this._backdropCmptRef?this._backdropCmptRef.instance.hide():(0,L.of)(void 0);C.subscribe(()=>{const{nativeElement:c}=this._windowCmptRef.location;c.parentNode.removeChild(c),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),s.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:c}=this._backdropCmptRef.location;c.parentNode.removeChild(c),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),ie(C,s).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Fo=function(l){return l[l.BACKDROP_CLICK=0]="BACKDROP_CLICK",l[l.ESC=1]="ESC",l}(Fo||{});let Qa=(()=>{class l{constructor(s,c,m){this._document=s,this._elRef=c,this._zone=m,this._closed$=new p.x,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new t.vpe,this.shown=new p.x,this.hidden=new p.x}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":Ct(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(s){this.dismissEvent.emit(s)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe((0,_e.q)(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:s}=this._elRef,c={animation:this.animation,runningTransition:"stop"},ne=ie(li(this._zone,s,()=>s.classList.remove("show"),c),li(this._zone,this._dialogEl.nativeElement,()=>{},c));return ne.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),ne}_show(){const s={animation:this.animation,runningTransition:"continue"};ie(li(this._zone,this._elRef.nativeElement,(H,ne)=>{ne&&Ei(H),H.classList.add("show")},s),li(this._zone,this._dialogEl.nativeElement,()=>{},s)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:s}=this._elRef;this._zone.runOutsideAngular(()=>{(0,O.R)(s,"keydown").pipe((0,ye.R)(this._closed$),(0,ce.h)(m=>m.which===fr.Escape)).subscribe(m=>{this.keyboard?requestAnimationFrame(()=>{m.defaultPrevented||this._zone.run(()=>this.dismiss(Fo.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let c=!1;(0,O.R)(this._dialogEl.nativeElement,"mousedown").pipe((0,ye.R)(this._closed$),(0,ve.b)(()=>c=!1),(0,ze.w)(()=>(0,O.R)(s,"mouseup").pipe((0,ye.R)(this._closed$),(0,_e.q)(1))),(0,ce.h)(({target:m})=>s===m)).subscribe(()=>{c=!0}),(0,O.R)(s,"click").pipe((0,ye.R)(this._closed$)).subscribe(({target:m})=>{s===m&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!c&&this._zone.run(()=>this.dismiss(Fo.BACKDROP_CLICK))),c=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:s}=this._elRef;if(!s.contains(document.activeElement)){const c=s.querySelector("[ngbAutofocus]"),m=va(s)[0];(c||m||s).focus()}}_restoreFocus(){const s=this._document.body,c=this._elWithFocus;let m;m=c&&c.focus&&s.contains(c)?c:s,this._zone.runOutsideAngular(()=>{setTimeout(()=>m.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&li(this._zone,this._elRef.nativeElement,({classList:s})=>(s.add("modal-static"),()=>s.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(ae.K0),t.Y36(t.SBq),t.Y36(t.R0b))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-modal-window"]],viewQuery:function(c,m){if(1&c&&t.Gf(Ds,7),2&c){let H;t.iGM(H=t.CRH())&&(m._dialogEl=H.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(c,m){2&c&&(t.uIk("aria-modal",!0)("aria-labelledby",m.ariaLabelledBy)("aria-describedby",m.ariaDescribedBy),t.Tol("modal d-block"+(m.windowClass?" "+m.windowClass:"")),t.ekj("fade",m.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[t.jDz],ngContentSelectors:Ve,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(c,m){1&c&&(t.F$t(),t.TgZ(0,"div",0,1)(2,"div",2),t.Hsn(3),t.qZA()()),2&c&&t.Tol("modal-dialog"+(m.size?" modal-"+m.size:"")+(m.centered?" modal-dialog-centered":"")+m.fullscreenClass+(m.scrollable?" modal-dialog-scrollable":"")+(m.modalDialogClass?" "+m.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2})}return l})(),ff=(()=>{class l{constructor(s){this._document=s}hide(){const s=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),c=this._document.body,m=c.style,{overflow:H,paddingRight:ne}=m;if(s>0){const Be=parseFloat(window.getComputedStyle(c).paddingRight);m.paddingRight=`${Be+s}px`}return m.overflow="hidden",()=>{s>0&&(m.paddingRight=ne),m.overflow=H}}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(ae.K0))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),ng=(()=>{class l{constructor(s,c,m,H,ne,Be,Ge){this._applicationRef=s,this._injector=c,this._environmentInjector=m,this._document=H,this._scrollBar=ne,this._rendererFactory=Be,this._ngZone=Ge,this._activeWindowCmptHasChanged=new p.x,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new t.vpe,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const ut=this._windowCmpts[this._windowCmpts.length-1];bu(this._ngZone,ut.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(ut.location.nativeElement)}})}_restoreScrollBar(){const s=this._scrollBarRestoreFn;s&&(this._scrollBarRestoreFn=null,s())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(s,c,m){const H=m.container instanceof HTMLElement?m.container:dr(m.container)?this._document.querySelector(m.container):this._document.body,ne=this._rendererFactory.createRenderer(null,null);if(!H)throw new Error(`The specified modal container "${m.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const Be=new Da,Ge=(s=m.injector||s).get(t.lqb,null)||this._environmentInjector,ut=this._getContentRef(s,Ge,c,Be,m);let ht=!1!==m.backdrop?this._attachBackdrop(H):void 0,rn=this._attachWindowComponent(H,ut.nodes),Gt=new df(rn,ut,ht,m.beforeDismiss);return this._registerModalRef(Gt),this._registerWindowCmpt(rn),Gt.hidden.pipe((0,_e.q)(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(ne.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),Be.close=cn=>{Gt.close(cn)},Be.dismiss=cn=>{Gt.dismiss(cn)},Be.update=cn=>{Gt.update(cn)},Gt.update(m),1===this._modalRefs.length&&ne.addClass(this._document.body,"modal-open"),ht&&ht.instance&&ht.changeDetectorRef.detectChanges(),rn.changeDetectorRef.detectChanges(),Gt}get activeInstances(){return this._activeInstances}dismissAll(s){this._modalRefs.forEach(c=>c.dismiss(s))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(s){let c=(0,t.LMc)(Ac,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(c.hostView),s.appendChild(c.location.nativeElement),c}_attachWindowComponent(s,c){let m=(0,t.LMc)(Qa,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:c});return this._applicationRef.attachView(m.hostView),s.appendChild(m.location.nativeElement),m}_getContentRef(s,c,m,H,ne){return m?m instanceof t.Rgc?this._createFromTemplateRef(m,H):Ct(m)?this._createFromString(m):this._createFromComponent(s,c,m,H,ne):new na([])}_createFromTemplateRef(s,c){const H=s.createEmbeddedView({$implicit:c,close(ne){c.close(ne)},dismiss(ne){c.dismiss(ne)}});return this._applicationRef.attachView(H),new na([H.rootNodes],H)}_createFromString(s){const c=this._document.createTextNode(`${s}`);return new na([[c]])}_createFromComponent(s,c,m,H,ne){const Be=t.zs3.create({providers:[{provide:Da,useValue:H}],parent:s}),Ge=(0,t.LMc)(m,{environmentInjector:c,elementInjector:Be}),ut=Ge.location.nativeElement;return ne.scrollable&&ut.classList.add("component-host-scrollable"),this._applicationRef.attachView(Ge.hostView),new na([[ut]],Ge.hostView,Ge)}_setAriaHidden(s){const c=s.parentElement;c&&s!==this._document.body&&(Array.from(c.children).forEach(m=>{m!==s&&"SCRIPT"!==m.nodeName&&(this._ariaHiddenValues.set(m,m.getAttribute("aria-hidden")),m.setAttribute("aria-hidden","true"))}),this._setAriaHidden(c))}_revertAriaHidden(){this._ariaHiddenValues.forEach((s,c)=>{s?c.setAttribute("aria-hidden",s):c.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(s){const c=()=>{const m=this._modalRefs.indexOf(s);m>-1&&(this._modalRefs.splice(m,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(s),this._activeInstances.emit(this._modalRefs),s.result.then(c,c)}_registerWindowCmpt(s){this._windowCmpts.push(s),this._activeWindowCmptHasChanged.next(),s.onDestroy(()=>{const c=this._windowCmpts.indexOf(s);c>-1&&(this._windowCmpts.splice(c,1),this._activeWindowCmptHasChanged.next())})}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(t.z2F),t.LFG(t.zs3),t.LFG(t.lqb),t.LFG(ae.K0),t.LFG(ff),t.LFG(t.FYo),t.LFG(t.R0b))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Nu=(()=>{class l{constructor(s){this._ngbConfig=s,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(Ji))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Lu=(()=>{class l{constructor(s,c,m){this._injector=s,this._modalStack=c,this._config=m}open(s,c={}){const m={...this._config,animation:this._config.animation,...c};return this._modalStack.open(this._injector,s,m)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(s){this._modalStack.dismissAll(s)}hasOpenModals(){return this._modalStack.hasOpenModals()}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(t.zs3),t.LFG(ng),t.LFG(Nu))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),pf=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({providers:[Lu]})}return l})(),xl=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Oc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})();class Ca{constructor(C,s){this.open=C,this.close=s,s||(this.close=C)}isManual(){return"manual"===this.open||"manual"===this.close}}const ju={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},rl=l=>l>0?Ee(l):C=>C;let $u=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Ic=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),hs=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Rc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Lc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})();const Zu=(l,C)=>{const{classList:s}=l;if(C)return s.add("fade"),Ei(l),s.add("show","showing"),()=>{s.remove("showing")};s.add("show")},Ku=({classList:l})=>(l.add("showing"),()=>{l.remove("show","showing")});let Ta=(()=>{class l{constructor(s){this._ngbConfig=s,this.autohide=!0,this.delay=5e3,this.ariaLive="polite"}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(Ji))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Rl=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbToastHeader",""]],standalone:!0})}return l})(),Yu=(()=>{class l{constructor(s,c,m,H){this.ariaLive=s,this._zone=m,this._element=H,this.contentHeaderTpl=null,this.shown=new t.vpe,this.hidden=new t.vpe,null==this.ariaLive&&(this.ariaLive=c.ariaLive),this.delay=c.delay,this.autohide=c.autohide,this.animation=c.animation}ngAfterContentInit(){this._zone.onStable.asObservable().pipe((0,_e.q)(1)).subscribe(()=>{this._init(),this.show()})}ngOnChanges(s){"autohide"in s&&(this._clearTimeout(),this._init())}hide(){this._clearTimeout();const s=li(this._zone,this._element.nativeElement,Ku,{animation:this.animation,runningTransition:"stop"});return s.subscribe(()=>{this.hidden.emit()}),s}show(){const s=li(this._zone,this._element.nativeElement,Zu,{animation:this.animation,runningTransition:"continue"});return s.subscribe(()=>{this.shown.emit()}),s}_init(){this.autohide&&!this._timeoutID&&(this._timeoutID=setTimeout(()=>this.hide(),this.delay))}_clearTimeout(){this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}static#e=this.\u0275fac=function(c){return new(c||l)(t.$8M("aria-live"),t.Y36(Ta),t.Y36(t.R0b),t.Y36(t.SBq))};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-toast"]],contentQueries:function(c,m,H){if(1&c&&t.Suo(H,Rl,7,t.Rgc),2&c){let ne;t.iGM(ne=t.CRH())&&(m.contentHeaderTpl=ne.first)}},hostAttrs:["role","alert","aria-atomic","true",1,"toast"],hostVars:3,hostBindings:function(c,m){2&c&&(t.uIk("aria-live",m.ariaLive),t.ekj("fade",m.animation))},inputs:{animation:"animation",delay:"delay",autohide:"autohide",header:"header"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbToast"],standalone:!0,features:[t.TTD,t.jDz],ngContentSelectors:Ve,decls:5,vars:1,consts:function(){let s;return s=$localize`:@@ngb.toast.close-aria:Close`,[["headerTpl",""],[3,"ngIf"],[1,"toast-body"],[1,"me-auto"],[1,"toast-header"],[3,"ngTemplateOutlet"],["type","button","aria-label",s,1,"btn-close",3,"click"]]},template:function(c,m){1&c&&(t.F$t(),t.YNc(0,_o,2,1,"ng-template",null,0,t.W1O),t.YNc(2,Ao,3,1,"ng-template",1),t.TgZ(3,"div",2),t.Hsn(4),t.qZA()),2&c&&(t.xp6(2),t.Q6J("ngIf",m.contentHeaderTpl||m.header))},dependencies:[ae.O5,ae.tP],styles:["ngb-toast{display:block}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem}\n"],encapsulation:2})}return l})(),Nl=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Ll=(()=>{class l{constructor(s){this._ngbConfig=s,this.autoClose=!0,this.placement="auto",this.popperOptions=c=>c,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(Ji))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Of=0,If=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip",2,"position","absolute"],hostVars:5,hostBindings:function(c,m){2&c&&(t.Ikx("id",m.id),t.Tol("tooltip"+(m.tooltipClass?" "+m.tooltipClass:"")),t.ekj("fade",m.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[t.jDz],ngContentSelectors:Ve,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(c,m){1&c&&(t.F$t(),t._UZ(0,"div",0),t.TgZ(1,"div",1),t.Hsn(2),t.qZA())},encapsulation:2,changeDetection:0})}return l})(),Pf=(()=>{class l{constructor(s,c,m,H,ne,Be,Ge,ut,ht){this._elementRef=s,this._renderer=c,this._ngZone=Be,this._document=Ge,this._changeDetector=ut,this.shown=new t.vpe,this.hidden=new t.vpe,this._ngbTooltipWindowId="ngb-tooltip-"+Of++,this._windowRef=null,this.animation=ne.animation,this.autoClose=ne.autoClose,this.placement=ne.placement,this.popperOptions=ne.popperOptions,this.triggers=ne.triggers,this.container=ne.container,this.disableTooltip=ne.disableTooltip,this.tooltipClass=ne.tooltipClass,this.openDelay=ne.openDelay,this.closeDelay=ne.closeDelay,this._popupService=new Sc(If,m,H,c,this._ngZone,ht),this._positioning=qo()}set ngbTooltip(s){this._ngbTooltip=s,!s&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(s){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:c,transition$:m}=this._popupService.open(this._ngbTooltip,s??this.tooltipContext,this.animation);this._windowRef=c,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._renderer.setAttribute(this._getPositionTargetElement(),"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._getPositionTargetElement(),targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,baseClass:"bs-tooltip",updatePopperOptions:H=>this.popperOptions(H)}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),bl(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),m.subscribe(()=>this.shown.emit())}}close(s=this.animation){null!=this._windowRef&&(this._renderer.removeAttribute(this._getPositionTargetElement(),"aria-describedby"),this._popupService.close(s).subscribe(()=>{this._windowRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function Tf(l,C,s,c,m,H,ne=0,Be=0){const Ge=function Hu(l,C=ju){const s=(l||"").trim();if(0===s.length)return[];const c=s.split(/\s+/).map(H=>H.split(":")).map(H=>{let ne=C[H[0]]||H;return new Ca(ne[0],ne[1])}),m=c.filter(H=>H.isManual());if(m.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===m.length&&c.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return c}(s);if(1===Ge.length&&Ge[0].isManual())return()=>{};const ut=function Ol(l,C,s,c){return new d.y(m=>{const H=[],ne=()=>m.next(!0),Be=()=>m.next(!1),Ge=()=>m.next(!c());return s.forEach(ut=>{ut.open===ut.close?H.push(l.listen(C,ut.open,Ge)):H.push(l.listen(C,ut.open,ne),l.listen(C,ut.close,Be))}),()=>{H.forEach(ut=>ut())}})}(l,C,Ge,c).pipe(function Il(l,C,s){return c=>{let m=null;const H=c.pipe((0,xe.U)(Ge=>({open:Ge})),(0,ce.h)(Ge=>{const ut=s();return ut===Ge.open||m&&m.open!==ut?(m&&m.open!==Ge.open&&(m=null),!1):(m=Ge,!0)}),(0,se.B)()),ne=H.pipe((0,ce.h)(Ge=>Ge.open),rl(l)),Be=H.pipe((0,ce.h)(Ge=>!Ge.open),rl(C));return(0,S.T)(ne,Be).pipe((0,ce.h)(Ge=>Ge===m&&(m=null,Ge.open!==s())),(0,xe.U)(Ge=>Ge.open))}}(ne,Be,c)).subscribe(ht=>ht?m():H());return()=>ut.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:s}){s&&this.isOpen()&&(this._windowRef.instance.tooltipClass=s.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(Ct(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._elementRef.nativeElement}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.zs3),t.Y36(t.s_b),t.Y36(Ll),t.Y36(t.R0b),t.Y36(ae.K0),t.Y36(t.sBO),t.Y36(t.z2F))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",popperOptions:"popperOptions",triggers:"triggers",positionTarget:"positionTarget",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",tooltipContext:"tooltipContext",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],standalone:!0,features:[t.TTD]})}return l})(),Ju=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),Rf=(()=>{class l{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(s){!this.accentSensitive&&!String.prototype.normalize&&(console.warn("The `accentSensitive` input in `ngb-highlight` cannot be set to `false` in a browser that does not implement the `String.normalize` function. You will have to include a polyfill in your application to use this feature in the current browser."),this.accentSensitive=!0);const c=Ie(this.result),m=Array.isArray(this.term)?this.term:[this.term],H=ut=>this.accentSensitive?ut:Hi(ut),ne=m.map(ut=>function Jr(l){return l.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(H(Ie(ut)))).filter(ut=>ut),Be=this.accentSensitive?c:Hi(c),Ge=ne.length?Be.split(new RegExp(`(${ne.join("|")})`,"gmi")):[c];if(this.accentSensitive)this.parts=Ge;else{let ut=0;this.parts=Ge.map(ht=>c.substring(ut,ut+=ht.length))}}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},standalone:!0,features:[t.TTD,t.jDz],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["even",""]],template:function(c,m){1&c&&t.YNc(0,oo,3,2,"ng-template",0),2&c&&t.Q6J("ngForOf",m.parts)},dependencies:[ae.O5,ae.ax],styles:[".ngb-highlight{font-weight:700}\n"],encapsulation:2,changeDetection:0})}return l})(),Nf=(()=>{class l{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=Ie,this.selectEvent=new t.vpe,this.activeChangeEvent=new t.vpe}hasActive(){return this.activeIdx>-1&&this.activeIdx=0?this.id+"-"+this.activeIdx:void 0)}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275cmp=t.Xpm({type:l,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(c,m){1&c&&t.NdJ("mousedown",function(ne){return ne.preventDefault()}),2&c&&(t.Ikx("id",m.id),t.Tol("dropdown-menu show"+(m.popupClass?" "+m.popupClass:"")))},inputs:{id:"id",focusFirst:"focusFirst",results:"results",term:"term",formatter:"formatter",resultTemplate:"resultTemplate",popupClass:"popupClass"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],standalone:!0,features:[t.jDz],decls:3,vars:1,consts:[["rt",""],["ngFor","",3,"ngForOf"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"id","mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(c,m){1&c&&(t.YNc(0,xo,1,2,"ng-template",null,0,t.W1O),t.YNc(2,U,2,9,"ng-template",1)),2&c&&(t.xp6(2),t.Q6J("ngForOf",m.results))},dependencies:[Rf,ae.ax,ae.tP],encapsulation:2})}return l})(),Qu=(()=>{class l{constructor(){this.editable=!0,this.focusFirst=!0,this.selectOnExact=!1,this.showHint=!1,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=s=>s}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();const Fl=new t.OlP("live announcer delay",{providedIn:"root",factory:function Fc(){return 100}});function kl(l,C=!1){let s=l.body.querySelector("#ngb-live");return null==s&&C&&(s=l.createElement("div"),s.setAttribute("id","ngb-live"),s.setAttribute("aria-live","polite"),s.setAttribute("aria-atomic","true"),s.classList.add("visually-hidden"),l.body.appendChild(s)),s}let Lf=(()=>{class l{constructor(s,c){this._document=s,this._delay=c}ngOnDestroy(){const s=kl(this._document);s&&s.parentElement.removeChild(s)}say(s){const c=kl(this._document,!0),m=this._delay;if(null!=c){c.textContent="";const H=()=>c.textContent=s;null===m?H():setTimeout(H,m)}}static#e=this.\u0275fac=function(c){return new(c||l)(t.LFG(ae.K0),t.LFG(Fl))};static#t=this.\u0275prov=t.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Ff=0,kc=(()=>{class l{constructor(s,c,m,H,ne,Be,Ge,ut,ht,rn,Gt){this._elementRef=s,this._renderer=m,this._live=Ge,this._document=ut,this._ngZone=ht,this._changeDetector=rn,this._subscription=null,this._closed$=new p.x,this._inputValueBackup=null,this._inputValueForSelectOnExact=null,this._windowRef=null,this.autocomplete="off",this.placement="bottom-start",this.selectItem=new t.vpe,this.activeDescendant=null,this.popupId="ngb-typeahead-"+Ff++,this._onTouched=()=>{},this._onChange=cn=>{},this.container=ne.container,this.editable=ne.editable,this.focusFirst=ne.focusFirst,this.selectOnExact=ne.selectOnExact,this.showHint=ne.showHint,this.placement=ne.placement,this.popperOptions=ne.popperOptions,this._valueChanges=(0,O.R)(s.nativeElement,"input").pipe((0,xe.U)(cn=>cn.target.value)),this._resubscribeTypeahead=new k.X(null),this._popupService=new Sc(Nf,H,c,m,this._ngZone,Gt),this._positioning=qo()}ngOnInit(){this._subscribeToUserInput()}ngOnChanges({ngbTypeahead:s}){s&&!s.firstChange&&(this._unsubscribeFromUserInput(),this._subscribeToUserInput())}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput()}registerOnChange(s){this._onChange=s}registerOnTouched(s){this._onTouched=s}writeValue(s){this._writeInputValue(this._formatItemForInput(s)),this.showHint&&(this._inputValueBackup=s)}setDisabledState(s){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",s)}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead.next(null),this._closePopup(),this.showHint&&null!==this._inputValueBackup&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return null!=this._windowRef}handleBlur(){this._resubscribeTypeahead.next(null),this._onTouched()}handleKeyDown(s){if(this.isPopupOpen())switch(s.which){case fr.ArrowDown:s.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case fr.ArrowUp:s.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case fr.Enter:case fr.Tab:{const c=this._windowRef.instance.getActive();dr(c)&&(s.preventDefault(),s.stopPropagation(),this._selectResult(c)),this._closePopup();break}}}_openPopup(){if(!this.isPopupOpen()){this._inputValueBackup=this._elementRef.nativeElement.value;const{windowRef:s}=this._popupService.open();this._windowRef=s,this._windowRef.setInput("id",this.popupId),this._windowRef.setInput("popupClass",this.popupClass),this._windowRef.instance.selectEvent.subscribe(c=>this._selectResultClosePopup(c)),this._windowRef.instance.activeChangeEvent.subscribe(c=>this.activeDescendant=c),"body"===this.container&&(this._renderer.setStyle(this._windowRef.location.nativeElement,"z-index","1055"),this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement)),this._changeDetector.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._windowRef&&(this._positioning.createPopper({hostElement:this._elementRef.nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:c=>this.popperOptions(Dl([0,2])(c))}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update()))}),bl(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._elementRef.nativeElement,this._windowRef.location.nativeElement])}}_closePopup(){this._popupService.close().subscribe(()=>{this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._closed$.next(),this._windowRef=null,this.activeDescendant=null})}_selectResult(s){let c=!1;this.selectItem.emit({item:s,preventDefault:()=>{c=!0}}),this._resubscribeTypeahead.next(null),c||(this.writeValue(s),this._onChange(s))}_selectResultClosePopup(s){this._selectResult(s),this._closePopup()}_showHint(){if(this.showHint&&this._windowRef?.instance.hasActive()&&null!=this._inputValueBackup){const s=this._inputValueBackup.toLowerCase(),c=this._formatItemForInput(this._windowRef.instance.getActive());s===c.substring(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+c.substring(this._inputValueBackup.length)),this._elementRef.nativeElement.setSelectionRange.apply(this._elementRef.nativeElement,[this._inputValueBackup.length,c.length])):this._writeInputValue(c)}}_formatItemForInput(s){return null!=s&&this.inputFormatter?this.inputFormatter(s):Ie(s)}_writeInputValue(s){this._renderer.setProperty(this._elementRef.nativeElement,"value",Ie(s))}_subscribeToUserInput(){const s=this._valueChanges.pipe((0,ve.b)(c=>{this._inputValueBackup=this.showHint?c:null,this._inputValueForSelectOnExact=this.selectOnExact?c:null,this._onChange(this.editable?c:void 0)}),this.ngbTypeahead?this.ngbTypeahead:()=>(0,L.of)([]));this._subscription=this._resubscribeTypeahead.pipe((0,ze.w)(()=>s)).subscribe(c=>{c&&0!==c.length?this.selectOnExact&&1===c.length&&this._formatItemForInput(c[0])===this._inputValueForSelectOnExact?(this._selectResult(c[0]),this._closePopup()):(this._openPopup(),this._windowRef.instance.focusFirst=this.focusFirst,this._windowRef.instance.results=c,this._windowRef.instance.term=this._elementRef.nativeElement.value,this.resultFormatter&&(this._windowRef.instance.formatter=this.resultFormatter),this.resultTemplate&&(this._windowRef.instance.resultTemplate=this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint()):this._closePopup();const m=c?c.length:0;this._live.say(0===m?"No results available":`${m} result${1===m?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}static#e=this.\u0275fac=function(c){return new(c||l)(t.Y36(t.SBq),t.Y36(t.s_b),t.Y36(t.Qsj),t.Y36(t.zs3),t.Y36(Qu),t.Y36(t.R0b),t.Y36(Lf),t.Y36(ae.K0),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(t.z2F))};static#t=this.\u0275dir=t.lG2({type:l,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox"],hostVars:7,hostBindings:function(c,m){1&c&&t.NdJ("blur",function(){return m.handleBlur()})("keydown",function(ne){return m.handleKeyDown(ne)}),2&c&&(t.Ikx("autocomplete",m.autocomplete),t.uIk("aria-autocomplete",m.showHint?"both":"list")("aria-activedescendant",m.activeDescendant)("aria-owns",m.isPopupOpen()?m.popupId:null)("aria-expanded",m.isPopupOpen()),t.ekj("open",m.isPopupOpen()))},inputs:{autocomplete:"autocomplete",container:"container",editable:"editable",focusFirst:"focusFirst",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate",selectOnExact:"selectOnExact",showHint:"showHint",placement:"placement",popperOptions:"popperOptions",popupClass:"popupClass"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],standalone:!0,features:[t._Bn([{provide:fe.JU,useExisting:(0,t.Gpc)(()=>l),multi:!0}]),t.TTD]})}return l})(),Bc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})(),jc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({})}return l})();const qu=[ja,Nt,nn,Xt,Iu,Ja,pf,xl,jc,Oc,$u,Ic,hs,Rc,Lc,Nl,Ju,Bc];let Hc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275mod=t.oAB({type:l});static#n=this.\u0275inj=t.cJS({imports:[qu,ja,Nt,nn,Xt,Iu,Ja,pf,xl,jc,Oc,$u,Ic,hs,Rc,Lc,Nl,Ju,Bc]})}return l})()},363:(Pe,V,a)=>{"use strict";a.d(V,{zB:()=>Un,C5:()=>Wt,ir:()=>yt,w9:()=>qn,A0:()=>pe});var t=a(5879),d=a(6223),w=a(9773),L=a(6321),p=a(9360),O=a(4829),R=a(8251),P=a(4825);var $=a(7921),f=a(9397),j=a(3620),S=a(2181),q=a(7398),ie=a(1954),k=a(7394);const Te={schedule(z){let K=requestAnimationFrame,D=cancelAnimationFrame;const{delegate:X}=Te;X&&(K=X.requestAnimationFrame,D=X.cancelAnimationFrame);const de=K(Oe=>{D=void 0,z(Oe)});return new k.w0(()=>D?.(de))},requestAnimationFrame(...z){const{delegate:K}=Te;return(K?.requestAnimationFrame||requestAnimationFrame)(...z)},cancelAnimationFrame(...z){const{delegate:K}=Te;return(K?.cancelAnimationFrame||cancelAnimationFrame)(...z)},delegate:void 0};var ye=a(2631);const _e=new class ce extends ye.v{flush(K){this._active=!0;const D=this._scheduled;this._scheduled=void 0;const{actions:X}=this;let de;K=K||X.shift();do{if(de=K.execute(K.state,K.delay))break}while((K=X[0])&&K.id===D&&X.shift());if(this._active=!1,de){for(;(K=X[0])&&K.id===D&&X.shift();)K.unsubscribe();throw de}}}(class Me extends ie.o{constructor(K,D){super(K,D),this.scheduler=K,this.work=D}requestAsyncId(K,D,X=0){return null!==X&&X>0?super.requestAsyncId(K,D,X):(K.actions.push(this),K._scheduled||(K._scheduled=Te.requestAnimationFrame(()=>K.flush(void 0))))}recycleAsyncId(K,D,X=0){var de;if(null!=X?X>0:this.delay>0)return super.recycleAsyncId(K,D,X);const{actions:Oe}=K;null!=D&&(null===(de=Oe[Oe.length-1])||void 0===de?void 0:de.id)!==D&&(Te.cancelAnimationFrame(D),K._scheduled=void 0)}});let be,xe=1;const ke={};function vt(z){return z in ke&&(delete ke[z],!0)}const it={setImmediate(z){const K=xe++;return ke[K]=!0,be||(be=Promise.resolve()),be.then(()=>vt(K)&&z()),K},clearImmediate(z){vt(z)}},{setImmediate:qe,clearImmediate:_t}=it,$e={setImmediate(...z){const{delegate:K}=$e;return(K?.setImmediate||qe)(...z)},clearImmediate(z){const{delegate:K}=$e;return(K?.clearImmediate||_t)(z)},delegate:void 0},J=new class ze extends ye.v{flush(K){this._active=!0;const D=this._scheduled;this._scheduled=void 0;const{actions:X}=this;let de;K=K||X.shift();do{if(de=K.execute(K.state,K.delay))break}while((K=X[0])&&K.id===D&&X.shift());if(this._active=!1,de){for(;(K=X[0])&&K.id===D&&X.shift();)K.unsubscribe();throw de}}}(class Ee extends ie.o{constructor(K,D){super(K,D),this.scheduler=K,this.work=D}requestAsyncId(K,D,X=0){return null!==X&&X>0?super.requestAsyncId(K,D,X):(K.actions.push(this),K._scheduled||(K._scheduled=$e.setImmediate(K.flush.bind(K,void 0))))}recycleAsyncId(K,D,X=0){var de;if(null!=X?X>0:this.delay>0)return super.recycleAsyncId(K,D,X);const{actions:Oe}=K;null!=D&&(null===(de=Oe[Oe.length-1])||void 0===de?void 0:de.id)!==D&&($e.clearImmediate(D),K._scheduled===D&&(K._scheduled=void 0))}});var oe=a(8645),se=a(2438),ae=a(3019),fe=a(6814);const De=["content"],je=["scroll"],Xe=["padding"],nt=function(z){return{searchTerm:z}};function wt(z,K){if(1&z&&(t.TgZ(0,"div",6),t.GkF(1,7),t.qZA()),2&z){const D=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",D.headerTemplate)("ngTemplateOutletContext",t.VKq(2,nt,D.filterValue))}}function It(z,K){if(1&z&&(t.TgZ(0,"div",8),t.GkF(1,7),t.qZA()),2&z){const D=t.oxw();t.xp6(1),t.Q6J("ngTemplateOutlet",D.footerTemplate)("ngTemplateOutletContext",t.VKq(2,nt,D.filterValue))}}const Je=["*"],Tt=["searchInput"],tt=["clearButton"];function Pt(z,K){if(1&z){const D=t.EpF();t.TgZ(0,"span",15),t.NdJ("click",function(){t.CHM(D);const de=t.oxw().$implicit,Oe=t.oxw(2);return t.KtG(Oe.unselect(de))}),t._uU(1,"\xd7"),t.qZA(),t._UZ(2,"span",16)}if(2&z){const D=t.oxw().$implicit,X=t.oxw(2);t.xp6(2),t.Q6J("ngItemLabel",D.label)("escape",X.escapeHTML)}}function zt(z,K){}const un=function(z,K,D){return{item:z,clear:K,label:D}};function Rn(z,K){if(1&z&&(t.TgZ(0,"div",12),t.YNc(1,Pt,3,2,"ng-template",null,13,t.W1O),t.YNc(3,zt,0,0,"ng-template",14),t.qZA()),2&z){const D=K.$implicit,X=t.MAs(2),de=t.oxw(2);t.ekj("ng-value-disabled",D.disabled),t.xp6(3),t.Q6J("ngTemplateOutlet",de.labelTemplate||X)("ngTemplateOutletContext",t.kEZ(4,un,D.value,de.clearItem,D.label))}}function We(z,K){if(1&z&&(t.ynx(0),t.YNc(1,Rn,4,8,"div",11),t.BQk()),2&z){const D=t.oxw();t.xp6(1),t.Q6J("ngForOf",D.selectedItems)("ngForTrackBy",D.trackByOption)}}function Ye(z,K){}const At=function(z,K){return{items:z,clear:K}};function Ot(z,K){if(1&z&&t.YNc(0,Ye,0,0,"ng-template",14),2&z){const D=t.oxw();t.Q6J("ngTemplateOutlet",D.multiLabelTemplate)("ngTemplateOutletContext",t.WLB(2,At,D.selectedValues,D.clearItem))}}function tn(z,K){1&z&&t._UZ(0,"div",19)}function Et(z,K){}function Ht(z,K){if(1&z&&(t.ynx(0),t.YNc(1,tn,1,0,"ng-template",null,17,t.W1O),t.YNc(3,Et,0,0,"ng-template",18),t.BQk()),2&z){const D=t.MAs(2),X=t.oxw();t.xp6(3),t.Q6J("ngTemplateOutlet",X.loadingSpinnerTemplate||D)}}function Zt(z,K){if(1&z&&(t.TgZ(0,"span",20,21)(2,"span",22),t._uU(3,"\xd7"),t.qZA()()),2&z){const D=t.oxw();t.s9C("title",D.clearAllText)}}function dn(z,K){if(1&z&&t._UZ(0,"span",28),2&z){const D=t.oxw().$implicit,X=t.oxw(2);t.Q6J("ngItemLabel",D.label)("escape",X.escapeHTML)}}function wn(z,K){}const fn=function(z,K,D,X){return{item:z,item$:K,index:D,searchTerm:X}};function qt(z,K){if(1&z){const D=t.EpF();t.TgZ(0,"div",26),t.NdJ("click",function(){const Oe=t.CHM(D).$implicit,Ae=t.oxw(2);return t.KtG(Ae.toggleItem(Oe))})("mouseover",function(){const Oe=t.CHM(D).$implicit,Ae=t.oxw(2);return t.KtG(Ae.onItemHover(Oe))}),t.YNc(1,dn,1,2,"ng-template",null,27,t.W1O),t.YNc(3,wn,0,0,"ng-template",14),t.qZA()}if(2&z){const D=K.$implicit,X=t.MAs(2),de=t.oxw(2);t.ekj("ng-option-disabled",D.disabled)("ng-option-selected",D.selected)("ng-optgroup",D.children)("ng-option",!D.children)("ng-option-child",!!D.parent)("ng-option-marked",D===de.itemsList.markedItem),t.uIk("role",D.children?"group":"option")("aria-selected",D.selected)("id",null==D?null:D.htmlId),t.xp6(3),t.Q6J("ngTemplateOutlet",D.children?de.optgroupTemplate||X:de.optionTemplate||X)("ngTemplateOutletContext",t.l5B(17,fn,D.value,D,D.index,de.searchTerm))}}function En(z,K){if(1&z&&(t.TgZ(0,"span")(1,"span",31),t._uU(2),t.qZA(),t._uU(3),t.qZA()),2&z){const D=t.oxw(3);t.xp6(2),t.Oqu(D.addTagText),t.xp6(1),t.hij('"',D.searchTerm,'"')}}function Wn(z,K){}function mn(z,K){if(1&z){const D=t.EpF();t.TgZ(0,"div",29),t.NdJ("mouseover",function(){t.CHM(D);const de=t.oxw(2);return t.KtG(de.itemsList.unmarkItem())})("click",function(){t.CHM(D);const de=t.oxw(2);return t.KtG(de.selectTag())}),t.YNc(1,En,4,2,"ng-template",null,30,t.W1O),t.YNc(3,Wn,0,0,"ng-template",14),t.qZA()}if(2&z){const D=t.MAs(2),X=t.oxw(2);t.ekj("ng-option-marked",!X.itemsList.markedItem),t.xp6(3),t.Q6J("ngTemplateOutlet",X.tagTemplate||D)("ngTemplateOutletContext",t.VKq(4,nt,X.searchTerm))}}function Er(z,K){if(1&z&&(t.TgZ(0,"div",33),t._uU(1),t.qZA()),2&z){const D=t.oxw(3);t.xp6(1),t.Oqu(D.notFoundText)}}function st(z,K){}function Ut(z,K){if(1&z&&(t.ynx(0),t.YNc(1,Er,2,1,"ng-template",null,32,t.W1O),t.YNc(3,st,0,0,"ng-template",14),t.BQk()),2&z){const D=t.MAs(2),X=t.oxw(2);t.xp6(3),t.Q6J("ngTemplateOutlet",X.notFoundTemplate||D)("ngTemplateOutletContext",t.VKq(2,nt,X.searchTerm))}}function Qt(z,K){if(1&z&&(t.TgZ(0,"div",33),t._uU(1),t.qZA()),2&z){const D=t.oxw(3);t.xp6(1),t.Oqu(D.typeToSearchText)}}function Dn(z,K){}function Sn(z,K){if(1&z&&(t.ynx(0),t.YNc(1,Qt,2,1,"ng-template",null,34,t.W1O),t.YNc(3,Dn,0,0,"ng-template",18),t.BQk()),2&z){const D=t.MAs(2),X=t.oxw(2);t.xp6(3),t.Q6J("ngTemplateOutlet",X.typeToSearchTemplate||D)}}function On(z,K){if(1&z&&(t.TgZ(0,"div",33),t._uU(1),t.qZA()),2&z){const D=t.oxw(3);t.xp6(1),t.Oqu(D.loadingText)}}function nr(z,K){}function Dr(z,K){if(1&z&&(t.ynx(0),t.YNc(1,On,2,1,"ng-template",null,35,t.W1O),t.YNc(3,nr,0,0,"ng-template",14),t.BQk()),2&z){const D=t.MAs(2),X=t.oxw(2);t.xp6(3),t.Q6J("ngTemplateOutlet",X.loadingTextTemplate||D)("ngTemplateOutletContext",t.VKq(2,nt,X.searchTerm))}}function wr(z,K){if(1&z){const D=t.EpF();t.TgZ(0,"ng-dropdown-panel",23),t.NdJ("update",function(de){t.CHM(D);const Oe=t.oxw();return t.KtG(Oe.viewPortItems=de)})("scroll",function(de){t.CHM(D);const Oe=t.oxw();return t.KtG(Oe.scroll.emit(de))})("scrollToEnd",function(de){t.CHM(D);const Oe=t.oxw();return t.KtG(Oe.scrollToEnd.emit(de))})("outsideClick",function(){t.CHM(D);const de=t.oxw();return t.KtG(de.close())}),t.ynx(1),t.YNc(2,qt,4,22,"div",24),t.YNc(3,mn,4,6,"div",25),t.BQk(),t.YNc(4,Ut,4,4,"ng-container",3),t.YNc(5,Sn,4,1,"ng-container",3),t.YNc(6,Dr,4,4,"ng-container",3),t.qZA()}if(2&z){const D=t.oxw();t.ekj("ng-select-multiple",D.multiple),t.Q6J("virtualScroll",D.virtualScroll)("bufferAmount",D.bufferAmount)("appendTo",D.appendTo)("position",D.dropdownPosition)("headerTemplate",D.headerTemplate)("footerTemplate",D.footerTemplate)("filterValue",D.searchTerm)("items",D.itemsList.filteredItems)("markedItem",D.itemsList.markedItem)("ngClass",D.appendTo?D.classes:null)("id",D.dropdownId),t.xp6(2),t.Q6J("ngForOf",D.viewPortItems)("ngForTrackBy",D.trackByOption),t.xp6(1),t.Q6J("ngIf",D.showAddTag),t.xp6(1),t.Q6J("ngIf",D.showNoItemsFound()),t.xp6(1),t.Q6J("ngIf",D.showTypeToSearch()),t.xp6(1),t.Q6J("ngIf",D.loading&&0===D.itemsList.filteredItems.length)}}const Or=/[&<>"']/g,Ir=RegExp(Or.source),Br={"&":"&","<":"<",">":">",'"':""","'":"'"};function zn(z){return null!=z}function dt(z){return"object"==typeof z&&zn(z)}function we(z){return z instanceof Function}let He=(()=>{class z{constructor(D){this.element=D,this.escape=!0}ngOnChanges(D){this.element.nativeElement.innerHTML=this.escape?function oi(z){return z&&Ir.test(z)?z.replace(Or,K=>Br[K]):z}(this.ngItemLabel):this.ngItemLabel}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.SBq))};static#t=this.\u0275dir=t.lG2({type:z,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[t.TTD]})}return z})(),yt=(()=>{class z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:z,selectors:[["","ng-option-tmp",""]]})}return z})(),Wt=(()=>{class z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:z,selectors:[["","ng-optgroup-tmp",""]]})}return z})(),Vt=(()=>{class z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:z,selectors:[["","ng-label-tmp",""]]})}return z})(),Un=(()=>{class z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:z,selectors:[["","ng-multi-label-tmp",""]]})}return z})(),sn=(()=>{class z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:z,selectors:[["","ng-header-tmp",""]]})}return z})(),rr=(()=>{class z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:z,selectors:[["","ng-footer-tmp",""]]})}return z})(),an=(()=>{class z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:z,selectors:[["","ng-notfound-tmp",""]]})}return z})(),$n=(()=>{class z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:z,selectors:[["","ng-typetosearch-tmp",""]]})}return z})(),Qe=(()=>{class z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:z,selectors:[["","ng-loadingtext-tmp",""]]})}return z})(),Le=(()=>{class z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:z,selectors:[["","ng-tag-tmp",""]]})}return z})(),Ue=(()=>{class z{constructor(D){this.template=D}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.Rgc))};static#t=this.\u0275dir=t.lG2({type:z,selectors:[["","ng-loadingspinner-tmp",""]]})}return z})();function bt(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const Rt={"\u24b6":"A",\uff21:"A",\u00c0:"A",\u00c1:"A",\u00c2:"A",\u1ea6:"A",\u1ea4:"A",\u1eaa:"A",\u1ea8:"A",\u00c3:"A",\u0100:"A",\u0102:"A",\u1eb0:"A",\u1eae:"A",\u1eb4:"A",\u1eb2:"A",\u0226:"A",\u01e0:"A",\u00c4:"A",\u01de:"A",\u1ea2:"A",\u00c5:"A",\u01fa:"A",\u01cd:"A",\u0200:"A",\u0202:"A",\u1ea0:"A",\u1eac:"A",\u1eb6:"A",\u1e00:"A",\u0104:"A",\u023a:"A",\u2c6f:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY","\u24b7":"B",\uff22:"B",\u1e02:"B",\u1e04:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0181:"B","\u24b8":"C",\uff23:"C",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0187:"C",\u023b:"C",\ua73e:"C","\u24b9":"D",\uff24:"D",\u1e0a:"D",\u010e:"D",\u1e0c:"D",\u1e10:"D",\u1e12:"D",\u1e0e:"D",\u0110:"D",\u018b:"D",\u018a:"D",\u0189:"D",\ua779:"D",\u01f1:"DZ",\u01c4:"DZ",\u01f2:"Dz",\u01c5:"Dz","\u24ba":"E",\uff25:"E",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u1ec0:"E",\u1ebe:"E",\u1ec4:"E",\u1ec2:"E",\u1ebc:"E",\u0112:"E",\u1e14:"E",\u1e16:"E",\u0114:"E",\u0116:"E",\u00cb:"E",\u1eba:"E",\u011a:"E",\u0204:"E",\u0206:"E",\u1eb8:"E",\u1ec6:"E",\u0228:"E",\u1e1c:"E",\u0118:"E",\u1e18:"E",\u1e1a:"E",\u0190:"E",\u018e:"E","\u24bb":"F",\uff26:"F",\u1e1e:"F",\u0191:"F",\ua77b:"F","\u24bc":"G",\uff27:"G",\u01f4:"G",\u011c:"G",\u1e20:"G",\u011e:"G",\u0120:"G",\u01e6:"G",\u0122:"G",\u01e4:"G",\u0193:"G",\ua7a0:"G",\ua77d:"G",\ua77e:"G","\u24bd":"H",\uff28:"H",\u0124:"H",\u1e22:"H",\u1e26:"H",\u021e:"H",\u1e24:"H",\u1e28:"H",\u1e2a:"H",\u0126:"H",\u2c67:"H",\u2c75:"H",\ua78d:"H","\u24be":"I",\uff29:"I",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u0128:"I",\u012a:"I",\u012c:"I",\u0130:"I",\u00cf:"I",\u1e2e:"I",\u1ec8:"I",\u01cf:"I",\u0208:"I",\u020a:"I",\u1eca:"I",\u012e:"I",\u1e2c:"I",\u0197:"I","\u24bf":"J",\uff2a:"J",\u0134:"J",\u0248:"J","\u24c0":"K",\uff2b:"K",\u1e30:"K",\u01e8:"K",\u1e32:"K",\u0136:"K",\u1e34:"K",\u0198:"K",\u2c69:"K",\ua740:"K",\ua742:"K",\ua744:"K",\ua7a2:"K","\u24c1":"L",\uff2c:"L",\u013f:"L",\u0139:"L",\u013d:"L",\u1e36:"L",\u1e38:"L",\u013b:"L",\u1e3c:"L",\u1e3a:"L",\u0141:"L",\u023d:"L",\u2c62:"L",\u2c60:"L",\ua748:"L",\ua746:"L",\ua780:"L",\u01c7:"LJ",\u01c8:"Lj","\u24c2":"M",\uff2d:"M",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u019c:"M","\u24c3":"N",\uff2e:"N",\u01f8:"N",\u0143:"N",\u00d1:"N",\u1e44:"N",\u0147:"N",\u1e46:"N",\u0145:"N",\u1e4a:"N",\u1e48:"N",\u0220:"N",\u019d:"N",\ua790:"N",\ua7a4:"N",\u01ca:"NJ",\u01cb:"Nj","\u24c4":"O",\uff2f:"O",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u1ed2:"O",\u1ed0:"O",\u1ed6:"O",\u1ed4:"O",\u00d5:"O",\u1e4c:"O",\u022c:"O",\u1e4e:"O",\u014c:"O",\u1e50:"O",\u1e52:"O",\u014e:"O",\u022e:"O",\u0230:"O",\u00d6:"O",\u022a:"O",\u1ece:"O",\u0150:"O",\u01d1:"O",\u020c:"O",\u020e:"O",\u01a0:"O",\u1edc:"O",\u1eda:"O",\u1ee0:"O",\u1ede:"O",\u1ee2:"O",\u1ecc:"O",\u1ed8:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u0186:"O",\u019f:"O",\ua74a:"O",\ua74c:"O",\u01a2:"OI",\ua74e:"OO",\u0222:"OU","\u24c5":"P",\uff30:"P",\u1e54:"P",\u1e56:"P",\u01a4:"P",\u2c63:"P",\ua750:"P",\ua752:"P",\ua754:"P","\u24c6":"Q",\uff31:"Q",\ua756:"Q",\ua758:"Q",\u024a:"Q","\u24c7":"R",\uff32:"R",\u0154:"R",\u1e58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1e5a:"R",\u1e5c:"R",\u0156:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua75a:"R",\ua7a6:"R",\ua782:"R","\u24c8":"S",\uff33:"S",\u1e9e:"S",\u015a:"S",\u1e64:"S",\u015c:"S",\u1e60:"S",\u0160:"S",\u1e66:"S",\u1e62:"S",\u1e68:"S",\u0218:"S",\u015e:"S",\u2c7e:"S",\ua7a8:"S",\ua784:"S","\u24c9":"T",\uff34:"T",\u1e6a:"T",\u0164:"T",\u1e6c:"T",\u021a:"T",\u0162:"T",\u1e70:"T",\u1e6e:"T",\u0166:"T",\u01ac:"T",\u01ae:"T",\u023e:"T",\ua786:"T",\ua728:"TZ","\u24ca":"U",\uff35:"U",\u00d9:"U",\u00da:"U",\u00db:"U",\u0168:"U",\u1e78:"U",\u016a:"U",\u1e7a:"U",\u016c:"U",\u00dc:"U",\u01db:"U",\u01d7:"U",\u01d5:"U",\u01d9:"U",\u1ee6:"U",\u016e:"U",\u0170:"U",\u01d3:"U",\u0214:"U",\u0216:"U",\u01af:"U",\u1eea:"U",\u1ee8:"U",\u1eee:"U",\u1eec:"U",\u1ef0:"U",\u1ee4:"U",\u1e72:"U",\u0172:"U",\u1e76:"U",\u1e74:"U",\u0244:"U","\u24cb":"V",\uff36:"V",\u1e7c:"V",\u1e7e:"V",\u01b2:"V",\ua75e:"V",\u0245:"V",\ua760:"VY","\u24cc":"W",\uff37:"W",\u1e80:"W",\u1e82:"W",\u0174:"W",\u1e86:"W",\u1e84:"W",\u1e88:"W",\u2c72:"W","\u24cd":"X",\uff38:"X",\u1e8a:"X",\u1e8c:"X","\u24ce":"Y",\uff39:"Y",\u1ef2:"Y",\u00dd:"Y",\u0176:"Y",\u1ef8:"Y",\u0232:"Y",\u1e8e:"Y",\u0178:"Y",\u1ef6:"Y",\u1ef4:"Y",\u01b3:"Y",\u024e:"Y",\u1efe:"Y","\u24cf":"Z",\uff3a:"Z",\u0179:"Z",\u1e90:"Z",\u017b:"Z",\u017d:"Z",\u1e92:"Z",\u1e94:"Z",\u01b5:"Z",\u0224:"Z",\u2c7f:"Z",\u2c6b:"Z",\ua762:"Z","\u24d0":"a",\uff41:"a",\u1e9a:"a",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u1ea7:"a",\u1ea5:"a",\u1eab:"a",\u1ea9:"a",\u00e3:"a",\u0101:"a",\u0103:"a",\u1eb1:"a",\u1eaf:"a",\u1eb5:"a",\u1eb3:"a",\u0227:"a",\u01e1:"a",\u00e4:"a",\u01df:"a",\u1ea3:"a",\u00e5:"a",\u01fb:"a",\u01ce:"a",\u0201:"a",\u0203:"a",\u1ea1:"a",\u1ead:"a",\u1eb7:"a",\u1e01:"a",\u0105:"a",\u2c65:"a",\u0250:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay","\u24d1":"b",\uff42:"b",\u1e03:"b",\u1e05:"b",\u1e07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24d2":"c",\uff43:"c",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0188:"c",\u023c:"c",\ua73f:"c",\u2184:"c","\u24d3":"d",\uff44:"d",\u1e0b:"d",\u010f:"d",\u1e0d:"d",\u1e11:"d",\u1e13:"d",\u1e0f:"d",\u0111:"d",\u018c:"d",\u0256:"d",\u0257:"d",\ua77a:"d",\u01f3:"dz",\u01c6:"dz","\u24d4":"e",\uff45:"e",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u1ec1:"e",\u1ebf:"e",\u1ec5:"e",\u1ec3:"e",\u1ebd:"e",\u0113:"e",\u1e15:"e",\u1e17:"e",\u0115:"e",\u0117:"e",\u00eb:"e",\u1ebb:"e",\u011b:"e",\u0205:"e",\u0207:"e",\u1eb9:"e",\u1ec7:"e",\u0229:"e",\u1e1d:"e",\u0119:"e",\u1e19:"e",\u1e1b:"e",\u0247:"e",\u025b:"e",\u01dd:"e","\u24d5":"f",\uff46:"f",\u1e1f:"f",\u0192:"f",\ua77c:"f","\u24d6":"g",\uff47:"g",\u01f5:"g",\u011d:"g",\u1e21:"g",\u011f:"g",\u0121:"g",\u01e7:"g",\u0123:"g",\u01e5:"g",\u0260:"g",\ua7a1:"g",\u1d79:"g",\ua77f:"g","\u24d7":"h",\uff48:"h",\u0125:"h",\u1e23:"h",\u1e27:"h",\u021f:"h",\u1e25:"h",\u1e29:"h",\u1e2b:"h",\u1e96:"h",\u0127:"h",\u2c68:"h",\u2c76:"h",\u0265:"h",\u0195:"hv","\u24d8":"i",\uff49:"i",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u0129:"i",\u012b:"i",\u012d:"i",\u00ef:"i",\u1e2f:"i",\u1ec9:"i",\u01d0:"i",\u0209:"i",\u020b:"i",\u1ecb:"i",\u012f:"i",\u1e2d:"i",\u0268:"i",\u0131:"i","\u24d9":"j",\uff4a:"j",\u0135:"j",\u01f0:"j",\u0249:"j","\u24da":"k",\uff4b:"k",\u1e31:"k",\u01e9:"k",\u1e33:"k",\u0137:"k",\u1e35:"k",\u0199:"k",\u2c6a:"k",\ua741:"k",\ua743:"k",\ua745:"k",\ua7a3:"k","\u24db":"l",\uff4c:"l",\u0140:"l",\u013a:"l",\u013e:"l",\u1e37:"l",\u1e39:"l",\u013c:"l",\u1e3d:"l",\u1e3b:"l",\u017f:"l",\u0142:"l",\u019a:"l",\u026b:"l",\u2c61:"l",\ua749:"l",\ua781:"l",\ua747:"l",\u01c9:"lj","\u24dc":"m",\uff4d:"m",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u026f:"m","\u24dd":"n",\uff4e:"n",\u01f9:"n",\u0144:"n",\u00f1:"n",\u1e45:"n",\u0148:"n",\u1e47:"n",\u0146:"n",\u1e4b:"n",\u1e49:"n",\u019e:"n",\u0272:"n",\u0149:"n",\ua791:"n",\ua7a5:"n",\u01cc:"nj","\u24de":"o",\uff4f:"o",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u1ed3:"o",\u1ed1:"o",\u1ed7:"o",\u1ed5:"o",\u00f5:"o",\u1e4d:"o",\u022d:"o",\u1e4f:"o",\u014d:"o",\u1e51:"o",\u1e53:"o",\u014f:"o",\u022f:"o",\u0231:"o",\u00f6:"o",\u022b:"o",\u1ecf:"o",\u0151:"o",\u01d2:"o",\u020d:"o",\u020f:"o",\u01a1:"o",\u1edd:"o",\u1edb:"o",\u1ee1:"o",\u1edf:"o",\u1ee3:"o",\u1ecd:"o",\u1ed9:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u0254:"o",\ua74b:"o",\ua74d:"o",\u0275:"o",\u01a3:"oi",\u0223:"ou",\ua74f:"oo","\u24df":"p",\uff50:"p",\u1e55:"p",\u1e57:"p",\u01a5:"p",\u1d7d:"p",\ua751:"p",\ua753:"p",\ua755:"p","\u24e0":"q",\uff51:"q",\u024b:"q",\ua757:"q",\ua759:"q","\u24e1":"r",\uff52:"r",\u0155:"r",\u1e59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1e5b:"r",\u1e5d:"r",\u0157:"r",\u1e5f:"r",\u024d:"r",\u027d:"r",\ua75b:"r",\ua7a7:"r",\ua783:"r","\u24e2":"s",\uff53:"s",\u00df:"s",\u015b:"s",\u1e65:"s",\u015d:"s",\u1e61:"s",\u0161:"s",\u1e67:"s",\u1e63:"s",\u1e69:"s",\u0219:"s",\u015f:"s",\u023f:"s",\ua7a9:"s",\ua785:"s",\u1e9b:"s","\u24e3":"t",\uff54:"t",\u1e6b:"t",\u1e97:"t",\u0165:"t",\u1e6d:"t",\u021b:"t",\u0163:"t",\u1e71:"t",\u1e6f:"t",\u0167:"t",\u01ad:"t",\u0288:"t",\u2c66:"t",\ua787:"t",\ua729:"tz","\u24e4":"u",\uff55:"u",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u0169:"u",\u1e79:"u",\u016b:"u",\u1e7b:"u",\u016d:"u",\u00fc:"u",\u01dc:"u",\u01d8:"u",\u01d6:"u",\u01da:"u",\u1ee7:"u",\u016f:"u",\u0171:"u",\u01d4:"u",\u0215:"u",\u0217:"u",\u01b0:"u",\u1eeb:"u",\u1ee9:"u",\u1eef:"u",\u1eed:"u",\u1ef1:"u",\u1ee5:"u",\u1e73:"u",\u0173:"u",\u1e77:"u",\u1e75:"u",\u0289:"u","\u24e5":"v",\uff56:"v",\u1e7d:"v",\u1e7f:"v",\u028b:"v",\ua75f:"v",\u028c:"v",\ua761:"vy","\u24e6":"w",\uff57:"w",\u1e81:"w",\u1e83:"w",\u0175:"w",\u1e87:"w",\u1e85:"w",\u1e98:"w",\u1e89:"w",\u2c73:"w","\u24e7":"x",\uff58:"x",\u1e8b:"x",\u1e8d:"x","\u24e8":"y",\uff59:"y",\u1ef3:"y",\u00fd:"y",\u0177:"y",\u1ef9:"y",\u0233:"y",\u1e8f:"y",\u00ff:"y",\u1ef7:"y",\u1e99:"y",\u1ef5:"y",\u01b4:"y",\u024f:"y",\u1eff:"y","\u24e9":"z",\uff5a:"z",\u017a:"z",\u1e91:"z",\u017c:"z",\u017e:"z",\u1e93:"z",\u1e95:"z",\u01b6:"z",\u0225:"z",\u0240:"z",\u2c6c:"z",\ua763:"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038a:"\u0399",\u03aa:"\u0399",\u038c:"\u039f",\u038e:"\u03a5",\u03ab:"\u03a5",\u038f:"\u03a9",\u03ac:"\u03b1",\u03ad:"\u03b5",\u03ae:"\u03b7",\u03af:"\u03b9",\u03ca:"\u03b9",\u0390:"\u03b9",\u03cc:"\u03bf",\u03cd:"\u03c5",\u03cb:"\u03c5",\u03b0:"\u03c5",\u03c9:"\u03c9",\u03c2:"\u03c3"};function kt(z){return z.replace(/[^\u0000-\u007E]/g,D=>Rt[D]||D)}class Ft{constructor(K,D){this._ngSelect=K,this._selectionModel=D,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let K=this.selectedItems.length-1;for(;K>=0;K--){const D=this.selectedItems[K];if(!D.disabled)return D}return null}setItems(K){this._items=K.map((D,X)=>this.mapItem(D,X)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(K){if(K.selected||this.maxItemsSelected)return;const D=this._ngSelect.multiple;D||this.clearSelected(),this._selectionModel.select(K,D,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(K)}unselect(K){K.selected&&(this._selectionModel.unselect(K,this._ngSelect.multiple),this._ngSelect.hideSelected&&zn(K.index)&&this._ngSelect.multiple&&this._showSelected(K))}findItem(K){let D;return D=this._ngSelect.compareWith?X=>this._ngSelect.compareWith(X.value,K):this._ngSelect.bindValue?X=>!X.children&&this.resolveNested(X.value,this._ngSelect.bindValue)===K:X=>X.value===K||!X.children&&X.label&&X.label===this.resolveNested(K,this._ngSelect.bindLabel),this._items.find(X=>D(X))}addItem(K){const D=this.mapItem(K,this._items.length);return this._items.push(D),this._filteredItems.push(D),D}clearSelected(K=!1){this._selectionModel.clear(K),this._items.forEach(D=>{D.selected=K&&D.selected&&D.disabled,D.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(K){return K=kt(K).toLocaleLowerCase(),this.filteredItems.find(D=>kt(D.label).toLocaleLowerCase().substr(0,K.length)===K)}filter(K){if(!K)return void this.resetFilteredItems();this._filteredItems=[],K=this._ngSelect.searchFn?K:kt(K).toLocaleLowerCase();const D=this._ngSelect.searchFn||this._defaultSearchFn,X=this._ngSelect.hideSelected;for(const de of Array.from(this._groups.keys())){const Oe=[];for(const Ae of this._groups.get(de))X&&(Ae.parent&&Ae.parent.selected||Ae.selected)||D(K,this._ngSelect.searchFn?Ae.value:Ae)&&Oe.push(Ae);if(Oe.length>0){const[Ae]=Oe.slice(-1);if(Ae.parent){const mt=this._items.find($t=>$t===Ae.parent);this._filteredItems.push(mt)}this._filteredItems.push(...Oe)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(K=>!K.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(K){this._markedIndex=this._filteredItems.indexOf(K)}markSelectedOrDefault(K){if(0===this._filteredItems.length)return;const D=this._getLastMarkedIndex();this._markedIndex=D>-1?D:K?this.filteredItems.findIndex(X=>!X.disabled):-1}resolveNested(K,D){if(!dt(K))return K;if(-1===D.indexOf("."))return K[D];{const X=D.split(".");let de=K;for(let Oe=0,Ae=X.length;Oe-1===this.selectedItems.indexOf(D)))}_showSelected(K){if(this._filteredItems.push(K),K.parent){const D=K.parent;this._filteredItems.find(de=>de===D)||this._filteredItems.push(D)}else if(K.children)for(const D of K.children)D.selected=!1,this._filteredItems.push(D);this._filteredItems=[...this._filteredItems.sort((D,X)=>D.index-X.index)]}_hideSelected(K){this._filteredItems=this._filteredItems.filter(D=>D!==K),K.parent?K.parent.children.every(X=>X.selected)&&(this._filteredItems=this._filteredItems.filter(X=>X!==K.parent)):K.children&&(this._filteredItems=this.filteredItems.filter(D=>D.parent!==K))}_defaultSearchFn(K,D){return kt(D.label).toLocaleLowerCase().indexOf(K)>-1}_getNextItemIndex(K){return K>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(K){0===this._filteredItems.length||this._filteredItems.every(D=>D.disabled)||(this._markedIndex=this._getNextItemIndex(K),this.markedItem.disabled&&this._stepToItem(K))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const K=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&K<0?-1:Math.max(this.markedIndex,K)}_groupBy(K,D){const X=new Map;if(0===K.length)return X;if(Array.isArray(K[0].value[D])){for(const Ae of K){const mt=(Ae.value[D]||[]).map(($t,ln)=>this.mapItem($t,ln));X.set(Ae,mt)}return X}const de=we(this._ngSelect.groupBy),Oe=Ae=>{const mt=de?D(Ae.value):Ae.value[D];return zn(mt)?mt:void 0};for(const Ae of K){const mt=Oe(Ae),$t=X.get(mt);$t?$t.push(Ae):X.set(mt,[Ae])}return X}_flatten(K){const D=we(this._ngSelect.groupBy),X=[];for(const de of Array.from(K.keys())){let Oe=X.length;if(void 0===de){const bn=K.get(void 0)||[];X.push(...bn.map(Nn=>(Nn.index=Oe++,Nn)));continue}const Ae=dt(de),mt={label:Ae?"":String(de),children:void 0,parent:null,index:Oe++,disabled:!this._ngSelect.selectableGroup,htmlId:bt()},$t=D?this._ngSelect.bindLabel:this._ngSelect.groupBy,ln=this._ngSelect.groupValue||(()=>Ae?de.value:{[$t]:de}),_n=K.get(de).map(bn=>(bn.parent=mt,bn.children=void 0,bn.index=Oe++,bn));mt.children=_n,mt.value=ln(de,_n.map(bn=>bn.value)),X.push(mt),X.push(..._n)}return X}}var on=function(z){return z[z.Tab=9]="Tab",z[z.Enter=13]="Enter",z[z.Esc=27]="Esc",z[z.Space=32]="Space",z[z.ArrowUp=38]="ArrowUp",z[z.ArrowDown=40]="ArrowDown",z[z.Backspace=8]="Backspace",z}(on||{});let Tn=(()=>{class z{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(D,X,de){const Oe=this._dimensions,Ae=Oe.itemHeight*X,$t=Math.max(0,D)/Ae*X;let ln=Math.min(X,Math.ceil($t)+(Oe.itemsPerViewport+1));const bn=Math.max(0,ln-Oe.itemsPerViewport);let Nn=Math.min(bn,Math.floor($t)),ir=Oe.itemHeight*Math.ceil(Nn)-Oe.itemHeight*Math.min(Nn,de);return ir=isNaN(ir)?0:ir,Nn=isNaN(Nn)?-1:Nn,ln=isNaN(ln)?-1:ln,Nn-=de,Nn=Math.max(0,Nn),ln+=de,ln=Math.min(X,ln),{topPadding:ir,scrollHeight:Ae,start:Nn,end:ln}}setDimensions(D,X){const de=Math.max(1,Math.floor(X/D));this._dimensions={itemHeight:D,panelHeight:X,itemsPerViewport:de}}getScrollTo(D,X,de){const{panelHeight:Oe}=this.dimensions,Ae=D+X,$t=de+Oe;return Oe>=Ae&&de===D?null:Ae>$t?de+Ae-$t:D<=de?D:null}static#e=this.\u0275fac=function(X){return new(X||z)};static#t=this.\u0275prov=t.Yz7({token:z,factory:z.\u0275fac})}return z})();const pr=["top","right","bottom","left"],jr=typeof requestAnimationFrame<"u"?_e:J;let Fr=(()=>{class z{constructor(D,X,de,Oe,Ae){this._renderer=D,this._zone=X,this._panelService=de,this._document=Ae,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new t.vpe,this.scroll=new t.vpe,this.scrollToEnd=new t.vpe,this.outsideClick=new t.vpe,this._destroy$=new oe.x,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=Oe.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(D){D!==this._itemsLength&&(this._itemsLength=D,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:D,panelHeight:X}=this._panelService.dimensions,de=this.markedItem.index*D;return X>de?0:de}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(D){if(D.items){const X=D.items;this._onItemsChange(X.currentValue,X.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(D,X=!1){if(!D)return;const de=this.items.indexOf(D);if(de<0||de>=this.itemsLength)return;let Oe;if(this.virtualScroll){const Ae=this._panelService.dimensions.itemHeight;Oe=this._panelService.getScrollTo(de*Ae,Ae,this._lastScrollPosition)}else{const Ae=this._dropdown.querySelector(`#${D.htmlId}`);Oe=this._panelService.getScrollTo(Ae.offsetTop,Ae.clientHeight,X?Ae.offsetTop:this._lastScrollPosition)}zn(Oe)&&(this._scrollablePanel.scrollTop=Oe)}scrollToTag(){const D=this._scrollablePanel;D.scrollTop=D.scrollHeight-D.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),pr.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(D){pr.forEach(de=>{const Oe=`ng-select-${de}`;this._renderer.removeClass(this._dropdown,Oe),this._renderer.removeClass(this._select,Oe)});const X=`ng-select-${D}`;this._renderer.addClass(this._dropdown,X),this._renderer.addClass(this._select,X)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,se.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,w.R)(this._destroy$),function B(z,K=L.z){return function F(z){return(0,p.e)((K,D)=>{let X=!1,de=null,Oe=null,Ae=!1;const mt=()=>{if(Oe?.unsubscribe(),Oe=null,X){X=!1;const ln=de;de=null,D.next(ln)}Ae&&D.complete()},$t=()=>{Oe=null,Ae&&D.complete()};K.subscribe((0,R.x)(D,ln=>{X=!0,de=ln,Oe||(0,O.Xf)(z(ln)).subscribe(Oe=(0,R.x)(D,mt,$t))},()=>{Ae=!0,(!X||!Oe||Oe.closed)&&D.complete()}))})}(()=>(0,P.H)(z,K))}(0,jr)).subscribe(D=>{const X=D.path||D.composedPath&&D.composedPath();this._onContentScrolled(X&&0!==X.length?X[0].scrollTop:D.target.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{(0,ae.T)((0,se.R)(this._document,"touchstart",{capture:!0}),(0,se.R)(this._document,"mousedown",{capture:!0})).pipe((0,w.R)(this._destroy$)).subscribe(D=>this._checkToClose(D))})}_checkToClose(D){if(this._select.contains(D.target)||this._dropdown.contains(D.target))return;const X=D.path||D.composedPath&&D.composedPath();D.target&&D.target.shadowRoot&&X&&X[0]&&this._select.contains(X[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(D,X){this.items=D||[],this._scrollToEndFired=!1,this.itemsLength=D.length,this.virtualScroll?this._updateItemsRange(X):(this._setVirtualHeight(),this._updateItems(X))}_updateItems(D){this.update.emit(this.items),!1!==D&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,D)})})}_updateItemsRange(D){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{D?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(D){this.virtualScroll&&this._renderItemsRange(D),this._lastScrollPosition=D,this._fireScrollToEnd(D)}_updateVirtualHeight(D){this._updateScrollHeight&&(this._virtualPadding.style.height=`${D}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(D=null){if(D&&this._lastScrollPosition===D)return;const X=this._panelService.calculateItems(D=D||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(X.scrollHeight),this._contentPanel.style.transform=`translateY(${X.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(X.start,X.end)),this.scroll.emit({start:X.start,end:X.end})}),zn(D)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=D,this._lastScrollPosition=D)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[D]=this.items;return this.update.emit([D]),Promise.resolve().then(()=>{const de=this._dropdown.querySelector(`#${D.htmlId}`).clientHeight;return this._virtualPadding.style.height=de*this.itemsLength+"px",this._panelService.setDimensions(de,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(D){this._scrollToEndFired||0===D||D+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(D){if("auto"!==this.position)return this.position;const X=this._select.getBoundingClientRect(),de=document.documentElement.scrollTop||document.body.scrollTop;return X.top+window.pageYOffset+X.height+D.getBoundingClientRect().height>de+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){const D=this._select.getBoundingClientRect(),X=this._parent.getBoundingClientRect();this._dropdown.style.left=D.left-X.left+"px",this._dropdown.style.width=D.width+"px",this._dropdown.style.minWidth=D.width+"px"}_updateYPosition(){const D=this._select.getBoundingClientRect(),X=this._parent.getBoundingClientRect(),de=D.height;"top"===this._currentPosition?(this._dropdown.style.bottom=X.bottom-D.bottom+de+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=D.top-X.top+de+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,se.R)(this._dropdown,"mousedown").pipe((0,w.R)(this._destroy$)).subscribe(D=>{"INPUT"!==D.target.tagName&&D.preventDefault()})})}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.Qsj),t.Y36(t.R0b),t.Y36(Tn),t.Y36(t.SBq),t.Y36(fe.K0,8))};static#t=this.\u0275cmp=t.Xpm({type:z,selectors:[["ng-dropdown-panel"]],viewQuery:function(X,de){if(1&X&&(t.Gf(De,7,t.SBq),t.Gf(je,7,t.SBq),t.Gf(Xe,7,t.SBq)),2&X){let Oe;t.iGM(Oe=t.CRH())&&(de.contentElementRef=Oe.first),t.iGM(Oe=t.CRH())&&(de.scrollElementRef=Oe.first),t.iGM(Oe=t.CRH())&&(de.paddingElementRef=Oe.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[t.TTD],ngContentSelectors:Je,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(X,de){1&X&&(t.F$t(),t.YNc(0,wt,2,4,"div",0),t.TgZ(1,"div",1,2),t._UZ(3,"div",null,3),t.TgZ(5,"div",null,4),t.Hsn(7),t.qZA()(),t.YNc(8,It,2,4,"div",5)),2&X&&(t.Q6J("ngIf",de.headerTemplate),t.xp6(3),t.ekj("total-padding",de.virtualScroll),t.xp6(2),t.ekj("scrollable-content",de.virtualScroll&&de.items.length),t.xp6(3),t.Q6J("ngIf",de.footerTemplate))},dependencies:[fe.O5,fe.tP],encapsulation:2,changeDetection:0})}return z})(),Ar=(()=>{class z{get disabled(){return this._disabled}set disabled(D){this._disabled=this._isDisabled(D)}constructor(D){this.elementRef=D,this.stateChange$=new oe.x,this._disabled=!1}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(D){D.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}_isDisabled(D){return null!=D&&"false"!=`${D}`}static#e=this.\u0275fac=function(X){return new(X||z)(t.Y36(t.SBq))};static#t=this.\u0275cmp=t.Xpm({type:z,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[t.TTD],ngContentSelectors:Je,decls:1,vars:0,template:function(X,de){1&X&&(t.F$t(),t.Hsn(0))},encapsulation:2,changeDetection:0})}return z})(),Hr=(()=>{class z{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}static#e=this.\u0275fac=function(X){return new(X||z)};static#t=this.\u0275prov=t.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})(),Zr=(()=>{class z{warn(D){console.warn(D)}static#e=this.\u0275fac=function(X){return new(X||z)};static#t=this.\u0275prov=t.Yz7({token:z,factory:z.\u0275fac,providedIn:"root"})}return z})();const Xn=new t.OlP("ng-select-selection-model");let qn=(()=>{class z{get items(){return this._items}set items(D){null===D&&(D=[]),this._itemsAreUsed=!0,this._items=D}get compareWith(){return this._compareWith}set compareWith(D){if(null!=D&&!we(D))throw Error("`compareWith` must be a function.");this._compareWith=D}get clearSearchOnAdd(){return zn(this._clearSearchOnAdd)?this._clearSearchOnAdd:zn(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(D){this._clearSearchOnAdd=D}get deselectOnClick(){return zn(this._deselectOnClick)?this._deselectOnClick:zn(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(D){this._deselectOnClick=D}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}constructor(D,X,de,Oe,Ae,mt,$t){this.classes=D,this.autoFocus=X,this.config=de,this._cd=mt,this._console=$t,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=ln=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new t.vpe,this.focusEvent=new t.vpe,this.changeEvent=new t.vpe,this.openEvent=new t.vpe,this.closeEvent=new t.vpe,this.searchEvent=new t.vpe,this.clearEvent=new t.vpe,this.addEvent=new t.vpe,this.removeEvent=new t.vpe,this.scroll=new t.vpe,this.scrollToEnd=new t.vpe,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=bt(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new oe.x,this._keyPress$=new oe.x,this._onChange=ln=>{},this._onTouched=()=>{},this.clearItem=ln=>{const _n=this.selectedItems.find(bn=>bn.value===ln);this.unselect(_n)},this.trackByOption=(ln,_n)=>this.trackByFn?this.trackByFn(_n.value):_n,this._mergeGlobalConfig(de),this.itemsList=new Ft(this,Oe()),this.element=Ae.nativeElement}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(D=>D.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(D){D.multiple&&this.itemsList.clearSelected(),D.items&&this._setItems(D.items.currentValue||[]),D.isOpen&&(this._manualOpen=zn(D.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),zn(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(D){if(on[D.which]){if(!1===this.keyDownFn(D))return;this.handleKeyCode(D)}else D.key&&1===D.key.length&&this._keyPress$.next(D.key.toLocaleLowerCase())}handleKeyCode(D){this.clearButton&&this.clearButton.nativeElement===D.target?this.handleKeyCodeClear(D):this.handleKeyCodeInput(D)}handleKeyCodeInput(D){switch(D.which){case on.ArrowDown:this._handleArrowDown(D);break;case on.ArrowUp:this._handleArrowUp(D);break;case on.Space:this._handleSpace(D);break;case on.Enter:this._handleEnter(D);break;case on.Tab:this._handleTab(D);break;case on.Esc:this.close(),D.preventDefault();break;case on.Backspace:this._handleBackspace()}}handleKeyCodeClear(D){D.which===on.Enter&&(this.handleClearClick(),D.preventDefault())}handleMousedown(D){const X=D.target;"INPUT"!==X.tagName&&D.preventDefault(),X.classList.contains("ng-clear-wrapper")?this.handleClearClick():X.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():X.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(D){this.itemsList.clearSelected(),this._handleWriteValue(D),this._cd.markForCheck()}registerOnChange(D){this._onChange=D}registerOnTouched(D){this._onTouched=D}setDisabledState(D){this._disabled=D,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(D){!D||D.disabled||this.disabled||(this.deselectOnClick&&D.selected?this.unselect(D):this.select(D),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(D){D.selected||(this.itemsList.select(D),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(D.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(D){D&&(this.itemsList.unselect(D),this.focus(),this._updateNgModel(),this.removeEvent.emit(D.value))}selectTag(){let D;D=we(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const X=de=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(de,null):this.itemsList.addItem(de);!function at(z){return z instanceof Promise}(D)?D&&this.select(X(D)):D.then(de=>this.select(X(de))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}get showAddTag(){if(!this._validTerm)return!1;const D=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(X=>X.label.toLowerCase()===D)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(X=>X.label.toLowerCase()===D))&&!this.loading}showNoItemsFound(){const D=0===this.itemsList.filteredItems.length;return(D&&!this._isTypeahead&&!this.loading||D&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(D){this._isComposing=!1,!this.searchWhileComposing&&this.filter(D)}filter(D){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=D,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(D),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:D,items:this.itemsList.filteredItems.map(X=>X.value)}),this.open())}onInputFocus(D){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(D),this.focused=!0)}onInputBlur(D){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(D),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(D){D.disabled||this.itemsList.markItem(D)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const D=this.selectedItems&&this.selectedItems[0];this.searchTerm=D&&D.label||null}_setItems(D){const X=D[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=zn(X)?!dt(X):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(D),D.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&zn(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const D=de=>{this.items=de.map(Oe=>({$ngOptionValue:Oe.value,$ngOptionLabel:Oe.elementRef.nativeElement.innerHTML,disabled:Oe.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},X=()=>{const de=(0,ae.T)(this.ngOptions.changes,this._destroy$);(0,ae.T)(...this.ngOptions.map(Oe=>Oe.stateChange$)).pipe((0,w.R)(de)).subscribe(Oe=>{const Ae=this.itemsList.findItem(Oe.value);Ae.disabled=Oe.disabled,Ae.label=Oe.label||Ae.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,$.O)(this.ngOptions),(0,w.R)(this._destroy$)).subscribe(de=>{this.bindLabel=this._defaultLabel,D(de),X()})}_isValidWriteValue(D){if(!zn(D)||this.multiple&&""===D||Array.isArray(D)&&0===D.length)return!1;const X=de=>!(!zn(this.compareWith)&&dt(de)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(de)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(D)?D.every(de=>X(de)):(this._console.warn("Multiple select ngModel should be array."),!1):X(D)}_handleWriteValue(D){if(!this._isValidWriteValue(D))return;const X=de=>{let Oe=this.itemsList.findItem(de);if(Oe)this.itemsList.select(Oe);else{const Ae=dt(de);Ae||!Ae&&!this.bindValue?this.itemsList.select(this.itemsList.mapItem(de,null)):this.bindValue&&(Oe={[this.bindLabel]:null,[this.bindValue]:de},this.itemsList.select(this.itemsList.mapItem(Oe,null)))}};this.multiple?D.forEach(de=>X(de)):X(D)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,w.R)(this._destroy$),(0,f.b)(D=>this._pressedKeys.push(D)),(0,j.b)(200),(0,S.h)(()=>this._pressedKeys.length>0),(0,q.U)(()=>this._pressedKeys.join(""))).subscribe(D=>{const X=this.itemsList.findByLabel(D);X&&(this.isOpen?(this.itemsList.markItem(X),this._scrollToMarked(),this._cd.markForCheck()):this.select(X)),this._pressedKeys=[]})}_setInputAttributes(){const D=this.searchInput.nativeElement,X={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const de of Object.keys(X))D.setAttribute(de,X[de])}_updateNgModel(){const D=[];for(const de of this.selectedItems)if(this.bindValue){let Oe=null;Oe=de.children?de.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(de.value,this.bindValue),D.push(Oe)}else D.push(de.value);const X=this.selectedItems.map(de=>de.value);this.multiple?(this._onChange(D),this.changeEvent.emit(X)):(this._onChange(zn(D[0])?D[0]:null),this.changeEvent.emit(X[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(D){this.searchTerm=D,this._isTypeahead&&this.typeahead.next(D)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(D){if(!1===this.isOpen)if(this.showClear())this.focusOnClear(),D.preventDefault();else if(!this.addTag)return;this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),D.preventDefault()):this.showAddTag?(this.selectTag(),D.preventDefault()):this.close():this.close()}_handleEnter(D){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}D.preventDefault()}_handleSpace(D){this.isOpen||this._manualOpen||(this.open(),D.preventDefault())}_handleArrowDown(D){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),D.preventDefault()}_handleArrowUp(D){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),D.preventDefault())}_nextItemIsTag(D){const X=this.itemsList.markedIndex+D;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(X<0||X===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const D=this.searchTerm&&this.searchTerm.trim();return D&&D.length>=this.minTermLength}_mergeGlobalConfig(D){this.placeholder=this.placeholder||D.placeholder,this.notFoundText=this.notFoundText||D.notFoundText,this.typeToSearchText=this.typeToSearchText||D.typeToSearchText,this.addTagText=this.addTagText||D.addTagText,this.loadingText=this.loadingText||D.loadingText,this.clearAllText=this.clearAllText||D.clearAllText,this.virtualScroll=zn(this.virtualScroll)?this.virtualScroll:!!zn(D.disableVirtualScroll)&&!D.disableVirtualScroll,this.openOnEnter=zn(this.openOnEnter)?this.openOnEnter:D.openOnEnter,this.appendTo=this.appendTo||D.appendTo,this.bindValue=this.bindValue||D.bindValue,this.bindLabel=this.bindLabel||D.bindLabel,this.appearance=this.appearance||D.appearance}static#e=this.\u0275fac=function(X){return new(X||z)(t.$8M("class"),t.$8M("autofocus"),t.Y36(Hr),t.Y36(Xn),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(Zr))};static#t=this.\u0275cmp=t.Xpm({type:z,selectors:[["ng-select"]],contentQueries:function(X,de,Oe){if(1&X&&(t.Suo(Oe,yt,5,t.Rgc),t.Suo(Oe,Wt,5,t.Rgc),t.Suo(Oe,Vt,5,t.Rgc),t.Suo(Oe,Un,5,t.Rgc),t.Suo(Oe,sn,5,t.Rgc),t.Suo(Oe,rr,5,t.Rgc),t.Suo(Oe,an,5,t.Rgc),t.Suo(Oe,$n,5,t.Rgc),t.Suo(Oe,Qe,5,t.Rgc),t.Suo(Oe,Le,5,t.Rgc),t.Suo(Oe,Ue,5,t.Rgc),t.Suo(Oe,Ar,5)),2&X){let Ae;t.iGM(Ae=t.CRH())&&(de.optionTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.optgroupTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.labelTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.multiLabelTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.headerTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.footerTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.notFoundTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.typeToSearchTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.loadingTextTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.tagTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.loadingSpinnerTemplate=Ae.first),t.iGM(Ae=t.CRH())&&(de.ngOptions=Ae)}},viewQuery:function(X,de){if(1&X&&(t.Gf(Fr,5),t.Gf(Tt,7),t.Gf(tt,5)),2&X){let Oe;t.iGM(Oe=t.CRH())&&(de.dropdownPanel=Oe.first),t.iGM(Oe=t.CRH())&&(de.searchInput=Oe.first),t.iGM(Oe=t.CRH())&&(de.clearButton=Oe.first)}},hostVars:20,hostBindings:function(X,de){1&X&&t.NdJ("keydown",function(Ae){return de.handleKeyDown(Ae)}),2&X&&t.ekj("ng-select-typeahead",de.typeahead)("ng-select-multiple",de.multiple)("ng-select-taggable",de.addTag)("ng-select-searchable",de.searchable)("ng-select-clearable",de.clearable)("ng-select-opened",de.isOpen)("ng-select",de.useDefaultClass)("ng-select-disabled",de.disabled)("ng-select-filtered",de.filtered)("ng-select-single",de.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:"markFirst",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",openOnEnter:"openOnEnter",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:"tabIndex",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",typeahead:"typeahead",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[t._Bn([{provide:d.JU,useExisting:(0,t.Gpc)(()=>z),multi:!0},Tn]),t.TTD],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper","tabindex","0",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],["tabindex","0",1,"ng-clear-wrapper",3,"title"],["clearButton",""],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(X,de){if(1&X){const Oe=t.EpF();t.TgZ(0,"div",0),t.NdJ("mousedown",function(mt){return de.handleMousedown(mt)}),t.TgZ(1,"div",1)(2,"div",2),t._uU(3),t.qZA(),t.YNc(4,We,2,2,"ng-container",3),t.YNc(5,Ot,1,5,null,3),t.TgZ(6,"div",4)(7,"input",5,6),t.NdJ("input",function(){t.CHM(Oe);const mt=t.MAs(8);return t.KtG(de.filter(mt.value))})("compositionstart",function(){return de.onCompositionStart()})("compositionend",function(){t.CHM(Oe);const mt=t.MAs(8);return t.KtG(de.onCompositionEnd(mt.value))})("focus",function(mt){return de.onInputFocus(mt)})("blur",function(mt){return de.onInputBlur(mt)})("change",function(mt){return mt.stopPropagation()}),t.qZA()()(),t.YNc(9,Ht,4,1,"ng-container",3),t.YNc(10,Zt,4,1,"span",7),t.TgZ(11,"span",8),t._UZ(12,"span",9),t.qZA()(),t.YNc(13,wr,7,19,"ng-dropdown-panel",10)}2&X&&(t.ekj("ng-appearance-outline","outline"===de.appearance)("ng-has-value",de.hasValue),t.xp6(3),t.Oqu(de.placeholder),t.xp6(1),t.Q6J("ngIf",(!de.multiLabelTemplate||!de.multiple)&&de.selectedItems.length>0),t.xp6(1),t.Q6J("ngIf",de.multiple&&de.multiLabelTemplate&&de.selectedValues.length>0),t.xp6(1),t.uIk("aria-expanded",de.isOpen)("aria-owns",de.isOpen?de.dropdownId:null),t.xp6(1),t.Q6J("readOnly",!de.searchable||de.itemsList.maxItemsSelected)("disabled",de.disabled)("value",de.searchTerm?de.searchTerm:""),t.uIk("id",de.labelForId)("tabindex",de.tabIndex)("aria-activedescendant",de.isOpen?null==de.itemsList||null==de.itemsList.markedItem?null:de.itemsList.markedItem.htmlId:null)("aria-controls",de.isOpen?de.dropdownId:null),t.xp6(2),t.Q6J("ngIf",de.loading),t.xp6(1),t.Q6J("ngIf",de.showClear()),t.xp6(3),t.Q6J("ngIf",de.isOpen))},dependencies:[fe.mk,fe.sg,fe.O5,fe.tP,Fr,He],styles:['@charset "UTF-8";.ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}\n'],encapsulation:2,changeDetection:0})}return z})();function Ur(){return new ai}class ai{constructor(){this._selected=[]}get value(){return this._selected}select(K,D,X){if(K.selected=!0,(!K.children||!D&&X)&&this._selected.push(K),D)if(K.parent){const de=K.parent.children.length,Oe=K.parent.children.filter(Ae=>Ae.selected).length;K.parent.selected=de===Oe}else K.children&&(this._setChildrenSelectedState(K.children,!0),this._removeChildren(K),this._selected=X&&this._activeChildren(K)?[...this._selected.filter(de=>de.parent!==K),K]:[...this._selected,...K.children.filter(de=>!de.disabled)])}unselect(K,D){if(this._selected=this._selected.filter(X=>X!==K),K.selected=!1,D)if(K.parent&&K.parent.selected){const X=K.parent.children;this._removeParent(K.parent),this._removeChildren(K.parent),this._selected.push(...X.filter(de=>de!==K&&!de.disabled)),K.parent.selected=!1}else K.children&&(this._setChildrenSelectedState(K.children,!1),this._removeChildren(K))}clear(K){this._selected=K?this._selected.filter(D=>D.disabled):[]}_setChildrenSelectedState(K,D){for(const X of K)X.disabled||(X.selected=D)}_removeChildren(K){this._selected=[...this._selected.filter(D=>D.parent!==K),...K.children.filter(D=>D.parent===K&&D.disabled&&D.selected)]}_removeParent(K){this._selected=this._selected.filter(D=>D!==K)}_activeChildren(K){return K.children.every(D=>!D.disabled||D.selected)}}let pe=(()=>{class z{static#e=this.\u0275fac=function(X){return new(X||z)};static#t=this.\u0275mod=t.oAB({type:z});static#n=this.\u0275inj=t.cJS({providers:[{provide:Xn,useValue:Ur}],imports:[fe.ez]})}return z})()},9515:(Pe,V,a)=>{"use strict";a.d(V,{X$:()=>_t,Zw:()=>f,aw:()=>$e,sK:()=>St});var t=a(5879),d=a(2096),w=a(2664),L=a(9315),p=a(5211),O=a(4911),R=a(8180),F=a(7081),P=a(7398),B=a(6328),$=a(4664);class f{}let j=(()=>{class Ee extends f{getTranslation(J){return(0,d.of)({})}static \u0275fac=function(){let J;return function(oe){return(J||(J=t.n5z(Ee)))(oe||Ee)}}();static \u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac})}return Ee})();class S{}let q=(()=>{class Ee{handle(J){return J.key}static \u0275fac=function(Q){return new(Q||Ee)};static \u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac})}return Ee})();function ie(Ee,ze){if(Ee===ze)return!0;if(null===Ee||null===ze)return!1;if(Ee!=Ee&&ze!=ze)return!0;let oe,se,ae,J=typeof Ee;if(J==typeof ze&&"object"==J){if(!Array.isArray(Ee)){if(Array.isArray(ze))return!1;for(se in ae=Object.create(null),Ee){if(!ie(Ee[se],ze[se]))return!1;ae[se]=!0}for(se in ze)if(!(se in ae)&&typeof ze[se]<"u")return!1;return!0}if(!Array.isArray(ze))return!1;if((oe=Ee.length)==ze.length){for(se=0;se{Te(ze[Q])?Q in Ee?J[Q]=Me(Ee[Q],ze[Q]):Object.assign(J,{[Q]:ze[Q]}):Object.assign(J,{[Q]:ze[Q]})}),J}class ye{}let ce=(()=>{class Ee extends ye{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(J,Q){let oe;return oe="string"==typeof J?this.interpolateString(J,Q):"function"==typeof J?this.interpolateFunction(J,Q):J,oe}getValue(J,Q){let oe="string"==typeof Q?Q.split("."):[Q];Q="";do{Q+=oe.shift(),!k(J)||!k(J[Q])||"object"!=typeof J[Q]&&oe.length?oe.length?Q+=".":J=void 0:(J=J[Q],Q="")}while(oe.length);return J}interpolateFunction(J,Q){return J(Q)}interpolateString(J,Q){return Q?J.replace(this.templateMatcher,(oe,se)=>{let ae=this.getValue(Q,se);return k(ae)?ae:oe}):J}static \u0275fac=function(){let J;return function(oe){return(J||(J=t.n5z(Ee)))(oe||Ee)}}();static \u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac})}return Ee})();class _e{}let ve=(()=>{class Ee extends _e{compile(J,Q){return J}compileTranslations(J,Q){return J}static \u0275fac=function(){let J;return function(oe){return(J||(J=t.n5z(Ee)))(oe||Ee)}}();static \u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac})}return Ee})();class xe{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new t.vpe;onLangChange=new t.vpe;onDefaultLangChange=new t.vpe}const be=new t.OlP("USE_STORE"),ke=new t.OlP("USE_DEFAULT_LANG"),vt=new t.OlP("DEFAULT_LANGUAGE"),it=new t.OlP("USE_EXTEND");let St=(()=>{class Ee{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new t.vpe;_onLangChange=new t.vpe;_onDefaultLangChange=new t.vpe;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(J){this.isolate?this._defaultLang=J:this.store.defaultLang=J}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(J){this.isolate?this._currentLang=J:this.store.currentLang=J}get langs(){return this.isolate?this._langs:this.store.langs}set langs(J){this.isolate?this._langs=J:this.store.langs=J}get translations(){return this.isolate?this._translations:this.store.translations}set translations(J){this.isolate?this._translations=J:this.store.translations=J}constructor(J,Q,oe,se,ae,fe=!0,De=!1,je=!1,Xe){this.store=J,this.currentLoader=Q,this.compiler=oe,this.parser=se,this.missingTranslationHandler=ae,this.useDefaultLang=fe,this.isolate=De,this.extend=je,Xe&&this.setDefaultLang(Xe)}setDefaultLang(J){if(J===this.defaultLang)return;let Q=this.retrieveTranslations(J);typeof Q<"u"?(null==this.defaultLang&&(this.defaultLang=J),Q.pipe((0,R.q)(1)).subscribe(oe=>{this.changeDefaultLang(J)})):this.changeDefaultLang(J)}getDefaultLang(){return this.defaultLang}use(J){if(J===this.currentLang)return(0,d.of)(this.translations[J]);let Q=this.retrieveTranslations(J);return typeof Q<"u"?(this.currentLang||(this.currentLang=J),Q.pipe((0,R.q)(1)).subscribe(oe=>{this.changeLang(J)}),Q):(this.changeLang(J),(0,d.of)(this.translations[J]))}retrieveTranslations(J){let Q;return(typeof this.translations[J]>"u"||this.extend)&&(this._translationRequests[J]=this._translationRequests[J]||this.getTranslation(J),Q=this._translationRequests[J]),Q}getTranslation(J){this.pending=!0;const Q=this.currentLoader.getTranslation(J).pipe((0,F.d)(1),(0,R.q)(1));return this.loadingTranslations=Q.pipe((0,P.U)(oe=>this.compiler.compileTranslations(oe,J)),(0,F.d)(1),(0,R.q)(1)),this.loadingTranslations.subscribe({next:oe=>{this.translations[J]=this.extend&&this.translations[J]?{...oe,...this.translations[J]}:oe,this.updateLangs(),this.pending=!1},error:oe=>{this.pending=!1}}),Q}setTranslation(J,Q,oe=!1){Q=this.compiler.compileTranslations(Q,J),this.translations[J]=(oe||this.extend)&&this.translations[J]?Me(this.translations[J],Q):Q,this.updateLangs(),this.onTranslationChange.emit({lang:J,translations:this.translations[J]})}getLangs(){return this.langs}addLangs(J){J.forEach(Q=>{-1===this.langs.indexOf(Q)&&this.langs.push(Q)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(J,Q,oe){let se;if(Q instanceof Array){let ae={},fe=!1;for(let De of Q)ae[De]=this.getParsedResult(J,De,oe),(0,w.b)(ae[De])&&(fe=!0);if(fe){const De=Q.map(je=>(0,w.b)(ae[je])?ae[je]:(0,d.of)(ae[je]));return(0,L.D)(De).pipe((0,P.U)(je=>{let Xe={};return je.forEach((nt,wt)=>{Xe[Q[wt]]=nt}),Xe}))}return ae}if(J&&(se=this.parser.interpolate(this.parser.getValue(J,Q),oe)),typeof se>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(se=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],Q),oe)),typeof se>"u"){let ae={key:Q,translateService:this};typeof oe<"u"&&(ae.interpolateParams=oe),se=this.missingTranslationHandler.handle(ae)}return typeof se<"u"?se:Q}get(J,Q){if(!k(J)||!J.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,B.b)(oe=>(oe=this.getParsedResult(oe,J,Q),(0,w.b)(oe)?oe:(0,d.of)(oe))));{let oe=this.getParsedResult(this.translations[this.currentLang],J,Q);return(0,w.b)(oe)?oe:(0,d.of)(oe)}}getStreamOnTranslationChange(J,Q){if(!k(J)||!J.length)throw new Error('Parameter "key" required');return(0,p.z)((0,O.P)(()=>this.get(J,Q)),this.onTranslationChange.pipe((0,$.w)(oe=>{const se=this.getParsedResult(oe.translations,J,Q);return"function"==typeof se.subscribe?se:(0,d.of)(se)})))}stream(J,Q){if(!k(J)||!J.length)throw new Error('Parameter "key" required');return(0,p.z)((0,O.P)(()=>this.get(J,Q)),this.onLangChange.pipe((0,$.w)(oe=>{const se=this.getParsedResult(oe.translations,J,Q);return(0,w.b)(se)?se:(0,d.of)(se)})))}instant(J,Q){if(!k(J)||!J.length)throw new Error('Parameter "key" required');let oe=this.getParsedResult(this.translations[this.currentLang],J,Q);if((0,w.b)(oe)){if(J instanceof Array){let se={};return J.forEach((ae,fe)=>{se[J[fe]]=J[fe]}),se}return J}return oe}set(J,Q,oe=this.currentLang){this.translations[oe][J]=this.compiler.compile(Q,oe),this.updateLangs(),this.onTranslationChange.emit({lang:oe,translations:this.translations[oe]})}changeLang(J){this.currentLang=J,this.onLangChange.emit({lang:J,translations:this.translations[J]}),null==this.defaultLang&&this.changeDefaultLang(J)}changeDefaultLang(J){this.defaultLang=J,this.onDefaultLangChange.emit({lang:J,translations:this.translations[J]})}reloadLang(J){return this.resetLang(J),this.getTranslation(J)}resetLang(J){this._translationRequests[J]=void 0,this.translations[J]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let J=window.navigator.languages?window.navigator.languages[0]:null;return J=J||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof J>"u"?void 0:(-1!==J.indexOf("-")&&(J=J.split("-")[0]),-1!==J.indexOf("_")&&(J=J.split("_")[0]),J)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let J=window.navigator.languages?window.navigator.languages[0]:null;return J=J||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,J}static \u0275fac=function(Q){return new(Q||Ee)(t.LFG(xe),t.LFG(f),t.LFG(_e),t.LFG(ye),t.LFG(S),t.LFG(ke),t.LFG(be),t.LFG(it),t.LFG(vt))};static \u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac})}return Ee})(),_t=(()=>{class Ee{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(J,Q){this.translate=J,this._ref=Q}updateValue(J,Q,oe){let se=ae=>{this.value=void 0!==ae?ae:J,this.lastKey=J,this._ref.markForCheck()};if(oe){let ae=this.translate.getParsedResult(oe,J,Q);(0,w.b)(ae.subscribe)?ae.subscribe(se):se(ae)}this.translate.get(J,Q).subscribe(se)}transform(J,...Q){if(!J||!J.length)return J;if(ie(J,this.lastKey)&&ie(Q,this.lastParams))return this.value;let oe;if(k(Q[0])&&Q.length)if("string"==typeof Q[0]&&Q[0].length){let se=Q[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{oe=JSON.parse(se)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${Q[0]}`)}}else"object"==typeof Q[0]&&!Array.isArray(Q[0])&&(oe=Q[0]);return this.lastKey=J,this.lastParams=Q,this.updateValue(J,oe),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(se=>{this.lastKey&&se.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(J,oe,se.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(se=>{this.lastKey&&(this.lastKey=null,this.updateValue(J,oe,se.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(J,oe))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(Q){return new(Q||Ee)(t.Y36(St,16),t.Y36(t.sBO,16))};static \u0275pipe=t.Yjl({name:"translate",type:Ee,pure:!1});static \u0275prov=t.Yz7({token:Ee,factory:Ee.\u0275fac})}return Ee})(),$e=(()=>{class Ee{static forRoot(J={}){return{ngModule:Ee,providers:[J.loader||{provide:f,useClass:j},J.compiler||{provide:_e,useClass:ve},J.parser||{provide:ye,useClass:ce},J.missingTranslationHandler||{provide:S,useClass:q},xe,{provide:be,useValue:J.isolate},{provide:ke,useValue:J.useDefaultLang},{provide:it,useValue:J.extend},{provide:vt,useValue:J.defaultLanguage},St]}}static forChild(J={}){return{ngModule:Ee,providers:[J.loader||{provide:f,useClass:j},J.compiler||{provide:_e,useClass:ve},J.parser||{provide:ye,useClass:ce},J.missingTranslationHandler||{provide:S,useClass:q},{provide:be,useValue:J.isolate},{provide:ke,useValue:J.useDefaultLang},{provide:it,useValue:J.extend},{provide:vt,useValue:J.defaultLanguage},St]}}static \u0275fac=function(Q){return new(Q||Ee)};static \u0275mod=t.oAB({type:Ee});static \u0275inj=t.cJS({})}return Ee})()},7066:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>k});var w=a(8418);const p=function L(Te,Me){for(var ye=Te.length;ye--;)if((0,w.Z)(Te[ye][0],Me))return ye;return-1};var R=Array.prototype.splice;function ie(Te){var Me=-1,ye=null==Te?0:Te.length;for(this.clear();++Me-1},ie.prototype.set=function S(Te,Me){var ye=this.__data__,ce=p(ye,Te);return ce<0?(++this.size,ye.push([Te,Me])):ye[ce][1]=Me,this};const k=ie},2847:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(2656),d=a(4131);const L=(0,t.Z)(d.Z,"Map")},8410:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>ae});const w=(0,a(2656).Z)(Object,"create");var B=Object.prototype.hasOwnProperty;var S=Object.prototype.hasOwnProperty;function ye(fe){var De=-1,je=null==fe?0:fe.length;for(this.clear();++De{"use strict";a.d(V,{Z:()=>L});var t=a(2656),d=a(4131);const L=(0,t.Z)(d.Z,"Set")},342:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>F});var t=a(8410);function R(P){var B=-1,$=null==P?0:P.length;for(this.__data__=new t.Z;++B<$;)this.add(P[B])}R.prototype.add=R.prototype.push=function w(P){return this.__data__.set(P,"__lodash_hash_undefined__"),this},R.prototype.has=function p(P){return this.__data__.has(P)};const F=R},8730:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>ie});var t=a(7066);var B=a(2847),$=a(8410);function q(k){var Te=this.__data__=new t.Z(k);this.size=Te.size}q.prototype.clear=function d(){this.__data__=new t.Z,this.size=0},q.prototype.delete=function L(k){var Te=this.__data__,Me=Te.delete(k);return this.size=Te.size,Me},q.prototype.get=function O(k){return this.__data__.get(k)},q.prototype.has=function F(k){return this.__data__.has(k)},q.prototype.set=function j(k,Te){var Me=this.__data__;if(Me instanceof t.Z){var ye=Me.__data__;if(!B.Z||ye.length<199)return ye.push([k,Te]),this.size=++Me.size,this;Me=this.__data__=new $.Z(ye)}return Me.set(k,Te),this.size=Me.size,this};const ie=q},6875:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});const w=a(4131).Z.Symbol},8475:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});const w=a(4131).Z.Uint8Array},9416:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>$});var w=a(5727),L=a(9977),p=a(9354),O=a(9229),R=a(7227),P=Object.prototype.hasOwnProperty;const $=function B(f,j){var S=(0,L.Z)(f),q=!S&&(0,w.Z)(f),ie=!S&&!q&&(0,p.Z)(f),k=!S&&!q&&!ie&&(0,R.Z)(f),Te=S||q||ie||k,Me=Te?function t(f,j){for(var S=-1,q=Array(f);++S{"use strict";a.d(V,{Z:()=>d});const d=function t(w,L){for(var p=-1,O=L.length,R=w.length;++p{"use strict";a.d(V,{Z:()=>L});var t=a(4331),d=a(9977);const L=function w(p,O,R){var F=O(p);return(0,d.Z)(p)?F:(0,t.Z)(F,R(p))}},3844:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>ie});var t=a(6875),d=Object.prototype,w=d.hasOwnProperty,L=d.toString,p=t.Z?t.Z.toStringTag:void 0;var P=Object.prototype.toString;var S=t.Z?t.Z.toStringTag:void 0;const ie=function q(k){return null==k?void 0===k?"[object Undefined]":"[object Null]":S&&S in Object(k)?function O(k){var Te=w.call(k,p),Me=k[p];try{k[p]=void 0;var ye=!0}catch{}var ce=L.call(k);return ye&&(Te?k[p]=Me:delete k[p]),ce}(k):function B(k){return P.call(k)}(k)}},2148:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>Rn});var t=a(8730),d=a(342);const L=function w(We,Ye){for(var At=-1,Ot=null==We?0:We.length;++AtZt))return!1;var wn=Et.get(We),fn=Et.get(Ye);if(wn&&fn)return wn==Ye&&fn==We;var qt=-1,En=!0,Wn=2&At?new d.Z:void 0;for(Et.set(We,Ye),Et.set(Ye,We);++qt{"use strict";a.d(V,{Z:()=>d});const d=function t(w){return function(L){return w(L)}}},9473:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>xe});var t=a(342);const p=function L(be){return be!=be},$=function B(be,ke){return!(null==be||!be.length)&&function F(be,ke,vt){return ke==ke?function O(be,ke,vt){for(var it=vt-1,St=be.length;++it-1},j=function f(be,ke,vt){for(var it=-1,St=null==be?0:be.length;++it=200){var ze=ke?null:ce(be);if(ze)return(0,Te.Z)(ze);_t=!1,St=S.Z,Ee=new t.Z}else Ee=ke?[]:$e;e:for(;++it{"use strict";a.d(V,{Z:()=>d});const d=function t(w,L){return w.has(L)}},7806:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d="object"==typeof global&&global&&global.Object===Object&&global},6721:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>p});var t=a(6982),d=a(3774),w=a(0);const p=function L(O){return(0,t.Z)(O,w.Z,d.Z)}},2656:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>_e});var ve,t=a(4842),w=a(4131).Z["__core-js_shared__"],p=(ve=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||""))?"Symbol(src)_1."+ve:"";var F=a(5829),P=a(8594),$=/^\[object .+?Constructor\]$/,ie=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Te=function k(ve){return!(!(0,F.Z)(ve)||function O(ve){return!!p&&p in ve}(ve))&&((0,t.Z)(ve)?ie:$).test((0,P.Z)(ve))},_e=function ce(ve,xe){var be=function Me(ve,xe){return ve?.[xe]}(ve,xe);return Te(be)?be:void 0}},3774:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>F});var w=a(3534),p=Object.prototype.propertyIsEnumerable,O=Object.getOwnPropertySymbols;const F=O?function(P){return null==P?[]:(P=Object(P),function t(P,B){for(var $=-1,f=null==P?0:P.length,j=0,S=[];++${"use strict";a.d(V,{Z:()=>be});var t=a(2656),d=a(4131);const L=(0,t.Z)(d.Z,"DataView");var p=a(2847);const R=(0,t.Z)(d.Z,"Promise");var F=a(4402);const B=(0,t.Z)(d.Z,"WeakMap");var $=a(3844),f=a(8594),j="[object Map]",q="[object Promise]",ie="[object Set]",k="[object WeakMap]",Te="[object DataView]",Me=(0,f.Z)(L),ye=(0,f.Z)(p.Z),ce=(0,f.Z)(R),_e=(0,f.Z)(F.Z),ve=(0,f.Z)(B),xe=$.Z;(L&&xe(new L(new ArrayBuffer(1)))!=Te||p.Z&&xe(new p.Z)!=j||R&&xe(R.resolve())!=q||F.Z&&xe(new F.Z)!=ie||B&&xe(new B)!=k)&&(xe=function(ke){var vt=(0,$.Z)(ke),it="[object Object]"==vt?ke.constructor:void 0,St=it?(0,f.Z)(it):"";if(St)switch(St){case Me:return Te;case ye:return j;case ce:return q;case _e:return ie;case ve:return k}return vt});const be=xe},9229:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var d=/^(?:0|[1-9]\d*)$/;const L=function w(p,O){var R=typeof p;return!!(O=O??9007199254740991)&&("number"==R||"symbol"!=R&&d.test(p))&&p>-1&&p%1==0&&p{"use strict";a.d(V,{Z:()=>w});var t=Object.prototype;const w=function d(L){var p=L&&L.constructor;return L===("function"==typeof p&&p.prototype||t)}},5527:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>R});var t=a(7806),d="object"==typeof exports&&exports&&!exports.nodeType&&exports,w=d&&"object"==typeof module&&module&&!module.nodeType&&module,p=w&&w.exports===d&&t.Z.process;const R=function(){try{return w&&w.require&&w.require("util").types||p&&p.binding&&p.binding("util")}catch{}}()},2667:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=function t(w,L){return function(p){return w(L(p))}}},4131:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(7806),d="object"==typeof self&&self&&self.Object===Object&&self;const L=t.Z||d||Function("return this")()},7799:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=function t(w){var L=-1,p=Array(w.size);return w.forEach(function(O){p[++L]=O}),p}},8594:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var d=Function.prototype.toString;const L=function w(p){if(null!=p){try{return d.call(p)}catch{}try{return p+""}catch{}}return""}},1437:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>q});const p=function t(ie){return function(k){return ie?.[k]}}({\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"s"});var O=a(2394),R=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,j=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");const q=function S(ie){return(ie=(0,O.Z)(ie))&&ie.replace(R,p).replace(j,"")}},8418:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=function t(w,L){return w===L||w!=w&&L!=L}},5727:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>B});var t=a(3844),d=a(1196);const p=function L($){return(0,d.Z)($)&&"[object Arguments]"==(0,t.Z)($)};var O=Object.prototype,R=O.hasOwnProperty,F=O.propertyIsEnumerable;const B=p(function(){return arguments}())?p:function($){return(0,d.Z)($)&&R.call($,"callee")&&!F.call($,"callee")}},9977:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=Array.isArray},6247:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>L});var t=a(4842),d=a(4018);const L=function w(p){return null!=p&&(0,d.Z)(p.length)&&!(0,t.Z)(p)}},9354:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>B});var t=a(4131),L="object"==typeof exports&&exports&&!exports.nodeType&&exports,p=L&&"object"==typeof module&&module&&!module.nodeType&&module,R=p&&p.exports===L?t.Z.Buffer:void 0;const B=(R?R.isBuffer:void 0)||function d(){return!1}},8658:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});var t=a(2148);const w=function d(L,p){return(0,t.Z)(L,p)}},4842:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>F});var t=a(3844),d=a(5829);const F=function R(P){if(!(0,d.Z)(P))return!1;var B=(0,t.Z)(P);return"[object Function]"==B||"[object GeneratorFunction]"==B||"[object AsyncFunction]"==B||"[object Proxy]"==B}},4018:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>w});const w=function d(L){return"number"==typeof L&&L>-1&&L%1==0&&L<=9007199254740991}},5829:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=function t(w){var L=typeof w;return null!=w&&("object"==L||"function"==L)}},1196:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=function t(w){return null!=w&&"object"==typeof w}},7106:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>p});var t=a(3844),d=a(1196);const p=function L(O){return"symbol"==typeof O||(0,d.Z)(O)&&"[object Symbol]"==(0,t.Z)(O)}},7227:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>J});var t=a(3844),d=a(4018),w=a(1196),it={};it["[object Float32Array]"]=it["[object Float64Array]"]=it["[object Int8Array]"]=it["[object Int16Array]"]=it["[object Int32Array]"]=it["[object Uint8Array]"]=it["[object Uint8ClampedArray]"]=it["[object Uint16Array]"]=it["[object Uint32Array]"]=!0,it["[object Arguments]"]=it["[object Array]"]=it["[object ArrayBuffer]"]=it["[object Boolean]"]=it["[object DataView]"]=it["[object Date]"]=it["[object Error]"]=it["[object Function]"]=it["[object Map]"]=it["[object Number]"]=it["[object Object]"]=it["[object RegExp]"]=it["[object Set]"]=it["[object String]"]=it["[object WeakMap]"]=!1;var _t=a(8733),$e=a(5527),Ee=$e.Z&&$e.Z.isTypedArray;const J=Ee?(0,_t.Z)(Ee):function St(Q){return(0,w.Z)(Q)&&(0,d.Z)(Q.length)&&!!it[(0,t.Z)(Q)]}},0:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>f});var t=a(9416),d=a(801);const p=(0,a(2667).Z)(Object.keys,Object);var R=Object.prototype.hasOwnProperty;var B=a(6247);const f=function $(j){return(0,B.Z)(j)?(0,t.Z)(j):function F(j){if(!(0,d.Z)(j))return p(j);var S=[];for(var q in Object(j))R.call(j,q)&&"constructor"!=q&&S.push(q);return S}(j)}},3534:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>d});const d=function t(){return[]}},2394:(Pe,V,a)=>{"use strict";a.d(V,{Z:()=>f});var t=a(6875);var L=a(9977),p=a(7106),R=t.Z?t.Z.prototype:void 0,F=R?R.toString:void 0;const B=function P(j){if("string"==typeof j)return j;if((0,L.Z)(j))return function d(j,S){for(var q=-1,ie=null==j?0:j.length,k=Array(ie);++q{"use strict";a.d(V,{Z:()=>Er});var t=a(8730),d=a(2148);var R=a(5829);const P=function F(st){return st==st&&!(0,R.Z)(st)};var B=a(0);const S=function j(st,Ut){return function(Qt){return null!=Qt&&Qt[st]===Ut&&(void 0!==Ut||st in Object(Qt))}},ie=function q(st){var Ut=function $(st){for(var Ut=(0,B.Z)(st),Qt=Ut.length;Qt--;){var Dn=Ut[Qt],Sn=st[Dn];Ut[Qt]=[Dn,Sn,P(Sn)]}return Ut}(st);return 1==Ut.length&&Ut[0][2]?S(Ut[0][0],Ut[0][1]):function(Qt){return Qt===st||function p(st,Ut,Qt,Dn){var Sn=Qt.length,On=Sn,nr=!Dn;if(null==st)return!On;for(st=Object(st);Sn--;){var Dr=Qt[Sn];if(nr&&Dr[2]?Dr[1]!==st[Dr[0]]:!(Dr[0]in st))return!1}for(;++Sn{"use strict";a.d(V,{Z:()=>L});var t=a(2394),d=0;const L=function w(p){var O=++d;return(0,t.Z)(p)+O}},6283:(Pe,V,a)=>{"use strict";a.d(V,{Ry:()=>zt,Rq:()=>Rn});var t=a(5879),d=a(2096),w=a(2438),L=a(1631),p=a(7398),O=a(9397),R=a(2181),F=a(6321),P=a(9360),B=a(8251),$=a(4829),j=a(4825);function ie(We,Ye,At,Ot){const tn=window&&!!window.document&&window.document.documentElement;let Et=tn&&Ye?window:At;if(We&&(Et=We&&tn&&"string"==typeof We?function k(We,Ye,At){return(At?window.document:Ye).querySelector(We)}(We,At.nativeElement,Ot):We,!Et))throw new Error("ngx-infinite-scroll {resolveContainerElement()}: selector for");return Et}function Te(We){return We&&!We.firstChange}const ye={clientHeight:"clientHeight",offsetHeight:"offsetHeight",scrollHeight:"scrollHeight",pageYOffset:"pageYOffset",offsetTop:"offsetTop",scrollTop:"scrollTop",top:"top"},ce={clientHeight:"clientWidth",offsetHeight:"offsetWidth",scrollHeight:"scrollWidth",pageYOffset:"pageXOffset",offsetTop:"offsetLeft",scrollTop:"scrollLeft",top:"left"};class _e{constructor(Ye=!0){this.vertical=Ye,this.propsMap=Ye?ye:ce}clientHeightKey(){return this.propsMap.clientHeight}offsetHeightKey(){return this.propsMap.offsetHeight}scrollHeightKey(){return this.propsMap.scrollHeight}pageYOffsetKey(){return this.propsMap.pageYOffset}offsetTopKey(){return this.propsMap.offsetTop}scrollTopKey(){return this.propsMap.scrollTop}topKey(){return this.propsMap.top}}function ke(We){return["Window","global"].some(At=>Object.prototype.toString.call(We).includes(At))}function vt(We,Ye){return We?Ye.document.documentElement:null}function it(We,Ye){const At=function $e({container:We,isWindow:Ye,axis:At}){const{offsetHeightKey:Ot,clientHeightKey:tn}=_t(At);return Ee(We,Ye,Ot,tn)}(Ye);return Ye.isWindow?function St(We,Ye,At){const{axis:Ot,container:tn,isWindow:Et}=At,{offsetHeightKey:Ht,clientHeightKey:Zt}=_t(Ot),dn=We+J(vt(Et,tn),Ot,Et),wn=Ee(Ye.nativeElement,Et,Ht,Zt),fn=function ze(We,Ye,At){const Ot=Ye.topKey();if(We.getBoundingClientRect)return We.getBoundingClientRect()[Ot]+J(We,Ye,At)}(Ye.nativeElement,Ot,Et)+wn;return{height:We,scrolled:dn,totalToScroll:fn,isWindow:Et}}(At,We,Ye):function qe(We,Ye,At){const{axis:Ot,container:tn}=At;return{height:We,scrolled:tn[Ot.scrollTopKey()],totalToScroll:tn[Ot.scrollHeightKey()],isWindow:!1}}(At,0,Ye)}function _t(We){return{offsetHeightKey:We.offsetHeightKey(),clientHeightKey:We.clientHeightKey()}}function Ee(We,Ye,At,Ot){if(isNaN(We[At])){const tn=vt(Ye,We);return tn?tn[Ot]:0}return We[At]}function J(We,Ye,At){const Ot=Ye.pageYOffsetKey(),tn=Ye.scrollTopKey(),Et=Ye.offsetTopKey();return isNaN(window.pageYOffset)?vt(At,We)[tn]:We.ownerDocument?We.ownerDocument.defaultView[Ot]:We[Et]}function Q(We,Ye={down:0,up:0},At){let Ot,tn;if(We.totalToScroll<=0)return!1;const Et=We.isWindow?We.scrolled:We.height+We.scrolled;return At?(Ot=(We.totalToScroll-Et)/We.totalToScroll,tn=(Ye?.down?Ye.down:0)/10):(Ot=We.scrolled/(We.scrolled+(We.totalToScroll-Et)),tn=(Ye?.up?Ye.up:0)/10),Ot<=tn}class wt{constructor({totalToScroll:Ye}){this.lastScrollPosition=0,this.lastTotalToScroll=0,this.totalToScroll=0,this.triggered={down:0,up:0},this.totalToScroll=Ye}updateScrollPosition(Ye){return this.lastScrollPosition=Ye}updateTotalToScroll(Ye){this.lastTotalToScroll!==Ye&&(this.lastTotalToScroll=this.totalToScroll,this.totalToScroll=Ye)}updateScroll(Ye,At){this.updateScrollPosition(Ye),this.updateTotalToScroll(At)}updateTriggeredFlag(Ye,At){At?this.triggered.down=Ye:this.triggered.up=Ye}isTriggeredScroll(Ye,At){return At?this.triggered.down===Ye:this.triggered.up===Ye}}function It(We){const{scrollContainer:Ye,scrollWindow:At,element:Ot,fromRoot:tn}=We,Et=function xe({windowElement:We,axis:Ye}){return function be(We,Ye){const At=We.isWindow||Ye&&!Ye.nativeElement?Ye:Ye.nativeElement;return{...We,container:At}}({axis:Ye,isWindow:ke(We)},We)}({axis:new _e(!We.horizontal),windowElement:ie(Ye,At,Ot,tn)}),Ht=new wt({totalToScroll:it(Ot,Et)}),dn={up:We.upDistance,down:We.downDistance};return function Je(We){let Ye=(0,w.R)(We.container,"scroll");return We.throttle&&(Ye=Ye.pipe(function S(We,Ye=F.z,At){const Ot=(0,j.H)(We,Ye);return function f(We,Ye){return(0,P.e)((At,Ot)=>{const{leading:tn=!0,trailing:Et=!1}=Ye??{};let Ht=!1,Zt=null,dn=null,wn=!1;const fn=()=>{dn?.unsubscribe(),dn=null,Et&&(Wn(),wn&&Ot.complete())},qt=()=>{dn=null,wn&&Ot.complete()},En=mn=>dn=(0,$.Xf)(We(mn)).subscribe((0,B.x)(Ot,fn,qt)),Wn=()=>{if(Ht){Ht=!1;const mn=Zt;Zt=null,Ot.next(mn),!wn&&En(mn)}};At.subscribe((0,B.x)(Ot,mn=>{Ht=!0,Zt=mn,(!dn||dn.closed)&&(tn?Wn():En(mn))},()=>{wn=!0,(!(Et&&Ht&&dn)||dn.closed)&&Ot.complete()}))})}(()=>Ot,At)}(We.throttle,void 0,{leading:!0,trailing:!0}))),Ye}({container:Et.container,throttle:We.throttle}).pipe((0,L.z)(()=>(0,d.of)(it(Ot,Et))),(0,p.U)(wn=>function Tt(We,Ye,At){const{scrollDown:Ot,fire:tn}=function se(We,Ye,At){const Ot=function oe(We,Ye){return WeHt.updateScroll(wn.scrolled,wn.totalToScroll)),(0,R.h)(({fire:wn,scrollDown:fn,stats:{totalToScroll:qt}})=>function ve(We,Ye,At){return!!(We&&Ye||!At&&Ye)}(We.alwaysCallback,wn,Ht.isTriggeredScroll(qt,fn))),(0,O.b)(({scrollDown:wn,stats:{totalToScroll:fn}})=>{Ht.updateTriggeredFlag(fn,wn)}),(0,p.U)(Pt))}const tt={DOWN:"[NGX_ISE] DOWN",UP:"[NGX_ISE] UP"};function Pt(We){const{scrollDown:Ye,stats:{scrolled:At}}=We;return{type:Ye?tt.DOWN:tt.UP,payload:{currentScrollPosition:At}}}let zt=(()=>{class We{constructor(At,Ot){this.element=At,this.zone=Ot,this.scrolled=new t.vpe,this.scrolledUp=new t.vpe,this.infiniteScrollDistance=2,this.infiniteScrollUpDistance=1.5,this.infiniteScrollThrottle=150,this.infiniteScrollDisabled=!1,this.infiniteScrollContainer=null,this.scrollWindow=!0,this.immediateCheck=!1,this.horizontal=!1,this.alwaysCallback=!1,this.fromRoot=!1}ngAfterViewInit(){this.infiniteScrollDisabled||this.setup()}ngOnChanges({infiniteScrollContainer:At,infiniteScrollDisabled:Ot,infiniteScrollDistance:tn}){const Et=Te(At),Ht=Te(Ot),Zt=Te(tn),dn=!Ht&&!this.infiniteScrollDisabled||Ht&&!Ot.currentValue||Zt;(Et||Ht||Zt)&&(this.destroyScroller(),dn&&this.setup())}setup(){(function Me(){return typeof window<"u"})()&&this.zone.runOutsideAngular(()=>{this.disposeScroller=It({fromRoot:this.fromRoot,alwaysCallback:this.alwaysCallback,disable:this.infiniteScrollDisabled,downDistance:this.infiniteScrollDistance,element:this.element,horizontal:this.horizontal,scrollContainer:this.infiniteScrollContainer,scrollWindow:this.scrollWindow,throttle:this.infiniteScrollThrottle,upDistance:this.infiniteScrollUpDistance}).subscribe(At=>this.handleOnScroll(At))})}handleOnScroll({type:At,payload:Ot}){const tn=At===tt.DOWN?this.scrolled:this.scrolledUp;(function un(We){return We.observed??We.observers.length>0})(tn)&&this.zone.run(()=>tn.emit(Ot))}ngOnDestroy(){this.destroyScroller()}destroyScroller(){this.disposeScroller&&this.disposeScroller.unsubscribe()}static#e=this.\u0275fac=function(Ot){return new(Ot||We)(t.Y36(t.SBq),t.Y36(t.R0b))};static#t=this.\u0275dir=t.lG2({type:We,selectors:[["","infiniteScroll",""],["","infinite-scroll",""],["","data-infinite-scroll",""]],inputs:{infiniteScrollDistance:"infiniteScrollDistance",infiniteScrollUpDistance:"infiniteScrollUpDistance",infiniteScrollThrottle:"infiniteScrollThrottle",infiniteScrollDisabled:"infiniteScrollDisabled",infiniteScrollContainer:"infiniteScrollContainer",scrollWindow:"scrollWindow",immediateCheck:"immediateCheck",horizontal:"horizontal",alwaysCallback:"alwaysCallback",fromRoot:"fromRoot"},outputs:{scrolled:"scrolled",scrolledUp:"scrolledUp"},features:[t.TTD]})}return We})(),Rn=(()=>{class We{static#e=this.\u0275fac=function(Ot){return new(Ot||We)};static#t=this.\u0275mod=t.oAB({type:We});static#n=this.\u0275inj=t.cJS({})}return We})()},1002:(Pe,V,a)=>{"use strict";function t(d){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(w){return typeof w}:function(w){return w&&"function"==typeof Symbol&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(d)}a.d(V,{Z:()=>t})},7582:(Pe,V,a)=>{"use strict";function f(Q,oe,se,ae){return new(se||(se=Promise))(function(De,je){function Xe(It){try{wt(ae.next(It))}catch(Je){je(Je)}}function nt(It){try{wt(ae.throw(It))}catch(Je){je(Je)}}function wt(It){It.done?De(It.value):function fe(De){return De instanceof se?De:new se(function(je){je(De)})}(It.value).then(Xe,nt)}wt((ae=ae.apply(Q,oe||[])).next())})}function ce(Q){return this instanceof ce?(this.v=Q,this):new ce(Q)}function _e(Q,oe,se){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe,ae=se.apply(Q,oe||[]),De=[];return fe={},je("next"),je("throw"),je("return"),fe[Symbol.asyncIterator]=function(){return this},fe;function je(Tt){ae[Tt]&&(fe[Tt]=function(tt){return new Promise(function(Pt,zt){De.push([Tt,tt,Pt,zt])>1||Xe(Tt,tt)})})}function Xe(Tt,tt){try{!function nt(Tt){Tt.value instanceof ce?Promise.resolve(Tt.value.v).then(wt,It):Je(De[0][2],Tt)}(ae[Tt](tt))}catch(Pt){Je(De[0][3],Pt)}}function wt(Tt){Xe("next",Tt)}function It(Tt){Xe("throw",Tt)}function Je(Tt,tt){Tt(tt),De.shift(),De.length&&Xe(De[0][0],De[0][1])}}function xe(Q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var se,oe=Q[Symbol.asyncIterator];return oe?oe.call(Q):(Q=function ie(Q){var oe="function"==typeof Symbol&&Symbol.iterator,se=oe&&Q[oe],ae=0;if(se)return se.call(Q);if(Q&&"number"==typeof Q.length)return{next:function(){return Q&&ae>=Q.length&&(Q=void 0),{value:Q&&Q[ae++],done:!Q}}};throw new TypeError(oe?"Object is not iterable.":"Symbol.iterator is not defined.")}(Q),se={},ae("next"),ae("throw"),ae("return"),se[Symbol.asyncIterator]=function(){return this},se);function ae(De){se[De]=Q[De]&&function(je){return new Promise(function(Xe,nt){!function fe(De,je,Xe,nt){Promise.resolve(nt).then(function(wt){De({value:wt,done:Xe})},je)}(Xe,nt,(je=Q[De](je)).done,je.value)})}}}a.d(V,{FC:()=>_e,KL:()=>xe,mG:()=>f,qq:()=>ce}),"function"==typeof SuppressedError&&SuppressedError}},Pe=>{Pe(Pe.s=4515)}]); \ No newline at end of file