From 5c350ff2a07f1911739481c0c1d98e237f245a04 Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 19 Jun 2024 11:55:25 +0000 Subject: [PATCH] Add webapp-schulverwaltung build 3baad1aa --- public/apps/webapp-schulverwaltung/0.js | 1 - public/apps/webapp-schulverwaltung/14.js | 1 - public/apps/webapp-schulverwaltung/165.js | 1 - public/apps/webapp-schulverwaltung/201.js | 1 - public/apps/webapp-schulverwaltung/240.js | 1 - public/apps/webapp-schulverwaltung/243.js | 1 - public/apps/webapp-schulverwaltung/290.js | 1 - public/apps/webapp-schulverwaltung/390.js | 1 - .../3rdpartylicenses.txt | 364 +++++++++--------- public/apps/webapp-schulverwaltung/407.js | 1 - public/apps/webapp-schulverwaltung/421.js | 1 - public/apps/webapp-schulverwaltung/438.js | 1 - public/apps/webapp-schulverwaltung/467.js | 1 - public/apps/webapp-schulverwaltung/656.js | 1 - public/apps/webapp-schulverwaltung/765.js | 1 - public/apps/webapp-schulverwaltung/769.js | 1 - public/apps/webapp-schulverwaltung/778.js | 1 - public/apps/webapp-schulverwaltung/811.js | 1 - public/apps/webapp-schulverwaltung/872.js | 1 - public/apps/webapp-schulverwaltung/891.js | 1 - public/apps/webapp-schulverwaltung/911.js | 1 - .../webapp-schulverwaltung/chunk-2FIH3FGB.js | 1 + .../webapp-schulverwaltung/chunk-2IXEFCAH.js | 1 + .../webapp-schulverwaltung/chunk-2JTOMQIG.js | 2 + .../webapp-schulverwaltung/chunk-33NXTXD7.js | 1 + .../webapp-schulverwaltung/chunk-3AROKYRB.js | 1 + .../webapp-schulverwaltung/chunk-3V5HHMRH.js | 1 + .../webapp-schulverwaltung/chunk-62KHQOYN.js | 1 + .../webapp-schulverwaltung/chunk-67IXHFR4.js | 1 + .../webapp-schulverwaltung/chunk-73JV7FSB.js | 1 + .../webapp-schulverwaltung/chunk-AJF2ECIH.js | 1 + .../webapp-schulverwaltung/chunk-BTBVZYMS.js | 1 + .../webapp-schulverwaltung/chunk-DMYOU5OM.js | 1 + .../webapp-schulverwaltung/chunk-DXYHDL5D.js | 1 + .../webapp-schulverwaltung/chunk-FTRAQKUW.js | 10 + .../webapp-schulverwaltung/chunk-GI4AZI25.js | 2 + .../webapp-schulverwaltung/chunk-HHGALFFJ.js | 2 + .../webapp-schulverwaltung/chunk-IA3IH2MK.js | 1 + .../webapp-schulverwaltung/chunk-JX2LWS6H.js | 1 + .../webapp-schulverwaltung/chunk-KLXFX6SJ.js | 2 + .../webapp-schulverwaltung/chunk-LO5XSJLW.js | 1 + .../webapp-schulverwaltung/chunk-MVTCHCDH.js | 1 + .../webapp-schulverwaltung/chunk-N6FFLIGM.js | 1 + .../webapp-schulverwaltung/chunk-Q5U6YZUT.js | 1 + .../webapp-schulverwaltung/chunk-QHPTZGVN.js | 2 + .../webapp-schulverwaltung/chunk-QR6JUXUH.js | 1 + .../webapp-schulverwaltung/chunk-QUM6674D.js | 2 + .../webapp-schulverwaltung/chunk-RC3HL7KB.js | 1 + .../webapp-schulverwaltung/chunk-RWNJF4OZ.js | 1 + .../webapp-schulverwaltung/chunk-T7QWSMKM.js | 9 + .../webapp-schulverwaltung/chunk-TIZKDD7Y.js | 2 + .../webapp-schulverwaltung/chunk-TK3HGFHH.js | 1 + .../webapp-schulverwaltung/chunk-TNMAZX5O.js | 1 + .../webapp-schulverwaltung/chunk-UMTH7ATO.js | 1 + .../webapp-schulverwaltung/chunk-V34B6ZOV.js | 1 + .../webapp-schulverwaltung/chunk-VFMGCCGG.js | 1 + .../webapp-schulverwaltung/chunk-VSATLVUN.js | 1 + .../webapp-schulverwaltung/chunk-VTGXNMZL.js | 1 + .../webapp-schulverwaltung/chunk-WGARCXGP.js | 2 + .../webapp-schulverwaltung/chunk-WN7VWSJW.js | 1 + .../webapp-schulverwaltung/chunk-X2BR3YJG.js | 1 + .../webapp-schulverwaltung/chunk-Y4QYVF5K.js | 1 + .../webapp-schulverwaltung/chunk-ZK2M6PDV.js | 1 + public/apps/webapp-schulverwaltung/common.js | 1 - public/apps/webapp-schulverwaltung/index.html | 2 +- public/apps/webapp-schulverwaltung/main.js | 2 +- .../roboto-v30-latin-ext_latin-100.woff | Bin .../roboto-v30-latin-ext_latin-300.woff | Bin .../roboto-v30-latin-ext_latin-400.woff | Bin .../roboto-v30-latin-ext_latin-500.woff | Bin .../roboto-v30-latin-ext_latin-700.woff | Bin .../apps/webapp-schulverwaltung/polyfills.js | 3 +- public/apps/webapp-schulverwaltung/runtime.js | 1 - public/apps/webapp-schulverwaltung/styles.css | 2 +- 74 files changed, 259 insertions(+), 203 deletions(-) delete mode 100644 public/apps/webapp-schulverwaltung/0.js delete mode 100644 public/apps/webapp-schulverwaltung/14.js delete mode 100644 public/apps/webapp-schulverwaltung/165.js delete mode 100644 public/apps/webapp-schulverwaltung/201.js delete mode 100644 public/apps/webapp-schulverwaltung/240.js delete mode 100644 public/apps/webapp-schulverwaltung/243.js delete mode 100644 public/apps/webapp-schulverwaltung/290.js delete mode 100644 public/apps/webapp-schulverwaltung/390.js delete mode 100644 public/apps/webapp-schulverwaltung/407.js delete mode 100644 public/apps/webapp-schulverwaltung/421.js delete mode 100644 public/apps/webapp-schulverwaltung/438.js delete mode 100644 public/apps/webapp-schulverwaltung/467.js delete mode 100644 public/apps/webapp-schulverwaltung/656.js delete mode 100644 public/apps/webapp-schulverwaltung/765.js delete mode 100644 public/apps/webapp-schulverwaltung/769.js delete mode 100644 public/apps/webapp-schulverwaltung/778.js delete mode 100644 public/apps/webapp-schulverwaltung/811.js delete mode 100644 public/apps/webapp-schulverwaltung/872.js delete mode 100644 public/apps/webapp-schulverwaltung/891.js delete mode 100644 public/apps/webapp-schulverwaltung/911.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-2FIH3FGB.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-2IXEFCAH.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-2JTOMQIG.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-33NXTXD7.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-3AROKYRB.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-3V5HHMRH.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-62KHQOYN.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-67IXHFR4.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-73JV7FSB.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-AJF2ECIH.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-BTBVZYMS.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-DMYOU5OM.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-DXYHDL5D.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-FTRAQKUW.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-GI4AZI25.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-HHGALFFJ.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-IA3IH2MK.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-JX2LWS6H.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-KLXFX6SJ.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-LO5XSJLW.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-MVTCHCDH.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-N6FFLIGM.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-Q5U6YZUT.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-QHPTZGVN.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-QR6JUXUH.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-QUM6674D.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-RC3HL7KB.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-RWNJF4OZ.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-T7QWSMKM.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-TIZKDD7Y.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-TK3HGFHH.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-TNMAZX5O.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-UMTH7ATO.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-V34B6ZOV.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-VFMGCCGG.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-VSATLVUN.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-VTGXNMZL.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-WGARCXGP.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-WN7VWSJW.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-X2BR3YJG.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-Y4QYVF5K.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-ZK2M6PDV.js delete mode 100644 public/apps/webapp-schulverwaltung/common.js rename public/apps/webapp-schulverwaltung/{ => media}/roboto-v30-latin-ext_latin-100.woff (100%) rename public/apps/webapp-schulverwaltung/{ => media}/roboto-v30-latin-ext_latin-300.woff (100%) rename public/apps/webapp-schulverwaltung/{ => media}/roboto-v30-latin-ext_latin-400.woff (100%) rename public/apps/webapp-schulverwaltung/{ => media}/roboto-v30-latin-ext_latin-500.woff (100%) rename public/apps/webapp-schulverwaltung/{ => media}/roboto-v30-latin-ext_latin-700.woff (100%) delete mode 100644 public/apps/webapp-schulverwaltung/runtime.js diff --git a/public/apps/webapp-schulverwaltung/0.js b/public/apps/webapp-schulverwaltung/0.js deleted file mode 100644 index 7b7edf6b..00000000 --- a/public/apps/webapp-schulverwaltung/0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[0],{2e3:(Z,S,o)=>{o.r(S),o.d(S,{EVENTS_ROUTES:()=>wn});var P=o(6407),l=o(3955),u=o(177),j=o(2239),E=o(1517),T=o(7887),m=o(5539),t=o(4438);const b=n=>[n,"tests"];function ft(n,a){if(1&n&&(t.j41(0,"span"),t.EFF(1),t.nI1(2,"date"),t.nrm(3,"wbr"),t.EFF(4),t.nI1(5,"date"),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.SpI("",t.i5U(2,2,e.event.dateFrom,"dd.MM.yyyy"),"\u2013"),t.R7$(3),t.JRh(t.i5U(5,5,e.event.dateTo,"dd.MM.yyyy"))}}function I(n,a){if(1&n&&(t.j41(0,"a",10)(1,"i",11),t.EFF(2,"arrow_right_alt"),t.k0s(),t.j41(3,"span",12),t.EFF(4),t.k0s()()),2&n){const e=t.XpG(2);t.Y8G("routerLink",t.eq3(2,b,e.event.id)),t.R7$(4),t.JRh(e.event.evaluationText)}}function f(n,a){if(1&n&&(t.j41(0,"a",13)(1,"i",11),t.EFF(2,"arrow_right_alt"),t.k0s(),t.j41(3,"span",12),t.EFF(4),t.k0s()()),2&n){const e=t.XpG(2);t.Y8G("href",e.event.evaluationLink,t.B4B),t.R7$(4),t.SpI("",e.event.evaluationText," ")}}function L(n,a){if(1&n&&(t.j41(0,"div",7),t.DNE(1,I,5,4,"a",8)(2,f,5,2,"a",9),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.Y8G("ngIf",!e.event.evaluationLink),t.R7$(),t.Y8G("ngIf",e.event.evaluationLink)}}let _t=(()=>{class n{constructor(){this.withRatings=!0}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["bkd-events-list-entry"]],inputs:{event:"event",withRatings:"withRatings"},standalone:!0,features:[t.aNF],decls:11,vars:8,consts:[[1,"designation"],[3,"href"],[1,"date"],[4,"ngIf"],[1,"registrations"],[1,"registrations-label"],["class","rating",4,"ngIf"],[1,"rating"],["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"]],template:function(s,i){1&s&&(t.j41(0,"div",0)(1,"a",1),t.EFF(2),t.k0s()(),t.j41(3,"div",2),t.DNE(4,ft,6,8,"span",3),t.k0s(),t.j41(5,"div",4),t.EFF(6),t.j41(7,"span",5),t.EFF(8),t.nI1(9,"translate"),t.k0s()(),t.DNE(10,L,3,2,"div",6)),2&s&&(t.R7$(),t.Y8G("href",i.event.detailLink,t.B4B),t.R7$(),t.JRh(i.event.designation),t.R7$(2),t.Y8G("ngIf",i.event.dateFrom&&i.event.dateTo),t.R7$(2),t.SpI(" ",i.event.studentCount," "),t.R7$(2),t.JRh(t.bMT(9,6,1===i.event.studentCount?"events.registration":"events.registrations")),t.R7$(2),t.Y8G("ngIf",i.withRatings&&i.event.evaluationText))},dependencies:[u.bT,m.Wk,u.vh,l.h,l.D9],styles:['[_nghost-%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){.registrations-label[_ngcontent-%COMP%]{display:inline}.designation[_ngcontent-%COMP%], .date[_ngcontent-%COMP%], .registrations[_ngcontent-%COMP%]{padding-right:0}[_nghost-%COMP%]{grid-template-areas:"designation" "date" "registrations" "rating";grid-template-columns:1fr}}']})}return n})();var bt=o(4903),y=o(4412),p=o(6354),C=o(4668),v=o(5558),R=o(4572),G=o(7673),X=o(2809),A=o(3382),vt=o(4297),Tt=o(8358);function q(n){const{HasEvaluationStarted:a,EvaluationUntil:e,HasTestGrading:s}=n.EvaluationStatusRef;if(!0===a&&(14030===n.StatusId||10350===n.StatusId))return{value:$.Rating};if(!0===a&&!1===s){if(e)return{value:$.RatingUntil};if(10300===n.StatusId)return{value:$.IntermediateRating}}return!1===a&&!0===s&&10260!==n.StatusId&&10250!==n.StatusId?{value:$.Tests}:!0===a&&!0===s?e?{value:$.Tests,label:$.RatingUntil}:{value:$.Tests,label:$.IntermediateRating}:null}function kt(n){return!0===n.EvaluationStatusRef.HasEvaluationStarted}function tt(n){const a=n.Classes?n.Classes.map(e=>e.Number).join(", "):null;return a?n.Designation+", "+a:n.Designation}var V=o(5449),Et=o(5400),Rt=o(9483),et=o(2673),$=function(n){return n.Rating="rating",n.RatingUntil="rating-until",n.IntermediateRating="intermediate-rating",n.Tests="add-tests",n}($||{});let Y=(()=>{class n{constructor(e,s,i,r,d,c){this.coursesRestService=e,this.eventsRestService=s,this.studyClassRestService=i,this.loadingService=r,this.translate=d,this.settings=c,this.loading$=this.loadingService.loading$,this.searchSubject$=new y.t(""),this.search$=this.searchSubject$.asObservable(),this.roles$=new y.t(null),this.isClassTeacher$=this.roles$.pipe((0,p.T)(h=>(0,vt.h)(h,"ClassTeacherRole")),(0,C.t)(1)),this.withStudyCourses$=new y.t(!1),this.unratedCourses$=this.roles$.pipe((0,v.n)(this.loadUnratedCourses.bind(this)),(0,C.t)(1)),this.studyCourses$=this.withStudyCourses$.pipe((0,v.n)(this.loadStudyCourses.bind(this)),(0,C.t)(1)),this.formativeAssessments$=this.isClassTeacher$.pipe((0,v.n)(this.loadFormativeAssessments.bind(this)),(0,C.t)(1)),this.studyClasses$=this.isClassTeacher$.pipe((0,v.n)(this.loadStudyClasses.bind(this)),(0,C.t)(1)),this.events$=this.getEvents().pipe((0,C.t)(1)),this.filteredEvents$=(0,R.z)([this.events$,this.search$]).pipe((0,p.T)((0,A.i)(Tt.x)))}setSearch(e){this.searchSubject$.next(e)}setRoles(e){this.roles$.next(e)}setWithStudyCourses(e){this.withStudyCourses$.next(e)}getEntries(e=!1){return this.filteredEvents$.pipe((0,p.T)(s=>e?s.filter(i=>i.evaluationText):s))}getEvents(){return this.loadingService.load((0,R.z)([this.unratedCourses$,this.studyCourses$,this.formativeAssessments$,this.studyClasses$]),{stopOnFirstValue:!0}).pipe((0,p.T)((0,A.i)(this.createAndSortEvents.bind(this))))}loadUnratedCourses(e){return this.coursesRestService.getExpandedCourses(e).pipe((0,p.T)(s=>s.filter(i=>!function Ft(n){return!0===n.EvaluationStatusRef.HasReviewOfEvaluationStarted&&!!n.FinalGrades?.length}(i))))}loadStudyCourses(e){return e?this.eventsRestService.getStudyCourseEvents():(0,G.of)([])}loadFormativeAssessments(e){return e?this.studyClassRestService.getActiveFormativeAssessments():(0,G.of)([])}loadStudyClasses(e){return e?this.studyClassRestService.getActive():(0,G.of)([])}createAndSortEvents(e,s,i,r){const d=r.filter(c=>!i.map(h=>h.Id).includes(c.Id));return[...this.createFromCourses(e),...this.createFromStudyCourses(s),...this.createFromAssessments(i),...this.createFromStudyClasses(d)].sort((c,h)=>c.designation.localeCompare(h.designation))}createFromCourses(e){return e.map(s=>{const i=q(s);return{id:s.Id,designation:tt(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)}})}createFromStudyCourses(e){return e.map(s=>({id:s.Id,designation:s.Designation,detailLink:this.buildLink(s.Id,"eventdetail"),studentCount:s.StudentCount,state:null}))}createFromAssessments(e){return this.createFromStudyClasses(e).map(i=>({...i,state:$.Rating,evaluationText:this.translate.instant("events.state.rating"),evaluationLink:this.buildLink(i.id,"evaluation")}))}createFromStudyClasses(e){return e.map(s=>({id:s.Id,designation:s.Number,detailLink:this.buildLink(s.Id,"eventdetail"),studentCount:s.StudentCount,state:null}))}getEvaluationText(e,s){const i=e?.label||e?.value;return i?this.translate.instant(`events.state.${i}`)+(i===$.RatingUntil?` ${s?(0,bt.GP)(s,"dd.MM.yyyy"):""}`:""):""}getEvaluationLink(e,s){return e&&e!==$.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.KVO(V.I),t.KVO(Et.z),t.KVO(Rt.r),t.KVO(et.U),t.KVO(l.c$),t.KVO(X.yy))};static#e=this.\u0275prov=t.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Mt=o(4599);const xt=n=>({events:n});function St(n,a){1&n&&(t.j41(0,"div",12),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"events.rating")," "))}function Pt(n,a){if(1&n&&t.nrm(0,"bkd-events-list-entry",13),2&n){const e=a.$implicit,s=t.XpG(4);t.Y8G("event",e)("withRatings",s.withRatings)}}function jt(n,a){if(1&n&&(t.qex(0),t.j41(1,"div",6)(2,"div",7),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"div",8),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.j41(8,"div",9),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.DNE(11,St,3,3,"div",10),t.k0s(),t.DNE(12,Pt,1,2,"bkd-events-list-entry",11),t.bVm()),2&n){const e=t.XpG(2).bkdLet,s=t.XpG();t.R7$(3),t.JRh(t.bMT(4,5,"events.designation")),t.R7$(3),t.JRh(t.bMT(7,7,"events.date")),t.R7$(3),t.SpI(" ",t.bMT(10,9,"events.registrations")," "),t.R7$(2),t.Y8G("ngIf",s.withRatings),t.R7$(),t.Y8G("ngForOf",e.events)}}function Ot(n,a){1&n&&(t.j41(0,"p",14),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.JRh(t.bMT(2,1,"events.no-events")))}function Dt(n,a){if(1&n&&(t.qex(0),t.DNE(1,jt,13,11,"ng-container",5)(2,Ot,3,3,"ng-template",null,1,t.C5r),t.bVm()),2&n){const e=t.sdS(3),s=t.XpG().bkdLet;t.R7$(),t.Y8G("ngIf",(null==s.events?null:s.events.length)>0)("ngIfElse",e)}}function Nt(n,a){1&n&&t.nrm(0,"bkd-spinner")}function wt(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",3)(1,"bkd-resettable-input",4),t.nI1(2,"async"),t.nI1(3,"translate"),t.nI1(4,"translate"),t.bIt("valueChange",function(i){t.eBV(e);const r=t.XpG();return t.Njj(r.state.setSearch(i))}),t.k0s(),t.DNE(5,Dt,4,2,"ng-container",5),t.nI1(6,"async"),t.DNE(7,Nt,1,0,"ng-template",null,0,t.C5r),t.k0s()}if(2&n){const e=a.bkdLet,s=t.sdS(8),i=t.XpG();t.R7$(),t.Y8G("value",t.bMT(2,6,i.state.search$))("placeholder",t.bMT(3,8,"events.search-by"))("label",t.bMT(4,10,"events.search"))("disabled",!e.events),t.R7$(4),t.Y8G("ngIf",!1===t.bMT(6,12,i.state.loading$))("ngIfElse",s)}}let nt=(()=>{class n{constructor(e,s){this.state=e,this.storage=s,this.withStudyCourses=!1,this.withRatings=!0,this.state.setRoles(this.storage.getPayload()?.roles??null)}ngOnChanges(e){e.withStudyCourses&&this.state.setWithStudyCourses(e.withStudyCourses.currentValue)}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(Y),t.rXU(Mt.n))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["bkd-events-list"]],inputs:{withStudyCourses:"withStudyCourses",withRatings:"withRatings"},standalone:!0,features:[t.OA$,t.aNF],decls:2,vars:5,consts:[["loading",""],["noEvents",""],["class","bkd-container",4,"bkdLet"],[1,"bkd-container"],[1,"d-flex","search",3,"valueChange","value","placeholder","label","disabled"],[4,"ngIf","ngIfElse"],[1,"event-header"],[1,"designation"],[1,"date"],[1,"registrations"],["class","rating",4,"ngIf"],[3,"event","withRatings",4,"ngFor","ngForOf"],[1,"rating"],[3,"event","withRatings"],[1,"mt-3"]],template:function(s,i){1&s&&(t.DNE(0,wt,9,14,"div",2),t.nI1(1,"async")),2&s&&t.Y8G("bkdLet",t.eq3(3,xt,t.bMT(1,1,i.state.getEntries(i.withRatings))))},dependencies:[T.N,j.B,u.bT,u.pM,E.t,u.Jj,l.h,l.D9,_t],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}@media (max-width: 575.98px){.event-header[_ngcontent-%COMP%]{display:none}}']})}return n})(),At=(()=>{class n{constructor(){}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["bkd-events-current"]],standalone:!0,features:[t.aNF],decls:4,vars:5,consts:[[3,"withStudyCourses","withRatings"]],template:function(s,i){1&s&&(t.j41(0,"h1"),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.nrm(3,"bkd-events-list",0)),2&s&&(t.R7$(),t.JRh(t.bMT(2,3,"events.current.title")),t.R7$(2),t.Y8G("withStudyCourses",!0)("withRatings",!1))},dependencies:[nt,l.h,l.D9]})}return n})(),Vt=(()=>{class n{constructor(){}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["bkd-events-tests"]],standalone:!0,features:[t.aNF],decls:4,vars:4,consts:[[3,"withRatings"]],template:function(s,i){1&s&&(t.j41(0,"h1"),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.nrm(3,"bkd-events-list",0)),2&s&&(t.R7$(),t.JRh(t.bMT(2,2,"events.title")),t.R7$(2),t.Y8G("withRatings",!0))},dependencies:[nt,l.h,l.D9]})}return n})();var Ut=o(9366);let Lt=(()=>{class n{constructor(){}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["bkd-events"]],standalone:!0,features:[t.Jv_([Y,Ut.s]),t.aNF],decls:1,vars:0,template:function(s,i){1&s&&t.nrm(0,"router-outlet")},dependencies:[m.n3]})}return n})();var F=o(3294),st=o(980),g=o(9417),O=o(1324),Xt=o(1195),D=o(1413),B=o(6977),Yt=o(1964),N=o(8156);function Bt(n){return a=>{const e=Number(a.value);return e<=n?{greaterThan:{value:e,greaterThanValue:n}}:null}}var Jt=o(3460),Ht=o(977),it=o(2771),at=o(7786),Kt=o(2816),Wt=o(8810),J=o(5964),M=o(6697),zt=o(9437),rt=o(9736);function ot(n){return n.map(({finalGrade:a})=>a).filter(Qt)}function Qt(n){return null!==n}function qt(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 te(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:ee(s),finalGradeId:s.GradeId,freeHandGrade:i?Number(i.Grade):null,canGrade:s.CanGrade}:null}function ee(n){return 0===n.AverageTestResult?null:n.AverageTestResult}function dt(n,a){return n===a?0:ne.Id!==n?.Id),n].filter(e=>null!=e)}function oe({id:n,selectedGradeId:a},e){return e.map(s=>s.Id!==n?s:{...s,GradeId:a})}var k=o(7113);function de(n,a){switch(a.type){case"reset":return a.payload;case"updateResult":return n?{...n,Tests:(0,k.C7)(a.payload.testResult,n.Tests||[],a.payload.ignore),Gradings:a.payload.grading?ct(a.payload.grading,n.Gradings||[]):n.Gradings}:null;case"deleteResult":return n?{...n,Tests:(0,k.tj)(a.payload.testId,a.payload.studentId,n.Tests||[]),Gradings:a.payload.grading?ct(a.payload.grading,n.Gradings||[]):n.Gradings||[]}:null;case"toggle-test-state":return n?{...n,Tests:(0,k.p6)(a.payload,n.Tests||[])}:null;case"final-grade-overwritten":return n?{...n,Gradings:oe({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,k.xk)(a.payload,n.Tests||[])}:null;default:return n}}var le=o(1763),ce=o(4456),ue=o(6952),pe=o(1626);let ge=(()=>{class n extends ue.G{constructor(e,s){super(e,s,ce.NL,"Gradings")}updateGrade(e,s){return this.http.put(`${this.baseUrl}/${e}`,{GradeId:s}).pipe((0,p.T)(()=>e))}static#t=this.\u0275fac=function(s){return new(s||n)(t.KVO(pe.Qq),t.KVO(X.yy))};static#e=this.\u0275prov=t.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var he=o(4814);const ut={onlyMine:!1,hidePublished:!1};let x=(()=>{class n{constructor(e,s,i,r,d){this.coursesRestService=e,this.gradingScalesRestService=s,this.gradingsRestService=i,this.loadingService=r,this.sortService=d,this.action$=new it.m(1),this.loading$=this.loadingService.loading$,this._courseId$=new it.m(1),this.courseId$=this._courseId$.asObservable(),this.fetchedCourse$=this._courseId$.pipe((0,v.n)(c=>this.loadingService.load(this.coursesRestService.getExpandedCourse(c))),(0,C.t)(1)),this.course$=(0,at.h)(this.action$,this.fetchedCourse$.pipe((0,J.p)(H.TM),(0,p.T)(c=>({type:"reset",payload:c})))).pipe((0,Kt.S)(de,null),(0,J.p)(H.TM),(0,C.t)(1)),this.tests$=this.course$.pipe((0,p.T)(c=>c.Tests||[]),(0,p.T)(k.my)),this.hasTests$=this.tests$.pipe((0,p.T)(c=>c.length>0)),this.filterSubject$=new y.t(ut),this.filter$=this.filterSubject$.asObservable(),this.expandedHeader$=new y.t(!1),this.filteredTests$=(0,R.z)([this.tests$,this.filter$]).pipe((0,p.T)(([c,h])=>c.filter(_=>(!h.onlyMine||_.IsOwner)&&(!h.hidePublished||!_.IsPublished)))),this.sorting$=this.sortService.sorting$,this.studentGrades$=(0,R.z)([this.course$,this.filteredTests$,this.sorting$]).pipe((0,p.T)((0,A.i)(this.toStudentGrades.bind(this)))),this.canSetFinalGrade$=this.course$.pipe((0,p.T)(kt)),this.gradingScaleIds$=this.course$.pipe((0,p.T)(c=>(0,Jt.A)([...(c.Tests??[]).map(h=>h.GradingScaleId),c.GradingScaleId]).filter(H.TM)),(0,F.F)(Ht.A),(0,C.t)(1)),this.gradingScales$=this.gradingScaleIds$.pipe((0,v.n)(c=>this.gradingScalesRestService.getGradingScales(c)),(0,C.t)(1)),this.UNDEFINED_GRADINGSCALE_ID=-1,this.gradingScalesOptions$=this.gradingScales$.pipe((0,p.T)(c=>c.map(h=>({id:h?.Id||this.UNDEFINED_GRADINGSCALE_ID,options:h?.Grades.map(U=>({Key:U.Id,Value:U.Designation}))||[]})).reduce((h,_)=>({...h,[_.id]:_.options}),{})),(0,C.t)(1)),this.meanOfStudentGradesForCourse$=this.studentGrades$.pipe((0,p.T)(c=>function ae(n){const a=n.map(e=>e.average).filter(e=>null!=e&&0!==e).map(Number);return(0,rt.G)(a)}(ot(c)))),this.meanOfFinalGradesForCourse$=(0,R.z)([this.gradingScalesOptions$,this.studentGrades$]).pipe((0,v.n)((0,A.i)(this.meanOfOverwrittenGradesForCourse.bind(this))))}setCourseId(e){this._courseId$.next(e)}setFilter(e){this.filterSubject$.next(e)}gradingOptionsForTest$(e){return this.gradingOptions$(e.GradingScaleId)}gradingOptionsForCourse$(){return this.course$.pipe((0,v.n)(e=>this.gradingOptions$(e.GradingScaleId)))}toStudentGrades(e,s=[],i){return function Zt(n,a,e,s){return n?.map(i=>({student:i,finalGrade:te(i,e,s),grades:qt(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*dt(e.finalGrade.finalGradeId,s.finalGrade.finalGradeId):-1*i;case"TestsMean":return e.finalGrade?.average&&s.finalGrade?.average?i*dt(e.finalGrade.average,s.finalGrade.average):-1*i}return i*((n,a,e)=>{const s=a.grades.filter(lt).find(r=>r.test.Id===n.Id),i=e.grades.filter(lt).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)}optimisticallyUpdateGrade(e){return this.course$.pipe((0,M.s)(1),(0,p.T)(s=>{const{originalResult:i,updatedResult:r}=this.buildOptimisticResultUpdate(s,e);return this.updateTestResult(r,null),i}))}saveGrade(e,s){this.course$.pipe((0,M.s)(1),(0,v.n)(i=>this.coursesRestService.updateTestResult(i.Id,e).pipe((0,zt.W)(r=>(s&&this.updateTestResult({...s},null),(0,Wt.$)(()=>r)))))).subscribe(({testResult:i,grading:r})=>this.updateOrDeleteTestResult(e.testId,e.studentId,i,r,"gradeId"in e?"grade":"points"))}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}))}buildOptimisticResultUpdate(e,s){const i=(0,k.tb)(e,s.testId,s.studentId),r=i?{...i}:{Id:"",TestId:s.testId,StudentId:s.studentId,CourseRegistrationId:0,GradeId:null,GradeValue:null,GradeDesignation:null,Points:null};return r.GradeId="gradeId"in s?s.gradeId:i?.GradeId??null,r.Points="points"in s?s.points:i?.Points??null,{originalResult:i,updatedResult:r}}updateOrDeleteTestResult(e,s,i,r,d){i?this.updateTestResult(i,r,d):this.deleteTestResult(e,s,r)}updateTestResult(e,s,i){this.action$.next({type:"updateResult",payload:{testResult:e,grading:s??null,ignore:i}})}deleteTestResult(e,s,i){this.action$.next({type:"deleteResult",payload:{testId:e,studentId:s,grading:i}})}toggleTestPublishedState(e){this.action$.next({type:"toggle-test-state",payload:e})}gradingOptions$(e){return null===e?(0,G.of)(null):this.gradingScalesOptions$.pipe((0,p.T)(s=>s[e]),(0,C.t)(1))}meanOfOverwrittenGradesForCourse(e,s){return this.course$.pipe((0,p.T)(i=>{if(null===i.GradingScaleId||void 0===e[i.GradingScaleId])return null;const r=e[i.GradingScaleId];return function re(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,rt.G)([...s,...e])}(ot(s),r)}))}static#t=this.\u0275fac=function(s){return new(s||n)(t.KVO(V.I),t.KVO(le.T),t.KVO(ge),t.KVO(et.U),t.KVO(he.a))};static#e=this.\u0275prov=t.jDH({token:n,factory:n.\u0275fac})}return n})();const me=n=>({formGroup:n}),fe=n=>["/events",n,"tests"];function _e(n,a){if(1&n&&(t.j41(0,"div",31),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const e=a.$implicit;t.R7$(),t.SpI(" ",t.i5U(2,1,"global.validation-errors."+e.error,e.params)," ")}}function be(n,a){if(1&n&&(t.j41(0,"div",31),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const e=a.$implicit;t.R7$(),t.SpI(" ",t.i5U(2,1,"global.validation-errors."+e.error,e.params)," ")}}function ve(n,a){if(1&n&&(t.j41(0,"div",31),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const e=a.$implicit;t.R7$(),t.SpI(" ",t.i5U(2,1,"global.validation-errors."+e.error,e.params)," ")}}function Te(n,a){if(1&n&&(t.j41(0,"div",31),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const e=a.$implicit;t.R7$(),t.SpI(" ",t.i5U(2,1,"global.validation-errors."+e.error,e.params)," ")}}function Ie(n,a){if(1&n&&(t.j41(0,"div",31),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const e=a.$implicit;t.R7$(),t.SpI(" ",t.i5U(2,1,"global.validation-errors."+e.error,e.params)," ")}}function Ce(n,a){if(1&n&&(t.qex(0),t.j41(1,"div",32)(2,"div",33)(3,"div",17)(4,"label",34),t.EFF(5),t.nI1(6,"translate"),t.k0s(),t.j41(7,"div",35),t.nrm(8,"input",36),t.nI1(9,"async"),t.DNE(10,Te,3,4,"div",8),t.nI1(11,"async"),t.k0s()()(),t.j41(12,"div",33)(13,"div",17)(14,"label",37),t.EFF(15),t.nI1(16,"translate"),t.k0s(),t.j41(17,"div",35),t.nrm(18,"input",38),t.nI1(19,"async"),t.DNE(20,Ie,3,4,"div",8),t.nI1(21,"async"),t.k0s()()()(),t.j41(22,"div",39),t.By9(),t.j41(23,"math")(24,"mi"),t.EFF(25),t.nI1(26,"translate"),t.k0s(),t.j41(27,"mo"),t.EFF(28,"="),t.k0s(),t.j41(29,"mfrac")(30,"mrow")(31,"mi"),t.EFF(32),t.nI1(33,"translate"),t.k0s(),t.j41(34,"mo"),t.EFF(35,"\xd7"),t.k0s(),t.j41(36,"mn"),t.EFF(37,"5"),t.k0s()(),t.j41(38,"mi"),t.EFF(39),t.nI1(40,"translate"),t.k0s()(),t.j41(41,"mo"),t.EFF(42,"+"),t.k0s(),t.j41(43,"mn"),t.EFF(44,"1"),t.k0s()()(),t.bVm()),2&n){let e,s;const i=t.XpG(3);t.R7$(5),t.JRh(t.bMT(6,11,"tests.form.max-points")),t.R7$(3),t.AVh("is-invalid",(null==(e=t.bMT(9,13,i.maxPointsErrors$))?null:e.length)||!1),t.R7$(2),t.Y8G("ngForOf",t.bMT(11,15,i.maxPointsErrors$)),t.R7$(5),t.JRh(t.bMT(16,17,"tests.form.max-points-adjusted")),t.R7$(3),t.AVh("is-invalid",(null==(s=t.bMT(19,19,i.maxPointsAdjustedErrors$))?null:s.length)||!1),t.R7$(2),t.Y8G("ngForOf",t.bMT(21,21,i.maxPointsAdjustedErrors$)),t.R7$(5),t.SpI(" ",t.bMT(26,23,"tests.form.math.grade")," "),t.R7$(7),t.SpI(" ",t.bMT(33,25,"tests.form.math.points")," "),t.R7$(7),t.JRh(t.bMT(40,27,"tests.form.math.max-points"))}}function $e(n,a){1&n&&(t.j41(0,"div",40)(1,"span",41),t.EFF(2,"Loading..."),t.k0s()())}function Ge(n,a){if(1&n){const e=t.RV6();t.j41(0,"form",3),t.bIt("ngSubmit",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.onSubmit())}),t.j41(1,"div",4)(2,"div",5)(3,"label",6),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.nrm(6,"input",7),t.nI1(7,"async"),t.nI1(8,"translate"),t.DNE(9,_e,3,4,"div",8),t.nI1(10,"async"),t.k0s(),t.j41(11,"div",9)(12,"label",10),t.EFF(13),t.nI1(14,"translate"),t.k0s(),t.j41(15,"div",11)(16,"span",12)(17,"i",13),t.EFF(18,"calendar_today"),t.k0s()(),t.j41(19,"input",14,0),t.nI1(21,"async"),t.nI1(22,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.sdS(20);return t.Njj(i.toggle())}),t.k0s(),t.DNE(23,be,3,4,"div",8),t.nI1(24,"async"),t.k0s()()(),t.j41(25,"div",15)(26,"label",16),t.EFF(27),t.nI1(28,"translate"),t.k0s(),t.j41(29,"div",5)(30,"div",17)(31,"label",18),t.EFF(32),t.nI1(33,"translate"),t.k0s(),t.j41(34,"div",19),t.nrm(35,"input",20),t.nI1(36,"async"),t.DNE(37,ve,3,4,"div",8),t.nI1(38,"async"),t.k0s()()()(),t.j41(39,"div")(40,"label",16),t.EFF(41),t.nI1(42,"translate"),t.k0s(),t.j41(43,"div",21),t.nrm(44,"input",22),t.j41(45,"label",23),t.EFF(46),t.nI1(47,"translate"),t.k0s()(),t.j41(48,"div",21),t.nrm(49,"input",24),t.j41(50,"label",25),t.EFF(51),t.nI1(52,"translate"),t.k0s()(),t.DNE(53,Ce,45,29,"ng-container",26),t.k0s(),t.j41(54,"div",27)(55,"button",28),t.nI1(56,"async"),t.EFF(57),t.nI1(58,"translate"),t.k0s(),t.j41(59,"button",29),t.EFF(60),t.nI1(61,"translate"),t.DNE(62,$e,3,0,"div",30),t.k0s()()()}if(2&n){let e,s,i;const r=t.XpG().bkdLet,d=t.XpG();t.Y8G("formGroup",r.formGroup),t.R7$(4),t.JRh(t.bMT(5,29,"tests.form.designation")),t.R7$(2),t.AVh("is-invalid",(null==(e=t.bMT(7,31,d.designationErrors$))?null:e.length)||!1),t.Y8G("placeholder",t.bMT(8,33,"tests.form.designation-placeholder")),t.R7$(3),t.Y8G("ngForOf",t.bMT(10,35,d.designationErrors$)),t.R7$(4),t.JRh(t.bMT(14,37,"tests.form.date")),t.R7$(3),t.Y8G("id",d.componentId),t.R7$(3),t.AVh("is-invalid",(null==(s=t.bMT(21,39,d.dateErrors$))?null:s.length)||!1),t.Y8G("placeholder",t.bMT(22,41,"shared.date-select.default-placeholder")),t.R7$(4),t.Y8G("ngForOf",t.bMT(24,43,d.dateErrors$)),t.R7$(4),t.JRh(t.bMT(28,45,"tests.form.weight")),t.R7$(5),t.JRh(t.bMT(33,47,"tests.form.factor")),t.R7$(3),t.AVh("is-invalid",(null==(i=t.bMT(36,49,d.weightErrors$))?null:i.length)||!1),t.R7$(2),t.Y8G("ngForOf",t.bMT(38,51,d.weightErrors$)),t.R7$(4),t.JRh(t.bMT(42,53,"tests.form.grading-type")),t.R7$(3),t.Y8G("value",!1),t.R7$(2),t.JRh(t.bMT(47,55,"tests.form.grades")),t.R7$(3),t.Y8G("value",!0),t.R7$(2),t.JRh(t.bMT(52,57,"tests.form.points")),t.R7$(2),t.Y8G("ngIf",r.formGroup.get("isPointGrading").value),t.R7$(2),t.Y8G("disabled",d.saving)("routerLink",t.eq3(65,fe,t.bMT(56,59,d.courseId$))),t.R7$(2),t.SpI(" ",t.bMT(58,61,"tests.form.cancel")," "),t.R7$(2),t.Y8G("disabled",d.saving),t.R7$(),t.SpI(" ",t.bMT(61,63,"tests.form.save")," "),t.R7$(2),t.Y8G("ngIf",d.saving)}}function ye(n,a){if(1&n&&(t.qex(0),t.DNE(1,Ge,63,67,"form",2),t.bVm()),2&n){const e=a.bkdLet;t.R7$(),t.Y8G("ngIf",e.formGroup)}}let pt=(()=>{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.bkB,this.componentId=(0,Xt.A)("bkd-tests-edit-form"),this.formGroup=this.createFormGroup(),this.submitted$=new y.t(!1),this.destroy$=new D.B,this.designationErrors$=(0,N.v)((0,G.of)(this.formGroup),this.submitted$,"designation"),this.dateErrors$=(0,N.v)((0,G.of)(this.formGroup),this.submitted$,"date"),this.maxPointsErrors$=(0,N.v)((0,G.of)(this.formGroup),this.submitted$,"maxPoints"),this.maxPointsAdjustedErrors$=(0,N.v)((0,G.of)(this.formGroup),this.submitted$,"maxPointsAdjusted"),this.weightErrors$=(0,N.v)((0,G.of)(this.formGroup),this.submitted$,"weight"),this.courseId$=this.testStateService.courseId$}ngOnInit(){this.test&&this.setInitialValues(this.test),(0,N.IK)((0,G.of)(this.formGroup),"isPointGrading").pipe((0,B.Q)(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:["",g.k0.required],date:[null,g.k0.required],weight:[1,g.k0.compose([g.k0.required,Bt(0)])],isPointGrading:[!1],maxPoints:[{value:null,disabled:!0},g.k0.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.rXU(g.ze),t.rXU(l.c$),t.rXU(x))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["bkd-tests-edit-form"]],inputs:{test:"test",saving:"saving"},outputs:{save:"save"},standalone:!0,features:[t.Jv_([{provide:O.dn,useClass:O.Ae},{provide:O.tN,useClass:Yt.m}]),t.aNF],decls:1,vars:3,consts:[["dp","ngbDatepicker"],[4,"bkdLet"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"ngSubmit","formGroup"],[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,"click","placeholder"],[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.DNE(0,ye,2,1,"ng-container",1),2&s&&t.Y8G("bkdLet",t.eq3(1,me,i.formGroup))},dependencies:[T.N,u.bT,g.YN,g.qT,g.me,g.Q0,g.Fm,g.BC,g.cb,g.YS,g.VZ,g.zX,g.X1,g.j4,g.JD,u.pM,O.cw,m.Wk,u.Jj,l.h,l.D9],styles:["#factor[_ngcontent-%COMP%], #max-points[_ngcontent-%COMP%], #max-points-adjusted[_ngcontent-%COMP%]{width:5em}"]})}return n})();var gt=o(5889);const ke=(n,a)=>({courseId:n,saving:a});function Fe(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",1)(1,"bkd-tests-edit-form",2),t.bIt("save",function(i){t.eBV(e);const r=t.XpG();return t.Njj(r.save(i))}),t.k0s()()}if(2&n){const e=a.bkdLet;t.R7$(),t.Y8G("saving",e.saving)}}let Ee=(()=>{class n{constructor(e,s,i,r,d){this.route=e,this.courseService=s,this.toastService=i,this.translate=r,this.router=d,this.saving$=new y.t(!1),this.courseId$=this.route.paramMap.pipe((0,p.T)(c=>Number(c.get("id"))),(0,F.F)())}save(e){this.saving$.next(!0);const{designation:s,date:i,weight:r,isPointGrading:d,maxPoints:c,maxPointsAdjusted:h}=e;this.courseId$.pipe((0,v.n)(_=>this.courseService.add(_,i,s,r,d,c,h)),(0,st.j)(()=>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.rXU(m.nX),t.rXU(V.I),t.rXU(gt.f),t.rXU(l.c$),t.rXU(m.Ix))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["bkd-tests-add"]],standalone:!0,features:[t.aNF],decls:6,vars:11,consts:[["class","bkd-container bkd-container-limited",4,"bkdLet"],[1,"bkd-container","bkd-container-limited"],[3,"save","saving"]],template:function(s,i){1&s&&(t.j41(0,"h1"),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.DNE(3,Fe,2,1,"div",0),t.nI1(4,"async"),t.nI1(5,"async")),2&s&&(t.R7$(),t.JRh(t.bMT(2,2,"tests.add-title")),t.R7$(2),t.Y8G("bkdLet",t.l_i(8,ke,t.bMT(4,4,i.courseId$),t.bMT(5,6,i.saving$))))},dependencies:[T.N,pt,u.Jj,l.h,l.D9]})}return n})(),Re=(()=>{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.rXU(O.Lw))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["bkd-tests-delete"]],inputs:{test:"test"},standalone:!0,features:[t.aNF],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,"click","hidden"],[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.j41(0,"div",0)(1,"p",1),t.EFF(2),t.nI1(3,"translate"),t.k0s()(),t.j41(4,"div",2)(5,"button",3),t.bIt("click",function(){return i.activeModal.dismiss()}),t.j41(6,"span",4),t.EFF(7),t.nI1(8,"translate"),t.k0s()(),t.j41(9,"button",5),t.bIt("click",function(){return i.activeModal.close(i.canDeleteTest?i.test:null)}),t.j41(10,"span",6),t.EFF(11),t.nI1(12,"translate"),t.k0s()()()),2&s&&(t.R7$(2),t.SpI(" ",t.bMT(3,4,i.canDeleteTest?"tests.form.confirm":"tests.form.delete-not-allowed")," "),t.R7$(3),t.Y8G("hidden",!i.canDeleteTest),t.R7$(2),t.SpI(" ",t.bMT(8,6,"tests.dialog.no")," "),t.R7$(4),t.SpI(" ",t.bMT(12,8,i.canDeleteTest?"tests.dialog.yes":"tests.dialog.ok")," "))},dependencies:[l.h,l.D9]})}return n})();var ht=o(855);const Me=(n,a,e)=>({courseId:n,test:a,saving:e}),xe=n=>({test:n});function Se(n,a){if(1&n){const e=t.RV6();t.qex(0),t.j41(1,"div",4)(2,"h1"),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"button",5),t.bIt("click",function(){t.eBV(e);const i=t.XpG().bkdLet,r=t.XpG();return t.Njj(r.openDeleteModal(i.test))}),t.j41(6,"i",6),t.EFF(7,"delete"),t.k0s()()(),t.j41(8,"bkd-tests-edit-form",7),t.bIt("save",function(i){t.eBV(e);const r=t.XpG(2);return t.Njj(r.save(i))}),t.k0s(),t.bVm()}if(2&n){const e=t.XpG().bkdLet;t.R7$(3),t.SpI(" ",t.i5U(4,3,"tests.edit-title",t.eq3(6,xe,e.test.Designation))," "),t.R7$(5),t.Y8G("test",e.test)("saving",e.saving)}}function Pe(n,a){1&n&&t.nrm(0,"bkd-spinner")}function je(n,a){if(1&n&&(t.j41(0,"div",2),t.DNE(1,Se,9,8,"ng-container",3),t.nI1(2,"async"),t.DNE(3,Pe,1,0,"ng-template",null,0,t.C5r),t.k0s()),2&n){const e=t.sdS(4),s=t.XpG();t.R7$(),t.Y8G("ngIf",!1===t.bMT(2,2,s.state.loading$))("ngIfElse",e)}}let Oe=(()=>{class n{constructor(e,s,i,r,d,c,h){this.state=e,this.courseService=s,this.route=i,this.toastService=r,this.translate=d,this.router=c,this.modalService=h,this.saving$=new y.t(!1),this.testId$=this.route.paramMap.pipe((0,p.T)(_=>Number(_.get("testId"))),(0,F.F)()),this.test$=(0,R.z)([this.state.tests$,this.testId$]).pipe((0,p.T)(([_,w])=>_.find(U=>U.Id===w)))}openDeleteModal(e){const s=this.modalService.open(Re);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:d,maxPoints:c,maxPointsAdjusted:h}=e;(0,R.z)([this.state.courseId$,this.testId$]).pipe((0,M.s)(1),(0,v.n)(([_,w])=>this.courseService.update(_,w,s,i,r,d,c,h)),(0,st.j)(()=>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,M.s)(1)).subscribe(e=>this.router.navigate(["events",e,"tests"]))}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(x),t.rXU(V.I),t.rXU(m.nX),t.rXU(gt.f),t.rXU(l.c$),t.rXU(m.Ix),t.rXU(ht.y))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["bkd-tests-edit"]],standalone:!0,features:[t.aNF],decls:4,vars:11,consts:[["loading",""],["class","bkd-container bkd-container-limited",4,"bkdLet"],[1,"bkd-container","bkd-container-limited"],[4,"ngIf","ngIfElse"],[1,"d-flex","justify-content-between","align-items-center"],["type","button",1,"btn","btn-primary","btn-icon",3,"click"],[1,"material-icons"],[3,"save","test","saving"]],template:function(s,i){1&s&&(t.DNE(0,je,5,4,"div",1),t.nI1(1,"async"),t.nI1(2,"async"),t.nI1(3,"async")),2&s&&t.Y8G("bkdLet",t.sMw(7,Me,t.bMT(1,1,i.state.courseId$),t.bMT(2,3,i.test$),t.bMT(3,5,i.saving$)))},dependencies:[T.N,u.bT,pt,E.t,u.Jj,l.h,l.D9]})}return n})();var K=o(2619);const De=n=>({designation:n});let Ne=(()=>{class n{constructor(e){this.activeModal=e}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(O.Lw))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["bkd-publish-test"]],inputs:{test:"test"},standalone:!0,features:[t.aNF],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.j41(0,"div",0)(1,"p",1),t.EFF(2),t.nI1(3,"translate"),t.k0s()(),t.j41(4,"div",2)(5,"button",3),t.bIt("click",function(){return i.activeModal.dismiss()}),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.j41(8,"button",4),t.bIt("click",function(){return i.activeModal.close(!0)}),t.EFF(9),t.nI1(10,"translate"),t.k0s()()),2&s&&(t.R7$(2),t.SpI(" ",t.i5U(3,3,i.test.IsPublished?"tests.publishing.unpublish":"tests.publishing.publish",t.eq3(10,De,i.test.Designation))," "),t.R7$(4),t.SpI(" ",t.bMT(7,6,"tests.publishing.cancel")," "),t.R7$(3),t.SpI(" ",t.bMT(10,8,"tests.publishing.confirm")," "))},dependencies:[l.h,l.D9],encapsulation:2})}return n})();var W=o(9082),we=o(274),Ae=o(152);const Ve=n=>({maxPoints:n});function Ue(n,a){if(1&n&&(t.j41(0,"div",8),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const e=t.XpG(2);t.R7$(),t.SpI(" ",t.i5U(2,1,"global.validation-errors.invalidPoints",t.eq3(4,Ve,e.maxPoints))," ")}}function Le(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",5)(1,"input",6,0),t.bIt("ngModelChange",function(){t.eBV(e);const i=t.sdS(2),r=t.XpG();return t.Njj(r.onPointsChange(i.value))}),t.k0s(),t.DNE(3,Ue,3,6,"div",7),t.k0s()}if(2&n){const e=t.sdS(2),s=t.XpG();t.R7$(),t.AVh("is-invalid",e.errors),t.FS9("max",s.maxPoints),t.FS9("tabindex",s.tabIndex),t.Y8G("disabled",s.grade.test.IsPublished)("ngModel","grade"===s.grade.kind?s.grade.result.Points:null),t.R7$(2),t.Y8G("ngIf",e.errors)}}let Ye=(()=>{class n{constructor(e){this.state=e,this.maxPoints=0,this.pointsSubject$=new D.B,this.gradeSubject$=new D.B,this.gradingScaleDisabledSubject$=new y.t(!0),this.gradingScaleDisabled$=this.gradingScaleDisabledSubject$.asObservable(),this.destroy$=new D.B}ngOnInit(){this.gradingScaleDisabledSubject$.next(this.disableGradingScale()),this.maxPoints=function ie(n){return(n?.test?.MaxPointsAdjusted||n?.test?.MaxPoints)??0}(this.grade),this.initSave(this.pointsSubject$.pipe((0,J.p)(this.isValid.bind(this)),(0,p.T)(e=>({studentId:this.student.Id,testId:this.grade.test.Id,points:e?Number(e):null})))),this.initSave(this.gradeSubject$.pipe((0,p.T)(e=>({studentId:this.student.Id,testId:this.grade.test.Id,gradeId: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)}initSave(e){e.pipe((0,we.H)(s=>this.state.optimisticallyUpdateGrade(s).pipe((0,p.T)(i=>({params:s,originalResult:i})))),(0,Ae.B)(1250),(0,B.Q)(this.destroy$)).subscribe(({params:s,originalResult:i})=>this.state.saveGrade(s,i))}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)(t.rXU(x))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["bkd-grade"]],inputs:{grade:"grade",student:"student",tabIndex:"tabIndex",gradeOptions:"gradeOptions"},standalone:!0,features:[t.OA$,t.aNF],decls:5,vars:8,consts:[["points","ngModel"],[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,"valueChange","options","allowEmpty","value","disabled","tabindex"],[1,"point-input-container","me-2","me-md-3"],["type","number","step","0.01","min","0","data-testid","point-input",1,"form-control",3,"ngModelChange","max","disabled","tabindex","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.j41(0,"div",1)(1,"div",2),t.DNE(2,Le,4,7,"div",3),t.j41(3,"bkd-select",4),t.nI1(4,"async"),t.bIt("valueChange",function(d){return i.onGradeChange(d)}),t.k0s()()()),2&s&&(t.R7$(2),t.Y8G("ngIf",i.grade.test.IsPointGrading),t.R7$(),t.Y8G("options",i.gradeOptions)("allowEmpty",!0)("value","grade"===i.grade.kind?i.grade.result.GradeId:null)("disabled",t.bMT(4,6,i.gradingScaleDisabled$))("tabindex",i.tabIndex))},dependencies:[u.bT,g.YN,g.me,g.Q0,g.BC,g.VZ,g.zX,g.vS,K.w,u.Jj,l.h,l.D9],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})();function Be(n,a){if(1&n&&(t.j41(0,"span",3),t.EFF(1),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.JRh(e.calculatePointsAverage(e.test))}}let Je=(()=>{class n{constructor(e){this.locale=e}calculatePointsAverage(e){return this.safeAverage(e,2,k.zs)}calculateGradeAverage(e){return this.safeAverage(e,3,k.TG)}safeAverage(e,s,i){try{return(0,W.yk)(i(e),this.locale,s)}catch{return W.jr}}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(t.xe9))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["bkd-average-grades"]],inputs:{test:"test"},standalone:!0,features:[t.aNF],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.j41(0,"div",0),t.DNE(1,Be,2,1,"span",1),t.j41(2,"span",2),t.EFF(3),t.k0s()()),2&s&&(t.R7$(),t.Y8G("ngIf",i.test.IsPointGrading),t.R7$(2),t.JRh(i.calculateGradeAverage(i.test)))},dependencies:[u.bT],styles:[".average-points[_ngcontent-%COMP%]{min-width:4.5em}@media (min-width: 576px){.average-points[_ngcontent-%COMP%]{min-width:6em}}"]})}return n})(),He=(()=>{class n{constructor(){this.disabled=!1,this.gradeIdSelected=new t.bkB}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.VBU({type:n,selectors:[["bkd-grade-select"]],inputs:{options:"options",valueId:"valueId",gradeId:"gradeId",disabled:"disabled"},outputs:{gradeIdSelected:"gradeIdSelected"},standalone:!0,features:[t.aNF],decls:1,vars:4,consts:[["data-testid","grade-select",3,"valueChange","options","allowEmpty","value","disabled"]],template:function(s,i){1&s&&(t.j41(0,"bkd-select",0),t.bIt("valueChange",function(d){return i.onGradeChange(d)}),t.k0s()),2&s&&t.Y8G("options",i.options)("allowEmpty",!0)("value",i.valueId)("disabled",i.disabled)},dependencies:[K.w],styles:["[_nghost-%COMP%] select{min-width:13ch}"]})}return n})();const mt=(n,a)=>({"btn-primary":n,"btn-outline-secondary":a});let Ke=(()=>{class n{constructor(){this.filter=ut,this.filterChange=new t.bkB}showOnlyMine(){this.filterChange.next({...this.filter,onlyMine:!0})}showAll(){this.filterChange.next({...this.filter,onlyMine:!1})}onHidePublishedChange(e){const s=(e.target&&e.target instanceof HTMLInputElement&&e.target?.checked)??!1;this.filterChange.next({...this.filter,hidePublished:s})}static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["bkd-test-table-filter"]],inputs:{filter:"filter"},outputs:{filterChange:"filterChange"},standalone:!0,features:[t.aNF],decls:13,vars:18,consts:[[1,"only-mine-buttons"],["type","button",1,"btn","desktop",3,"click","ngClass"],["type","button",1,"btn","ms-2","desktop",3,"click","ngClass"],[1,"hide-published"],[1,"form-check"],["id","hide-published","type","checkbox",1,"form-check-input",3,"change","checked"],["for","hide-published",1,"form-check-label"]],template:function(s,i){1&s&&(t.j41(0,"div",0)(1,"button",1),t.bIt("click",function(){return i.showAll()}),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"button",2),t.bIt("click",function(){return i.showOnlyMine()}),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.j41(7,"div",3)(8,"div",4)(9,"input",5),t.bIt("change",function(d){return i.onHidePublishedChange(d)}),t.k0s(),t.j41(10,"label",6),t.EFF(11),t.nI1(12,"translate"),t.k0s()()()),2&s&&(t.R7$(),t.Y8G("ngClass",t.l_i(12,mt,!i.filter.onlyMine,i.filter.onlyMine)),t.R7$(),t.SpI(" ",t.bMT(3,6,"tests.all-tests")," "),t.R7$(2),t.Y8G("ngClass",t.l_i(15,mt,i.filter.onlyMine,!i.filter.onlyMine)),t.R7$(),t.SpI(" ",t.bMT(6,8,"tests.owned-tests")," "),t.R7$(4),t.Y8G("checked",i.filter.hidePublished),t.R7$(2),t.SpI(" ",t.bMT(12,10,"tests.hide-published")," "))},dependencies:[u.YU,g.YN,l.h,l.D9],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;height:100%}.only-mine-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;height:3.625rem}.hide-published[_ngcontent-%COMP%]{display:flex;align-items:center;height:2.375rem;margin-bottom:1rem}.hide-published[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:300}.hide-published[_ngcontent-%COMP%] .form-check[_ngcontent-%COMP%]{margin-bottom:0}"]})}return n})();var We=o(853);const ze=["*"];let Qe=(()=>{class n{static#t=this.\u0275fac=function(s){return new(s||n)};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["bkd-preserve-line-height"]],standalone:!0,features:[t.aNF],ngContentSelectors:ze,decls:3,vars:0,template:function(s,i){1&s&&(t.NAR(),t.j41(0,"div"),t.SdG(1),t.EFF(2,"\xa0"),t.k0s())},encapsulation:2})}return n})(),Ze=(()=>{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.rXU(l.c$,16))};static#e=this.\u0275pipe=t.EJ8({name:"testSummaryShort",type:n,pure:!0,standalone:!0})}return n})();const qe=n=>[n,"edit"];function tn(n,a){1&n&&(t.j41(0,"i",12),t.EFF(1,"edit"),t.k0s())}function en(n,a){if(1&n&&(t.j41(0,"div",8)(1,"div",9)(2,"bkd-preserve-line-height"),t.EFF(3),t.nI1(4,"date"),t.k0s(),t.j41(5,"a",10),t.DNE(6,tn,2,0,"i",11),t.k0s()(),t.j41(7,"bkd-preserve-line-height"),t.EFF(8),t.nI1(9,"testSummaryShort"),t.k0s(),t.j41(10,"bkd-preserve-line-height"),t.EFF(11),t.k0s()()),2&n){const e=t.XpG();t.R7$(3),t.JRh(t.i5U(4,5,e.test.Date,"dd.MM.yyyy")),t.R7$(2),t.Y8G("routerLink",t.eq3(10,qe,e.test.Id)),t.R7$(),t.Y8G("ngIf",e.test.IsOwner&&!1===e.test.IsPublished),t.R7$(2),t.SpI(" ",t.bMT(9,8,e.test)," "),t.R7$(3),t.JRh(e.test.Owner)}}function nn(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",13)(1,"a",14),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.unpublishTest())}),t.j41(3,"i",15),t.EFF(4,"lock"),t.k0s(),t.j41(5,"span"),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.j41(8,"bkd-caret",16),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.toggleHeader())}),t.k0s()()}if(2&n){const e=t.XpG();t.R7$(),t.FS9("title",t.bMT(2,3,"tests.edit")),t.R7$(5),t.JRh(t.bMT(7,5,"tests.published")),t.R7$(2),t.Y8G("expanded",e.expanded)}}function sn(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",13)(1,"a",17),t.nI1(2,"translate"),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.publishTest())}),t.j41(3,"i",15),t.EFF(4,"lock_open"),t.k0s(),t.j41(5,"span"),t.EFF(6),t.nI1(7,"translate"),t.k0s()(),t.j41(8,"bkd-caret",16),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.toggleHeader())}),t.k0s()()}if(2&n){const e=t.XpG();t.R7$(),t.FS9("title",t.bMT(2,3,"tests.publish")),t.R7$(5),t.JRh(t.bMT(7,5,"tests.not-published")),t.R7$(2),t.Y8G("expanded",e.expanded)}}let an=(()=>{class n{constructor(){this.toggle=new t.bkB,this.publish=new t.bkB,this.unpublish=new t.bkB}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.VBU({type:n,selectors:[["bkd-test-table-header"]],inputs:{test:"test",expanded:"expanded"},outputs:{toggle:"toggle",publish:"publish",unpublish:"unpublish"},standalone:!0,features:[t.aNF],decls:10,vars:6,consts:[["notPublished",""],[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"],[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,"click","title"],[1,"material-icons","me-1"],[1,"expand-mobile",3,"click","expanded"],[1,"d-flex","btn","btn-link","ps-0",3,"click","title"]],template:function(s,i){if(1&s){const r=t.RV6();t.j41(0,"div",1)(1,"div",2),t.bIt("click",function(){return t.eBV(r),t.Njj(i.toggleHeader())}),t.j41(2,"div",3),t.EFF(3),t.k0s(),t.nrm(4,"bkd-caret",4),t.k0s(),t.j41(5,"div",5),t.DNE(6,en,12,12,"div",6)(7,nn,9,7,"div",7)(8,sn,9,7,"ng-template",null,0,t.C5r),t.k0s()()}if(2&s){const r=t.sdS(9);t.R7$(2),t.Y8G("ngClass",i.expanded?"expanded":"collapsed"),t.R7$(),t.SpI(" ",i.test.Designation," "),t.R7$(),t.Y8G("expanded",i.expanded),t.R7$(2),t.Y8G("ngIf",i.expanded),t.R7$(),t.Y8G("ngIf",i.test.IsPublished)("ngIfElse",r)}},dependencies:[u.YU,We.h,u.bT,Qe,m.Wk,u.vh,l.h,l.D9,Ze],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})();const rn=(n,a,e,s,i)=>({tests:n,hasTests:a,studentGrades:e,filter:s,expanded:i}),z=n=>({selected:n}),on=n=>["student",n,"grades"],dn=n=>({"visible-on-mobile":n});function ln(n,a){if(1&n){const e=t.RV6();t.j41(0,"th",24)(1,"bkd-test-table-header",25),t.bIt("toggle",function(i){t.eBV(e);const r=t.XpG(2);return t.Njj(r.state.toggleHeader(i))})("publish",function(i){t.eBV(e);const r=t.XpG(2);return t.Njj(r.publish(i))})("unpublish",function(i){t.eBV(e);const r=t.XpG(2);return t.Njj(r.unpublish(i))}),t.k0s()()}if(2&n){const e=a.$implicit,s=t.XpG().bkdLet,i=t.XpG();t.Y8G("ngClass",e.Id===(null==i.selectedTest?null:i.selectedTest.Id)?"selected":""),t.R7$(),t.Y8G("test",e)("expanded",s.expanded)}}function cn(n,a){if(1&n){const e=t.RV6();t.j41(0,"th",26)(1,"bkd-test-table-header",25),t.bIt("toggle",function(i){t.eBV(e);const r=t.XpG(2);return t.Njj(r.state.toggleHeader(i))})("publish",function(i){t.eBV(e);const r=t.XpG(2);return t.Njj(r.publish(i))})("unpublish",function(i){t.eBV(e);const r=t.XpG(2);return t.Njj(r.unpublish(i))}),t.k0s()()}if(2&n){const e=a.$implicit,s=t.XpG().bkdLet,i=t.XpG();t.Y8G("ngClass",e.Id===(null==i.selectedTest?null:i.selectedTest.Id)?"selected":""),t.R7$(),t.Y8G("test",e)("expanded",s.expanded)}}function un(n,a){if(1&n){const e=t.RV6();t.j41(0,"div",30)(1,"span",29),t.bIt("click",function(){t.eBV(e);const i=t.XpG().$implicit,r=t.XpG(2);return t.Njj(r.state.sortBy(i))}),t.EFF(2),t.nI1(3,"translate"),t.k0s()()}2&n&&(t.R7$(2),t.SpI("",t.bMT(3,1,"tests.points")," "))}function pn(n,a){if(1&n){const e=t.RV6();t.j41(0,"th",27)(1,"div",10),t.DNE(2,un,4,3,"div",28),t.j41(3,"div",11)(4,"span",29),t.bIt("click",function(){const i=t.eBV(e).$implicit,r=t.XpG(2);return t.Njj(r.state.sortBy(i))}),t.EFF(5),t.nI1(6,"translate"),t.k0s()(),t.j41(7,"div",12),t.EFF(8),t.nI1(9,"async"),t.k0s()()()}if(2&n){const e=a.$implicit,s=t.XpG(2);t.Y8G("ngClass",e.Id===(null==s.selectedTest?null:s.selectedTest.Id)?"selected":""),t.R7$(2),t.Y8G("ngIf",e.IsPointGrading),t.R7$(3),t.JRh(t.bMT(6,4,"tests.grade")),t.R7$(3),t.SpI(" ",t.bMT(9,6,s.state.getSortingChar$(e))," ")}}function gn(n,a){if(1&n){const e=t.RV6();t.j41(0,"bkd-grade-select",38),t.nI1(1,"async"),t.nI1(2,"async"),t.bIt("gradeIdSelected",function(i){t.eBV(e);const r=t.XpG(3);return t.Njj(r.state.overwriteFinalGrade(i))}),t.k0s()}if(2&n){const e=t.XpG().$implicit,s=t.XpG(2);t.Y8G("options",t.bMT(1,4,s.state.gradingOptionsForCourse$()))("valueId",e.finalGrade.finalGradeId)("gradeId",e.finalGrade.id)("disabled",!1===t.bMT(2,6,s.isEditFinalGradesAllowed(e)))}}function hn(n,a){if(1&n&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&n){const e=t.XpG().$implicit;t.R7$(),t.SpI(" ",e.finalGrade.freeHandGrade," ")}}function mn(n,a){if(1&n&&(t.j41(0,"td",39),t.nrm(1,"bkd-grade",40),t.nI1(2,"async"),t.k0s()),2&n){const e=a.$implicit,s=a.index,i=t.XpG(),r=i.$implicit,d=i.index,c=t.XpG(2);t.Y8G("ngClass",void 0!==c.selectedTest&&e.test.Id===c.selectedTest.Id?"selected":""),t.R7$(),t.Y8G("grade",e)("gradeOptions",t.bMT(2,5,c.state.gradingOptionsForTest$(e.test)))("student",r.student)("tabIndex",1e3*(1+s)+d)}}function fn(n,a){if(1&n&&(t.j41(0,"tr")(1,"td",31)(2,"a",32)(3,"span"),t.EFF(4),t.k0s(),t.j41(5,"span",19),t.EFF(6),t.nI1(7,"translate"),t.nI1(8,"decimalOrDash"),t.k0s()()(),t.j41(9,"td",33),t.DNE(10,gn,3,8,"bkd-grade-select",34)(11,hn,2,1,"div",35),t.k0s(),t.j41(12,"td",36),t.EFF(13),t.nI1(14,"decimalOrDash"),t.k0s(),t.DNE(15,mn,3,7,"td",37),t.k0s()),2&n){const e=a.$implicit,s=t.XpG(2);t.R7$(2),t.Y8G("routerLink",t.eq3(18,on,e.student.Id)),t.R7$(2),t.JRh(e.student.FullName),t.R7$(2),t.Lme(" ",t.bMT(7,10,"tests.mean"),": ",t.i5U(8,12,null==e.finalGrade?null:e.finalGrade.average,"1-3")," "),t.R7$(3),t.Y8G("ngClass",t.eq3(20,z,void 0===s.selectedTest)),t.R7$(),t.Y8G("ngIf",e.finalGrade&&!e.finalGrade.freeHandGrade),t.R7$(),t.Y8G("ngIf",e.finalGrade&&e.finalGrade.freeHandGrade),t.R7$(2),t.SpI(" ",t.i5U(14,15,null==e.finalGrade?null:e.finalGrade.average,"1-3")," "),t.R7$(2),t.Y8G("ngForOf",e.grades)("ngForTrackBy",s.trackGradeOf(e.student))}}function _n(n,a){if(1&n&&(t.j41(0,"td",39),t.nrm(1,"bkd-average-grades",41),t.k0s()),2&n){const e=a.$implicit,s=t.XpG(2);t.Y8G("ngClass",e.Id===(null==s.selectedTest?null:s.selectedTest.Id)||e.Id===(null==s.selectedTest?null:s.selectedTest.Id)?"selected":""),t.R7$(),t.Y8G("test",e)}}function bn(n,a){if(1&n){const e=t.RV6();t.j41(0,"button",42),t.bIt("click",function(){t.eBV(e);const i=t.XpG(2);return t.Njj(i.setAverageAsFinalGrade())}),t.EFF(1),t.nI1(2,"translate"),t.k0s()}if(2&n){const e=t.XpG().bkdLet,s=t.XpG();t.Y8G("ngClass",t.eq3(4,dn,!e.hasTests||!s.selectedTest)),t.R7$(),t.SpI(" ",t.bMT(2,2,"tests.set-final-grade")," ")}}function vn(n,a){if(1&n){const e=t.RV6();t.qex(0),t.j41(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr",4)(5,"th",5)(6,"bkd-test-table-filter",6),t.bIt("filterChange",function(i){t.eBV(e);const r=t.XpG();return t.Njj(r.state.setFilter(i))}),t.k0s()(),t.DNE(7,ln,2,3,"th",7)(8,cn,2,3,"th",8),t.k0s(),t.j41(9,"tr")(10,"th",9),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.state.sortBy("FullName"))}),t.j41(11,"div",10)(12,"div",11),t.EFF(13),t.nI1(14,"translate"),t.k0s(),t.j41(15,"div",12),t.EFF(16),t.nI1(17,"async"),t.k0s()()(),t.j41(18,"th",13),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.state.sortBy("FinalGrade"))}),t.j41(19,"div",10)(20,"div",11),t.EFF(21),t.nI1(22,"translate"),t.k0s(),t.j41(23,"div",12),t.EFF(24),t.nI1(25,"async"),t.k0s()()(),t.j41(26,"th",14),t.bIt("click",function(){t.eBV(e);const i=t.XpG();return t.Njj(i.state.sortBy("TestsMean"))}),t.j41(27,"div",10)(28,"div",11),t.EFF(29),t.nI1(30,"translate"),t.k0s(),t.j41(31,"div",12),t.EFF(32),t.nI1(33,"async"),t.k0s()()(),t.DNE(34,pn,10,8,"th",15),t.k0s()(),t.j41(35,"tbody"),t.DNE(36,fn,16,22,"tr",16),t.j41(37,"tr")(38,"td",17)(39,"div",18)(40,"div"),t.EFF(41),t.nI1(42,"translate"),t.k0s(),t.j41(43,"div",19),t.EFF(44),t.nI1(45,"translate"),t.nI1(46,"async"),t.nI1(47,"decimalOrDash"),t.k0s()()(),t.j41(48,"td",20),t.EFF(49),t.nI1(50,"async"),t.nI1(51,"decimalOrDash"),t.k0s(),t.j41(52,"td",21),t.EFF(53),t.nI1(54,"async"),t.nI1(55,"decimalOrDash"),t.k0s(),t.DNE(56,_n,2,2,"td",22),t.k0s()()(),t.DNE(57,bn,3,6,"button",23),t.nI1(58,"async"),t.k0s(),t.bVm()}if(2&n){const e=a.bkdLet,s=t.XpG();t.R7$(6),t.Y8G("filter",e.filter),t.R7$(),t.Y8G("ngForOf",e.tests),t.R7$(),t.Y8G("ngForOf",e.tests),t.R7$(5),t.SpI(" ",t.bMT(14,21,"tests.student.name")," "),t.R7$(3),t.SpI(" ",t.bMT(17,23,s.state.getSortingChar$("FullName"))," "),t.R7$(2),t.Y8G("ngClass",t.eq3(54,z,void 0===s.selectedTest)),t.R7$(3),t.SpI(" ",t.bMT(22,25,"tests.grade")," "),t.R7$(3),t.SpI(" ",t.bMT(25,27,s.state.getSortingChar$("FinalGrade"))," "),t.R7$(5),t.SpI(" ",t.bMT(30,29,"tests.mean")," "),t.R7$(3),t.SpI(" ",t.bMT(33,31,s.state.getSortingChar$("TestsMean"))," "),t.R7$(2),t.Y8G("ngForOf",e.tests),t.R7$(2),t.Y8G("ngForOf",e.studentGrades)("ngForTrackBy",s.trackStudentGrade),t.R7$(5),t.JRh(t.bMT(42,33,"tests.average")),t.R7$(3),t.Lme(" ",t.bMT(45,35,"tests.mean"),": ",t.i5U(47,39,t.bMT(46,37,s.state.meanOfStudentGradesForCourse$),"1-3")," "),t.R7$(4),t.Y8G("ngClass",t.eq3(56,z,void 0===s.selectedTest)),t.R7$(),t.SpI(" ",t.i5U(51,44,t.bMT(50,42,s.state.meanOfFinalGradesForCourse$),"1-3")," "),t.R7$(4),t.SpI(" ",t.i5U(55,49,t.bMT(54,47,s.state.meanOfStudentGradesForCourse$),"1-3")," "),t.R7$(3),t.Y8G("ngForOf",e.tests),t.R7$(),t.Y8G("ngIf",t.bMT(58,52,s.state.canSetFinalGrade$))}}let Tn=(()=>{class n{constructor(e,s){this.state=e,this.modalService=s}ngOnInit(){this.state.setSorting({key:"FullName",ascending:!0})}setAverageAsFinalGrade(){this.state.course$.pipe((0,M.s)(1)).subscribe(e=>this.state.setAveragesAsFinalGrades({CourseIds:[e.Id]}))}isEditFinalGradesAllowed(e){return this.state.course$.pipe((0,p.T)(s=>!(!q(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,k.zs)}calculateGradeAverage(e){return this.safeAverage(e,k.TG)}safeAverage(e,s){try{return s(e).toString()}catch{return"\u2013"}}openModal(e){const s=this.modalService.open(Ne);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.rXU(x),t.rXU(ht.y))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["bkd-test-edit-grades"]],inputs:{selectedTest:"selectedTest"},standalone:!0,features:[t.Jv_([Y]),t.aNF],decls:6,vars:17,consts:[[4,"bkdLet"],[1,"table-responsive-wrapper"],[1,"table","table-hover","h-100"],[1,"h-100"],[1,"h-100","header-collapsible"],["colspan","3",1,"desktop","sticky"],[3,"filterChange","filter"],["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,"click","ngClass"],[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","apply-average-button btn btn-primary m-3","type","button",3,"ngClass","click",4,"ngIf"],["container","body",1,"grade","h-100","test-info-desktop",3,"ngClass"],[3,"toggle","publish","unpublish","test","expanded"],["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,"gradeIdSelected","options","valueId","gradeId","disabled"],[1,"grade",3,"ngClass"],[3,"grade","gradeOptions","student","tabIndex"],[3,"test"],["data-testId","apply-average-button","type","button",1,"apply-average-button","btn","btn-primary","m-3",3,"click","ngClass"]],template:function(s,i){1&s&&(t.DNE(0,vn,59,58,"ng-container",0),t.nI1(1,"async"),t.nI1(2,"async"),t.nI1(3,"async"),t.nI1(4,"async"),t.nI1(5,"async")),2&s&&t.Y8G("bkdLet",t.s1E(11,rn,t.bMT(1,1,i.state.filteredTests$),t.bMT(2,3,i.state.hasTests$),t.bMT(3,5,i.state.studentGrades$),t.bMT(4,7,i.state.filter$),t.bMT(5,9,i.state.expandedHeader$)))},dependencies:[T.N,u.YU,u.pM,Ke,an,u.bT,m.Wk,He,Ye,Je,u.Jj,l.h,l.D9,W.rv],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}}@media (max-width: 575.98px){.apply-average-button[_ngcontent-%COMP%]:not(.visible-on-mobile){display:none!important}}"]})}return n})();var In=o(9172),Cn=o(2637),$n=o(8667),Gn=o(5507);const yn=()=>["/events"],kn=n=>({count:n});function Fn(n,a){if(1&n&&(t.j41(0,"div",8),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const e=t.XpG();t.R7$(),t.SpI(" ",t.i5U(2,1,1===e.course.ParticipatingStudents.length?"courses.registration":"courses.registrations",t.eq3(4,kn,e.course.ParticipatingStudents.length))," ")}}let En=(()=>{class n{constructor(e){this.reportsService=e,this.course$=new y.t(null),this.reports$=this.course$.pipe((0,p.T)(s=>s?.Id),(0,F.F)(),(0,v.n)(s=>s?this.reportsService.getCourseReports(s):(0,G.of)([])),(0,In.Z)([]))}ngOnChanges(e){e.course&&this.course$.next(e.course.currentValue)}getDesignation(){return tt(this.course)}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(Gn.P))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["bkd-tests-header"]],inputs:{course:"course"},standalone:!0,features:[t.OA$,t.aNF],decls:12,vars:7,consts:[[3,"link"],[1,"d-flex"],["routerLink","add",1,"edit","btn","btn-primary","btn-icon","ms-2"],[1,"material-icons"],[1,"ms-2",3,"reports"],["id","excel-import"],[1,"d-flex","flex-column","header"],["class","additional-info",4,"ngIf"],[1,"additional-info"]],template:function(s,i){1&s&&(t.j41(0,"bkd-backlink",0)(1,"div",1)(2,"a",2)(3,"i",3),t.EFF(4,"add"),t.k0s()(),t.nrm(5,"bkd-reports-link",4),t.nI1(6,"async"),t.nrm(7,"div",5),t.k0s()(),t.j41(8,"div",6)(9,"h1"),t.EFF(10),t.k0s(),t.DNE(11,Fn,3,6,"div",7),t.k0s()),2&s&&(t.Y8G("link",t.lJ4(6,yn)),t.R7$(5),t.Y8G("reports",t.bMT(6,4,i.reports$)),t.R7$(5),t.JRh(i.getDesignation()),t.R7$(),t.Y8G("ngIf",i.course.ParticipatingStudents))},dependencies:[Cn.P,m.Wk,$n.Z,u.bT,u.Jj,l.h,l.D9],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})();const Rn=(n,a,e,s,i,r)=>({course:n,tests:a,hasTests:e,testOptions:s,selectedTestId:i,selectedTest:r}),Mn=n=>({"visible-on-mobile":n});function xn(n,a){if(1&n){const e=t.RV6();t.qex(0),t.j41(1,"bkd-select",7),t.bIt("valueChange",function(i){t.eBV(e);const r=t.XpG(3);return t.Njj(i&&r.testSelected(i))}),t.k0s(),t.nrm(2,"bkd-test-edit-grades",8),t.bVm()}if(2&n){const e=t.XpG(2).bkdLet;t.R7$(),t.Y8G("options",e.testOptions)("value",e.selectedTestId)("allowEmpty",!1),t.R7$(),t.Y8G("selectedTest",e.selectedTest)}}function Sn(n,a){if(1&n&&(t.j41(0,"a",9),t.nI1(1,"async"),t.j41(2,"i",10),t.EFF(3,"arrow_right_alt"),t.k0s(),t.j41(4,"span",11),t.EFF(5),t.nI1(6,"translate"),t.k0s()()),2&n){const e=t.XpG(2).bkdLet,s=t.XpG();t.FS9("href",t.bMT(1,3,s.buildLinkToRatingOverview()),t.B4B),t.Y8G("ngClass",t.eq3(7,Mn,!e.hasTests||!e.selectedTest)),t.R7$(5),t.JRh(t.bMT(6,5,"tests.link-to-rating-overview"))}}function Pn(n,a){if(1&n&&(t.qex(0),t.nrm(1,"bkd-tests-header",5),t.DNE(2,xn,3,4,"ng-container",4)(3,Sn,7,9,"a",6),t.nI1(4,"async"),t.bVm()),2&n){const e=t.XpG().bkdLet,s=t.XpG(),i=t.sdS(9);t.R7$(),t.Y8G("course",e.course),t.R7$(),t.Y8G("ngIf",e.tests.length>0)("ngIfElse",i),t.R7$(),t.Y8G("ngIf",t.bMT(4,4,s.state.canSetFinalGrade$))}}function jn(n,a){if(1&n&&(t.qex(0),t.DNE(1,Pn,5,6,"ng-container",4),t.nI1(2,"async"),t.bVm()),2&n){const e=t.XpG(),s=t.sdS(11);t.R7$(),t.Y8G("ngIf",!1===t.bMT(2,2,e.state.loading$))("ngIfElse",s)}}function On(n,a){1&n&&(t.j41(0,"p",12),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n&&(t.R7$(),t.JRh(t.bMT(2,1,"tests.no-tests")))}function Dn(n,a){1&n&&t.nrm(0,"bkd-spinner")}let Nn=(()=>{class n{constructor(e,s,i){this.settings=e,this.state=s,this.translate=i,this.selectTest$=new D.B,this.testOptions$=this.state.tests$.pipe((0,p.T)(r=>[{Key:-1,Value:this.translate.instant("tests.grade")},...r.map(d=>({Key:d.Id,Value:d.Designation}))]),(0,F.F)()),this.selectedTestId$=(0,at.h)(this.selectTest$,this.state.tests$.pipe((0,M.s)(1),(0,p.T)(r=>r[0]?.Id))).pipe((0,F.F)()),this.selectedTest$=this.selectedTestId$.pipe((0,v.n)(r=>this.state.tests$.pipe((0,p.T)(d=>d.find(c=>c.Id===r)))),(0,F.F)())}testSelected(e){this.selectTest$.next(e)}buildLinkToRatingOverview(){return this.state.course$.pipe((0,M.s)(1),(0,p.T)(e=>this.settings.eventlist.evaluation.replace(":id",String(e.Id))))}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(X.yy),t.rXU(x),t.rXU(l.c$))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["bkd-tests-list"]],standalone:!0,features:[t.aNF],decls:12,vars:20,consts:[["noTests",""],["loading",""],[1,"bkd-container"],[4,"bkdLet"],[4,"ngIf","ngIfElse"],[3,"course"],["class","rating-overview d-flex justify-content-end pe-3 border-top pt-3",3,"ngClass","href",4,"ngIf"],[1,"tests-dropdown",3,"valueChange","options","value","allowEmpty"],[3,"selectedTest"],[1,"rating-overview","d-flex","justify-content-end","pe-3","border-top","pt-3",3,"ngClass","href"],[1,"material-icons","fw-bold"],[1,"ps-1"],[1,"mt-3","px-3"]],template:function(s,i){1&s&&(t.j41(0,"div",2),t.DNE(1,jn,3,4,"ng-container",3),t.nI1(2,"async"),t.nI1(3,"async"),t.nI1(4,"async"),t.nI1(5,"async"),t.nI1(6,"async"),t.nI1(7,"async"),t.DNE(8,On,3,3,"ng-template",null,0,t.C5r)(10,Dn,1,0,"ng-template",null,1,t.C5r),t.k0s()),2&s&&(t.R7$(),t.Y8G("bkdLet",t.l4e(13,Rn,t.bMT(2,1,i.state.course$),t.bMT(3,3,i.state.tests$),t.bMT(4,5,i.state.hasTests$),t.bMT(5,7,i.testOptions$),t.bMT(6,9,i.selectedTestId$),t.bMT(7,11,i.selectedTest$))))},dependencies:[T.N,u.bT,En,K.w,Tn,u.YU,E.t,u.Jj,l.h,l.D9],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}@media (max-width: 575.98px){a.rating-overview[_ngcontent-%COMP%]:not(.visible-on-mobile){display:none!important}}"]})}return n})(),Q=(()=>{class n{constructor(e,s){this.state=e,this.route=s,this.courseId$=this.route.paramMap.pipe((0,p.T)(i=>Number(i.get("id"))),(0,F.F)()),this.destroy$=new D.B}ngOnInit(){this.courseId$.pipe((0,B.Q)(this.destroy$)).subscribe(e=>this.state.setCourseId(e))}ngOnDestroy(){this.destroy$.next()}static#t=this.\u0275fac=function(s){return new(s||n)(t.rXU(x),t.rXU(m.nX))};static#e=this.\u0275cmp=t.VBU({type:n,selectors:[["bkd-tests"]],standalone:!0,features:[t.Jv_([x]),t.aNF],decls:1,vars:0,template:function(s,i){1&s&&t.nrm(0,"router-outlet")},dependencies:[m.n3]})}return n})();const wn=[{path:"",component:Lt,children:[{path:"",component:Vt},{path:"current",component:At},{path:":id",component:Q,children:[{path:"tests",component:Nn}]},{path:":id/tests/:testId/edit",component:Q,children:[{path:"",component:Oe}]},{path:":id/tests/add",component:Q,children:[{path:"",component:Ee}]},{path:":id/tests",children:[P.R]}]}]},4814:(Z,S,o)=>{o.d(S,{a:()=>t});var P=o(977),l=o(6354),u=o(4412),j=o(3294),E=o(4668),T=o(6697),m=o(4438);let t=(()=>{class b{getSortingChar$(I){return this.sorting$.pipe((0,l.T)(f=>f&&I===f.key?f.ascending?"\u2193":"\u2191":""))}constructor(){this.sortingSubject$=new u.t(null),this.sorting$=this.sortingSubject$.asObservable().pipe((0,j.F)(P.A),(0,E.t)(1))}setSorting(I){this.sortingSubject$.next(I)}toggleSorting(I){this.sorting$.pipe((0,T.s)(1)).subscribe(f=>{this.sortingSubject$.next({key:I,ascending:!f||f.key!==I||!f.ascending})})}static#t=this.\u0275fac=function(f){return new(f||b)};static#e=this.\u0275prov=m.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})()},9483:(Z,S,o)=>{o.d(S,{r:()=>t});var P=o(5558),l=o(2809),u=o(838),j=o(785),E=o(3220),T=o(4438),m=o(1626);let t=(()=>{class b extends E.X{constructor(I,f){super(I,f,u.i,"StudyClasses","Number")}getActive(){return this.http.get(`${this.baseUrl}/?filter.IsActive==true`,{headers:{"X-Role-Restriction":"ClassTeacherRole"}}).pipe((0,P.n)((0,j.k$)(u.i)))}getActiveFormativeAssessments(){return this.http.get(`${this.baseUrl}/FormativeAssessments?filter.IsActive==true`,{headers:{"X-Role-Restriction":"ClassTeacherRole"}}).pipe((0,P.n)((0,j.k$)(u.i)))}static#t=this.\u0275fac=function(f){return new(f||b)(T.KVO(m.Qq),T.KVO(l.yy))};static#e=this.\u0275prov=T.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})()}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/14.js b/public/apps/webapp-schulverwaltung/14.js deleted file mode 100644 index 0b52a348..00000000 --- a/public/apps/webapp-schulverwaltung/14.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[14],{7113:(F,S,a)=>{a.d(S,{C7:()=>l,Eq:()=>D,TG:()=>h,bT:()=>t,m_:()=>C,my:()=>E,p6:()=>_,sU:()=>f,tb:()=>n,tj:()=>u,xk:()=>$,zs:()=>d});var e=a(9736);function n(o,c,m){return o?o.Tests?.reduce((O,T)=>O||T.Id===c&&T.Results?.find(I=>I.TestId===c&&I.StudentId===m)||null,null)??null:null}function l(o,c,m){return c.map(O=>O.Id===o.TestId?t(o,O,m):O)}function u(o,c,m){return m.map(O=>O.Id===o?function v(o,c){return{...c,Results:c.Results?.filter(m=>m.StudentId!==o)||[]}}(c,O):O)}function _(o,c){return c.map(m=>m.Id===o?{...m,IsPublished:!m.IsPublished}:m)}function d(o){const c=function x(o){return o.Results?.map(c=>null!==c.Points?c.Points:g).filter(c=>c>g)||[]}(o);if(0===c.length)throw new Error("unable to calculate averages without results");return(0,e.G)(c)}function f(o){return o.MaxPointsAdjusted||o.MaxPoints}function h(o){const c=function M(o){return o.Results?.filter(c=>null!==c.GradeDesignation).map(c=>Number(c.GradeDesignation)).filter(c=>!isNaN(c))||[]}(o);if(0===c.length)throw new Error("unable to calculate averages without results");return(0,e.G)(c)}function C(o,c){return c.Results?.find(m=>m.StudentId===o)}function $(o,c){return null===c?null:c.filter(m=>m.Id!==o)}function t(o,c,m){const O=m&&c.Results?.find(I=>I.TestId===o.TestId&&I.StudentId===o.StudentId),T=c.Results?.filter(I=>!(I.TestId===o.TestId&&I.StudentId===o.StudentId))||[];return O&&"grade"===m?o.GradeId=O.GradeId:O&&"points"===m&&(o.Points=O.Points),{...c,Results:[...T,o]}}function E(o){return o.slice().sort((c,m)=>m.Date.getTime()-c.Date.getTime())}function D(o,c){return c?.find(m=>m.Id===o.GradingScaleId)||null}const g=-1},2619:(F,S,a)=>{a.d(S,{w:()=>$});var e=a(177),n=a(4438),l=a(9417),u=a(3955),_=a(4412),d=a(4572),f=a(6354);function h(t,E){if(1&t&&(n.j41(0,"option",3),n.EFF(1),n.nI1(2,"translate"),n.k0s()),2&t){const D=n.XpG();n.Y8G("ngValue",null),n.R7$(),n.SpI(" ",n.bMT(2,2,D.emptyLabel)," ")}}function C(t,E){if(1&t&&(n.j41(0,"option",3),n.EFF(1),n.k0s()),2&t){const D=E.$implicit;n.Y8G("ngValue",D),n.R7$(),n.SpI(" ",D.Value," ")}}let $=(()=>{class t{constructor(){this.options=[],this.allowEmpty=!0,this.emptyLabel="",this.value=null,this.disabled=!1,this.tabindex=0,this.valueChange=new n.bkB,this.options$=new _.t([]),this.rawValue$=new _.t(null),this.value$=(0,d.z)([this.rawValue$,this.options$]).pipe((0,f.T)(([D,v])=>v&&v.find(M=>M.Key===D)||null))}ngOnChanges(D){D.value&&this.rawValue$.next(D.value.currentValue),D.options&&this.options$.next(D.options.currentValue)}static#t=this.\u0275fac=function(v){return new(v||t)};static#e=this.\u0275cmp=n.VBU({type:t,selectors:[["bkd-select"]],inputs:{options:"options",allowEmpty:"allowEmpty",emptyLabel:"emptyLabel",value:"value",disabled:"disabled",tabindex:"tabindex"},outputs:{valueChange:"valueChange"},standalone:!0,features:[n.OA$,n.aNF],decls:5,vars:7,consts:[[1,"form-select",3,"ngModelChange","tabindex","disabled","ngModel"],[3,"ngValue",4,"ngIf"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"]],template:function(v,M){1&v&&(n.j41(0,"select",0),n.nI1(1,"async"),n.bIt("ngModelChange",function(g){return M.valueChange.emit(g&&g.Key)}),n.DNE(2,h,3,4,"option",1)(3,C,2,2,"option",2),n.EFF(4," >\n"),n.k0s()),2&v&&(n.FS9("tabindex",M.tabindex),n.Y8G("disabled",M.disabled)("ngModel",n.bMT(1,5,M.value$)),n.R7$(2),n.Y8G("ngIf",M.allowEmpty),n.R7$(),n.Y8G("ngForOf",M.options))},dependencies:[l.YN,l.xH,l.y7,l.wz,l.BC,l.vS,e.bT,e.pM,e.Jj,u.h,u.D9],changeDetection:0})}return t})()},7014:(F,S,a)=>{a.d(S,{Q:()=>at});var e=a(177),n=a(1324),l=a(3955),u=a(4412),_=a(9736),d=a(7113),f=a(7887);function h(i,R,s){return R?R.Grade:function C(i,R){return R?.Grades.find(s=>s.Id===i?.GradeId)?.Designation}(i,s)||i?.GradeValue}var $=a(9082),t=a(4438);let E=(()=>{class i{constructor(){}getGradeForStudent(){return h(this.grading,this.finalGrade,this.gradingScale)}static#t=this.\u0275fac=function(r){return new(r||i)};static#e=this.\u0275cmp=t.VBU({type:i,selectors:[["bkd-dossier-grades-final-grade"]],inputs:{finalGrade:"finalGrade",grading:"grading",gradingScale:"gradingScale",average:"average"},standalone:!0,features:[t.aNF],decls:14,vars:11,consts:[[1,"final-entry"],["data-testid","final-grade"],["data-testid","average-test-results"]],template:function(r,p){1&r&&(t.j41(0,"div",0)(1,"div"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",1)(5,"span"),t.EFF(6),t.k0s()(),t.j41(7,"div"),t.EFF(8),t.nI1(9,"translate"),t.k0s(),t.j41(10,"div",2)(11,"span"),t.EFF(12),t.nI1(13,"decimalOrDash"),t.k0s()()()),2&r&&(t.R7$(2),t.JRh(t.bMT(3,4,"dossier.grade")),t.R7$(4),t.JRh(p.getGradeForStudent()||"\u2013"),t.R7$(2),t.JRh(t.bMT(9,6,"dossier.average")),t.R7$(4),t.JRh(t.i5U(13,8,p.average,"1-3")))},dependencies:[l.h,l.D9,$.rv],styles:[".final-entry[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:repeat(2,1fr)}span[_ngcontent-%COMP%]{margin-left:2em}"]})}return i})();var D=a(2771),v=a(6354);let M=(()=>{class i{constructor(s){this.translate=s}transform(s,r,p,j="tests.points"){return s.IsPointGrading&&(s.IsPublished||p)?`${(0,d.m_)(r,s)?.Points||"\u2013"} / ${s.MaxPointsAdjusted||s.MaxPoints} ${this.translate.instant(j)}`:""}static#t=this.\u0275fac=function(r){return new(r||i)(t.rXU(l.c$,16))};static#e=this.\u0275pipe=t.EJ8({name:"bkdTestPoints",type:i,pure:!0,standalone:!0})}return i})(),x=(()=>{class i{constructor(s){this.translate=s}transform(s){return`${this.translate.instant("tests.factor")} ${s.Weight} (${s.WeightPercent}%)`}static#t=this.\u0275fac=function(r){return new(r||i)(t.rXU(l.c$,16))};static#e=this.\u0275pipe=t.EJ8({name:"bkdTestWeight",type:i,pure:!0,standalone:!0})}return i})();var g=a(9417),o=a(1413),c=a(152),m=a(5964),O=a(6977),T=a(2619),I=a(5449);const P=i=>({maxPoints:i});function y(i,R){if(1&i&&(t.j41(0,"div",15),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const s=t.XpG(2);t.R7$(),t.SpI(" ",t.i5U(2,1,"global.validation-errors.invalidPoints",t.eq3(4,P,s.maxPoints))," ")}}function A(i,R){if(1&i){const s=t.RV6();t.j41(0,"div",11)(1,"label",12),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"div",6)(5,"input",13,0),t.bIt("input",function(){t.eBV(s);const p=t.sdS(6),j=t.XpG();return t.Njj(j.onPointsChange(p.value))}),t.k0s()(),t.DNE(7,y,3,6,"div",14),t.k0s()}if(2&i){const s=t.XpG();t.R7$(2),t.JRh(t.bMT(3,8,"dossier.dialog.points")),t.R7$(2),t.AVh("is-invalid",s.pointsInput.errors),t.R7$(),t.AVh("is-invalid",s.pointsInput.errors),t.FS9("max",s.maxPoints),t.Y8G("formControl",s.pointsInput),t.R7$(2),t.Y8G("ngIf",s.pointsInput.errors)}}let G=(()=>{class i{constructor(s,r){this.activeModal=s,this.courseService=r,this.maxPoints=0,this.gradeSubject$=new o.B,this.pointsSubject$=new o.B,this.closeButtonDisabled$=new u.t(!1),this.gradingScaleDisabled$=new u.t(!0),this.grade$=this.gradeSubject$.pipe((0,c.B)(500)),this.points$=this.pointsSubject$.pipe((0,c.B)(500),(0,m.p)(this.isValid.bind(this)),(0,v.T)(Number)),this.destroy$=new o.B}ngOnInit(){this.maxPoints=(0,d.sU)(this.test),this.pointsInput=new g.hs({value:this.points,disabled:!1},[g.k0.min(0),g.k0.pattern("[0-9]+([\\.][0-9]+)?"),this.maxPointValidator()]),this.gradingScaleDisabled$.next(this.test.IsPointGrading&&this.points>0),this.points$.pipe((0,O.Q)(this.destroy$)).subscribe(s=>this.updateTestResult({studentId:this.studentId,testId:this.test.Id,points:s})),this.grade$.pipe((0,O.Q)(this.destroy$)).subscribe(s=>this.updateTestResult({studentId:this.studentId,testId:this.test.Id,gradeId:s}))}onGradeChange(s){this.gradeSubject$.next(s)}onPointsChange(s){this.pointsSubject$.next(s),this.gradingScaleDisabled$.next(s.length>0)}updateTestResult(s){this.closeButtonDisabled$.next(!0),this.courseService.updateTestResult(this.test.CourseId,s).subscribe(({testResult:r})=>{this.gradeId=r?.GradeId??null,this.updatedTestResult=r,this.closeButtonDisabled$.next(!1)})}isValid(s){return""!==s&&!isNaN(Number(s))&&!(Number(s)<0||Number(s)>this.maxPoints)}maxPointValidator(){return s=>Number(s.value)>(0,d.sU)(this.test)?{customMax:!0}:null}static#t=this.\u0275fac=function(r){return new(r||i)(t.rXU(n.Lw),t.rXU(I.I))};static#e=this.\u0275cmp=t.VBU({type:i,selectors:[["bkd-dossier-grades-edit"]],inputs:{test:"test",gradeId:"gradeId",gradeOptions:"gradeOptions",points:"points",studentId:"studentId"},standalone:!0,features:[t.aNF],decls:19,vars:20,consts:[["pointInput",""],[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,"valueChange","options","value","allowEmpty","disabled"],[1,"text-muted","mt-4"],[1,"modal-footer"],["type","button",1,"btn","btn-primary",3,"click","disabled"],[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,"input","max","formControl"],["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(r,p){1&r&&(t.j41(0,"div",1)(1,"p",2),t.EFF(2),t.k0s(),t.DNE(3,A,8,10,"div",3),t.j41(4,"div",4)(5,"label",5),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.j41(8,"div",6)(9,"bkd-select",7),t.nI1(10,"async"),t.bIt("valueChange",function(U){return U&&p.onGradeChange(U)}),t.k0s()()(),t.j41(11,"p",8),t.EFF(12),t.nI1(13,"translate"),t.k0s()(),t.j41(14,"div",9)(15,"button",10),t.nI1(16,"async"),t.bIt("click",function(){return p.activeModal.close(p.updatedTestResult)}),t.EFF(17),t.nI1(18,"translate"),t.k0s()()),2&r&&(t.R7$(2),t.JRh(p.test.Designation),t.R7$(),t.Y8G("ngIf",p.test.IsPointGrading),t.R7$(3),t.JRh(t.bMT(7,10,"dossier.dialog.grade")),t.R7$(3),t.Y8G("options",p.gradeOptions)("value",p.gradeId)("allowEmpty",!1)("disabled",t.bMT(10,12,p.gradingScaleDisabled$)),t.R7$(3),t.SpI(" ",t.bMT(13,14,p.test.IsPointGrading?"dossier.dialog.hint.points":"dossier.dialog.hint.grade")," "),t.R7$(3),t.Y8G("disabled",t.bMT(16,16,p.closeButtonDisabled$)),t.R7$(2),t.SpI(" ",t.bMT(18,18,"dossier.dialog.close")," "))},dependencies:[e.bT,g.YN,g.me,g.Q0,g.BC,g.VZ,g.zX,g.X1,g.l_,T.w,e.Jj,l.h,l.D9]})}return i})();var b=a(8958),W=a(855);function K(i,R){if(1&i){const s=t.RV6();t.j41(0,"a",11),t.bIt("click",function(){t.eBV(s);const p=t.XpG().bkdLet,j=t.XpG();return t.Njj(j.editGrading(p))}),t.j41(1,"i",12),t.EFF(2,"edit"),t.k0s(),t.j41(3,"span",13),t.EFF(4),t.nI1(5,"async"),t.k0s()()}if(2&i){const s=t.XpG(2);t.R7$(4),t.JRh(t.bMT(5,1,s.grading$))}}function L(i,R){if(1&i&&(t.j41(0,"span",13),t.EFF(1),t.nI1(2,"async"),t.k0s()),2&i){const s=t.XpG(2);t.R7$(),t.JRh(t.bMT(2,1,s.grading$))}}function Y(i,R){if(1&i&&(t.j41(0,"div",14),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i){const s=t.XpG().bkdLet;t.R7$(),t.SpI(" ",t.bMT(2,1,s.IsPublished?"tests.published":"tests.not-published")," ")}}function V(i,R){if(1&i&&(t.j41(0,"div",2)(1,"div",3),t.EFF(2),t.k0s(),t.j41(3,"div",4),t.EFF(4),t.nI1(5,"date"),t.k0s(),t.j41(6,"div",5),t.DNE(7,K,6,3,"a",6)(8,L,3,3,"ng-template",null,0,t.C5r),t.k0s(),t.j41(10,"div",7),t.EFF(11),t.nI1(12,"bkdTestWeight"),t.k0s(),t.j41(13,"div",8)(14,"span"),t.EFF(15),t.nI1(16,"bkdTestPoints"),t.k0s()(),t.j41(17,"div",9),t.EFF(18),t.k0s(),t.DNE(19,Y,3,3,"div",10),t.k0s()),2&i){const s=R.bkdLet,r=t.sdS(9),p=t.XpG();t.R7$(2),t.SpI(" ",s.Designation," "),t.R7$(2),t.SpI(" ",t.i5U(5,8,s.Date,"dd.MM.yyyy")," "),t.R7$(3),t.Y8G("ngIf",p.isEditable&&s.IsOwner)("ngIfElse",r),t.R7$(4),t.SpI(" ",t.bMT(12,11,s)," "),t.R7$(4),t.JRh(t.ii3(16,13,s,p.studentId,p.isEditable,"dossier.points")),t.R7$(3),t.SpI(" ",s.Owner," "),t.R7$(),t.Y8G("ngIf",p.isEditable)}}let N=(()=>{class i{constructor(s,r){this.gradeService=s,this.modalService=r,this.test$=new D.m(1),this.grading$=this.test$.pipe((0,v.T)(this.getGrading.bind(this)))}ngOnChanges(s){s.test&&this.test$.next(this.test)}editGrading(s){const r=this.modalService.open(G,{backdrop:"static"});r.componentInstance.test=s,r.componentInstance.gradeId=this.getGradeId(s),r.componentInstance.gradeOptions=i.mapToOptions(this.gradingScale),r.componentInstance.studentId=this.studentId,r.componentInstance.points=this.getPoints(s),r.result.then(p=>{p&&this.updateStudentGrade(p,s)},()=>{})}updateStudentGrade(s,r){const p=(0,d.bT)(s,r);this.gradeService.updateStudentCourses(p)}getGrading(s){return this.gradingScale?.Grades.find(r=>r.Id===this.getGradeId(s))?.Designation||"\u2013"}getGradeId(s){return(0,d.m_)(this.studentId,s)?.GradeId||null}getPoints(s){return(0,d.m_)(this.studentId,s)?.Points||null}static mapToOptions(s){return s?.Grades.map(r=>({Key:r.Id,Value:r.Designation}))||null}static#t=this.\u0275fac=function(r){return new(r||i)(t.rXU(b.p),t.rXU(W.y))};static#e=this.\u0275cmp=t.VBU({type:i,selectors:[["bkd-dossier-single-test"]],inputs:{test:"test",studentId:"studentId",gradingScale:"gradingScale",isEditable:"isEditable"},standalone:!0,features:[t.OA$,t.aNF],decls:2,vars:3,consts:[["notEditable",""],["class","test-entry",4,"bkdLet"],[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"],["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(r,p){1&r&&(t.DNE(0,V,20,18,"div",1),t.nI1(1,"async")),2&r&&t.Y8G("bkdLet",t.bMT(1,1,p.test$))},dependencies:[f.N,e.bT,e.Jj,e.vh,l.h,l.D9,M,x],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 i})();function w(i,R){if(1&i&&t.nrm(0,"bkd-dossier-single-test",5),2&i){const s=R.$implicit,r=t.XpG(3);t.Y8G("test",s)("studentId",r.studentId)("gradingScale",r.getGradingScaleOfTest(s))("isEditable",r.isEditable)}}function k(i,R){if(1&i&&(t.j41(0,"div"),t.nrm(1,"bkd-dossier-grades-final-grade",3),t.DNE(2,w,1,4,"bkd-dossier-single-test",4),t.k0s()),2&i){const s=t.XpG().bkdLet,r=t.XpG();t.R7$(),t.Y8G("finalGrade",r.decoratedCourse.finalGrade)("grading",r.decoratedCourse.grading)("gradingScale",r.decoratedCourse.gradingScale)("average",r.decoratedCourse.average),t.R7$(),t.Y8G("ngForOf",s)}}function H(i,R){1&i&&(t.j41(0,"p",6),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"dossier.no-tests")," "))}function X(i,R){if(1&i&&(t.qex(0),t.DNE(1,k,3,5,"div",2)(2,H,3,3,"ng-template",null,0,t.C5r),t.bVm()),2&i){const s=R.bkdLet,r=t.sdS(3);t.R7$(),t.Y8G("ngIf",s.length>0)("ngIfElse",r)}}let z=(()=>{class i{ngOnChanges(s){s.decoratedCourse&&this.sortedTests$.next(this.sortedTests())}constructor(){this.sortedTests$=new u.t([])}sortedTests(){return this.decoratedCourse.course.Tests?(0,d.my)(this.decoratedCourse.course.Tests):[]}getGradingScaleOfTest(s){return(0,d.Eq)(s,this.gradingScales)}static#t=this.\u0275fac=function(r){return new(r||i)};static#e=this.\u0275cmp=t.VBU({type:i,selectors:[["bkd-dossier-course-tests"]],inputs:{studentId:"studentId",decoratedCourse:"decoratedCourse",gradingScales:"gradingScales",isEditable:"isEditable"},standalone:!0,features:[t.OA$,t.aNF],decls:2,vars:3,consts:[["noTests",""],[4,"bkdLet"],[4,"ngIf","ngIfElse"],[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(r,p){1&r&&(t.DNE(0,X,4,2,"ng-container",1),t.nI1(1,"async")),2&r&&t.Y8G("bkdLet",t.bMT(1,1,p.sortedTests$))},dependencies:[f.N,e.bT,E,e.pM,N,e.Jj,l.h,l.D9]})}return i})();function J(i,R){if(1&i&&(t.j41(0,"span",2),t.EFF(1),t.k0s()),2&i){const s=t.XpG();t.R7$(),t.SpI(" (",s.grade,")")}}function Q(i,R){if(1&i&&(t.j41(0,"span",3),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&i){const s=t.XpG();t.R7$(),t.SpI(" (",t.i5U(2,1,s.average,"1.1-3"),")")}}let Z=(()=>{class i{constructor(){}get grade(){return this.getGradeForStudent()}getGradeForStudent(){return h(this.grading,this.finalGrade,this.gradingScale)}static#t=this.\u0275fac=function(r){return new(r||i)};static#e=this.\u0275cmp=t.VBU({type:i,selectors:[["bkd-dossier-grades-course-header"]],inputs:{designation:"designation",finalGrade:"finalGrade",grading:"grading",gradingScale:"gradingScale",average:"average"},standalone:!0,features:[t.aNF],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(r,p){1&r&&(t.EFF(0),t.DNE(1,J,2,1,"span",0)(2,Q,3,4,"span",1)),2&r&&(t.JRh(p.designation),t.R7$(),t.Y8G("ngIf",p.grade),t.R7$(),t.Y8G("ngIf",!p.grade&&p.average))},dependencies:[e.bT,e.QX],styles:[".average[_ngcontent-%COMP%]{color:#00000080}"]})}return i})();var q=a(3919);function tt(i,R){if(1&i&&t.nrm(0,"bkd-dossier-course-tests",11),2&i){const s=t.XpG().$implicit,r=t.XpG(2);t.Y8G("decoratedCourse",s)("studentId",r.studentId)("gradingScales",r.gradingScales)("isEditable",r.isEditable)}}function et(i,R){if(1&i){const s=t.RV6();t.j41(0,"div")(1,"div",4)(2,"div",5,1)(4,"div",6)(5,"bkd-student-dossier-entry-header",7),t.bIt("click",function(){t.eBV(s);const p=t.sdS(3);return t.Njj(p.toggle())}),t.nrm(6,"bkd-dossier-grades-course-header",8),t.k0s()(),t.j41(7,"div",9)(8,"div",10),t.DNE(9,tt,1,4,"ng-template"),t.k0s()()()()()}if(2&i){const s=R.$implicit,r=t.sdS(3);t.R7$(5),t.Y8G("opened",!r.collapsed),t.R7$(),t.Y8G("designation",s.course.Designation)("finalGrade",s.finalGrade)("grading",s.grading)("gradingScale",s.gradingScale)("average",s.average)}}function st(i,R){if(1&i&&(t.qex(0),t.DNE(1,et,10,6,"div",3),t.nI1(2,"async"),t.bVm()),2&i){const s=t.XpG();t.R7$(),t.Y8G("ngForOf",t.bMT(2,2,s.decoratedCoursesSubject$))("ngForTrackBy",s.trackByCourseId)}}function nt(i,R){1&i&&(t.j41(0,"p",12),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&i&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"dossier.no-courses")," "))}let at=(()=>{class i{constructor(s){this.dossierGradeService=s,this.isEditable=!0,this.decoratedCoursesSubject$=new u.t([])}ngOnChanges(){this.decoratedCoursesSubject$.next(this.decorateCourses())}trackByCourseId(s,r){return r.course.Id}decorateCourses(){return this.courses?.map(s=>{const r=this.dossierGradeService.getFinalGradeForStudent(s,this.studentId),p=this.dossierGradeService.getGradesForStudent(s,this.studentId,this.gradingScales);return{course:s,finalGrade:r,grading:this.dossierGradeService.getGradingForStudent(s,this.studentId),gradingScale:this.dossierGradeService.getGradingScaleOfCourse(s,this.gradingScales),average:r?.AverageTestResult||(0,_.L)(p)}})}static#t=this.\u0275fac=function(r){return new(r||i)(t.rXU(b.p))};static#e=this.\u0275cmp=t.VBU({type:i,selectors:[["bkd-dossier-grades-view"]],inputs:{courses:"courses",studentId:"studentId",gradingScales:"gradingScales",isEditable:"isEditable"},standalone:!0,features:[t.OA$,t.aNF],decls:3,vars:2,consts:[["noCourses",""],["courses","ngbAccordionItem"],[4,"ngIf","ngIfElse"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngbAccordion",""],["ngbAccordionItem",""],["ngbAccordionHeader",""],[3,"click","opened"],[3,"designation","finalGrade","grading","gradingScale","average"],["ngbAccordionCollapse",""],["ngbAccordionBody",""],[3,"decoratedCourse","studentId","gradingScales","isEditable"],["data-testid","message-no-courses",1,"py-3"]],template:function(r,p){if(1&r&&t.DNE(0,st,3,4,"ng-container",2)(1,nt,3,3,"ng-template",null,0,t.C5r),2&r){let j;const U=t.sdS(2);t.Y8G("ngIf",(null!==(j=null==p.courses?null:p.courses.length)&&void 0!==j?j:0)>0)("ngIfElse",U)}},dependencies:[e.bT,e.pM,n.r6,n.tW,n.x7,q.$,Z,n.$R,n.UA,z,e.Jj,l.h,l.D9]})}return i})()},4456:(F,S,a)=>{a.d(S,{uz:()=>g,ae:()=>M,NL:()=>v,MA:()=>x});var e=a(5783),n=a(5306),l=a(9573),u=a(838);const _=e.NW({Id:e.Yj,TestId:e.ai,CourseRegistrationId:e.ai,GradeId:(0,n.c$)(e.ai),GradeValue:(0,n.c$)(e.ai),GradeDesignation:(0,n.c$)(e.Yj),Points:(0,n.c$)(e.ai),StudentId:e.ai}),d=e.NW({Id:e.ai,CourseId:e.ai,Date:n.iC,Designation:e.Yj,Weight:e.ai,WeightPercent:e.ai,IsPointGrading:e.zM,MaxPoints:(0,n.c$)(e.ai),MaxPointsAdjusted:(0,n.c$)(e.ai),IsPublished:e.zM,IsOwner:e.zM,Owner:(0,n.c$)(e.Yj),GradingScaleId:(0,n.c$)(e.ai),Results:(0,n.c$)(e.YO(_))}),f=e.NW({Id:e.ai}),h=e.OH({HRef:(0,n.c$)(e.Yj)}),C=e.OH({HasEvaluationStarted:e.zM,EvaluationUntil:(0,n.c$)(n.iC),HasReviewOfEvaluationStarted:e.zM,HasTestGrading:e.zM,Id:e.ai}),$=e.E$([f,h,C]),t=e.OH({Id:e.ai,StudentCount:e.ai}),E=e.E$([f,h,t]),D=e.NW({Grade:e.Yj,AverageTestResult:e.ai,Id:e.ai,StudentId:e.ai}),v=e.NW({AverageTestResult:e.ai,CanGrade:e.zM,EventId:e.ai,GradeId:(0,n.c$)(e.ai),GradeValue:(0,n.c$)(e.ai),Id:e.ai,StudentId:e.ai}),M=e.NW({HRef:e.Yj,Id:e.ai,Number:e.Yj,Designation:e.Yj,DateFrom:(0,n.c$)(n.iC),DateTo:(0,n.c$)(n.iC),StatusId:e.ai,GradingScaleId:(0,n.c$)(e.ai),FinalGrades:(0,n.c$)(e.YO(D)),Gradings:(0,n.c$)(e.YO(v)),Tests:(0,n.c$)(e.YO(d)),EvaluationStatusRef:$,AttendanceRef:E,ParticipatingStudents:(0,n.c$)(e.YO(l.o)),Classes:(0,n.c$)(e.YO(u.i))}),x=e.NW({TestResults:e.YO(_),Gradings:e.YO(v)}),g=e.NW({Gradings:e.YO(v)})},5666:(F,S,a)=>{a.d(S,{H:()=>n});var e=a(5783);const n=e.NW({Key:e.KC([e.ai,e.Yj]),Value:e.Yj})},838:(F,S,a)=>{a.d(S,{i:()=>n});var e=a(5783);const n=e.NW({Id:e.ai,Designation:e.Yj,StudentCount:e.ai,Number:e.Yj})},1015:(F,S,a)=>{a.d(S,{n:()=>_,t:()=>u});var e=a(5783),n=a(5306),l=a(5666);const u=e.NW({Id:e.Yj,SubscriptionId:e.ai,VssId:e.ai,EventId:e.ai,DropdownItems:(0,n.c$)(e.YO(l.H)),IdPerson:e.ai,ShowAsRadioButtons:e.zM,Value:(0,n.c$)(e.Yj)}),_=e.NW({Id:e.ai,CurrentWorkProgressId:(0,n.c$)(e.Yj||(0,n.c$)(e.ai)),EventId:(0,n.c$)(e.ai),PersonId:(0,n.c$)(e.ai),Status:e.Yj,StatusId:(0,n.c$)(e.ai),IsOkay:(0,n.c$)(e.zM),IsQueued:(0,n.c$)(e.zM),EventDesignation:(0,n.c$)(e.Yj),EventInformation:(0,n.c$)(e.Yj||e.ai),EventNotes:(0,n.c$)(e.Yj||e.ai),CheckPersonalInformation:(0,n.c$)(e.zM),CorrespondencePersonId:(0,n.c$)(e.ai),CorrespondenceAddressTypeId:(0,n.c$)(e.Yj||e.ai),Billing1PersonId:(0,n.c$)(e.ai),Billing1AddressTypeId:(0,n.c$)(e.Yj||e.ai),Billing2PersonId:(0,n.c$)(e.Yj||e.ai),Billing2AddressTypeId:(0,n.c$)(e.Yj||e.ai),KindOfPaymentId1:(0,n.c$)(e.Yj||e.ai),KindOfPaymentEmail1:(0,n.c$)(e.Yj||e.ai),KindOfPaymentId2:(0,n.c$)(e.Yj||e.ai),KindOfPaymentEmail2:(0,n.c$)(e.Yj||e.ai),IdObject:(0,n.c$)(e.ai),IdSubscription:(0,n.c$)(e.ai),IdStatus:(0,n.c$)(e.ai),AnsweredQuestions:(0,n.c$)(e.Yj||e.ai),Messages:(0,n.c$)(e.Yj||e.ai),SubscriptionDetails:(0,n.c$)(e.YO(u)),HRef:(0,n.c$)(e.Yj)})},9082:(F,S,a)=>{a.d(S,{jr:()=>u,rv:()=>_,yk:()=>d});var e=a(177),n=a(4438);const l="1-3",u="\u2013";let _=(()=>{class h{constructor($){this.locale=$}transform($,t,E){const D=Number($??null);return isNaN(D)?u:d(Number($??null),E??this.locale,t)}static#t=this.\u0275fac=function(t){return new(t||h)(n.rXU(n.xe9,16))};static#e=this.\u0275pipe=n.EJ8({name:"decimalOrDash",type:h,pure:!0,standalone:!0})}return h})();function d(h,C,$){return 0===h?u:(0,e.ZV)(h,C,`1.${function f(h){return h?String(h).includes("-")?String(h):`${h}-${h}`:l}($)}`)}},855:(F,S,a)=>{a.d(S,{y:()=>l});var e=a(4438),n=a(1324);let l=(()=>{class u{constructor(d){this.modal=d}open(...d){const f=this.modal.open(...d);return this.applyPortalOffsetAndMaxHeight(f),this.disablePortalScrolling(f),f}get activeInstances(){return this.modal.activeInstances}dismissAll(...d){return this.modal.dismissAll(...d)}hasOpenModals(...d){return this.modal.hasOpenModals(...d)}applyPortalOffsetAndMaxHeight(d){const f=this.getModalWindowElement(d);f?this.portalWindow&&(f.style.top=`${this.getModalIframeOffset()}px`,f.style.maxHeight=`${this.getModalHeight()}px`):console.warn("Trying to apply portal offset to , but element is not present!")}disablePortalScrolling(d){this.portalWindow&&this.portalDocument&&(this.portalDocument.style.paddingRight=this.portalWindow.innerWidth-this.portalDocument.clientWidth+"px",this.portalDocument.style.overflow="hidden"),d.hidden.subscribe(()=>{this.portalDocument&&(this.portalDocument.style.paddingRight="0px",this.portalDocument.style.overflow="auto")})}getModalWindowElement(d){return d._windowCmptRef?.instance?._elRef?.nativeElement??null}getModalIframeOffset(){return Math.max(this.getViewportTop()-this.getIframeTop(),0)}getIframeTop(){return this.portalQuerySelector("bkd-content")?.shadowRoot?.querySelector("iframe")?.offsetTop??0}getIFrameBottom(){const d=this.portalQuerySelector("bkd-content")?.shadowRoot?.querySelector("iframe");return d?d.offsetTop+d.offsetHeight:0}getModalTop(){return Math.max(this.getViewportTop(),this.getIframeTop())}getModalBottom(){return Math.min(this.getViewportBottom(),this.getIFrameBottom())}getModalHeight(){return this.getModalBottom()-this.getModalTop()}getViewportTop(){return this.portalWindow?.scrollY??0}getViewportBottom(){return this.getViewportTop()+this.getViewportHeight()}getViewportHeight(){return this.portalWindow?.innerHeight??0}portalQuerySelector(d){return this.portalWindow?.document?.querySelector("bkd-portal")?.shadowRoot?.querySelector(d)??null}get portalDocument(){return this.portalWindow?.document.documentElement??null}get portalWindow(){return window.parent===window?null:window.parent}static#t=this.\u0275fac=function(f){return new(f||u)(e.KVO(n.Bq))};static#e=this.\u0275prov=e.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})()},5449:(F,S,a)=>{a.d(S,{I:()=>v});var e=a(5783),n=a(5558),l=a(6354),u=a(7673),_=a(8810),d=a(2809),f=a(4456),h=a(785),C=a(4297),$=a(5437),t=a(6952),E=a(4438),D=a(1626);let v=(()=>{class M extends t.G{constructor(g,o){super(g,o,f.ae,"Courses"),this.statusCodec=e.NW((0,$.U)(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,n.n)((0,h.k$)(this.statusCodec)),(0,l.T)(g=>g.filter(o=>!0===o.EvaluationStatusRef.HasEvaluationStarted)),(0,l.T)(g=>g.length))}getExpandedCourses(g){return(0,C.h)(g,"TeacherRole")?this.http.get(`${this.baseUrl}/?expand=EvaluationStatusRef,AttendanceRef,Classes,FinalGrades&filter.StatusId=;${this.settings.eventlist.statusfilter}`,{headers:{"X-Role-Restriction":"TeacherRole"}}).pipe((0,n.n)((0,h.k$)(f.ae))):(0,u.of)([])}getExpandedCourse(g){return this.http.get(`${this.baseUrl}/${g}?expand=ParticipatingStudents,EvaluationStatusRef,Tests,Gradings,FinalGrades,Classes`).pipe((0,n.n)((0,h.D4)(f.ae)))}getExpandedCoursesForDossier(){return this.http.get(`${this.baseUrl}/?expand=Tests,Gradings,FinalGrades,EvaluationStatusRef,ParticipatingStudents,Classes&filter.StatusId=;${this.settings.eventlist.statusfilter}`).pipe((0,n.n)((0,h.k$)(f.ae)))}getExpandedCoursesForStudent(){return this.http.get(`${this.baseUrl}/?expand=Tests,Gradings,FinalGrades&filter.StatusId=;${this.settings.eventlist.statusfilter}`,{headers:{"X-Role-Restriction":"StudentRole"}}).pipe((0,n.n)((0,h.k$)(f.ae)))}add(g,o,c,m,O,T,I){return this.http.put(`${this.baseUrl}/${g}/Tests/New`,{Tests:[{Date:o,Designation:c,Weight:m,IsPointGrading:O,MaxPoints:T,MaxPointsAdjusted:I}]}).pipe((0,l.T)(()=>{}))}update(g,o,c,m,O,T,I,P){return this.http.put(`${this.baseUrl}/${g}/Tests/Update`,{Tests:[{Id:o,Designation:c,Date:m,Weight:O,IsPointGrading:T,MaxPoints:I,MaxPointsAdjusted:P}]}).pipe((0,l.T)(()=>{}))}delete(g,o){return this.http.put(`${this.baseUrl}/${g}/Tests/Delete`,{TestIds:[o]}).pipe((0,l.T)(()=>o))}updateTestResult(g,o){const{studentId:c,testId:m,...O}=o,T={StudentIds:[c],TestId:m},I="gradeId"in O?{...T,GradeId:O.gradeId}:{...T,Points:O.points};return this.http.put(`${this.baseUrl}/${g}/SetTestResult`,I).pipe((0,n.n)((0,h.D4)(f.MA)),(0,n.n)(({TestResults:P,Gradings:y})=>P.length<=1&&1===y.length?(0,u.of)({courseId:g,testResult:P[0]??null,grading:y[0]}):(0,_.$)(()=>new Error("`TestResults` or `Gradings` does not contain a single value"))))}setAverageAsFinalGrade(g){return this.http.put(`${this.baseUrl}/SetAverageTestResult`,g).pipe((0,n.n)((0,h.D4)(f.uz)))}publishTest(g){return this.http.put(`${this.baseUrl}/PublishTest`,{TestIds:[g]}).pipe((0,l.T)(()=>g))}unpublishTest(g){return this.http.put(`${this.baseUrl}/UnpublishTest`,{TestIds:[g]}).pipe((0,l.T)(()=>g))}static#t=this.\u0275fac=function(o){return new(o||M)(E.KVO(D.Qq),E.KVO(d.yy))};static#e=this.\u0275prov=E.jDH({token:M,factory:M.\u0275fac,providedIn:"root"})}return M})()},8958:(F,S,a)=>{a.d(S,{p:()=>c});var e=a(2771),n=a(3294),l=a(5558),u=a(6354),_=a(4668),d=a(7786),f=a(4572),h=a(7468),C=a(2816),$=a(2809),t=a(7113),E=a(9728),D=a(4438),v=a(5449),M=a(1937),x=a(5507),g=a(2673),o=a(1763);let c=(()=>{class m{constructor(T,I,P,y,A,B){this.coursesRestService=T,this.subscriptionRestService=I,this.reportsService=P,this.loadingService=y,this.gradingScalesRestService=A,this.settings=B,this.studentId$=new e.m(1),this.initialStudentCourses$=this.studentId$.pipe((0,n.F)(),(0,l.n)(this.loadCourses.bind(this)),(0,u.T)(G=>G.sort((b,W)=>b.Designation.localeCompare(W.Designation))),(0,_.t)(1)),this.action$=new e.m(1),this.studentCourses$=(0,d.h)(this.action$,this.initialStudentCourses$.pipe((0,u.T)(G=>({type:"initializeCourses",payload:G})))).pipe((0,C.S)(this.coursesReducer.bind(this),[]),(0,_.t)(1)),this.loading$=this.loadingService.loading$,this.studentCourseIds$=this.studentCourses$.pipe((0,u.T)(G=>G.flatMap(b=>b.Id))),this.idSubscriptions$=(0,f.z)([this.studentId$,this.studentCourseIds$]).pipe((0,l.n)(([G,b])=>this.subscriptionRestService.getIdSubscriptionsByStudentAndCourse(G,b))),this.ids$=this.idSubscriptions$.pipe((0,u.T)(G=>G.map(b=>b.Id))),this.testReports$=this.ids$.pipe((0,u.T)(G=>this.reportsService.getTeacherSubscriptionReports(G))),this.tests$=this.studentCourses$.pipe((0,u.T)(G=>G.flatMap(b=>b.Tests).filter(E.TM))),this.gradingScaleIdsFromTests$=this.tests$.pipe((0,u.T)(G=>[...G.map(b=>b.GradingScaleId)].filter(E.TM).filter(E.Am))),this.gradingScaleIdsFromCourses$=this.studentCourses$.pipe((0,u.T)(G=>G.flatMap(b=>b.GradingScaleId).filter(E.TM).filter(E.Am))),this.gradingScaleIds$=(0,f.z)([this.gradingScaleIdsFromCourses$,this.gradingScaleIdsFromTests$]).pipe((0,u.T)(([G,b])=>G.concat(b).filter(E.Am))),this.gradingScales$=this.gradingScaleIds$.pipe((0,l.n)(G=>(0,h.p)(G.map(b=>this.gradingScalesRestService.getGradingScale(b)))))}setStudentId(T){this.studentId$.next(T)}getFinalGradeForStudent(T,I){return T?.FinalGrades?.find(P=>P.StudentId===I)}getGradingForStudent(T,I){return T?.Gradings?.find(P=>P.StudentId===I)}getGradingScaleOfCourse(T,I){return I?.find(P=>P.Id===T.GradingScaleId)}getGradesForStudent(T,I,P){return T.Tests?.flatMap(y=>({value:Number((0,t.Eq)(y,P)?.Grades.find(B=>B.Id===(0,t.m_)(I,y)?.GradeId)?.Designation),weight:y.Weight})).filter(({value:y})=>!!y)||[]}updateStudentCourses(T){this.action$.next({type:"updateCourses",payload:T})}loadCourses(T){return this.loadingService.load(this.coursesRestService.getExpandedCoursesForDossier().pipe((0,u.T)(I=>I.filter(P=>P.ParticipatingStudents?.find(y=>y.Id===T)))))}coursesReducer(T,I){switch(I.type){case"initializeCourses":return I.payload;case"updateCourses":return this.updateCourses([...T],I.payload);default:return T}}updateCourses(T,I){return T.map(P=>({...P,Tests:null!==P.Tests?P.Tests.map(y=>y.Id===I.Id?I:y):null}))}static#t=this.\u0275fac=function(I){return new(I||m)(D.KVO(v.I),D.KVO(M.u),D.KVO(x.P),D.KVO(g.U),D.KVO(o.T),D.KVO($.yy))};static#e=this.\u0275prov=D.jDH({token:m,factory:m.\u0275fac})}return m})()},1763:(F,S,a)=>{a.d(S,{T:()=>t});var e=a(5558),n=a(7468),l=a(2809),u=a(5783);const _=u.NW({Id:u.ai,Designation:u.Yj}),d=u.NW({Id:u.ai,Grades:u.YO(_)});var f=a(785),h=a(6952),C=a(4438),$=a(1626);let t=(()=>{class E extends h.G{constructor(v,M){super(v,M,d,"GradingScales")}getGradingScale(v){return this.http.get(`${this.baseUrl}/${v}`).pipe((0,e.n)((0,f.D4)(d)))}getGradingScales(v){return(0,n.p)(v.map(this.getGradingScale.bind(this)))}static#t=this.\u0275fac=function(M){return new(M||E)(C.KVO($.Qq),C.KVO(l.yy))};static#e=this.\u0275prov=C.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})()},1937:(F,S,a)=>{a.d(S,{u:()=>h});var e=a(5558),n=a(2809),l=a(1015),u=a(785),_=a(6952),d=a(4438),f=a(1626);let h=(()=>{class C extends _.G{constructor(t,E){super(t,E,l.t,"Subscriptions")}getIdSubscriptionsByStudentAndCourse(t,E){return this.http.get(`${this.settings.apiUrl}/Subscriptions/?filter.PersonId==${t}&filter.EventId=;${E}`).pipe((0,e.n)((0,u.k$)(l.n)))}static#t=this.\u0275fac=function(E){return new(E||C)(d.KVO(f.Qq),d.KVO(n.yy))};static#e=this.\u0275prov=d.jDH({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})()},9736:(F,S,a)=>{function e(_){return 0===_.length?0:l(_.map(({value:d,weight:f})=>d*f))/l(_.map(({weight:d})=>d))}function n(_){return 0===_.length?0:Number(l(_)/_.length)}function l(_){return _.reduce(u,0)}function u(_,d){return _+d}a.d(S,{G:()=>n,L:()=>e})},4297:(F,S,a)=>{function e(l,u){return n(l).includes(u)}function n(l){return l?l.split(";"):[]}a.d(S,{O:()=>n,h:()=>e})},152:(F,S,a)=>{a.d(S,{B:()=>u});var e=a(3236),n=a(9974),l=a(4360);function u(_,d=e.E){return(0,n.N)((f,h)=>{let C=null,$=null,t=null;const E=()=>{if(C){C.unsubscribe(),C=null;const v=$;$=null,h.next(v)}};function D(){const v=t+_,M=d.now();if(M{$=v,t=d.now(),C||(C=d.schedule(D,_),h.add(C))},()=>{E(),h.complete()},void 0,()=>{$=C=null}))})}}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/165.js b/public/apps/webapp-schulverwaltung/165.js deleted file mode 100644 index 74183236..00000000 --- a/public/apps/webapp-schulverwaltung/165.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[165],{8667:(b,g,t)=>{t.d(g,{Z:()=>P});var a=t(177),u=t(1324),p=t(1195),r=t(4438);function E(d,A){if(1&d&&(r.j41(0,"a",2)(1,"i",3),r.EFF(2,"description"),r.k0s()()),2&d){const o=r.XpG();r.AVh("disabled",o.disableIfUnavailable&&0===o.reports.length),r.Y8G("href",o.reports.length>0&&o.reports[0].url,r.B4B)}}function l(d,A){if(1&d){const o=r.RV6();r.j41(0,"button",8),r.bIt("click",function(){const M=r.eBV(o).$implicit,L=r.XpG(2);return r.Njj(L.openReport(M))}),r.EFF(1),r.k0s()}if(2&d){const o=A.$implicit;r.R7$(),r.SpI(" ",o.title," ")}}function m(d,A){if(1&d&&(r.j41(0,"div",4)(1,"a",5)(2,"i",3),r.EFF(3,"description"),r.k0s()(),r.j41(4,"div",6),r.DNE(5,l,2,1,"button",7),r.k0s()()),2&d){const o=r.XpG();r.R7$(),r.Y8G("id",o.dropdownId),r.R7$(3),r.BMQ("aria-labelledby",o.dropdownId),r.R7$(),r.Y8G("ngForOf",o.reports)}}let P=(()=>{class d{constructor(){this.reports=[],this.disableIfUnavailable=!1,this.dropdownId=(0,p.A)("reports-link-dropdown")}openReport(o){window.open(o.url,"_blank")}static#n=this.\u0275fac=function(O){return new(O||d)};static#t=this.\u0275cmp=r.VBU({type:d,selectors:[["bkd-reports-link"]],inputs:{reports:"reports",disableIfUnavailable:"disableIfUnavailable"},standalone:!0,features:[r.aNF],decls:2,vars:2,consts:[["class","btn btn-primary btn-icon","target","_blank",3,"href","disabled",4,"ngIf"],["ngbDropdown","","class","d-inline-block",4,"ngIf"],["target","_blank",1,"btn","btn-primary","btn-icon",3,"href"],[1,"material-icons"],["ngbDropdown","",1,"d-inline-block"],["ngbDropdownToggle","",1,"btn","btn-primary","btn-icon","d-flex","align-items-center",3,"id"],["ngbDropdownMenu",""],["ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["ngbDropdownItem","",3,"click"]],template:function(O,M){1&O&&r.DNE(0,E,3,3,"a",0)(1,m,6,3,"div",1),2&O&&(r.Y8G("ngIf",1===M.reports.length||0===M.reports.length&&M.disableIfUnavailable),r.R7$(),r.Y8G("ngIf",M.reports.length>1))},dependencies:[a.bT,u.tg,u.do,u.U0,a.pM,u.Eu,u._H],styles:["a[_ngcontent-%COMP%]{text-decoration:none;color:#fff}"]})}return d})()},1517:(b,g,t)=>{t.d(g,{t:()=>u});var a=t(4438);let u=(()=>{class p{constructor(){}static#n=this.\u0275fac=function(l){return new(l||p)};static#t=this.\u0275cmp=a.VBU({type:p,selectors:[["bkd-spinner"]],standalone:!0,features:[a.aNF],decls:4,vars:0,consts:[[1,"spinner-container"],["role","status",1,"spinner-border"],[1,"visually-hidden"]],template:function(l,m){1&l&&(a.j41(0,"div",0)(1,"div",1)(2,"span",2),a.EFF(3,"Loading..."),a.k0s()()())},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 p})()},7887:(b,g,t)=>{t.d(g,{N:()=>p});var a=t(4438);class u{constructor(){this.$implicit=null,this.bkdLet=null}}let p=(()=>{class r{set bkdLet(l){this.context.$implicit=this.context.bkdLet=l}constructor(l,m){this.vcr=l,this.templateRef=m,this.context=new u}ngOnInit(){this.vcr.createEmbeddedView(this.templateRef,this.context)}static#n=this.\u0275fac=function(m){return new(m||r)(a.rXU(a.c1b),a.rXU(a.C4Q))};static#t=this.\u0275dir=a.FsC({type:r,selectors:[["","bkdLet",""]],inputs:{bkdLet:"bkdLet"},standalone:!0})}return r})()},2673:(b,g,t)=>{t.d(g,{U:()=>M});var a=t(1413),u=t(3984),p=t(2771),r=t(2816),E=t(9172),l=t(6354),m=t(3294),P=t(8141),d=t(980),A=t(172),o=t(4438);const O="default";let M=(()=>{class I{constructor(){this.action$=new a.B,this.loadingCounts$=(0,u.x)(this.action$.pipe((0,r.S)((f,{action:v,context:R})=>{switch(v){case"increment":return f[R]=(f[R]||0)+1,f;case"decrement":return f[R]=Math.max(0,(f[R]||0)-1),f;default:return f}},{}),(0,E.Z)({})),{connector:()=>new p.m(1)}),this.loading$=this.loading(),this.loadingCountsSub=this.loadingCounts$.connect()}ngOnDestroy(){this.loadingCountsSub.unsubscribe()}loading(f=O){return this.loadingCounts$.pipe((0,l.T)(v=>v[f]),(0,l.T)(L),(0,m.F)())}load(f,v=O){const R="string"==typeof v?v:v.context||O,B="object"==typeof v&&v.stopOnFirstValue||!1,x=this.decrementLoadingCount(R);let y=!0;return f.pipe((0,A.iA)(this.incrementLoadingCount(R)),B?(0,P.M)(function c(){y&&(x(),y=!1)}):(0,d.j)(x))}incrementLoadingCount(f){return()=>this.action$.next({action:"increment",context:f})}decrementLoadingCount(f){return()=>this.action$.next({action:"decrement",context:f})}static#n=this.\u0275fac=function(v){return new(v||I)};static#t=this.\u0275prov=o.jDH({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})();function L(I){return 0!==(I||0)}},6952:(b,g,t)=>{t.d(g,{G:()=>p});var a=t(5558),u=t(785);class p{constructor(E,l,m,P){this.http=E,this.settings=l,this.codec=m,this.resourcePath=P}get(E,l){return this.http.get(`${this.baseUrl}/${E}`,l).pipe((0,a.n)((0,u.D4)(this.codec)))}getList(E){return this.http.get(`${this.baseUrl}/`,E).pipe((0,a.n)((0,u.k$)(this.codec)))}get baseUrl(){return`${this.settings.apiUrl}/${this.resourcePath}`}}},172:(b,g,t)=>{t.d(g,{Sq:()=>K,Jh:()=>R,$m:()=>x,iA:()=>v,i7:()=>B,Qr:()=>y});var a=t(1626),u=t(7673),p=t(8810),r=t(9030),E=t(7786),l=t(3726),m=t(3236),P=t(1584),A=t(9437),o=t(6354),O=t(9901),M=t(5558),L=t(9172),I=t(3993);function K(c){return(0,A.W)(_=>_ instanceof a.yz&&404===_.status?(0,u.of)(c||null):(0,p.$)(()=>_))}function v(c){return _=>(0,r.v)(()=>(c(),_))}function R(c){return _=>_.pipe((0,o.T)(C=>C??c),(0,O.U)(c))}function B(c,_){return c.pipe((0,M.n)(C=>_.pipe((0,L.Z)(C),(0,o.T)(()=>C))))}function x(c,_=window.document){return(0,E.h)(...["click","keydown"].map(C=>(0,l.R)(_,C))).pipe((0,L.Z)(null),(0,M.n)(()=>function d(c=0,_=m.E){return c<0&&(c=0),(0,P.O)(c,c,_)}(c)),(0,o.T)(()=>{}))}function y(c,_){return(0,E.h)(c,_.pipe((0,I.E)(c),(0,o.T)(([C,$])=>$)))}},3984:(b,g,t)=>{t.d(g,{x:()=>E});var a=t(1413),u=t(1985),p=t(9030);const r={connector:()=>new a.B,resetOnDisconnect:!0};function E(l,m=r){let P=null;const{connector:d,resetOnDisconnect:A=!0}=m;let o=d();const O=new u.c(M=>o.subscribe(M));return O.connect=()=>((!P||P.closed)&&(P=(0,p.v)(()=>l).subscribe(o),A&&P.add(()=>o=d())),P),O}},5405:(b,g,t)=>{t.d(g,{A:()=>Ln});var a=t(5401),u=t(6155);var m=t(554);const d=function P(n){return n==n&&!(0,m.A)(n)};var A=t(2662);const L=function M(n,e){return function(s){return null!=s&&s[n]===e&&(void 0!==e||n in Object(s))}},K=function I(n){var e=function o(n){for(var e=(0,A.A)(n),s=e.length;s--;){var i=e[s],h=n[i];e[s]=[i,h,d(h)]}return e}(n);return 1==e.length&&e[0][2]?L(e[0][0],e[0][1]):function(s){return s===n||function E(n,e,s,i){var h=s.length,D=h,T=!i;if(null==n)return!D;for(n=Object(n);h--;){var U=s[h];if(T&&U[2]?U[1]!==n[U[0]]:!(U[0]in n))return!1}for(;++h{t.d(g,{A:()=>r});var a=t(5402),u=0;const r=function p(E){var l=++u;return(0,a.A)(E)+l}}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/201.js b/public/apps/webapp-schulverwaltung/201.js deleted file mode 100644 index e24d4458..00000000 --- a/public/apps/webapp-schulverwaltung/201.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[201],{1861:(F,I,o)=>{o.d(I,{V:()=>m});var c=o(177),y=o(9417),D=o(1324),d=o(3955),C=o(1195),g=o(4412),O=o(6354),P=o(3294),M=o(5558),b=o(980),E=o(152),K=o(5964),N=o(9728),r=o(4438);function _(v,B){if(1&v){const s=r.RV6();r.j41(0,"button",6),r.bIt("click",function(f){r.eBV(s);const H=r.XpG();return r.Njj(H.modelChange(f))}),r.j41(1,"i",2),r.EFF(2,"clear"),r.k0s()()}}function W(v,B){1&v&&(r.j41(0,"div",7)(1,"div",8)(2,"span",9),r.EFF(3,"Loading..."),r.k0s()()())}let m=(()=>{class v{constructor(){this.selectedItem$=new g.t(null),this.placeholder="shared.typeahead.default-placeholder",this.valueChange=this.selectedItem$.pipe((0,O.T)(s=>s?s.Key:null),(0,P.F)()),this.componentId=(0,C.A)("bkd-typeahead-"),this.loading$=new g.t(!1),this.search=s=>s.pipe(function R(v,B){return s=>s.pipe((0,E.B)(B),(0,O.T)($),(0,P.F)(),(0,K.p)((0,N.NT)(v)))}(3,300),(0,M.n)(this.fetchItems.bind(this)))}ngOnChanges(s){s.value&&s.value.currentValue&&s.value.currentValue!==this.selectedItemKey&&this.fetchItem(s.value.currentValue).subscribe(U=>{this.modelChange(U)})}format(s){return s.Value}modelChange(s){this.selectedItem$.next(s instanceof Object?s:null)}get selectedItemKey(){return this.selectedItem$.value?this.selectedItem$.value.Key:null}fetchItems(s){return this.loading$.next(!0),this.typeaheadService.getTypeaheadItems(s,this.additionalHttpParams).pipe((0,b.j)(()=>this.loading$.next(!1)))}fetchItem(s){return this.loading$.next(!0),this.typeaheadService.getTypeaheadItemByKey(s).pipe((0,b.j)(()=>this.loading$.next(!1)))}static#t=this.\u0275fac=function(U){return new(U||v)};static#e=this.\u0275cmp=r.VBU({type:v,selectors:[["bkd-typeahead"]],inputs:{typeaheadService:"typeaheadService",placeholder:"placeholder",value:"value",additionalHttpParams:"additionalHttpParams"},outputs:{valueChange:"valueChange"},standalone:!0,features:[r.OA$,r.aNF],decls:11,vars:18,consts:[[1,"input-group"],[1,"input-group-text",3,"id"],[1,"material-icons"],["type","text",1,"form-control",3,"ngModelChange","ngbTypeahead","inputFormatter","resultFormatter","ngModel"],["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(U,f){1&U&&(r.j41(0,"div",0)(1,"span",1)(2,"i",2),r.EFF(3,"search"),r.k0s()(),r.j41(4,"input",3),r.nI1(5,"async"),r.nI1(6,"translate"),r.nI1(7,"translate"),r.bIt("ngModelChange",function(j){return f.modelChange(j)}),r.k0s(),r.DNE(8,_,3,0,"button",4),r.k0s(),r.DNE(9,W,4,0,"div",5),r.nI1(10,"async")),2&U&&(r.R7$(),r.Y8G("id",f.componentId),r.R7$(3),r.Y8G("ngbTypeahead",f.search)("inputFormatter",f.format)("resultFormatter",f.format)("ngModel",r.bMT(5,10,f.selectedItem$)),r.BMQ("placeholder",r.bMT(6,12,f.placeholder))("aria-label",r.bMT(7,14,f.placeholder))("aria-describedby",f.componentId),r.R7$(4),r.Y8G("ngIf",f.value),r.R7$(),r.Y8G("ngIf",r.bMT(10,16,f.loading$)))},dependencies:[D.$n,y.YN,y.me,y.BC,y.vS,c.bT,c.Jj,d.h,d.D9],styles:["[_nghost-%COMP%]{display:block;position:relative;background:#fff}.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 v})();function $(v){return v.trim().toLowerCase()}},2612:(F,I,o)=>{o.d(I,{e:()=>_});var c=o(5783),y=o(983),D=o(7673),d=o(5558),C=o(6354),g=o(2809);const O=c.NW({Id:c.ai,Designation:c.Yj,Number:c.Yj});var P=o(785),M=o(5437),b=o(6952),E=o(4438),K=o(1626),N=o(3955),r=o(5889);let _=(()=>{class W extends b.G{constructor(S,m,R,$){super(S,m,O,"EducationalEvents"),this.translate=R,this.toastService=$,this.typeaheadCodec=c.NW((0,M.U)(this.codec.props,["Id","Designation","Number"]))}getTypeaheadItems(S){return this.http.get(`${this.baseUrl}/CurrentSemester`,{params:{fields:["Id","Designation","Number"].join(","),"filter.Designation":`~*${S}*`}}).pipe((0,d.n)((0,P.k$)(this.typeaheadCodec)),(0,C.T)(m=>m.map(R=>({Key:R.Id,Value:`${R.Designation} (${R.Number})`}))))}getTypeaheadItemByKey(S){return this.http.get(`${this.baseUrl}/CurrentSemester`,{params:{fields:["Id","Designation","Number"].join(","),"filter.Id":`=${S}`}}).pipe((0,d.n)((0,P.k$)(this.typeaheadCodec)),(0,d.n)(m=>0===m.length?(this.toastService.error(this.translate.instant("global.rest-errors.notfound-message"),this.translate.instant("global.rest-errors.notfound-title")),y.w):(0,D.of)({Key:m[0].Id,Value:`${m[0].Designation} (${m[0].Number})`})))}static#t=this.\u0275fac=function(m){return new(m||W)(E.KVO(K.Qq),E.KVO(g.yy),E.KVO(N.c$),E.KVO(r.f))};static#e=this.\u0275prov=E.jDH({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})()},9483:(F,I,o)=>{o.d(I,{r:()=>P});var c=o(5558),y=o(2809),D=o(838),d=o(785),C=o(3220),g=o(4438),O=o(1626);let P=(()=>{class M extends C.X{constructor(E,K){super(E,K,D.i,"StudyClasses","Number")}getActive(){return this.http.get(`${this.baseUrl}/?filter.IsActive==true`,{headers:{"X-Role-Restriction":"ClassTeacherRole"}}).pipe((0,c.n)((0,d.k$)(D.i)))}getActiveFormativeAssessments(){return this.http.get(`${this.baseUrl}/FormativeAssessments?filter.IsActive==true`,{headers:{"X-Role-Restriction":"ClassTeacherRole"}}).pipe((0,c.n)((0,d.k$)(D.i)))}static#t=this.\u0275fac=function(K){return new(K||M)(g.KVO(O.Qq),g.KVO(y.yy))};static#e=this.\u0275prov=g.jDH({token:M,factory:M.\u0275fac,providedIn:"root"})}return M})()},1369:(F,I,o)=>{o.d(I,{G:()=>y});var c=o(4903);function y(d){return Object.keys(d).reduce((C,g)=>{const O=function D(d){return d?d instanceof Date?(0,c.GP)(d,"yyyy-MM-dd"):String(d):null}(d[g]);return O?{...C,[g]:O}:C},{})}},6820:(F,I,o)=>{o.d(I,{DP:()=>dt,eO:()=>ht});var c=o(4438),y=o(7673),D=o(3726),d=o(1397),C=o(6354),g=o(8141),O=o(5964),P=o(3236),M=o(9974),b=o(4360),E=o(8750),N=o(1584);function W(t,e,n,i){const l=window&&!!window.document&&window.document.documentElement;let a=l&&e?window:n;if(t&&(a=t&&l&&"string"==typeof t?function x(t,e,n){return(n?window.document:e).querySelector(t)}(t,n.nativeElement,i):t,!a))throw new Error("ngx-infinite-scroll {resolveContainerElement()}: selector for");return a}function S(t){return t&&!t.firstChange}const R={clientHeight:"clientHeight",offsetHeight:"offsetHeight",scrollHeight:"scrollHeight",pageYOffset:"pageYOffset",offsetTop:"offsetTop",scrollTop:"scrollTop",top:"top"},$={clientHeight:"clientWidth",offsetHeight:"offsetWidth",scrollHeight:"scrollWidth",pageYOffset:"pageXOffset",offsetTop:"offsetLeft",scrollTop:"scrollLeft",top:"left"};class v{constructor(e=!0){this.vertical=e,this.propsMap=e?R:$}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 f(t){return["Window","global"].some(n=>Object.prototype.toString.call(t).includes(n))}function H(t,e){return t?e.document.documentElement:null}function j(t,e){const n=function k({container:t,isWindow:e,axis:n}){const{offsetHeightKey:i,clientHeightKey:l}=Y(n);return z(t,e,i,l)}(e);return e.isWindow?function J(t,e,n){const{axis:i,container:l,isWindow:a}=n,{offsetHeightKey:u,clientHeightKey:T}=Y(i),h=t+G(H(a,l),i,a),p=z(e.nativeElement,a,u,T),w=function q(t,e,n){const i=e.topKey();if(t.getBoundingClientRect)return t.getBoundingClientRect()[i]+G(t,e,n)}(e.nativeElement,i,a)+p;return{height:t,scrolled:h,totalToScroll:w,isWindow:a}}(n,t,e):function Z(t,e,n){const{axis:i,container:l}=n;return{height:t,scrolled:l[i.scrollTopKey()],totalToScroll:l[i.scrollHeightKey()],isWindow:!1}}(n,0,e)}function Y(t){return{offsetHeightKey:t.offsetHeightKey(),clientHeightKey:t.clientHeightKey()}}function z(t,e,n,i){if(isNaN(t[n])){const l=H(e,t);return l?l[i]:0}return t[n]}function G(t,e,n){const i=e.pageYOffsetKey(),l=e.scrollTopKey(),a=e.offsetTopKey();return isNaN(window.pageYOffset)?H(n,t)[l]:t.ownerDocument?t.ownerDocument.defaultView[i]:t[a]}function tt(t,e={down:0,up:0},n){let i,l;if(t.totalToScroll<=0)return!1;const a=t.isWindow?t.scrolled:t.height+t.scrolled;return n?(i=(t.totalToScroll-a)/t.totalToScroll,l=(e?.down?e.down:0)/10):(i=t.scrolled/(t.scrolled+(t.totalToScroll-a)),l=(e?.up?e.up:0)/10),i<=l}class rt{constructor(e){this.lastScrollPosition=0,this.lastTotalToScroll=0,this.totalToScroll=0,this.triggered={down:0,up:0},Object.assign(this,e)}updateScrollPosition(e){return this.lastScrollPosition=e}updateTotalToScroll(e){this.lastTotalToScroll!==e&&(this.lastTotalToScroll=this.totalToScroll,this.totalToScroll=e)}updateScroll(e,n){this.updateScrollPosition(e),this.updateTotalToScroll(n)}updateTriggeredFlag(e,n){n?this.triggered.down=e:this.triggered.up=e}isTriggeredScroll(e,n){return n?this.triggered.down===e:this.triggered.up===e}}function lt(t){const{scrollContainer:e,scrollWindow:n,element:i,fromRoot:l}=t,a=function s({windowElement:t,axis:e}){return function U(t,e){const n=t.isWindow||e&&!e.nativeElement?e:e.nativeElement;return{...t,container:n}}({axis:e,isWindow:f(t)},t)}({axis:new v(!t.horizontal),windowElement:W(e,n,i,l)}),u=new rt({totalToScroll:j(i,a).totalToScroll}),h={up:t.upDistance,down:t.downDistance};return function st(t){let e=(0,D.R)(t.container,"scroll");return t.throttle&&(e=e.pipe(function r(t,e=P.E,n){const i=(0,N.O)(t,e);return function K(t,e){return(0,M.N)((n,i)=>{const{leading:l=!0,trailing:a=!1}=e??{};let u=!1,T=null,h=null,p=!1;const w=()=>{h?.unsubscribe(),h=null,a&&(Q(),p&&i.complete())},V=()=>{h=null,p&&i.complete()},X=A=>h=(0,E.Tg)(t(A)).subscribe((0,b._)(i,w,V)),Q=()=>{if(u){u=!1;const A=T;T=null,i.next(A),!p&&X(A)}};n.subscribe((0,b._)(i,A=>{u=!0,T=A,(!h||h.closed)&&(l?Q():X(A))},()=>{p=!0,(!(a&&u&&h)||h.closed)&&i.complete()}))})}(()=>i,n)}(t.throttle,void 0,{leading:!0,trailing:!0}))),e}({container:a.container,throttle:t.throttle}).pipe((0,d.Z)(()=>(0,y.of)(j(i,a))),(0,C.T)(p=>function at(t,e,n){const{scrollDown:i,fire:l}=function nt(t,e,n){const i=function et(t,e){return tu.updateScroll(p.scrolled,p.totalToScroll)),(0,O.p)(({fire:p,scrollDown:w,stats:{totalToScroll:V}})=>function B(t,e,n){return!!(t&&e||!n&&e)}(t.alwaysCallback,p,u.isTriggeredScroll(V,w))),(0,g.M)(({scrollDown:p,stats:{totalToScroll:w}})=>{u.updateTriggeredFlag(w,p)}),(0,C.T)(ct))}const L={DOWN:"[NGX_ISE] DOWN",UP:"[NGX_ISE] UP"};function ct(t){const{scrollDown:e,stats:{scrolled:n}}=t;return{type:e?L.DOWN:L.UP,payload:{currentScrollPosition:n}}}let dt=(()=>{class t{constructor(n,i){this.element=n,this.zone=i,this.scrolled=new c.bkB,this.scrolledUp=new c.bkB,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:n,infiniteScrollDisabled:i,infiniteScrollDistance:l}){const a=S(n),u=S(i),T=S(l),h=!u&&!this.infiniteScrollDisabled||u&&!i.currentValue||T;(a||u||T)&&(this.destroyScroller(),h&&this.setup())}setup(){(function m(){return typeof window<"u"})()&&this.zone.runOutsideAngular(()=>{this.disposeScroller=lt({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(n=>this.handleOnScroll(n))})}handleOnScroll({type:n,payload:i}){const l=n===L.DOWN?this.scrolled:this.scrolledUp;(function ut(t){return t.observed??t.observers.length>0})(l)&&this.zone.run(()=>l.emit(i))}ngOnDestroy(){this.destroyScroller()}destroyScroller(){this.disposeScroller&&this.disposeScroller.unsubscribe()}static#t=this.\u0275fac=function(i){return new(i||t)(c.rXU(c.aKT),c.rXU(c.SKi))};static#e=this.\u0275dir=c.FsC({type:t,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:[c.OA$]})}return t})(),ht=(()=>{class t{static#t=this.\u0275fac=function(i){return new(i||t)};static#e=this.\u0275mod=c.$C({type:t});static#n=this.\u0275inj=c.G2t({})}return t})()}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/240.js b/public/apps/webapp-schulverwaltung/240.js deleted file mode 100644 index 7a95c394..00000000 --- a/public/apps/webapp-schulverwaltung/240.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[240],{9240:(K,C,a)=>{a.r(C),a.d(C,{DASHBOARD_ROUTES:()=>ee});var M=a(6407),b=a(177),p=a(3955),v=a(1517),$=a(7887),T=a(2809),y=a(5539),t=a(4438);const S=["*"];function E(e,r){1&e&&t.eu8(0)}function P(e,r){if(1&e&&(t.j41(0,"a",4),t.DNE(1,E,1,0,"ng-container",5),t.k0s()),2&e){const n=t.XpG(),s=t.sdS(3);t.Y8G("routerLink",n.link)("queryParams",n.linkParams),t.R7$(),t.Y8G("ngTemplateOutlet",s)}}function O(e,r){1&e&&t.eu8(0)}function k(e,r){if(1&e&&(t.j41(0,"a",6),t.DNE(1,O,1,0,"ng-container",5),t.k0s()),2&e){const n=t.XpG(),s=t.sdS(3);t.Y8G("href",n.externalLink,t.B4B),t.R7$(),t.Y8G("ngTemplateOutlet",s)}}function i(e,r){if(1&e&&(t.j41(0,"span",9),t.EFF(1),t.k0s()),2&e){const n=t.XpG(2);t.R7$(),t.JRh(n.count)}}function x(e,r){1&e&&(t.qSk(),t.j41(0,"svg",10),t.nrm(1,"path",11),t.k0s())}function F(e,r){if(1&e&&(t.j41(0,"span",7),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.j41(3,"div"),t.SdG(4),t.DNE(5,i,2,1,"span",8)(6,x,2,0,"ng-template",null,1,t.C5r),t.k0s()),2&e){const n=t.sdS(7),s=t.XpG();t.R7$(),t.JRh(t.bMT(2,3,s.label)),t.R7$(4),t.Y8G("ngIf",s.hasCount(s.count))("ngIfElse",n)}}let A=(()=>{class e{constructor(){}hasCount(n){return"number"==typeof n&&n>=0}static#t=this.\u0275fac=function(s){return new(s||e)};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["bkd-dashboard-action"]],inputs:{label:"label",count:"count",link:"link",linkParams:"linkParams",externalLink:"externalLink"},standalone:!0,features:[t.aNF],ngContentSelectors:S,decls:4,vars:2,consts:[["actionContent",""],["icon",""],[3,"routerLink","queryParams",4,"ngIf"],[3,"href",4,"ngIf"],[3,"routerLink","queryParams"],[4,"ngTemplateOutlet"],[3,"href"],[1,"label"],["class","count",4,"ngIf","ngIfElse"],[1,"count"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none"],["fill","currentColor","d","m12 20-1.425-1.4 5.6-5.6H4v-2h12.175l-5.6-5.6L12 4l8 8-8 8Z"]],template:function(s,o){1&s&&(t.NAR(),t.DNE(0,P,2,3,"a",2)(1,k,2,2,"a",3)(2,F,8,5,"ng-template",null,0,t.C5r)),2&s&&(t.Y8G("ngIf",!o.externalLink),t.R7$(),t.Y8G("ngIf",o.externalLink))},dependencies:[b.bT,y.Wk,b.T3,p.h,p.D9],styles:["a[_ngcontent-%COMP%]{display:flex;gap:1rem;justify-content:space-between;align-items:center;padding:1rem 1.5rem;background:#f7e9d2;text-decoration:none;line-height:1}a[_ngcontent-%COMP%]:hover{background:#f2e0c3}a[_ngcontent-%COMP%]:focus-visible{outline-width:2px;outline-offset:-2px}div[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:1rem}.label[_ngcontent-%COMP%]{font-weight:400}.count[_ngcontent-%COMP%]{font-size:1.5rem}"]})}return e})();var L=a(8676);let j=(()=>{class e{constructor(){}static#t=this.\u0275fac=function(s){return new(s||e)};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["bkd-dashboard-deadline"]],inputs:{count:"count"},standalone:!0,features:[t.aNF],decls:3,vars:8,template:function(s,o){1&s&&(t.EFF(0),t.nI1(1,"translate"),t.nI1(2,"addSpace")),2&s&&t.E5c("",t.bMT(1,3,"dashboard.actions.deadline"),"",t.i5U(2,5,": ",":"),"",o.count,"\n")},dependencies:[p.h,p.D9,L.c],styles:["[_nghost-%COMP%]{background:#ea161f;color:#fff;white-space:nowrap;font-weight:500;font-size:.875rem;min-height:1.5rem;display:flex;padding:.375rem .5rem;align-items:center;border-radius:2.5rem}"]})}return e})();var G=a(2771),g=a(5558),d=a(4668),l=a(6354),c=a(7673),f=a(9172),m=a(4572),D=a(9728),R=a(3515),U=a(9067),N=a(2949),J=a(5449),Y=a(5783);const z=Y.NW({Id:Y.ai,Holder:Y.Yj});var H=a(6952),W=a(1626);let w=(()=>{class e extends H.G{constructor(n,s){super(n,s,z,"TeacherSubstitutions")}getTeacherSubstitution(n){return this.getList({params:{"filter.Id":`=${n}`}}).pipe((0,l.T)(s=>s[0]||null))}static#t=this.\u0275fac=function(s){return new(s||e)(t.KVO(W.Qq),t.KVO(T.yy))};static#e=this.\u0275prov=t.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Q=a(4688),Z=a(4599);const q=["LessonTeacherRole","ClassTeacherRole","TeacherRole","AbsenceAdministratorRole"],tt=["LessonTeacherRole","TeacherRole","StudentRole","SubstituteAdministratorRole"],et=["LessonTeacherRole","StudentRole"];let I=(()=>{class e{constructor(n,s,o,u,_,ne,se,ae){this.settingsService=n,this.lessonPresencesService=s,this.studentsService=o,this.courseService=u,this.teacherSubstitutionService=_,this.personService=ne,this.storageService=se,this.settings=ae,this.rolesAndPermissions$=this.settingsService.getRolesAndPermissions(),this.studentId$=new G.m(1),this.lessonAbsences$=this.studentId$.pipe((0,g.n)(h=>this.studentsService.getLessonAbsences(h)),(0,d.t)(1)),this.lessonIncidents$=this.studentId$.pipe((0,g.n)(h=>this.studentsService.getLessonIncidents(h)),(0,d.t)(1)),this.loading$=this.rolesAndPermissions$.pipe((0,l.T)(h=>null==h)),this.hasSearch$=this.rolesAndPermissions$.pipe((0,l.T)(this.hasRoles(q))),this.hasActions$=this.rolesAndPermissions$.pipe((0,l.T)(this.hasRoles(tt))),this.hasTimetable$=this.rolesAndPermissions$.pipe((0,l.T)(this.hasRoles(et))),this.hasLessonTeacherRole$=this.rolesAndPermissions$.pipe((0,l.T)(this.hasRoles(["LessonTeacherRole"])),(0,d.t)(1)),this.hasTeacherRole$=this.rolesAndPermissions$.pipe((0,l.T)(this.hasRoles(["TeacherRole"])),(0,d.t)(1)),this.hasStudentRole$=this.rolesAndPermissions$.pipe((0,l.T)(this.hasRoles(["StudentRole"])),(0,d.t)(1)),this.hasSubstituteAdministratorRole$=this.rolesAndPermissions$.pipe((0,l.T)(this.hasRoles(["SubstituteAdministratorRole"])),(0,d.t)(1)),this.editAbsencesCount$=this.hasLessonTeacherRole$.pipe((0,g.n)(h=>h?this.lessonPresencesService.checkableAbsencesCount():(0,c.of)(!1)),(0,d.t)(1)),this.openAbsencesCount$=this.rolesAndPermissions$.pipe((0,l.T)(this.hasRoles(["LessonTeacherRole","ClassTeacherRole"])),(0,g.n)(h=>h?this.lessonPresencesService.getListOfUnconfirmed():(0,c.of)([])),(0,l.T)(h=>h.length),(0,d.t)(1)),this.myAbsencesCount$=this.hasStudentRole$.pipe((0,g.n)(h=>h?this.getMyAbsences():(0,c.of)([])),(0,l.T)(this.getMyAbsencesCount.bind(this)),(0,d.t)(1)),this.coursesToRateCount$=this.courseService.getNumberOfCoursesForRating().pipe((0,f.Z)(0),(0,d.t)(1)),this.hasPresenceControl$=this.hasLessonTeacherRole$.pipe((0,g.n)(h=>h?this.lessonPresencesService.hasLessonsLessonTeacher():(0,c.of)(!1)),(0,d.t)(1)),this.hasOpenAbsences$=this.openAbsencesCount$.pipe((0,l.T)(h=>h>0),(0,d.t)(1)),this.editAbsencesParams$=this.getFullName().pipe((0,l.T)(h=>({confirmationStates:this.settings.checkableAbsenceStateId,teacher:h})),(0,d.t)(1));const X=this.storageService.getPayload()?.id_person;X&&this.studentId$.next(Number(X))}hasRoles(n){return s=>(s??[]).some(o=>n.includes(o))}getMyAbsences(){return(0,m.z)([this.studentId$,this.lessonAbsences$,this.lessonIncidents$]).pipe((0,g.n)(([n,s,o])=>this.loadTimetableEntries(n,s,o).pipe((0,l.T)(u=>[...s,...o].map(_=>this.withTimetableEntry(_,u)).filter(D.TM)))))}getMyAbsencesCount(n){return n?.filter(s=>("ConfirmationStateId"in s?s.ConfirmationStateId:null)===this.settings.unconfirmedAbsenceStateId).length||0}getFullName(){const n=Number(this.storageService.getPayload()?.substitution_id)||null;return n?this.teacherSubstitutionService.getTeacherSubstitution(n).pipe((0,l.T)(s=>s?.Holder)):this.personService.getMyself().pipe((0,l.T)(s=>s.FullName))}withTimetableEntry(n,s){return s.find(o=>o.Id===n.LessonRef.Id)?n:null}loadTimetableEntries(n,s,o){return this.studentsService.getTimetableEntries(n,{"filter.Id":`;${[...s,...o].map(u=>u.LessonRef.Id).join(";")}`})}static#t=this.\u0275fac=function(s){return new(s||e)(t.KVO(R.A),t.KVO(U.g),t.KVO(N.y),t.KVO(J.I),t.KVO(w),t.KVO(Q.a),t.KVO(Z.n),t.KVO(T.yy))};static#e=this.\u0275prov=t.jDH({token:e,factory:e.\u0275fac})}return e})();const nt=()=>["/presence-control"],st=()=>["/edit-absences"],at=()=>["/open-absences"],ot=()=>["/events"],it=()=>["/my-absences","report"],rt=()=>["/my-absences"];function ct(e,r){1&e&&t.nrm(0,"bkd-dashboard-action",4),2&e&&t.Y8G("label","dashboard.actions.presence-control")("link",t.lJ4(2,nt))}function dt(e,r){if(1&e&&(t.nrm(0,"bkd-dashboard-action",5),t.nI1(1,"async"),t.nI1(2,"async")),2&e){const n=t.XpG();t.Y8G("label","dashboard.actions.edit-absences")("link",t.lJ4(8,st))("linkParams",t.bMT(1,4,n.dashboardService.editAbsencesParams$))("count",t.bMT(2,6,n.dashboardService.editAbsencesCount$))}}function lt(e,r){if(1&e&&(t.nrm(0,"bkd-dashboard-action",6),t.nI1(1,"async")),2&e){const n=t.XpG();t.Y8G("label","dashboard.actions.open-absences")("link",t.lJ4(5,at))("count",t.bMT(1,3,n.dashboardService.openAbsencesCount$))}}function ht(e,r){if(1&e&&(t.nrm(0,"bkd-dashboard-deadline",8),t.nI1(1,"async")),2&e){const n=t.XpG(2);t.Y8G("count",t.bMT(1,1,n.dashboardService.coursesToRateCount$))}}function bt(e,r){if(1&e&&(t.j41(0,"bkd-dashboard-action",4),t.DNE(1,ht,2,3,"bkd-dashboard-deadline",7),t.nI1(2,"async"),t.k0s()),2&e){let n;const s=t.XpG();t.Y8G("label","dashboard.actions.tests")("link",t.lJ4(5,ot)),t.R7$(),t.Y8G("ngIf",null!==(n=t.bMT(2,3,s.dashboardService.coursesToRateCount$))&&void 0!==n&&n)}}function mt(e,r){1&e&&t.nrm(0,"bkd-dashboard-action",4),2&e&&t.Y8G("label","dashboard.actions.my-absences-report")("link",t.lJ4(2,it))}function ut(e,r){if(1&e&&(t.nrm(0,"bkd-dashboard-action",6),t.nI1(1,"async")),2&e){const n=t.XpG();t.Y8G("label","dashboard.actions.my-absences")("link",t.lJ4(5,rt))("count",t.bMT(1,3,n.dashboardService.myAbsencesCount$))}}function pt(e,r){if(1&e&&t.nrm(0,"bkd-dashboard-action",9),2&e){const n=t.XpG();t.Y8G("label","dashboard.actions.substitutions")("externalLink",n.substitutionsAdminLink)}}let gt=(()=>{class e{constructor(n,s){this.dashboardService=n,this.settings=s}get substitutionsAdminLink(){return this.settings.dashboard.substitutionsAdminLink}static#t=this.\u0275fac=function(s){return new(s||e)(t.rXU(I),t.rXU(T.yy))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["bkd-dashboard-actions"]],standalone:!0,features:[t.aNF],decls:15,vars:23,consts:[[3,"label","link",4,"ngIf"],[3,"label","link","linkParams","count",4,"ngIf"],[3,"label","link","count",4,"ngIf"],[3,"label","externalLink",4,"ngIf"],[3,"label","link"],[3,"label","link","linkParams","count"],[3,"label","link","count"],[3,"count",4,"ngIf"],[3,"count"],[3,"label","externalLink"]],template:function(s,o){1&s&&(t.DNE(0,ct,1,3,"bkd-dashboard-action",0),t.nI1(1,"async"),t.DNE(2,dt,3,9,"bkd-dashboard-action",1),t.nI1(3,"async"),t.nI1(4,"async"),t.DNE(5,lt,2,6,"bkd-dashboard-action",2),t.nI1(6,"async"),t.DNE(7,bt,3,6,"bkd-dashboard-action",0),t.nI1(8,"async"),t.DNE(9,mt,1,3,"bkd-dashboard-action",0),t.nI1(10,"async"),t.DNE(11,ut,2,6,"bkd-dashboard-action",2),t.nI1(12,"async"),t.DNE(13,pt,1,2,"bkd-dashboard-action",3),t.nI1(14,"async")),2&s&&(t.Y8G("ngIf",t.bMT(1,7,o.dashboardService.hasPresenceControl$)),t.R7$(2),t.Y8G("ngIf",t.bMT(3,9,o.dashboardService.hasLessonTeacherRole$)&&t.bMT(4,11,o.dashboardService.editAbsencesParams$)),t.R7$(3),t.Y8G("ngIf",t.bMT(6,13,o.dashboardService.hasOpenAbsences$)),t.R7$(2),t.Y8G("ngIf",t.bMT(8,15,o.dashboardService.hasTeacherRole$)),t.R7$(2),t.Y8G("ngIf",t.bMT(10,17,o.dashboardService.hasStudentRole$)),t.R7$(2),t.Y8G("ngIf",t.bMT(12,19,o.dashboardService.hasStudentRole$)),t.R7$(2),t.Y8G("ngIf",t.bMT(14,21,o.dashboardService.hasSubstituteAdministratorRole$)))},dependencies:[b.bT,A,j,b.Jj],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:.5rem}"]})}return e})();var ft=a(1861);let _t=(()=>{class e{constructor(n,s){this.studentsRestService=n,this.router=s}navigateToDossier(n){const s=Number(n);this.router.navigate(["dashboard","student",s,"addresses"])}static#t=this.\u0275fac=function(s){return new(s||e)(t.rXU(N.y),t.rXU(y.Ix))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["bkd-dashboard-search"]],standalone:!0,features:[t.aNF],decls:1,vars:2,consts:[[3,"valueChange","typeaheadService","placeholder"]],template:function(s,o){1&s&&(t.j41(0,"bkd-typeahead",0),t.bIt("valueChange",function(_){return _&&o.navigateToDossier(_)}),t.k0s()),2&s&&t.Y8G("typeaheadService",o.studentsRestService)("placeholder","dashboard.search.placeholder")},dependencies:[ft.V],styles:["[_nghost-%COMP%]{display:block;padding:.75rem;background:#f7e9d2}"]})}return e})();var B=a(3601),Tt=a(7165),yt=a(906),vt=a(4903),V=a(4412),It=a(8141),Ct=a(1037),Mt=a(345);let $t=(()=>{class e{constructor(n){this.sanitizer=n}transform(n,s){switch(s){case"html":return this.sanitizer.bypassSecurityTrustHtml(n);case"style":return this.sanitizer.bypassSecurityTrustStyle(n);case"script":return this.sanitizer.bypassSecurityTrustScript(n);case"url":return this.sanitizer.bypassSecurityTrustUrl(n);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(n);default:throw new Error(`Invalid safe type specified: ${s}`)}}static#t=this.\u0275fac=function(s){return new(s||e)(t.rXU(Mt.up,16))};static#e=this.\u0275pipe=t.EJ8({name:"safe",type:e,pure:!0,standalone:!0})}return e})();function Et(e,r){1&e&&(t.j41(0,"th"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"dashboard.timetable.table.teacher")," "))}function Dt(e,r){1&e&&(t.j41(0,"th"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"dashboard.timetable.table.room")," "))}function Rt(e,r){if(1&e&&(t.j41(0,"a",12),t.EFF(1),t.j41(2,"span",13),t.EFF(3),t.k0s()()),2&e){const n=t.XpG().$implicit,s=t.XpG(2);t.Y8G("href",s.buildLink(n.eventId),t.B4B),t.R7$(),t.SpI(" ",n.subject,""),t.R7$(2),t.SpI(", ",n.studyClass,"")}}function St(e,r){if(1&e&&t.EFF(0),2&e){const n=t.XpG().$implicit;t.SpI(" ",n.subject," ")}}function Pt(e,r){if(1&e&&(t.j41(0,"td",14),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(),t.Lme(" ",t.bMT(2,2,"dashboard.timetable.table.study-class"),": ",n.studyClass," ")}}function Ot(e,r){if(1&e&&(t.j41(0,"td",15),t.EFF(1),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(),t.SpI(" ",n.teacher," ")}}function kt(e,r){1&e&&(t.j41(0,"span",18),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"dashboard.timetable.table.room")))}function xt(e,r){if(1&e&&(t.j41(0,"td",16),t.DNE(1,kt,3,3,"span",17),t.EFF(2),t.k0s()),2&e){const n=t.XpG().$implicit;t.R7$(),t.Y8G("ngIf",n.room),t.R7$(),t.SpI(" ",n.room," ")}}function Ft(e,r){if(1&e&&(t.j41(0,"tr")(1,"td",6),t.EFF(2),t.nI1(3,"date"),t.nI1(4,"date"),t.k0s(),t.j41(5,"td",7),t.DNE(6,Rt,4,3,"a",8),t.nI1(7,"async"),t.DNE(8,St,1,1,"ng-template",null,1,t.C5r),t.k0s(),t.DNE(10,Pt,3,4,"td",9),t.nI1(11,"async"),t.DNE(12,Ot,2,1,"td",10),t.nI1(13,"async"),t.DNE(14,xt,3,2,"td",11),t.nI1(15,"async"),t.k0s()),2&e){const n=r.$implicit,s=t.sdS(9),o=t.XpG(2);t.R7$(2),t.Lme(" ",t.i5U(3,7,n.from,"HH:mm"),"\u2013",t.i5U(4,10,n.until,"HH:mm")," "),t.R7$(4),t.Y8G("ngIf",t.bMT(7,13,o.isTeacher$))("ngIfElse",s),t.R7$(4),t.Y8G("ngIf",t.bMT(11,15,o.isTeacher$)),t.R7$(2),t.Y8G("ngIf",t.bMT(13,17,o.isStudent$)),t.R7$(2),t.Y8G("ngIf",t.bMT(15,19,o.isStudent$))}}function At(e,r){if(1&e&&(t.j41(0,"table",3)(1,"thead")(2,"tr")(3,"th"),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.j41(6,"th"),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.DNE(9,Et,3,3,"th",4),t.nI1(10,"async"),t.DNE(11,Dt,3,3,"th",4),t.nI1(12,"async"),t.k0s()(),t.j41(13,"tbody"),t.DNE(14,Ft,16,21,"tr",5),t.k0s()()),2&e){const n=t.XpG();t.R7$(4),t.JRh(t.bMT(5,5,"dashboard.timetable.table.time")),t.R7$(3),t.JRh(t.bMT(8,7,"dashboard.timetable.table.subject")),t.R7$(2),t.Y8G("ngIf",t.bMT(10,9,n.isStudent$)),t.R7$(2),t.Y8G("ngIf",t.bMT(12,11,n.isStudent$)),t.R7$(3),t.Y8G("ngForOf",n.entries)}}function Lt(e,r){1&e&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.JRh(t.bMT(2,1,"dashboard.timetable.no-entries")))}let jt=(()=>{class e{constructor(n,s){this.dashboardService=n,this.settings=s,this.entries=[],this.isStudent$=this.dashboardService.hasStudentRole$,this.isTeacher$=this.dashboardService.hasLessonTeacherRole$}buildLink(n){return this.settings.eventlist.eventdetail.replace(":id",String(n))}static#t=this.\u0275fac=function(s){return new(s||e)(t.rXU(I),t.rXU(T.yy))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["bkd-dashboard-timetable-table"]],inputs:{entries:"entries"},standalone:!0,features:[t.aNF],decls:3,vars:2,consts:[["noEntries",""],["noLink",""],["class","table",4,"ngIf","ngIfElse"],[1,"table"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"time"],[1,"subject"],["target","_parent",3,"href",4,"ngIf","ngIfElse"],["class","study-class",4,"ngIf"],["class","teacher",4,"ngIf"],["class","room",4,"ngIf"],["target","_parent",3,"href"],[1,"subject-study-class"],[1,"study-class"],[1,"teacher"],[1,"room"],["class","room-label",4,"ngIf"],[1,"room-label"]],template:function(s,o){if(1&s&&t.DNE(0,At,15,13,"table",2)(1,Lt,3,3,"ng-template",null,0,t.C5r),2&s){const u=t.sdS(2);t.Y8G("ngIf",o.entries.length>0)("ngIfElse",u)}},dependencies:[b.bT,b.pM,b.Jj,b.vh,p.h,p.D9],styles:['td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:1rem 1.75rem}.room-label[_ngcontent-%COMP%], td.study-class[_ngcontent-%COMP%]{display:none}@media (max-width: 767.98px){table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{display:none}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{border-top:1px solid var(--bs-border-color)}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;grid-template-areas:"time room" "subject subject" "study-class study-class" "teacher teacher";gap:.5rem;padding:1rem;border-bottom:1px solid var(--bs-border-color)}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:0;padding:0}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td.time[_ngcontent-%COMP%]{grid-area:time;font-size:.875rem;line-height:1.125rem;font-weight:300}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td.subject[_ngcontent-%COMP%]{grid-area:subject;font-size:1rem;line-height:1.25rem;font-weight:400}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td.teacher[_ngcontent-%COMP%]{grid-area:teacher;font-size:.8125rem;line-height:1.0625rem;font-weight:300}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td.room[_ngcontent-%COMP%]{grid-area:room;text-align:right;font-size:.875rem;line-height:1.125rem;font-weight:300}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td.study-class[_ngcontent-%COMP%]{grid-area:study-class;font-size:.8125rem;line-height:1.0625rem;font-weight:300}td.study-class[_ngcontent-%COMP%]{display:block}.subject-study-class[_ngcontent-%COMP%]{display:none}.room-label[_ngcontent-%COMP%]{display:inline}}']})}return e})();function Gt(e,r){1&e&&(t.j41(0,"a",9),t.nI1(1,"safe"),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&e&&(t.Y8G("href",t.i5U(1,2,r.ngIf,"url"),t.B4B),t.R7$(2),t.SpI(" ",t.bMT(3,5,"dashboard.timetable.subscribe-calendar")," "))}function Nt(e,r){1&e&&(t.j41(0,"a",13),t.nI1(1,"safe"),t.EFF(2),t.nI1(3,"translate"),t.k0s()),2&e&&(t.Y8G("href",t.i5U(1,2,r.ngIf,"url"),t.B4B),t.R7$(2),t.SpI(" ",t.bMT(3,5,"dashboard.timetable.subscribe-calendar")," "))}function Yt(e,r){if(1&e&&(t.qex(0),t.nrm(1,"bkd-dashboard-timetable-table",11),t.DNE(2,Nt,4,7,"a",12),t.nI1(3,"async"),t.bVm()),2&e){const n=t.XpG().bkdLet,s=t.XpG();t.R7$(),t.Y8G("entries",n),t.R7$(),t.Y8G("ngIf",t.bMT(3,2,s.getSubscribeCalendarUrl()))}}function Ut(e,r){if(1&e&&(t.qex(0),t.DNE(1,Yt,4,4,"ng-container",10),t.nI1(2,"async"),t.bVm()),2&e){const n=t.XpG(),s=t.sdS(21);t.R7$(),t.Y8G("ngIf",!1===t.bMT(2,2,n.loading$))("ngIfElse",s)}}function Bt(e,r){1&e&&t.nrm(0,"bkd-spinner")}let Xt=(()=>{class e{constructor(n,s,o,u){this.studentsService=n,this.lessonPresencesService=s,this.userSettings=o,this.dashboardService=u,this.studentId$=this.dashboardService.studentId$,this.isTeacher$=this.dashboardService.hasLessonTeacherRole$,this.isStudent$=this.dashboardService.hasStudentRole$,this.date$=new V.t((0,B.o)(new Date)),this.loading$=new V.t(!0),this.timetableEntries$=this.loadTimetableEntries()}gotoToday(){this.loading$.next(!0),this.date$.next((0,B.o)(new Date))}gotoPreviousDay(){this.loading$.next(!0),this.date$.next((0,Tt.e)(this.date$.getValue(),1))}gotoNextDay(){this.loading$.next(!0),this.date$.next((0,yt.f)(this.date$.getValue(),1))}getSubscribeCalendarUrl(){return this.userSettings.getSetting("cal")}loadTimetableEntries(){return(0,m.z)([this.isTeacher$,this.isStudent$]).pipe((0,g.n)(([n,s])=>n?this.loadTeacherTimetableEntries():s?this.loadStudentTimetableEntries():(0,c.of)([])),(0,It.M)(()=>this.loading$.next(!1)))}loadTeacherTimetableEntries(){return this.date$.pipe((0,g.n)(n=>this.lessonPresencesService.getLessonsByDate(n)),(0,l.T)(Ct.t1),(0,l.T)(n=>n.map(this.convertLesson.bind(this))))}loadStudentTimetableEntries(){return(0,m.z)([this.studentId$,this.date$]).pipe((0,g.n)(([n,s])=>this.studentsService.getTimetableEntries(n,{"filter.From":`=${(0,vt.GP)(s,"yyyy-MM-dd")}`,sort:"From,To"})),(0,l.T)(n=>n.map(this.convertTimetableEntry.bind(this))))}convertLesson(n){return{id:n.LessonRef.Id,from:n.LessonDateTimeFrom,until:n.LessonDateTimeTo,eventId:n.EventRef.Id,subject:n.EventDesignation,studyClass:n.StudyClassNumber}}convertTimetableEntry(n){return{id:n.Id,from:n.From,until:n.To,eventId:n.EventId,subject:n.EventDesignation,room:n.EventLocation||void 0,teacher:n.EventManagerInformation||void 0}}static#t=this.\u0275fac=function(s){return new(s||e)(t.rXU(N.y),t.rXU(U.g),t.rXU(R.A),t.rXU(I))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["bkd-dashboard-timetable"]],standalone:!0,features:[t.aNF],decls:22,vars:21,consts:[["loading",""],[1,"header"],["type","button",1,"btn","btn-primary","today",3,"click"],["type","button",1,"btn","btn-secondary","previous-day",3,"click"],[1,"material-icons"],["type","button",1,"btn","btn-secondary","next-day",3,"click"],[1,"date"],["target","_parent","class","btn btn-secondary subscribe-calendar-header",3,"href",4,"ngIf"],[4,"bkdLet"],["target","_parent",1,"btn","btn-secondary","subscribe-calendar-header",3,"href"],[4,"ngIf","ngIfElse"],[3,"entries"],["target","_parent","class","btn btn-secondary subscribe-calendar-bottom",3,"href",4,"ngIf"],["target","_parent",1,"btn","btn-secondary","subscribe-calendar-bottom",3,"href"]],template:function(s,o){if(1&s){const u=t.RV6();t.j41(0,"div",1)(1,"button",2),t.bIt("click",function(){return t.eBV(u),t.Njj(o.gotoToday())}),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.j41(4,"button",3),t.nI1(5,"translate"),t.bIt("click",function(){return t.eBV(u),t.Njj(o.gotoPreviousDay())}),t.j41(6,"span",4),t.EFF(7,"chevron_left"),t.k0s()(),t.j41(8,"button",5),t.nI1(9,"translate"),t.bIt("click",function(){return t.eBV(u),t.Njj(o.gotoNextDay())}),t.j41(10,"span",4),t.EFF(11,"chevron_right"),t.k0s()(),t.j41(12,"div",6),t.EFF(13),t.nI1(14,"async"),t.nI1(15,"date"),t.k0s(),t.DNE(16,Gt,4,7,"a",7),t.nI1(17,"async"),t.k0s(),t.DNE(18,Ut,3,4,"ng-container",8),t.nI1(19,"async"),t.DNE(20,Bt,1,0,"ng-template",null,0,t.C5r)}2&s&&(t.R7$(2),t.SpI(" ",t.bMT(3,6,"dashboard.timetable.today")," "),t.R7$(2),t.BMQ("aria-label",t.bMT(5,8,"dashboard.timetable.previousDay")),t.R7$(4),t.BMQ("aria-label",t.bMT(9,10,"dashboard.timetable.nextDay")),t.R7$(5),t.JRh(t.i5U(15,14,t.bMT(14,12,o.date$),"E, dd. MMMM yyyy")),t.R7$(3),t.Y8G("ngIf",t.bMT(17,17,o.getSubscribeCalendarUrl())),t.R7$(2),t.Y8G("bkdLet",t.bMT(19,19,o.timetableEntries$)))},dependencies:[b.bT,$.N,jt,v.t,b.Jj,b.vh,p.h,p.D9,$t],styles:["[_nghost-%COMP%]{display:block;margin-bottom:1rem}.header[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:2rem;display:flex;align-items:center;gap:1rem}.previous-day[_ngcontent-%COMP%], .next-day[_ngcontent-%COMP%]{padding-left:.375rem;padding-right:.375rem}.date[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600}.subscribe-calendar-header[_ngcontent-%COMP%]{margin-left:auto}.subscribe-calendar-bottom[_ngcontent-%COMP%]{display:none}a.btn[_ngcontent-%COMP%]{text-decoration:none}@media (max-width: 767.98px){.subscribe-calendar-header[_ngcontent-%COMP%]{display:none}.subscribe-calendar-bottom[_ngcontent-%COMP%]{display:block;margin-top:2rem}}@media (max-width: 767.98px) and (max-width: 575.98px){.header[_ngcontent-%COMP%]{flex-wrap:wrap-reverse}.header[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{width:100%}}"]})}return e})();const Kt=(e,r,n,s)=>({loading:e,hasSearch:r,hasActions:n,hasTimetable:s});function Jt(e,r){1&e&&t.nrm(0,"bkd-spinner")}function zt(e,r){1&e&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&e&&(t.R7$(),t.SpI(" ",t.bMT(2,1,"dashboard.no-access")," "))}function Ht(e,r){1&e&&(t.j41(0,"div")(1,"h2"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"bkd-dashboard-search"),t.k0s()),2&e&&(t.R7$(2),t.JRh(t.bMT(3,1,"dashboard.search.title")))}function Wt(e,r){1&e&&(t.j41(0,"div")(1,"h2"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"bkd-dashboard-actions"),t.k0s()),2&e&&(t.R7$(2),t.JRh(t.bMT(3,1,"dashboard.actions.title")))}function wt(e,r){if(1&e&&(t.j41(0,"div",5),t.DNE(1,Ht,5,3,"div",1)(2,Wt,5,3,"div",1),t.k0s()),2&e){const n=t.XpG().bkdLet;t.R7$(),t.Y8G("ngIf",n.hasSearch),t.R7$(),t.Y8G("ngIf",n.hasActions)}}function Qt(e,r){1&e&&(t.j41(0,"div",6)(1,"h2"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"bkd-dashboard-timetable"),t.k0s()),2&e&&(t.R7$(2),t.JRh(t.bMT(3,1,"dashboard.timetable.title")))}function Zt(e,r){if(1&e&&(t.j41(0,"div")(1,"h1"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.DNE(4,Jt,1,0,"bkd-spinner",1)(5,zt,3,3,"p",1),t.j41(6,"div",2),t.DNE(7,wt,3,2,"div",3)(8,Qt,5,3,"div",4),t.k0s()()),2&e){const n=r.bkdLet;t.R7$(),t.AVh("visually-hidden",n.loading||n.hasSearch||n.hasActions||n.hasTimetable),t.R7$(),t.SpI(" ",t.bMT(3,7,"dashboard.heading")," "),t.R7$(2),t.Y8G("ngIf",n.loading),t.R7$(),t.Y8G("ngIf",!(n.loading||n.hasSearch||n.hasActions||n.hasTimetable)),t.R7$(2),t.Y8G("ngIf",n.hasSearch||n.hasActions),t.R7$(),t.Y8G("ngIf",n.hasTimetable)}}let qt=(()=>{class e{constructor(n){this.dashboardService=n}static#t=this.\u0275fac=function(s){return new(s||e)(t.rXU(I))};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["bkd-dashboard-layout"]],standalone:!0,features:[t.aNF],decls:5,vars:14,consts:[[4,"bkdLet"],[4,"ngIf"],[1,"columns"],["class","search-actions-column",4,"ngIf"],["class","timetable-column",4,"ngIf"],[1,"search-actions-column"],[1,"timetable-column"]],template:function(s,o){1&s&&(t.DNE(0,Zt,9,9,"div",0),t.nI1(1,"async"),t.nI1(2,"async"),t.nI1(3,"async"),t.nI1(4,"async")),2&s&&t.Y8G("bkdLet",t.ziG(9,Kt,t.bMT(1,1,o.dashboardService.loading$),t.bMT(2,3,o.dashboardService.hasSearch$),t.bMT(3,5,o.dashboardService.hasActions$),t.bMT(4,7,o.dashboardService.hasTimetable$)))},dependencies:[$.N,b.bT,v.t,_t,gt,Xt,b.Jj,p.h,p.D9],styles:[".columns[_ngcontent-%COMP%]{display:flex;flex-direction:column}.columns[_ngcontent-%COMP%], .search-actions-column[_ngcontent-%COMP%]{gap:3rem}.search-actions-column[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;max-width:40rem}.timetable-column[_ngcontent-%COMP%]{flex:2}@media (min-width: 992px){.columns[_ngcontent-%COMP%]{flex-direction:row;gap:1.5rem}.search-actions-column[_ngcontent-%COMP%]{max-width:33%}}"],changeDetection:0})}return e})();var te=a(9366);const ee=[{path:"",component:(()=>{class e{constructor(){}static#t=this.\u0275fac=function(s){return new(s||e)};static#e=this.\u0275cmp=t.VBU({type:e,selectors:[["bkd-dashboard"]],standalone:!0,features:[t.Jv_([I,te.s]),t.aNF],decls:1,vars:0,template:function(s,o){1&s&&t.nrm(0,"router-outlet")},dependencies:[y.n3],changeDetection:0})}return e})(),children:[{path:"",component:qt},M.R]}]},1861:(K,C,a)=>{a.d(C,{V:()=>j});var M=a(177),b=a(9417),p=a(1324),v=a(3955),$=a(1195),T=a(4412),y=a(6354),t=a(3294),S=a(5558),E=a(980),P=a(152),O=a(5964),k=a(9728),i=a(4438);function x(d,l){if(1&d){const c=i.RV6();i.j41(0,"button",6),i.bIt("click",function(m){i.eBV(c);const D=i.XpG();return i.Njj(D.modelChange(m))}),i.j41(1,"i",2),i.EFF(2,"clear"),i.k0s()()}}function F(d,l){1&d&&(i.j41(0,"div",7)(1,"div",8)(2,"span",9),i.EFF(3,"Loading..."),i.k0s()()())}let j=(()=>{class d{constructor(){this.selectedItem$=new T.t(null),this.placeholder="shared.typeahead.default-placeholder",this.valueChange=this.selectedItem$.pipe((0,y.T)(c=>c?c.Key:null),(0,t.F)()),this.componentId=(0,$.A)("bkd-typeahead-"),this.loading$=new T.t(!1),this.search=c=>c.pipe(function G(d,l){return c=>c.pipe((0,P.B)(l),(0,y.T)(g),(0,t.F)(),(0,O.p)((0,k.NT)(d)))}(3,300),(0,S.n)(this.fetchItems.bind(this)))}ngOnChanges(c){c.value&&c.value.currentValue&&c.value.currentValue!==this.selectedItemKey&&this.fetchItem(c.value.currentValue).subscribe(f=>{this.modelChange(f)})}format(c){return c.Value}modelChange(c){this.selectedItem$.next(c instanceof Object?c:null)}get selectedItemKey(){return this.selectedItem$.value?this.selectedItem$.value.Key:null}fetchItems(c){return this.loading$.next(!0),this.typeaheadService.getTypeaheadItems(c,this.additionalHttpParams).pipe((0,E.j)(()=>this.loading$.next(!1)))}fetchItem(c){return this.loading$.next(!0),this.typeaheadService.getTypeaheadItemByKey(c).pipe((0,E.j)(()=>this.loading$.next(!1)))}static#t=this.\u0275fac=function(f){return new(f||d)};static#e=this.\u0275cmp=i.VBU({type:d,selectors:[["bkd-typeahead"]],inputs:{typeaheadService:"typeaheadService",placeholder:"placeholder",value:"value",additionalHttpParams:"additionalHttpParams"},outputs:{valueChange:"valueChange"},standalone:!0,features:[i.OA$,i.aNF],decls:11,vars:18,consts:[[1,"input-group"],[1,"input-group-text",3,"id"],[1,"material-icons"],["type","text",1,"form-control",3,"ngModelChange","ngbTypeahead","inputFormatter","resultFormatter","ngModel"],["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(f,m){1&f&&(i.j41(0,"div",0)(1,"span",1)(2,"i",2),i.EFF(3,"search"),i.k0s()(),i.j41(4,"input",3),i.nI1(5,"async"),i.nI1(6,"translate"),i.nI1(7,"translate"),i.bIt("ngModelChange",function(R){return m.modelChange(R)}),i.k0s(),i.DNE(8,x,3,0,"button",4),i.k0s(),i.DNE(9,F,4,0,"div",5),i.nI1(10,"async")),2&f&&(i.R7$(),i.Y8G("id",m.componentId),i.R7$(3),i.Y8G("ngbTypeahead",m.search)("inputFormatter",m.format)("resultFormatter",m.format)("ngModel",i.bMT(5,10,m.selectedItem$)),i.BMQ("placeholder",i.bMT(6,12,m.placeholder))("aria-label",i.bMT(7,14,m.placeholder))("aria-describedby",m.componentId),i.R7$(4),i.Y8G("ngIf",m.value),i.R7$(),i.Y8G("ngIf",i.bMT(10,16,m.loading$)))},dependencies:[p.$n,b.YN,b.me,b.BC,b.vS,M.bT,M.Jj,v.h,v.D9],styles:["[_nghost-%COMP%]{display:block;position:relative;background:#fff}.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 d})();function g(d){return d.trim().toLowerCase()}}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/243.js b/public/apps/webapp-schulverwaltung/243.js deleted file mode 100644 index 9e6a3855..00000000 --- a/public/apps/webapp-schulverwaltung/243.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[243],{8319:(P,p,n)=>{n.r(p),n.d(p,{MY_SETTINGS_ROUTES:()=>z});var a=n(3955),c=n(177),l=n(9417),h=n(7673),m=n(7786),u=n(4412),O=n(1413),v=n(6354),b=n(4668),F=n(5558),R=n(3294),D=n(3993),k=n(5245),C=n(6977),$=n(980),_=n(1517),W=n(7887),t=n(4438),B=n(1195);let j=(()=>{class s{constructor(){this.id=null,this.label=null,this.disabled=!1,this.value=!1,this.valueChange=new t.bkB,this.fallbackId=(0,B.A)("bkd-switch")}static#t=this.\u0275fac=function(i){return new(i||s)};static#n=this.\u0275cmp=t.VBU({type:s,selectors:[["bkd-switch"]],inputs:{id:"id",label:"label",disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange"},standalone:!0,features:[t.aNF],decls:3,vars:5,consts:[["type","checkbox",3,"ngModelChange","disabled","ngModel"]],template:function(i,r){if(1&i&&(t.j41(0,"input",0),t.bIt("ngModelChange",function(I){return r.valueChange.emit(I)}),t.k0s(),t.j41(1,"label"),t.EFF(2),t.k0s()),2&i){let T,I;t.Y8G("disabled",r.disabled)("ngModel",r.value),t.BMQ("id",null!==(T=r.id)&&void 0!==T?T:r.fallbackId),t.R7$(),t.BMQ("for",null!==(I=r.id)&&void 0!==I?I:r.fallbackId),t.R7$(),t.JRh(r.label)}},dependencies:[l.YN,l.Zm,l.BC,l.vS],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:#000;border-radius:14px;transition:.3s}input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{border-color:#000;background:#000}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:#dedede}label[_ngcontent-%COMP%]:active:after{width:18.2px}'],changeDetection:0})}return s})();function Y(s,M){if(1&s&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&s){const e=M.$implicit;t.R7$(),t.SpI(" ",e," ")}}function K(s,M){if(1&s&&(t.j41(0,"div",4),t.DNE(1,Y,2,1,"div",5),t.k0s()),2&s){const e=t.XpG();t.R7$(),t.Y8G("ngForOf",e.descriptionLines)}}let d=(()=>{class s{constructor(e){this.cd=e,this.id="",this.label="",this.description=null,this.disabled=!1,this.onChange=i=>{},this.onTouched=()=>{},this._value=!1}get value(){return this._value}set value(e){this._value=e,this.onChange(e)}get descriptionLines(){return this.description?this.description.split("\n"):[]}writeValue(e){this._value=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}static#t=this.\u0275fac=function(i){return new(i||s)(t.rXU(t.gRc))};static#n=this.\u0275cmp=t.VBU({type:s,selectors:[["bkd-my-settings-notifications-toggle"]],inputs:{id:"id",label:"label",description:"description",disabled:"disabled"},standalone:!0,features:[t.Jv_([{provide:l.kq,useExisting:(0,t.Rfq)(()=>s),multi:!0}]),t.aNF],decls:5,vars:6,consts:[[1,"d-flex","align-items-center"],[1,"flex-fill"],[3,"valueChange","id","value","disabled"],["class","form-text",4,"ngIf"],[1,"form-text"],[4,"ngFor","ngForOf"]],template:function(i,r){1&i&&(t.j41(0,"div",0)(1,"label",1),t.EFF(2),t.k0s(),t.j41(3,"bkd-switch",2),t.mxI("valueChange",function(I){return t.DH7(r.value,I)||(r.value=I),I}),t.k0s()(),t.DNE(4,K,2,1,"div",3)),2&i&&(t.R7$(),t.BMQ("for",r.id),t.R7$(),t.SpI(" ",r.label," "),t.R7$(),t.Y8G("id",r.id),t.R50("value",r.value),t.Y8G("disabled",r.disabled),t.R7$(),t.Y8G("ngIf",r.description))},dependencies:[j,c.bT,c.pM],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return s})();var f=n(3515),o=n(5889),g=n(3460),y=n(2809),E=n(4297),N=n(4599);let x=(()=>{class s{constructor(e,i){this.settings=e,this.storage=i,this.currentRoles=null}getNotificationTypes(){return this.getNotificationTypeKeys().map(e=>{if(!(e in this.settings.notificationTypes))throw new Error(`Key '${e}' is missing in 'notificationTypes' setting`);return{key:e,text:this.settings.notificationTypes[e]}})}getNotificationTypeKeys(){return(0,g.A)(this.settings.notificationTypesAssignments.reduce((e,{roles:i,types:r})=>this.hasAnyRole(i)?[...e,...r]:e,[]))}hasAnyRole(e){return null===this.currentRoles&&(this.currentRoles=(0,E.O)(this.storage.getPayload()?.roles)),this.currentRoles.some(i=>e.includes(i))}static#t=this.\u0275fac=function(i){return new(i||s)(t.KVO(y.yy),t.KVO(N.n))};static#n=this.\u0275prov=t.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();const V=(s,M)=>({channelsFormGroup:s,typesFormGroup:M});function U(s,M){1&s&&(t.j41(0,"div",6),t.nrm(1,"bkd-spinner",7),t.k0s())}function G(s,M){if(1&s&&(t.nrm(0,"bkd-my-settings-notifications-toggle",10),t.nI1(1,"async"),t.nI1(2,"async")),2&s){const e=M.$implicit;t.AVh("mt-4",M.index>0),t.Y8G("id","notification-channels-"+e.key)("label",t.bMT(1,6,e.label))("description",t.bMT(2,8,e.description))("formControlName",e.key)}}function X(s,M){if(1&s&&(t.j41(0,"form",8),t.DNE(1,G,3,10,"bkd-my-settings-notifications-toggle",9),t.k0s()),2&s){const e=t.XpG().bkdLet,i=t.XpG();t.Y8G("formGroup",e.channelsFormGroup),t.R7$(),t.Y8G("ngForOf",i.channelsSettings)}}function A(s,M){if(1&s&&(t.nrm(0,"bkd-my-settings-notifications-toggle",10),t.nI1(1,"async"),t.nI1(2,"async")),2&s){const e=M.$implicit;t.AVh("mt-4",M.index>0),t.Y8G("id","notification-types-"+e.key)("label",t.bMT(1,6,e.label))("description",t.bMT(2,8,e.description))("formControlName",e.key)}}function L(s,M){if(1&s&&(t.j41(0,"form",8),t.DNE(1,A,3,10,"bkd-my-settings-notifications-toggle",9),t.k0s()),2&s){const e=t.XpG().bkdLet,i=t.XpG();t.Y8G("formGroup",e.typesFormGroup),t.R7$(),t.Y8G("ngForOf",i.typesSettings)}}function Q(s,M){if(1&s&&(t.j41(0,"div",1)(1,"h2",2)(2,"span"),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.DNE(5,U,2,0,"div",3),t.nI1(6,"async"),t.k0s(),t.DNE(7,X,2,2,"form",4),t.j41(8,"p",5),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.nrm(11,"hr"),t.DNE(12,L,2,2,"form",4),t.k0s()),2&s){const e=M.bkdLet,i=t.XpG();t.R7$(3),t.JRh(t.bMT(4,5,"my-settings.notifications.title")),t.R7$(2),t.Y8G("ngIf",t.bMT(6,7,i.saving$)),t.R7$(2),t.Y8G("ngIf",e.channelsFormGroup),t.R7$(2),t.SpI(" ",t.bMT(10,9,"my-settings.notifications.privacy-hint")," "),t.R7$(3),t.Y8G("ngIf",e.typesFormGroup)}}let J=(()=>{class s{constructor(e,i,r,T,I){this.userSettings=e,this.formBuilder=i,this.toastService=r,this.translate=T,this.notificationTypes=I,this.channelsSettings=[{key:"gui",label:this.translate.get("my-settings.notifications.gui")},{key:"mail",label:this.translate.get("my-settings.notifications.mail")},{key:"phoneMobile",label:this.translate.get("my-settings.notifications.phoneMobile")}],this.typesSettings=this.notificationTypes.getNotificationTypes().map(S=>{const{label:w,description:q}="fr-CH"===this.translate.currentLang?S.text.fr:S.text.de;return{key:S.key,label:(0,h.of)(w),description:(0,h.of)(q)}}),this.channelsValue$=this.userSettings.getNotificationChannels(),this.typesValue$=this.userSettings.getNotificationTypesInactive().pipe((0,v.T)(this.typesArrayToRecord.bind(this))),this.channelsFormGroup$=this.channelsValue$.pipe((0,v.T)(S=>this.createFormGroup(this.channelsSettings,S)),(0,b.t)(1)),this.allChannelsInactive$=(0,m.h)(this.channelsValue$,this.channelsFormGroup$.pipe((0,F.n)(S=>S.valueChanges))).pipe((0,v.T)(S=>Object.values(S).every(w=>!w)),(0,R.F)()),this.typesFormGroup$=this.typesValue$.pipe((0,D.E)(this.allChannelsInactive$),(0,v.T)(([S,w])=>this.createFormGroup(this.typesSettings,S,!0,w)),(0,b.t)(1)),this.saving$=new u.t(!1),this.destroy$=new O.B}ngOnInit(){this.userSettings.refetch(),this.allChannelsInactive$.pipe((0,k.i)(1),(0,D.E)(this.typesFormGroup$),(0,C.Q)(this.destroy$)).subscribe(([e,i])=>{Object.values(i.controls).forEach(r=>e?r.disable():r.enable())}),this.channelsFormGroup$.pipe((0,C.Q)(this.destroy$),(0,F.n)(e=>e.valueChanges)).subscribe(this.saveChannels.bind(this)),this.typesFormGroup$.pipe((0,C.Q)(this.destroy$),(0,F.n)(e=>e.valueChanges)).subscribe(this.saveTypes.bind(this))}ngOnDestroy(){this.destroy$.next()}createFormGroup(e,i,r=!1,T=!1){return this.formBuilder.group(e.reduce((I,{key:S})=>({...I,[S]:[{value:i[S]??r,disabled:T}]}),{}))}saveChannels(e){this.saving$.next(!0),this.userSettings.saveNotificationChannels(e).pipe((0,$.j)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}saveTypes(e){this.saving$.next(!0),this.userSettings.saveNotificationTypesInactive(this.typesRecordToArray(e)).pipe((0,$.j)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.toastService.success(this.translate.instant("my-settings.notifications.save-success"))}typesArrayToRecord(e){return this.typesSettings.reduce((r,{key:T})=>({...r,[T]:!e.includes(T)}),{})}typesRecordToArray(e){return Object.keys(e).reduce((r,T)=>e[T]?r:[...r,T],[])}static#t=this.\u0275fac=function(i){return new(i||s)(t.rXU(f.A),t.rXU(l.ze),t.rXU(o.f),t.rXU(a.c$),t.rXU(x))};static#n=this.\u0275cmp=t.VBU({type:s,selectors:[["bkd-my-settings-notifications"]],standalone:!0,features:[t.aNF],decls:3,vars:8,consts:[["class","pb-4",4,"bkdLet"],[1,"pb-4"],[1,"m-0","pb-3","d-flex","align-items-stretch"],["class","position-relative",4,"ngIf"],[3,"formGroup",4,"ngIf"],[1,"mt-4","form-text"],[1,"position-relative"],[1,"position-absolute","inline","small","d-inline-block","ms-2"],[3,"formGroup"],[3,"id","label","description","formControlName","mt-4",4,"ngFor","ngForOf"],[3,"id","label","description","formControlName"]],template:function(i,r){1&i&&(t.DNE(0,Q,13,11,"div",0),t.nI1(1,"async"),t.nI1(2,"async")),2&i&&t.Y8G("bkdLet",t.l_i(5,V,t.bMT(1,1,r.channelsFormGroup$),t.bMT(2,3,r.typesFormGroup$)))},dependencies:[W.N,c.bT,_.t,l.YN,l.qT,l.BC,l.cb,l.X1,l.j4,l.JD,c.pM,d,c.Jj,a.h,a.D9],styles:[".checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important}"],changeDetection:0})}return s})(),H=(()=>{class s{static#t=this.\u0275fac=function(i){return new(i||s)};static#n=this.\u0275cmp=t.VBU({type:s,selectors:[["bkd-my-settings-show"]],standalone:!0,features:[t.aNF],decls:5,vars:3,consts:[[1,"bkd-container","bkd-container-limited"]],template:function(i,r){1&i&&(t.j41(0,"div",0)(1,"h1"),t.EFF(2),t.nI1(3,"translate"),t.k0s(),t.nrm(4,"bkd-my-settings-notifications"),t.k0s()),2&i&&(t.R7$(2),t.JRh(t.bMT(3,1,"my-settings.title")))},dependencies:[J,a.h,a.D9]})}return s})();var Z=n(5539);const z=[{path:"",component:(()=>{class s{constructor(){}static#t=this.\u0275fac=function(i){return new(i||s)};static#n=this.\u0275cmp=t.VBU({type:s,selectors:[["bkd-my-settings"]],standalone:!0,features:[t.aNF],decls:1,vars:0,template:function(i,r){1&i&&t.nrm(0,"router-outlet")},dependencies:[Z.n3],changeDetection:0})}return s})(),children:[{path:"",component:H}]}]},1517:(P,p,n)=>{n.d(p,{t:()=>c});var a=n(4438);let c=(()=>{class l{constructor(){}static#t=this.\u0275fac=function(u){return new(u||l)};static#n=this.\u0275cmp=a.VBU({type:l,selectors:[["bkd-spinner"]],standalone:!0,features:[a.aNF],decls:4,vars:0,consts:[[1,"spinner-container"],["role","status",1,"spinner-border"],[1,"visually-hidden"]],template:function(u,O){1&u&&(a.j41(0,"div",0)(1,"div",1)(2,"span",2),a.EFF(3,"Loading..."),a.k0s()()())},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 l})()},7887:(P,p,n)=>{n.d(p,{N:()=>l});var a=n(4438);class c{constructor(){this.$implicit=null,this.bkdLet=null}}let l=(()=>{class h{set bkdLet(u){this.context.$implicit=this.context.bkdLet=u}constructor(u,O){this.vcr=u,this.templateRef=O,this.context=new c}ngOnInit(){this.vcr.createEmbeddedView(this.templateRef,this.context)}static#t=this.\u0275fac=function(O){return new(O||h)(a.rXU(a.c1b),a.rXU(a.C4Q))};static#n=this.\u0275dir=a.FsC({type:h,selectors:[["","bkdLet",""]],inputs:{bkdLet:"bkdLet"},standalone:!0})}return h})()},5666:(P,p,n)=>{n.d(p,{H:()=>c});var a=n(5783);const c=a.NW({Key:a.KC([a.ai,a.Yj]),Value:a.Yj})},6952:(P,p,n)=>{n.d(p,{G:()=>l});var a=n(5558),c=n(785);class l{constructor(m,u,O,v){this.http=m,this.settings=u,this.codec=O,this.resourcePath=v}get(m,u){return this.http.get(`${this.baseUrl}/${m}`,u).pipe((0,a.n)((0,c.D4)(this.codec)))}getList(m){return this.http.get(`${this.baseUrl}/`,m).pipe((0,a.n)((0,c.k$)(this.codec)))}get baseUrl(){return`${this.settings.apiUrl}/${this.resourcePath}`}}},172:(P,p,n)=>{n.d(p,{Sq:()=>_,Jh:()=>B,$m:()=>Y,iA:()=>t,i7:()=>j,Qr:()=>K});var a=n(1626),c=n(7673),l=n(8810),h=n(9030),m=n(7786),u=n(3726),O=n(3236),v=n(1584),F=n(9437),R=n(6354),D=n(9901),k=n(5558),C=n(9172),$=n(3993);function _(d){return(0,F.W)(f=>f instanceof a.yz&&404===f.status?(0,c.of)(d||null):(0,l.$)(()=>f))}function t(d){return f=>(0,h.v)(()=>(d(),f))}function B(d){return f=>f.pipe((0,R.T)(o=>o??d),(0,D.U)(d))}function j(d,f){return d.pipe((0,k.n)(o=>f.pipe((0,C.Z)(o),(0,R.T)(()=>o))))}function Y(d,f=window.document){return(0,m.h)(...["click","keydown"].map(o=>(0,u.R)(f,o))).pipe((0,C.Z)(null),(0,k.n)(()=>function b(d=0,f=O.E){return d<0&&(d=0),(0,v.O)(d,d,f)}(d)),(0,R.T)(()=>{}))}function K(d,f){return(0,m.h)(d,f.pipe((0,$.E)(d),(0,R.T)(([o,g])=>g)))}},4297:(P,p,n)=>{function a(l,h){return c(l).includes(h)}function c(l){return l?l.split(";"):[]}n.d(p,{O:()=>c,h:()=>a})},152:(P,p,n)=>{n.d(p,{B:()=>h});var a=n(3236),c=n(9974),l=n(4360);function h(m,u=a.E){return(0,c.N)((O,v)=>{let b=null,F=null,R=null;const D=()=>{if(b){b.unsubscribe(),b=null;const C=F;F=null,v.next(C)}};function k(){const C=R+m,$=u.now();if(${F=C,R=u.now(),b||(b=u.schedule(k,m),v.add(b))},()=>{D(),v.complete()},void 0,()=>{F=b=null}))})}},7672:(P,p,n)=>{n.d(p,{A:()=>f});var a=n(8587);const m=function h(o){return o!=o},R=function F(o,g){return!(null==o||!o.length)&&function v(o,g,y){return g==g?function u(o,g,y){for(var E=y-1,N=o.length;++E-1},k=function D(o,g,y){for(var E=-1,N=null==o?0:o.length;++E=200){var X=g?null:Y(o);if(X)return(0,t.A)(X);V=!1,N=C.A,G=new a.A}else G=g?[]:U;t:for(;++E{n.d(p,{A:()=>l});var a=n(7672);const l=function c(h){return h&&h.length?(0,a.A)(h):[]}},1195:(P,p,n)=>{n.d(p,{A:()=>h});var a=n(5402),c=0;const h=function l(m){var u=++c;return(0,a.A)(m)+u}}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/290.js b/public/apps/webapp-schulverwaltung/290.js deleted file mode 100644 index 86371622..00000000 --- a/public/apps/webapp-schulverwaltung/290.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[290],{2290:(X,m,e)=>{e.r(m),e.d(m,{MY_GRADES_ROUTES:()=>x});var h=e(177),p=e(3955),y=e(1517),$=e(7014),I=e(7887),T=e(8958),C=e(8667),s=e(4438),G=e(2771),M=e(4668),o=e(6354),v=e(4572),S=e(5558),R=e(7468),b=e(2809),c=e(9728),F=e(4599),E=e(2673),O=e(5449),V=e(1937),D=e(5507),j=e(1763);let u=(()=>{class t{constructor(n,r,d,g,B,P,z){this.storageService=n,this.loadingService=r,this.coursesRestService=d,this.subscriptionRestService=g,this.reportsService=B,this.gradingScalesRestService=P,this.settings=z,this.studentId$=new G.m(1),this.loading$=this.loadingService.loading$,this.studentCourses$=this.loadCourses().pipe((0,M.t)(1)),this.studentCoursesSorted$=this.studentCourses$.pipe((0,o.T)(i=>i.slice().sort((a,H)=>a.Designation.localeCompare(H.Designation)))),this.studentCourseIds$=this.studentCourses$.pipe((0,o.T)(i=>i.flatMap(a=>a.Id))),this.idSubscriptions$=(0,v.z)([this.studentId$,this.studentCourseIds$]).pipe((0,S.n)(([i,a])=>this.subscriptionRestService.getIdSubscriptionsByStudentAndCourse(i,a))),this.ids$=this.idSubscriptions$.pipe((0,o.T)(i=>i.map(a=>a.Id))),this.testReports$=this.ids$.pipe((0,o.T)(i=>this.reportsService.getStudentSubscriptionReports(i))),this.tests$=this.studentCourses$.pipe((0,o.T)(i=>i.flatMap(a=>a.Tests).filter(c.TM))),this.gradingScaleIdsFromTests$=this.tests$.pipe((0,o.T)(i=>[...i.map(a=>a.GradingScaleId)].filter(c.TM).filter(c.Am))),this.gradingScaleIdsFromCourses$=this.studentCourses$.pipe((0,o.T)(i=>i.flatMap(a=>a.GradingScaleId).filter(c.TM).filter(c.Am))),this.gradingScaleIds$=(0,v.z)([this.gradingScaleIdsFromCourses$,this.gradingScaleIdsFromTests$]).pipe((0,o.T)(([i,a])=>i.concat(a).filter(c.Am))),this.gradingScales$=this.gradingScaleIds$.pipe((0,S.n)(i=>(0,R.p)(i.map(a=>this.gradingScalesRestService.getGradingScale(a)))));const f=this.storageService.getPayload()?.id_person;f&&this.studentId$.next(Number(f))}loadCourses(){return this.loadingService.load(this.coursesRestService.getExpandedCoursesForStudent())}static#s=this.\u0275fac=function(r){return new(r||t)(s.KVO(F.n),s.KVO(E.U),s.KVO(O.I),s.KVO(V.u),s.KVO(D.P),s.KVO(j.T),s.KVO(b.yy))};static#t=this.\u0275prov=s.jDH({token:t,factory:t.\u0275fac})}return t})();const J=()=>[];let U=(()=>{class t{constructor(n){this.myGradesService=n}static#s=this.\u0275fac=function(r){return new(r||t)(s.rXU(u))};static#t=this.\u0275cmp=s.VBU({type:t,selectors:[["bkd-my-grades-header"]],standalone:!0,features:[s.aNF],decls:7,vars:7,consts:[[1,"d-flex","justify-content-between","header"],[3,"reports"]],template:function(r,d){if(1&r&&(s.j41(0,"div",0)(1,"div"),s.EFF(2),s.nI1(3,"translate"),s.k0s(),s.j41(4,"div"),s.nrm(5,"bkd-reports-link",1),s.nI1(6,"async"),s.k0s()()),2&r){let g;s.R7$(2),s.JRh(s.bMT(3,2,"my-grades.header")),s.R7$(3),s.Y8G("reports",null!==(g=s.bMT(6,4,d.myGradesService.testReports$))&&void 0!==g?g:s.lJ4(6,J))}},dependencies:[C.Z,h.Jj,p.h,p.D9],styles:[".header[_ngcontent-%COMP%]{padding-bottom:1rem}.report[_ngcontent-%COMP%]{margin-left:1rem}"]})}return t})();const K=(t,l,n,r)=>({loading:t,studentId:l,courses:n,gradingScales:r});function N(t,l){if(1&t&&s.nrm(0,"bkd-dossier-grades-view",4),2&t){const n=s.XpG().bkdLet;s.Y8G("courses",n.courses)("studentId",n.studentId)("gradingScales",n.gradingScales)("isEditable",!1)}}function Y(t,l){1&t&&(s.qex(0),s.nrm(1,"bkd-spinner"),s.bVm())}function A(t,l){if(1&t&&(s.j41(0,"div",1)(1,"h1"),s.EFF(2),s.nI1(3,"translate"),s.k0s(),s.nrm(4,"bkd-my-grades-header"),s.DNE(5,N,1,4,"bkd-dossier-grades-view",2)(6,Y,2,0,"ng-container",3),s.k0s()),2&t){const n=l.bkdLet;s.R7$(2),s.JRh(s.bMT(3,3,"my-grades.title")),s.R7$(3),s.Y8G("ngIf",!n.loading),s.R7$(),s.Y8G("ngIf",n.loading)}}let k=(()=>{class t{constructor(n){this.myGradesService=n}static#s=this.\u0275fac=function(r){return new(r||t)(s.rXU(u))};static#t=this.\u0275cmp=s.VBU({type:t,selectors:[["bkd-my-grades-show"]],standalone:!0,features:[s.Jv_([T.p]),s.aNF],decls:5,vars:14,consts:[["class","bkd-container bkd-container-limited",4,"bkdLet"],[1,"bkd-container","bkd-container-limited"],[3,"courses","studentId","gradingScales","isEditable",4,"ngIf"],[4,"ngIf"],[3,"courses","studentId","gradingScales","isEditable"]],template:function(r,d){1&r&&(s.DNE(0,A,7,5,"div",0),s.nI1(1,"async"),s.nI1(2,"async"),s.nI1(3,"async"),s.nI1(4,"async")),2&r&&s.Y8G("bkdLet",s.ziG(9,K,s.bMT(1,1,d.myGradesService.loading$),s.bMT(2,3,d.myGradesService.studentId$),s.bMT(3,5,d.myGradesService.studentCoursesSorted$),s.bMT(4,7,d.myGradesService.gradingScales$)))},dependencies:[I.N,U,h.bT,$.Q,y.t,h.Jj,p.h,p.D9]})}return t})();var L=e(5539);const x=[{path:"",component:(()=>{class t{constructor(){}static#s=this.\u0275fac=function(r){return new(r||t)};static#t=this.\u0275cmp=s.VBU({type:t,selectors:[["bkd-my-grades"]],standalone:!0,features:[s.Jv_([u]),s.aNF],decls:1,vars:0,template:function(r,d){1&r&&s.nrm(0,"router-outlet")},dependencies:[L.n3]})}return t})(),children:[{path:"",component:k}]}]}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/390.js b/public/apps/webapp-schulverwaltung/390.js deleted file mode 100644 index 8b2120ce..00000000 --- a/public/apps/webapp-schulverwaltung/390.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[390],{853:(O,A,e)=>{e.d(A,{h:()=>i});var s=e(4438);let i=(()=>{class u{constructor(){this.expanded=!1}static#t=this.\u0275fac=function(p){return new(p||u)};static#e=this.\u0275cmp=s.VBU({type:u,selectors:[["bkd-caret"]],inputs:{expanded:"expanded"},standalone:!0,features:[s.aNF],decls:2,vars:1,consts:[["role","button",1,"d-flex","material-icons"]],template:function(p,h){1&p&&(s.j41(0,"i",0),s.EFF(1),s.k0s()),2&p&&(s.R7$(),s.JRh(h.expanded?"expand_less":"expand_more"))},styles:["i[_ngcontent-%COMP%]:hover{color:#ea161f}"]})}return u})()},3919:(O,A,e)=>{e.d(A,{$:()=>b});var s=e(853),i=e(4438);const u=["*"];let b=(()=>{class d{constructor(){this.opened=!1}static#t=this.\u0275fac=function(f){return new(f||d)};static#e=this.\u0275cmp=i.VBU({type:d,selectors:[["bkd-student-dossier-entry-header"]],inputs:{opened:"opened"},standalone:!0,features:[i.aNF],ngContentSelectors:u,decls:3,vars:1,consts:[[1,"m-0"],[1,"d-flex","align-items-center",3,"expanded"]],template:function(f,E){1&f&&(i.NAR(),i.j41(0,"h5",0),i.SdG(1),i.k0s(),i.nrm(2,"bkd-caret",1)),2&f&&(i.R7$(2),i.Y8G("expanded",E.opened))},dependencies:[s.h],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 d})()},9573:(O,A,e)=>{e.d(A,{o:()=>u});var s=e(5783),i=e(5306);const u=s.NW({Id:s.ai,AddressLine1:(0,i.c$)(s.Yj),AddressLine2:(0,i.bW)(s.Yj),Birthdate:(0,i.c$)(i.iC),DisplayEmail:(0,i.c$)(s.Yj),FullName:s.Yj,Gender:s.KC([s.eu("M"),s.eu("F"),s.eu("X")]),Location:(0,i.c$)(s.Yj),PhoneMobile:(0,i.c$)(s.Yj),PhonePrivate:(0,i.c$)(s.Yj),PostalCode:(0,i.c$)(s.Yj)})},5507:(O,A,e)=>{e.d(A,{P:()=>k});var s=e(4981);const u=function i(l,c,t,r){for(var n=-1,o=null==l?0:l.length;++n{class l{constructor(t,r,n){this.settings=t,this.storageService=r,this.http=n}getPersonMasterDataReports(t){return this.getAvailableReports("Person",this.settings.personMasterDataReports,[t])}getStudentConfirmationReports(t){return this.getAvailableReports("Praesenzinformation",this.settings.studentConfirmationReports,t)}getEvaluateAbsencesReports(t){return this.getAvailableReports("Praesenzinformation",this.settings.evaluateAbsencesReports,t)}getMyAbsencesReports(t){return this.getAvailableReports("Praesenzinformation",this.settings.myAbsencesReports,t)}getCourseReports(t){return this.getAvailableReports("Anlass",this.settings.testsByCourseReports,[t])}getStudentSubscriptionReports(t){return this.settings.testsBySubscriptionStudentReports.map((n,o)=>{const a=this.getReportUrl(n.type,"Anmeldung",n.id,t);return{...n,title:`Report ${o+1}`,url:a}})}getTeacherSubscriptionReports(t){return this.settings.testsBySubscriptionTeacherReports.map((n,o)=>{const a=this.getReportUrl(n.type,"Anmeldung",n.id,t);return{...n,title:`Report ${o+1}`,url:a}})}getAvailableReports(t,r,n){const o=V(r,v=>v.type),a=(0,N.z)(Object.keys(o).map(v=>this.getAvailableReportsForType(v,t,o[v].map(({id:R})=>R),n)));return this.mergeAvailableReports(a,r)}getAvailableReportsForType(t,r,n,o){return 0===o.length?(0,I.of)([]):this.http.get(this.getReportAvailabilityUrl(t,r,n,o)).pipe((0,w.n)((0,Q.D4)(J)),(0,U.T)(a=>a?a.map(({Id:v,Title:R})=>({type:t,id:v,title:R,url:this.getReportUrl(t,r,v,o)})):[]))}mergeAvailableReports(t,r){return t.pipe((0,U.T)(n=>{const o=(0,W.A)(n);return r.reduce((a,v)=>{const R=o.find(({id:_})=>_===v.id);return R?[...a,R]:a},[])}))}getReportUrl(t,r,n,o){const a=new URL(`${this.settings.apiUrl}/Files/${this.getReportTypePathPart(t)}/${r}/${n}`);return a.searchParams.set("ids",o.join(",")),a.searchParams.set("token",this.storageService.getAccessToken()??""),a.toString()}getReportAvailabilityUrl(t,r,n,o){const a=new URL(`${this.settings.apiUrl}/${this.getReportTypePathPart(t)}/AvailableReports/${r}`);return a.searchParams.set("ids",Array.isArray(n)?n.join(","):String(n)),a.searchParams.set("keys",o.join(",")),a.toString()}getReportTypePathPart(t){return`${t[0].toUpperCase()+t.slice(1)}Reports`}static#t=this.\u0275fac=function(r){return new(r||l)(M.KVO(z.yy),M.KVO(X.n),M.KVO(Z.Qq))};static#e=this.\u0275prov=M.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},4981:(O,A,e)=>{e.d(A,{A:()=>d});var s=e(4713);const u=function(){try{var p=(0,s.A)(Object,"defineProperty");return p({},"",{}),p}catch{}}(),d=function b(p,h,f){"__proto__"==h&&u?u(p,h,{configurable:!0,enumerable:!0,value:f,writable:!0}):p[h]=f}},5529:(O,A,e)=>{e.d(A,{A:()=>j});var s=e(563),i=e(6944),u=e(6513),b=e(3744),d=i.A?i.A.isConcatSpreadable:void 0;const h=function p(g){return(0,b.A)(g)||(0,u.A)(g)||!!(d&&g&&g[d])},E=function f(g,y,P,F,m){var $=-1,D=g.length;for(P||(P=h),m||(m=[]);++$0&&P(C)?y>1?f(C,y-1,P,F,m):(0,s.A)(m,C):F||(m[m.length]=C)}return m},j=function S(g){return null!=g&&g.length?E(g,1):[]}}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/3rdpartylicenses.txt b/public/apps/webapp-schulverwaltung/3rdpartylicenses.txt index 5b5b0452..2a745d54 100644 --- a/public/apps/webapp-schulverwaltung/3rdpartylicenses.txt +++ b/public/apps/webapp-schulverwaltung/3rdpartylicenses.txt @@ -1,55 +1,31 @@ -@angular/animations -MIT -@angular/common -MIT +-------------------------------------------------------------------------------- +Package: @angular/common +License: "MIT" -@angular/core -MIT -@angular/forms -MIT +-------------------------------------------------------------------------------- +Package: @angular/animations +License: "MIT" -@angular/localize -MIT -@angular/platform-browser -MIT +-------------------------------------------------------------------------------- +Package: @angular/platform-browser +License: "MIT" -@angular/router -MIT -@babel/runtime -MIT -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors +-------------------------------------------------------------------------------- +Package: @ngx-translate/http-loader +License: "SEE LICENSE IN LICENSE" -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +-------------------------------------------------------------------------------- +Package: date-fns +License: "MIT" -@ng-bootstrap/ng-bootstrap -MIT -The MIT License (MIT) +MIT License -Copyright (c) 2015-2018 Angular ng-bootstrap team +Copyright (c) 2021 Sasha Koss and Lesha Koss https://kossnocorp.mit-license.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -58,56 +34,24 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - -@ng-select/ng-select -MIT - -@ngx-translate/core -SEE LICENSE IN LICENSE - -@ngx-translate/http-loader -SEE LICENSE IN LICENSE - -@popperjs/core -MIT -The MIT License (MIT) - -Copyright (c) 2019 Federico Zivolo - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +-------------------------------------------------------------------------------- +Package: io-ts-types +License: "MIT" -date-fns -MIT MIT License -Copyright (c) 2021 Sasha Koss and Lesha Koss https://kossnocorp.mit-license.org +Copyright (c) 2017 Giulio Canti Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -127,9 +71,20 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +-------------------------------------------------------------------------------- +Package: @ng-select/ng-select +License: "MIT" + + +-------------------------------------------------------------------------------- +Package: ngx-infinite-scroll +License: "MIT" + + +-------------------------------------------------------------------------------- +Package: fp-ts +License: "MIT" -fp-ts -MIT MIT License Copyright (c) 2017-present Giulio Canti @@ -152,37 +107,43 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +-------------------------------------------------------------------------------- +Package: @angular/core +License: "MIT" -io-ts -MIT -MIT License -Copyright (c) 2017 Giulio Canti +-------------------------------------------------------------------------------- +Package: @popperjs/core +License: "MIT" -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +The MIT License (MIT) + +Copyright (c) 2019 Federico Zivolo + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +-------------------------------------------------------------------------------- +Package: @ng-bootstrap/ng-bootstrap +License: "MIT" -io-ts-types -MIT -MIT License +The MIT License (MIT) -Copyright (c) 2017 Giulio Canti +Copyright (c) 2015-2018 Angular ng-bootstrap team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -191,74 +152,21 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -lodash-es -MIT -Copyright OpenJS Foundation and other contributors - -Based on Underscore.js, copyright Jeremy Ashkenas, -DocumentCloud and Investigative Reporters & Editors - -This software consists of voluntary contributions made by many -individuals. For exact contribution history, see the revision history -available at https://github.com/lodash/lodash - -The following license applies to all parts of this software except as -documented below: - -==== - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -==== - -Copyright and related rights for sample code are waived via CC0. Sample -code is defined as all source code displayed within the prose of the -documentation. - -CC0: http://creativecommons.org/publicdomain/zero/1.0/ - -==== - -Files located in the node_modules and vendor directories are externally -maintained libraries used by this software which have their own -licenses; we recommend you read them, as their terms may differ from the -terms above. - +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. -ngx-infinite-scroll -MIT +-------------------------------------------------------------------------------- +Package: rxjs +License: "Apache-2.0" -rxjs -Apache-2.0 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -462,24 +370,119 @@ Apache-2.0 limitations under the License. +-------------------------------------------------------------------------------- +Package: tslib +License: "0BSD" + +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +-------------------------------------------------------------------------------- +Package: @angular/router +License: "MIT" -tslib -0BSD -Copyright (c) Microsoft Corporation. -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. +-------------------------------------------------------------------------------- +Package: io-ts +License: "MIT" -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. +MIT License + +Copyright (c) 2017 Giulio Canti + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +-------------------------------------------------------------------------------- +Package: @angular/forms +License: "MIT" + + +-------------------------------------------------------------------------------- +Package: lodash-es +License: "MIT" + +Copyright OpenJS Foundation and other contributors + +Based on Underscore.js, copyright Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/lodash/lodash + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code displayed within the prose of the +documentation. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +Files located in the node_modules and vendor directories are externally +maintained libraries used by this software which have their own +licenses; we recommend you read them, as their terms may differ from the +terms above. + +-------------------------------------------------------------------------------- +Package: @ngx-translate/core +License: "SEE LICENSE IN LICENSE" + + +-------------------------------------------------------------------------------- +Package: zone.js +License: "MIT" -zone.js -MIT The MIT License Copyright (c) 2010-2024 Google LLC. https://angular.io/license @@ -501,3 +504,10 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +-------------------------------------------------------------------------------- +Package: @angular/localize +License: "MIT" + + +-------------------------------------------------------------------------------- diff --git a/public/apps/webapp-schulverwaltung/407.js b/public/apps/webapp-schulverwaltung/407.js deleted file mode 100644 index 32baa1ad..00000000 --- a/public/apps/webapp-schulverwaltung/407.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[407],{6407:(Be,D,r)=>{r.d(D,{R:()=>Le});var T=r(9733),c=r(177),a=r(1324),d=r(3955),h=r(1413),v=r(6977),b=r(7887),k=r(2771),C=r(4572),x=r(7673),G=r(983),p=r(5558),y=r(9172),R=r(7647),l=r(6354),F=r(2809),e=r(4438),E=r(9067),$=r(8413),j=r(5889);let I=(()=>{class n{constructor(s,t,i,_,f){this.settings=s,this.lessonPresencesService=t,this.presenceTypesService=i,this.toastService=_,this.translate=f,this.studentId$=new k.m(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(s){this.studentId$.next(s)}getAbsences(s){return this.studentId$.pipe((0,p.n)(s),(0,y.Z)(null),(0,R.u)({connector:()=>new k.m(1)}))}getCounts(){return this.studentId$.pipe((0,p.n)(s=>(0,C.z)([this.loadStatistics(s).pipe((0,y.Z)(null)),this.openAbsences$.pipe((0,l.T)(t=>t?.length??null)),this.checkableAbsences$.pipe((0,l.T)(t=>t?.length??null))])),(0,l.T)(([s,t,i])=>({openAbsences:t,checkableAbsences:i,excusedAbsences:s?.TotalAbsencesValidExcuse??null,unexcusedAbsences:s?.TotalAbsencesWithoutExcuse??null,incidents:s?.TotalIncidents??null,halfDays:s?.TotalHalfDays??null})))}loadStatistics(s){return this.lessonPresencesService.getStatistics({student:s,educationalEvent:null,studyClass:null},null,0).pipe((0,p.n)(({entries:t})=>t.length>0?(0,x.of)(t[0]):(this.toastService.error(this.translate.instant("global.rest-errors.notfound-message"),this.translate.instant("global.rest-errors.notfound-title")),G.w)))}loadOpenAbsences(s){return this.lessonPresencesService.getListOfUnconfirmed(this.getBaseParams(s))}loadCheckableAbsences(s){return this.lessonPresencesService.getList({params:{...this.getBaseParams(s),"filter.ConfirmationStateId":`=${this.settings.checkableAbsenceStateId}`}})}loadExcusedAbsences(s){return this.lessonPresencesService.getList({params:{...this.getBaseParams(s),"filter.ConfirmationStateId":`=${this.settings.excusedAbsenceStateId}`}})}loadUnexcusedAbsences(s){return this.lessonPresencesService.getList({params:{...this.getBaseParams(s),"filter.ConfirmationStateId":`=${this.settings.unexcusedAbsenceStateId}`}})}loadIncidents(s){return this.presenceTypesService.incidentTypes$.pipe((0,l.T)(t=>({...this.getBaseParams(s),"filter.TypeRef":`;${t.map(i=>i.Id).join(";")}`})),(0,p.n)(t=>this.lessonPresencesService.getList({params:t})))}loadHalfDays(s){return this.lessonPresencesService.getList({params:{...this.getBaseParams(s),"filter.TypeRef":`=${this.settings.halfDayPresenceTypeId}`}})}getBaseParams(s){return{sort:"LessonDateTimeFrom.asc","filter.StudentRef":`=${s}`}}static#e=this.\u0275fac=function(t){return new(t||n)(e.KVO(F.yy),e.KVO(E.g),e.KVO($._),e.KVO(j.f),e.KVO(d.c$))};static#n=this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac})}return n})();var N=r(235),A=r(3919),Y=r(4412),P=r(4668),V=r(7721),L=r(4561),m=r(5539);let u=(()=>{class n{constructor(s,t){this.profileService=s,this.route=t,this.currentDossier$=new Y.t("addresses"),this.studentId$=this.route.paramMap.pipe((0,l.T)(i=>Number(i.get("id")))),this.profile$=this.studentId$.pipe((0,p.n)(i=>this.profileService.getProfile(i)),(0,P.t)(1)),this.returnParams$=this.route.queryParams.pipe((0,l.T)(({returnparams:i})=>i)),this.backlinkQueryParams$=this.returnParams$.pipe((0,l.T)(V.JO)),this.loading$=this.profileService.loading$}static#e=this.\u0275fac=function(t){return new(t||n)(e.KVO(L.m),e.KVO(m.nX))};static#n=this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac})}return n})();var M=r(9366);const X=n=>({absenceCounts:n});function B(n,o){if(1&n&&(e.qex(0),e.EFF(1),e.bVm()),2&n){const s=e.XpG().bkdLet;e.R7$(),e.SpI("(",s.absenceCounts.checkableAbsences,") ")}}function O(n,o){if(1&n&&e.nrm(0,"bkd-student-dossier-absences",15),2&n){const s=e.XpG(2);e.Y8G("absences$",s.absencesService.checkableAbsences$)}}function U(n,o){if(1&n&&(e.qex(0),e.EFF(1),e.bVm()),2&n){const s=e.XpG().bkdLet;e.R7$(),e.SpI("(",s.absenceCounts.openAbsences,") ")}}function J(n,o){if(1&n&&e.nrm(0,"bkd-student-dossier-absences",16),2&n){const s=e.XpG(2);e.Y8G("absences$",s.absencesService.openAbsences$)("selectionService",s.absencesSelectionService)}}function H(n,o){if(1&n&&(e.qex(0),e.EFF(1),e.bVm()),2&n){const s=e.XpG().bkdLet;e.R7$(),e.SpI("(",s.absenceCounts.excusedAbsences,") ")}}function K(n,o){if(1&n&&e.nrm(0,"bkd-student-dossier-absences",15),2&n){const s=e.XpG(2);e.Y8G("absences$",s.absencesService.excusedAbsences$)}}function Q(n,o){if(1&n&&(e.qex(0),e.EFF(1),e.bVm()),2&n){const s=e.XpG().bkdLet;e.R7$(),e.SpI("(",s.absenceCounts.unexcusedAbsences,") ")}}function W(n,o){if(1&n&&e.nrm(0,"bkd-student-dossier-absences",17),2&n){const s=e.XpG(2);e.Y8G("absences$",s.absencesService.unexcusedAbsences$)("displayPresenceType",!1)}}function Z(n,o){if(1&n&&(e.qex(0),e.EFF(1),e.bVm()),2&n){const s=e.XpG().bkdLet;e.R7$(),e.SpI("(",s.absenceCounts.incidents,") ")}}function z(n,o){if(1&n&&e.nrm(0,"bkd-student-dossier-absences",15),2&n){const s=e.XpG(2);e.Y8G("absences$",s.absencesService.incidents$)}}function w(n,o){if(1&n&&(e.qex(0),e.EFF(1),e.bVm()),2&n){const s=e.XpG(2).bkdLet;e.R7$(),e.SpI("(",s.absenceCounts.halfDays,") ")}}function q(n,o){if(1&n&&e.nrm(0,"bkd-student-dossier-absences",17),2&n){const s=e.XpG(3);e.Y8G("absences$",s.absencesService.halfDays$)("displayPresenceType",!1)}}function ee(n,o){if(1&n){const s=e.RV6();e.j41(0,"div",18,5)(2,"div",9)(3,"bkd-student-dossier-entry-header",10),e.bIt("click",function(){e.eBV(s);const i=e.sdS(1);return e.Njj(i.toggle())}),e.EFF(4),e.nI1(5,"translate"),e.DNE(6,w,2,1,"ng-container",11),e.k0s()(),e.j41(7,"div",12)(8,"div",13),e.DNE(9,q,1,2,"ng-template"),e.k0s()()()}if(2&n){const s=e.sdS(1),t=e.XpG().bkdLet;e.R7$(3),e.Y8G("opened",!s.collapsed),e.R7$(),e.SpI(" ",e.bMT(5,3,"shared.profile.half-days")," "),e.R7$(2),e.Y8G("ngIf",null!==t.absenceCounts.halfDays)}}function ne(n,o){if(1&n){const s=e.RV6();e.qex(0),e.j41(1,"div",7)(2,"div",8,0)(4,"div",9)(5,"bkd-student-dossier-entry-header",10),e.bIt("click",function(){e.eBV(s);const i=e.sdS(3);return e.Njj(i.toggle())}),e.EFF(6),e.nI1(7,"translate"),e.DNE(8,B,2,1,"ng-container",11),e.k0s()(),e.j41(9,"div",12)(10,"div",13),e.DNE(11,O,1,1,"ng-template"),e.k0s()()(),e.j41(12,"div",8,1)(14,"div",9)(15,"bkd-student-dossier-entry-header",10),e.bIt("click",function(){e.eBV(s);const i=e.sdS(13);return e.Njj(i.toggle())}),e.EFF(16),e.nI1(17,"translate"),e.DNE(18,U,2,1,"ng-container",11),e.k0s()(),e.j41(19,"div",12)(20,"div",13),e.DNE(21,J,1,2,"ng-template"),e.k0s()()(),e.j41(22,"div",8,2)(24,"div",9)(25,"bkd-student-dossier-entry-header",10),e.bIt("click",function(){e.eBV(s);const i=e.sdS(23);return e.Njj(i.toggle())}),e.EFF(26),e.nI1(27,"translate"),e.DNE(28,H,2,1,"ng-container",11),e.k0s()(),e.j41(29,"div",12)(30,"div",13),e.DNE(31,K,1,1,"ng-template"),e.k0s()()(),e.j41(32,"div",8,3)(34,"div",9)(35,"bkd-student-dossier-entry-header",10),e.bIt("click",function(){e.eBV(s);const i=e.sdS(33);return e.Njj(i.toggle())}),e.EFF(36),e.nI1(37,"translate"),e.DNE(38,Q,2,1,"ng-container",11),e.k0s()(),e.j41(39,"div",12)(40,"div",13),e.DNE(41,W,1,2,"ng-template"),e.k0s()()(),e.j41(42,"div",8,4)(44,"div",9)(45,"bkd-student-dossier-entry-header",10),e.bIt("click",function(){e.eBV(s);const i=e.sdS(43);return e.Njj(i.toggle())}),e.EFF(46),e.nI1(47,"translate"),e.DNE(48,Z,2,1,"ng-container",11),e.k0s()(),e.j41(49,"div",12)(50,"div",13),e.DNE(51,z,1,1,"ng-template"),e.k0s()()(),e.DNE(52,ee,10,5,"div",14),e.nI1(53,"async"),e.k0s(),e.bVm()}if(2&n){const s=o.bkdLet,t=e.sdS(3),i=e.sdS(13),_=e.sdS(23),f=e.sdS(33),Me=e.sdS(43),Xe=e.XpG();e.R7$(5),e.Y8G("opened",!t.collapsed),e.R7$(),e.SpI(" ",e.bMT(7,16,"shared.profile.checkable-absences")," "),e.R7$(2),e.Y8G("ngIf",null!==s.absenceCounts.checkableAbsences),e.R7$(7),e.Y8G("opened",!i.collapsed),e.R7$(),e.SpI(" ",e.bMT(17,18,"shared.profile.open-absences")," "),e.R7$(2),e.Y8G("ngIf",null!==s.absenceCounts.openAbsences),e.R7$(7),e.Y8G("opened",!_.collapsed),e.R7$(),e.SpI(" ",e.bMT(27,20,"shared.profile.excused-absences")," "),e.R7$(2),e.Y8G("ngIf",null!==s.absenceCounts.excusedAbsences),e.R7$(7),e.Y8G("opened",!f.collapsed),e.R7$(),e.SpI(" ",e.bMT(37,22,"shared.profile.unexcused-absences")," "),e.R7$(2),e.Y8G("ngIf",null!==s.absenceCounts.unexcusedAbsences),e.R7$(7),e.Y8G("opened",!Me.collapsed),e.R7$(),e.SpI(" ",e.bMT(47,24,"shared.profile.incidents")," "),e.R7$(2),e.Y8G("ngIf",null!==s.absenceCounts.incidents),e.R7$(4),e.Y8G("ngIf",e.bMT(53,26,Xe.halfDayActive$))}}let se=(()=>{class n{constructor(s,t,i,_){this.state=s,this.presenceTypesService=t,this.absencesService=i,this.absencesSelectionService=_,this.halfDayActive$=this.presenceTypesService.halfDayActive$,this.destroy$=new h.B,this.state.currentDossier$.next("absences")}ngOnInit(){this.state.studentId$.pipe((0,v.Q)(this.destroy$)).subscribe(s=>this.absencesService.setStudentId(s))}ngOnDestroy(){this.destroy$.next()}static#e=this.\u0275fac=function(t){return new(t||n)(e.rXU(u),e.rXU($._),e.rXU(I),e.rXU(M.s))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["bkd-dossier-absences"]],standalone:!0,features:[e.Jv_([I]),e.aNF],decls:2,vars:5,consts:[["checkableAbsences","ngbAccordionItem"],["openAbsences","ngbAccordionItem"],["excusedAbsences","ngbAccordionItem"],["unexcusedAbsences","ngbAccordionItem"],["incidents","ngbAccordionItem"],["halfDays","ngbAccordionItem"],[4,"bkdLet"],["ngbAccordion",""],["ngbAccordionItem",""],["ngbAccordionHeader",""],[3,"click","opened"],[4,"ngIf"],["ngbAccordionCollapse",""],["ngbAccordionBody",""],["ngbAccordionItem","","id","half-days",4,"ngIf"],[3,"absences$"],[3,"absences$","selectionService"],[3,"absences$","displayPresenceType"],["ngbAccordionItem","","id","half-days"]],template:function(t,i){1&t&&(e.DNE(0,ne,54,28,"ng-container",6),e.nI1(1,"async")),2&t&&e.Y8G("bkdLet",e.eq3(3,X,e.bMT(1,1,i.absencesService.counts$)))},dependencies:[b.N,a.r6,a.tW,a.x7,A.$,c.bT,a.$R,a.UA,N.A,c.Jj,d.h,d.D9],changeDetection:0})}return n})();var te=r(4589),ie=r(717),oe=r(6194);const re=n=>({profile:n});function ce(n,o){1&n&&e.nrm(0,"bkd-student-dossier-legal-representative",13),2&n&&e.Y8G("person",o.$implicit)}function ae(n,o){if(1&n&&e.DNE(0,ce,1,1,"bkd-student-dossier-legal-representative",12),2&n){const s=e.XpG(2).bkdLet;e.Y8G("ngForOf",s.profile.legalRepresentativePersons)}}function de(n,o){if(1&n){const s=e.RV6();e.j41(0,"div",7,0)(2,"div",8)(3,"bkd-student-dossier-entry-header",9),e.bIt("click",function(){e.eBV(s);const i=e.sdS(1);return e.Njj(i.toggle())}),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"div",10)(7,"div",11),e.DNE(8,ae,1,1,"ng-template"),e.k0s()()()}if(2&n){const s=e.sdS(1);e.R7$(3),e.Y8G("opened",!s.collapsed),e.R7$(),e.SpI(" ",e.bMT(5,2,"shared.profile.legal-representation")," ")}}function le(n,o){if(1&n&&(e.qex(0),e.EFF(1),e.bVm()),2&n){const s=e.XpG().index;e.R7$(),e.SpI("",s+1," ")}}function pe(n,o){if(1&n&&e.nrm(0,"bkd-student-dossier-apprenticeship-company",15),2&n){const s=e.XpG().$implicit;e.Y8G("company",s)}}function ue(n,o){if(1&n){const s=e.RV6();e.j41(0,"div",7,1)(2,"div",8)(3,"bkd-student-dossier-entry-header",9),e.bIt("click",function(){e.eBV(s);const i=e.sdS(1);return e.Njj(i.toggle())}),e.EFF(4),e.nI1(5,"translate"),e.DNE(6,le,2,1,"ng-container",14),e.k0s()(),e.j41(7,"div",10)(8,"div",11),e.DNE(9,pe,1,1,"ng-template"),e.k0s()()()}if(2&n){const s=e.sdS(1),t=e.XpG().bkdLet;e.R7$(3),e.Y8G("opened",!s.collapsed),e.R7$(),e.SpI(" ",e.bMT(5,3,"shared.profile.apprenticeship-company")," "),e.R7$(2),e.Y8G("ngIf",t.profile.apprenticeshipCompanies.length>1)}}function _e(n,o){if(1&n&&(e.qex(0),e.nrm(1,"bkd-student-dossier-address",3),e.j41(2,"div",4),e.DNE(3,de,9,4,"div",5)(4,ue,10,5,"div",6),e.k0s(),e.bVm()),2&n){const s=o.bkdLet;e.R7$(),e.Y8G("student",s.profile.student),e.R7$(2),e.Y8G("ngIf",s.profile.legalRepresentativePersons.length>0),e.R7$(),e.Y8G("ngForOf",s.profile.apprenticeshipCompanies)}}let be=(()=>{class n{constructor(s){this.state=s,this.state.currentDossier$.next("addresses")}static#e=this.\u0275fac=function(t){return new(t||n)(e.rXU(u))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["bkd-dossier-addresses"]],standalone:!0,features:[e.aNF],decls:2,vars:5,consts:[["legalRepresentatives","ngbAccordionItem"],["apprenticeshipCompanies","ngbAccordionItem"],[4,"bkdLet"],[1,"profile-entry",3,"student"],["ngbAccordion",""],["ngbAccordionItem","",4,"ngIf"],["ngbAccordionItem","",4,"ngFor","ngForOf"],["ngbAccordionItem",""],["ngbAccordionHeader",""],[3,"click","opened"],["ngbAccordionCollapse",""],["ngbAccordionBody",""],["class","profile-entry",3,"person",4,"ngFor","ngForOf"],[1,"profile-entry",3,"person"],[4,"ngIf"],[1,"profile-entry",3,"company"]],template:function(t,i){1&t&&(e.DNE(0,_e,5,3,"ng-container",2),e.nI1(1,"async")),2&t&&e.Y8G("bkdLet",e.eq3(3,re,e.bMT(1,1,i.state.profile$)))},dependencies:[b.N,te.W,a.r6,c.bT,a.tW,a.x7,A.$,a.$R,a.UA,c.pM,oe.O,ie.e,c.Jj,d.h,d.D9],styles:[".profile-entry[_ngcontent-%COMP%]{display:block;padding:0 1rem}"],changeDetection:0})}return n})();var S=r(1517),me=r(7014),g=r(8958);const ge=(n,o,s,t)=>({studentId:n,loading:o,courses:s,gradingScales:t});function fe(n,o){if(1&n&&e.nrm(0,"bkd-dossier-grades-view",3),2&n){const s=e.XpG().bkdLet;e.Y8G("courses",s.courses)("studentId",s.studentId)("gradingScales",s.gradingScales)}}function he(n,o){1&n&&(e.qex(0),e.nrm(1,"bkd-spinner"),e.bVm())}function ve(n,o){if(1&n&&(e.qex(0),e.DNE(1,fe,1,3,"bkd-dossier-grades-view",1)(2,he,2,0,"ng-container",2),e.bVm()),2&n){const s=o.bkdLet;e.R7$(),e.Y8G("ngIf",!s.loading),e.R7$(),e.Y8G("ngIf",s.loading)}}let ke=(()=>{class n{constructor(s,t){this.state=s,this.dossierGradesService=t,this.destroy$=new h.B}ngOnInit(){this.state.currentDossier$.next("grades"),this.state.studentId$.pipe((0,v.Q)(this.destroy$)).subscribe(s=>this.dossierGradesService.setStudentId(s))}ngOnDestroy(){this.destroy$.next()}static#e=this.\u0275fac=function(t){return new(t||n)(e.rXU(u),e.rXU(g.p))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["bkd-dossier-grades"]],standalone:!0,features:[e.aNF],decls:5,vars:14,consts:[[4,"bkdLet"],[3,"courses","studentId","gradingScales",4,"ngIf"],[4,"ngIf"],[3,"courses","studentId","gradingScales"]],template:function(t,i){1&t&&(e.DNE(0,ve,3,2,"ng-container",0),e.nI1(1,"async"),e.nI1(2,"async"),e.nI1(3,"async"),e.nI1(4,"async")),2&t&&e.Y8G("bkdLet",e.ziG(9,ge,e.bMT(1,1,i.state.studentId$),e.bMT(2,3,i.dossierGradesService.loading$),e.bMT(3,5,i.dossierGradesService.studentCourses$),e.bMT(4,7,i.dossierGradesService.gradingScales$)))},dependencies:[b.N,c.bT,me.Q,S.t,c.Jj]})}return n})();var ye=r(8667),$e=r(1433),Ie=r(2637);const Ae=["*"];function Se(n,o){if(1&n&&(e.j41(0,"div",6)(1,"span",7),e.EFF(2),e.nI1(3,"date"),e.k0s(),e.j41(4,"span",8),e.EFF(5),e.k0s()()),2&n){const s=e.XpG();e.R7$(2),e.JRh(e.i5U(3,2,s.student.Birthdate,"dd.MM.yyyy")),e.R7$(3),e.SpI("(",s.student.Gender,")")}}let De=(()=>{class n{constructor(){this.link="/"}static#e=this.\u0275fac=function(t){return new(t||n)};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["bkd-student-backlink"]],inputs:{link:"link",queryParams:"queryParams",studentId:"studentId",studentName:"studentName",student:"student"},standalone:!0,features:[e.aNF],ngContentSelectors:Ae,decls:9,vars:5,consts:[[1,"d-flex","flex-column","w-100"],[3,"link","params"],[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(t,i){1&t&&(e.NAR(),e.j41(0,"div",0)(1,"bkd-backlink",1),e.SdG(2),e.k0s(),e.j41(3,"div",2),e.nrm(4,"bkd-avatar",3),e.j41(5,"div",4)(6,"h1"),e.EFF(7),e.k0s(),e.DNE(8,Se,6,5,"div",5),e.k0s()()()),2&t&&(e.R7$(),e.Y8G("link",i.link)("params",i.queryParams),e.R7$(3),e.Y8G("studentId",i.studentId),e.R7$(3),e.JRh(i.student?i.student.FullName:i.studentName),e.R7$(),e.Y8G("ngIf",i.student))},dependencies:[Ie.P,$e.f,c.bT,c.vh],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 n})();const Te=(n,o,s)=>({profile:n,currentDossierSection:o,reports:s}),Ce=()=>["addresses","absences","grades"],xe=()=>[],Ge=n=>({returnparams:n}),Re=n=>[n];function Fe(n,o){if(1&n&&e.nrm(0,"bkd-reports-link",10),2&n){let s;const t=e.XpG(2).bkdLet;e.Y8G("reports",null!==(s=t.reports)&&void 0!==s?s:e.lJ4(1,xe))}}function Ee(n,o){if(1&n&&(e.j41(0,"a",11),e.nI1(1,"async"),e.j41(2,"button",12,2),e.EFF(4),e.nI1(5,"translate"),e.k0s()()),2&n){const s=o.$implicit,t=e.sdS(3),i=e.XpG(3);e.Y8G("queryParams",e.eq3(9,Ge,e.bMT(1,5,i.state.returnParams$)))("routerLink",e.eq3(11,Re,s)),e.R7$(2),e.AVh("btn-outline-secondary",!t.isActive),e.R7$(2),e.SpI(" ",e.bMT(5,7,"dossier."+s)," ")}}function je(n,o){1&n&&(e.j41(0,"div"),e.nrm(1,"router-outlet"),e.k0s())}function Ne(n,o){1&n&&(e.j41(0,"p"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"shared.profile.no-profile")))}function Ye(n,o){if(1&n&&(e.qex(0),e.j41(1,"bkd-student-backlink",6),e.nI1(2,"async"),e.nI1(3,"async"),e.DNE(4,Fe,1,2,"bkd-reports-link",7),e.k0s(),e.j41(5,"div",8),e.DNE(6,Ee,6,13,"a",9),e.k0s(),e.DNE(7,je,2,0,"div",5)(8,Ne,3,3,"ng-template",null,1,e.C5r),e.bVm()),2&n){const s=e.sdS(9),t=e.XpG().bkdLet,i=e.XpG();e.R7$(),e.Y8G("link","../..")("queryParams",e.bMT(2,8,i.state.backlinkQueryParams$))("studentId",e.bMT(3,10,i.state.studentId$))("student",t.profile&&t.profile.student),e.R7$(3),e.Y8G("ngIf","grades"===t.currentDossierSection),e.R7$(2),e.Y8G("ngForOf",e.lJ4(12,Ce)),e.R7$(),e.Y8G("ngIf",t.profile)("ngIfElse",s)}}function Pe(n,o){1&n&&e.nrm(0,"bkd-spinner")}function Ve(n,o){if(1&n&&(e.qex(0),e.DNE(1,Ye,10,13,"ng-container",5),e.nI1(2,"async"),e.DNE(3,Pe,1,0,"ng-template",null,0,e.C5r),e.bVm()),2&n){const s=e.sdS(4),t=e.XpG();e.R7$(),e.Y8G("ngIf",!1===e.bMT(2,2,t.state.loading$))("ngIfElse",s)}}const Le={path:"student/:id",children:[{path:"",component:(()=>{class n{constructor(s,t){this.state=s,this.dossierGradesService=t,this.state.currentDossier$.next("addresses")}static#e=this.\u0275fac=function(t){return new(t||n)(e.rXU(u),e.rXU(g.p))};static#n=this.\u0275cmp=e.VBU({type:n,selectors:[["bkd-student-dossier"]],standalone:!0,features:[e.Jv_([u,g.p]),e.aNF],decls:5,vars:11,consts:[["loading",""],["noProfile",""],["rla","routerLinkActive"],[1,"bkd-container","bkd-container-limited"],[4,"bkdLet"],[4,"ngIf","ngIfElse"],[1,"mb-2",3,"link","queryParams","studentId","student"],["class","ms-2",3,"reports",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"],[1,"ms-2",3,"reports"],[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"]],template:function(t,i){1&t&&(e.j41(0,"div",3),e.DNE(1,Ve,5,4,"ng-container",4),e.nI1(2,"async"),e.nI1(3,"async"),e.nI1(4,"async"),e.k0s()),2&t&&(e.R7$(),e.Y8G("bkdLet",e.sMw(7,Te,e.bMT(2,1,i.state.profile$),e.bMT(3,3,i.state.currentDossier$),e.bMT(4,5,i.dossierGradesService.testReports$))))},dependencies:[b.N,c.bT,De,ye.Z,c.pM,m.Wk,m.wQ,m.n3,S.t,c.Jj,d.h,d.D9],changeDetection:0})}return n})(),children:[{path:"addresses",component:be},{path:"absences",component:se},{path:"grades",component:ke}]},{path:"absences/confirm",component:T.k}]}}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/421.js b/public/apps/webapp-schulverwaltung/421.js deleted file mode 100644 index 97b2a528..00000000 --- a/public/apps/webapp-schulverwaltung/421.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[421],{4421:(ds,Q,o)=>{o.r(Q),o.d(Q,{EDIT_ABSENCES_ROUTES:()=>us});var Ie=o(6407),g=o(177),p=o(9417),T=o(3955),Fe=o(3460),z=o(4412),y=o(1413),m=o(6354),k=o(4668),v=o(6977),I=o(6697),V=o(5558),ye=o(980),$=o(2809),D=o(8156),Se=o(7721),K=o(7887),J=o(4572),M=o(9728),W=o(4125),e=o(4438),Ae=o(9946),_=function(s){return s.Absent="absent",s.Dispensation="dispensation",s.HalfDay="half-day",s.Incident="incident",s.Present="present",s}(_||{});let ke=(()=>{class s{constructor(t,n){this.updateService=t,this.settings=n}update(t,n,i,a,r,c){let u=[];switch(i){case _.Present:u=this.createResetBulkRequests(t);break;case _.Absent:u=this.createAbsentEditBulkRequests(t,n,a,r);break;case _.Dispensation:u=this.createEditBulkRequests(t,null,this.settings.dispensationPresenceTypeId);break;case _.HalfDay:u=this.createEditBulkRequests(t,null,this.settings.halfDayPresenceTypeId);break;case _.Incident:u=this.createEditBulkRequests(t,null,c)}return(0,J.z)(u).pipe((0,m.T)(()=>{}))}createAbsentEditBulkRequests(t,n,i,a){return i===this.settings.excusedAbsenceStateId?this.createEditBulkRequests(t,i,a):i===this.settings.unexcusedAbsenceStateId?this.createEditBulkRequests(t,i,this.settings.absencePresenceTypeId):[...this.createEditBulkRequests(t.filter(Z(n,this.settings)),i,this.settings.absencePresenceTypeId),...this.createEditBulkRequests(t.filter((0,M.AU)(Z(n,this.settings))),i,null)]}createResetBulkRequests(t){return(0,W.Jr)(t).map(({lessonIds:n,personIds:i})=>this.updateService.removeLessonPresences(n,i))}createEditBulkRequests(t,n,i){return(0,W.Jr)(t).map(({lessonIds:a,personIds:r})=>this.updateService.editLessonPresences(a,r,i||void 0,n||void 0))}static#e=this.\u0275fac=function(n){return new(n||s)(e.KVO(Ae.T),e.KVO($.yy))};static#t=this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function Z(s,l){return t=>{const n=s.find(i=>i.Id===t.TypeRef.Id);return!n||n.Id===l.dispensationPresenceTypeId||n.Id===l.halfDayPresenceTypeId||n.IsIncident}}var w=o(5539),De=o(5889),q=o(2915),we=o(1369),Oe=o(5561),Re=o(3382),Be=o(2930),xe=o(2673),$e=o(4814),Me=o(9067),ee=o(8413),te=o(8296);let S=(()=>{class s extends q.z{constructor(t,n,i,a,r,c,u){super(t,n,i,a,"/edit-absences"),this.lessonPresencesService=r,this.presenceTypesService=c,this.dropDownItemsService=u,this.presenceTypes$=this.loadPresenceTypes().pipe((0,k.t)(1)),this.absenceConfirmationStates$=this.loadAbsenceConfirmationStates().pipe((0,m.T)(Oe.w),(0,k.t)(1)),this.presenceControlEntries$=(0,J.z)([this.entries$,this.presenceTypes$,this.absenceConfirmationStates$]).pipe((0,m.T)((0,Re.i)(Be.F)),(0,k.t)(1)),this.selected=[],this.queryParamsString$.pipe((0,v.Q)(this.destroy$)).subscribe(d=>this.confirmBackLinkParams={returnparams:d})}resetSelection(){this.selected=[]}updateAfterConfirm(){this.resetEntries()}getInitialFilter(){return{student:null,educationalEvent:null,studyClass:null,teacher:null,dateFrom:null,dateTo:null,presenceTypes:null,confirmationStates:null,incidentTypes:null}}isValidFilter(t){return!!(t.student||t.educationalEvent||t.studyClass||t.teacher||t.dateFrom||t.dateTo||t.presenceTypes||t.confirmationStates||t.incidentTypes)}loadEntries(t,n,i){return this.loadingService.load(this.lessonPresencesService.getFilteredList(t,i,{sort:"StudentFullName.asc,LessonDateTimeFrom.asc"}),q.b)}buildParamsFromFilter(t){return(0,we.G)(t)}loadPresenceTypes(){return this.loadingService.load(this.presenceTypesService.activePresenceTypes$)}loadAbsenceConfirmationStates(){return this.loadingService.load(this.dropDownItemsService.getAbsenceConfirmationStates())}static#e=this.\u0275fac=function(n){return new(n||s)(e.KVO(g.aZ),e.KVO(xe.U),e.KVO($e.a),e.KVO($.yy),e.KVO(Me.g),e.KVO(ee._),e.KVO(te.v))};static#t=this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac})}return s})();const Le=(s,l,t)=>({confirmationStates:s,categories:l,formGroup:t});function Ne(s,l){if(1&s&&(e.j41(0,"div",11),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s){const t=l.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,"global.validation-errors."+t.error,t.params)," ")}}function Ge(s,l){if(1&s&&(e.j41(0,"option",23),e.EFF(1),e.k0s()),2&s){const t=l.$implicit;e.Y8G("ngValue",t.Id),e.R7$(),e.SpI(" ",t.Designation," ")}}function je(s,l){if(1&s&&(e.j41(0,"select",22),e.nI1(1,"async"),e.j41(2,"option",23),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.DNE(5,Ge,2,2,"option",24),e.nI1(6,"async"),e.k0s()),2&s){let t;const n=e.XpG(6);e.AVh("is-invalid",(null==(t=e.bMT(1,5,n.absenceTypeIdErrors$))?null:t.length)||!1),e.R7$(2),e.Y8G("ngValue",null),e.R7$(),e.SpI(" ",e.bMT(4,7,"edit-absences.edit.absence-type-placeholder")," "),e.R7$(2),e.Y8G("ngForOf",e.bMT(6,9,n.absenceTypes$))}}function Pe(s,l){if(1&s&&(e.j41(0,"div",25),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s){const t=l.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,"global.validation-errors."+t.error,t.params)," ")}}function Ve(s,l){if(1&s&&(e.j41(0,"div",18),e.nrm(1,"input",19),e.j41(2,"label",14),e.EFF(3),e.k0s(),e.DNE(4,je,7,11,"select",20)(5,Pe,3,4,"div",21),e.nI1(6,"async"),e.k0s()),2&s){const t=l.$implicit,n=e.XpG(5);e.R7$(),e.Y8G("id","state-"+t.Key)("value",t.Key),e.R7$(),e.FS9("for","state-"+t.Key),e.R7$(),e.SpI(" ",t.Value," "),e.R7$(),e.Y8G("ngIf",n.isExcused(t)),e.R7$(),e.Y8G("ngForOf",e.bMT(6,6,n.absenceTypeIdErrors$))}}function Ue(s,l){if(1&s&&(e.j41(0,"div",16),e.DNE(1,Ve,7,8,"div",17),e.k0s()),2&s){const t=e.XpG(3).bkdLet;e.R7$(),e.Y8G("ngForOf",t.confirmationStates)}}function Xe(s,l){if(1&s&&(e.j41(0,"option",23),e.EFF(1),e.k0s()),2&s){const t=l.$implicit;e.Y8G("ngValue",t.Id),e.R7$(),e.SpI(" ",t.Designation," ")}}function He(s,l){if(1&s&&(e.j41(0,"div",25),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s){const t=l.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,"global.validation-errors."+t.error,t.params)," ")}}function Ye(s,l){if(1&s&&(e.j41(0,"div",16)(1,"select",26),e.nI1(2,"async"),e.j41(3,"option",23),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.DNE(6,Xe,2,2,"option",24),e.nI1(7,"async"),e.k0s(),e.DNE(8,He,3,4,"div",21),e.nI1(9,"async"),e.k0s()),2&s){let t;const n=e.XpG(4);e.R7$(),e.AVh("is-invalid",(null==(t=e.bMT(2,6,n.incidentIdErrors$))?null:t.length)||!1),e.R7$(2),e.Y8G("ngValue",null),e.R7$(),e.SpI(" ",e.bMT(5,8,"edit-absences.edit.incident-placeholder")," "),e.R7$(2),e.Y8G("ngForOf",e.bMT(7,10,n.incidents$)),e.R7$(2),e.Y8G("ngForOf",e.bMT(9,12,n.incidentIdErrors$))}}function Qe(s,l){if(1&s&&(e.j41(0,"div",12),e.nrm(1,"input",13),e.j41(2,"label",14),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.DNE(5,Ue,2,1,"div",15)(6,Ye,10,14,"div",15),e.k0s()),2&s){const t=l.$implicit,n=e.XpG(3);e.R7$(),e.Y8G("id","category-"+t)("value",t),e.R7$(),e.FS9("for","category-"+t),e.R7$(),e.SpI(" ",e.bMT(4,6,"edit-absences.edit.categories."+t)," "),e.R7$(2),e.Y8G("ngIf",n.isAbsent(t)),e.R7$(),e.Y8G("ngIf",n.isIncident(t))}}function ze(s,l){1&s&&(e.j41(0,"div",27)(1,"span",28),e.EFF(2,"Loading..."),e.k0s()())}function Ke(s,l){if(1&s){const t=e.RV6();e.j41(0,"form",3),e.bIt("ngSubmit",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.onSubmit())}),e.DNE(1,Ne,3,4,"div",4),e.nI1(2,"async"),e.j41(3,"div",5),e.DNE(4,Qe,7,8,"div",6),e.k0s(),e.j41(5,"div",7)(6,"button",8),e.nI1(7,"async"),e.bIt("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.cancel())}),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"button",9),e.nI1(11,"async"),e.EFF(12),e.nI1(13,"translate"),e.DNE(14,ze,3,0,"div",10),e.nI1(15,"async"),e.k0s()()()}if(2&s){const t=e.XpG().bkdLet,n=e.XpG();e.Y8G("formGroup",t.formGroup),e.R7$(),e.Y8G("ngForOf",e.bMT(2,8,n.formErrors$)),e.R7$(3),e.Y8G("ngForOf",t.categories),e.R7$(2),e.Y8G("disabled",e.bMT(7,10,n.saving$)),e.R7$(2),e.SpI(" ",e.bMT(9,12,"edit-absences.edit.cancel")," "),e.R7$(2),e.Y8G("disabled",e.bMT(11,14,n.saving$)),e.R7$(2),e.SpI(" ",e.bMT(13,16,"edit-absences.edit.save")," "),e.R7$(2),e.Y8G("ngIf",e.bMT(15,18,n.saving$))}}function Je(s,l){if(1&s&&(e.j41(0,"div",1),e.DNE(1,Ke,16,20,"form",2),e.k0s()),2&s){const t=l.bkdLet;e.R7$(),e.Y8G("ngIf",t.formGroup&&t.confirmationStates)}}let We=(()=>{class s{constructor(t,n,i,a,r,c,u,d,E,f){this.fb=t,this.router=n,this.route=i,this.toastService=a,this.translate=r,this.state=c,this.dropDownItemsService=u,this.presenceTypesService=d,this.updateService=E,this.settings=f,this.absenceTypes$=this.presenceTypesService.confirmationTypes$,this.incidents$=this.presenceTypesService.incidentTypes$,this.formGroup$=this.createFormGroup(),this.saving$=new z.t(!1),this.submitted$=new z.t(!1),this.formErrors$=(0,D.v)(this.formGroup$,this.submitted$),this.absenceTypeIdErrors$=(0,D.v)(this.formGroup$,this.submitted$,"absenceTypeId"),this.incidentIdErrors$=(0,D.v)(this.formGroup$,this.submitted$,"incidentId"),this.availableCategories=[_.Absent,_.Dispensation,_.HalfDay,_.Incident,_.Present],this.confirmationStates$=this.dropDownItemsService.getAbsenceConfirmationStates().pipe((0,m.T)(this.sortAbsenceConfirmationStates.bind(this)),(0,k.t)(1)),this.activeCategories$=this.presenceTypesService.halfDayActive$.pipe((0,m.T)(b=>b?this.availableCategories:this.availableCategories.filter(A=>A!==_.HalfDay))),this.destroy$=new y.B}ngOnInit(){0===this.state.selected.length&&this.navigateBack(),(0,D.IK)(this.formGroup$,"category").pipe((0,v.Q)(this.destroy$)).subscribe(this.updateConfirmationValueDisabled.bind(this)),(0,D.IK)(this.formGroup$,"confirmationValue").pipe((0,v.Q)(this.destroy$)).subscribe(this.updateAbsenceTypeIdDisabled.bind(this))}ngOnDestroy(){this.destroy$.next()}isAbsent(t){return t===_.Absent}isExcused(t){return t.Key===this.settings.excusedAbsenceStateId}isIncident(t){return t===_.Incident}onSubmit(){this.submitted$.next(!0),this.formGroup$.pipe((0,I.s)(1)).subscribe(t=>{t.valid&&this.save(t)})}cancel(){this.navigateBack()}createFormGroup(){return this.getInitialAbsenceTypeId().pipe((0,m.T)(t=>this.fb.group({category:[_.Absent,p.k0.required],confirmationValue:[this.settings.excusedAbsenceStateId,p.k0.required],absenceTypeId:[t,p.k0.required],incidentId:[{value:null,disabled:!0},p.k0.required]})),(0,k.t)(1))}getInitialAbsenceTypeId(){return this.absenceTypes$.pipe((0,I.s)(1),(0,m.T)(t=>{const n=t.map(a=>a.Id),i=(0,Fe.A)(this.state.selected.map(a=>a.TypeRef.Id));return 1===i.length&&null!=i[0]&&n.includes(i[0])?i[0]:null}))}updateConfirmationValueDisabled(){this.formGroup$.pipe((0,I.s)(1)).subscribe(t=>{const n=t.get("category"),i=t.get("confirmationValue"),a=t.get("absenceTypeId"),r=t.get("incidentId");n&&i&&a&&r&&(n.value===_.Absent?(i.enable(),this.updateAbsenceTypeIdDisabled()):(i.disable(),a.disable()),n.value===_.Incident?r.enable():r.disable())})}updateAbsenceTypeIdDisabled(){this.formGroup$.pipe((0,I.s)(1)).subscribe(t=>{const n=t.get("confirmationValue"),i=t.get("absenceTypeId");n&&i&&(n.value===this.settings.excusedAbsenceStateId?i.enable():i.disable())})}save(t){this.saving$.next(!0);const{category:n,confirmationValue:i,absenceTypeId:a,incidentId:r}=t.value;this.presenceTypesService.presenceTypes$.pipe((0,V.n)(c=>this.updateService.update(this.state.selected,c,n,i,a,r)),(0,ye.j)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.state.resetSelection(),this.toastService.success(this.translate.instant("edit-absences.edit.save-success")),this.navigateBack(!0)}navigateBack(t){this.route.queryParams.pipe((0,I.s)(1)).subscribe(n=>{this.router.navigate(["/edit-absences"],{queryParams:{...(0,Se.JO)(n.returnparams),reload:t}})})}sortAbsenceConfirmationStates(t){return t.slice().sort((n,i)=>n.Key===this.settings.excusedAbsenceStateId?-1:i.Key===this.settings.excusedAbsenceStateId?1:n.Value.localeCompare(i.Value))}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(p.ze),e.rXU(w.Ix),e.rXU(w.nX),e.rXU(De.f),e.rXU(T.c$),e.rXU(S),e.rXU(te.v),e.rXU(ee._),e.rXU(ke),e.rXU($.yy))};static#t=this.\u0275cmp=e.VBU({type:s,selectors:[["bkd-edit-absences-edit"]],standalone:!0,features:[e.aNF],decls:7,vars:14,consts:[["class","bkd-container bkd-container-limited",4,"bkdLet"],[1,"bkd-container","bkd-container-limited"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"ngSubmit","formGroup"],["class","alert alert-danger",4,"ngFor","ngForOf"],[1,"form-group","pb-4"],["class","form-check mt-2 mb-3",4,"ngFor","ngForOf"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-secondary",3,"click","disabled"],["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"],[1,"form-check","mt-2","mb-3"],["type","radio","formControlName","category",1,"form-check-input",3,"id","value"],[1,"form-check-label",3,"for"],["class","ms-5",4,"ngIf"],[1,"ms-5"],["class","form-check mt-2 mb-2",4,"ngFor","ngForOf"],[1,"form-check","mt-2","mb-2"],["type","radio","formControlName","confirmationValue",1,"form-check-input",3,"id","value"],["class","form-select mt-1","formControlName","absenceTypeId",3,"is-invalid",4,"ngIf"],["class","invalid-feedback",4,"ngFor","ngForOf"],["formControlName","absenceTypeId",1,"form-select","mt-1"],[3,"ngValue"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"invalid-feedback"],["formControlName","incidentId",1,"form-select","mt-1"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(n,i){1&n&&(e.j41(0,"h1"),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.DNE(3,Je,2,1,"div",0),e.nI1(4,"async"),e.nI1(5,"async"),e.nI1(6,"async")),2&n&&(e.R7$(),e.JRh(e.bMT(2,2,"edit-absences.title")),e.R7$(2),e.Y8G("bkdLet",e.sMw(10,Le,e.bMT(4,4,i.confirmationStates$),e.bMT(5,6,i.activeCategories$),e.bMT(6,8,i.formGroup$))))},dependencies:[K.N,g.bT,p.YN,p.qT,p.xH,p.y7,p.me,p.wz,p.Fm,p.BC,p.cb,p.X1,p.j4,p.JD,g.pM,g.Jj,T.h,T.D9],changeDetection:0})}return s})();var ne=o(6820),se=o(5964),ie=o(6834),Ze=o(1517),qe=o(8268);let le=(()=>{class s extends qe.A{static#e=this.\u0275fac=(()=>{let t;return function(i){return(t||(t=e.xGo(s)))(i||s)}})();static#t=this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac})}return s})();var U=o(1324),et=o(3601),X=o(2055),tt=o(1964),F=o(5359),nt=o(181),st=o(3236),it=o(9974),lt=o(8750),ae=o(4360),rt=o(1584);var ct=o(9172),ut=o(8141),dt=o(152),re=o(6780),ht=o(8359);const O={schedule(s){let l=requestAnimationFrame,t=cancelAnimationFrame;const{delegate:n}=O;n&&(l=n.requestAnimationFrame,t=n.cancelAnimationFrame);const i=l(a=>{t=void 0,s(a)});return new ht.yU(()=>t?.(i))},requestAnimationFrame(...s){const{delegate:l}=O;return(l?.requestAnimationFrame||requestAnimationFrame)(...s)},cancelAnimationFrame(...s){const{delegate:l}=O;return(l?.cancelAnimationFrame||cancelAnimationFrame)(...s)},delegate:void 0};var oe=o(9687);const gt=new class mt extends oe.q{flush(l){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let i;l=l||n.shift();do{if(i=l.execute(l.state,l.delay))break}while((l=n[0])&&l.id===t&&n.shift());if(this._active=!1,i){for(;(l=n[0])&&l.id===t&&n.shift();)l.unsubscribe();throw i}}}(class pt extends re.R{constructor(l,t){super(l,t),this.scheduler=l,this.work=t}requestAsyncId(l,t,n=0){return null!==n&&n>0?super.requestAsyncId(l,t,n):(l.actions.push(this),l._scheduled||(l._scheduled=O.requestAnimationFrame(()=>l.flush(void 0))))}recycleAsyncId(l,t,n=0){var i;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(l,t,n);const{actions:a}=l;null!=t&&(null===(i=a[a.length-1])||void 0===i?void 0:i.id)!==t&&(O.cancelAnimationFrame(t),l._scheduled=void 0)}});let H,_t=1;const L={};function ce(s){return s in L&&(delete L[s],!0)}const ft={setImmediate(s){const l=_t++;return L[l]=!0,H||(H=Promise.resolve()),H.then(()=>ce(l)&&s()),l},clearImmediate(s){ce(s)}},{setImmediate:bt,clearImmediate:vt}=ft,N={setImmediate(...s){const{delegate:l}=N;return(l?.setImmediate||bt)(...s)},clearImmediate(s){const{delegate:l}=N;return(l?.clearImmediate||vt)(s)},delegate:void 0},Ct=new class Tt extends oe.q{flush(l){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let i;l=l||n.shift();do{if(i=l.execute(l.state,l.delay))break}while((l=n[0])&&l.id===t&&n.shift());if(this._active=!1,i){for(;(l=n[0])&&l.id===t&&n.shift();)l.unsubscribe();throw i}}}(class Et extends re.R{constructor(l,t){super(l,t),this.scheduler=l,this.work=t}requestAsyncId(l,t,n=0){return null!==n&&n>0?super.requestAsyncId(l,t,n):(l.actions.push(this),l._scheduled||(l._scheduled=N.setImmediate(l.flush.bind(l,void 0))))}recycleAsyncId(l,t,n=0){var i;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(l,t,n);const{actions:a}=l;null!=t&&(null===(i=a[a.length-1])||void 0===i?void 0:i.id)!==t&&(N.clearImmediate(t),l._scheduled===t&&(l._scheduled=void 0))}});var G=o(3726),Y=o(7786);const It=["content"],Ft=["scroll"],yt=["padding"],ue=["*"],R=s=>({searchTerm:s});function St(s,l){if(1&s&&(e.j41(0,"div",6),e.eu8(1,7),e.k0s()),2&s){const t=e.XpG();e.R7$(),e.Y8G("ngTemplateOutlet",t.headerTemplate)("ngTemplateOutletContext",e.eq3(2,R,t.filterValue))}}function At(s,l){if(1&s&&(e.j41(0,"div",8),e.eu8(1,7),e.k0s()),2&s){const t=e.XpG();e.R7$(),e.Y8G("ngTemplateOutlet",t.footerTemplate)("ngTemplateOutletContext",e.eq3(2,R,t.filterValue))}}const kt=["searchInput"],Dt=["clearButton"],wt=(s,l,t)=>({item:s,clear:l,label:t}),Ot=(s,l)=>({items:s,clear:l}),Rt=(s,l,t,n)=>({item:s,item$:l,index:t,searchTerm:n});function Bt(s,l){if(1&s){const t=e.RV6();e.j41(0,"span",22),e.bIt("click",function(){e.eBV(t);const i=e.XpG().$implicit,a=e.XpG(2);return e.Njj(a.unselect(i))}),e.EFF(1,"\xd7"),e.k0s(),e.nrm(2,"span",23)}if(2&s){const t=e.XpG().$implicit,n=e.XpG(2);e.R7$(2),e.Y8G("ngItemLabel",t.label)("escape",n.escapeHTML)}}function xt(s,l){}function $t(s,l){if(1&s&&(e.j41(0,"div",20),e.DNE(1,Bt,3,2,"ng-template",null,1,e.C5r)(3,xt,0,0,"ng-template",21),e.k0s()),2&s){const t=l.$implicit,n=e.sdS(2),i=e.XpG(2);e.AVh("ng-value-disabled",t.disabled),e.R7$(3),e.Y8G("ngTemplateOutlet",i.labelTemplate||n)("ngTemplateOutletContext",e.sMw(4,wt,t.value,i.clearItem,t.label))}}function Mt(s,l){if(1&s&&(e.qex(0),e.DNE(1,$t,4,8,"div",19),e.bVm()),2&s){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.selectedItems)("ngForTrackBy",t.trackByOption)}}function Lt(s,l){}function Nt(s,l){if(1&s&&e.DNE(0,Lt,0,0,"ng-template",21),2&s){const t=e.XpG();e.Y8G("ngTemplateOutlet",t.multiLabelTemplate)("ngTemplateOutletContext",e.l_i(2,Ot,t.selectedValues,t.clearItem))}}function Gt(s,l){1&s&&e.nrm(0,"div",25)}function jt(s,l){}function Pt(s,l){if(1&s&&(e.qex(0),e.DNE(1,Gt,1,0,"ng-template",null,2,e.C5r)(3,jt,0,0,"ng-template",24),e.bVm()),2&s){const t=e.sdS(2),n=e.XpG();e.R7$(3),e.Y8G("ngTemplateOutlet",n.loadingSpinnerTemplate||t)}}function Vt(s,l){if(1&s&&(e.j41(0,"span",26,3)(2,"span",27),e.EFF(3,"\xd7"),e.k0s()()),2&s){const t=e.XpG();e.FS9("title",t.clearAllText)}}function Ut(s,l){if(1&s&&e.nrm(0,"span",32),2&s){const t=e.XpG().$implicit,n=e.XpG(2);e.Y8G("ngItemLabel",t.label)("escape",n.escapeHTML)}}function Xt(s,l){}function Ht(s,l){if(1&s){const t=e.RV6();e.j41(0,"div",31),e.bIt("click",function(){const i=e.eBV(t).$implicit,a=e.XpG(2);return e.Njj(a.toggleItem(i))})("mouseover",function(){const i=e.eBV(t).$implicit,a=e.XpG(2);return e.Njj(a.onItemHover(i))}),e.DNE(1,Ut,1,2,"ng-template",null,4,e.C5r)(3,Xt,0,0,"ng-template",21),e.k0s()}if(2&s){const t=l.$implicit,n=e.sdS(2),i=e.XpG(2);e.AVh("ng-option-disabled",t.disabled)("ng-option-selected",t.selected)("ng-optgroup",t.children)("ng-option",!t.children)("ng-option-child",!!t.parent)("ng-option-marked",t===i.itemsList.markedItem),e.BMQ("role",t.children?"group":"option")("aria-selected",t.selected)("id",null==t?null:t.htmlId),e.R7$(3),e.Y8G("ngTemplateOutlet",t.children?i.optgroupTemplate||n:i.optionTemplate||n)("ngTemplateOutletContext",e.ziG(17,Rt,t.value,t,t.index,i.searchTerm))}}function Yt(s,l){if(1&s&&(e.j41(0,"span")(1,"span",34),e.EFF(2),e.k0s(),e.EFF(3),e.k0s()),2&s){const t=e.XpG(3);e.R7$(2),e.JRh(t.addTagText),e.R7$(),e.SpI('"',t.searchTerm,'"')}}function Qt(s,l){}function zt(s,l){if(1&s){const t=e.RV6();e.j41(0,"div",33),e.bIt("mouseover",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.itemsList.unmarkItem())})("click",function(){e.eBV(t);const i=e.XpG(2);return e.Njj(i.selectTag())}),e.DNE(1,Yt,4,2,"ng-template",null,5,e.C5r)(3,Qt,0,0,"ng-template",21),e.k0s()}if(2&s){const t=e.sdS(2),n=e.XpG(2);e.AVh("ng-option-marked",!n.itemsList.markedItem),e.R7$(3),e.Y8G("ngTemplateOutlet",n.tagTemplate||t)("ngTemplateOutletContext",e.eq3(4,R,n.searchTerm))}}function Kt(s,l){if(1&s&&(e.j41(0,"div",35),e.EFF(1),e.k0s()),2&s){const t=e.XpG(3);e.R7$(),e.JRh(t.notFoundText)}}function Jt(s,l){}function Wt(s,l){if(1&s&&(e.qex(0),e.DNE(1,Kt,2,1,"ng-template",null,6,e.C5r)(3,Jt,0,0,"ng-template",21),e.bVm()),2&s){const t=e.sdS(2),n=e.XpG(2);e.R7$(3),e.Y8G("ngTemplateOutlet",n.notFoundTemplate||t)("ngTemplateOutletContext",e.eq3(2,R,n.searchTerm))}}function Zt(s,l){if(1&s&&(e.j41(0,"div",35),e.EFF(1),e.k0s()),2&s){const t=e.XpG(3);e.R7$(),e.JRh(t.typeToSearchText)}}function qt(s,l){}function en(s,l){if(1&s&&(e.qex(0),e.DNE(1,Zt,2,1,"ng-template",null,7,e.C5r)(3,qt,0,0,"ng-template",24),e.bVm()),2&s){const t=e.sdS(2),n=e.XpG(2);e.R7$(3),e.Y8G("ngTemplateOutlet",n.typeToSearchTemplate||t)}}function tn(s,l){if(1&s&&(e.j41(0,"div",35),e.EFF(1),e.k0s()),2&s){const t=e.XpG(3);e.R7$(),e.JRh(t.loadingText)}}function nn(s,l){}function sn(s,l){if(1&s&&(e.qex(0),e.DNE(1,tn,2,1,"ng-template",null,8,e.C5r)(3,nn,0,0,"ng-template",21),e.bVm()),2&s){const t=e.sdS(2),n=e.XpG(2);e.R7$(3),e.Y8G("ngTemplateOutlet",n.loadingTextTemplate||t)("ngTemplateOutletContext",e.eq3(2,R,n.searchTerm))}}function ln(s,l){if(1&s){const t=e.RV6();e.j41(0,"ng-dropdown-panel",28),e.bIt("update",function(i){e.eBV(t);const a=e.XpG();return e.Njj(a.viewPortItems=i)})("scroll",function(i){e.eBV(t);const a=e.XpG();return e.Njj(a.scroll.emit(i))})("scrollToEnd",function(i){e.eBV(t);const a=e.XpG();return e.Njj(a.scrollToEnd.emit(i))})("outsideClick",function(){e.eBV(t);const i=e.XpG();return e.Njj(i.close())}),e.qex(1),e.DNE(2,Ht,4,22,"div",29)(3,zt,4,6,"div",30),e.bVm(),e.DNE(4,Wt,4,4,"ng-container",12)(5,en,4,1,"ng-container",12)(6,sn,4,4,"ng-container",12),e.k0s()}if(2&s){const t=e.XpG();e.AVh("ng-select-multiple",t.multiple),e.Y8G("virtualScroll",t.virtualScroll)("bufferAmount",t.bufferAmount)("appendTo",t.appendTo)("position",t.dropdownPosition)("headerTemplate",t.headerTemplate)("footerTemplate",t.footerTemplate)("filterValue",t.searchTerm)("items",t.itemsList.filteredItems)("markedItem",t.itemsList.markedItem)("ngClass",t.appendTo?t.classes:null)("id",t.dropdownId),e.R7$(2),e.Y8G("ngForOf",t.viewPortItems)("ngForTrackBy",t.trackByOption),e.R7$(),e.Y8G("ngIf",t.showAddTag),e.R7$(),e.Y8G("ngIf",t.showNoItemsFound()),e.R7$(),e.Y8G("ngIf",t.showTypeToSearch()),e.R7$(),e.Y8G("ngIf",t.loading&&0===t.itemsList.filteredItems.length)}}const de=/[&<>"']/g,an=RegExp(de.source),rn={"&":"&","<":"<",">":">",'"':""","'":"'"};function h(s){return null!=s}function B(s){return"object"==typeof s&&h(s)}function j(s){return s instanceof Function}let un=(()=>{class s{constructor(t){this.element=t,this.escape=!0}ngOnChanges(t){this.element.nativeElement.innerHTML=this.escape?function on(s){return s&&an.test(s)?s.replace(de,l=>rn[l]):s}(this.ngItemLabel):this.ngItemLabel}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(e.aKT))};static#t=this.\u0275dir=e.FsC({type:s,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[e.OA$]})}return s})(),he=(()=>{class s{constructor(t){this.template=t}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:s,selectors:[["","ng-option-tmp",""]]})}return s})(),pe=(()=>{class s{constructor(t){this.template=t}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:s,selectors:[["","ng-optgroup-tmp",""]]})}return s})(),dn=(()=>{class s{constructor(t){this.template=t}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:s,selectors:[["","ng-label-tmp",""]]})}return s})(),me=(()=>{class s{constructor(t){this.template=t}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:s,selectors:[["","ng-multi-label-tmp",""]]})}return s})(),hn=(()=>{class s{constructor(t){this.template=t}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:s,selectors:[["","ng-header-tmp",""]]})}return s})(),pn=(()=>{class s{constructor(t){this.template=t}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:s,selectors:[["","ng-footer-tmp",""]]})}return s})(),mn=(()=>{class s{constructor(t){this.template=t}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:s,selectors:[["","ng-notfound-tmp",""]]})}return s})(),gn=(()=>{class s{constructor(t){this.template=t}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:s,selectors:[["","ng-typetosearch-tmp",""]]})}return s})(),_n=(()=>{class s{constructor(t){this.template=t}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:s,selectors:[["","ng-loadingtext-tmp",""]]})}return s})(),fn=(()=>{class s{constructor(t){this.template=t}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:s,selectors:[["","ng-tag-tmp",""]]})}return s})(),bn=(()=>{class s{constructor(t){this.template=t}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(e.C4Q))};static#t=this.\u0275dir=e.FsC({type:s,selectors:[["","ng-loadingspinner-tmp",""]]})}return s})();function ge(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const vn={"\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 P(s){return s.replace(/[^\u0000-\u007E]/g,t=>vn[t]||t)}class En{constructor(l,t){this._ngSelect=l,this._selectionModel=t,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 l=this.selectedItems.length-1;for(;l>=0;l--){const t=this.selectedItems[l];if(!t.disabled)return t}return null}setItems(l){this._items=l.map((t,n)=>this.mapItem(t,n)),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(l){if(l.selected||this.maxItemsSelected)return;const t=this._ngSelect.multiple;t||this.clearSelected(),this._selectionModel.select(l,t,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(l)}unselect(l){l.selected&&(this._selectionModel.unselect(l,this._ngSelect.multiple),this._ngSelect.hideSelected&&h(l.index)&&this._ngSelect.multiple&&this._showSelected(l))}findItem(l){let t;return t=this._ngSelect.compareWith?n=>this._ngSelect.compareWith(n.value,l):this._ngSelect.bindValue?n=>!n.children&&this.resolveNested(n.value,this._ngSelect.bindValue)===l:n=>n.value===l||!n.children&&n.label&&n.label===this.resolveNested(l,this._ngSelect.bindLabel),this._items.find(n=>t(n))}addItem(l){const t=this.mapItem(l,this._items.length);return this._items.push(t),this._filteredItems.push(t),t}clearSelected(l=!1){this._selectionModel.clear(l),this._items.forEach(t=>{t.selected=l&&t.selected&&t.disabled,t.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(l){return l=P(l).toLocaleLowerCase(),this.filteredItems.find(t=>P(t.label).toLocaleLowerCase().substr(0,l.length)===l)}filter(l){if(!l)return void this.resetFilteredItems();this._filteredItems=[],l=this._ngSelect.searchFn?l:P(l).toLocaleLowerCase();const t=this._ngSelect.searchFn||this._defaultSearchFn,n=this._ngSelect.hideSelected;for(const i of Array.from(this._groups.keys())){const a=[];for(const r of this._groups.get(i))n&&(r.parent&&r.parent.selected||r.selected)||t(l,this._ngSelect.searchFn?r.value:r)&&a.push(r);if(a.length>0){const[r]=a.slice(-1);if(r.parent){const c=this._items.find(u=>u===r.parent);this._filteredItems.push(c)}this._filteredItems.push(...a)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(l=>!l.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(l){this._markedIndex=this._filteredItems.indexOf(l)}markSelectedOrDefault(l){if(0===this._filteredItems.length)return;const t=this._getLastMarkedIndex();this._markedIndex=t>-1?t:l?this.filteredItems.findIndex(n=>!n.disabled):-1}resolveNested(l,t){if(!B(l))return l;if(-1===t.indexOf("."))return l[t];{const n=t.split(".");let i=l;for(let a=0,r=n.length;a-1===this.selectedItems.indexOf(t)))}_showSelected(l){if(this._filteredItems.push(l),l.parent){const t=l.parent;this._filteredItems.find(i=>i===t)||this._filteredItems.push(t)}else if(l.children)for(const t of l.children)t.selected=!1,this._filteredItems.push(t);this._filteredItems=[...this._filteredItems.sort((t,n)=>t.index-n.index)]}_hideSelected(l){this._filteredItems=this._filteredItems.filter(t=>t!==l),l.parent?l.parent.children.every(n=>n.selected)&&(this._filteredItems=this._filteredItems.filter(n=>n!==l.parent)):l.children&&(this._filteredItems=this.filteredItems.filter(t=>t.parent!==l))}_defaultSearchFn(l,t){return P(t.label).toLocaleLowerCase().indexOf(l)>-1}_getNextItemIndex(l){return l>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(l){0===this._filteredItems.length||this._filteredItems.every(t=>t.disabled)||(this._markedIndex=this._getNextItemIndex(l),this.markedItem.disabled&&this._stepToItem(l))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const l=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&l<0?-1:Math.max(this.markedIndex,l)}_groupBy(l,t){const n=new Map;if(0===l.length)return n;if(Array.isArray(l[0].value[t])){for(const r of l){const c=(r.value[t]||[]).map((u,d)=>this.mapItem(u,d));n.set(r,c)}return n}const i=j(this._ngSelect.groupBy),a=r=>{const c=i?t(r.value):r.value[t];return h(c)?c:void 0};for(const r of l){const c=a(r),u=n.get(c);u?u.push(r):n.set(c,[r])}return n}_flatten(l){const t=j(this._ngSelect.groupBy),n=[];for(const i of Array.from(l.keys())){let a=n.length;if(void 0===i){const f=l.get(void 0)||[];n.push(...f.map(b=>(b.index=a++,b)));continue}const r=B(i),c={label:r?"":String(i),children:void 0,parent:null,index:a++,disabled:!this._ngSelect.selectableGroup,htmlId:ge()},u=t?this._ngSelect.bindLabel:this._ngSelect.groupBy,d=this._ngSelect.groupValue||(()=>r?i.value:{[u]:i}),E=l.get(i).map(f=>(f.parent=c,f.children=void 0,f.index=a++,f));c.children=E,c.value=d(i,E.map(f=>f.value)),n.push(c),n.push(...E)}return n}}var C=function(s){return s[s.Tab=9]="Tab",s[s.Enter=13]="Enter",s[s.Esc=27]="Esc",s[s.Space=32]="Space",s[s.ArrowUp=38]="ArrowUp",s[s.ArrowDown=40]="ArrowDown",s[s.Backspace=8]="Backspace",s}(C||{});let _e=(()=>{class s{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(t,n,i){const a=this._dimensions,r=a.itemHeight*n,u=Math.max(0,t)/r*n;let d=Math.min(n,Math.ceil(u)+(a.itemsPerViewport+1));const f=Math.max(0,d-a.itemsPerViewport);let b=Math.min(f,Math.floor(u)),A=a.itemHeight*Math.ceil(b)-a.itemHeight*Math.min(b,i);return A=isNaN(A)?0:A,b=isNaN(b)?-1:b,d=isNaN(d)?-1:d,b-=i,b=Math.max(0,b),d+=i,d=Math.min(n,d),{topPadding:A,scrollHeight:r,start:b,end:d}}setDimensions(t,n){const i=Math.max(1,Math.floor(n/t));this._dimensions={itemHeight:t,panelHeight:n,itemsPerViewport:i}}getScrollTo(t,n,i){const{panelHeight:a}=this.dimensions,r=t+n,u=i+a;return a>=r&&i===t?null:r>u?i+r-u:t<=i?t:null}static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac})}return s})();const fe=["top","right","bottom","left"],Tn=typeof requestAnimationFrame<"u"?gt:Ct;let be=(()=>{class s{constructor(t,n,i,a,r){this._renderer=t,this._zone=n,this._panelService=i,this._document=r,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new e.bkB,this.scroll=new e.bkB,this.scrollToEnd=new e.bkB,this.outsideClick=new e.bkB,this._destroy$=new y.B,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=a.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(t){t!==this._itemsLength&&(this._itemsLength=t,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:t,panelHeight:n}=this._panelService.dimensions,i=this.markedItem.index*t;return n>i?0:i}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(t){if(t.items){const n=t.items;this._onItemsChange(n.currentValue,n.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(t,n=!1){if(!t)return;const i=this.items.indexOf(t);if(i<0||i>=this.itemsLength)return;let a;if(this.virtualScroll){const r=this._panelService.dimensions.itemHeight;a=this._panelService.getScrollTo(i*r,r,this._lastScrollPosition)}else{const r=this._dropdown.querySelector(`#${t.htmlId}`);a=this._panelService.getScrollTo(r.offsetTop,r.clientHeight,n?r.offsetTop:this._lastScrollPosition)}h(a)&&(this._scrollablePanel.scrollTop=a)}scrollToTag(){const t=this._scrollablePanel;t.scrollTop=t.scrollHeight-t.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),fe.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(t){fe.forEach(i=>{const a=`ng-select-${i}`;this._renderer.removeClass(this._dropdown,a),this._renderer.removeClass(this._select,a)});const n=`ng-select-${t}`;this._renderer.addClass(this._dropdown,n),this._renderer.addClass(this._select,n)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,G.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,v.Q)(this._destroy$),function ot(s,l=st.E){return function at(s){return(0,it.N)((l,t)=>{let n=!1,i=null,a=null,r=!1;const c=()=>{if(a?.unsubscribe(),a=null,n){n=!1;const d=i;i=null,t.next(d)}r&&t.complete()},u=()=>{a=null,r&&t.complete()};l.subscribe((0,ae._)(t,d=>{n=!0,i=d,a||(0,lt.Tg)(s(d)).subscribe(a=(0,ae._)(t,c,u))},()=>{r=!0,(!n||!a||a.closed)&&t.complete()}))})}(()=>(0,rt.O)(s,l))}(0,Tn)).subscribe(t=>{const n=t.path||t.composedPath&&t.composedPath();n&&(0!==n.length||t.target)&&this._onContentScrolled(n&&0!==n.length?n[0].scrollTop:t.target.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{(0,Y.h)((0,G.R)(this._document,"touchstart",{capture:!0}),(0,G.R)(this._document,"mousedown",{capture:!0})).pipe((0,v.Q)(this._destroy$)).subscribe(t=>this._checkToClose(t))})}_checkToClose(t){if(this._select.contains(t.target)||this._dropdown.contains(t.target))return;const n=t.path||t.composedPath&&t.composedPath();t.target&&t.target.shadowRoot&&n&&n[0]&&this._select.contains(n[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(t,n){this.items=t||[],this._scrollToEndFired=!1,this.itemsLength=t.length,this.virtualScroll?this._updateItemsRange(n):(this._setVirtualHeight(),this._updateItems(n))}_updateItems(t){this.update.emit(this.items),!1!==t&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,t)})})}_updateItemsRange(t){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{t?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(t){this.virtualScroll&&this._renderItemsRange(t),this._lastScrollPosition=t,this._fireScrollToEnd(t)}_updateVirtualHeight(t){this._updateScrollHeight&&(this._virtualPadding.style.height=`${t}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(t=null){if(t&&this._lastScrollPosition===t)return;const n=this._panelService.calculateItems(t=t||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(n.scrollHeight),this._contentPanel.style.transform=`translateY(${n.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(n.start,n.end)),this.scroll.emit({start:n.start,end:n.end})}),h(t)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=t,this._lastScrollPosition=t)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[t]=this.items;return this.update.emit([t]),Promise.resolve().then(()=>{const i=this._dropdown.querySelector(`#${t.htmlId}`).clientHeight;return this._virtualPadding.style.height=i*this.itemsLength+"px",this._panelService.setDimensions(i,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(t){this._scrollToEndFired||0===t||t+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(t){if("auto"!==this.position)return this.position;const n=this._select.getBoundingClientRect(),i=document.documentElement.scrollTop||document.body.scrollTop;return n.top+window.pageYOffset+n.height+t.getBoundingClientRect().height>i+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 t=this._select.getBoundingClientRect(),n=this._parent.getBoundingClientRect();this._dropdown.style.left=t.left-n.left+"px",this._dropdown.style.width=t.width+"px",this._dropdown.style.minWidth=t.width+"px"}_updateYPosition(){const t=this._select.getBoundingClientRect(),n=this._parent.getBoundingClientRect(),i=t.height;"top"===this._currentPosition?(this._dropdown.style.bottom=n.bottom-t.bottom+i+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=t.top-n.top+i+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,G.R)(this._dropdown,"mousedown").pipe((0,v.Q)(this._destroy$)).subscribe(t=>{"INPUT"!==t.target.tagName&&t.preventDefault()})})}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(e.sFG),e.rXU(e.SKi),e.rXU(_e),e.rXU(e.aKT),e.rXU(g.qQ,8))};static#t=this.\u0275cmp=e.VBU({type:s,selectors:[["ng-dropdown-panel"]],viewQuery:function(n,i){if(1&n&&(e.GBs(It,7,e.aKT),e.GBs(Ft,7,e.aKT),e.GBs(yt,7,e.aKT)),2&n){let a;e.mGM(a=e.lsd())&&(i.contentElementRef=a.first),e.mGM(a=e.lsd())&&(i.scrollElementRef=a.first),e.mGM(a=e.lsd())&&(i.paddingElementRef=a.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:[e.OA$],ngContentSelectors:ue,decls:9,vars:6,consts:[["scroll",""],["padding",""],["content",""],["class","ng-dropdown-header",4,"ngIf"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(n,i){1&n&&(e.NAR(),e.DNE(0,St,2,4,"div",3),e.j41(1,"div",4,0),e.nrm(3,"div",null,1),e.j41(5,"div",null,2),e.SdG(7),e.k0s()(),e.DNE(8,At,2,4,"div",5)),2&n&&(e.Y8G("ngIf",i.headerTemplate),e.R7$(3),e.AVh("total-padding",i.virtualScroll),e.R7$(2),e.AVh("scrollable-content",i.virtualScroll&&i.items.length),e.R7$(3),e.Y8G("ngIf",i.footerTemplate))},dependencies:[g.bT,g.T3],encapsulation:2,changeDetection:0})}return s})(),Cn=(()=>{class s{get disabled(){return this._disabled}set disabled(t){this._disabled=this._isDisabled(t)}constructor(t){this.elementRef=t,this.stateChange$=new y.B,this._disabled=!1}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(t){t.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(t){return null!=t&&"false"!=`${t}`}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(e.aKT))};static#t=this.\u0275cmp=e.VBU({type:s,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[e.OA$],ngContentSelectors:ue,decls:1,vars:0,template:function(n,i){1&n&&(e.NAR(),e.SdG(0))},encapsulation:2,changeDetection:0})}return s})(),In=(()=>{class s{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(n){return new(n||s)};static#t=this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Fn=(()=>{class s{warn(t){console.warn(t)}static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();const ve=new e.nKC("ng-select-selection-model");let yn=(()=>{class s{get items(){return this._items}set items(t){null===t&&(t=[]),this._itemsAreUsed=!0,this._items=t}get compareWith(){return this._compareWith}set compareWith(t){if(null!=t&&!j(t))throw Error("`compareWith` must be a function.");this._compareWith=t}get clearSearchOnAdd(){return h(this._clearSearchOnAdd)?this._clearSearchOnAdd:h(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(t){this._clearSearchOnAdd=t}get deselectOnClick(){return h(this._deselectOnClick)?this._deselectOnClick:h(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(t){this._deselectOnClick=t}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(t,n,i,a,r,c,u){this.classes=t,this.autoFocus=n,this.config=i,this._cd=c,this._console=u,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=d=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new e.bkB,this.focusEvent=new e.bkB,this.changeEvent=new e.bkB,this.openEvent=new e.bkB,this.closeEvent=new e.bkB,this.searchEvent=new e.bkB,this.clearEvent=new e.bkB,this.addEvent=new e.bkB,this.removeEvent=new e.bkB,this.scroll=new e.bkB,this.scrollToEnd=new e.bkB,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=ge(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new y.B,this._keyPress$=new y.B,this._onChange=d=>{},this._onTouched=()=>{},this.clearItem=d=>{const E=this.selectedItems.find(f=>f.value===d);this.unselect(E)},this.trackByOption=(d,E)=>this.trackByFn?this.trackByFn(E.value):E,this._mergeGlobalConfig(i),this.itemsList=new En(this,a()),this.element=r.nativeElement}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(t=>t.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(t){t.multiple&&this.itemsList.clearSelected(),t.items&&this._setItems(t.items.currentValue||[]),t.isOpen&&(this._manualOpen=h(t.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),h(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(t){if(C[t.which]){if(!1===this.keyDownFn(t))return;this.handleKeyCode(t)}else t.key&&1===t.key.length&&this._keyPress$.next(t.key.toLocaleLowerCase())}handleKeyCode(t){this.clearButton&&this.clearButton.nativeElement===t.target?this.handleKeyCodeClear(t):this.handleKeyCodeInput(t)}handleKeyCodeInput(t){switch(t.which){case C.ArrowDown:this._handleArrowDown(t);break;case C.ArrowUp:this._handleArrowUp(t);break;case C.Space:this._handleSpace(t);break;case C.Enter:this._handleEnter(t);break;case C.Tab:this._handleTab(t);break;case C.Esc:this.close(),t.preventDefault();break;case C.Backspace:this._handleBackspace()}}handleKeyCodeClear(t){t.which===C.Enter&&(this.handleClearClick(),t.preventDefault())}handleMousedown(t){const n=t.target;"INPUT"!==n.tagName&&t.preventDefault(),n.classList.contains("ng-clear-wrapper")?this.handleClearClick():n.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():n.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(t){this.itemsList.clearSelected(),this._handleWriteValue(t),this._cd.markForCheck()}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._disabled=t,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(t){!t||t.disabled||this.disabled||(this.deselectOnClick&&t.selected?this.unselect(t):this.select(t),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(t){t.selected||(this.itemsList.select(t),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(t.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(t){t&&(this.itemsList.unselect(t),this.focus(),this._updateNgModel(),this.removeEvent.emit(t.value))}selectTag(){let t;t=j(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const n=i=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(i,null):this.itemsList.addItem(i);!function cn(s){return s instanceof Promise}(t)?t&&this.select(n(t)):t.then(i=>this.select(n(i))).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 t=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(n=>n.label.toLowerCase()===t)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(n=>n.label.toLowerCase()===t))&&!this.loading}showNoItemsFound(){const t=0===this.itemsList.filteredItems.length;return(t&&!this._isTypeahead&&!this.loading||t&&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(t){this._isComposing=!1,!this.searchWhileComposing&&this.filter(t)}filter(t){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=t,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(t),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:t,items:this.itemsList.filteredItems.map(n=>n.value)}),this.open())}onInputFocus(t){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(t),this.focused=!0)}onInputBlur(t){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(t),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(t){t.disabled||this.itemsList.markItem(t)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const t=this.selectedItems&&this.selectedItems[0];this.searchTerm=t&&t.label||null}_setItems(t){const n=t[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=h(n)?!B(n):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(t),t.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&h(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const t=i=>{this.items=i.map(a=>({$ngOptionValue:a.value,$ngOptionLabel:a.elementRef.nativeElement.innerHTML,disabled:a.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},n=()=>{const i=(0,Y.h)(this.ngOptions.changes,this._destroy$);(0,Y.h)(...this.ngOptions.map(a=>a.stateChange$)).pipe((0,v.Q)(i)).subscribe(a=>{const r=this.itemsList.findItem(a.value);r.disabled=a.disabled,r.label=a.label||r.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,ct.Z)(this.ngOptions),(0,v.Q)(this._destroy$)).subscribe(i=>{this.bindLabel=this._defaultLabel,t(i),n()})}_isValidWriteValue(t){if(!h(t)||this.multiple&&""===t||Array.isArray(t)&&0===t.length)return!1;const n=i=>!(!h(this.compareWith)&&B(i)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(i)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(t)?t.every(i=>n(i)):(this._console.warn("Multiple select ngModel should be array."),!1):n(t)}_handleWriteValue(t){if(!this._isValidWriteValue(t))return;const n=i=>{let a=this.itemsList.findItem(i);if(a)this.itemsList.select(a);else{const r=B(i);r||!r&&!this.bindValue?this.itemsList.select(this.itemsList.mapItem(i,null)):this.bindValue&&(a={[this.bindLabel]:null,[this.bindValue]:i},this.itemsList.select(this.itemsList.mapItem(a,null)))}};this.multiple?t.forEach(i=>n(i)):n(t)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,v.Q)(this._destroy$),(0,ut.M)(t=>this._pressedKeys.push(t)),(0,dt.B)(200),(0,se.p)(()=>this._pressedKeys.length>0),(0,m.T)(()=>this._pressedKeys.join(""))).subscribe(t=>{const n=this.itemsList.findByLabel(t);n&&(this.isOpen?(this.itemsList.markItem(n),this._scrollToMarked(),this._cd.markForCheck()):this.select(n)),this._pressedKeys=[]})}_setInputAttributes(){const t=this.searchInput.nativeElement,n={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const i of Object.keys(n))t.setAttribute(i,n[i])}_updateNgModel(){const t=[];for(const i of this.selectedItems)if(this.bindValue){let a=null;a=i.children?i.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(i.value,this.bindValue),t.push(a)}else t.push(i.value);const n=this.selectedItems.map(i=>i.value);this.multiple?(this._onChange(t),this.changeEvent.emit(n)):(this._onChange(h(t[0])?t[0]:null),this.changeEvent.emit(n[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(t){this.searchTerm=t,this._isTypeahead&&this.typeahead.next(t)}_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(t){if(!1===this.isOpen)if(this.showClear())this.focusOnClear(),t.preventDefault();else if(!this.addTag)return;this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),t.preventDefault()):this.showAddTag?(this.selectTag(),t.preventDefault()):this.close():this.close()}_handleEnter(t){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}t.preventDefault()}_handleSpace(t){this.isOpen||this._manualOpen||(this.open(),t.preventDefault())}_handleArrowDown(t){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),t.preventDefault()}_handleArrowUp(t){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),t.preventDefault())}_nextItemIsTag(t){const n=this.itemsList.markedIndex+t;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(n<0||n===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 t=this.searchTerm&&this.searchTerm.trim();return t&&t.length>=this.minTermLength}_mergeGlobalConfig(t){this.placeholder=this.placeholder||t.placeholder,this.notFoundText=this.notFoundText||t.notFoundText,this.typeToSearchText=this.typeToSearchText||t.typeToSearchText,this.addTagText=this.addTagText||t.addTagText,this.loadingText=this.loadingText||t.loadingText,this.clearAllText=this.clearAllText||t.clearAllText,this.virtualScroll=h(this.virtualScroll)?this.virtualScroll:!!h(t.disableVirtualScroll)&&!t.disableVirtualScroll,this.openOnEnter=h(this.openOnEnter)?this.openOnEnter:t.openOnEnter,this.appendTo=this.appendTo||t.appendTo,this.bindValue=this.bindValue||t.bindValue,this.bindLabel=this.bindLabel||t.bindLabel,this.appearance=this.appearance||t.appearance}static#e=this.\u0275fac=function(n){return new(n||s)(e.kS0("class"),e.kS0("autofocus"),e.rXU(In),e.rXU(ve),e.rXU(e.aKT),e.rXU(e.gRc),e.rXU(Fn))};static#t=this.\u0275cmp=e.VBU({type:s,selectors:[["ng-select"]],contentQueries:function(n,i,a){if(1&n&&(e.wni(a,he,5,e.C4Q),e.wni(a,pe,5,e.C4Q),e.wni(a,dn,5,e.C4Q),e.wni(a,me,5,e.C4Q),e.wni(a,hn,5,e.C4Q),e.wni(a,pn,5,e.C4Q),e.wni(a,mn,5,e.C4Q),e.wni(a,gn,5,e.C4Q),e.wni(a,_n,5,e.C4Q),e.wni(a,fn,5,e.C4Q),e.wni(a,bn,5,e.C4Q),e.wni(a,Cn,5)),2&n){let r;e.mGM(r=e.lsd())&&(i.optionTemplate=r.first),e.mGM(r=e.lsd())&&(i.optgroupTemplate=r.first),e.mGM(r=e.lsd())&&(i.labelTemplate=r.first),e.mGM(r=e.lsd())&&(i.multiLabelTemplate=r.first),e.mGM(r=e.lsd())&&(i.headerTemplate=r.first),e.mGM(r=e.lsd())&&(i.footerTemplate=r.first),e.mGM(r=e.lsd())&&(i.notFoundTemplate=r.first),e.mGM(r=e.lsd())&&(i.typeToSearchTemplate=r.first),e.mGM(r=e.lsd())&&(i.loadingTextTemplate=r.first),e.mGM(r=e.lsd())&&(i.tagTemplate=r.first),e.mGM(r=e.lsd())&&(i.loadingSpinnerTemplate=r.first),e.mGM(r=e.lsd())&&(i.ngOptions=r)}},viewQuery:function(n,i){if(1&n&&(e.GBs(be,5),e.GBs(kt,7),e.GBs(Dt,5)),2&n){let a;e.mGM(a=e.lsd())&&(i.dropdownPanel=a.first),e.mGM(a=e.lsd())&&(i.searchInput=a.first),e.mGM(a=e.lsd())&&(i.clearButton=a.first)}},hostVars:20,hostBindings:function(n,i){1&n&&e.bIt("keydown",function(r){return i.handleKeyDown(r)}),2&n&&e.AVh("ng-select-typeahead",i.typeahead)("ng-select-multiple",i.multiple)("ng-select-taggable",i.addTag)("ng-select-searchable",i.searchable)("ng-select-clearable",i.clearable)("ng-select-opened",i.isOpen)("ng-select",i.useDefaultClass)("ng-select-disabled",i.disabled)("ng-select-filtered",i.filtered)("ng-select-single",i.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:[e.Jv_([{provide:p.kq,useExisting:(0,e.Rfq)(()=>s),multi:!0},_e]),e.OA$],decls:14,vars:19,consts:[["searchInput",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[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,"input","compositionstart","compositionend","focus","blur","change","readOnly","disabled","value"],["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"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],["tabindex","0",1,"ng-clear-wrapper",3,"title"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id"],["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"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(n,i){if(1&n){const a=e.RV6();e.j41(0,"div",9),e.bIt("mousedown",function(c){return e.eBV(a),e.Njj(i.handleMousedown(c))}),e.j41(1,"div",10)(2,"div",11),e.EFF(3),e.k0s(),e.DNE(4,Mt,2,2,"ng-container",12)(5,Nt,1,5,null,12),e.j41(6,"div",13)(7,"input",14,0),e.bIt("input",function(){e.eBV(a);const c=e.sdS(8);return e.Njj(i.filter(c.value))})("compositionstart",function(){return e.eBV(a),e.Njj(i.onCompositionStart())})("compositionend",function(){e.eBV(a);const c=e.sdS(8);return e.Njj(i.onCompositionEnd(c.value))})("focus",function(c){return e.eBV(a),e.Njj(i.onInputFocus(c))})("blur",function(c){return e.eBV(a),e.Njj(i.onInputBlur(c))})("change",function(c){return e.eBV(a),e.Njj(c.stopPropagation())}),e.k0s()()(),e.DNE(9,Pt,4,1,"ng-container",12)(10,Vt,4,1,"span",15),e.j41(11,"span",16),e.nrm(12,"span",17),e.k0s()(),e.DNE(13,ln,7,19,"ng-dropdown-panel",18)}2&n&&(e.AVh("ng-appearance-outline","outline"===i.appearance)("ng-has-value",i.hasValue),e.R7$(3),e.JRh(i.placeholder),e.R7$(),e.Y8G("ngIf",(!i.multiLabelTemplate||!i.multiple)&&i.selectedItems.length>0),e.R7$(),e.Y8G("ngIf",i.multiple&&i.multiLabelTemplate&&i.selectedValues.length>0),e.R7$(),e.BMQ("aria-expanded",i.isOpen)("aria-owns",i.isOpen?i.dropdownId:null),e.R7$(),e.Y8G("readOnly",!i.searchable||i.itemsList.maxItemsSelected)("disabled",i.disabled)("value",i.searchTerm?i.searchTerm:""),e.BMQ("id",i.labelForId)("tabindex",i.tabIndex)("aria-activedescendant",i.isOpen?null==i.itemsList||null==i.itemsList.markedItem?null:i.itemsList.markedItem.htmlId:null)("aria-controls",i.isOpen?i.dropdownId:null),e.R7$(2),e.Y8G("ngIf",i.loading),e.R7$(),e.Y8G("ngIf",i.showClear()),e.R7$(3),e.Y8G("ngIf",i.isOpen))},dependencies:[g.YU,g.Sq,g.bT,g.T3,be,un],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 s})();function Sn(){return new An}class An{constructor(){this._selected=[]}get value(){return this._selected}select(l,t,n){if(l.selected=!0,(!l.children||!t&&n)&&this._selected.push(l),t)if(l.parent){const i=l.parent.children.length,a=l.parent.children.filter(r=>r.selected).length;l.parent.selected=i===a}else l.children&&(this._setChildrenSelectedState(l.children,!0),this._removeChildren(l),this._selected=n&&this._activeChildren(l)?[...this._selected.filter(i=>i.parent!==l),l]:[...this._selected,...l.children.filter(i=>!i.disabled)])}unselect(l,t){if(this._selected=this._selected.filter(n=>n!==l),l.selected=!1,t)if(l.parent&&l.parent.selected){const n=l.parent.children;this._removeParent(l.parent),this._removeChildren(l.parent),this._selected.push(...n.filter(i=>i!==l&&!i.disabled)),l.parent.selected=!1}else l.children&&(this._setChildrenSelectedState(l.children,!1),this._removeChildren(l))}clear(l){this._selected=l?this._selected.filter(t=>t.disabled):[]}_setChildrenSelectedState(l,t){for(const n of l)n.disabled||(n.selected=t)}_removeChildren(l){this._selected=[...this._selected.filter(t=>t.parent!==l),...l.children.filter(t=>t.parent===l&&t.disabled&&t.selected)]}_removeParent(l){this._selected=this._selected.filter(t=>t!==l)}_activeChildren(l){return l.children.every(t=>!t.disabled||t.selected)}}let kn=(()=>{class s{static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275mod=e.$C({type:s});static#n=this.\u0275inj=e.G2t({providers:[{provide:ve,useValue:Sn}],imports:[g.MD]})}return s})();function Dn(s,l){if(1&s){const t=e.RV6();e.j41(0,"div",5),e.EFF(1),e.j41(2,"span",6),e.bIt("click",function(){const i=e.eBV(t).$implicit,a=e.XpG().clear;return e.Njj(a(i))}),e.EFF(3,"\xd7"),e.k0s()()}if(2&s){const t=l.$implicit;e.R7$(),e.SpI(" ",t.Value," ")}}function wn(s,l){1&s&&e.DNE(0,Dn,4,1,"div",4),2&s&&e.Y8G("ngForOf",l.items)}function On(s,l){if(1&s&&(e.nrm(0,"input",7),e.EFF(1)),2&s){const t=l.item,n=l.item$;e.Mz_("id","item-",l.index,""),e.Y8G("ngModel",n.selected),e.R7$(),e.SpI(" ",t.Group," ")}}function Rn(s,l){if(1&s&&(e.nrm(0,"input",7),e.EFF(1)),2&s){const t=l.item,n=l.item$;e.Mz_("id","item-",l.index,""),e.Y8G("ngModel",n.selected),e.R7$(),e.SpI(" ",t.Value," ")}}let Bn=(()=>{class s{constructor(){this.options=[],this.values=[],this.valuesChange=new e.bkB}itemsChanged(){this.valuesChange.emit(this.values)}static#e=this.\u0275fac=function(n){return new(n||s)};static#t=this.\u0275cmp=e.VBU({type:s,selectors:[["bkd-multiselect"]],inputs:{options:"options",values:"values"},outputs:{valuesChange:"valuesChange"},standalone:!0,features:[e.aNF],decls:5,vars:10,consts:[["groupBy","Group","bindValue","Key","bindLabel","Value","dropdownPosition","bottom",1,"multiselect",3,"ngModelChange","click","clear","items","multiple","selectableGroup","selectableGroupAsModel","closeOnSelect","ngModel","placeholder","clearable"],["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(n,i){1&n&&(e.j41(0,"ng-select",0),e.nI1(1,"translate"),e.mxI("ngModelChange",function(r){return e.DH7(i.values,r)||(i.values=r),r}),e.bIt("click",function(){return i.itemsChanged()})("clear",function(){return i.itemsChanged()}),e.DNE(2,wn,1,1,"ng-template",1)(3,On,2,4,"ng-template",2)(4,Rn,2,4,"ng-template",3),e.k0s()),2&n&&(e.FS9("placeholder",e.bMT(1,8,"shared.select.empty-option")),e.Y8G("items",i.options)("multiple",!0)("selectableGroup",!0)("selectableGroupAsModel",!1)("closeOnSelect",!1),e.R50("ngModel",i.values),e.Y8G("clearable",!0))},dependencies:[kn,yn,pe,he,me,p.YN,p.Zm,p.BC,p.vS,g.pM,T.h,T.D9]})}return s})();var xn=o(1861),$n=o(2949),Mn=o(2612),Ln=o(9483),Nn=o(7673),x=o(5783);const Gn=x.NW({HRef:x.Yj,Id:x.ai,TeacherId:x.ai,FullName:x.Yj});var jn=o(785),Pn=o(3220),Vn=o(1626);let Un=(()=>{class s extends Pn.X{constructor(t,n){super(t,n,Gn,"TeacherResources","FullName","FullName")}getTypeaheadItemByKey(t){return this.http.get(`${this.baseUrl}/`,{params:{fields:[this.keyAttr,this.labelAttr].join(","),[`filter.${this.labelAttr}`]:`~*${t}*`}}).pipe((0,V.n)((0,jn.k$)(this.typeaheadCodec)),(0,V.n)(n=>(0,Nn.of)({Key:n[0].FullName,Value:`${n[0].FullName}`})))}static#e=this.\u0275fac=function(n){return new(n||s)(e.KVO(Vn.Qq),e.KVO($.yy))};static#t=this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Xn=(()=>{class s{constructor(t,n,i,a,r,c){this.studentsService=t,this.educationalEventsService=n,this.studyClassService=i,this.teacherResourcesService=a,this.state=r,this.translate=c,this.filter={student:null,educationalEvent:null,studyClass:null,teacher:null,dateFrom:null,dateTo:null,presenceTypes:null,confirmationStates:null,incidentTypes:null},this.filterChange=new e.bkB,this.absenceConfirmationStatesGrouped$=this.state.absenceConfirmationStates$.pipe((0,m.T)(u=>(0,F.Wk)(u,this.translate.instant("shared.multiselect.all-option")))),this.presenceTypesGrouped$=this.state.presenceTypes$.pipe((0,m.T)(u=>u.filter((0,M.AU)(X.Cn)).filter((0,M.AU)(X.x1))),(0,m.T)(F.Tj),(0,m.T)(F.mC),(0,m.T)(u=>(0,F.Wk)(u,this.translate.instant("shared.multiselect.all-option")))),this.incidentTypesGrouped$=this.state.presenceTypes$.pipe((0,m.T)(u=>u.filter(X.x1)),(0,m.T)(F.Tj),(0,m.T)(F.mC),(0,m.T)(u=>(0,F.Wk)(u,this.translate.instant("shared.multiselect.all-option")))),this.classesHttpFilter={params:{fields:"IsActive","filter.IsActive":"=true"}}}show(){this.filterChange.emit({...this.filter,dateFrom:Ee(this.filter.dateFrom),dateTo:Ee(this.filter.dateTo)})}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU($n.y),e.rXU(Mn.e),e.rXU(Ln.r),e.rXU(Un),e.rXU(S),e.rXU(T.c$))};static#t=this.\u0275cmp=e.VBU({type:s,selectors:[["bkd-edit-absences-header"]],inputs:{filter:"filter"},outputs:{filterChange:"filterChange"},standalone:!0,features:[e.Jv_([{provide:U.dn,useClass:U.Ae},{provide:U.tN,useClass:tt.m}]),e.aNF],decls:54,vars:53,consts:[[1,"row","g-3","mb-5"],[1,"col-md-6","col-lg-3"],[1,"form-label"],[3,"valueChange","typeaheadService","value"],[3,"valueChange","typeaheadService","value","additionalHttpParams"],[3,"valueChange","value"],[1,"row","g-3","align-items-end"],[1,"col-sm-12","col-md"],[3,"valuesChange","options","values"],[1,"col-auto"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(n,i){1&n&&(e.j41(0,"div",0)(1,"div",1)(2,"label",2),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"bkd-typeahead",3),e.mxI("valueChange",function(r){return e.DH7(i.filter.student,r)||(i.filter.student=r),r}),e.k0s()(),e.j41(6,"div",1)(7,"label",2),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"bkd-typeahead",3),e.mxI("valueChange",function(r){return e.DH7(i.filter.educationalEvent,r)||(i.filter.educationalEvent=r),r}),e.k0s()(),e.j41(11,"div",1)(12,"label",2),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"bkd-typeahead",4),e.mxI("valueChange",function(r){return e.DH7(i.filter.studyClass,r)||(i.filter.studyClass=r),r}),e.k0s()(),e.j41(16,"div",1)(17,"label",2),e.EFF(18),e.nI1(19,"translate"),e.k0s(),e.j41(20,"bkd-typeahead",3),e.mxI("valueChange",function(r){return e.DH7(i.filter.teacher,r)||(i.filter.teacher=r),r}),e.k0s()(),e.j41(21,"div",1)(22,"label",2),e.EFF(23),e.nI1(24,"translate"),e.k0s(),e.j41(25,"bkd-date-select",5),e.mxI("valueChange",function(r){return e.DH7(i.filter.dateFrom,r)||(i.filter.dateFrom=r),r}),e.k0s()(),e.j41(26,"div",1)(27,"label",2),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.j41(30,"bkd-date-select",5),e.mxI("valueChange",function(r){return e.DH7(i.filter.dateTo,r)||(i.filter.dateTo=r),r}),e.k0s()()(),e.j41(31,"div",6)(32,"div",7)(33,"label",2),e.EFF(34),e.nI1(35,"translate"),e.k0s(),e.j41(36,"bkd-multiselect",8),e.nI1(37,"async"),e.mxI("valuesChange",function(r){return e.DH7(i.filter.confirmationStates,r)||(i.filter.confirmationStates=r),r}),e.k0s()(),e.j41(38,"div",7)(39,"label",2),e.EFF(40),e.nI1(41,"translate"),e.k0s(),e.j41(42,"bkd-multiselect",8),e.nI1(43,"async"),e.mxI("valuesChange",function(r){return e.DH7(i.filter.presenceTypes,r)||(i.filter.presenceTypes=r),r}),e.k0s()(),e.j41(44,"div",7)(45,"label",2),e.EFF(46),e.nI1(47,"translate"),e.k0s(),e.j41(48,"bkd-multiselect",8),e.nI1(49,"async"),e.mxI("valuesChange",function(r){return e.DH7(i.filter.incidentTypes,r)||(i.filter.incidentTypes=r),r}),e.k0s()(),e.j41(50,"div",9)(51,"button",10),e.bIt("click",function(){return i.show()}),e.EFF(52),e.nI1(53,"translate"),e.k0s()()()),2&n&&(e.R7$(3),e.JRh(e.bMT(4,27,"edit-absences.header.student")),e.R7$(2),e.Y8G("typeaheadService",i.studentsService),e.R50("value",i.filter.student),e.R7$(3),e.JRh(e.bMT(9,29,"edit-absences.header.module-instance")),e.R7$(2),e.Y8G("typeaheadService",i.educationalEventsService),e.R50("value",i.filter.educationalEvent),e.R7$(3),e.JRh(e.bMT(14,31,"edit-absences.header.study-class")),e.R7$(2),e.Y8G("typeaheadService",i.studyClassService),e.R50("value",i.filter.studyClass),e.Y8G("additionalHttpParams",i.classesHttpFilter),e.R7$(3),e.JRh(e.bMT(19,33,"edit-absences.header.teacher")),e.R7$(2),e.Y8G("typeaheadService",i.teacherResourcesService),e.R50("value",i.filter.teacher),e.R7$(3),e.JRh(e.bMT(24,35,"edit-absences.header.date-from")),e.R7$(2),e.R50("value",i.filter.dateFrom),e.R7$(3),e.JRh(e.bMT(29,37,"edit-absences.header.date-to")),e.R7$(2),e.R50("value",i.filter.dateTo),e.R7$(4),e.JRh(e.bMT(35,39,"edit-absences.header.confirmation-state")),e.R7$(2),e.Y8G("options",e.bMT(37,41,i.absenceConfirmationStatesGrouped$)),e.R50("values",i.filter.confirmationStates),e.R7$(4),e.JRh(e.bMT(41,43,"edit-absences.header.presence-type")),e.R7$(2),e.Y8G("options",e.bMT(43,45,i.presenceTypesGrouped$)),e.R50("values",i.filter.presenceTypes),e.R7$(4),e.JRh(e.bMT(47,47,"edit-absences.header.incident")),e.R7$(2),e.Y8G("options",e.bMT(49,49,i.incidentTypesGrouped$)),e.R50("values",i.filter.incidentTypes),e.R7$(4),e.SpI(" ",e.bMT(53,51,"edit-absences.header.show")," "))},dependencies:[xn.V,nt.m,Bn,g.Jj,T.h,T.D9],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:0 1rem 1rem 0;border-bottom:1px solid #dee2e6}"],changeDetection:0})}return s})();function Ee(s){return s?(0,et.o)(s):null}var Hn=o(1769);const Yn=(s,l,t,n)=>({selection:s,entries:l,hasMore:t,loadingPage:n}),Te=s=>({count:s}),Ce=s=>({returnparams:s}),Qn=s=>["student",s,"absences"];function zn(s,l){if(1&s&&(e.j41(0,"div",13)(1,"div",14),e.EFF(2),e.nI1(3,"async"),e.nI1(4,"translate"),e.nI1(5,"translate"),e.k0s(),e.j41(6,"a",15),e.nI1(7,"async"),e.j41(8,"i",16),e.EFF(9,"edit"),e.k0s()()()),2&s){const t=e.XpG(4).bkdLet,n=e.XpG();e.R7$(2),e.Lme(" ",e.i5U(4,7,"edit-absences.list.total",e.eq3(15,Te,e.bMT(3,5,n.state.total$)||0)),", ",e.i5U(5,10,"edit-absences.list.selected",e.eq3(17,Te,t.selection.length))," "),e.R7$(4),e.AVh("disabled",0===t.selection.length),e.Y8G("queryParams",e.eq3(19,Ce,e.bMT(7,13,n.state.queryParamsString$)))}}function Kn(s,l){if(1&s){const t=e.RV6();e.j41(0,"tr")(1,"td",21),e.bIt("click",function(i){e.eBV(t);const a=e.sdS(3),r=e.XpG(6);return e.Njj(r.onCheckboxCellClick(i,a))}),e.j41(2,"input",18,3),e.nI1(4,"async"),e.bIt("change",function(){const i=e.eBV(t).$implicit,a=e.XpG(6);return e.Njj(a.selectionService.toggle(i.lessonPresence))}),e.k0s()(),e.j41(5,"td",19),e.nI1(6,"translate"),e.j41(7,"span",22)(8,"i",16),e.EFF(9),e.k0s()()(),e.j41(10,"td"),e.nI1(11,"translate"),e.j41(12,"a",23),e.nI1(13,"async"),e.EFF(14),e.k0s(),e.nrm(15,"br"),e.EFF(16),e.k0s(),e.j41(17,"td"),e.nI1(18,"translate"),e.EFF(19),e.nI1(20,"date"),e.k0s(),e.j41(21,"td"),e.nI1(22,"translate"),e.EFF(23),e.nI1(24,"date"),e.nI1(25,"date"),e.k0s(),e.j41(26,"td"),e.nI1(27,"translate"),e.EFF(28),e.k0s(),e.j41(29,"td",24),e.nI1(30,"translate"),e.EFF(31),e.k0s(),e.j41(32,"td"),e.nI1(33,"translate"),e.EFF(34),e.k0s()()}if(2&s){const t=l.$implicit,n=e.XpG(6);e.R7$(2),e.Y8G("checked",e.bMT(4,21,n.selectionService.isSelected$(t.lessonPresence))),e.R7$(3),e.BMQ("data-label",e.bMT(6,23,"edit-absences.list.header.presence")),e.R7$(2),e.Y8G("className",t.presenceCategory),e.R7$(2),e.JRh(t.presenceCategoryIcon),e.R7$(),e.BMQ("data-label",e.bMT(11,25,"edit-absences.list.header.mobil-student-module-instance-study-class")),e.R7$(2),e.Y8G("routerLink",e.eq3(48,Qn,t.lessonPresence.StudentRef.Id))("queryParams",e.eq3(50,Ce,e.bMT(13,27,n.profileReturnParams$))),e.R7$(2),e.SpI(" ",t.lessonPresence.StudentFullName," "),e.R7$(2),e.Lme(" ",t.lessonPresence.EventDesignation,", ",t.lessonPresence.StudyClassNumber," "),e.R7$(),e.BMQ("data-label",e.bMT(18,29,"edit-absences.list.header.date")),e.R7$(2),e.SpI(" ",e.i5U(20,31,t.lessonPresence.LessonDateTimeFrom,"mediumDate")," "),e.R7$(2),e.BMQ("data-label",e.bMT(22,34,"edit-absences.list.header.time")),e.R7$(2),e.Lme(" ",e.i5U(24,36,t.lessonPresence.LessonDateTimeFrom,"shortTime"),"\u2013",e.i5U(25,39,t.lessonPresence.LessonDateTimeTo,"shortTime")," "),e.R7$(3),e.BMQ("data-label",e.bMT(27,42,"edit-absences.list.header.confirmation-state")),e.R7$(2),e.SpI(" ",null==t.confirmationState?null:t.confirmationState.Value," "),e.R7$(),e.BMQ("data-label",e.bMT(30,44,"edit-absences.list.header.mobil-presence-type-incident")),e.R7$(2),e.SpI(" ",null==t.presenceType?null:t.presenceType.Designation," "),e.R7$(),e.BMQ("data-label",e.bMT(33,46,"edit-absences.list.header.teacher")),e.R7$(2),e.SpI(" ",t.lessonPresence.TeacherInformation," ")}}function Jn(s,l){if(1&s){const t=e.RV6();e.j41(0,"table",17)(1,"thead")(2,"tr")(3,"th")(4,"input",18),e.bIt("change",function(i){e.eBV(t);const a=e.XpG(5);return e.Njj(a.toggleAll(null==i.currentTarget?null:i.currentTarget.checked))}),e.k0s()(),e.j41(5,"th",19),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"th"),e.EFF(9),e.nI1(10,"translate"),e.nrm(11,"br"),e.EFF(12),e.nI1(13,"translate"),e.nI1(14,"translate"),e.k0s(),e.j41(15,"th"),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"th"),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"th"),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.j41(24,"th"),e.EFF(25),e.nI1(26,"translate"),e.nI1(27,"translate"),e.k0s(),e.j41(28,"th"),e.EFF(29),e.nI1(30,"translate"),e.k0s()()(),e.j41(31,"tbody"),e.DNE(32,Kn,35,52,"tr",20),e.k0s()()}if(2&s){const t=e.XpG(4).bkdLet;e.R7$(4),e.Y8G("checked",t.selection.length===t.entries.length),e.R7$(2),e.SpI(" ",e.bMT(7,12,"edit-absences.list.header.presence")," "),e.R7$(3),e.SpI(" ",e.bMT(10,14,"edit-absences.list.header.student")," "),e.R7$(3),e.Lme(" ",e.bMT(13,16,"edit-absences.list.header.module-instance"),", ",e.bMT(14,18,"edit-absences.list.header.study-class")," "),e.R7$(4),e.SpI(" ",e.bMT(17,20,"edit-absences.list.header.date")," "),e.R7$(3),e.JRh(e.bMT(20,22,"edit-absences.list.header.time")),e.R7$(3),e.SpI(" ",e.bMT(23,24,"edit-absences.list.header.confirmation-state")," "),e.R7$(3),e.Lme(" ",e.bMT(26,26,"edit-absences.list.header.presence-type")," / ",e.bMT(27,28,"edit-absences.list.header.incident")," "),e.R7$(4),e.JRh(e.bMT(30,30,"edit-absences.list.header.teacher")),e.R7$(3),e.Y8G("ngForOf",t.entries)}}function Wn(s,l){1&s&&e.nrm(0,"bkd-spinner",25)}function Zn(s,l){if(1&s){const t=e.RV6();e.j41(0,"button",26),e.bIt("click",function(){e.eBV(t);const i=e.XpG(5);return e.Njj(i.state.nextPage())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"global.pagination.load-more")," "))}function qn(s,l){if(1&s){const t=e.RV6();e.j41(0,"div",8),e.bIt("scrolled",function(){e.eBV(t);const i=e.XpG(4);return e.Njj(i.onScroll())}),e.DNE(1,zn,10,21,"div",9)(2,Jn,33,32,"table",10)(3,Wn,1,0,"bkd-spinner",11)(4,Zn,3,3,"button",12),e.k0s()}if(2&s){const t=e.XpG(3).bkdLet;e.R7$(),e.Y8G("ngIf",t.entries&&t.entries.length>0),e.R7$(),e.Y8G("ngIf",t.entries&&t.entries.length>0),e.R7$(),e.Y8G("ngIf",t.loadingPage),e.R7$(),e.Y8G("ngIf",t.hasMore&&!t.loadingPage)}}function es(s,l){1&s&&(e.j41(0,"p",27),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.JRh(e.bMT(2,1,"edit-absences.no-entries")))}function ts(s,l){if(1&s&&(e.qex(0),e.DNE(1,qn,5,4,"div",7)(2,es,3,3,"ng-template",null,2,e.C5r),e.bVm()),2&s){const t=e.sdS(3),n=e.XpG(2).bkdLet;e.R7$(),e.Y8G("ngIf",n.entries&&n.entries.length>0||n.loadingPage)("ngIfElse",t)}}function ns(s,l){1&s&&e.nrm(0,"bkd-spinner")}function ss(s,l){if(1&s&&(e.qex(0),e.DNE(1,ts,4,2,"ng-container",6),e.nI1(2,"async"),e.DNE(3,ns,1,0,"ng-template",null,1,e.C5r),e.bVm()),2&s){const t=e.sdS(4),n=e.XpG(2);e.R7$(),e.Y8G("ngIf",!1===e.bMT(2,2,n.state.loading$))("ngIfElse",t)}}function is(s,l){1&s&&(e.j41(0,"p",27),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.JRh(e.bMT(2,1,"edit-absences.no-filter")))}function ls(s,l){if(1&s){const t=e.RV6();e.qex(0),e.j41(1,"bkd-edit-absences-header",5),e.nI1(2,"async"),e.bIt("filterChange",function(i){e.eBV(t);const a=e.XpG();return e.Njj(a.state.setFilter(i))}),e.k0s(),e.DNE(3,ss,5,4,"ng-container",6),e.nI1(4,"async"),e.DNE(5,is,3,3,"ng-template",null,0,e.C5r),e.bVm()}if(2&s){const t=e.sdS(6),n=e.XpG();e.R7$(),e.Y8G("filter",e.bMT(2,3,n.filterFromParams$)),e.R7$(2),e.Y8G("ngIf",e.bMT(4,5,n.state.isFilterValid$))("ngIfElse",t)}}let as=(()=>{class s{constructor(t,n,i,a){this.state=t,this.selectionService=n,this.scrollPosition=i,this.route=a,this.filterFromParams$=this.route.queryParams.pipe((0,m.T)(rs)),this.profileReturnParams$=this.state.queryParamsString$,this.destroy$=new y.B}ngOnInit(){this.filterFromParams$.pipe((0,I.s)(1)).subscribe(t=>this.state.setFilter(t)),this.state.validFilter$.pipe((0,v.Q)(this.destroy$)).subscribe(()=>this.selectionService.clear()),this.selectionService.selection$.pipe((0,v.Q)(this.destroy$)).subscribe(t=>this.state.selected=t),this.route.queryParams.pipe((0,I.s)(1),(0,m.T)(({reload:t})=>t),(0,se.p)(M.zz)).subscribe(()=>this.state.resetEntries())}ngAfterViewInit(){this.scrollPosition.restore()}ngOnDestroy(){this.destroy$.next()}toggleAll(t){this.state.entries$.pipe((0,I.s)(1)).subscribe(n=>this.selectionService.clear(t?n:null))}onCheckboxCellClick(t,n){t.target!==n&&n.click()}onScroll(){this.state.nextPage()}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(S),e.rXU(le),e.rXU(Hn.W),e.rXU(w.nX))};static#t=this.\u0275cmp=e.VBU({type:s,selectors:[["bkd-edit-absences-list"]],standalone:!0,features:[e.Jv_([le]),e.aNF],decls:8,vars:17,consts:[["noFilter",""],["loading",""],["noEntries",""],["checkbox",""],[4,"bkdLet"],[3,"filterChange","filter"],[4,"ngIf","ngIfElse"],["class","py-3","infiniteScroll","",3,"scrolled",4,"ngIf","ngIfElse"],["infiniteScroll","",1,"py-3",3,"scrolled"],["class","d-flex align-items-center justify-content-between",4,"ngIf"],["class","table table-striped",4,"ngIf"],["class","inline",4,"ngIf"],["type","button","class","btn btn-outline-secondary btn-sm d-block mx-auto",3,"click",4,"ngIf"],[1,"d-flex","align-items-center","justify-content-between"],[1,"total"],["routerLink","/edit-absences/edit",1,"edit","btn","btn-primary","btn-icon","mt-1","mb-2",3,"queryParams"],[1,"material-icons"],[1,"table","table-striped"],["type","checkbox",3,"change","checked"],[1,"presence-category"],[4,"ngFor","ngForOf"],[1,"edit-absences-checkbox",3,"click"],[3,"className"],[1,"student",3,"routerLink","queryParams"],[1,"designation-incident"],[1,"inline"],["type","button",1,"btn","btn-outline-secondary","btn-sm","d-block","mx-auto",3,"click"],[1,"mt-3"]],template:function(n,i){1&n&&(e.j41(0,"h1"),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.DNE(3,ls,7,7,"ng-container",4),e.nI1(4,"async"),e.nI1(5,"async"),e.nI1(6,"async"),e.nI1(7,"async")),2&n&&(e.R7$(),e.JRh(e.bMT(2,2,"edit-absences.title")),e.R7$(2),e.Y8G("bkdLet",e.ziG(12,Yn,e.bMT(4,4,i.selectionService.selection$),e.bMT(5,6,i.state.presenceControlEntries$),e.bMT(6,8,i.state.hasMore$),e.bMT(7,10,i.state.loadingPage$))))},dependencies:[K.N,Xn,g.bT,ne.eO,ne.DP,w.Wk,g.pM,Ze.t,g.Jj,g.vh,T.h,T.D9],styles:[".presence-category[_ngcontent-%COMP%]{text-align:center}.presence-category[_ngcontent-%COMP%] .absent[_ngcontent-%COMP%]{color:#ea161f}.presence-category[_ngcontent-%COMP%] .present[_ngcontent-%COMP%]{color:#3d8608}.presence-category[_ngcontent-%COMP%] .unapproved[_ngcontent-%COMP%]{color:#ffa814}.designation-incident[_ngcontent-%COMP%]{max-width:50ch}@media screen and (max-width: 820px){.edit-absences-checkbox[_ngcontent-%COMP%]{text-align:left}.presence-category[_ngcontent-%COMP%]{text-align:right}.designation-incident[_ngcontent-%COMP%]{max-width:initial}}"],changeDetection:0})}return s})();function rs(s){return{student:s.student?Number(s.student):null,educationalEvent:s.educationalEvent?Number(s.educationalEvent):null,studyClass:s.studyClass?Number(s.studyClass):null,teacher:s.teacher??null,dateFrom:s.dateFrom?(0,ie.cv)(s.dateFrom):null,dateTo:s.dateTo?(0,ie.cv)(s.dateTo):null,presenceTypes:s.presenceTypes?s.presenceTypes.split(",").map(Number):null,confirmationStates:s.confirmationStates?s.confirmationStates.split(",").map(Number):null,incidentTypes:s.incidentTypes?s.incidentTypes.split(",").map(Number):null}}var os=o(9366),cs=o(1876);const us=[{path:"",component:(()=>{class s{constructor(t){this.state=t}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(S))};static#t=this.\u0275cmp=e.VBU({type:s,selectors:[["bkd-edit-absences"]],standalone:!0,features:[e.Jv_([S,{provide:cs.G,useExisting:S},os.s]),e.aNF],decls:1,vars:0,template:function(n,i){1&n&&e.nrm(0,"router-outlet")},dependencies:[w.n3],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return s})(),children:[{path:"",component:as,data:{restoreScrollPositionFrom:["/edit-absences/edit","/edit-absences/student/:id/addresses","/edit-absences/student/:id/absences","/edit-absences/student/:id/grades"]}},{path:"edit",component:We},Ie.R]}]}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/438.js b/public/apps/webapp-schulverwaltung/438.js deleted file mode 100644 index f961c28a..00000000 --- a/public/apps/webapp-schulverwaltung/438.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[438],{9260:(I,_,o)=>{o.r(_),o.d(_,{MY_PROFILE_ROUTES:()=>Te});var a=o(177),d=o(9417),l=o(3955),f=o(4412),E=o(5964),m=o(6354),g=o(4668),$=o(6697),y=o(5558),P=o(980),k=o(8156),S=o(7887),p=o(9728),e=o(4438),c=o(5539),u=o(5889),h=o(7673),v=o(8810),F=o(9437),C=o(4561);const T="no_access";let R=(()=>{class t{constructor(n){this.profileService=n,this.reset$=new f.t(void 0),this.rawProfile$=this.reset$.pipe((0,y.n)(()=>this.loadProfile()),(0,g.t)(1)),this.profile$=this.rawProfile$.pipe((0,m.T)(i=>i===T?null:i)),this.noAccess$=this.rawProfile$.pipe((0,m.T)(i=>i===T)),this.loading$=this.profileService.loading$}reset(){this.reset$.next()}loadProfile(){return this.profileService.getMyProfile().pipe((0,F.W)(n=>403===n.status?(0,h.of)(T):(0,v.$)(()=>n)))}static#e=this.\u0275fac=function(i){return new(i||t)(e.KVO(C.m))};static#t=this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac})}return t})();var j=o(4688);const G=(t,s)=>({formGroup:t,student:s});function x(t,s){if(1&t&&(e.j41(0,"div"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2).bkdLet;e.R7$(),e.SpI(" ",n.student.AddressLine2," ")}}function D(t,s){if(1&t&&(e.j41(0,"div",21),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,"global.validation-errors."+n.error,n.params)," ")}}function N(t,s){if(1&t&&(e.j41(0,"div",22),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,"global.validation-errors."+n.error,n.params)," ")}}function O(t,s){1&t&&(e.j41(0,"div",23)(1,"span",24),e.EFF(2,"Loading..."),e.k0s()())}function A(t,s){if(1&t){const n=e.RV6();e.j41(0,"form",3),e.bIt("ngSubmit",function(){e.eBV(n);const r=e.XpG(2);return e.Njj(r.onSubmit())}),e.j41(1,"div",4)(2,"p"),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"address",5)(6,"div"),e.EFF(7),e.k0s(),e.DNE(8,x,2,1,"div",6),e.j41(9,"div"),e.EFF(10),e.k0s()()(),e.DNE(11,D,3,4,"div",7),e.nI1(12,"async"),e.j41(13,"div",4)(14,"label",8),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.nrm(17,"input",9),e.k0s(),e.j41(18,"div",4)(19,"label",10),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.nrm(22,"input",11),e.j41(23,"small",12),e.EFF(24),e.nI1(25,"translate"),e.k0s()(),e.j41(26,"div",4)(27,"label",13),e.EFF(28),e.nI1(29,"translate"),e.k0s(),e.nrm(30,"input",14),e.nI1(31,"async"),e.DNE(32,N,3,4,"div",15),e.nI1(33,"async"),e.j41(34,"small",16),e.EFF(35),e.nI1(36,"translate"),e.k0s()(),e.j41(37,"div",17)(38,"button",18),e.nI1(39,"async"),e.bIt("click",function(){e.eBV(n);const r=e.XpG(2);return e.Njj(r.cancel())}),e.EFF(40),e.nI1(41,"translate"),e.k0s(),e.j41(42,"button",19),e.nI1(43,"async"),e.EFF(44),e.nI1(45,"translate"),e.DNE(46,O,3,0,"div",20),e.nI1(47,"async"),e.k0s()()()}if(2&t){let n;const i=e.XpG().bkdLet,r=e.XpG();e.Y8G("formGroup",i.formGroup),e.R7$(3),e.JRh(e.bMT(4,20,"my-profile.edit.address-changes-remark")),e.R7$(4),e.JRh(i.student.AddressLine1),e.R7$(),e.Y8G("ngIf",i.student.AddressLine2),e.R7$(2),e.Lme("",i.student.Zip||""," ",i.student.Location,""),e.R7$(),e.Y8G("ngForOf",e.bMT(12,22,r.formErrors$)),e.R7$(4),e.SpI(" ",e.bMT(16,24,"my-profile.edit.fields.phone-private")," "),e.R7$(5),e.SpI(" ",e.bMT(21,26,"my-profile.edit.fields.phone-mobile")," "),e.R7$(4),e.JRh(e.bMT(25,28,"my-profile.edit.fields.phone-mobile-hint")),e.R7$(4),e.SpI(" ",e.bMT(29,30,"my-profile.edit.fields.email2")," "),e.R7$(2),e.AVh("is-invalid",(null!==(n=null==(n=e.bMT(31,32,r.email2Errors$))?null:n.length)&&void 0!==n?n:0)>0),e.R7$(2),e.Y8G("ngForOf",e.bMT(33,34,r.email2Errors$)),e.R7$(3),e.JRh(e.bMT(36,36,"my-profile.edit.fields.email2-hint")),e.R7$(3),e.Y8G("disabled",e.bMT(39,38,r.saving$)),e.R7$(2),e.SpI(" ",e.bMT(41,40,"my-profile.edit.cancel")," "),e.R7$(2),e.Y8G("disabled",e.bMT(43,42,r.saving$)),e.R7$(2),e.SpI(" ",e.bMT(45,44,"my-profile.edit.save")," "),e.R7$(2),e.Y8G("ngIf",e.bMT(47,46,r.saving$))}}function Y(t,s){if(1&t&&(e.j41(0,"div",1)(1,"h1"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,A,48,48,"form",2),e.k0s()),2&t){const n=s.bkdLet;e.R7$(2),e.JRh(e.bMT(3,2,"my-profile.edit.title")),e.R7$(2),e.Y8G("ngIf",n.formGroup)}}let w=(()=>{class t{constructor(n,i,r,M,Re,Fe){this.fb=n,this.router=i,this.toastService=r,this.translate=M,this.profileService=Re,this.personsService=Fe,this.student$=this.profileService.profile$.pipe((0,E.p)(p.TM),(0,m.T)(({student:Ce})=>Ce)),this.formGroup$=this.student$.pipe((0,m.T)(this.createFormGroup.bind(this)),(0,g.t)(1)),this.saving$=new f.t(!1),this.submitted$=new f.t(!1),this.formErrors$=(0,k.v)(this.formGroup$,this.submitted$),this.email2Errors$=(0,k.v)(this.formGroup$,this.submitted$,"email2")}cancel(){this.navigateBack()}onSubmit(){this.submitted$.next(!0),this.formGroup$.pipe((0,$.s)(1)).subscribe(n=>{if(n.valid){const{phonePrivate:i,phoneMobile:r,email2:M}=n.value;this.save(i?.trim()||null,r?.trim()||null,M||null)}})}createFormGroup(n){return this.fb.group({phonePrivate:[n.PhonePrivate],phoneMobile:[n.PhoneMobile],email2:[n.Email2,d.k0.email]})}save(n,i,r){this.saving$.next(!0),this.student$.pipe((0,$.s)(1),(0,y.n)(M=>this.personsService.update(M.Id,n,i,r)),(0,P.j)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.profileService.reset(),this.toastService.success(this.translate.instant("my-profile.edit.save-success")),this.navigateBack()}navigateBack(){this.router.navigate(["/my-profile"])}static#e=this.\u0275fac=function(i){return new(i||t)(e.rXU(d.ze),e.rXU(c.Ix),e.rXU(u.f),e.rXU(l.c$),e.rXU(R),e.rXU(j.a))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["bkd-my-profile-edit"]],standalone:!0,features:[e.aNF],decls:3,vars:8,consts:[["class","bkd-container bkd-container-limited",4,"bkdLet"],[1,"bkd-container","bkd-container-limited"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"ngSubmit","formGroup"],[1,"mb-3"],[1,"text-muted"],[4,"ngIf"],["class","alert alert-danger",4,"ngFor","ngForOf"],["id","my-profile-phone-private",1,"form-label"],["id","my-profile-phone-private","formControlName","phonePrivate","type","tel",1,"form-control"],["id","my-profile-phone-mobile",1,"form-label"],["id","my-profile-phone-mobile","formControlName","phoneMobile","type","tel","aria-describedby","my-profile-phone-mobile-hint",1,"form-control"],["id","my-profile-phone-mobile-hint",1,"form-text"],["for","my-profile-email2",1,"form-label"],["id","my-profile-email2","formControlName","email2","type","email","aria-describedby","my-profile-email2-hint",1,"form-control"],["class","invalid-feedback",4,"ngFor","ngForOf"],["id","my-profile-email2-hint",1,"form-text"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-secondary",3,"click","disabled"],["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"],[1,"invalid-feedback"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(i,r){1&i&&(e.DNE(0,Y,5,4,"div",0),e.nI1(1,"async"),e.nI1(2,"async")),2&i&&e.Y8G("bkdLet",e.l_i(5,G,e.bMT(1,1,r.formGroup$),e.bMT(2,3,r.student$)))},dependencies:[S.N,a.bT,d.YN,d.qT,d.me,d.BC,d.cb,d.X1,d.j4,d.JD,a.pM,a.Jj,l.h,l.D9],changeDetection:0})}return t})();var b=o(1324),L=o(1517),X=o(4589),B=o(717),U=o(3919),V=o(6194);let J=(()=>{class t{constructor(){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["bkd-my-profile-address"]],inputs:{address:"address"},standalone:!0,features:[e.aNF],decls:2,vars:1,template:function(i,r){1&i&&(e.j41(0,"address"),e.EFF(1),e.k0s()),2&i&&(e.R7$(),e.JRh(r.address))},styles:["[_nghost-%COMP%]{padding:1rem}address[_ngcontent-%COMP%]{white-space:pre-wrap}"],changeDetection:0})}return t})(),W=(()=>{class t{constructor(){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["bkd-my-profile-entry"]],inputs:{label:"label",value:"value"},standalone:!0,features:[e.aNF],decls:6,vars:4,consts:[[1,"row"],[1,"col-md-6"]],template:function(i,r){1&i&&(e.j41(0,"dl",0)(1,"dt",1),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"dd",1),e.EFF(5),e.k0s()()),2&i&&(e.R7$(2),e.JRh(e.bMT(3,2,r.label)),e.R7$(3),e.JRh(r.value))},dependencies:[l.h,l.D9],styles:["dl[_ngcontent-%COMP%]{padding:0 1rem}dt[_ngcontent-%COMP%]{font-weight:400;color:#00000080}"],changeDetection:0})}return t})();var K=o(2771),H=o(9172),Z=o(1433),z=o(8667),Q=o(5507);function q(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.SpI("(",n.student.Gender,")")}}function ee(t,s){if(1&t&&(e.j41(0,"div",2)(1,"div",3),e.nrm(2,"bkd-avatar",4),e.j41(3,"div",5),e.EFF(4),e.DNE(5,q,2,1,"span",6),e.j41(6,"div",7),e.EFF(7),e.nI1(8,"date"),e.k0s()()(),e.nrm(9,"bkd-reports-link",8),e.nI1(10,"async"),e.k0s()),2&t){const n=e.XpG();e.R7$(2),e.Y8G("studentId",n.student.Id),e.R7$(2),e.E5c(" ",n.student.LastName," ",n.student.FirstName," ",n.student.MiddleName," "),e.R7$(),e.Y8G("ngIf",n.student.Gender),e.R7$(2),e.JRh(e.i5U(8,7,n.student.Birthdate,"dd.MM.yyyy")),e.R7$(2),e.Y8G("reports",e.bMT(10,10,n.reports$))}}function te(t,s){if(1&t&&(e.j41(0,"div",9),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.JRh(n.student.Email)}}let ne=(()=>{class t{constructor(n){this.reportsService=n,this.studentId$=new K.m(1),this.reports$=this.studentId$.pipe((0,y.n)(i=>i?this.reportsService.getPersonMasterDataReports(i):(0,h.of)([])),(0,H.Z)([]))}ngOnChanges(n){n.student&&this.studentId$.next(n.student.currentValue?.Id||null)}static#e=this.\u0275fac=function(i){return new(i||t)(e.rXU(Q.P))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["bkd-my-profile-header"]],inputs:{student:"student"},standalone:!0,features:[e.OA$,e.aNF],decls:2,vars:2,consts:[["class","avatar-person",4,"ngIf"],["class","email",4,"ngIf"],[1,"avatar-person"],[1,"d-flex"],[1,"me-3","avatar","large",3,"studentId"],[1,"person"],[4,"ngIf"],[1,"birthdate"],[3,"reports"],[1,"email"]],template:function(i,r){1&i&&e.DNE(0,ee,11,12,"div",0)(1,te,2,1,"div",1),2&i&&(e.Y8G("ngIf",r.student),e.R7$(),e.Y8G("ngIf",r.student))},dependencies:[a.bT,Z.f,z.Z,a.Jj,a.vh],styles:[".avatar-person[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding-left:1rem 1rem 1rem 0}.person[_ngcontent-%COMP%]{align-self:center}.email[_ngcontent-%COMP%]{padding:1rem 1rem 0 0}.report[_ngcontent-%COMP%]{align-self:flex-start;line-height:1}"],changeDetection:0})}return t})();const ie=t=>({profile:t});function oe(t,s){if(1&t&&e.nrm(0,"bkd-my-profile-entry",27),2&t){const n=e.XpG(3).bkdLet;e.FS9("value",n.profile.student.SocialSecurityNumber)}}function re(t,s){if(1&t&&e.nrm(0,"bkd-my-profile-entry",28),2&t){const n=e.XpG(3).bkdLet;e.FS9("value",n.profile.student.HomeTown||n.profile.student.Nationality)}}function se(t,s){if(1&t&&e.nrm(0,"bkd-my-profile-entry",29),2&t){const n=e.XpG(3).bkdLet;e.FS9("value",n.profile.student.NativeLanguage)}}function ae(t,s){if(1&t&&e.nrm(0,"bkd-my-profile-entry",30),2&t){const n=e.XpG(3).bkdLet;e.FS9("value",n.profile.stayPermitValue)}}function le(t,s){if(1&t&&(e.nrm(0,"bkd-my-profile-entry",31),e.nI1(1,"date")),2&t){const n=e.XpG(3).bkdLet;e.FS9("value",e.i5U(1,1,n.profile.student.StayPermitExpiry,"mediumDate"))}}function de(t,s){if(1&t&&(e.j41(0,"div",32)(1,"a",33),e.nI1(2,"translate"),e.j41(3,"i",34),e.EFF(4,"edit"),e.k0s()(),e.nrm(5,"bkd-student-dossier-address",35),e.k0s()),2&t){const n=e.XpG(3).bkdLet;e.R7$(),e.BMQ("aria-label",e.bMT(2,2,"my-profile.edit.title")),e.R7$(4),e.Y8G("student",n.profile.student)}}function pe(t,s){if(1&t&&e.nrm(0,"bkd-my-profile-address",36),2&t){const n=e.XpG(4).bkdLet;e.Y8G("address",n.profile.student.CorrespondenceAddress)}}function ce(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",20,3)(2,"div",21)(3,"bkd-student-dossier-entry-header",22),e.bIt("click",function(){e.eBV(n);const r=e.sdS(1);return e.Njj(r.toggle())}),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"div",23)(7,"div",24),e.DNE(8,pe,1,1,"ng-template"),e.k0s()()()}if(2&t){const n=e.sdS(1);e.R7$(3),e.Y8G("opened",!n.collapsed),e.R7$(),e.SpI(" ",e.bMT(5,2,"shared.profile.correspondence-address")," ")}}function _e(t,s){if(1&t&&e.nrm(0,"bkd-my-profile-address",36),2&t){const n=e.XpG(4).bkdLet;e.Y8G("address",n.profile.student.BillingAddress)}}function fe(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",20,4)(2,"div",21)(3,"bkd-student-dossier-entry-header",22),e.bIt("click",function(){e.eBV(n);const r=e.sdS(1);return e.Njj(r.toggle())}),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"div",23)(7,"div",24),e.DNE(8,_e,1,1,"ng-template"),e.k0s()()()}if(2&t){const n=e.sdS(1);e.R7$(3),e.Y8G("opened",!n.collapsed),e.R7$(),e.SpI(" ",e.bMT(5,2,"shared.profile.billing-address")," ")}}function me(t,s){1&t&&e.nrm(0,"bkd-student-dossier-legal-representative",38),2&t&&e.Y8G("person",s.$implicit)}function ue(t,s){if(1&t&&e.DNE(0,me,1,1,"bkd-student-dossier-legal-representative",37),2&t){const n=e.XpG(4).bkdLet;e.Y8G("ngForOf",n.profile.legalRepresentativePersons)}}function ve(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",20,5)(2,"div",21)(3,"bkd-student-dossier-entry-header",22),e.bIt("click",function(){e.eBV(n);const r=e.sdS(1);return e.Njj(r.toggle())}),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"div",23)(7,"div",24),e.DNE(8,ue,1,1,"ng-template"),e.k0s()()()}if(2&t){const n=e.sdS(1);e.R7$(3),e.Y8G("opened",!n.collapsed),e.R7$(),e.SpI(" ",e.bMT(5,2,"shared.profile.legal-representation")," ")}}function ge(t,s){if(1&t&&(e.qex(0),e.EFF(1),e.bVm()),2&t){const n=e.XpG().index;e.R7$(),e.JRh(n+1)}}function ye(t,s){if(1&t&&e.nrm(0,"bkd-student-dossier-apprenticeship-company",41),2&t){const n=e.XpG().$implicit;e.Y8G("company",n)}}function he(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",39,6)(2,"div",21)(3,"bkd-student-dossier-entry-header",22),e.bIt("click",function(){e.eBV(n);const r=e.sdS(1);return e.Njj(r.toggle())}),e.EFF(4),e.nI1(5,"translate"),e.DNE(6,ge,2,1,"ng-container",40),e.k0s()(),e.j41(7,"div",23)(8,"div",24),e.DNE(9,ye,1,1,"ng-template"),e.k0s()()()}if(2&t){const n=e.sdS(1),i=e.XpG(3).bkdLet;e.R7$(3),e.Y8G("opened",!n.collapsed),e.R7$(),e.SpI(" ",e.bMT(5,3,"shared.profile.apprenticeship-company")," "),e.R7$(2),e.Y8G("ngIf",i.profile.apprenticeshipCompanies.length>1)}}function be(t,s){1&t&&(e.j41(0,"p",42),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"shared.profile.no-profile")," "))}function Me(t,s){if(1&t){const n=e.RV6();e.qex(0),e.nrm(1,"bkd-my-profile-header",11),e.j41(2,"div",12)(3,"div",13),e.DNE(4,oe,1,1,"bkd-my-profile-entry",14)(5,re,1,1,"bkd-my-profile-entry",15)(6,se,1,1,"bkd-my-profile-entry",16)(7,ae,1,1,"bkd-my-profile-entry",17)(8,le,2,4,"bkd-my-profile-entry",18),e.k0s(),e.j41(9,"div",19)(10,"div",20,2)(12,"div",21)(13,"bkd-student-dossier-entry-header",22),e.bIt("click",function(){e.eBV(n);const r=e.sdS(11);return e.Njj(r.toggle())}),e.EFF(14),e.nI1(15,"translate"),e.k0s()(),e.j41(16,"div",23)(17,"div",24),e.DNE(18,de,6,4,"ng-template"),e.k0s()()(),e.DNE(19,ce,9,4,"div",25)(20,fe,9,4,"div",25)(21,ve,9,4,"div",25)(22,he,10,5,"div",26),e.k0s()(),e.DNE(23,be,3,3,"ng-template",null,1,e.C5r),e.bVm()}if(2&t){const n=e.sdS(11),i=e.XpG(2).bkdLet;e.R7$(),e.Y8G("student",i.profile.student),e.R7$(3),e.Y8G("ngIf",i.profile.student.SocialSecurityNumber),e.R7$(),e.Y8G("ngIf",i.profile.student.HomeTown||i.profile.student.Nationality),e.R7$(),e.Y8G("ngIf",i.profile.student.NativeLanguage),e.R7$(),e.Y8G("ngIf",i.profile.stayPermitValue),e.R7$(),e.Y8G("ngIf",i.profile.student.StayPermitExpiry),e.R7$(5),e.Y8G("opened",!n.collapsed),e.R7$(),e.SpI(" ",e.bMT(15,12,"shared.profile.student-address")," "),e.R7$(5),e.Y8G("ngIf",i.profile.student.CorrespondenceAddress),e.R7$(),e.Y8G("ngIf",i.profile.student.BillingAddress),e.R7$(),e.Y8G("ngIf",i.profile.legalRepresentativePersons.length>0),e.R7$(),e.Y8G("ngForOf",i.profile.apprenticeshipCompanies)}}function Ie(t,s){1&t&&(e.j41(0,"p",45),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"shared.profile.substitution-profile")," "))}function Ee(t,s){1&t&&(e.j41(0,"p",42),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"shared.profile.no-profile")," "))}function $e(t,s){if(1&t&&(e.DNE(0,Ie,3,3,"p",43),e.nI1(1,"async"),e.DNE(2,Ee,3,3,"p",44),e.nI1(3,"async")),2&t){const n=e.XpG(3);e.Y8G("ngIf",!0===e.bMT(1,2,n.profileService.noAccess$)),e.R7$(2),e.Y8G("ngIf",!1===e.bMT(3,4,n.profileService.noAccess$))}}function Pe(t,s){if(1&t&&(e.qex(0),e.DNE(1,Me,25,14,"ng-container",10)(2,$e,4,6,"ng-template",null,1,e.C5r),e.bVm()),2&t){const n=e.sdS(3),i=e.XpG().bkdLet;e.R7$(),e.Y8G("ngIf",i.profile)("ngIfElse",n)}}function ke(t,s){1&t&&e.nrm(0,"bkd-spinner")}function Se(t,s){if(1&t&&(e.j41(0,"div",8)(1,"h1",9),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,Pe,4,2,"ng-container",10),e.nI1(5,"async"),e.DNE(6,ke,1,0,"ng-template",null,0,e.C5r),e.k0s()),2&t){const n=e.sdS(7),i=e.XpG();e.R7$(2),e.JRh(e.bMT(3,3,"my-profile.title")),e.R7$(2),e.Y8G("ngIf",!1===e.bMT(5,5,i.profileService.loading$))("ngIfElse",n)}}const Te=[{path:"",component:(()=>{class t{constructor(){}static#e=this.\u0275fac=function(i){return new(i||t)};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["bkd-my-profile"]],standalone:!0,features:[e.Jv_([R]),e.aNF],decls:1,vars:0,template:function(i,r){1&i&&e.nrm(0,"router-outlet")},dependencies:[c.n3],changeDetection:0})}return t})(),children:[{path:"",component:(()=>{class t{constructor(n){this.profileService=n}static#e=this.\u0275fac=function(i){return new(i||t)(e.rXU(R))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["bkd-my-profile-show"]],standalone:!0,features:[e.aNF],decls:2,vars:5,consts:[["loading",""],["noProfile",""],["studentAddress","ngbAccordionItem"],["correspondenceAddress","ngbAccordionItem"],["billingAddress","ngbAccordionItem"],["legalRepresentatives","ngbAccordionItem"],["apprenticeshipCompanies","ngbAccordionItem"],["class","bkd-container bkd-container-limited",4,"bkdLet"],[1,"bkd-container","bkd-container-limited"],["data-testid","profile-title"],[4,"ngIf","ngIfElse"],[3,"student"],["data-testid","profile-content",1,"profile-content"],[1,"profile-entries","pt-3"],["label","my-profile.show.social-security-number",3,"value",4,"ngIf"],["label","my-profile.show.hometown-nationality",3,"value",4,"ngIf"],["label","my-profile.show.native-language",3,"value",4,"ngIf"],["label","my-profile.show.stay-permit",3,"value",4,"ngIf"],["label","my-profile.show.stay-permit-expiry",3,"value",4,"ngIf"],["ngbAccordion",""],["ngbAccordionItem",""],["ngbAccordionHeader",""],[3,"click","opened"],["ngbAccordionCollapse",""],["ngbAccordionBody",""],["ngbAccordionItem","",4,"ngIf"],[3,"ngbAccordionItem",4,"ngFor","ngForOf"],["label","my-profile.show.social-security-number",3,"value"],["label","my-profile.show.hometown-nationality",3,"value"],["label","my-profile.show.native-language",3,"value"],["label","my-profile.show.stay-permit",3,"value"],["label","my-profile.show.stay-permit-expiry",3,"value"],[1,"clearfix"],["routerLink","edit",1,"btn","btn-primary","btn-icon","float-end","me-2"],[1,"material-icons"],["emailProperty","Email2",1,"profile-entry",3,"student"],[1,"profile-entry",3,"address"],["class","profile-entry",3,"person",4,"ngFor","ngForOf"],[1,"profile-entry",3,"person"],[3,"ngbAccordionItem"],[4,"ngIf"],[1,"profile-entry",3,"company"],["data-testid","profile-none"],["data-testid","profile-substitution",4,"ngIf"],["data-testid","profile-none",4,"ngIf"],["data-testid","profile-substitution"]],template:function(i,r){1&i&&(e.DNE(0,Se,8,7,"div",7),e.nI1(1,"async")),2&i&&e.Y8G("bkdLet",e.eq3(3,ie,e.bMT(1,1,r.profileService.profile$)))},dependencies:[S.N,a.bT,ne,W,b.r6,b.tW,b.x7,U.$,b.$R,b.UA,c.Wk,X.W,J,a.pM,V.O,B.e,L.t,a.Jj,a.vh,l.h,l.D9],styles:[".profile-content[_ngcontent-%COMP%]{padding-top:1rem}.profile-entry[_ngcontent-%COMP%]{display:block;padding:0 1rem}.profile-entries[_ngcontent-%COMP%]:not(:empty){border-top:1px solid rgb(222,222,222)}"],changeDetection:0})}return t})()},{path:"edit",component:w}]}]},5666:(I,_,o)=>{o.d(_,{H:()=>d});var a=o(5783);const d=a.NW({Key:a.KC([a.ai,a.Yj]),Value:a.Yj})},8156:(I,_,o)=>{o.d(_,{IK:()=>k,Oi:()=>P,v:()=>y});var a=o(4572),d=o(7673),l=o(983),f=o(5964),E=o(5558),m=o(9172),g=o(6354),$=o(4668);function y(p,e,c){return(0,a.z)([p,e]).pipe((0,f.p)(([u,h])=>h),(0,E.n)(([u,h])=>{const v=c?u?.get(c)||null:u;return v?v.statusChanges.pipe((0,m.Z)(v.status),(0,g.T)(()=>function S(p){return p?Object.keys(p.errors||{}).map(e=>({error:e,params:p.errors&&p.errors[e]instanceof Object?p.errors[e]:null})):[]}(v))):(0,d.of)([])}),(0,m.Z)([]),(0,$.t)(1))}function P(p,e){return p.pipe((0,g.T)(c=>c.get(e)||null))}function k(p,e){return P(p,e).pipe((0,E.n)(c=>c?c.valueChanges:l.w))}},3382:(I,_,o)=>{function a(d){return l=>d(...l)}o.d(_,{i:()=>a})},4273:(I,_,o)=>{function a(l){const f=Object.prototype.toString.call(l);return l instanceof Date||"object"==typeof l&&"[object Date]"===f?new l.constructor(+l):"number"==typeof l||"[object Number]"===f||"string"==typeof l||"[object String]"===f?new Date(l):new Date(NaN)}o.d(_,{a:()=>a})}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/467.js b/public/apps/webapp-schulverwaltung/467.js deleted file mode 100644 index 47daea49..00000000 --- a/public/apps/webapp-schulverwaltung/467.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[467],{9960:(S,O,t)=>{t.d(O,{h:()=>_});var m=t(3601),f=t(4903);class _{constructor(h){if(this.absences=h,0===h.length)throw new Error("Absences array is empty");this.date=(0,m.o)(this.absences[0].LessonDateTimeFrom),this.dateString=(0,f.GP)(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}}},916:(S,O,t)=>{t.d(O,{fJ:()=>y,p5:()=>l,Ak:()=>o,Xv:()=>u,B7:()=>T});var m=t(4903),f=t(5042),_=t(7233);class E extends Error{constructor(c,P){super(`TypeScript thought we could never end up here\n${P}`)}}var h=t(9960);function y(d){const c=function D(d){return d.reduce((c,P)=>{const I=(0,m.GP)(P.LessonDateTimeFrom,"yyyy-MM-dd"),M=P.StudentRef.Id;return c[I]||(c[I]={}),c[I][M]||(c[I][M]=[]),c[I][M].push(P),c},{})}(d);return Object.keys(c).reduce((P,I)=>(Object.keys(c[I]).forEach(M=>{P=[...P,new h.h(c[I][M].sort(_.qZ))]}),P),[])}function T(d,c){return[...d].sort(function p(d){return(c,P)=>{switch(d.primarySortKey){case"date":{const I=c.date.getTime(),M=P.date.getTime();return I===M?c.studentFullName.localeCompare(P.studentFullName):d.ascending?I-M:M-I}case"name":{const I=d.ascending?c.studentFullName.localeCompare(P.studentFullName):P.studentFullName.localeCompare(c.studentFullName);return 0===I?P.date.getTime()-c.date.getTime():I}default:throw new E(d.primarySortKey,"Unhandled sort criteria")}}}(c))}function l(d){return d.reduce((c,P)=>c.concat(P.absences),[])}function u(d,c){return d.filter(P=>!c.some(({lessonIds:I,personId:M})=>I.includes(P.LessonRef.Id)&&M===P.StudentRef.Id))}function o(d,c){return(0,f.A)([...d,...c],"Id")}},5314:(S,O,t)=>{t.d(O,{Jt:()=>E,Rb:()=>_,wf:()=>f});var m=t(2055),f=function(h){return h.Present="present",h.Unapproved="unapproved",h.Absent="absent",h}(f||{});function _(h){switch(h){case f.Absent:return"cancel";case f.Unapproved:return"help";default:return"check_circle"}}class E{constructor(y,T,l,u){this.lessonPresence=y,this.presenceType=T,this.precedingAbsences=l,this.confirmationState=u,this.studentFullName=y.StudentFullName}get presenceCategory(){return(0,m.sr)(this.settings,this.confirmationState&&Number(this.confirmationState.Key))?f.Unapproved:(0,m.W0)(this.presenceType)?f.Absent:f.Present}get nextPresenceCategory(){return this.presenceCategory===f.Absent?f.Present:f.Absent}getNextPresenceType(y){return this.nextPresenceCategory===f.Absent?this.presenceCategory===f.Unapproved?this.presenceType:y.find(T=>(0,m.tW)(T,this.settings))||null:null}get canChangePresenceType(){return(0,m.ED)(this.lessonPresence,this.presenceType,this.settings)}get canChangeIncident(){return!(0,m.W0)(this.presenceType)}get showDesignation(){return!this.canChangePresenceType||this.presenceCategory===f.Absent&&!(0,m.tW)(this.presenceType,this.settings)||this.presenceCategory===f.Unapproved}get presenceCategoryIcon(){return _(this.presenceCategory)}get settings(){return window.schulverwaltung.settings}}},7233:(S,O,t)=>{t.d(O,{FO:()=>l,aW:()=>T,ib:()=>_,qZ:()=>u});var m=t(5042),f=t(5314);function _(D,d){return null===D&&null===d||null!==D&&null!==d&&D.LessonRef.Id===d.LessonRef.Id&&D.EventDesignation===d.EventDesignation&&D.StudyClassNumber===d.StudyClassNumber&&D.TeacherInformation===d.TeacherInformation&&D.LessonDateTimeFrom.getTime()===d.LessonDateTimeFrom.getTime()&&D.LessonDateTimeTo.getTime()===d.LessonDateTimeTo.getTime()}function T(D,d,c,P,I){return function h(D,d){return D?d.filter(c=>D.lessons.map(P=>P.LessonRef.Id).indexOf(c.LessonRef.Id)>=0).sort(o):[]}(D,d).map(M=>l(D,M,c,P,I))}function l(D,d,c,P,I){let M=null;d.TypeRef.Id&&(M=c.find(k=>k.Id===d.TypeRef.Id)||null);const C=function y(D,d,c){return(0,m.A)(D.filter(P=>P.StudentRef.Id===d.StudentRef.Id&&P.LessonRef.From&&P.LessonRef.From.toDateString()===c?.LessonDateTimeFrom.toDateString()&&P.LessonRef.Fromk.Key===d.ConfirmationStateId)),new f.Jt(d,M,C,w)}function u(D,d){const c=D.LessonDateTimeFrom.getTime(),P=d.LessonDateTimeFrom.getTime();return c-P==0?D.LessonDateTimeTo.getTime()-d.LessonDateTimeTo.getTime():c-P}function o(D,d){return D.StudentFullName.localeCompare(d.StudentFullName)}function p(D,d){return D.LessonRef.From&&D.LessonRef.To&&d.LessonRef.From&&d.LessonRef.To?D.LessonRef.From.getTime()-d.LessonRef.From.getTime()==0?D.LessonRef.To.getTime()-d.LessonRef.To.getTime():D.LessonRef.From.getTime()-d.LessonRef.From.getTime():0}},2055:(S,O,t)=>{function f(o){return!(!o||!o.IsComment)}function _(o){return!(!o||!o.IsIncident)}function E(o){return!(!o||!(o.IsAbsence||o.IsDispensation||o.IsHalfDay))}function h(o,p){return!(!o||!p||o.Id!==p.absencePresenceTypeId)}function y(o,p){return!(!o||!p||p!==o.checkableAbsenceStateId)}function l(o,p,D){return!!(function m(o){return!o}(p)&&null===o.ConfirmationStateId||f(p)||_(p)||E(p)&&o.ConfirmationStateId===D.unconfirmedAbsenceStateId||y(D,o.ConfirmationStateId))}function u(o,p){return o?.IsAbsence?p.unconfirmedAbsenceStateId:null}t.d(O,{Cn:()=>f,ED:()=>l,Eu:()=>u,W0:()=>E,sr:()=>y,tW:()=>h,x1:()=>_})},2637:(S,O,t)=>{t.d(O,{P:()=>h});var m=t(5539),f=t(3955),_=t(4438);const E=["*"];let h=(()=>{class y{constructor(){this.link=[]}static#e=this.\u0275fac=function(u){return new(u||y)};static#t=this.\u0275cmp=_.VBU({type:y,selectors:[["bkd-backlink"]],inputs:{link:"link",params:"params"},standalone:!0,features:[_.aNF],ngContentSelectors:E,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(u,o){1&u&&(_.NAR(),_.j41(0,"div",0)(1,"a",1)(2,"span",2),_.EFF(3,"arrow_back"),_.k0s(),_.j41(4,"span",3),_.EFF(5),_.nI1(6,"translate"),_.k0s()(),_.SdG(7),_.k0s()),2&u&&(_.R7$(),_.Y8G("routerLink",o.link)("queryParams",o.params),_.R7$(4),_.JRh(_.bMT(6,3,"global.back")))},dependencies:[m.Wk,f.h,f.D9],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 y})()},235:(S,O,t)=>{t.d(O,{A:()=>n});var m=t(177),f=t(5539),_=t(3955),E=t(2771),h=t(4412),y=t(4572),T=t(7673),l=t(7799),u=t(9172),o=t(4668),p=t(6354),D=t(5964),d=t(5558),c=t(6697),P=t(7887),I=t(5063),M=t(5421),C=t(9728),w=t(8667),k=t(1517),e=t(4438),N=t(8413);const H=["checkbox"];function Q(i,v){if(1&i&&e.nrm(0,"bkd-reports-link",17),2&i){const g=e.XpG(4);e.Y8G("reports",g.reports)("disableIfUnavailable",!0)}}function W(i,v){if(1&i&&(e.j41(0,"a",18),e.nI1(1,"async"),e.j41(2,"i",13),e.EFF(3,"mail"),e.k0s()()),2&i){const g=e.XpG(4);e.Mz_("href","mailto:",e.bMT(1,2,g.mailTo$),"",e.B4B)}}function x(i,v){if(1&i&&(e.j41(0,"div",19),e.EFF(1),e.k0s()),2&i){const g=e.XpG(4);e.R7$(),e.SpI(" ",g.defaultAbsenceSelectionMessage," ")}}function F(i,v){if(1&i){const g=e.RV6();e.j41(0,"div",7),e.bIt("click",function(A){e.eBV(g);const L=e.sdS(3),R=e.XpG(3);return e.Njj(R.onRowClick(A,L))}),e.j41(1,"div",8)(2,"input",9,2),e.nI1(4,"async"),e.bIt("change",function(A){e.eBV(g);const L=e.XpG(3);return e.Njj(L.toggleAll(null==A.target?null:A.target.checked))}),e.k0s()(),e.j41(5,"div",10),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"div",11)(9,"a",12),e.nI1(10,"async"),e.j41(11,"i",13),e.EFF(12,"edit"),e.k0s()(),e.DNE(13,Q,1,2,"bkd-reports-link",14)(14,W,4,4,"a",15),e.k0s(),e.DNE(15,x,2,1,"div",16),e.nI1(16,"async"),e.k0s()}if(2&i){let g,b;const A=e.XpG(3);e.R7$(2),e.Y8G("checked",e.bMT(4,8,A.allSelected$)),e.R7$(4),e.JRh(e.bMT(7,10,"open-absences.detail.all")),e.R7$(3),e.AVh("disabled",0===(null==(g=e.bMT(10,12,null==A.selectionService?null:A.selectionService.selection$))?null:g.length)),e.FS9("routerLink",A.confirmLink),e.R7$(4),e.Y8G("ngIf",A.reports),e.R7$(),e.Y8G("ngIf",A.displayEmail),e.R7$(),e.Y8G("ngIf",A.defaultAbsenceSelectionMessage&&(null==(b=e.bMT(16,14,null==A.selectionService?null:A.selectionService.selectedWithoutPresenceType$))?null:b.length)||!1)}}function B(i,v){if(1&i){const g=e.RV6();e.j41(0,"div",8)(1,"input",9,3),e.nI1(3,"async"),e.bIt("change",function(){e.eBV(g);const A=e.XpG().$implicit,L=e.XpG(3);return e.Njj(null==L.selectionService?null:L.selectionService.toggle(A))}),e.k0s()()}if(2&i){const g=e.XpG().$implicit,b=e.XpG(3);e.R7$(),e.Y8G("checked",e.bMT(3,1,null==b.selectionService?null:b.selectionService.isSelected$(g)))}}function j(i,v){if(1&i&&(e.qex(0),e.EFF(1),e.bVm()),2&i){const g=e.XpG().$implicit;e.R7$(),e.SpI(", ",g.StudyClassNumber,"")}}function $(i,v){if(1&i&&(e.j41(0,"div",32),e.EFF(1),e.k0s()),2&i){const g=e.XpG().bkdLet;e.R7$(),e.SpI(" ",g," ")}}function G(i,v){1&i&&(e.j41(0,"div",33),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&i&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"my-absences.show.confirm-presence-type")," "))}function Y(i,v){if(1&i&&(e.qex(0),e.DNE(1,$,2,1,"div",30)(2,G,3,3,"div",31),e.bVm()),2&i){const g=v.bkdLet,b=e.XpG(4);e.R7$(),e.Y8G("ngIf",g),e.R7$(),e.Y8G("ngIf",b.displayPresenceType&&!g&&b.defaultAbsenceSelectionMessage)}}function K(i,v){if(1&i){const g=e.RV6();e.j41(0,"div",20),e.bIt("click",function(A){const L=e.eBV(g).index,R=e.XpG(3);return e.Njj(R.onRowClick(A,L))}),e.DNE(1,B,4,3,"div",21),e.nI1(2,"async"),e.j41(3,"div",22),e.EFF(4),e.DNE(5,j,2,1,"ng-container",23),e.k0s(),e.j41(6,"div",24),e.EFF(7),e.nI1(8,"date"),e.nI1(9,"date"),e.k0s(),e.j41(10,"div",25),e.EFF(11),e.k0s(),e.DNE(12,Y,3,2,"ng-container",26),e.nI1(13,"async"),e.j41(14,"div",27),e.EFF(15),e.nI1(16,"date"),e.k0s(),e.j41(17,"div",28),e.EFF(18),e.nI1(19,"bkdDaysDifference"),e.k0s(),e.j41(20,"div",29),e.EFF(21),e.nI1(22,"date"),e.nI1(23,"bkdDaysDifference"),e.k0s()()}if(2&i){const g=v.$implicit,b=e.XpG(3);e.R7$(),e.Y8G("ngIf",e.bMT(2,11,b.editable$)),e.R7$(3),e.SpI(" ",g.EventDesignation,""),e.R7$(),e.Y8G("ngIf",g.StudyClassNumber),e.R7$(2),e.Lme(" ",e.i5U(8,13,g.LessonDateTimeFrom,"HH:mm"),"\u2013",e.i5U(9,16,g.LessonDateTimeTo,"HH:mm")," "),e.R7$(4),e.SpI(" ",g.TeacherInformation," "),e.R7$(),e.Y8G("bkdLet",e.bMT(13,19,b.getPresenceTypeDesignation(g))),e.R7$(3),e.SpI(" ",e.i5U(16,21,g.LessonDateTimeFrom,"dd.MM.yyyy")," "),e.R7$(3),e.SpI(" ",e.bMT(19,24,g.LessonDateTimeFrom)," "),e.R7$(3),e.Lme(" ",e.i5U(22,26,g.LessonDateTimeFrom,"dd.MM.yyyy"),", ",e.bMT(23,29,g.LessonDateTimeFrom)," ")}}function V(i,v){if(1&i&&(e.qex(0),e.DNE(1,F,17,16,"div",5),e.nI1(2,"async"),e.DNE(3,K,24,31,"div",6),e.nI1(4,"async"),e.bVm()),2&i){const g=e.XpG(2);e.R7$(),e.Y8G("ngIf",e.bMT(2,2,g.editable$)),e.R7$(2),e.Y8G("ngForOf",e.bMT(4,4,g.lessonPresences$))}}function s(i,v){1&i&&(e.j41(0,"p",34),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&i&&(e.R7$(),e.JRh(e.bMT(2,1,"shared.profile.no-absences")))}function a(i,v){if(1&i&&(e.qex(0),e.DNE(1,V,5,6,"ng-container",4),e.nI1(2,"async"),e.DNE(3,s,3,3,"ng-template",null,1,e.C5r),e.bVm()),2&i){let g;const b=e.sdS(4),A=e.XpG();e.R7$(),e.Y8G("ngIf",(null!==(g=null==(g=e.bMT(2,2,A.lessonPresences$))?null:g.length)&&void 0!==g?g:0)>0)("ngIfElse",b)}}function r(i,v){1&i&&e.nrm(0,"bkd-spinner",35)}let n=(()=>{class i{constructor(g){this.presenceTypesService=g,this.selectionService=null,this.displayPresenceType=!0,this.defaultAbsenceSelectionMessage=null,this.reports=null,this.confirmLink="confirm",this.displayEmail=!1,this.lessonPresences$$=new E.m(1),this.lessonPresences$=this.lessonPresences$$.pipe((0,l.w)(),(0,u.Z)(null),(0,o.t)(1)),this.loading$=this.lessonPresences$.pipe((0,p.T)((0,C.AU)(M.cy))),this.selectionService$=new E.m(1),this.editable$=this.selectionService$.pipe((0,p.T)(()=>!0),(0,u.Z)(!1)),this.displayPresenceType$=new h.t(!0),this.allSelected$=(0,y.z)([this.lessonPresences$.pipe((0,D.p)(C.TM)),this.selectionService$.pipe((0,d.n)(b=>b.selection$))]).pipe((0,p.T)(([b,A])=>b.length===A.length))}ngOnChanges(g){g.absences$&&this.lessonPresences$$.next(g.absences$.currentValue),g.selectionService&&g.selectionService.currentValue&&(g.selectionService.currentValue.clear(),this.selectionService$.next(g.selectionService.currentValue)),g.displayPresenceType&&this.displayPresenceType$.next(g.displayPresenceType.currentValue)}toggleAll(g){g?this.lessonPresences$.pipe((0,c.s)(1)).subscribe(b=>this.selectionService?.clear(b)):this.selectionService?.clear()}onRowClick(g,b){if(0===this.checkboxes.length)return;let A;A="number"==typeof b?this.checkboxes.toArray()[b].nativeElement:b,g.target!==A&&!g.target.closest(".buttons")&&A.click()}getPresenceTypeDesignation(g){return this.displayPresenceType$.pipe((0,d.n)(b=>b?this.presenceTypesService.displayedTypes$:(0,T.of)([])),(0,p.T)(b=>g.TypeRef.Id&&b.find(A=>A.Id===g.TypeRef.Id)?.Designation||null))}static#e=this.\u0275fac=function(b){return new(b||i)(e.rXU(N._))};static#t=this.\u0275cmp=e.VBU({type:i,selectors:[["bkd-student-dossier-absences"]],viewQuery:function(b,A){if(1&b&&e.GBs(H,5),2&b){let L;e.mGM(L=e.lsd())&&(A.checkboxes=L)}},inputs:{absences$:"absences$",selectionService:"selectionService",displayPresenceType:"displayPresenceType",defaultAbsenceSelectionMessage:"defaultAbsenceSelectionMessage",reports:"reports",confirmLink:"confirmLink",displayEmail:"displayEmail",mailTo$:"mailTo$"},standalone:!0,features:[e.OA$,e.aNF],decls:4,vars:4,consts:[["loading",""],["noAbsences",""],["allCheckbox",""],["checkbox",""],[4,"ngIf","ngIfElse"],["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,"change","checked"],[1,"all"],[1,"buttons"],[1,"edit","btn","btn-primary","btn-icon","me-2",3,"routerLink"],[1,"material-icons"],["class","me-2",3,"reports","disableIfUnavailable",4,"ngIf"],["class","mail btn btn-primary btn-icon me-2","target","_blank",3,"href",4,"ngIf"],["class","validation",4,"ngIf"],[1,"me-2",3,"reports","disableIfUnavailable"],["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,"bkdLet"],[1,"date"],[1,"days-ago"],[1,"date-days-ago"],["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(b,A){if(1&b&&(e.DNE(0,a,5,4,"ng-container",4),e.nI1(1,"async"),e.DNE(2,r,1,0,"ng-template",null,0,e.C5r)),2&b){const L=e.sdS(3);e.Y8G("ngIf",!1===e.bMT(1,2,A.loading$))("ngIfElse",L)}},dependencies:[m.bT,f.Wk,w.Z,m.pM,P.N,k.t,m.Jj,m.vh,_.h,_.D9,I.j],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:#ea161f}.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 i})()},5063:(S,O,t)=>{t.d(O,{j:()=>E});var m=t(2510),f=t(4438),_=t(3955);let E=(()=>{class h{constructor(T){this.translate=T}transform(T){if(!T)return"";const l=(0,m.m)(T,new Date);return this.translate.instant(`shared.daysDifference.${this.getKey(l)}`,{count:Math.abs(l)})}getKey(T){return 0===T?"today":1===T?"tomorrow":-1===T?"yesterday":T>0?"in":"ago"}static#e=this.\u0275fac=function(l){return new(l||h)(f.rXU(_.c$,16))};static#t=this.\u0275pipe=f.EJ8({name:"bkdDaysDifference",type:h,pure:!0,standalone:!0})}return h})()},9366:(S,O,t)=>{t.d(O,{s:()=>D});var m=t(5212),f=t(6354),_=t(4668),E=t(6697),h=t(9960),y=t(916),T=t(2809),l=t(8268),u=t(9728),o=t(4125),p=t(4438);let D=(()=>{class c extends l.A{constructor(I){super(),this.settings=I,this.selectedIds$=this.selection$.pipe((0,f.T)(d),(0,f.T)(({openAbsencesEntries:M,lessonPresences:C})=>(0,o.BG)([...(0,y.p5)(M),...C])),(0,_.t)(1)),this.selectedLessons$=this.selection$.pipe((0,f.T)(d),(0,f.T)(({openAbsencesEntries:M,lessonPresences:C})=>[...(0,y.p5)(M),...C]),(0,_.t)(1)),this.selectedWithoutPresenceType$=this.selection$.pipe((0,f.T)(d),(0,f.T)(({openAbsencesEntries:M,lessonPresences:C})=>[...(0,y.p5)(M),...C].filter(w=>w.TypeRef.Id===this.settings.absencePresenceTypeId)))}clearNonOpenAbsencesEntries(){this.selection$.pipe((0,E.s)(1),(0,f.T)(d)).subscribe(({openAbsencesEntries:I})=>this.clear(I))}clearNonLessonPresences(){this.selection$.pipe((0,E.s)(1),(0,f.T)(d)).subscribe(({lessonPresences:I})=>this.clear(I))}static#e=this.\u0275fac=function(M){return new(M||c)(p.KVO(T.yy))};static#t=this.\u0275prov=p.jDH({token:c,factory:c.\u0275fac})}return c})();function d(c){return{openAbsencesEntries:c.filter((0,u.tH)(h.h)),lessonPresences:c.filter((0,m.AU)((0,u.tH)(h.h)))}}},9946:(S,O,t)=>{t.d(O,{T:()=>h});var m=t(6354),f=t(2809),_=t(4438),E=t(1626);let h=(()=>{class y{constructor(l,u){this.http=l,this.settings=u}editLessonPresences(l,u,o,p,D){const d={LessonIds:l,PersonIds:u};return void 0!==o&&(d.PresenceTypeId=o),void 0!==p&&(d.ConfirmationValue=p),this.http.put(`${this.settings.apiUrl}/LessonPresences/Edit`,d,D).pipe((0,m.T)(()=>{}))}removeLessonPresences(l,u,o){return this.http.put(`${this.settings.apiUrl}/LessonPresences/Reset`,{LessonIds:l,PersonIds:u,WithComment:!0},o).pipe((0,m.T)(()=>{}))}confirmLessonPresences(l,u,o,p){return this.http.put(`${this.settings.apiUrl}/LessonAbsences/Confirm`,{LessonIds:l,PersonIds:u,AbsenceTypeId:o,ConfirmationValue:p}).pipe((0,m.T)(()=>{}))}static#e=this.\u0275fac=function(u){return new(u||y)(_.KVO(E.Qq),_.KVO(f.yy))};static#t=this.\u0275prov=_.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})()},8413:(S,O,t)=>{t.d(O,{_:()=>c});var m=t(4668),f=t(6354),_=t(9172),E=t(3294),h=t(2809),y=t(5359),T=t(4438),l=t(5783),u=t(5306);const o=l.NW({Id:l.ai,Active:l.zM,Designation:(0,u.c$)(l.Yj),IsAbsence:l.zM,IsComment:l.zM,IsDispensation:l.zM,IsIncident:l.zM,IsHalfDay:l.zM,NeedsConfirmation:l.zM,Sort:l.ai});var p=t(6952),D=t(1626);let d=(()=>{class P extends p.G{constructor(M,C){super(M,C,o,"PresenceTypes")}static#e=this.\u0275fac=function(C){return new(C||P)(T.KVO(D.Qq),T.KVO(h.yy))};static#t=this.\u0275prov=T.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),c=(()=>{class P{constructor(M,C){this.restService=M,this.settings=C,this.presenceTypes$=this.loadPresenceTypes().pipe((0,m.t)(1)),this.activePresenceTypes$=this.presenceTypes$.pipe((0,f.T)(this.filterActiveTypes.bind(this)),(0,m.t)(1)),this.confirmationTypes$=this.presenceTypes$.pipe((0,f.T)(this.filterConfirmationTypes.bind(this)),(0,m.t)(1)),this.incidentTypes$=this.presenceTypes$.pipe((0,f.T)(this.filterIncidentTypes.bind(this)),(0,m.t)(1)),this.displayedTypes$=this.presenceTypes$.pipe((0,f.T)(this.filterDisplayedTypes.bind(this)),(0,m.t)(1)),this.halfDayActive$=this.presenceTypes$.pipe((0,f.T)(this.isHalfDayActive.bind(this)),(0,_.Z)(!1),(0,E.F)(),(0,m.t)(1))}getPresenceType(M){return this.presenceTypes$.pipe((0,f.T)(C=>{const w=C.find(k=>k.Id===M);if(!w)throw new Error("presence type not found");return w}))}loadPresenceTypes(){return this.restService.getList().pipe((0,f.T)(y.Tj))}filterActiveTypes(M){return M.filter(C=>C.Active)}filterConfirmationTypes(M){return M.filter(C=>C.NeedsConfirmation&&C.Active&&C.Id!==this.settings.absencePresenceTypeId)}filterIncidentTypes(M){return M.filter(C=>C.IsIncident&&C.Active)}filterDisplayedTypes(M){return M.filter(C=>C.Id!==this.settings.absencePresenceTypeId)}isHalfDayActive(M){return!!M.find(C=>C.Id===this.settings.halfDayPresenceTypeId)?.Active}static#e=this.\u0275fac=function(C){return new(C||P)(T.KVO(d),T.KVO(h.yy))};static#t=this.\u0275prov=T.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})()},8268:(S,O,t)=>{t.d(O,{A:()=>o});var m=t(1413),f=t(3984),_=t(2771),E=t(2816),h=t(9172),y=t(6354),T=t(3294),l=t(4438),u=function(p){return p.ToggleSelection="TOGGLE",p.ClearSelection="CLEAR",p}(u||{});let o=(()=>{class p{constructor(){this.action$=new m.B,this.selection$=(0,f.x)(this.action$.pipe((0,E.S)(this.reduceSelection.bind(this),[]),(0,h.Z)([])),{connector:()=>new _.m(1)}),this.selectionSub=this.selection$.connect()}ngOnDestroy(){this.selectionSub.unsubscribe()}toggle(d){this.action$.next({type:u.ToggleSelection,payload:d})}clear(d=null){this.action$.next({type:u.ClearSelection,payload:d})}isSelected$(d){return this.selection$.pipe((0,y.T)(c=>c.includes(d)),(0,T.F)())}reduceSelection(d,c){switch(c.type){case u.ToggleSelection:return d.includes(c.payload)?d.filter(P=>P!==c.payload):[...d,c.payload];case u.ClearSelection:return c.payload||[];default:return d}}static#e=this.\u0275fac=function(c){return new(c||p)};static#t=this.\u0275prov=l.jDH({token:p,factory:p.\u0275fac})}return p})()},5421:(S,O,t)=>{function h(l){return 0===l.length}function T(l){return Array.isArray(l)}t.d(O,{VP:()=>h,cy:()=>T})},8156:(S,O,t)=>{t.d(O,{IK:()=>p,Oi:()=>o,v:()=>u});var m=t(4572),f=t(7673),_=t(983),E=t(5964),h=t(5558),y=t(9172),T=t(6354),l=t(4668);function u(d,c,P){return(0,m.z)([d,c]).pipe((0,E.p)(([I,M])=>M),(0,h.n)(([I,M])=>{const C=P?I?.get(P)||null:I;return C?C.statusChanges.pipe((0,y.Z)(C.status),(0,T.T)(()=>function D(d){return d?Object.keys(d.errors||{}).map(c=>({error:c,params:d.errors&&d.errors[c]instanceof Object?d.errors[c]:null})):[]}(C))):(0,f.of)([])}),(0,y.Z)([]),(0,l.t)(1))}function o(d,c){return d.pipe((0,T.T)(P=>P.get(c)||null))}function p(d,c){return o(d,c).pipe((0,h.n)(P=>P?P.valueChanges:_.w))}},3382:(S,O,t)=>{function m(f){return _=>f(..._)}t.d(O,{i:()=>m})},4125:(S,O,t)=>{t.d(O,{BG:()=>_,Jr:()=>f,L0:()=>y,wB:()=>h});var m=t(4903);function f(T){const l=T.reduce((u,o)=>(u[o.StudentRef.Id]||(u[o.StudentRef.Id]=[]),u[o.StudentRef.Id].push(o.LessonRef.Id),u),{});return Object.keys(l).map(u=>({personIds:[Number(u)],lessonIds:l[u]}))}function _(T){const l={};return T.forEach(u=>{l[u.StudentRef.Id]||(l[u.StudentRef.Id]={}),l[u.StudentRef.Id][String(u.TypeRef.Id)]||(l[u.StudentRef.Id][String(u.TypeRef.Id)]=[]),l[u.StudentRef.Id][String(u.TypeRef.Id)].push(u.LessonRef.Id)}),Object.keys(l).reduce((u,o)=>[...u,...Object.keys(l[o]).map(p=>({personId:Number(o),presenceTypeId:"null"===p?null:Number(p),lessonIds:l[o][String(p)]}))],[])}function h(T){return T.slice().sort((l,u)=>l.LessonDateTimeFrom.getTime()-u.LessonDateTimeFrom.getTime())}function y(T){return`${T.EventDesignation}, ${(0,m.GP)(T.LessonDateTimeFrom,"dd.MM.yyyy")}, ${(0,m.GP)(T.LessonDateTimeFrom,"HH:mm")}-${(0,m.GP)(T.LessonDateTimeTo,"HH:mm")}`}},5359:(S,O,t)=>{function m(E){return E.slice().sort((h,y)=>h.Sort-y.Sort)}function f(E){return E.map(h=>({Key:h.Id,Value:h.Designation||""}))}function _(E,h){return E.map(y=>Object.assign(y,{Group:h}))}t.d(O,{Tj:()=>m,Wk:()=>_,mC:()=>f})},5212:(S,O,t)=>{t.d(O,{AU:()=>o}),t(8633);var o=function(d){return function(c){return!d(c)}}},7799:(S,O,t)=>{t.d(O,{w:()=>_});var m=t(5558),f=t(3669);function _(){return(0,m.n)(f.D)}},1666:(S,O,t)=>{t.d(O,{q:()=>f});let m={};function f(){return m}},8488:(S,O,t)=>{t.d(O,{m:()=>E});const m=(h,y)=>{switch(h){case"P":return y.date({width:"short"});case"PP":return y.date({width:"medium"});case"PPP":return y.date({width:"long"});default:return y.date({width:"full"})}},f=(h,y)=>{switch(h){case"p":return y.time({width:"short"});case"pp":return y.time({width:"medium"});case"ppp":return y.time({width:"long"});default:return y.time({width:"full"})}},E={p:f,P:(h,y)=>{const T=h.match(/(P+)(p+)?/)||[],l=T[1],u=T[2];if(!u)return m(h,y);let o;switch(l){case"P":o=y.dateTime({width:"short"});break;case"PP":o=y.dateTime({width:"medium"});break;case"PPP":o=y.dateTime({width:"long"});break;default:o=y.dateTime({width:"full"})}return o.replace("{{date}}",m(l,y)).replace("{{time}}",f(u,y))}}},5872:(S,O,t)=>{t.d(O,{G:()=>f});var m=t(4273);function f(_){const E=(0,m.a)(_),h=new Date(Date.UTC(E.getFullYear(),E.getMonth(),E.getDate(),E.getHours(),E.getMinutes(),E.getSeconds(),E.getMilliseconds()));return h.setUTCFullYear(E.getFullYear()),+_-+h}},7195:(S,O,t)=>{t.d(O,{Ss:()=>y,ef:()=>E,xM:()=>h});const m=/^D+$/,f=/^Y+$/,_=["D","DD","YY","YYYY"];function E(l){return m.test(l)}function h(l){return f.test(l)}function y(l,u,o){const p=function T(l,u,o){const p="Y"===l[0]?"years":"days of the month";return`Use \`${l.toLowerCase()}\` instead of \`${l}\` (in \`${u}\`) for formatting ${p} to the input \`${o}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(l,u,o);if(console.warn(p),_.includes(l))throw new RangeError(p)}},906:(S,O,t)=>{t.d(O,{f:()=>_});var m=t(4273),f=t(7729);function _(h,y){const T=(0,m.a)(h);return isNaN(y)?(0,f.w)(h,NaN):(y&&T.setDate(T.getDate()+y),T)}},9857:(S,O,t)=>{t.d(O,{Cg:()=>T,_m:()=>u,my:()=>h,s0:()=>l,w4:()=>y}),Math.pow(10,8);const h=6048e5,y=864e5,T=6e4,l=36e5,u=1e3},7729:(S,O,t)=>{function m(_,E){return _ instanceof Date?new _.constructor(E):new Date(E)}t.d(O,{w:()=>m})},2510:(S,O,t)=>{t.d(O,{m:()=>E});var m=t(9857),f=t(3601),_=t(5872);function E(y,T){const l=(0,f.o)(y),u=(0,f.o)(T),o=+l-(0,_.G)(l),p=+u-(0,_.G)(u);return Math.round((o-p)/m.w4)}},4903:(S,O,t)=>{t.d(O,{GP:()=>Y});var m=t(3501),f=t(1666),_=t(2510),E=t(4273),h=t(7729);var o=t(6453),p=t(910),D=t(7012),d=t(6045);function c(s,a){return(s<0?"-":"")+Math.abs(s).toString().padStart(a,"0")}const P={y(s,a){const r=s.getFullYear(),n=r>0?r:1-r;return c("yy"===a?n%100:n,a.length)},M(s,a){const r=s.getMonth();return"M"===a?String(r+1):c(r+1,2)},d:(s,a)=>c(s.getDate(),a.length),a(s,a){const r=s.getHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(s,a)=>c(s.getHours()%12||12,a.length),H:(s,a)=>c(s.getHours(),a.length),m:(s,a)=>c(s.getMinutes(),a.length),s:(s,a)=>c(s.getSeconds(),a.length),S(s,a){const r=a.length,n=s.getMilliseconds();return c(Math.trunc(n*Math.pow(10,r-3)),a.length)}},M={G:function(s,a,r){const n=s.getFullYear()>0?1:0;switch(a){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(s,a,r){if("yo"===a){const n=s.getFullYear();return r.ordinalNumber(n>0?n:1-n,{unit:"year"})}return P.y(s,a)},Y:function(s,a,r,n){const i=(0,d.h)(s,n),v=i>0?i:1-i;return"YY"===a?c(v%100,2):"Yo"===a?r.ordinalNumber(v,{unit:"year"}):c(v,a.length)},R:function(s,a){return c((0,p.p)(s),a.length)},u:function(s,a){return c(s.getFullYear(),a.length)},Q:function(s,a,r){const n=Math.ceil((s.getMonth()+1)/3);switch(a){case"Q":return String(n);case"QQ":return c(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(s,a,r){const n=Math.ceil((s.getMonth()+1)/3);switch(a){case"q":return String(n);case"qq":return c(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(s,a,r){const n=s.getMonth();switch(a){case"M":case"MM":return P.M(s,a);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(s,a,r){const n=s.getMonth();switch(a){case"L":return String(n+1);case"LL":return c(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(s,a,r,n){const i=(0,D.N)(s,n);return"wo"===a?r.ordinalNumber(i,{unit:"week"}):c(i,a.length)},I:function(s,a,r){const n=(0,o.s)(s);return"Io"===a?r.ordinalNumber(n,{unit:"week"}):c(n,a.length)},d:function(s,a,r){return"do"===a?r.ordinalNumber(s.getDate(),{unit:"date"}):P.d(s,a)},D:function(s,a,r){const n=function l(s){const a=(0,E.a)(s);return(0,_.m)(a,function y(s){const a=(0,E.a)(s),r=(0,h.w)(s,0);return r.setFullYear(a.getFullYear(),0,1),r.setHours(0,0,0,0),r}(a))+1}(s);return"Do"===a?r.ordinalNumber(n,{unit:"dayOfYear"}):c(n,a.length)},E:function(s,a,r){const n=s.getDay();switch(a){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(s,a,r,n){const i=s.getDay(),v=(i-n.weekStartsOn+8)%7||7;switch(a){case"e":return String(v);case"ee":return c(v,2);case"eo":return r.ordinalNumber(v,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(s,a,r,n){const i=s.getDay(),v=(i-n.weekStartsOn+8)%7||7;switch(a){case"c":return String(v);case"cc":return c(v,a.length);case"co":return r.ordinalNumber(v,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(s,a,r){const n=s.getDay(),i=0===n?7:n;switch(a){case"i":return String(i);case"ii":return c(i,a.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(s,a,r){const i=s.getHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(s,a,r){const n=s.getHours();let i;switch(i=12===n?"noon":0===n?"midnight":n/12>=1?"pm":"am",a){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(s,a,r){const n=s.getHours();let i;switch(i=n>=17?"evening":n>=12?"afternoon":n>=4?"morning":"night",a){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(s,a,r){if("ho"===a){let n=s.getHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return P.h(s,a)},H:function(s,a,r){return"Ho"===a?r.ordinalNumber(s.getHours(),{unit:"hour"}):P.H(s,a)},K:function(s,a,r){const n=s.getHours()%12;return"Ko"===a?r.ordinalNumber(n,{unit:"hour"}):c(n,a.length)},k:function(s,a,r){let n=s.getHours();return 0===n&&(n=24),"ko"===a?r.ordinalNumber(n,{unit:"hour"}):c(n,a.length)},m:function(s,a,r){return"mo"===a?r.ordinalNumber(s.getMinutes(),{unit:"minute"}):P.m(s,a)},s:function(s,a,r){return"so"===a?r.ordinalNumber(s.getSeconds(),{unit:"second"}):P.s(s,a)},S:function(s,a){return P.S(s,a)},X:function(s,a,r){const n=s.getTimezoneOffset();if(0===n)return"Z";switch(a){case"X":return w(n);case"XXXX":case"XX":return k(n);default:return k(n,":")}},x:function(s,a,r){const n=s.getTimezoneOffset();switch(a){case"x":return w(n);case"xxxx":case"xx":return k(n);default:return k(n,":")}},O:function(s,a,r){const n=s.getTimezoneOffset();switch(a){case"O":case"OO":case"OOO":return"GMT"+C(n,":");default:return"GMT"+k(n,":")}},z:function(s,a,r){const n=s.getTimezoneOffset();switch(a){case"z":case"zz":case"zzz":return"GMT"+C(n,":");default:return"GMT"+k(n,":")}},t:function(s,a,r){return c(Math.trunc(s.getTime()/1e3),a.length)},T:function(s,a,r){return c(s.getTime(),a.length)}};function C(s,a=""){const r=s>0?"-":"+",n=Math.abs(s),i=Math.trunc(n/60),v=n%60;return 0===v?r+String(i):r+String(i)+a+c(v,2)}function w(s,a){return s%60==0?(s>0?"-":"+")+c(Math.abs(s)/60,2):k(s,a)}function k(s,a=""){const r=s>0?"-":"+",n=Math.abs(s);return r+c(Math.trunc(n/60),2)+a+c(n%60,2)}var e=t(8488),N=t(7195);const F=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,B=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,j=/^'([^]*?)'?$/,$=/''/g,G=/[a-zA-Z]/;function Y(s,a,r){const n=(0,f.q)(),i=r?.locale??n.locale??m.c,v=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,g=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,b=(0,E.a)(s);if(!function W(s){if(!function H(s){return s instanceof Date||"object"==typeof s&&"[object Date]"===Object.prototype.toString.call(s)}(s)&&"number"!=typeof s)return!1;const a=(0,E.a)(s);return!isNaN(Number(a))}(b))throw new RangeError("Invalid time value");let A=a.match(B).map(R=>{const U=R[0];return"p"===U||"P"===U?(0,e.m[U])(R,i.formatLong):R}).join("").match(F).map(R=>{if("''"===R)return{isToken:!1,value:"'"};const U=R[0];if("'"===U)return{isToken:!1,value:K(R)};if(M[U])return{isToken:!0,value:R};if(U.match(G))throw new RangeError("Format string contains an unescaped latin alphabet character `"+U+"`");return{isToken:!1,value:R}});i.localize.preprocessor&&(A=i.localize.preprocessor(b,A));const L={firstWeekContainsDate:v,weekStartsOn:g,locale:i};return A.map(R=>{if(!R.isToken)return R.value;const U=R.value;return(!r?.useAdditionalWeekYearTokens&&(0,N.xM)(U)||!r?.useAdditionalDayOfYearTokens&&(0,N.ef)(U))&&(0,N.Ss)(U,a,String(s)),(0,M[U[0]])(b,U,i.localize,L)}).join("")}function K(s){const a=s.match(j);return a?a[1].replace($,"'"):s}},6453:(S,O,t)=>{t.d(O,{s:()=>l});var m=t(9857),f=t(8152),_=t(910),E=t(7729),T=t(4273);function l(o){const p=(0,T.a)(o),D=+(0,f.b)(p)-+function h(o){const p=(0,_.p)(o),D=(0,E.w)(o,0);return D.setFullYear(p,0,4),D.setHours(0,0,0,0),(0,f.b)(D)}(p);return Math.round(D/m.my)+1}},910:(S,O,t)=>{t.d(O,{p:()=>E});var m=t(7729),f=t(8152),_=t(4273);function E(y){const T=(0,_.a)(y),l=T.getFullYear(),u=(0,m.w)(y,0);u.setFullYear(l+1,0,4),u.setHours(0,0,0,0);const o=(0,f.b)(u),p=(0,m.w)(y,0);p.setFullYear(l,0,4),p.setHours(0,0,0,0);const D=(0,f.b)(p);return T.getTime()>=o.getTime()?l+1:T.getTime()>=D.getTime()?l:l-1}},7012:(S,O,t)=>{t.d(O,{N:()=>u});var m=t(9857),f=t(7793),_=t(7729),E=t(6045),h=t(1666),l=t(4273);function u(p,D){const d=(0,l.a)(p),c=+(0,f.k)(d,D)-+function y(p,D){const d=(0,h.q)(),c=D?.firstWeekContainsDate??D?.locale?.options?.firstWeekContainsDate??d.firstWeekContainsDate??d.locale?.options?.firstWeekContainsDate??1,P=(0,E.h)(p,D),I=(0,_.w)(p,0);return I.setFullYear(P,0,c),I.setHours(0,0,0,0),(0,f.k)(I,D)}(d,D);return Math.round(c/m.my)+1}},6045:(S,O,t)=>{t.d(O,{h:()=>h});var m=t(7729),f=t(7793),_=t(4273),E=t(1666);function h(T,l){const u=(0,_.a)(T),o=u.getFullYear(),p=(0,E.q)(),D=l?.firstWeekContainsDate??l?.locale?.options?.firstWeekContainsDate??p.firstWeekContainsDate??p.locale?.options?.firstWeekContainsDate??1,d=(0,m.w)(T,0);d.setFullYear(o+1,0,D),d.setHours(0,0,0,0);const c=(0,f.k)(d,l),P=(0,m.w)(T,0);P.setFullYear(o,0,D),P.setHours(0,0,0,0);const I=(0,f.k)(P,l);return u.getTime()>=c.getTime()?o+1:u.getTime()>=I.getTime()?o:o-1}},3501:(S,O,t)=>{t.d(O,{c:()=>a});const m={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 _(n){return(i={})=>{const v=i.width?String(i.width):n.defaultWidth;return n.formats[v]||n.formats[n.defaultWidth]}}const T={date:_({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:_({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:_({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},l={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function o(n){return(i,v)=>{let b;if("formatting"===(v?.context?String(v.context):"standalone")&&n.formattingValues){const L=n.defaultFormattingWidth||n.defaultWidth,R=v?.width?String(v.width):L;b=n.formattingValues[R]||n.formattingValues[L]}else{const L=n.defaultWidth,R=v?.width?String(v.width):n.defaultWidth;b=n.values[R]||n.values[L]}return b[n.argumentCallback?n.argumentCallback(i):i]}}function w(n){return(i,v={})=>{const g=v.width,A=i.match(g&&n.matchPatterns[g]||n.matchPatterns[n.defaultMatchWidth]);if(!A)return null;const L=A[0],R=g&&n.parsePatterns[g]||n.parsePatterns[n.defaultParseWidth],U=Array.isArray(R)?function e(n,i){for(let v=0;vJ.test(L)):function k(n,i){for(const v in n)if(Object.prototype.hasOwnProperty.call(n,v)&&i(n[v]))return v}(R,J=>J.test(L));let X;return X=n.valueCallback?n.valueCallback(U):U,X=v.valueCallback?v.valueCallback(X):X,{value:X,rest:i.slice(L.length)}}}const a={code:"en-US",formatDistance:(n,i,v)=>{let g;const b=m[n];return g="string"==typeof b?b:1===i?b.one:b.other.replace("{{count}}",i.toString()),v?.addSuffix?v.comparison&&v.comparison>0?"in "+g:g+" ago":g},formatLong:T,formatRelative:(n,i,v,g)=>l[n],localize:{ordinalNumber:(n,i)=>{const v=Number(n),g=v%100;if(g>20||g<10)switch(g%10){case 1:return v+"st";case 2:return v+"nd";case 3:return v+"rd"}return v+"th"},era:o({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:o({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:n=>n-1}),month:o({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:o({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:o({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 N(n){return(i,v={})=>{const g=i.match(n.matchPattern);if(!g)return null;const b=g[0],A=i.match(n.parsePattern);if(!A)return null;let L=n.valueCallback?n.valueCallback(A[0]):A[0];return L=v.valueCallback?v.valueCallback(L):L,{value:L,rest:i.slice(b.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:n=>parseInt(n,10)}),era:w({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:w({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:n=>n+1}),month:w({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:w({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:w({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}}},3601:(S,O,t)=>{t.d(O,{o:()=>f});var m=t(4273);function f(E){const h=(0,m.a)(E);return h.setHours(0,0,0,0),h}},8152:(S,O,t)=>{t.d(O,{b:()=>f});var m=t(7793);function f(E){return(0,m.k)(E,{weekStartsOn:1})}},7793:(S,O,t)=>{t.d(O,{k:()=>_});var m=t(4273),f=t(1666);function _(h,y){const T=(0,f.q)(),l=y?.weekStartsOn??y?.locale?.options?.weekStartsOn??T.weekStartsOn??T.locale?.options?.weekStartsOn??0,u=(0,m.a)(h),o=u.getDay(),p=(o{t.d(O,{e:()=>f});var m=t(906);function f(E,h){return(0,m.f)(E,-h)}},4273:(S,O,t)=>{function m(_){const E=Object.prototype.toString.call(_);return _ instanceof Date||"object"==typeof _&&"[object Date]"===E?new _.constructor(+_):"number"==typeof _||"[object Number]"===E||"string"==typeof _||"[object String]"===E?new Date(_):new Date(NaN)}t.d(O,{a:()=>m})},7672:(S,O,t)=>{t.d(O,{A:()=>Q});var m=t(8587);const h=function E(W){return W!=W},p=function o(W,x){return!(null==W||!W.length)&&function l(W,x,F){return x==x?function y(W,x,F){for(var B=F-1,j=W.length;++B-1},d=function D(W,x,F){for(var B=-1,j=null==W?0:W.length;++B=200){var V=x?null:e(W);if(V)return(0,C.A)(V);G=!1,j=c.A,K=new m.A}else K=x?[]:Y;e:for(;++B<$;){var s=W[B],a=x?x(s):s;if(s=F||0!==s?s:0,G&&a==a){for(var r=K.length;r--;)if(K[r]===a)continue e;x&&K.push(a),Y.push(s)}else j(K,a,F)||(K!==Y&&K.push(a),Y.push(s))}return Y}},5042:(S,O,t)=>{t.d(O,{A:()=>E});var m=t(5405),f=t(7672);const E=function _(h,y){return h&&h.length?(0,f.A)(h,(0,m.A)(y,2)):[]}}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/656.js b/public/apps/webapp-schulverwaltung/656.js deleted file mode 100644 index 0e968042..00000000 --- a/public/apps/webapp-schulverwaltung/656.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[656],{2915:(X,j,n)=>{n.d(j,{b:()=>ft,z:()=>Mr});var y=n(977),I=n(5401);var O=n(4981),S=n(1319),m=Object.prototype.hasOwnProperty;const R=function A(t,r,e){var s=t[r];(!m.call(t,r)||!(0,S.A)(s,e)||void 0===e&&!(r in t))&&(0,O.A)(t,r,e)},l=function u(t,r,e,s){var T=!e;e||(e={});for(var f=-1,h=r.length;++f{class t{constructor(e,s,T,f,h){this.location=e,this.loadingService=s,this.sortService=T,this.settings=f,this.loading$=this.loadingService.loading$,this.loadingPage$=this.loadingService.loading(ft),this.sorting$=this.sortService.sorting$,this.filter$=new Tr.t(this.getInitialFilter()),this.isFilterValid$=this.filter$.pipe((0,d.T)(this.isValidFilter.bind(this))),this.validFilter$=this.filter$.pipe((0,Or.p)(this.isValidFilter.bind(this)),(0,Sr.F)(y.A),(0,H.t)(1)),this.resetEntries$=new Q.B,this.nextPage$=new Q.B,this.page$=(0,L.h)(this.nextPage$.pipe((0,d.T)(()=>"next")),(0,L.h)(this.resetEntries$,this.validFilter$,this.sorting$).pipe((0,d.T)(()=>"reset"))).pipe((0,gt.S)((a,p)=>"next"===p?a+1:0,0)),this.offset$=this.page$.pipe((0,d.T)(a=>a*this.settings.paginationLimit)),this.pageResult$=(0,Pr.z)([this.validFilter$,this.sorting$,this.offset$]).pipe((0,br.B)(10),(0,Cr.H)((0,Ir.i)(this.loadEntries.bind(this))),(0,H.t)(1)),this.entries$=(0,L.h)((0,L.h)(this.resetEntries$,this.validFilter$,this.sorting$).pipe((0,d.T)(()=>({action:"reset"}))),this.pageResult$.pipe((0,d.T)(a=>0===a.offset?{action:"reset",entries:a.entries}:{action:"append",entries:a.entries}))).pipe((0,gt.S)(this.entriesActionReducer.bind(this),[]),(0,H.t)(1)),this.total$=this.pageResult$.pipe((0,d.T)(({total:a})=>a)),this.hasMore$=this.pageResult$.pipe((0,d.T)(({offset:a,total:p})=>athis.location.replaceState(h,a)),this.sortService.setSorting(this.getInitialSorting())}ngOnDestroy(){this.destroy$.next()}setFilter(e){this.filter$.next(function yr(t){return vr(t,5)}(e))}nextPage(){this.hasMore$.pipe((0,jr.s)(1)).subscribe(e=>{e&&this.nextPage$.next()})}resetEntries(){this.resetEntries$.next()}getInitialSorting(){return null}entriesActionReducer(e,s){switch(s.action){case"append":return[...e,...s.entries];case"reset":return s.entries?s.entries:[];default:return e}}static#t=this.\u0275fac=function(s){ut.QTQ()};static#n=this.\u0275prov=ut.jDH({token:t,factory:t.\u0275fac})}return t})()},1769:(X,j,n)=>{n.d(j,{W:()=>U});var y=n(5539),I=n(1413),D=n(7673),E=n(5964),O=n(6354),S=n(6697),M=n(1397),m=n(5558),A=n(7799),R=n(4668),u=n(6977),l=n(4438),C=n(177);let U=(()=>{class g{constructor(o,c){this.router=o,this.viewportScroller=c,this.scrollPositions={},this.previousRoute=null,this.currentRoute=this.getInitialActivatedRouteSnapshot(),this.currentScrollPosition=[0,0],this.destroy$=new I.B,this.activationEnd$=this.router.events.pipe((0,E.p)(K)),this.navigationEnd$=this.router.events.pipe((0,E.p)(x)),this.navigationStart$=this.router.events.pipe((0,E.p)(W)),this.scrollPosition$=this.navigationStart$.pipe((0,O.T)(this.getScrollPosition.bind(this))),this.route$=this.activationEnd$.pipe((0,S.s)(1)).pipe((0,M.Z)(v=>[(0,D.of)(v),this.navigationEnd$.pipe((0,m.n)(()=>this.activationEnd$.pipe((0,S.s)(1))))]),(0,A.w)(),(0,O.T)(v=>v.snapshot),(0,R.t)(1)),this.scrollPosition$.pipe((0,u.Q)(this.destroy$)).subscribe(v=>this.currentScrollPosition=v),this.route$.pipe((0,u.Q)(this.destroy$)).subscribe(v=>{this.previousRoute=this.currentRoute,this.currentRoute=v})}ngOnDestroy(){this.destroy$.next()}restore(){if(!this.currentRoute||!this.requiresStoring(this.currentRoute))return;if(this.previousRoute&&this.shouldStoreFor(this.currentRoute,this.previousRoute)){const c=this.getPath(this.currentRoute);this.scrollToPosition(this.scrollPositions[c]||[0,0])}const o=this.currentRoute;this.route$.pipe((0,S.s)(1),(0,u.Q)(this.destroy$),(0,E.p)(c=>this.shouldStoreFor(o,c))).subscribe(()=>{const c=this.getPath(o);this.scrollPositions[c]=this.currentScrollPosition})}getScrollPosition(){return this.viewportScroller.getScrollPosition()}scrollToPosition(o){this.viewportScroller.scrollToPosition(o)}getPath(o){return o?"/"+o.pathFromRoot.map(c=>c.routeConfig&&c.routeConfig.path).filter(c=>c).join("/"):"/"}requiresStoring(o){return!!(o&&o.routeConfig&&o.routeConfig.data&&Array.isArray(o.routeConfig.data.restoreScrollPositionFrom)&&o.routeConfig.data.restoreScrollPositionFrom.length>0)}shouldStoreFor(o,c){return(o&&o.routeConfig&&o.routeConfig.data&&Array.isArray(o.routeConfig.data.restoreScrollPositionFrom)?o.routeConfig.data.restoreScrollPositionFrom:[]).includes(this.getPath(c))}getInitialActivatedRouteSnapshot(){let o=this.router.routerState.snapshot.root;for(;o.firstChild;)o=o.firstChild;return o}static#t=this.\u0275fac=function(c){return new(c||g)(l.KVO(y.Ix),l.KVO(C.Xr))};static#n=this.\u0275prov=l.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})}return g})();function K(g){return g instanceof y._d}function W(g){return g instanceof y.Z}function x(g){return g instanceof y.wF}},4814:(X,j,n)=>{n.d(j,{a:()=>m});var y=n(977),I=n(6354),D=n(4412),E=n(3294),O=n(4668),S=n(6697),M=n(4438);let m=(()=>{class A{getSortingChar$(u){return this.sorting$.pipe((0,I.T)(l=>l&&u===l.key?l.ascending?"\u2193":"\u2191":""))}constructor(){this.sortingSubject$=new D.t(null),this.sorting$=this.sortingSubject$.asObservable().pipe((0,E.F)(y.A),(0,O.t)(1))}setSorting(u){this.sortingSubject$.next(u)}toggleSorting(u){this.sorting$.pipe((0,S.s)(1)).subscribe(l=>{this.sortingSubject$.next({key:u,ascending:!l||l.key!==u||!l.ascending})})}static#t=this.\u0275fac=function(l){return new(l||A)};static#n=this.\u0275prov=M.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})()}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/765.js b/public/apps/webapp-schulverwaltung/765.js deleted file mode 100644 index 8cd21a3e..00000000 --- a/public/apps/webapp-schulverwaltung/765.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[765],{1433:(T,C,s)=>{s.d(C,{f:()=>y});var a=s(177),t=s(5539),n=s(2809),r=s(4438),e=s(4599);let y=(()=>{class M{constructor(u,l){this.settings=u,this.storageService=l,this.avatarStyles={}}ngOnChanges(u){u.studentId&&(this.avatarStyles=this.buildAvatarStyles(this.studentId))}buildAvatarStyles(u){return{"background-image":[this.buildAvatarUrl(u),this.fallbackAvatarUrl].map(l=>`url(${l})`).join(", ")}}buildAvatarUrl(u){const l=this.storageService.getAccessToken()||"";return`${this.settings.apiUrl}/Files/personPictures/${u}?token=${l}`}get fallbackAvatarUrl(){return`${this.settings.scriptsAndAssetsPath}/assets/images/avatar-placeholder.png`}static#e=this.\u0275fac=function(l){return new(l||M)(r.rXU(n.yy),r.rXU(e.n))};static#n=this.\u0275cmp=r.VBU({type:M,selectors:[["bkd-avatar"]],inputs:{studentId:"studentId",link:"link",linkParams:"linkParams"},standalone:!0,features:[r.OA$,r.aNF],decls:1,vars:5,consts:[[1,"avatar",3,"routerLink","queryParams","ngStyle"]],template:function(l,i){1&l&&r.nrm(0,"a",0),2&l&&(r.AVh("disabled",!i.link),r.Y8G("routerLink",i.link)("queryParams",i.linkParams)("ngStyle",i.avatarStyles))},dependencies:[t.Wk,a.B3],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 M})()},4589:(T,C,s)=>{s.d(C,{W:()=>M});var a=s(177),t=s(4438);function n(v,u){if(1&v&&(t.qex(0),t.EFF(1),t.nrm(2,"br"),t.bVm()),2&v){const l=t.XpG();t.R7$(),t.SpI(" ",l.student.AddressLine2,"")}}function r(v,u){if(1&v&&(t.qex(0),t.j41(1,"a",2),t.EFF(2),t.k0s(),t.nrm(3,"br"),t.bVm()),2&v){const l=t.XpG();t.R7$(),t.Mz_("href","tel:",l.student.PhonePrivate,"",t.B4B),t.R7$(),t.SpI(" ",l.student.PhonePrivate," ")}}function e(v,u){if(1&v&&(t.qex(0),t.j41(1,"a",2),t.EFF(2),t.k0s(),t.nrm(3,"br"),t.bVm()),2&v){const l=t.XpG();t.R7$(),t.Mz_("href","tel:",l.student.PhoneMobile,"",t.B4B),t.R7$(),t.SpI(" ",l.student.PhoneMobile," ")}}function y(v,u){if(1&v&&(t.j41(0,"a",2),t.EFF(1),t.k0s()),2&v){const l=t.XpG();t.Mz_("href","mailto:",l.email,"",t.B4B),t.R7$(),t.SpI(" ",l.email," ")}}let M=(()=>{class v{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(i){return new(i||v)};static#n=this.\u0275cmp=t.VBU({type:v,selectors:[["bkd-student-dossier-address"]],inputs:{student:"student",emailProperty:"emailProperty"},standalone:!0,features:[t.aNF],decls:9,vars:7,consts:[[4,"ngIf"],[3,"href",4,"ngIf"],[3,"href"]],template:function(i,f){1&i&&(t.j41(0,"address"),t.EFF(1),t.nrm(2,"br"),t.DNE(3,n,3,1,"ng-container",0),t.EFF(4),t.nrm(5,"br"),t.DNE(6,r,4,3,"ng-container",0)(7,e,4,3,"ng-container",0)(8,y,2,3,"a",1),t.k0s()),2&i&&(t.R7$(),t.SpI(" ",f.student.AddressLine1,""),t.R7$(2),t.Y8G("ngIf",f.student.AddressLine2),t.R7$(),t.Lme(" ",f.postalCode||""," ",f.student.Location,""),t.R7$(2),t.Y8G("ngIf",f.student.PhonePrivate),t.R7$(),t.Y8G("ngIf",f.student.PhoneMobile),t.R7$(),t.Y8G("ngIf",f.email))},dependencies:[a.bT],changeDetection:0})}return v})()},717:(T,C,s)=>{s.d(C,{e:()=>g});var a=s(177),t=s(3955),n=s(8676),r=s(4214),e=s(4438);function y(c,I){if(1&c&&(e.qex(0),e.EFF(1),e.nrm(2,"br"),e.bVm()),2&c){const p=e.XpG();e.R7$(),e.JRh(null==p.company.apprenticeshipManager?null:p.company.apprenticeshipManager.CompanyName)}}function M(c,I){if(1&c&&(e.qex(0),e.EFF(1),e.nrm(2,"br"),e.bVm()),2&c){const p=e.XpG();e.R7$(),e.JRh(null==p.company.apprenticeshipManager?null:p.company.apprenticeshipManager.CompanyNameAddition)}}function v(c,I){if(1&c&&(e.qex(0),e.EFF(1),e.nrm(2,"br"),e.bVm()),2&c){const p=e.XpG();e.R7$(),e.Lme(" ",(null==p.company.apprenticeshipManager?null:p.company.apprenticeshipManager.Lastname)||""," ",(null==p.company.apprenticeshipManager?null:p.company.apprenticeshipManager.Firstname)||"","")}}function u(c,I){if(1&c&&(e.qex(0),e.EFF(1),e.nrm(2,"br"),e.bVm()),2&c){const p=e.XpG();e.R7$(),e.JRh(null==p.company.apprenticeshipManager?null:p.company.apprenticeshipManager.AddressLine1)}}function l(c,I){if(1&c&&(e.qex(0),e.EFF(1),e.nrm(2,"br"),e.bVm()),2&c){const p=e.XpG();e.R7$(),e.JRh(null==p.company.apprenticeshipManager?null:p.company.apprenticeshipManager.AddressLine2)}}function i(c,I){if(1&c&&(e.qex(0),e.EFF(1),e.nrm(2,"br"),e.bVm()),2&c){const p=e.XpG();e.R7$(),e.Lme("",null==p.company.apprenticeshipManager?null:p.company.apprenticeshipManager.PostalCode," ",null==p.company.apprenticeshipManager?null:p.company.apprenticeshipManager.Location,"")}}function f(c,I){if(1&c&&(e.qex(0),e.j41(1,"a",2),e.EFF(2),e.nrm(3,"br"),e.k0s(),e.bVm()),2&c){const p=e.XpG();e.R7$(),e.Mz_("href","tel:",null==p.company.apprenticeshipManager?null:p.company.apprenticeshipManager.PhoneBusiness,"",e.B4B),e.R7$(),e.JRh(null==p.company.apprenticeshipManager?null:p.company.apprenticeshipManager.PhoneBusiness)}}function h(c,I){if(1&c&&(e.qex(0),e.j41(1,"a",2),e.nI1(2,"bkdPersonEmail"),e.EFF(3),e.nI1(4,"bkdPersonEmail"),e.k0s(),e.bVm()),2&c){const p=e.XpG();e.R7$(),e.Mz_("href","mailto:",e.bMT(2,3,p.company.apprenticeshipManager),"",e.B4B),e.R7$(2),e.JRh(e.bMT(4,5,p.company.apprenticeshipManager))}}function D(c,I){if(1&c&&(e.j41(0,"div",3),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"addSpace"),e.nrm(4,"br"),e.EFF(5),e.nI1(6,"date"),e.nI1(7,"date"),e.k0s()),2&c){const p=e.XpG();e.R7$(),e.Lme(" ",e.bMT(2,4,"shared.profile.apprenticeship-period"),"",e.i5U(3,6,":",":"),""),e.R7$(4),e.Lme(" ",e.i5U(6,9,p.company.apprenticeshipContract.ContractDateFrom,"dd.MM.yyyy"),"\u2013",e.i5U(7,12,p.company.apprenticeshipContract.ContractDateTo,"dd.MM.yyyy"),"\n")}}function _(c,I){if(1&c&&(e.qex(0),e.EFF(1),e.nrm(2,"br"),e.bVm()),2&c){const p=e.XpG(2);e.R7$(),e.Lme(" ",p.company.jobTrainer.Lastname||""," ",p.company.jobTrainer.Firstname||"","")}}function A(c,I){if(1&c&&(e.qex(0),e.j41(1,"a",2),e.EFF(2),e.nrm(3,"br"),e.k0s(),e.bVm()),2&c){const p=e.XpG(2);e.R7$(),e.Mz_("href","tel:",p.company.jobTrainer.PhoneBusiness,"",e.B4B),e.R7$(),e.JRh(p.company.jobTrainer.PhoneBusiness)}}function b(c,I){if(1&c&&(e.qex(0),e.j41(1,"a",2),e.EFF(2),e.nrm(3,"br"),e.k0s(),e.bVm()),2&c){const p=e.XpG(2);e.R7$(),e.Mz_("href","tel:",p.company.jobTrainer.PhoneMobile,"",e.B4B),e.R7$(),e.JRh(p.company.jobTrainer.PhoneMobile)}}function O(c,I){if(1&c&&(e.qex(0),e.j41(1,"a",2),e.nI1(2,"bkdPersonEmail"),e.EFF(3),e.nI1(4,"bkdPersonEmail"),e.k0s(),e.bVm()),2&c){const p=e.XpG(2);e.R7$(),e.Mz_("href","mailto:",e.bMT(2,3,p.company.jobTrainer),"",e.B4B),e.R7$(2),e.JRh(e.bMT(4,5,p.company.jobTrainer))}}function R(c,I){if(1&c&&(e.j41(0,"div",3),e.EFF(1),e.nI1(2,"translate"),e.nI1(3,"addSpace"),e.j41(4,"address"),e.DNE(5,_,3,2,"ng-container",0)(6,A,4,3,"ng-container",0)(7,b,4,3,"ng-container",0)(8,O,5,7,"ng-container",0),e.nI1(9,"bkdPersonEmail"),e.k0s()()),2&c){const p=e.XpG();e.R7$(),e.Lme(" ",e.bMT(2,6,"shared.profile.job-trainer"),"",e.i5U(3,8,":",":")," "),e.R7$(4),e.Y8G("ngIf",p.company.jobTrainer.Lastname||p.company.jobTrainer.Firstname),e.R7$(),e.Y8G("ngIf",p.company.jobTrainer.PhoneBusiness),e.R7$(),e.Y8G("ngIf",p.company.jobTrainer.PhoneMobile),e.R7$(),e.Y8G("ngIf",e.bMT(9,11,p.company.jobTrainer))}}let g=(()=>{class c{constructor(){}static#e=this.\u0275fac=function(P){return new(P||c)};static#n=this.\u0275cmp=e.VBU({type:c,selectors:[["bkd-student-dossier-apprenticeship-company"]],inputs:{company:"company"},standalone:!0,features:[e.aNF],decls:12,vars:12,consts:[[4,"ngIf"],["class","subentry",4,"ngIf"],[3,"href"],[1,"subentry"]],template:function(P,m){1&P&&(e.j41(0,"address"),e.DNE(1,y,3,1,"ng-container",0)(2,M,3,1,"ng-container",0)(3,v,3,2,"ng-container",0)(4,u,3,1,"ng-container",0)(5,l,3,1,"ng-container",0)(6,i,3,2,"ng-container",0)(7,f,4,3,"ng-container",0)(8,h,5,7,"ng-container",0),e.nI1(9,"bkdPersonEmail"),e.k0s(),e.DNE(10,D,8,15,"div",1)(11,R,10,13,"div",1)),2&P&&(e.R7$(),e.Y8G("ngIf",null==m.company.apprenticeshipManager?null:m.company.apprenticeshipManager.CompanyName),e.R7$(),e.Y8G("ngIf",null==m.company.apprenticeshipManager?null:m.company.apprenticeshipManager.CompanyNameAddition),e.R7$(),e.Y8G("ngIf",(null==m.company.apprenticeshipManager?null:m.company.apprenticeshipManager.Lastname)||(null==m.company.apprenticeshipManager?null:m.company.apprenticeshipManager.Firstname)),e.R7$(),e.Y8G("ngIf",null==m.company.apprenticeshipManager?null:m.company.apprenticeshipManager.AddressLine1),e.R7$(),e.Y8G("ngIf",null==m.company.apprenticeshipManager?null:m.company.apprenticeshipManager.AddressLine2),e.R7$(),e.Y8G("ngIf",(null==m.company.apprenticeshipManager?null:m.company.apprenticeshipManager.PostalCode)&&(null==m.company.apprenticeshipManager?null:m.company.apprenticeshipManager.Location)),e.R7$(),e.Y8G("ngIf",null==m.company.apprenticeshipManager?null:m.company.apprenticeshipManager.PhoneBusiness),e.R7$(),e.Y8G("ngIf",e.bMT(9,10,m.company.apprenticeshipManager)),e.R7$(2),e.Y8G("ngIf",m.company.apprenticeshipContract.ContractDateFrom),e.R7$(),e.Y8G("ngIf",m.company.jobTrainer))},dependencies:[a.bT,a.vh,t.h,t.D9,n.c,r.u],styles:[".subentry[_ngcontent-%COMP%]{padding-bottom:1rem}"],changeDetection:0})}return c})()},6194:(T,C,s)=>{s.d(C,{O:()=>l});var a=s(177),t=s(4214),n=s(4438);function r(i,f){if(1&i&&(n.qex(0),n.EFF(1),n.nrm(2,"br"),n.bVm()),2&i){const h=n.XpG();n.R7$(),n.JRh(h.person.AddressLine1)}}function e(i,f){if(1&i&&(n.qex(0),n.EFF(1),n.nrm(2,"br"),n.bVm()),2&i){const h=n.XpG();n.R7$(),n.JRh(h.person.AddressLine2)}}function y(i,f){if(1&i&&(n.qex(0),n.EFF(1),n.nrm(2,"br"),n.bVm()),2&i){const h=n.XpG();n.R7$(),n.Lme("",h.person.Zip," ",h.person.Location,"")}}function M(i,f){if(1&i&&(n.qex(0),n.j41(1,"a",1),n.EFF(2),n.nrm(3,"br"),n.k0s(),n.bVm()),2&i){const h=n.XpG();n.R7$(),n.Mz_("href","tel:",h.person.PhonePrivate,"",n.B4B),n.R7$(),n.JRh(h.person.PhonePrivate)}}function v(i,f){if(1&i&&(n.qex(0),n.j41(1,"a",1),n.EFF(2),n.nrm(3,"br"),n.k0s(),n.bVm()),2&i){const h=n.XpG();n.R7$(),n.Mz_("href","tel:",h.person.PhoneMobile,"",n.B4B),n.R7$(),n.JRh(h.person.PhoneMobile)}}function u(i,f){if(1&i&&(n.qex(0),n.j41(1,"a",1),n.nI1(2,"bkdPersonEmail"),n.EFF(3),n.nI1(4,"bkdPersonEmail"),n.k0s(),n.bVm()),2&i){const h=n.XpG();n.R7$(),n.Mz_("href","mailto:",n.bMT(2,3,h.person),"",n.B4B),n.R7$(2),n.JRh(n.bMT(4,5,h.person))}}let l=(()=>{class i{constructor(){}static#e=this.\u0275fac=function(D){return new(D||i)};static#n=this.\u0275cmp=n.VBU({type:i,selectors:[["bkd-student-dossier-legal-representative"]],inputs:{person:"person"},standalone:!0,features:[n.aNF],decls:10,vars:10,consts:[[4,"ngIf"],[3,"href"]],template:function(D,_){1&D&&(n.j41(0,"address"),n.EFF(1),n.nrm(2,"br"),n.DNE(3,r,3,1,"ng-container",0)(4,e,3,1,"ng-container",0)(5,y,3,2,"ng-container",0)(6,M,4,3,"ng-container",0)(7,v,4,3,"ng-container",0)(8,u,5,7,"ng-container",0),n.nI1(9,"bkdPersonEmail"),n.k0s()),2&D&&(n.R7$(),n.Lme(" ",_.person.LastName," ",_.person.FirstName,""),n.R7$(2),n.Y8G("ngIf",_.person.AddressLine1),n.R7$(),n.Y8G("ngIf",_.person.AddressLine2),n.R7$(),n.Y8G("ngIf",_.person.Zip&&_.person.Zip),n.R7$(),n.Y8G("ngIf",_.person.PhonePrivate),n.R7$(),n.Y8G("ngIf",_.person.PhoneMobile),n.R7$(),n.Y8G("ngIf",n.bMT(9,8,_.person)))},dependencies:[a.bT,t.u],changeDetection:0})}return i})()},6611:(T,C,s)=>{s.d(C,{a:()=>M});var a=s(5783),t=s(5306);const n=a.NW({Id:a.ai}),r=a.OH({HRef:(0,t.c$)(a.Yj)}),e=a.OH({From:t.iC,To:t.iC,EventNumber:a.Yj,EventDesignation:a.Yj,Designation:(0,t.c$)(a.Yj)}),y=a.E$([n,r,e]),M=a.NW({Id:a.Yj,LessonRef:y,StudentRef:t.Or,TypeRef:t.Or,Type:(0,t.c$)(a.Yj),ConfirmationState:(0,t.c$)(a.Yj),ConfirmationStateId:a.ai,Comment:(0,t.c$)(a.Yj),StudentFullName:a.Yj,RegistrationId:a.ai,HRef:a.Yj})},8676:(T,C,s)=>{s.d(C,{c:()=>n});var a=s(4438),t=s(3422);let n=(()=>{class r{constructor(y){this.i18n=y}transform(y,M){return"fr-CH"===this.i18n.detectLanguage()?(Array.from(M).map(u=>y=y.replace(u," ".concat(u))),y):y}static#e=this.\u0275fac=function(M){return new(M||r)(a.rXU(t.W,16))};static#n=this.\u0275pipe=a.EJ8({name:"addSpace",type:r,pure:!0,standalone:!0})}return r})()},4214:(T,C,s)=>{s.d(C,{u:()=>t});var a=s(4438);let t=(()=>{class n{transform(e){return e?.DisplayEmail||e?.Email||e?.Email2||null}static#e=this.\u0275fac=function(y){return new(y||n)};static#n=this.\u0275pipe=a.EJ8({name:"bkdPersonEmail",type:n,pure:!0,standalone:!0})}return n})()},8296:(T,C,s)=>{s.d(C,{v:()=>v});var a=s(5558),t=s(4668),n=s(2809),r=s(5666),e=s(785),y=s(4438),M=s(1626);let v=(()=>{class u{constructor(i,f){this.http=i,this.settings=f}getAbsenceConfirmationStates(){return this.http.get(`${this.baseUrl}/AbsenceConfirmationStates`).pipe((0,a.n)((0,e.k$)(r.H)),(0,t.t)(1))}getStayPermits(){return this.http.get(`${this.baseUrl}/StayPermits`).pipe((0,a.n)((0,e.k$)(r.H)),(0,t.t)(1))}get baseUrl(){return`${this.settings.apiUrl}/DropDownItems`}static#e=this.\u0275fac=function(f){return new(f||u)(y.KVO(M.Qq),y.KVO(n.yy))};static#n=this.\u0275prov=y.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})()},4688:(T,C,s)=>{s.d(C,{a:()=>f});var a=s(5783),t=s(5558),n=s(6354),r=s(2809),e=s(5306);const y=a.NW({Id:a.ai,FormOfAddress:a.Yj,Nationality:(0,e.c$)(a.Yj),AddressLine1:(0,e.c$)(a.Yj),AddressLine2:(0,e.c$)(a.Yj),BillingAddress:(0,e.c$)(a.Yj),Birthdate:(0,e.c$)(e.iC),CorrespondenceAddress:(0,e.c$)(a.Yj),DisplayEmail:(0,e.c$)(a.Yj),Email:(0,e.bW)(a.Yj),Email2:(0,e.bW)(a.Yj),FirstName:(0,e.c$)(a.Yj),Gender:(0,e.c$)(a.KC([a.eu("M"),a.eu("F"),a.eu("X")])),HomeTown:(0,e.c$)(a.Yj),LastName:(0,e.c$)(a.Yj),FullName:(0,e.c$)(a.Yj),Location:(0,e.c$)(a.Yj),MiddleName:(0,e.c$)(a.Yj),NativeLanguage:(0,e.c$)(a.Yj),PhoneMobile:(0,e.c$)(a.Yj),PhonePrivate:(0,e.c$)(a.Yj),PhoneBusiness:(0,e.bW)(a.Yj),SocialSecurityNumber:(0,e.c$)(a.Yj),StayPermit:(0,e.c$)(a.ai),StayPermitExpiry:(0,e.c$)(e.iC),Zip:(0,e.c$)(a.Yj)});var M=s(785),v=s(5437),u=s(6952),l=s(4438),i=s(1626);let f=(()=>{class h extends u.G{constructor(_,A){super(_,A,y,"Persons"),this.personEmailCodec=a.NW((0,v.U)(this.codec.props,["Email","FormOfAddress"]))}getListForIds(_){return this.getList({params:{"filter.Id":`;${_.join(";")}`}})}getMyself(_){return this.http.get(`${this.baseUrl}/me`,_).pipe((0,t.n)((0,M.D4)(this.codec)))}getByIdWithEmailInfos(_){return this.http.get(`${this.baseUrl}/`,{params:{"filter.Id=":_.toString(),fields:["FormOfAddress","Email"].join(",")}}).pipe((0,t.n)((0,M.k$)(this.personEmailCodec)),(0,n.T)(A=>A[0]))}update(_,A,b,O){return this.http.put(`${this.baseUrl}/${_}`,{PhonePrivate:A,PhoneMobile:b,Email2:O}).pipe((0,n.T)(()=>{}))}static#e=this.\u0275fac=function(A){return new(A||h)(l.KVO(i.Qq),l.KVO(r.yy))};static#n=this.\u0275prov=l.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})()},4561:(T,C,s)=>{s.d(C,{m:()=>X});var a=s(1626),t=s(4572),n=s(7673),r=s(5558),e=s(5964),y=s(6354),M=s(3382),v=s(172),u=s(1803),l=s(9728),i=s(4273);function f($,Y){const o=(0,i.a)($),d=(0,i.a)(Y),E=o.getTime()-d.getTime();return E<0?-1:E>0?1:E}var g=s(4438),c=s(2949),I=s(4688),p=s(2809),P=s(5783),m=s(5306);const x=P.NW({Email:(0,m.c$)(P.Yj),Email2:(0,m.c$)(P.Yj),PhoneBusiness:(0,m.c$)(P.Yj),CompanyName:(0,m.bW)(P.Yj),CompanyNameAddition:(0,m.bW)(P.Yj),Firstname:(0,m.c$)(P.Yj),Lastname:(0,m.c$)(P.Yj),AddressLine1:(0,m.bW)(P.Yj),AddressLine2:(0,m.bW)(P.Yj),PostalCode:(0,m.c$)(P.Yj),Location:(0,m.c$)(P.Yj),Id:P.ai});var U=s(6952);let W=(()=>{class $ extends U.G{constructor(o,d){super(o,d,x,"ApprenticeshipManagers")}static#e=this.\u0275fac=function(d){return new(d||$)(g.KVO(a.Qq),g.KVO(p.yy))};static#n=this.\u0275prov=g.jDH({token:$,factory:$.\u0275fac,providedIn:"root"})}return $})();const G=P.NW({Email:(0,m.c$)(P.Yj),Email2:(0,m.c$)(P.Yj),PhoneBusiness:(0,m.c$)(P.Yj),PhoneMobile:(0,m.c$)(P.Yj),Firstname:(0,m.c$)(P.Yj),Lastname:(0,m.c$)(P.Yj),Id:P.ai});let K=(()=>{class $ extends U.G{constructor(o,d){super(o,d,G,"JobTrainers")}static#e=this.\u0275fac=function(d){return new(d||$)(g.KVO(a.Qq),g.KVO(p.yy))};static#n=this.\u0275prov=g.jDH({token:$,factory:$.\u0275fac,providedIn:"root"})}return $})();var V=s(2673),N=s(8296);let X=(()=>{class ${constructor(o,d,E,L,F,j){this.studentService=o,this.personsService=d,this.apprenticeshipManagersService=E,this.jobTrainersService=L,this.loadingService=F,this.dropDownItemsService=j,this.loading$=this.loadingService.loading$}getProfile(o){return this.loadingService.load((0,t.z)([this.loadStudent(o),this.loadLegalRepresentatives(o),this.loadApprenticeshipContracts(o)]).pipe((0,r.n)((0,M.i)(this.mapToProfile.bind(this)))))}getMyProfile(){return this.loadingService.load(this.personsService.getMyself({context:(new a._y).set(u.Q,{disableErrorHandlingForStatus:[403]})}).pipe((0,r.n)(o=>(0,t.z)([(0,n.of)(o),this.loadLegalRepresentatives(o.Id),this.loadApprenticeshipContracts(o.Id),this.loadStayPermitValue(o.StayPermit)]))).pipe((0,r.n)((0,M.i)(this.mapToProfile.bind(this))),(0,e.p)(l.TM)))}loadStudent(o){return this.studentService.get(o,{context:(new a._y).set(u.Q,{disableErrorHandlingForStatus:[404]})}).pipe((0,v.Sq)())}loadLegalRepresentatives(o){return this.studentService.getLegalRepresentatives(o)}loadApprenticeshipContracts(o){return this.studentService.getCurrentApprenticeshipContracts(o,{context:(new a._y).set(u.Q,{disableErrorHandlingForStatus:[404]})}).pipe((0,v.Sq)([]))}loadStayPermitValue(o){return this.dropDownItemsService.getStayPermits().pipe((0,y.T)(d=>d.find(E=>E.Key===o)?.Value||null))}mapToProfile(o,d,E,L=null){return o?(d=this.getRelevantLegalRepresentatives(o,d),(0,t.z)([this.loadLegalRepresentativPersons(d),this.loadJobTrainers(E),this.loadApprenticeshipManagers(E)]).pipe((0,y.T)(([F,j,S])=>this.createProfile(o,L,d,F,E,S,j)))):(0,n.of)(null)}loadLegalRepresentativPersons(o){return 0===o.length?(0,n.of)([]):this.personsService.getListForIds(o.map(d=>d.RepresentativeId))}loadJobTrainers(o){const d=o.map(E=>E.JobTrainer).filter(E=>"number"==typeof E);return 0===d.length?(0,n.of)([]):(0,t.z)(d.map(E=>this.jobTrainersService.get(E)))}loadApprenticeshipManagers(o){const d=o.map(E=>E.ApprenticeshipManagerId);return 0===d.length?(0,n.of)([]):(0,t.z)(d.map(E=>this.apprenticeshipManagersService.get(E)))}createProfile(o,d,E,L,F,j,S){return{student:o,stayPermitValue:d||void 0,legalRepresentativePersons:E.map(B=>this.findPerson(B.RepresentativeId,L)).filter(l.TM),apprenticeshipCompanies:F.map(B=>this.createApprenticeshipCompany(B,j,S))}}getRelevantLegalRepresentatives(o,d){const E=function R($){return function A($,Y){const o=(0,i.a)($),d=(0,i.a)(Y),E=f(o,d),L=Math.abs(function D($,Y){const o=(0,i.a)($),d=(0,i.a)(Y);return o.getFullYear()-d.getFullYear()}(o,d));o.setFullYear(1584),d.setFullYear(1584);const j=E*(L-+(f(o,d)===-E));return 0===j?0:j}(new Date,$.Birthdate||new Date)>=18}(o);return d.filter(L=>!E||L.RepresentativeAfterMajority)}createApprenticeshipCompany(o,d,E){return{apprenticeshipContract:o,jobTrainer:this.findPerson(o.JobTrainer,E),apprenticeshipManager:this.findPerson(o.ApprenticeshipManagerId,d)}}findPerson(o,d){return o&&d.find(E=>E.Id===o)||null}static#e=this.\u0275fac=function(d){return new(d||$)(g.KVO(c.y),g.KVO(I.a),g.KVO(W),g.KVO(K),g.KVO(V.U),g.KVO(N.v))};static#n=this.\u0275prov=g.jDH({token:$,factory:$.\u0275fac,providedIn:"root"})}return $})()},2949:(T,C,s)=>{s.d(C,{y:()=>A});var a=s(1626),t=s(5558),n=s(2809),r=s(5783),e=s(5306);const y=r.NW({Id:r.ai,JobTrainer:(0,e.c$)(r.ai),ApprenticeshipManagerId:r.ai,ContractDateFrom:(0,e.c$)(e.iC),ContractDateTo:(0,e.c$)(e.iC)}),M=r.NW({Id:r.ai,RepresentativeId:r.ai,RepresentativeAfterMajority:r.zM});var v=s(6611);const u=r.NW({Id:r.Yj,LessonRef:e.Or,StudentRef:e.Or,TypeRef:e.Or,Type:(0,e.c$)(r.Yj),Comment:(0,e.c$)(r.Yj),StudentFullName:r.Yj,HRef:r.Yj}),l=r.NW({LessonRef:e.Or,StudentRef:e.Or,TypeRef:e.Or,Comment:(0,e.c$)(r.Yj),StudentFullName:r.Yj,Type:(0,e.c$)(r.Yj),RegistrationId:r.ai,HRef:r.Yj});var i=s(9573);const f=r.NW({Id:r.ai,From:e.iC,To:e.iC,EventId:r.ai,EventNumber:r.Yj,EventDesignation:r.Yj,EventLocation:(0,e.c$)(r.Yj),EventManagerInformation:(0,e.c$)(r.Yj)});var h=s(785),D=s(3220),_=s(4438);let A=(()=>{class b extends D.X{constructor(R,g){super(R,g,i.o,"Students","FullName")}getLegalRepresentatives(R,g){return this.http.get(`${this.baseUrl}/${R}/LegalRepresentatives`,{params:g}).pipe((0,t.n)((0,h.k$)(M)))}getCurrentApprenticeshipContracts(R,g){return this.http.get(`${this.baseUrl}/${R}/ApprenticeshipContracts/Current`,g).pipe((0,t.n)((0,h.k$)(y)))}getLessonAbsences(R,g){return this.http.get(`${this.baseUrl}/${R}/LessonAbsences`,{params:g}).pipe((0,t.n)((0,h.k$)(v.a)))}getLessonIncidents(R,g){return this.http.get(`${this.baseUrl}/${R}/LessonIncidents`,{params:g}).pipe((0,t.n)((0,h.k$)(l)))}getLessonDispensations(R,g){return this.http.get(`${this.baseUrl}/${R}/LessonDispensations`,{params:g}).pipe((0,t.n)((0,h.k$)(u)))}getTimetableEntries(R,g={}){return g instanceof a.Nl||(g=new a.Nl({fromObject:g})),g=g.set("fields","Id,From,To,EventId,EventNumber,EventDesignation,EventLocation,EventManagerInformation"),this.http.get(`${this.baseUrl}/${R}/TimetableEntries/CurrentSemester`,{params:g}).pipe((0,t.n)((0,h.k$)(f)))}static#e=this.\u0275fac=function(g){return new(g||b)(_.KVO(a.Qq),_.KVO(n.yy))};static#n=this.\u0275prov=_.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})()},3220:(T,C,s)=>{s.d(C,{X:()=>v});var a=s(5783),t=s(5558),n=s(6354),r=s(785),e=s(5437),y=s(6952);class v extends y.G{constructor(l,i,f,h,D,_="Id"){super(l,i,f,h),this.labelAttr=D,this.keyAttr=_,this.typeaheadCodec=a.NW((0,e.U)(this.codec.props,[this.keyAttr,this.labelAttr]))}getTypeaheadItems(l,i){const f={params:{fields:[this.keyAttr,this.labelAttr].join(","),[`filter.${this.labelAttr}`]:`~*${l}*`}};return this.http.get(`${this.baseUrl}/`,i?this.mergeHttpParams(f,i):f).pipe((0,t.n)((0,r.k$)(this.typeaheadCodec)),(0,n.T)(h=>h.map(D=>({Key:D[this.keyAttr],Value:D[this.labelAttr]}))))}getTypeaheadItemByKey(l){return this.http.get(`${this.baseUrl}/${l}`,{params:{fields:[this.keyAttr,this.labelAttr].join(",")}}).pipe((0,t.n)((0,r.D4)(this.typeaheadCodec)),(0,n.T)(i=>({Key:i[this.keyAttr],Value:i[this.labelAttr]})))}mergeHttpParams(l,i){const f={params:{...l.params,...i.params}};return i.params.fields&&(f.params.fields=l.params.fields.concat(",",i.params.fields)),f}}}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/769.js b/public/apps/webapp-schulverwaltung/769.js deleted file mode 100644 index 7baabd4c..00000000 --- a/public/apps/webapp-schulverwaltung/769.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[769],{4150:(ue,g,i)=>{i.r(g),i.d(g,{EVALUATE_ABSENCES_ROUTES:()=>ce});var h=i(6407),c=i(177),_=i(5539),y=i(1324),u=i(3955),v=i(6820),E=i(6354),C=i(6697),m=i(5558),I=i(4668),T=i(8667),k=i(1517),F=i(7887),e=i(4438),R=i(1861),S=i(2949),$=i(2612),A=i(9483);let G=(()=>{class t{constructor(n,s,a){this.studentsService=n,this.educationalEventsService=s,this.studyClassesService=a,this.filter={student:null,educationalEvent:null,studyClass:null},this.filterChange=new e.bkB,this.classesHttpFilter={params:{fields:"IsActive","filter.IsActive":"=true"}}}show(){this.filterChange.emit(this.filter)}static#e=this.\u0275fac=function(s){return new(s||t)(e.rXU(S.y),e.rXU($.e),e.rXU(A.r))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["bkd-evaluate-absences-header"]],inputs:{filter:"filter"},outputs:{filterChange:"filterChange"},standalone:!0,features:[e.aNF],decls:20,vars:19,consts:[[1,"row","g-3","align-items-end"],[1,"col-sm-12","col-md"],[1,"form-label"],[3,"valueChange","typeaheadService","value"],[3,"valueChange","typeaheadService","value","additionalHttpParams"],[1,"col-auto"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(s,a){1&s&&(e.j41(0,"div",0)(1,"div",1)(2,"label",2),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"bkd-typeahead",3),e.mxI("valueChange",function(o){return e.DH7(a.filter.student,o)||(a.filter.student=o),o}),e.k0s()(),e.j41(6,"div",1)(7,"label",2),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"bkd-typeahead",3),e.mxI("valueChange",function(o){return e.DH7(a.filter.educationalEvent,o)||(a.filter.educationalEvent=o),o}),e.k0s()(),e.j41(11,"div",1)(12,"label",2),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"bkd-typeahead",4),e.mxI("valueChange",function(o){return e.DH7(a.filter.studyClass,o)||(a.filter.studyClass=o),o}),e.k0s()(),e.j41(16,"div",5)(17,"button",6),e.bIt("click",function(){return a.show()}),e.EFF(18),e.nI1(19,"translate"),e.k0s()()()),2&s&&(e.R7$(3),e.JRh(e.bMT(4,11,"evaluate-absences.header.student")),e.R7$(2),e.Y8G("typeaheadService",a.studentsService),e.R50("value",a.filter.student),e.R7$(3),e.JRh(e.bMT(9,13,"evaluate-absences.header.module-instance")),e.R7$(2),e.Y8G("typeaheadService",a.educationalEventsService),e.R50("value",a.filter.educationalEvent),e.R7$(3),e.JRh(e.bMT(14,15,"evaluate-absences.header.study-class")),e.R7$(2),e.Y8G("typeaheadService",a.studyClassesService),e.R50("value",a.filter.studyClass),e.Y8G("additionalHttpParams",a.classesHttpFilter),e.R7$(3),e.SpI(" ",e.bMT(19,17,"evaluate-absences.header.show")," "))},dependencies:[R.V,u.h,u.D9],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:1rem 1rem 1rem 0;border-bottom:1px solid #dee2e6}"],changeDetection:0})}return t})();var P=i(6977),L=i(2809),b=i(2915),x=i(1369),j=i(2673),f=i(9067),M=i(4814);let d=(()=>{class t extends b.z{constructor(n,s,a,r,o){super(n,s,o,a,"/evaluate-absences"),this.lessonPresenceService=r,this.queryParamsString$.pipe((0,P.Q)(this.destroy$)).subscribe(p=>this.confirmBackLinkParams={returnparams:p})}updateAfterConfirm(){this.resetEntries()}getInitialFilter(){return{student:null,educationalEvent:null,studyClass:null}}isValidFilter(n){return!!(n.student||n.educationalEvent||n.studyClass)}getInitialSorting(){return{key:"StudentFullName",ascending:!0}}loadEntries(n,s,a){return this.loadingService.load(this.lessonPresenceService.getStatistics(n,s,a),b.b)}buildParamsFromFilter(n){return(0,x.G)(n)}static#e=this.\u0275fac=function(s){return new(s||t)(e.KVO(c.aZ),e.KVO(j.U),e.KVO(L.yy),e.KVO(f.g),e.KVO(M.a))};static#t=this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac})}return t})();var N=i(1769),X=i(8413),D=i(5507);const V=(t,l,n)=>({entries:t,hasMore:l,loadingPage:n}),U=()=>[],Y=t=>["student",t,"absences"],O=t=>({returnparams:t});function H(t,l){if(1&t){const n=e.RV6();e.j41(0,"th",16),e.bIt("click",function(){const a=e.eBV(n).$implicit,r=e.XpG(5);return e.Njj(r.state.sortService.toggleSorting(a.key))}),e.j41(1,"div",17)(2,"div",18),e.nI1(3,"translate"),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"div",19),e.EFF(7),e.nI1(8,"async"),e.k0s()()()}if(2&t){const n=l.$implicit,s=e.XpG(5);e.Y8G("ngClass",n.label),e.R7$(2),e.Y8G("ngbTooltip",e.bMT(3,4,"evaluate-absences.list.header."+n.label)),e.R7$(2),e.SpI(" ",e.bMT(5,6,"evaluate-absences.list.header."+n.label)," "),e.R7$(3),e.SpI(" ",e.bMT(8,8,s.state.sortService.getSortingChar$(n.key))," ")}}function B(t,l){if(1&t&&(e.j41(0,"a",22),e.nI1(1,"async"),e.EFF(2),e.k0s()),2&t){const n=e.XpG().$implicit,s=e.XpG().$implicit,a=e.XpG(6);e.Y8G("routerLink",e.eq3(5,Y,s.StudentRef.Id))("queryParams",e.eq3(7,O,e.bMT(1,3,a.profileReturnParams$))),e.R7$(2),e.SpI(" ",s[n.key]," ")}}function J(t,l){if(1&t&&e.EFF(0),2&t){const n=e.XpG().$implicit,s=e.XpG().$implicit;e.SpI(" ",s[n.key]," ")}}function K(t,l){if(1&t&&(e.j41(0,"td"),e.nI1(1,"translate"),e.DNE(2,B,3,9,"a",21)(3,J,1,1,"ng-template",null,3,e.C5r),e.k0s()),2&t){const n=l.$implicit,s=e.sdS(4);e.BMQ("data-label",e.bMT(1,3,"evaluate-absences.list.header."+n.label)),e.R7$(2),e.Y8G("ngIf","StudentFullName"===n.key)("ngIfElse",s)}}function W(t,l){if(1&t&&(e.j41(0,"tr"),e.DNE(1,K,5,5,"td",20),e.k0s()),2&t){const n=e.XpG(6);e.R7$(),e.Y8G("ngForOf",n.columns)}}function Q(t,l){if(1&t&&(e.j41(0,"tbody"),e.DNE(1,W,2,1,"tr",20),e.k0s()),2&t){const n=e.XpG(4).bkdLet;e.R7$(),e.Y8G("ngForOf",n.entries)}}function Z(t,l){1&t&&e.nrm(0,"bkd-spinner",23)}function z(t,l){if(1&t){const n=e.RV6();e.j41(0,"button",24),e.bIt("click",function(){e.eBV(n);const a=e.XpG(5);return e.Njj(a.state.nextPage())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"global.pagination.load-more")," "))}function w(t,l){if(1&t){const n=e.RV6();e.j41(0,"div",8)(1,"div",9),e.nrm(2,"bkd-reports-link",10),e.nI1(3,"async"),e.k0s(),e.j41(4,"table",11),e.bIt("scrolled",function(){e.eBV(n);const a=e.XpG(4);return e.Njj(a.onScroll())}),e.j41(5,"thead")(6,"tr"),e.DNE(7,H,9,10,"th",12),e.k0s()(),e.DNE(8,Q,2,1,"tbody",13),e.k0s(),e.DNE(9,Z,1,0,"bkd-spinner",14)(10,z,3,3,"button",15),e.k0s()}if(2&t){let n;const s=e.XpG(3).bkdLet,a=e.XpG();e.R7$(2),e.Y8G("reports",null!==(n=e.bMT(3,5,a.reports$))&&void 0!==n?n:e.lJ4(7,U)),e.R7$(5),e.Y8G("ngForOf",a.columns),e.R7$(),e.Y8G("ngIf",s.entries&&s.entries.length>0),e.R7$(),e.Y8G("ngIf",s.loadingPage),e.R7$(),e.Y8G("ngIf",s.hasMore&&!s.loadingPage)}}function q(t,l){1&t&&(e.j41(0,"p",25),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"evaluate-absences.no-entries")," "))}function ee(t,l){if(1&t&&(e.qex(0),e.DNE(1,w,11,8,"div",7)(2,q,3,3,"ng-template",null,2,e.C5r),e.bVm()),2&t){const n=e.sdS(3),s=e.XpG(2).bkdLet;e.R7$(),e.Y8G("ngIf",s.entries&&s.entries.length>0||s.loadingPage)("ngIfElse",n)}}function te(t,l){1&t&&e.nrm(0,"bkd-spinner")}function ne(t,l){if(1&t&&(e.qex(0),e.DNE(1,ee,4,2,"ng-container",6),e.nI1(2,"async"),e.DNE(3,te,1,0,"ng-template",null,1,e.C5r),e.bVm()),2&t){const n=e.sdS(4),s=e.XpG(2);e.R7$(),e.Y8G("ngIf",!1===e.bMT(2,2,s.state.loading$))("ngIfElse",n)}}function se(t,l){1&t&&(e.j41(0,"p",25),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"evaluate-absences.no-filter")))}function ae(t,l){if(1&t){const n=e.RV6();e.qex(0),e.j41(1,"bkd-evaluate-absences-header",5),e.nI1(2,"async"),e.bIt("filterChange",function(a){e.eBV(n);const r=e.XpG();return e.Njj(r.state.setFilter(a))}),e.k0s(),e.DNE(3,ne,5,4,"ng-container",6),e.nI1(4,"async"),e.DNE(5,se,3,3,"ng-template",null,0,e.C5r),e.bVm()}if(2&t){const n=e.sdS(6),s=e.XpG();e.R7$(),e.Y8G("filter",e.bMT(2,3,s.filterFromParams$)),e.R7$(2),e.Y8G("ngIf",e.bMT(4,5,s.state.isFilterValid$))("ngIfElse",n)}}let ie=(()=>{class t{constructor(n,s,a,r,o,p){this.state=n,this.scrollPosition=s,this.route=a,this.presenceTypesService=r,this.reportsService=o,this.lessonPresencesService=p,this.reports$=this.loadReports(),this.columns=[{key:"StudentFullName",label:"student"},{key:"TotalAbsences",label:"total"},{key:"TotalAbsencesValidExcuse",label:"valid-excuse"},{key:"TotalAbsencesWithoutExcuse",label:"without-excuse"},{key:"TotalAbsencesUnconfirmed",label:"unconfirmed"},{key:"TotalAbsencesUnchecked",label:"unchecked"},{key:"TotalIncidents",label:"incident"}],this.filterFromParams$=this.route.queryParams.pipe((0,E.T)(le)),this.profileReturnParams$=this.state.queryParamsString$}ngOnInit(){this.filterFromParams$.pipe((0,C.s)(1)).subscribe(n=>this.state.setFilter(n)),this.presenceTypesService.halfDayActive$.subscribe(n=>{n&&(this.columns=[...this.columns,{key:"TotalHalfDays",label:"halfday"}])})}ngAfterViewInit(){this.scrollPosition.restore()}onScroll(){this.state.nextPage()}loadReports(){return this.state.validFilter$.pipe((0,m.n)(n=>this.lessonPresencesService.getLessonRefs(n)),(0,m.n)(n=>n.length>0?this.reportsService.getEvaluateAbsencesReports(this.getReportRecordIds(n)):[]),(0,I.t)(1))}getReportRecordIds(n){return n.map(s=>`${s.LessonRef.Id}_${s.RegistrationRef.Id}`)}static#e=this.\u0275fac=function(s){return new(s||t)(e.rXU(d),e.rXU(N.W),e.rXU(_.nX),e.rXU(X._),e.rXU(D.P),e.rXU(f.g))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["bkd-evaluate-absences-list"]],standalone:!0,features:[e.aNF],decls:7,vars:14,consts:[["noFilter",""],["loading",""],["noEntries",""],["noLink",""],[4,"bkdLet"],[3,"filterChange","filter"],[4,"ngIf","ngIfElse"],["class","py-3",4,"ngIf","ngIfElse"],[1,"py-3"],[1,"buttons"],[1,"mb-2",3,"reports"],["infiniteScroll","",1,"table","table-striped","table-fixed",3,"scrolled"],["scope","col",3,"ngClass","click",4,"ngFor","ngForOf"],[4,"ngIf"],["class","inline",4,"ngIf"],["type","button","class","btn btn-outline-secondary btn-sm d-block mx-auto",3,"click",4,"ngIf"],["scope","col",3,"click","ngClass"],[1,"d-flex"],[1,"column-title",3,"ngbTooltip"],[1,"sort-direction"],[4,"ngFor","ngForOf"],["class","student",3,"routerLink","queryParams",4,"ngIf","ngIfElse"],[1,"student",3,"routerLink","queryParams"],[1,"inline"],["type","button",1,"btn","btn-outline-secondary","btn-sm","d-block","mx-auto",3,"click"],[1,"mt-3"]],template:function(s,a){1&s&&(e.j41(0,"h1"),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.DNE(3,ae,7,7,"ng-container",4),e.nI1(4,"async"),e.nI1(5,"async"),e.nI1(6,"async")),2&s&&(e.R7$(),e.JRh(e.bMT(2,2,"evaluate-absences.title")),e.R7$(2),e.Y8G("bkdLet",e.sMw(10,V,e.bMT(4,4,a.state.entries$),e.bMT(5,6,a.state.hasMore$),e.bMT(6,8,a.state.loadingPage$))))},dependencies:[F.N,G,c.bT,T.Z,v.eO,v.DP,c.pM,c.YU,y.md,_.Wk,k.t,c.Jj,u.h,u.D9],styles:["th[_ngcontent-%COMP%]{cursor:pointer}th.student[_ngcontent-%COMP%]{width:30%}.column-title[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"],changeDetection:0})}return t})();function le(t){return{student:t.student?Number(t.student):null,educationalEvent:t.educationalEvent?Number(t.educationalEvent):null,studyClass:t.studyClass?Number(t.studyClass):null}}var oe=i(9366),re=i(1876);const ce=[{path:"",component:(()=>{class t{constructor(n){this.state=n}static#e=this.\u0275fac=function(s){return new(s||t)(e.rXU(d))};static#t=this.\u0275cmp=e.VBU({type:t,selectors:[["bkd-evaluate-absences"]],standalone:!0,features:[e.Jv_([d,{provide:re.G,useExisting:d},oe.s]),e.aNF],decls:1,vars:0,template:function(s,a){1&s&&e.nrm(0,"router-outlet")},dependencies:[_.n3],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return t})(),children:[{path:"",component:ie,data:{restoreScrollPositionFrom:["/evaluate-absences/student/:id"]}},h.R]}]}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/778.js b/public/apps/webapp-schulverwaltung/778.js deleted file mode 100644 index 856332d6..00000000 --- a/public/apps/webapp-schulverwaltung/778.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[778],{1419:(O,M,o)=>{o.r(M),o.d(M,{MY_ABSENCES_ROUTES:()=>Sn});var l=o(177),d=o(9417),f=o(3955),m=o(3460),b=o(5529),p=o(6354),I=o(2809),A=o(7887),h=o(8676),y=o(4412),u=o(4572),_=o(7673),$=o(1413),g=o(6697),R=o(5964),S=o(5558),D=o(980),re=o(5421),T=o(8156),e=o(4438),L=o(5539),B=o(5889),Y=o(8413),V=o(9946),N=o(4599);let Z=(()=>{class t{constructor(n,s,i,r,c,C,v,k){this.fb=n,this.router=s,this.toastService=i,this.translate=r,this.presenceTypesService=c,this.updateService=C,this.storageService=v,this.settings=k,this.formGroup=this.createFormGroup(),this.saving$=new y.t(!1),this.submitted$=new y.t(!1),this.absenceTypes$=(0,u.z)([this.getConfirmationTypes(),this.getHalfDayType()]).pipe((0,p.T)(([P,G])=>G?[...P,G]:P)),this.absenceTypeIdErrors$=(0,T.v)((0,_.of)(this.formGroup),this.submitted$,"absenceTypeId"),this.destroy$=new $.B}ngOnInit(){this.selectedLessonIds$.pipe((0,g.s)(1),(0,R.p)(re.VP)).subscribe(()=>this.navigateBack())}ngOnDestroy(){this.destroy$.next()}onSubmit(){if(this.submitted$.next(!0),this.formGroup.valid){const{absenceTypeId:n}=this.formGroup.value;this.save(n)}}cancel(){this.navigateBack()}getSelectedCount(){return this.selectedLessonIds$.pipe((0,p.T)(n=>n.length))}getConfirmationTypes(){return this.presenceTypesService.confirmationTypes$.pipe((0,p.T)(n=>n.filter(s=>s.IsAbsence&&s.Id!==this.settings.halfDayPresenceTypeId)))}getHalfDayType(){return(0,_.of)(null)}createFormGroup(){return this.fb.group({absenceTypeId:[null,d.k0.required]})}save(n){this.saving$.next(!0),this.selectedLessonIds$.pipe((0,g.s)(1),(0,S.n)(s=>this.updateService.editLessonPresences(s,[Number(this.storageService.getPayload()?.id_person)],n)),(0,D.j)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.toastService.success(this.translate.instant("my-absences.confirm.save-success")),this.navigateBack()}static#e=this.\u0275fac=function(s){return new(s||t)(e.rXU(d.ze),e.rXU(L.Ix),e.rXU(B.f),e.rXU(f.c$),e.rXU(Y._),e.rXU(V.T),e.rXU(N.n),e.rXU(I.wB))};static#n=this.\u0275cmp=e.VBU({type:t,selectors:[["ng-component"]],decls:0,vars:0,template:function(s,i){},encapsulation:2})}return t})();var q=o(2771),F=o(4668),ce=o(9172),ae=o(7647),j=o(9728),U=o(3382),ee=o(4125),ne=o(2949);let H=(()=>{class t{constructor(n,s,i){this.settings=n,this.storageService=s,this.studentsService=i,this.studentId$=new q.m(1),this.lessonAbsences$=this.studentId$.pipe((0,S.n)(this.loadLessonAbsences.bind(this)),(0,F.t)(1)),this.lessonIncidents$=this.studentId$.pipe((0,S.n)(this.loadLessonIncidents.bind(this)),(0,F.t)(1)),this.lessonPresences$=this.getLessonPresences(),this.checkableAbsences$=this.getAbsences(this.settings.checkableAbsenceStateId),this.openAbsences$=this.getAbsences(this.settings.unconfirmedAbsenceStateId),this.excusedAbsences$=this.getAbsences(this.settings.excusedAbsenceStateId),this.unexcusedAbsences$=this.getAbsences(this.settings.unexcusedAbsenceStateId),this.incidents$=this.getAbsences(null),this.openLessonAbsences$=(0,u.z)([this.openAbsences$.pipe((0,R.p)(j.TM)),this.lessonAbsences$]).pipe((0,p.T)((0,U.i)(this.getLessonAbsences.bind(this))),(0,F.t)(1)),this.checkableLessonAbsences$=(0,u.z)([this.checkableAbsences$.pipe((0,R.p)(j.TM)),this.lessonAbsences$]).pipe((0,p.T)((0,U.i)(this.getLessonAbsences.bind(this))),(0,F.t)(1)),this.excusedLessonAbsences$=(0,u.z)([this.excusedAbsences$.pipe((0,R.p)(j.TM)),this.lessonAbsences$]).pipe((0,p.T)((0,U.i)(this.getLessonAbsences.bind(this))),(0,F.t)(1)),this.unexcusedLessonAbsences$=(0,u.z)([this.unexcusedAbsences$.pipe((0,R.p)(j.TM)),this.lessonAbsences$]).pipe((0,p.T)((0,U.i)(this.getLessonAbsences.bind(this))),(0,F.t)(1)),this.incidentsLessonAbsences$=(0,u.z)([this.incidents$.pipe((0,R.p)(j.TM)),this.lessonIncidents$]).pipe((0,p.T)((0,U.i)(this.getLessonIncidents.bind(this))),(0,F.t)(1)),this.counts$=this.getCounts();const r=this.storageService.getPayload()?.id_person;r&&this.studentId$.next(Number(r))}reset(){this.studentId$.pipe((0,g.s)(1)).subscribe(n=>this.studentId$.next(n))}getLessonPresences(){return this.getCached((0,u.z)([this.studentId$,this.lessonAbsences$,this.lessonIncidents$]).pipe((0,S.n)(([n,s,i])=>this.loadTimetableEntries(n,s,i).pipe((0,p.T)(r=>this.buildLessonPresences(s,i,r)))),(0,p.T)(ee.wB)))}getAbsences(n){return this.getCached(this.lessonPresences$.pipe((0,p.T)(s=>s?.filter(i=>i.ConfirmationStateId===n)||null)))}getLessonAbsences(n,s){const i=n.map(r=>r.LessonRef.Id);return s.filter(r=>i.includes(r.LessonRef.Id))}getLessonIncidents(n,s){const i=n.map(r=>r.LessonRef.Id);return s.filter(r=>i.includes(r.LessonRef.Id))}getCounts(){return(0,u.z)([this.getCount(this.checkableAbsences$),this.getCount(this.openAbsences$),this.getCount(this.excusedAbsences$),this.getCount(this.unexcusedAbsences$),this.getCount(this.incidents$)]).pipe((0,p.T)(([n,s,i,r,c])=>({checkableAbsences:n,openAbsences:s,excusedAbsences:i,unexcusedAbsences:r,incidents:c,halfDays:null})))}getCached(n){return n.pipe((0,ce.Z)(null),(0,ae.u)({connector:()=>new q.m(1)}))}getCount(n){return n.pipe((0,p.T)(s=>s?.length??null))}loadLessonAbsences(n){return this.studentsService.getLessonAbsences(n)}loadLessonIncidents(n){return this.studentsService.getLessonIncidents(n)}loadTimetableEntries(n,s,i){return this.studentsService.getTimetableEntries(n,{"filter.Id":`;${[...s,...i].map(r=>r.LessonRef.Id).join(";")}`})}buildLessonPresences(n,s,i){return[...n,...s].map(r=>this.buildLessonPresence(r,i)).filter(j.TM)}buildLessonPresence(n,s){const i=s.find(r=>r.Id===n.LessonRef.Id);return i?{Id:"",LessonRef:{Id:n.LessonRef.Id,HRef:n.LessonRef.HRef?n.LessonRef.HRef:null},StudentRef:n.StudentRef,EventRef:{Id:0,HRef:null},TypeRef:n.TypeRef,RegistrationRef:{Id:0,HRef:null},StudyClassRef:{Id:0,HRef:null},ConfirmationStateId:"ConfirmationStateId"in n?n.ConfirmationStateId:null,EventDesignation:i.EventDesignation,HasStudyCourseConfirmationCode:!1,LessonDateTimeFrom:i.From,LessonDateTimeTo:i.To,Comment:null,Date:i.From,Type:n.Type,StudentFullName:n.StudentFullName,StudyClassNumber:"",TeacherInformation:i.EventManagerInformation}:null}static#e=this.\u0275fac=function(s){return new(s||t)(e.KVO(I.yy),e.KVO(N.n),e.KVO(ne.y))};static#n=this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac})}return t})();var W=o(9366);const de=t=>({count:t}),le=t=>({"border-top pt-3":t});function pe(t,a){if(1&t&&(e.j41(0,"div",11),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){const n=a.bkdLet;e.R7$(),e.SpI(" ",e.i5U(2,1,1===n?"my-absences.confirm.lesson-selected":"my-absences.confirm.lessons-selected",e.eq3(4,de,n))," ")}}function me(t,a){if(1&t&&(e.j41(0,"div",17),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){const n=a.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,"global.validation-errors."+n.error,n.params)," ")}}function be(t,a){if(1&t&&(e.qex(0),e.DNE(1,me,3,4,"div",16),e.nI1(2,"async"),e.bVm()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,n.absenceTypeIdErrors$))}}function ue(t,a){if(1&t&&(e.j41(0,"div",12),e.nrm(1,"input",13),e.nI1(2,"async"),e.j41(3,"label",14),e.EFF(4),e.k0s(),e.DNE(5,be,3,3,"ng-container",15),e.nI1(6,"async"),e.k0s()),2&t){let n,s;const i=a.$implicit,r=a.index,c=e.XpG();e.Y8G("ngClass",e.eq3(12,le,i.IsHalfDay)),e.R7$(),e.AVh("is-invalid",(null!==(n=null==(n=e.bMT(2,8,c.absenceTypeIdErrors$))?null:n.length)&&void 0!==n?n:0)>0),e.Y8G("id","absence-type-"+r)("value",i.Id),e.R7$(2),e.Y8G("for","absence-type-"+r),e.R7$(),e.SpI(" ",i.Designation," "),e.R7$(),e.Y8G("ngIf",(null!==(s=null==(s=e.bMT(6,10,c.absenceTypes$))?null:s.length)&&void 0!==s?s:0)-1===r)}}function fe(t,a){1&t&&(e.j41(0,"div",18)(1,"span",19),e.EFF(2,"Loading..."),e.k0s()())}let ge=(()=>{class t extends Z{constructor(n,s,i,r,c,C,v,k,P,G){super(n,s,i,r,c,C,v,k),this.myAbsencesService=P,this.selectionService=G,this.titleKey="my-absences.confirm.title",this.selectedLessonIds$=this.selectionService.selectedIds$.pipe((0,p.T)(w=>(0,m.A)((0,b.A)(w.map(Q=>Q.lessonIds))))),this.confirmationStateId=this.settings.unconfirmedAbsencesRefreshTime}onSaveSuccess(){this.selectionService.clear(),this.myAbsencesService.reset(),super.onSaveSuccess()}navigateBack(){this.router.navigate(["/my-absences"])}static#e=this.\u0275fac=function(s){return new(s||t)(e.rXU(d.ze),e.rXU(L.Ix),e.rXU(B.f),e.rXU(f.c$),e.rXU(Y._),e.rXU(V.T),e.rXU(N.n),e.rXU(I.yy),e.rXU(H),e.rXU(W.s))};static#n=this.\u0275cmp=e.VBU({type:t,selectors:[["bkd-my-absences-confirm"]],standalone:!0,features:[e.Vt3,e.aNF],decls:28,vars:35,consts:[[1,"bkd-container","bkd-container-limited"],["class","mb-3 pb-3 border-bottom",4,"bkdLet"],[3,"ngSubmit","formGroup"],[1,"form-group","mb-3","border-bottom"],[1,"form-label"],["class","form-check my-3",3,"ngClass",4,"ngFor","ngForOf"],[1,"remark"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-secondary",3,"click","disabled"],["type","submit",1,"btn","btn-primary","ms-2",3,"disabled"],["class","spinner-border spinner-border-sm align-middle","role","status",4,"ngIf"],[1,"mb-3","pb-3","border-bottom"],[1,"form-check","my-3",3,"ngClass"],["type","radio","formControlName","absenceTypeId",1,"form-check-input",3,"id","value"],[1,"form-check-label",3,"for"],[4,"ngIf"],["class","invalid-feedback mt-4",4,"ngFor","ngForOf"],[1,"invalid-feedback","mt-4"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(s,i){1&s&&(e.j41(0,"div",0)(1,"h1"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,pe,3,6,"div",1),e.nI1(5,"async"),e.j41(6,"form",2),e.bIt("ngSubmit",function(){return i.onSubmit()}),e.j41(7,"div",3)(8,"label",4),e.EFF(9),e.nI1(10,"translate"),e.nI1(11,"addSpace"),e.k0s(),e.DNE(12,ue,7,14,"div",5),e.nI1(13,"async"),e.k0s(),e.j41(14,"div",6),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"div",7)(18,"button",8),e.nI1(19,"async"),e.bIt("click",function(){return i.cancel()}),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"button",9),e.nI1(23,"async"),e.EFF(24),e.nI1(25,"translate"),e.DNE(26,fe,3,0,"div",10),e.nI1(27,"async"),e.k0s()()()()),2&s&&(e.R7$(2),e.JRh(e.bMT(3,12,i.titleKey)),e.R7$(2),e.Y8G("bkdLet",e.bMT(5,14,i.getSelectedCount())),e.R7$(2),e.Y8G("formGroup",i.formGroup),e.R7$(3),e.Lme("",e.bMT(10,16,"my-absences.confirm.choose-presence-type"),"",e.i5U(11,18,":",":"),""),e.R7$(3),e.Y8G("ngForOf",e.bMT(13,21,i.absenceTypes$)),e.R7$(3),e.SpI(" ",e.bMT(16,23,"my-absences.confirm.remark")," "),e.R7$(3),e.Y8G("disabled",e.bMT(19,25,i.saving$)),e.R7$(2),e.SpI(" ",e.bMT(21,27,"my-absences.confirm.cancel")," "),e.R7$(2),e.Y8G("disabled",e.bMT(23,29,i.saving$)),e.R7$(2),e.SpI(" ",e.bMT(25,31,"my-absences.confirm.save")," "),e.R7$(2),e.Y8G("ngIf",e.bMT(27,33,i.saving$)))},dependencies:[A.N,d.YN,d.qT,d.me,d.Fm,d.BC,d.cb,d.X1,d.j4,d.JD,l.pM,l.YU,l.bT,l.Jj,f.h,f.D9,h.c],changeDetection:0})}return t})();var he=o(1626),X=o(4903),_e=o(7165),ye=o(906),te=o(2915),ve=o(2673),Ie=o(4814);let K=(()=>{class t extends te.z{get preventAbsencesAfterStart(){if(null==this._preventAbsencesAfterStart){const n=this.storageService.getPayload()?.instance_id;this._preventAbsencesAfterStart=!!n&&this.settings.preventStudentAbsenceAfterLessonStart.includes(n)}return this._preventAbsencesAfterStart}constructor(n,s,i,r,c,C){super(n,s,C,i,"/my-absences/report"),this.studentsService=r,this.storageService=c}getInitialFilter(){return{dateFrom:null,dateTo:null}}isValidFilter(n){return!(!n.dateFrom&&!n.dateTo)}loadEntries(n,s,i){const r=this.buildRequestParamsFromFilter(n).set("sort","From.asc");return this.loadingService.load(this.loadTimetableEntries(r).pipe((0,p.T)(c=>this.filterAbsencesAfterLessonStart(c)),(0,S.n)(c=>(0,u.z)([(0,_.of)(c),this.loadLessonAbsences(c),this.loadLessonDispensations(c)])),(0,p.T)(([c,C,v])=>this.buildLessonPresences(c,C,v)),(0,p.T)(c=>({offset:0,total:c.length,entries:c}))),te.b)}filterAbsencesAfterLessonStart(n){return this.preventAbsencesAfterStart?n.filter(s=>s.From.getTime()>=(new Date).getTime()):n}buildParamsFromFilter(n){const{dateFrom:s,dateTo:i}=n,r={};return s&&(r.dateFrom=(0,X.GP)(s,"yyyy-MM-dd")),i&&(r.dateTo=(0,X.GP)(i,"yyyy-MM-dd")),r}buildRequestParamsFromFilter(n){let s=new he.Nl;return n.dateFrom&&(s=s.set("filter.From",`>${(0,X.GP)((0,_e.e)(n.dateFrom,1),"yyyy-MM-dd")}`)),n.dateTo&&(s=s.set("filter.To",`<${(0,X.GP)((0,ye.f)(n.dateTo,1),"yyyy-MM-dd")}`)),s}get studentId(){const n=this.storageService.getPayload()?.id_person;if(null==n)throw new Error("No student id available");return Number(n)}loadTimetableEntries(n){return this.studentsService.getTimetableEntries(this.studentId,n)}loadLessonAbsences(n){return n.length>0?this.studentsService.getLessonAbsences(this.studentId,{"filter.Id":`;${n.map(s=>s.Id).join(";")}`}):(0,_.of)([])}loadLessonDispensations(n){return n.length>0?this.studentsService.getLessonDispensations(this.studentId,{"filter.Id":`;${n.map(s=>s.Id).join(";")}`}):(0,_.of)([])}buildLessonPresences(n,s,i){return n.map(r=>this.buildLessonPresence(r,s,i))}buildLessonPresence(n,s,i){const r=s.find(v=>v.LessonRef.Id===n.Id),c=i.find(v=>v.LessonRef.Id===n.Id),C=this.buildLessonPresenceTypeRef(r,c);return{Id:"",LessonRef:{Id:n.Id,HRef:null},StudentRef:(r||c)?.StudentRef||{Id:this.studentId,HRef:null},EventRef:{Id:0,HRef:null},TypeRef:C,RegistrationRef:{Id:0,HRef:null},StudyClassRef:{Id:0,HRef:null},ConfirmationStateId:r?.ConfirmationStateId||c&&this.settings.excusedAbsenceStateId||null,EventDesignation:n.EventDesignation||"",HasStudyCourseConfirmationCode:!1,LessonDateTimeFrom:n.From||new Date,LessonDateTimeTo:n.To||new Date,Comment:null,Date:n.From||new Date,Type:(r||c)?.Type||null,StudentFullName:(r||c)?.StudentFullName||"",StudyClassNumber:"",TeacherInformation:n.EventManagerInformation}}buildLessonPresenceTypeRef(n,s){return n?{...n.TypeRef}:s?{...s.TypeRef}:{Id:null,HRef:null}}static#e=this.\u0275fac=function(s){return new(s||t)(e.KVO(l.aZ),e.KVO(ve.U),e.KVO(I.yy),e.KVO(ne.y),e.KVO(N.n),e.KVO(Ie.a))};static#n=this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac})}return t})();var Te=o(8268);let J=(()=>{class t extends Te.A{constructor(){super(...arguments),this.selectedIds$=this.selection$.pipe((0,p.T)(ee.Jr))}static#e=this.\u0275fac=(()=>{let n;return function(i){return(n||(n=e.xGo(t)))(i||t)}})();static#n=this.\u0275prov=e.jDH({token:t,factory:t.\u0275fac})}return t})();const Ae=t=>({count:t}),$e=t=>({"border-top pt-3":t});function Re(t,a){if(1&t&&(e.j41(0,"div",11),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){const n=a.bkdLet;e.R7$(),e.SpI(" ",e.i5U(2,1,1===n?"my-absences.confirm.lesson-selected":"my-absences.confirm.lessons-selected",e.eq3(4,Ae,n))," ")}}function Ce(t,a){if(1&t&&(e.j41(0,"div",17),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t){const n=a.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,"global.validation-errors."+n.error,n.params)," ")}}function Me(t,a){if(1&t&&(e.qex(0),e.DNE(1,Ce,3,4,"div",16),e.nI1(2,"async"),e.bVm()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,n.absenceTypeIdErrors$))}}function Se(t,a){if(1&t&&(e.j41(0,"div",12),e.nrm(1,"input",13),e.nI1(2,"async"),e.j41(3,"label",14),e.EFF(4),e.k0s(),e.DNE(5,Me,3,3,"ng-container",15),e.nI1(6,"async"),e.k0s()),2&t){let n,s;const i=a.$implicit,r=a.index,c=e.XpG();e.Y8G("ngClass",e.eq3(12,$e,i.IsHalfDay)),e.R7$(),e.AVh("is-invalid",(null!==(n=null==(n=e.bMT(2,8,c.absenceTypeIdErrors$))?null:n.length)&&void 0!==n?n:0)>0),e.Y8G("id","absence-type-"+r)("value",i.Id),e.R7$(2),e.Y8G("for","absence-type-"+r),e.R7$(),e.SpI(" ",i.Designation," "),e.R7$(),e.Y8G("ngIf",(null!==(s=null==(s=e.bMT(6,10,c.absenceTypes$))?null:s.length)&&void 0!==s?s:0)-1===r)}}function ke(t,a){1&t&&(e.j41(0,"div",18)(1,"span",19),e.EFF(2,"Loading..."),e.k0s()())}let Fe=(()=>{class t extends Z{constructor(n,s,i,r,c,C,v,k,P,G){super(n,s,i,r,c,C,v,k),this.state=P,this.selectionService=G,this.titleKey="my-absences.report.title",this.selectedLessonIds$=this.selectionService.selectedIds$.pipe((0,p.T)(w=>(0,m.A)((0,b.A)(w.map(Q=>Q.lessonIds))))),this.confirmationStateId=this.settings.checkableAbsenceStateId}getHalfDayType(){return this.presenceTypesService.getPresenceType(this.settings.halfDayPresenceTypeId).pipe((0,p.T)(n=>n.Active?n:null))}onSaveSuccess(){this.selectionService.clear(),this.state.resetEntries(),super.onSaveSuccess()}navigateBack(){this.state.queryParams$.pipe((0,g.s)(1)).subscribe(n=>{this.router.navigate(["/my-absences/report"],{queryParams:n})})}static#e=this.\u0275fac=function(s){return new(s||t)(e.rXU(d.ze),e.rXU(L.Ix),e.rXU(B.f),e.rXU(f.c$),e.rXU(Y._),e.rXU(V.T),e.rXU(N.n),e.rXU(I.yy),e.rXU(K),e.rXU(J))};static#n=this.\u0275cmp=e.VBU({type:t,selectors:[["bkd-my-absences-confirm"]],standalone:!0,features:[e.Vt3,e.aNF],decls:28,vars:35,consts:[[1,"bkd-container","bkd-container-limited"],["class","mb-3 pb-3 border-bottom",4,"bkdLet"],[3,"ngSubmit","formGroup"],[1,"form-group","mb-3","border-bottom"],[1,"form-label"],["class","form-check my-3",3,"ngClass",4,"ngFor","ngForOf"],[1,"remark"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-secondary",3,"click","disabled"],["type","submit",1,"btn","btn-primary","ms-2",3,"disabled"],["class","spinner-border spinner-border-sm align-middle","role","status",4,"ngIf"],[1,"mb-3","pb-3","border-bottom"],[1,"form-check","my-3",3,"ngClass"],["type","radio","formControlName","absenceTypeId",1,"form-check-input",3,"id","value"],[1,"form-check-label",3,"for"],[4,"ngIf"],["class","invalid-feedback mt-4",4,"ngFor","ngForOf"],[1,"invalid-feedback","mt-4"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(s,i){1&s&&(e.j41(0,"div",0)(1,"h1"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,Re,3,6,"div",1),e.nI1(5,"async"),e.j41(6,"form",2),e.bIt("ngSubmit",function(){return i.onSubmit()}),e.j41(7,"div",3)(8,"label",4),e.EFF(9),e.nI1(10,"translate"),e.nI1(11,"addSpace"),e.k0s(),e.DNE(12,Se,7,14,"div",5),e.nI1(13,"async"),e.k0s(),e.j41(14,"div",6),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"div",7)(18,"button",8),e.nI1(19,"async"),e.bIt("click",function(){return i.cancel()}),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"button",9),e.nI1(23,"async"),e.EFF(24),e.nI1(25,"translate"),e.DNE(26,ke,3,0,"div",10),e.nI1(27,"async"),e.k0s()()()()),2&s&&(e.R7$(2),e.JRh(e.bMT(3,12,i.titleKey)),e.R7$(2),e.Y8G("bkdLet",e.bMT(5,14,i.getSelectedCount())),e.R7$(2),e.Y8G("formGroup",i.formGroup),e.R7$(3),e.Lme("",e.bMT(10,16,"my-absences.confirm.choose-presence-type"),"",e.i5U(11,18,":",":"),""),e.R7$(3),e.Y8G("ngForOf",e.bMT(13,21,i.absenceTypes$)),e.R7$(3),e.SpI(" ",e.bMT(16,23,"my-absences.confirm.remark")," "),e.R7$(3),e.Y8G("disabled",e.bMT(19,25,i.saving$)),e.R7$(2),e.SpI(" ",e.bMT(21,27,"my-absences.confirm.cancel")," "),e.R7$(2),e.Y8G("disabled",e.bMT(23,29,i.saving$)),e.R7$(2),e.SpI(" ",e.bMT(25,31,"my-absences.confirm.save")," "),e.R7$(2),e.Y8G("ngIf",e.bMT(27,33,i.saving$)))},dependencies:[A.N,d.YN,d.qT,d.me,d.Fm,d.BC,d.cb,d.X1,d.j4,d.JD,l.pM,l.YU,l.bT,l.Jj,f.h,f.D9,h.c],changeDetection:0})}return t})();var Le=o(6977),x=o(5314),z=o(2055),se=o(6834),Ee=o(1517),De=o(5063),E=o(1324),je=o(3601),xe=o(1964),Pe=o(2637),Ge=o(181);const Oe=()=>["/my-absences"];let Ne=(()=>{class t{constructor(){this.filter={dateFrom:null,dateTo:null},this.filterChange=new e.bkB,this.minDate={year:(new Date).getFullYear(),month:(new Date).getMonth()+1,day:(new Date).getDate()}}updateDateFrom(n){this.filter.dateFrom=n,n&&(this.filter.dateTo=n)}show(){this.filterChange.emit({dateFrom:ie(this.filter.dateFrom),dateTo:ie(this.filter.dateTo)})}static#e=this.\u0275fac=function(s){return new(s||t)};static#n=this.\u0275cmp=e.VBU({type:t,selectors:[["bkd-my-absences-report-header"]],inputs:{filter:"filter"},outputs:{filterChange:"filterChange"},standalone:!0,features:[e.Jv_([{provide:E.dn,useClass:E.Ae},{provide:E.tN,useClass:xe.m}]),e.aNF],decls:19,vars:18,consts:[[3,"link"],[1,"filters"],[1,"form-group"],[1,"form-label"],[3,"valueChange","minDate","value"],[1,"buttons"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(s,i){1&s&&(e.nrm(0,"bkd-backlink",0),e.j41(1,"h1"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",1)(5,"div",2)(6,"label",3),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"bkd-date-select",4),e.bIt("valueChange",function(c){return i.updateDateFrom(c)}),e.k0s()(),e.j41(10,"div",2)(11,"label",3),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"bkd-date-select",4),e.mxI("valueChange",function(c){return e.DH7(i.filter.dateTo,c)||(i.filter.dateTo=c),c}),e.k0s()(),e.j41(15,"div",5)(16,"button",6),e.bIt("click",function(){return i.show()}),e.EFF(17),e.nI1(18,"translate"),e.k0s()()()),2&s&&(e.Y8G("link",e.lJ4(17,Oe)),e.R7$(2),e.JRh(e.bMT(3,9,"my-absences.report.title")),e.R7$(5),e.JRh(e.bMT(8,11,"my-absences.report.header.date-from")),e.R7$(2),e.Y8G("minDate",i.minDate)("value",i.filter.dateFrom),e.R7$(3),e.JRh(e.bMT(13,13,"my-absences.report.header.date-to")),e.R7$(2),e.Y8G("minDate",i.minDate),e.R50("value",i.filter.dateTo),e.R7$(3),e.SpI(" ",e.bMT(18,15,"my-absences.report.header.show")," "))},dependencies:[Pe.P,Ge.m,f.h,f.D9],styles:["[_nghost-%COMP%]{display:block;padding-bottom:1rem;border-bottom:1px solid #dee2e6}.filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.form-group[_ngcontent-%COMP%]{flex:1;min-width:20rem;max-width:40rem;margin-right:1rem;margin-bottom:.5rem}.buttons[_ngcontent-%COMP%]{flex:none;margin-top:1.625rem;margin-right:0}@media (max-width: 575.98px){[_nghost-%COMP%]{padding-bottom:0}.buttons[_ngcontent-%COMP%]{width:100%;margin-top:1rem;margin-bottom:1rem}}"],changeDetection:0})}return t})();function ie(t){return t?(0,je.o)(t):null}var Ue=o(1769);const Ye=(t,a,n)=>({selection:t,entries:a,loadingPage:n});function Xe(t,a){if(1&t){const n=e.RV6();e.j41(0,"div",15)(1,"input",16,6),e.nI1(3,"async"),e.bIt("change",function(){e.eBV(n);const i=e.XpG(2).$implicit,r=e.XpG(6);return e.Njj(r.selectionService.toggle(i))}),e.k0s()()}if(2&t){const n=e.XpG(2).$implicit,s=e.XpG(6);e.R7$(),e.Y8G("checked",e.bMT(3,1,s.selectionService.isSelected$(n)))}}function Be(t,a){if(1&t&&(e.j41(0,"div")(1,"i",20),e.EFF(2),e.k0s()()),2&t){const n=e.XpG().bkdLet;e.ZvI("checkbox presence-category ",n.category,""),e.R7$(2),e.JRh(n.icon)}}function Ve(t,a){if(1&t&&(e.qex(0),e.DNE(1,Xe,4,3,"div",29)(2,Be,3,4,"ng-template",null,5,e.C5r),e.bVm()),2&t){const n=a.bkdLet,s=e.sdS(3);e.R7$(),e.Y8G("ngIf",!n)("ngIfElse",s)}}function He(t,a){if(1&t&&(e.qex(0),e.EFF(1),e.bVm()),2&t){const n=e.XpG().$implicit;e.R7$(),e.SpI(", ",n.StudyClassNumber,"")}}function We(t,a){if(1&t&&(e.j41(0,"div",31),e.EFF(1),e.k0s()),2&t){const n=e.XpG().bkdLet;e.R7$(),e.SpI(" ",n," ")}}function Ke(t,a){if(1&t&&(e.qex(0),e.DNE(1,We,2,1,"div",30),e.bVm()),2&t){const n=a.bkdLet;e.R7$(),e.Y8G("ngIf",n)}}function Je(t,a){if(1&t){const n=e.RV6();e.j41(0,"div",22,4),e.bIt("click",function(i){e.eBV(n);const r=e.sdS(1),c=e.XpG(6);return e.Njj(c.onRowClick(i,r))}),e.DNE(2,Ve,4,2,"ng-container",7),e.nI1(3,"async"),e.j41(4,"div",23),e.EFF(5),e.DNE(6,He,2,1,"ng-container",12),e.k0s(),e.j41(7,"div",24),e.EFF(8),e.nI1(9,"date"),e.nI1(10,"date"),e.k0s(),e.j41(11,"div",25),e.EFF(12),e.k0s(),e.DNE(13,Ke,2,1,"ng-container",7),e.nI1(14,"async"),e.j41(15,"div",26),e.EFF(16),e.nI1(17,"date"),e.k0s(),e.j41(18,"div",27),e.EFF(19),e.nI1(20,"bkdDaysDifference"),e.k0s(),e.j41(21,"div",28),e.EFF(22),e.nI1(23,"date"),e.nI1(24,"bkdDaysDifference"),e.k0s()()}if(2&t){const n=a.$implicit,s=e.XpG(6);e.R7$(2),e.Y8G("bkdLet",e.bMT(3,11,s.getPresenceCategory(n))),e.R7$(3),e.SpI(" ",n.EventDesignation,""),e.R7$(),e.Y8G("ngIf",n.StudyClassNumber),e.R7$(2),e.Lme(" ",e.i5U(9,13,n.LessonDateTimeFrom,"HH:mm"),"\u2013",e.i5U(10,16,n.LessonDateTimeTo,"HH:mm")," "),e.R7$(4),e.SpI(" ",n.TeacherInformation," "),e.R7$(),e.Y8G("bkdLet",e.bMT(14,19,s.getPresenceTypeDesignation(n))),e.R7$(3),e.SpI(" ",e.i5U(17,21,n.LessonDateTimeFrom,"dd.MM.yyyy")," "),e.R7$(3),e.SpI(" ",e.bMT(20,24,n.LessonDateTimeFrom)," "),e.R7$(3),e.Lme(" ",e.i5U(23,26,n.LessonDateTimeFrom,"dd.MM.yyyy"),", ",e.bMT(24,29,n.LessonDateTimeFrom)," ")}}function ze(t,a){if(1&t){const n=e.RV6();e.j41(0,"div")(1,"div",14,3),e.bIt("click",function(i){e.eBV(n);const r=e.sdS(2),c=e.XpG(5);return e.Njj(c.onRowClick(i,r))}),e.j41(3,"div",15)(4,"input",16),e.nI1(5,"async"),e.bIt("change",function(i){e.eBV(n);const r=e.XpG(5);return e.Njj(r.toggleAll(null==i.target?null:i.target.checked))}),e.k0s()(),e.j41(6,"div",17),e.EFF(7),e.nI1(8,"translate"),e.k0s(),e.j41(9,"div",18)(10,"a",19),e.nI1(11,"async"),e.j41(12,"i",20),e.EFF(13,"edit"),e.k0s()()()(),e.DNE(14,Je,25,31,"div",21),e.k0s()}if(2&t){let n;const s=e.XpG(4).bkdLet,i=e.XpG();e.R7$(4),e.Y8G("checked",e.bMT(5,5,i.allSelected$)),e.R7$(3),e.SpI(" ",e.bMT(8,7,"my-absences.report.list.all")," "),e.R7$(3),e.AVh("disabled",0===(null==(n=e.bMT(11,9,i.selectionService.selection$))?null:n.length)),e.R7$(4),e.Y8G("ngForOf",s.entries)}}function we(t,a){1&t&&e.nrm(0,"bkd-spinner",32)}function Qe(t,a){if(1&t&&(e.j41(0,"div",11),e.DNE(1,ze,15,11,"div",12)(2,we,1,0,"bkd-spinner",13),e.k0s()),2&t){const n=e.XpG(3).bkdLet;e.R7$(),e.Y8G("ngIf",n.entries&&n.entries.length>0),e.R7$(),e.Y8G("ngIf",n.loadingPage)}}function Ze(t,a){1&t&&(e.j41(0,"p",33),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"my-absences.report.no-entries")," "))}function qe(t,a){if(1&t&&(e.qex(0),e.DNE(1,Qe,3,2,"div",10)(2,Ze,3,3,"ng-template",null,2,e.C5r),e.bVm()),2&t){const n=e.sdS(3),s=e.XpG(2).bkdLet;e.R7$(),e.Y8G("ngIf",s.entries&&s.entries.length>0||s.loadingPage)("ngIfElse",n)}}function en(t,a){1&t&&e.nrm(0,"bkd-spinner")}function nn(t,a){if(1&t&&(e.qex(0),e.DNE(1,qe,4,2,"ng-container",9),e.nI1(2,"async"),e.DNE(3,en,1,0,"ng-template",null,1,e.C5r),e.bVm()),2&t){const n=e.sdS(4),s=e.XpG(2);e.R7$(),e.Y8G("ngIf",!1===e.bMT(2,2,s.state.loading$))("ngIfElse",n)}}function tn(t,a){1&t&&(e.j41(0,"p",33),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&t&&(e.R7$(),e.JRh(e.bMT(2,1,"my-absences.report.no-filter")))}function sn(t,a){if(1&t){const n=e.RV6();e.qex(0),e.j41(1,"bkd-my-absences-report-header",8),e.nI1(2,"async"),e.bIt("filterChange",function(i){e.eBV(n);const r=e.XpG();return e.Njj(r.state.setFilter(i))}),e.k0s(),e.DNE(3,nn,5,4,"ng-container",9),e.nI1(4,"async"),e.DNE(5,tn,3,3,"ng-template",null,0,e.C5r),e.bVm()}if(2&t){const n=e.sdS(6),s=e.XpG();e.R7$(),e.Y8G("filter",e.bMT(2,3,s.filterFromParams$)),e.R7$(2),e.Y8G("ngIf",e.bMT(4,5,s.state.isFilterValid$))("ngIfElse",n)}}let on=(()=>{class t{constructor(n,s,i,r,c,C){this.state=n,this.selectionService=s,this.route=i,this.scrollPosition=r,this.presenceTypesService=c,this.settings=C,this.filterFromParams$=this.route.queryParams.pipe((0,p.T)(rn)),this.allSelected$=(0,u.z)([this.selectionService.selection$,this.state.entries$.pipe((0,S.n)(v=>(0,u.z)(v.map(k=>this.getPresenceType(k)))))]).pipe((0,p.T)(([v,k])=>v.length>0&&v.length===k.filter((0,j.AU)(z.W0)).length)),this.destroy$=new $.B}ngOnInit(){this.filterFromParams$.pipe((0,g.s)(1)).subscribe(n=>this.state.setFilter(n)),this.state.validFilter$.pipe((0,Le.Q)(this.destroy$)).subscribe(()=>this.selectionService.clear())}ngAfterViewInit(){this.scrollPosition.restore()}ngOnDestroy(){this.destroy$.next()}getPresenceCategory(n){return this.getPresenceType(n).pipe((0,p.T)(s=>(0,z.W0)(s)?n.ConfirmationStateId===this.settings.checkableAbsenceStateId?{category:x.wf.Unapproved,icon:(0,x.Rb)(x.wf.Unapproved)}:{category:x.wf.Absent,icon:(0,x.Rb)(x.wf.Absent)}:null))}getPresenceTypeDesignation(n){return this.presenceTypesService.displayedTypes$.pipe((0,p.T)(s=>n.TypeRef.Id&&s.find(i=>i.Id===n.TypeRef.Id)?.Designation||null))}toggleAll(n){(0,u.z)([this.state.entries$.pipe((0,g.s)(1)),this.presenceTypesService.presenceTypes$.pipe((0,g.s)(1))]).subscribe(([s,i])=>{const r=i.filter(c=>(0,z.W0)(c)).map(c=>c.Id);this.selectionService.clear(n?s.filter(c=>null==c.TypeRef.Id||!r.includes(c.TypeRef.Id)):null)})}onRowClick(n,s){const i=s.querySelector('input[type="checkbox"]');i&&n.target!==i&&!n.target.closest(".buttons")&&i.click()}getPresenceType(n){return this.presenceTypesService.presenceTypes$.pipe((0,p.T)(s=>n.TypeRef.Id&&s.find(i=>i.Id===n.TypeRef.Id)||null))}static#e=this.\u0275fac=function(s){return new(s||t)(e.rXU(K),e.rXU(J),e.rXU(L.nX),e.rXU(Ue.W),e.rXU(Y._),e.rXU(I.yy))};static#n=this.\u0275cmp=e.VBU({type:t,selectors:[["bkd-my-absences-report-list"]],standalone:!0,features:[e.aNF],decls:4,vars:11,consts:[["noFilter",""],["loading",""],["noEntries",""],["all",""],["row",""],["categoryIcon",""],["checkbox",""],[4,"bkdLet"],[3,"filterChange","filter"],[4,"ngIf","ngIfElse"],["class","py-3",4,"ngIf","ngIfElse"],[1,"py-3"],[4,"ngIf"],["class","inline",4,"ngIf"],[1,"entries-all",3,"click"],[1,"checkbox"],["type","checkbox",1,"form-check-input",3,"change","checked"],[1,"all"],[1,"buttons"],["routerLink","confirm",1,"edit","btn","btn-primary","btn-icon","me-2"],[1,"material-icons"],["class","entry",3,"click",4,"ngFor","ngForOf"],[1,"entry",3,"click"],[1,"lesson-class"],[1,"time","pe-2"],[1,"teacher"],[1,"date"],[1,"days-ago"],[1,"date-days-ago"],["class","checkbox",4,"ngIf","ngIfElse"],["class","presence-type",4,"ngIf"],[1,"presence-type"],[1,"inline"],[1,"mt-3"]],template:function(s,i){1&s&&(e.DNE(0,sn,7,7,"ng-container",7),e.nI1(1,"async"),e.nI1(2,"async"),e.nI1(3,"async")),2&s&&e.Y8G("bkdLet",e.sMw(7,Ye,e.bMT(1,1,i.selectionService.selection$),e.bMT(2,3,i.state.entries$),e.bMT(3,5,i.state.loadingPage$)))},dependencies:[A.N,Ne,l.bT,L.Wk,l.pM,Ee.t,l.Jj,l.vh,f.h,f.D9,De.j],styles:['.entries-all[_ngcontent-%COMP%]{padding:0 0 .5rem 1rem;border-bottom:1px solid #dee2e6;display:grid;grid-template-areas:"checkbox all buttons";grid-template-columns:min-content 1fr min-content}.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}.entry[_ngcontent-%COMP%]:first-child{padding-top:0}.entries-all[_ngcontent-%COMP%] + .entry[_ngcontent-%COMP%]{padding-top:1rem}.presence-category.absent[_ngcontent-%COMP%]{color:#ea161f}.presence-category.unapproved[_ngcontent-%COMP%]{color:#ffa814}.checkbox[_ngcontent-%COMP%]{grid-area:checkbox;margin:0;padding:.3rem 1rem 0 0}.presence-category[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{display:block;font-size:16px}.entries-all[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{padding-top:.2rem}.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}.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){.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 t})();function rn(t){return{dateFrom:t.dateFrom?(0,se.cv)(t.dateFrom):null,dateTo:t.dateTo?(0,se.cv)(t.dateTo):null}}let cn=(()=>{class t{constructor(){}static#e=this.\u0275fac=function(s){return new(s||t)};static#n=this.\u0275cmp=e.VBU({type:t,selectors:[["bkd-my-absences-report"]],standalone:!0,features:[e.Jv_([K,J]),e.aNF],decls:1,vars:0,template:function(s,i){1&s&&e.nrm(0,"router-outlet")},dependencies:[L.n3],changeDetection:0})}return t})();var an=o(8667),dn=o(235),ln=o(3919);const pn=["link"],mn=()=>["/my-absences/report"];let bn=(()=>{class t{onClick(){this.link.nativeElement.click()}constructor(){}static#e=this.\u0275fac=function(s){return new(s||t)};static#n=this.\u0275cmp=e.VBU({type:t,selectors:[["bkd-my-absences-report-link"]],viewQuery:function(s,i){if(1&s&&e.GBs(pn,5),2&s){let r;e.mGM(r=e.lsd())&&(i.link=r.first)}},hostBindings:function(s,i){1&s&&e.bIt("click",function(c){return i.onClick(c)})},standalone:!0,features:[e.aNF],decls:8,vars:5,consts:[["link",""],[1,"m-0"],[1,"btn","btn-link","p-0",3,"routerLink"],[1,"d-flex","align-items-center"],[1,"material-icons"]],template:function(s,i){1&s&&(e.j41(0,"h5",1),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"a",2,0)(5,"div",3)(6,"i",4),e.EFF(7,"keyboard_arrow_right"),e.k0s()()()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,2,"my-absences.report.title"),"\n"),e.R7$(2),e.Y8G("routerLink",e.lJ4(4,mn)))},dependencies:[L.Wk,f.h,f.D9],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;cursor:pointer}.btn[_ngcontent-%COMP%]{color:#000;text-decoration:none}"],changeDetection:0})}return t})();var un=o(5507);const fn=t=>({absenceCounts:t}),oe=()=>[];function gn(t,a){}function hn(t,a){if(1&t&&(e.qex(0),e.EFF(1),e.bVm()),2&t){const n=e.XpG().bkdLet;e.R7$(),e.SpI("(",n.absenceCounts.checkableAbsences,") ")}}function _n(t,a){if(1&t&&e.nrm(0,"bkd-student-dossier-absences",17),2&t){const n=e.XpG(2);e.Y8G("absences$",n.myAbsencesService.checkableAbsences$)}}function yn(t,a){if(1&t&&(e.qex(0),e.EFF(1),e.bVm()),2&t){const n=e.XpG().bkdLet;e.R7$(),e.SpI("(",n.absenceCounts.openAbsences,") ")}}function vn(t,a){if(1&t&&(e.nrm(0,"bkd-student-dossier-absences",18),e.nI1(1,"translate"),e.nI1(2,"async")),2&t){let n;const s=e.XpG(2);e.Y8G("absences$",s.myAbsencesService.openAbsences$)("selectionService",s.absencesSelectionService)("defaultAbsenceSelectionMessage",e.bMT(1,4,"my-absences.show.default-absence-selection-message"))("reports",null!==(n=e.bMT(2,6,s.openAbsencesReports$))&&void 0!==n?n:e.lJ4(8,oe))}}function In(t,a){if(1&t&&(e.qex(0),e.EFF(1),e.bVm()),2&t){const n=e.XpG().bkdLet;e.R7$(),e.SpI("(",n.absenceCounts.excusedAbsences,") ")}}function Tn(t,a){if(1&t&&e.nrm(0,"bkd-student-dossier-absences",17),2&t){const n=e.XpG(2);e.Y8G("absences$",n.myAbsencesService.excusedAbsences$)}}function An(t,a){if(1&t&&(e.qex(0),e.EFF(1),e.bVm()),2&t){const n=e.XpG().bkdLet;e.R7$(),e.SpI("(",n.absenceCounts.unexcusedAbsences,") ")}}function $n(t,a){if(1&t&&e.nrm(0,"bkd-student-dossier-absences",19),2&t){const n=e.XpG(2);e.Y8G("absences$",n.myAbsencesService.unexcusedAbsences$)("displayPresenceType",!1)}}function Rn(t,a){if(1&t&&(e.qex(0),e.EFF(1),e.bVm()),2&t){const n=e.XpG().bkdLet;e.R7$(),e.SpI("(",n.absenceCounts.incidents,") ")}}function Cn(t,a){if(1&t&&e.nrm(0,"bkd-student-dossier-absences",17),2&t){const n=e.XpG(2);e.Y8G("absences$",n.myAbsencesService.incidents$)}}function Mn(t,a){if(1&t){const n=e.RV6();e.j41(0,"div",6)(1,"h1"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",7)(5,"div"),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"div",8),e.nrm(9,"bkd-reports-link",9),e.nI1(10,"async"),e.k0s()(),e.j41(11,"div",10)(12,"div",11)(13,"div",12),e.nrm(14,"bkd-my-absences-report-link"),e.k0s(),e.j41(15,"div",13)(16,"div",14),e.DNE(17,gn,0,0,"ng-template"),e.k0s()()(),e.j41(18,"div",11,0)(20,"div",12)(21,"bkd-student-dossier-entry-header",15),e.bIt("click",function(){e.eBV(n);const i=e.sdS(19);return e.Njj(i.toggle())}),e.EFF(22),e.nI1(23,"translate"),e.DNE(24,hn,2,1,"ng-container",16),e.k0s()(),e.j41(25,"div",13)(26,"div",14),e.DNE(27,_n,1,1,"ng-template"),e.k0s()()(),e.j41(28,"div",11,1)(30,"div",12)(31,"bkd-student-dossier-entry-header",15),e.bIt("click",function(){e.eBV(n);const i=e.sdS(29);return e.Njj(i.toggle())}),e.EFF(32),e.nI1(33,"translate"),e.DNE(34,yn,2,1,"ng-container",16),e.k0s()(),e.j41(35,"div",13)(36,"div",14),e.DNE(37,vn,3,9,"ng-template"),e.k0s()()(),e.j41(38,"div",11,2)(40,"div",12)(41,"bkd-student-dossier-entry-header",15),e.bIt("click",function(){e.eBV(n);const i=e.sdS(39);return e.Njj(i.toggle())}),e.EFF(42),e.nI1(43,"translate"),e.DNE(44,In,2,1,"ng-container",16),e.k0s()(),e.j41(45,"div",13)(46,"div",14),e.DNE(47,Tn,1,1,"ng-template"),e.k0s()()(),e.j41(48,"div",11,3)(50,"div",12)(51,"bkd-student-dossier-entry-header",15),e.bIt("click",function(){e.eBV(n);const i=e.sdS(49);return e.Njj(i.toggle())}),e.EFF(52),e.nI1(53,"translate"),e.DNE(54,An,2,1,"ng-container",16),e.k0s()(),e.j41(55,"div",13)(56,"div",14),e.DNE(57,$n,1,2,"ng-template"),e.k0s()()(),e.j41(58,"div",11,4)(60,"div",12)(61,"bkd-student-dossier-entry-header",15),e.bIt("click",function(){e.eBV(n);const i=e.sdS(59);return e.Njj(i.toggle())}),e.EFF(62),e.nI1(63,"translate"),e.DNE(64,Rn,2,1,"ng-container",16),e.k0s()(),e.j41(65,"div",13)(66,"div",14),e.DNE(67,Cn,1,1,"ng-template"),e.k0s()()()()()}if(2&t){let n;const s=a.bkdLet,i=e.sdS(19),r=e.sdS(29),c=e.sdS(39),C=e.sdS(49),v=e.sdS(59),k=e.XpG();e.R7$(2),e.JRh(e.bMT(3,18,"my-absences.title")),e.R7$(4),e.JRh(e.bMT(7,20,"my-absences.description")),e.R7$(3),e.Y8G("reports",null!==(n=e.bMT(10,22,k.allAbsencesReports$))&&void 0!==n?n:e.lJ4(34,oe)),e.R7$(12),e.Y8G("opened",!i.collapsed),e.R7$(),e.SpI(" ",e.bMT(23,24,"shared.profile.checkable-absences")," "),e.R7$(2),e.Y8G("ngIf",null!==s.absenceCounts.checkableAbsences),e.R7$(7),e.Y8G("opened",!r.collapsed),e.R7$(),e.SpI(" ",e.bMT(33,26,"shared.profile.open-absences")," "),e.R7$(2),e.Y8G("ngIf",null!==s.absenceCounts.openAbsences),e.R7$(7),e.Y8G("opened",!c.collapsed),e.R7$(),e.SpI(" ",e.bMT(43,28,"shared.profile.excused-absences")," "),e.R7$(2),e.Y8G("ngIf",null!==s.absenceCounts.excusedAbsences),e.R7$(7),e.Y8G("opened",!C.collapsed),e.R7$(),e.SpI(" ",e.bMT(53,30,"shared.profile.unexcused-absences")," "),e.R7$(2),e.Y8G("ngIf",null!==s.absenceCounts.unexcusedAbsences),e.R7$(7),e.Y8G("opened",!v.collapsed),e.R7$(),e.SpI(" ",e.bMT(63,32,"shared.profile.incidents")," "),e.R7$(2),e.Y8G("ngIf",null!==s.absenceCounts.incidents)}}const Sn=[{path:"",component:(()=>{class t{constructor(){}static#e=this.\u0275fac=function(s){return new(s||t)};static#n=this.\u0275cmp=e.VBU({type:t,selectors:[["bkd-my-absences"]],standalone:!0,features:[e.Jv_([H,W.s]),e.aNF],decls:1,vars:0,template:function(s,i){1&s&&e.nrm(0,"router-outlet")},dependencies:[L.n3],changeDetection:0})}return t})(),children:[{path:"",component:(()=>{class t{constructor(n,s,i){this.reportsService=n,this.myAbsencesService=s,this.absencesSelectionService=i,this.openAbsencesReports$=this.loadOpenAbsencesReports(),this.allAbsencesReports$=this.loadAllAbsencesReports()}loadOpenAbsencesReports(){return(0,u.z)([this.absencesSelectionService.selectedWithoutPresenceType$,this.absencesSelectionService.selectedIds$]).pipe((0,S.n)(([n,s])=>0===n.length&&s.length>0?this.getOpenAbsencesRecordIds((0,m.A)((0,b.A)(s.map(i=>i.lessonIds)))):(0,_.of)([])),(0,S.n)(n=>this.reportsService.getStudentConfirmationReports(n)),(0,F.t)(1))}loadAllAbsencesReports(){return(0,u.z)([this.myAbsencesService.openLessonAbsences$,this.myAbsencesService.checkableLessonAbsences$,this.myAbsencesService.excusedLessonAbsences$,this.myAbsencesService.unexcusedLessonAbsences$,this.myAbsencesService.incidentsLessonAbsences$]).pipe((0,p.T)(n=>this.getAllAbsencesRecordIds((0,b.A)(n))),(0,S.n)(n=>this.reportsService.getMyAbsencesReports(n)),(0,F.t)(1))}getAllAbsencesRecordIds(n){return n.map(s=>`${s.LessonRef.Id}_${s.RegistrationId}`)}getOpenAbsencesRecordIds(n){return this.myAbsencesService.openLessonAbsences$.pipe((0,p.T)(s=>s.filter(i=>n.includes(i.LessonRef.Id)).map(i=>`${i.LessonRef.Id}_${i.RegistrationId}`)))}static#e=this.\u0275fac=function(s){return new(s||t)(e.rXU(un.P),e.rXU(H),e.rXU(W.s))};static#n=this.\u0275cmp=e.VBU({type:t,selectors:[["bkd-my-absences-show"]],standalone:!0,features:[e.aNF],decls:2,vars:5,consts:[["checkableAbsences","ngbAccordionItem"],["openAbsences","ngbAccordionItem"],["excusedAbsences","ngbAccordionItem"],["unexcusedAbsences","ngbAccordionItem"],["incidents","ngbAccordionItem"],["class","bkd-container bkd-container-limited",4,"bkdLet"],[1,"bkd-container","bkd-container-limited"],[1,"d-flex","justify-content-between","border-bottom","header"],[1,"ps-3"],[3,"reports"],["ngbAccordion",""],["ngbAccordionItem",""],["ngbAccordionHeader",""],["ngbAccordionCollapse",""],["ngbAccordionBody",""],[3,"click","opened"],[4,"ngIf"],[3,"absences$"],[3,"absences$","selectionService","defaultAbsenceSelectionMessage","reports"],[3,"absences$","displayPresenceType"]],template:function(s,i){1&s&&(e.DNE(0,Mn,68,35,"div",5),e.nI1(1,"async")),2&s&&e.Y8G("bkdLet",e.eq3(3,fn,e.bMT(1,1,i.myAbsencesService.counts$)))},dependencies:[A.N,an.Z,E.r6,E.tW,E.x7,bn,E.$R,E.UA,ln.$,l.bT,dn.A,l.Jj,f.h,f.D9],styles:[".header[_ngcontent-%COMP%]{padding-bottom:1rem}"],changeDetection:0})}return t})()},{path:"confirm",component:ge},{path:"report",component:cn,children:[{path:"",component:on,data:{restoreScrollPositionFrom:["/my-absences/report/confirm"]}},{path:"confirm",component:Fe}]}]}]},6611:(O,M,o)=>{o.d(M,{a:()=>I});var l=o(5783),d=o(5306);const f=l.NW({Id:l.ai}),m=l.OH({HRef:(0,d.c$)(l.Yj)}),b=l.OH({From:d.iC,To:d.iC,EventNumber:l.Yj,EventDesignation:l.Yj,Designation:(0,d.c$)(l.Yj)}),p=l.E$([f,m,b]),I=l.NW({Id:l.Yj,LessonRef:p,StudentRef:d.Or,TypeRef:d.Or,Type:(0,d.c$)(l.Yj),ConfirmationState:(0,d.c$)(l.Yj),ConfirmationStateId:l.ai,Comment:(0,d.c$)(l.Yj),StudentFullName:l.Yj,RegistrationId:l.ai,HRef:l.Yj})},8676:(O,M,o)=>{o.d(M,{c:()=>f});var l=o(4438),d=o(3422);let f=(()=>{class m{constructor(p){this.i18n=p}transform(p,I){return"fr-CH"===this.i18n.detectLanguage()?(Array.from(I).map(h=>p=p.replace(h," ".concat(h))),p):p}static#e=this.\u0275fac=function(I){return new(I||m)(l.rXU(d.W,16))};static#n=this.\u0275pipe=l.EJ8({name:"addSpace",type:m,pure:!0,standalone:!0})}return m})()},2949:(O,M,o)=>{o.d(M,{y:()=>S});var l=o(1626),d=o(5558),f=o(2809),m=o(5783),b=o(5306);const p=m.NW({Id:m.ai,JobTrainer:(0,b.c$)(m.ai),ApprenticeshipManagerId:m.ai,ContractDateFrom:(0,b.c$)(b.iC),ContractDateTo:(0,b.c$)(b.iC)}),I=m.NW({Id:m.ai,RepresentativeId:m.ai,RepresentativeAfterMajority:m.zM});var A=o(6611);const h=m.NW({Id:m.Yj,LessonRef:b.Or,StudentRef:b.Or,TypeRef:b.Or,Type:(0,b.c$)(m.Yj),Comment:(0,b.c$)(m.Yj),StudentFullName:m.Yj,HRef:m.Yj}),y=m.NW({LessonRef:b.Or,StudentRef:b.Or,TypeRef:b.Or,Comment:(0,b.c$)(m.Yj),StudentFullName:m.Yj,Type:(0,b.c$)(m.Yj),RegistrationId:m.ai,HRef:m.Yj});var u=o(9573);const _=m.NW({Id:m.ai,From:b.iC,To:b.iC,EventId:m.ai,EventNumber:m.Yj,EventDesignation:m.Yj,EventLocation:(0,b.c$)(m.Yj),EventManagerInformation:(0,b.c$)(m.Yj)});var $=o(785),g=o(3220),R=o(4438);let S=(()=>{class D extends g.X{constructor(T,e){super(T,e,u.o,"Students","FullName")}getLegalRepresentatives(T,e){return this.http.get(`${this.baseUrl}/${T}/LegalRepresentatives`,{params:e}).pipe((0,d.n)((0,$.k$)(I)))}getCurrentApprenticeshipContracts(T,e){return this.http.get(`${this.baseUrl}/${T}/ApprenticeshipContracts/Current`,e).pipe((0,d.n)((0,$.k$)(p)))}getLessonAbsences(T,e){return this.http.get(`${this.baseUrl}/${T}/LessonAbsences`,{params:e}).pipe((0,d.n)((0,$.k$)(A.a)))}getLessonIncidents(T,e){return this.http.get(`${this.baseUrl}/${T}/LessonIncidents`,{params:e}).pipe((0,d.n)((0,$.k$)(y)))}getLessonDispensations(T,e){return this.http.get(`${this.baseUrl}/${T}/LessonDispensations`,{params:e}).pipe((0,d.n)((0,$.k$)(h)))}getTimetableEntries(T,e={}){return e instanceof l.Nl||(e=new l.Nl({fromObject:e})),e=e.set("fields","Id,From,To,EventId,EventNumber,EventDesignation,EventLocation,EventManagerInformation"),this.http.get(`${this.baseUrl}/${T}/TimetableEntries/CurrentSemester`,{params:e}).pipe((0,d.n)((0,$.k$)(_)))}static#e=this.\u0275fac=function(e){return new(e||D)(R.KVO(l.Qq),R.KVO(f.yy))};static#n=this.\u0275prov=R.jDH({token:D,factory:D.\u0275fac,providedIn:"root"})}return D})()},3220:(O,M,o)=>{o.d(M,{X:()=>A});var l=o(5783),d=o(5558),f=o(6354),m=o(785),b=o(5437),p=o(6952);class A extends p.G{constructor(y,u,_,$,g,R="Id"){super(y,u,_,$),this.labelAttr=g,this.keyAttr=R,this.typeaheadCodec=l.NW((0,b.U)(this.codec.props,[this.keyAttr,this.labelAttr]))}getTypeaheadItems(y,u){const _={params:{fields:[this.keyAttr,this.labelAttr].join(","),[`filter.${this.labelAttr}`]:`~*${y}*`}};return this.http.get(`${this.baseUrl}/`,u?this.mergeHttpParams(_,u):_).pipe((0,d.n)((0,m.k$)(this.typeaheadCodec)),(0,f.T)($=>$.map(g=>({Key:g[this.keyAttr],Value:g[this.labelAttr]}))))}getTypeaheadItemByKey(y){return this.http.get(`${this.baseUrl}/${y}`,{params:{fields:[this.keyAttr,this.labelAttr].join(",")}}).pipe((0,d.n)((0,m.D4)(this.typeaheadCodec)),(0,f.T)(u=>({Key:u[this.keyAttr],Value:u[this.labelAttr]})))}mergeHttpParams(y,u){const _={params:{...y.params,...u.params}};return u.params.fields&&(_.params.fields=y.params.fields.concat(",",u.params.fields)),_}}},152:(O,M,o)=>{o.d(M,{B:()=>m});var l=o(3236),d=o(9974),f=o(4360);function m(b,p=l.E){return(0,d.N)((I,A)=>{let h=null,y=null,u=null;const _=()=>{if(h){h.unsubscribe(),h=null;const g=y;y=null,A.next(g)}};function $(){const g=u+b,R=p.now();if(R{y=g,u=p.now(),h||(h=p.schedule($,b),A.add(h))},()=>{_(),A.complete()},void 0,()=>{y=h=null}))})}}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/811.js b/public/apps/webapp-schulverwaltung/811.js deleted file mode 100644 index ef1b33e2..00000000 --- a/public/apps/webapp-schulverwaltung/811.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[811],{1964:(j,E,d)=>{d.d(E,{m:()=>Je});var I=d(1324),y=d(7729),M=d(1666),U=d(3501),T=d(4273),W=d(8488),O=d(7195);class C{subPriority=0;validate(e,t){return!0}}class ee extends C{constructor(e,t,r,n,a){super(),this.value=e,this.validateValue=t,this.setValue=r,this.priority=n,a&&(this.subPriority=a)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,r){return this.setValue(e,t,this.value,r)}}class te extends C{priority=10;subPriority=-1;set(e,t){return t.timestampIsSet?e:(0,y.w)(e,function J(s,e){const t=e instanceof Date?(0,y.w)(e,0):new e(0);return t.setFullYear(s.getFullYear(),s.getMonth(),s.getDate()),t.setHours(s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()),t}(e,Date))}}class i{run(e,t,r,n){const a=this.parse(e,t,r,n);return a?{setter:new ee(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,t,r){return!0}}var v=d(9857);const w_month=/^(1[0-2]|0?\d)/,w_date=/^(3[0-1]|[0-2]?\d)/,w_dayOfYear=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,w_week=/^(5[0-3]|[0-4]?\d)/,w_hour23h=/^(2[0-3]|[0-1]?\d)/,w_hour24h=/^(2[0-4]|[0-1]?\d)/,w_hour11h=/^(1[0-1]|0?\d)/,w_hour12h=/^(1[0-2]|0?\d)/,w_minute=/^[0-5]?\d/,w_second=/^[0-5]?\d/,w_singleDigit=/^\d/,w_twoDigits=/^\d{1,2}/,w_threeDigits=/^\d{1,3}/,w_fourDigits=/^\d{1,4}/,w_anyDigitsSigned=/^-?\d+/,w_singleDigitSigned=/^-?\d/,w_twoDigitsSigned=/^-?\d{1,2}/,w_threeDigitsSigned=/^-?\d{1,3}/,w_fourDigitsSigned=/^-?\d{1,4}/,p_basicOptionalMinutes=/^([+-])(\d{2})(\d{2})?|Z/,p_basic=/^([+-])(\d{2})(\d{2})|Z/,p_basicOptionalSeconds=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,p_extended=/^([+-])(\d{2}):(\d{2})|Z/,p_extendedOptionalSeconds=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function f(s,e){return s&&{value:e(s.value),rest:s.rest}}function u(s,e){const t=e.match(s);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function x(s,e){const t=e.match(s);if(!t)return null;if("Z"===t[0])return{value:0,rest:e.slice(1)};const r="+"===t[1]?1:-1,n=t[2]?parseInt(t[2],10):0,a=t[3]?parseInt(t[3],10):0,h=t[5]?parseInt(t[5],10):0;return{value:r*(n*v.s0+a*v.Cg+h*v._m),rest:e.slice(t[0].length)}}function _(s){return u(w_anyDigitsSigned,s)}function c(s,e){switch(s){case 1:return u(w_singleDigit,e);case 2:return u(w_twoDigits,e);case 3:return u(w_threeDigits,e);case 4:return u(w_fourDigits,e);default:return u(new RegExp("^\\d{1,"+s+"}"),e)}}function Y(s,e){switch(s){case 1:return u(w_singleDigitSigned,e);case 2:return u(w_twoDigitsSigned,e);case 3:return u(w_threeDigitsSigned,e);case 4:return u(w_fourDigitsSigned,e);default:return u(new RegExp("^-?\\d{1,"+s+"}"),e)}}function H(s){switch(s){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function A(s,e){const t=e>0,r=t?e:1-e;let n;if(r<=50)n=s||100;else{const a=r+50;n=s+100*Math.trunc(a/100)-(s>=a%100?100:0)}return t?n:1-n}function G(s){return s%400==0||s%4==0&&s%100!=0}var ne=d(6045),N=d(7793),B=d(8152),we=d(7012),ye=d(6453);const be=[31,28,31,30,31,30,31,31,30,31,30,31],me=[31,29,31,30,31,30,31,31,30,31,30,31];var F=d(906);function L(s,e,t){const r=(0,M.q)(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=(0,T.a)(s),h=a.getDay(),g=7-n;return(0,F.f)(a,e<0||e>6?e-(h+g)%7:((e%7+7)%7+g)%7-(h+g)%7)}var X=d(5872);const Be={G:new class re extends i{priority=140;parse(e,t,r){switch(t){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,t,r){return t.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},y:new class se extends i{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,r){const n=a=>({year:a,isTwoDigitYear:"yy"===t});switch(t){case"y":return f(c(4,e),n);case"yo":return f(r.ordinalNumber(e,{unit:"year"}),n);default:return f(c(t.length,e),n)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r){const n=e.getFullYear();if(r.isTwoDigitYear){const h=A(r.year,n);return e.setFullYear(h,0,1),e.setHours(0,0,0,0),e}return e.setFullYear("era"in t&&1!==t.era?1-r.year:r.year,0,1),e.setHours(0,0,0,0),e}},Y:new class ae extends i{priority=130;parse(e,t,r){const n=a=>({year:a,isTwoDigitYear:"YY"===t});switch(t){case"Y":return f(c(4,e),n);case"Yo":return f(r.ordinalNumber(e,{unit:"year"}),n);default:return f(c(t.length,e),n)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r,n){const a=(0,ne.h)(e,n);if(r.isTwoDigitYear){const b=A(r.year,a);return e.setFullYear(b,0,n.firstWeekContainsDate),e.setHours(0,0,0,0),(0,N.k)(e,n)}return e.setFullYear("era"in t&&1!==t.era?1-r.year:r.year,0,n.firstWeekContainsDate),e.setHours(0,0,0,0),(0,N.k)(e,n)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class oe extends i{priority=130;parse(e,t){return Y("R"===t?4:t.length,e)}set(e,t,r){const n=(0,y.w)(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),(0,B.b)(n)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class ie extends i{priority=130;parse(e,t){return Y("u"===t?4:t.length,e)}set(e,t,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class ue extends i{priority=120;parse(e,t,r){switch(t){case"Q":case"QQ":return c(t.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth(3*(r-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class ce extends i{priority=120;parse(e,t,r){switch(t){case"q":case"qq":return c(t.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth(3*(r-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class le extends i{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,r){const n=a=>a-1;switch(t){case"M":return f(u(w_month,e),n);case"MM":return f(c(2,e),n);case"Mo":return f(r.ordinalNumber(e,{unit:"month"}),n);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}},L:new class de extends i{priority=110;parse(e,t,r){const n=a=>a-1;switch(t){case"L":return f(u(w_month,e),n);case"LL":return f(c(2,e),n);case"Lo":return f(r.ordinalNumber(e,{unit:"month"}),n);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class he extends i{priority=100;parse(e,t,r){switch(t){case"w":return u(w_week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return c(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r,n){return(0,N.k)(function fe(s,e,t){const r=(0,T.a)(s),n=(0,we.N)(r,t)-e;return r.setDate(r.getDate()-7*n),r}(e,r,n),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class xe extends i{priority=100;parse(e,t,r){switch(t){case"I":return u(w_week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return c(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r){return(0,B.b)(function pe(s,e){const t=(0,T.a)(s),r=(0,ye.s)(t)-e;return t.setDate(t.getDate()-7*r),t}(e,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class Te extends i{priority=90;subPriority=1;parse(e,t,r){switch(t){case"d":return u(w_date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return c(t.length,e)}}validate(e,t){const n=G(e.getFullYear()),a=e.getMonth();return n?t>=1&&t<=me[a]:t>=1&&t<=be[a]}set(e,t,r){return e.setDate(r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class ge extends i{priority=90;subpriority=1;parse(e,t,r){switch(t){case"D":case"DD":return u(w_dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return c(t.length,e)}}validate(e,t){return G(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class De extends i{priority=90;parse(e,t,r){switch(t){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,n){return(e=L(e,r,n)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class ke extends i{priority=90;parse(e,t,r,n){const a=h=>{const b=7*Math.floor((h-1)/7);return(h+n.weekStartsOn+6)%7+b};switch(t){case"e":case"ee":return f(c(t.length,e),a);case"eo":return f(r.ordinalNumber(e,{unit:"day"}),a);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,n){return(e=L(e,r,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class Pe extends i{priority=90;parse(e,t,r,n){const a=h=>{const b=7*Math.floor((h-1)/7);return(h+n.weekStartsOn+6)%7+b};switch(t){case"c":case"cc":return f(c(t.length,e),a);case"co":return f(r.ordinalNumber(e,{unit:"day"}),a);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,n){return(e=L(e,r,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class Ye extends i{priority=90;parse(e,t,r){const n=a=>0===a?7:a;switch(t){case"i":case"ii":return c(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return f(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n);case"iiiii":return f(r.day(e,{width:"narrow",context:"formatting"}),n);case"iiiiii":return f(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n);default:return f(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),n)}}validate(e,t){return t>=1&&t<=7}set(e,t,r){return(e=function Oe(s,e){const t=(0,T.a)(s),r=function Me(s){let t=(0,T.a)(s).getDay();return 0===t&&(t=7),t}(t);return(0,F.f)(t,e-r)}(e,r)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class Ee extends i{priority=80;parse(e,t,r){switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(H(r),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class Ie extends i{priority=80;parse(e,t,r){switch(t){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(H(r),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class ve extends i{priority=80;parse(e,t,r){switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(H(r),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class He extends i{priority=70;parse(e,t,r){switch(t){case"h":return u(w_hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return c(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,r){const n=e.getHours()>=12;return e.setHours(n&&r<12?r+12:n||12!==r?r:0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},H:new class Ne extends i{priority=70;parse(e,t,r){switch(t){case"H":return u(w_hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return c(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,r){return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class Le extends i{priority=70;parse(e,t,r){switch(t){case"K":return u(w_hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return c(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},k:new class Qe extends i{priority=70;parse(e,t,r){switch(t){case"k":return u(w_hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return c(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,r){return e.setHours(r<=24?r%24:r,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class qe extends i{priority=60;parse(e,t,r){switch(t){case"m":return u(w_minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return c(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setMinutes(r,0,0),e}incompatibleTokens=["t","T"]},s:new class Re extends i{priority=50;parse(e,t,r){switch(t){case"s":return u(w_second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return c(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setSeconds(r,0),e}incompatibleTokens=["t","T"]},S:new class We extends i{priority=30;parse(e,t){return f(c(t.length,e),n=>Math.trunc(n*Math.pow(10,3-t.length)))}set(e,t,r){return e.setMilliseconds(r),e}incompatibleTokens=["t","T"]},X:new class Ce extends i{priority=10;parse(e,t){switch(t){case"X":return x(p_basicOptionalMinutes,e);case"XX":return x(p_basic,e);case"XXXX":return x(p_basicOptionalSeconds,e);case"XXXXX":return x(p_extendedOptionalSeconds,e);default:return x(p_extended,e)}}set(e,t,r){return t.timestampIsSet?e:(0,y.w)(e,e.getTime()-(0,X.G)(e)-r)}incompatibleTokens=["t","T","x"]},x:new class _e extends i{priority=10;parse(e,t){switch(t){case"x":return x(p_basicOptionalMinutes,e);case"xx":return x(p_basic,e);case"xxxx":return x(p_basicOptionalSeconds,e);case"xxxxx":return x(p_extendedOptionalSeconds,e);default:return x(p_extended,e)}}set(e,t,r){return t.timestampIsSet?e:(0,y.w)(e,e.getTime()-(0,X.G)(e)-r)}incompatibleTokens=["t","T","X"]},t:new class Ae extends i{priority=40;parse(e){return _(e)}set(e,t,r){return[(0,y.w)(e,1e3*r),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class Ge extends i{priority=20;parse(e){return _(e)}set(e,t,r){return[(0,y.w)(e,r),{timestampIsSet:!0}]}incompatibleTokens="*"}},Fe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Xe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ze=/^'([^]*?)'?$/,Ke=/''/g,Ze=/\S/,Ve=/[a-zA-Z]/;function je(s){return s.match(ze)[1].replace(Ke,"'")}var Ue=d(4903),z=d(4438);let Je=(()=>{class s extends I.tN{parse(t){const r=t?function $e(s,e,t,r){const n=function k(){return Object.assign({},(0,M.q)())}(),a=r?.locale??n.locale??U.c,h=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,b=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0;if(""===e)return""===s?(0,T.a)(t):(0,y.w)(t,NaN);const P={firstWeekContainsDate:h,weekStartsOn:b,locale:a},g=[new te],Q=e.match(Xe).map(o=>{const l=o[0];return l in W.m?(0,W.m[l])(o,a.formatLong):o}).join("").match(Fe),q=[];for(let o of Q){!r?.useAdditionalWeekYearTokens&&(0,O.xM)(o)&&(0,O.Ss)(o,e,s),!r?.useAdditionalDayOfYearTokens&&(0,O.ef)(o)&&(0,O.Ss)(o,e,s);const l=o[0],m=Be[l];if(m){const{incompatibleTokens:Z}=m;if(Array.isArray(Z)){const V=q.find($=>Z.includes($.token)||$.token===l);if(V)throw new RangeError(`The format string mustn't contain \`${V.fullToken}\` and \`${o}\` at the same time`)}else if("*"===m.incompatibleTokens&&q.length>0)throw new RangeError(`The format string mustn't contain \`${o}\` and any other token at the same time`);q.push({token:l,fullToken:o});const R=m.run(s,o,a.match,P);if(!R)return(0,y.w)(t,NaN);g.push(R.setter),s=R.rest}else{if(l.match(Ve))throw new RangeError("Format string contains an unescaped latin alphabet character `"+l+"`");if("''"===o?o="'":"'"===l&&(o=je(o)),0!==s.indexOf(o))return(0,y.w)(t,NaN);s=s.slice(o.length)}}if(s.length>0&&Ze.test(s))return(0,y.w)(t,NaN);const Se=g.map(o=>o.priority).sort((o,l)=>l-o).filter((o,l,m)=>m.indexOf(o)===l).map(o=>g.filter(l=>l.priority===o).sort((l,m)=>m.subPriority-l.subPriority)).map(o=>o[0]);let D=(0,T.a)(t);if(isNaN(D.getTime()))return(0,y.w)(t,NaN);const K={};for(const o of Se){if(!o.validate(D,P))return(0,y.w)(t,NaN);const l=o.set(D,K,P);Array.isArray(l)?(D=l[0],Object.assign(K,l[1])):D=l}return(0,y.w)(t,D)}(t,"dd.MM.yyyy",new Date):null;return r?{year:r.getFullYear(),month:r.getMonth(),day:r.getDay()}:null}format(t){return t?(0,Ue.GP)(new Date(t.year,t.month-1,t.day),"dd.MM.yyyy"):""}static#e=this.\u0275fac=(()=>{let t;return function(n){return(t||(t=z.xGo(s)))(n||s)}})();static#t=this.\u0275prov=z.jDH({token:s,factory:s.\u0275fac})}return s})()},3460:(j,E,d)=>{d.d(E,{A:()=>M});var I=d(7672);const M=function y(k){return k&&k.length?(0,I.A)(k):[]}}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/872.js b/public/apps/webapp-schulverwaltung/872.js deleted file mode 100644 index 2c863d83..00000000 --- a/public/apps/webapp-schulverwaltung/872.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[872],{2357:(j,$,n)=>{n.r($),n.d($,{OPEN_ABSENCES_ROUTES:()=>le});var i=n(9733),d=n(177),b=n(5212),g=n(4572),c=n(983),f=n(1413),E=n(5558),p=n(6354),y=n(6977),A=n(5964),m=n(6697),C=n(9728),_=n(2637),F=n(235),e=n(4438),v=n(5539),T=n(4412),u=n(7786),D=n(4668),a=n(3382),h=n(8358),S=n(4125),U=n(916),Y=n(9067),x=n(9366),W=n(2673),L=n(3955);let R=(()=>{class o{constructor(t,s,r,l){this.lessonPresencesService=t,this.selectionService=s,this.loadingService=r,this.translate=l,this.loading$=this.loadingService.loading$,this.search$=new T.t(""),this.updateUnconfirmedAbsences$=new f.B,this.unconfirmedAbsences$=(0,u.h)(this.loadUnconfirmedAbsences(),this.updateUnconfirmedAbsences$).pipe((0,D.t)(1)),this.entries$=this.unconfirmedAbsences$.pipe((0,p.T)(U.fJ),(0,D.t)(1)),this.sortCriteriaSubject$=new T.t({primarySortKey:"date",ascending:!1}),this.sortCriteria$=this.sortCriteriaSubject$.asObservable(),this.sortedEntries$=(0,g.z)([this.entries$,this.sortCriteria$]).pipe((0,p.T)((0,a.i)(U.B7))),this.filteredEntries$=(0,g.z)([this.sortedEntries$,this.search$]).pipe((0,p.T)((0,a.i)(h.x)),(0,D.t)(1)),this.currentDetail=null}getUnconfirmedAbsences(t,s){return this.entries$.pipe((0,p.T)(r=>{const l=r.find(M=>M.dateString===t&&M.studentId===s);return l?l.absences:[]}))}getAllUnconfirmedAbsencesForStudent(t){return this.entries$.pipe((0,p.T)(s=>s.filter(r=>r.studentId===t).reduce((r,l)=>r.concat(l.absences),[])))}toggleSort(t){this.sortCriteriaSubject$.pipe((0,m.s)(1)).subscribe(s=>{this.sortCriteriaSubject$.next(s.primarySortKey===t?{primarySortKey:t,ascending:!s.ascending}:{primarySortKey:t,ascending:"name"===t})})}get confirmBackLink(){return this.currentDetail?["/open-absences/detail",this.currentDetail.personId,this.currentDetail.date]:["/open-absences"]}updateAfterConfirm(){(0,g.z)([this.unconfirmedAbsences$.pipe((0,m.s)(1)),this.selectionService.selectedIds$.pipe((0,m.s)(1))]).pipe((0,p.T)((0,a.i)(U.Xv))).subscribe(t=>{this.selectionService.clear(),this.updateUnconfirmedAbsences$.next(t)})}buildMailToString(t,s){const r=t.Email,l=this.translate.instant("open-absences.detail.mail.subject"),M=s.map(N=>(0,S.L0)(N)).join("%0D%0A");let I=`${this.translate.instant("open-absences.detail.mail.body")}%0D%0A${M}`;return I.length>=1600&&(I=`${I.substring(0,1500)}%0D%0A${this.translate.instant("open-absences.detail.mail.bodyToLargeForEmailTo")}`),`${r}?subject=${l}&body=${I}`}loadUnconfirmedAbsences(){return this.loadingService.load(this.lessonPresencesService.getListOfUnconfirmed())}static#e=this.\u0275fac=function(s){return new(s||o)(e.KVO(Y.g),e.KVO(x.s),e.KVO(W.U),e.KVO(L.c$))};static#t=this.\u0275prov=e.jDH({token:o,factory:o.\u0275fac})}return o})();var G=n(8413),V=n(4688),K=n(1769);const X=()=>["/open-absences"];let J=(()=>{class o{constructor(t,s,r,l,M,I,N){this.router=t,this.route=s,this.openAbsencesService=r,this.presenceTypesService=l,this.personService=M,this.selectionService=I,this.scrollPosition=N,this.absences$=this.route.paramMap.pipe((0,E.n)(this.getAbsencesForParams.bind(this))),this.hasAbsences$=this.absences$.pipe((0,p.T)((0,C.NT)(1))),this.studentFullName$=this.absences$.pipe((0,p.T)(O=>O[0]&&O[0].StudentFullName||null)),this.allSelected$=(0,g.z)([this.absences$,this.selectionService.selection$]).pipe((0,p.T)(([O,B])=>O.length===B.length)),this.studentEmail$=this.absences$.pipe((0,p.T)(O=>O[0]&&O[0].StudentRef.Id||null),(0,E.n)(O=>O?this.personService.getByIdWithEmailInfos(O):c.w)),this.allUnconfirmedAbsencesForStudent$=this.route.paramMap.pipe((0,E.n)(this.getAbsencesForStudentParam.bind(this))),this.mailTo$=(0,g.z)([this.studentEmail$,this.allUnconfirmedAbsencesForStudent$]).pipe((0,p.T)(([O,B])=>this.openAbsencesService.buildMailToString(O,B))),this.destroy$=new f.B}ngOnInit(){this.selectionService.clearNonLessonPresences(),this.route.paramMap.pipe((0,y.Q)(this.destroy$)).subscribe(t=>this.openAbsencesService.currentDetail={date:String(t.get("date")),personId:Number(t.get("personId"))}),this.hasAbsences$.pipe((0,y.Q)(this.destroy$),(0,A.p)((0,b.AU)(C.zz))).subscribe(()=>this.router.navigate(["/open-absences"]))}ngAfterViewInit(){this.scrollPosition.restore()}ngOnDestroy(){this.destroy$.next()}toggleAll(t){t?this.absences$.pipe((0,m.s)(1)).subscribe(s=>this.selectionService.clear(s)):this.selectionService.clear()}onRowClick(t,s){t.target!==s&&s.click()}getPresenceTypeDesignation(t){return this.presenceTypesService.displayedTypes$.pipe((0,p.T)(s=>t.TypeRef.Id&&s.find(r=>r.Id===t.TypeRef.Id)?.Designation||null))}getAbsencesForParams(t){return this.openAbsencesService.getUnconfirmedAbsences(String(t.get("date")),Number(t.get("personId")))}getAbsencesForStudentParam(t){return this.openAbsencesService.getAllUnconfirmedAbsencesForStudent(Number(t.get("personId")))}static#e=this.\u0275fac=function(s){return new(s||o)(e.rXU(v.Ix),e.rXU(v.nX),e.rXU(R),e.rXU(G._),e.rXU(V.a),e.rXU(x.s),e.rXU(K.W))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["bkd-open-absences-detail"]],standalone:!0,features:[e.aNF],decls:6,vars:10,consts:[[3,"link"],[3,"absences$","selectionService","confirmLink","displayEmail","mailTo$"]],template:function(s,r){1&s&&(e.j41(0,"div"),e.nrm(1,"bkd-backlink",0),e.j41(2,"h1"),e.EFF(3),e.nI1(4,"async"),e.k0s()(),e.nrm(5,"bkd-student-dossier-absences",1)),2&s&&(e.R7$(),e.Y8G("link",e.lJ4(9,X)),e.R7$(2),e.JRh(e.bMT(4,7,r.studentFullName$)),e.R7$(2),e.Y8G("absences$",r.absences$)("selectionService",r.selectionService)("confirmLink","/open-absences/confirm")("displayEmail",!0)("mailTo$",r.mailTo$))},dependencies:[_.P,F.A,d.Jj],styles:['.content[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}.back[_ngcontent-%COMP%]{color:#000;text-decoration:none}.back[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%], .back[_ngcontent-%COMP%]:active span[_ngcontent-%COMP%]{text-decoration:underline}.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}.checkbox[_ngcontent-%COMP%]{grid-area:checkbox;margin:0;padding:.6rem .5rem 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}.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){.content[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.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 o})();var z=n(2239),H=n(1517),Q=n(7887),Z=n(5063);const w=(o,P,t)=>({selection:o,entries:P,sortCriteria:t}),k=o=>({count:o}),q=(o,P)=>["detail",o,P];function ee(o,P){if(1&o){const t=e.RV6();e.j41(0,"div",16),e.bIt("click",function(){const r=e.eBV(t).$implicit,l=e.XpG(4);return e.Njj(l.openAbsencesService.toggleSort(r))}),e.EFF(1),e.nI1(2,"translate"),e.j41(3,"span",17),e.EFF(4),e.k0s()()}if(2&o){const t=P.$implicit,s=e.XpG(3).bkdLet,r=e.XpG();e.Y8G("className",t),e.R7$(),e.SpI(" ",e.bMT(2,3,"open-absences.list.header."+t)," "),e.R7$(3),e.JRh(r.getSortDirectionCharacter(s.sortCriteria,t))}}function te(o,P){if(1&o){const t=e.RV6();e.j41(0,"div")(1,"div",18)(2,"div",19),e.bIt("click",function(r){e.eBV(t);const l=e.sdS(4),M=e.XpG(4);return e.Njj(M.onCheckboxCellClick(r,l))}),e.j41(3,"input",13,2),e.nI1(5,"async"),e.bIt("change",function(){const r=e.eBV(t).$implicit,l=e.XpG(4);return e.Njj(l.selectionService.toggle(r))}),e.k0s()(),e.j41(6,"div",20)(7,"a",21),e.EFF(8),e.k0s()(),e.j41(9,"div",22),e.EFF(10),e.k0s(),e.j41(11,"div",23),e.EFF(12),e.nI1(13,"translate"),e.k0s(),e.j41(14,"div",24),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"div",25),e.EFF(18),e.nI1(19,"bkdDaysDifference"),e.k0s(),e.j41(20,"div",26),e.EFF(21),e.nI1(22,"date"),e.k0s()()()}if(2&o){const t=P.$implicit,s=e.XpG(4);e.R7$(3),e.Y8G("checked",e.bMT(5,9,s.selectionService.isSelected$(t))),e.R7$(4),e.Y8G("routerLink",e.l_i(22,q,t.studentId,t.dateString)),e.R7$(),e.JRh(t.studentFullName),e.R7$(2),e.SpI(" ",t.studyClassNumber," "),e.R7$(2),e.SpI(" ",e.i5U(13,11,s.getLessonsCountKey(t),e.eq3(25,k,t.lessonsCount))," "),e.R7$(3),e.Lme(" ",t.studyClassNumber,", ",e.i5U(16,14,s.getLessonsCountKey(t),e.eq3(27,k,t.lessonsCount))," "),e.R7$(3),e.SpI(" ",e.bMT(19,17,t.date)," "),e.R7$(3),e.JRh(e.i5U(22,19,t.date,"dd.MM.yyyy"))}}function ne(o,P){if(1&o){const t=e.RV6();e.qex(0),e.j41(1,"div")(2,"bkd-resettable-input",5),e.nI1(3,"async"),e.nI1(4,"translate"),e.nI1(5,"translate"),e.bIt("valueChange",function(r){e.eBV(t);const l=e.XpG(3);return e.Njj(l.openAbsencesService.search$.next(r))}),e.k0s(),e.j41(6,"div",6)(7,"div",7),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"a",8)(11,"i",9),e.EFF(12,"edit"),e.k0s()()()(),e.j41(13,"div",10)(14,"div",11)(15,"div",12)(16,"input",13),e.bIt("change",function(r){e.eBV(t);const l=e.XpG(3);return e.Njj(l.onToggleAll(null==r.currentTarget?null:r.currentTarget.checked))}),e.k0s()(),e.DNE(17,ee,5,5,"div",14),e.k0s(),e.DNE(18,te,23,29,"div",15),e.k0s(),e.bVm()}if(2&o){const t=e.XpG(2).bkdLet,s=e.XpG();e.R7$(2),e.Y8G("value",e.bMT(3,9,s.openAbsencesService.search$))("placeholder",e.bMT(4,11,"open-absences.search-by-name-or-class"))("label",e.bMT(5,13,"open-absences.search")),e.R7$(6),e.SpI(" ",e.i5U(9,15,"open-absences.selected",e.eq3(18,k,t.selection.length))," "),e.R7$(2),e.AVh("disabled",0===t.selection.length),e.R7$(6),e.Y8G("checked",t.selection.length===t.entries.length),e.R7$(),e.Y8G("ngForOf",s.primarySortKeys),e.R7$(),e.Y8G("ngForOf",t.entries)}}function se(o,P){1&o&&(e.j41(0,"p",27),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&o&&(e.R7$(),e.JRh(e.bMT(2,1,"open-absences.noEntries")))}function ie(o,P){if(1&o&&(e.qex(0),e.DNE(1,ne,19,20,"ng-container",4),e.nI1(2,"async"),e.DNE(3,se,3,3,"ng-template",null,1,e.C5r),e.bVm()),2&o){let t;const s=e.sdS(4),r=e.XpG().bkdLet,l=e.XpG();e.R7$(),e.Y8G("ngIf",(null!==(t=null==(t=e.bMT(2,2,l.openAbsencesService.sortedEntries$))?null:t.length)&&void 0!==t?t:0)>0||(null==r.entries?null:r.entries.length)>0)("ngIfElse",s)}}function oe(o,P){1&o&&e.nrm(0,"bkd-spinner")}function re(o,P){if(1&o&&(e.j41(0,"div"),e.DNE(1,ie,5,4,"ng-container",4),e.nI1(2,"async"),e.DNE(3,oe,1,0,"ng-template",null,0,e.C5r),e.k0s()),2&o){const t=e.sdS(4),s=e.XpG();e.R7$(),e.Y8G("ngIf",!1===e.bMT(2,2,s.openAbsencesService.loading$))("ngIfElse",t)}}let ce=(()=>{class o{constructor(t,s,r){this.openAbsencesService=t,this.selectionService=s,this.scrollPosition=r,this.primarySortKeys=["name","date"],this.destroy$=new f.B}ngOnInit(){this.openAbsencesService.currentDetail=null,this.selectionService.clearNonOpenAbsencesEntries()}ngAfterViewInit(){this.scrollPosition.restore()}ngOnDestroy(){this.destroy$.next()}onToggleAll(t){this.openAbsencesService.filteredEntries$.pipe((0,m.s)(1)).subscribe(s=>{this.selectionService.clear(t?s:null)})}onCheckboxCellClick(t,s){t.target!==s&&s.click()}getSortDirectionCharacter(t,s){return t.primarySortKey!==s?"":t.ascending?"\u2193":"\u2191"}getLessonsCountKey(t){return"open-absences.list.content.lessonsCount."+(1===t.lessonsCount?"singular":"plural")}static#e=this.\u0275fac=function(s){return new(s||o)(e.rXU(R),e.rXU(x.s),e.rXU(K.W))};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["bkd-open-absences-list"]],standalone:!0,features:[e.aNF],decls:7,vars:14,consts:[["loading",""],["noEntries",""],["checkbox",""],[4,"bkdLet"],[4,"ngIf","ngIfElse"],[1,"d-flex","header-search",3,"valueChange","value","placeholder","label"],[1,"d-flex","align-items-center","justify-content-between","mt-1"],[1,"selection-count","ps-1"],["routerLink","/open-absences/confirm",1,"edit","btn","btn-primary","btn-edit","mt-1","mb-2"],[1,"material-icons"],[1,"content"],[1,"absence-header"],[1,"checkbox"],["type","checkbox",1,"form-check-input",3,"change","checked"],[3,"className","click",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[3,"click","className"],[1,"sort-direction"],[1,"absence-entry"],[1,"checkbox",3,"click"],[1,"name","pe-2"],[3,"routerLink"],[1,"study-class"],[1,"lessons-count"],[1,"study-class-lessons-count"],[1,"days-ago"],[1,"date"],[1,"mt-3"]],template:function(s,r){1&s&&(e.j41(0,"h1"),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.DNE(3,re,5,4,"div",3),e.nI1(4,"async"),e.nI1(5,"async"),e.nI1(6,"async")),2&s&&(e.R7$(),e.JRh(e.bMT(2,2,"open-absences.title")),e.R7$(2),e.Y8G("bkdLet",e.sMw(10,w,e.bMT(4,4,r.selectionService.selection$),e.bMT(5,6,r.openAbsencesService.filteredEntries$),e.bMT(6,8,r.openAbsencesService.sortCriteria$))))},dependencies:[Q.N,d.bT,z.B,v.Wk,d.pM,H.t,d.Jj,d.vh,L.h,L.D9,Z.j],styles:['.header-search[_ngcontent-%COMP%]{max-width:500px}.absence-header[_ngcontent-%COMP%]{cursor:pointer;padding:1rem;display:grid;grid-template-areas:"checkbox name date";grid-template-columns:min-content 5fr 1fr;border-top:1px solid #dee2e6;border-bottom:2px solid #dee2e6;align-items:center}.absence-entry[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid #dee2e6;display:grid;grid-template-areas:"checkbox name study-class lessons-count days-ago date";grid-template-columns:min-content 2fr 1fr 1fr 1fr 1fr;align-items:center}.checkbox[_ngcontent-%COMP%]{align-self:start;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}.lessons-count[_ngcontent-%COMP%]{grid-area:lessons-count}.study-class[_ngcontent-%COMP%]{grid-area:study-class}.study-class-lessons-count[_ngcontent-%COMP%]{grid-area:study-class-lessons-count;display:none}.days-ago[_ngcontent-%COMP%]{color:#6c757d;grid-area:days-ago}.date[_ngcontent-%COMP%]{grid-area:date}@media (max-width: 750px){.content[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.absence-header[_ngcontent-%COMP%]{grid-template-areas:"checkbox name date";grid-template-columns:min-content 3fr 2fr}.absence-entry[_ngcontent-%COMP%]{grid-template-areas:"checkbox name date" "checkbox study-class-lessons-count days-ago";grid-template-columns:min-content 3fr 2fr}.study-class-lessons-count[_ngcontent-%COMP%]{display:block}.study-class[_ngcontent-%COMP%], .lessons-count[_ngcontent-%COMP%]{display:none}.days-ago[_ngcontent-%COMP%], .study-class-lessons-count[_ngcontent-%COMP%]{font-size:.875rem;color:#adb5bd}}'],changeDetection:0})}return o})();var ae=n(1876);const le=[{path:"",component:(()=>{class o{constructor(){}static#e=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275cmp=e.VBU({type:o,selectors:[["bkd-open-absences"]],standalone:!0,features:[e.Jv_([R,x.s,{provide:ae.G,useExisting:R}]),e.aNF],decls:1,vars:0,template:function(s,r){1&s&&e.nrm(0,"router-outlet")},dependencies:[v.n3],changeDetection:0})}return o})(),children:[{path:"",component:ce,data:{restoreScrollPositionFrom:["/open-absences/detail/:personId/:date","/open-absences/confirm"]}},{path:"detail/:personId/:date",component:J,data:{restoreScrollPositionFrom:["/open-absences/confirm"]}},{path:"confirm",component:i.k}]}]},5666:(j,$,n)=>{n.d($,{H:()=>d});var i=n(5783);const d=i.NW({Key:i.KC([i.ai,i.Yj]),Value:i.Yj})},8296:(j,$,n)=>{n.d($,{v:()=>p});var i=n(5558),d=n(4668),b=n(2809),g=n(5666),c=n(785),f=n(4438),E=n(1626);let p=(()=>{class y{constructor(m,C){this.http=m,this.settings=C}getAbsenceConfirmationStates(){return this.http.get(`${this.baseUrl}/AbsenceConfirmationStates`).pipe((0,i.n)((0,c.k$)(g.H)),(0,d.t)(1))}getStayPermits(){return this.http.get(`${this.baseUrl}/StayPermits`).pipe((0,i.n)((0,c.k$)(g.H)),(0,d.t)(1))}get baseUrl(){return`${this.settings.apiUrl}/DropDownItems`}static#e=this.\u0275fac=function(C){return new(C||y)(f.KVO(E.Qq),f.KVO(b.yy))};static#t=this.\u0275prov=f.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})()},4688:(j,$,n)=>{n.d($,{a:()=>C});var i=n(5783),d=n(5558),b=n(6354),g=n(2809),c=n(5306);const f=i.NW({Id:i.ai,FormOfAddress:i.Yj,Nationality:(0,c.c$)(i.Yj),AddressLine1:(0,c.c$)(i.Yj),AddressLine2:(0,c.c$)(i.Yj),BillingAddress:(0,c.c$)(i.Yj),Birthdate:(0,c.c$)(c.iC),CorrespondenceAddress:(0,c.c$)(i.Yj),DisplayEmail:(0,c.c$)(i.Yj),Email:(0,c.bW)(i.Yj),Email2:(0,c.bW)(i.Yj),FirstName:(0,c.c$)(i.Yj),Gender:(0,c.c$)(i.KC([i.eu("M"),i.eu("F"),i.eu("X")])),HomeTown:(0,c.c$)(i.Yj),LastName:(0,c.c$)(i.Yj),FullName:(0,c.c$)(i.Yj),Location:(0,c.c$)(i.Yj),MiddleName:(0,c.c$)(i.Yj),NativeLanguage:(0,c.c$)(i.Yj),PhoneMobile:(0,c.c$)(i.Yj),PhonePrivate:(0,c.c$)(i.Yj),PhoneBusiness:(0,c.bW)(i.Yj),SocialSecurityNumber:(0,c.c$)(i.Yj),StayPermit:(0,c.c$)(i.ai),StayPermitExpiry:(0,c.c$)(c.iC),Zip:(0,c.c$)(i.Yj)});var E=n(785),p=n(5437),y=n(6952),A=n(4438),m=n(1626);let C=(()=>{class _ extends y.G{constructor(e,v){super(e,v,f,"Persons"),this.personEmailCodec=i.NW((0,p.U)(this.codec.props,["Email","FormOfAddress"]))}getListForIds(e){return this.getList({params:{"filter.Id":`;${e.join(";")}`}})}getMyself(e){return this.http.get(`${this.baseUrl}/me`,e).pipe((0,d.n)((0,E.D4)(this.codec)))}getByIdWithEmailInfos(e){return this.http.get(`${this.baseUrl}/`,{params:{"filter.Id=":e.toString(),fields:["FormOfAddress","Email"].join(",")}}).pipe((0,d.n)((0,E.k$)(this.personEmailCodec)),(0,b.T)(v=>v[0]))}update(e,v,T,u){return this.http.put(`${this.baseUrl}/${e}`,{PhonePrivate:v,PhoneMobile:T,Email2:u}).pipe((0,b.T)(()=>{}))}static#e=this.\u0275fac=function(v){return new(v||_)(A.KVO(m.Qq),A.KVO(g.yy))};static#t=this.\u0275prov=A.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}return _})()},1769:(j,$,n)=>{n.d($,{W:()=>F});var i=n(5539),d=n(1413),b=n(7673),g=n(5964),c=n(6354),f=n(6697),E=n(1397),p=n(5558),y=n(7799),A=n(4668),m=n(6977),C=n(4438),_=n(177);let F=(()=>{class u{constructor(a,h){this.router=a,this.viewportScroller=h,this.scrollPositions={},this.previousRoute=null,this.currentRoute=this.getInitialActivatedRouteSnapshot(),this.currentScrollPosition=[0,0],this.destroy$=new d.B,this.activationEnd$=this.router.events.pipe((0,g.p)(e)),this.navigationEnd$=this.router.events.pipe((0,g.p)(T)),this.navigationStart$=this.router.events.pipe((0,g.p)(v)),this.scrollPosition$=this.navigationStart$.pipe((0,c.T)(this.getScrollPosition.bind(this))),this.route$=this.activationEnd$.pipe((0,f.s)(1)).pipe((0,E.Z)(S=>[(0,b.of)(S),this.navigationEnd$.pipe((0,p.n)(()=>this.activationEnd$.pipe((0,f.s)(1))))]),(0,y.w)(),(0,c.T)(S=>S.snapshot),(0,A.t)(1)),this.scrollPosition$.pipe((0,m.Q)(this.destroy$)).subscribe(S=>this.currentScrollPosition=S),this.route$.pipe((0,m.Q)(this.destroy$)).subscribe(S=>{this.previousRoute=this.currentRoute,this.currentRoute=S})}ngOnDestroy(){this.destroy$.next()}restore(){if(!this.currentRoute||!this.requiresStoring(this.currentRoute))return;if(this.previousRoute&&this.shouldStoreFor(this.currentRoute,this.previousRoute)){const h=this.getPath(this.currentRoute);this.scrollToPosition(this.scrollPositions[h]||[0,0])}const a=this.currentRoute;this.route$.pipe((0,f.s)(1),(0,m.Q)(this.destroy$),(0,g.p)(h=>this.shouldStoreFor(a,h))).subscribe(()=>{const h=this.getPath(a);this.scrollPositions[h]=this.currentScrollPosition})}getScrollPosition(){return this.viewportScroller.getScrollPosition()}scrollToPosition(a){this.viewportScroller.scrollToPosition(a)}getPath(a){return a?"/"+a.pathFromRoot.map(h=>h.routeConfig&&h.routeConfig.path).filter(h=>h).join("/"):"/"}requiresStoring(a){return!!(a&&a.routeConfig&&a.routeConfig.data&&Array.isArray(a.routeConfig.data.restoreScrollPositionFrom)&&a.routeConfig.data.restoreScrollPositionFrom.length>0)}shouldStoreFor(a,h){return(a&&a.routeConfig&&a.routeConfig.data&&Array.isArray(a.routeConfig.data.restoreScrollPositionFrom)?a.routeConfig.data.restoreScrollPositionFrom:[]).includes(this.getPath(h))}getInitialActivatedRouteSnapshot(){let a=this.router.routerState.snapshot.root;for(;a.firstChild;)a=a.firstChild;return a}static#e=this.\u0275fac=function(h){return new(h||u)(C.KVO(i.Ix),C.KVO(_.Xr))};static#t=this.\u0275prov=C.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}return u})();function e(u){return u instanceof i._d}function v(u){return u instanceof i.Z}function T(u){return u instanceof i.wF}},4297:(j,$,n)=>{function i(b,g){return d(b).includes(g)}function d(b){return b?b.split(";"):[]}n.d($,{O:()=>d,h:()=>i})}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/891.js b/public/apps/webapp-schulverwaltung/891.js deleted file mode 100644 index c66f90fb..00000000 --- a/public/apps/webapp-schulverwaltung/891.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[891],{7891:(Re,A,r)=>{r.r(A),r.d(A,{PRESENCE_CONTROL_ROUTES:()=>un});var F=r(6407),h=r(177),g=r(3955),O=r(4412),f=r(4572),E=r(7468),l=r(6354),P=r(6697),v=r(5558),z=r(2637),R=r(1517),S=r(7887),k=r(3382),N=r(7721),Z=r(8268),e=r(4438);let y=(()=>{class s extends Z.A{static#e=this.\u0275fac=(()=>{let t;return function(o){return(t||(t=e.xGo(s)))(o||s)}})();static#t=this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac})}return s})();function De(s,c){return[...s].sort(function p(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 _(s,c){return s.map(t=>function T(s,c){return{id:s.IdPerson,name:c.find(t=>t.StudentRef.Id===s.IdPerson)?.StudentFullName||"",group:s.Value,detail:s}}(t,c))}function ge(s,c){return s.find(t=>t.VssId===c.subscriptionDetailGroupId)}var C=r(9417),b=r(1324);function Fe(s,c){if(1&s){const t=e.RV6();e.j41(0,"div",5)(1,"input",6),e.bIt("change",function(){const o=e.eBV(t).$implicit,i=e.XpG();return e.Njj(i.onSelectionChange(o))}),e.k0s(),e.j41(2,"label",7),e.EFF(3),e.k0s()()}if(2&s){const t=c.$implicit,n=c.index,o=e.XpG();e.R7$(),e.Mz_("id","group-",n,""),e.Y8G("checked",t.id===o.selected.id)("value",t.id),e.R7$(),e.Mz_("for","group-",n,""),e.R7$(),e.SpI(" ",t.label," ")}}var X=function(s){return s.Select="select",s.Assign="assign",s}(X||{});let je=(()=>{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===X.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.rXU(b.Lw),e.rXU(g.c$))};static#t=this.\u0275cmp=e.VBU({type:s,selectors:[["bkd-presence-control-group-dialog"]],inputs:{dialogMode:"dialogMode",subscriptionDetailsDefinitions:"subscriptionDetailsDefinitions",group:"group"},standalone:!0,features:[e.aNF],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,"change","id","checked","value"],[1,"form-check-label",3,"for"]],template:function(n,o){1&n&&(e.j41(0,"div",0)(1,"p"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"form"),e.DNE(5,Fe,4,7,"div",1),e.k0s()(),e.j41(6,"div",2)(7,"button",3),e.bIt("click",function(){return o.activeModal.dismiss()}),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"button",4),e.bIt("click",function(){return o.activeModal.close(o.getSelectedGroup())}),e.EFF(11),e.nI1(12,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,4,o.title)," "),e.R7$(3),e.Y8G("ngForOf",o.groupOptions),e.R7$(3),e.SpI(" ",e.bMT(9,6,"presence-control.groups.cancel")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"presence-control.groups.save")," "))},dependencies:[C.YN,C.qT,C.cb,C.cV,h.pM,g.h,g.D9]})}return s})();var x=r(5539),xe=r(3601),Ge=r(4903),q=r(977),ee=r(3460),$=r(1413),G=r(7786),w=r(7673),we=r(1584),te=r(3294),M=r(4668),he=r(5245),D=r(6977),ne=r(5964),j=r(2809),Y=r(6914),se=r(172),Ue=r(2930),me=r(1037),oe=r(2055);function Ae(s){return{Id:s?s.Id:null,HRef:null}}var fe=r(7233);function ie(s){return c=>c.reduce((t,n)=>t+(n.presenceCategory===s?1:0),0)}var re=r(3515),_e=r(9067),be=r(6611),Xe=r(785),ve=r(6952),H=r(1626);let Ye=(()=>{class s extends ve.G{constructor(t,n){super(t,n,be.a,"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.n)((0,Xe.k$)(be.a)))}static#e=this.\u0275fac=function(n){return new(n||s)(e.KVO(H.Qq),e.KVO(j.yy))};static#t=this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var ce=r(8413),Ce=r(5529),ae=r(2771),le=r(9172),He=r(5400),Ke=r(1015);let Pe=(()=>{class s extends ve.G{constructor(t,n){super(t,n,Ke.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.T)(()=>{}))}static#e=this.\u0275fac=function(n){return new(n||s)(e.KVO(H.Qq),e.KVO(j.yy))};static#t=this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var K=r(2673);const ye="presence-control-group";let W=(()=>{class s{constructor(t,n,o,i,a){this.userSettings=t,this.eventService=n,this.subscriptionDetailsService=o,this.loadingService=i,this.settings=a,this.selectGroup$=new $.B,this.selectedLesson$=new ae.m,this.lessonPresences$=new ae.m,this.reloadSubscriptionDetails$=new $.B,this.defaultGroup=null,this.savedGroup$=this.selectedLesson$.pipe((0,v.n)(d=>this.userSettings.getPresenceControlGroupView().pipe((0,l.T)(m=>this.findGroupByLesson(m,d))))),this.group$=(0,G.h)(this.selectGroup$,this.savedGroup$).pipe((0,le.Z)(this.defaultGroup),(0,M.t)(1)),this.loading$=this.loadingService.loading(ye),this.subscriptionDetailsDefinitions$=this.selectedLesson$.pipe((0,l.T)(d=>d?.getEventIds()||[]),(0,v.n)(d=>(0,E.p)(d.map(m=>this.eventService.getSubscriptionDetailsDefinitions(m)))),(0,M.t)(1)),this.groupsAvailability$=this.subscriptionDetailsDefinitions$.pipe((0,l.T)(d=>d.every(m=>ge(m,this.settings))),(0,M.t)(1)),this.subscriptionDetails$=(0,f.z)([this.selectedLesson$,this.groupsAvailability$,this.reloadSubscriptionDetails$.pipe((0,l.T)(()=>!1),(0,le.Z)(!0))]).pipe((0,v.n)(([d,m,I])=>d&&m?this.loadSubscriptionDetailsForLesson(d,I):(0,w.of)([])),(0,l.T)(d=>function Le(s,c){return s.filter(t=>t.VssId===c.subscriptionDetailGroupId)}(d,this.settings)),(0,M.t)(1)),this.subscriptionDetailPersonIds$=(0,f.z)([this.group$,this.subscriptionDetails$]).pipe((0,l.T)(([d,m])=>m.filter(I=>I.Value===d).map(I=>I.IdPerson)),(0,le.Z)([]))}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.T)(Ce.A),(0,l.T)(t=>ge(t,this.settings)))}getSubscriptionDetailsForStudents(){return(0,f.z)([this.subscriptionDetails$,this.lessonPresences$]).pipe((0,l.T)((0,k.i)(_)))}reloadSubscriptionDetails(){this.reloadSubscriptionDetails$.next(void 0)}loadSubscriptionDetailsForLesson(t,n=!0){return this.loadingService.load((0,E.p)((0,ee.A)(t.getEventIds()).map(o=>this.subscriptionDetailsService.getListForEvent(o))),n?void 0:ye).pipe((0,l.T)(Ce.A))}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.KVO(re.A),e.KVO(He.z),e.KVO(Pe),e.KVO(K.U),e.KVO(j.yy))};static#t=this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac})}return s})();var We=r(8296),Je=r(4599);const ze=Object.values(Y.H_);let L=(()=>{class s{constructor(t,n,o,i,a,d,m,I,ue,V){this.userSettings=t,this.lessonPresencesService=n,this.lessonTeacherService=o,this.presenceTypesService=i,this.groupService=a,this.dropDownItemsService=d,this.loadingService=m,this.storageService=I,this.settings=ue,this.location=V,this.selectedDateSubject$=new O.t(new Date),this.selectedDate$=this.selectedDateSubject$.asObservable().pipe((0,l.T)(xe.o),(0,te.F)(q.A)),this.viewModeSubject$=new $.B,this.viewMode$=(0,G.h)(this.viewModeSubject$,this.userSettings.getPresenceControlViewMode().pipe((0,P.s)(1))),this.lessons$=this.selectedDate$.pipe((0,v.n)(u=>this.loadLessonsByDate(u)),(0,M.t)(1)),this.selectLessonId$=new $.B,this.selectLesson$=this.selectLessonId$.pipe((0,v.n)(u=>this.getLessonById(u))),this.selectedLesson$=(0,f.z)([(0,se.i7)(this.selectLesson$.pipe((0,te.F)((u,B)=>(0,q.A)(u,B))),(0,se.$m)(this.settings.lessonPresencesRefreshTime)),this.lessons$]).pipe((0,l.T)(([u,B])=>B.find(gn=>gn.id===u.id)?u:null),(0,M.t)(1)),this.studyClassCount$=this.selectedLesson$.pipe((0,l.T)(u=>u?.lessons.length||0)),this.updateLessonPresences$=new $.B,this.reloadLessonPresences$=new $.B,this.lessonPresences$=(0,G.h)((0,se.Qr)(this.selectedLesson$,this.reloadLessonPresences$).pipe((0,v.n)(u=>u?this.loadLessonPresencesByLesson(u):(0,w.of)([]))),this.updateLessonPresences$).pipe((0,M.t)(1)),this.presenceTypes$=this.loadPresenceTypes().pipe((0,M.t)(1)),this.reloadStudentIdsWithUnconfirmedAbsences$=new $.B,this.studentIdsWithUnconfirmedAbsences$=(0,G.h)(this.selectedDate$,this.selectedLesson$.pipe((0,he.i)(1)),this.reloadStudentIdsWithUnconfirmedAbsences$).pipe((0,v.n)(()=>this.loadStudentIdsWithUnconfirmedAbsences()),(0,M.t)(1)),this.loading$=this.loadingService.loading$,this.absenceConfirmationStates$=this.dropDownItemsService.getAbsenceConfirmationStates().pipe((0,M.t)(1)),this.studentIds$=this.lessonPresences$.pipe((0,l.T)(u=>(0,ee.A)(u.map(B=>B.StudentRef.Id))),(0,M.t)(1)),this.otherTeachersAbsences$=this.studentIds$.pipe((0,te.F)(q.A),(0,v.n)(u=>u.length>0?this.lessonTeacherService.loadOtherTeachersLessonAbsences(this.getMyself(),u):(0,w.of)([])),(0,M.t)(1)),this.groupsAvailability$=this.groupService.groupsAvailability$,this.presenceControlEntries$=(0,f.z)([this.selectedLesson$,this.lessonPresences$,this.presenceTypes$,this.absenceConfirmationStates$,this.otherTeachersAbsences$]).pipe((0,l.T)((0,k.i)(fe.aW))),this.presenceControlEntriesByGroup$=(0,f.z)([this.groupService.group$,this.presenceControlEntries$,this.groupService.subscriptionDetailPersonIds$]).pipe((0,l.T)((0,k.i)(Ue.r)),(0,M.t)(1)),this.presentCount$=this.presenceControlEntriesByGroup$.pipe((0,l.T)(ie("present"))),this.absentCount$=this.presenceControlEntriesByGroup$.pipe((0,l.T)(ie("absent"))),this.unapprovedCount$=this.presenceControlEntriesByGroup$.pipe((0,l.T)(ie("unapproved"))),this.absentPrecedingCount$=this.presenceControlEntriesByGroup$.pipe((0,l.T)(s=>s.reduce((c,t)=>c+(t.precedingAbsences&&t.precedingAbsences.length>0?1:0),0))),this.queryParamsString$=(0,f.z)([this.selectedDate$,this.selectedLesson$,this.viewMode$]).pipe((0,l.T)((0,k.i)(this.buildQueryParams.bind(this))),(0,l.T)(N.hD)),this.destroy$=new $.B,this.queryParamsString$.pipe((0,D.Q)(this.destroy$)).subscribe(u=>{this.location.replaceState("/presence-control",u),this.confirmBackLinkParams={returnparams:u}}),this.viewMode$.pipe((0,he.i)(1),(0,v.n)(u=>this.userSettings.savePresenceControlViewMode(u)),(0,D.Q)(this.destroy$)).subscribe(),this.selectedLesson$.pipe((0,D.Q)(this.destroy$)).subscribe(u=>{this.groupService.setSelectedLesson(u)}),this.lessonPresences$.pipe((0,D.Q)(this.destroy$)).subscribe(u=>this.groupService.setLessonPresences(u))}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,f.z)([this.lessonPresences$.pipe((0,P.s)(1)),this.presenceTypes$.pipe((0,P.s)(1))]).pipe((0,l.T)(([n,o])=>function Ve(s,c,t,n){return s.map(o=>{const i=c.find(a=>function Be(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(d=>d.IsComment)||null:t.find(d=>d.Id===i.newPresenceTypeId)||null,{...o,TypeRef:Ae(a),Date:null,Type:a?a.Designation:null,ConfirmationStateId:(0,oe.Eu)(a,n)}}return o})}(n,t,o,this.settings))).subscribe(n=>this.updateLessonPresences$.next(n))}getNextPresenceType(t){return this.presenceTypes$.pipe((0,P.s)(1),(0,l.T)(n=>t.getNextPresenceType(n)))}hasUnconfirmedAbsences(t){return this.studentIdsWithUnconfirmedAbsences$.pipe((0,l.T)(n=>n.includes(t.lessonPresence.StudentRef.Id)))}updateAfterConfirm(){this.reloadLessonPresences$.next(),this.reloadStudentIdsWithUnconfirmedAbsences$.next()}loadLessonPresencesByLesson(t){return this.loadingService.load(this.lessonPresencesService.getListByLessons(t.lessons))}loadLessonsByDate(t){return this.loadingService.load(this.lessonPresencesService.getLessonsByDate(t)).pipe((0,l.T)(me.XB))}loadPresenceTypes(){return this.loadingService.load(this.presenceTypesService.presenceTypes$)}loadStudentIdsWithUnconfirmedAbsences(){return(0,we.O)(0,this.settings.unconfirmedAbsencesRefreshTime||-1).pipe((0,v.n)(()=>this.lessonPresencesService.getListOfUnconfirmed()),(0,l.T)(t=>(0,ee.A)(t.map(n=>n.StudentRef.Id))))}buildQueryParams(t,n,o){const i={date:(0,Ge.GP)(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.T)(o=>n&&o.find(i=>i.id===n)||(0,me.m2)(o)),(0,ne.p)(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.KVO(re.A),e.KVO(_e.g),e.KVO(Ye),e.KVO(ce._),e.KVO(W),e.KVO(We.v),e.KVO(K.U),e.KVO(Je.n),e.KVO(j.yy),e.KVO(h.aZ))};static#t=this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac})}return s})();var de=r(5889),pe=r(855);const Qe=(s,c,t,n)=>({sortCriteria:s,sortedEntries:c,selection:t,group:n}),Ze=()=>["/presence-control"];function qe(s,c){if(1&s){const t=e.RV6();e.j41(0,"div",14),e.bIt("click",function(){const o=e.eBV(t).$implicit,i=e.XpG(2);return e.Njj(i.toggleSort(o))}),e.EFF(1),e.nI1(2,"translate"),e.j41(3,"span",15),e.EFF(4),e.k0s()()}if(2&s){const t=c.$implicit,n=e.XpG().bkdLet,o=e.XpG();e.Y8G("className",t),e.R7$(),e.SpI(" ",e.bMT(2,3,"presence-control.groups.list.header."+t)," "),e.R7$(3),e.JRh(o.getSortDirectionCharacter(n.sortCriteria,t))}}function et(s,c){1&s&&e.nrm(0,"bkd-spinner",23)}function tt(s,c){if(1&s){const t=e.RV6();e.qex(0),e.j41(1,"div",17)(2,"div",18)(3,"input",19,1),e.nI1(5,"async"),e.bIt("change",function(){const o=e.eBV(t).$implicit,i=e.XpG(3);return e.Njj(i.selectionService.toggle(o))}),e.k0s()(),e.j41(6,"div",20),e.EFF(7),e.k0s(),e.j41(8,"div",21)(9,"span"),e.EFF(10),e.k0s(),e.DNE(11,et,1,0,"bkd-spinner",22),e.nI1(12,"async"),e.k0s()(),e.bVm()}if(2&s){const t=c.$implicit,n=e.XpG(3);e.R7$(3),e.Y8G("checked",e.bMT(5,4,n.selectionService.isSelected$(t))),e.R7$(4),e.SpI(" ",t.name," "),e.R7$(3),e.JRh(t.group?t.group:""),e.R7$(),e.Y8G("ngIf",e.bMT(12,6,n.groupService.loading$))}}function nt(s,c){if(1&s&&(e.qex(0),e.DNE(1,tt,13,8,"ng-container",16),e.bVm()),2&s){const t=e.XpG().bkdLet;e.R7$(),e.Y8G("ngForOf",t.sortedEntries)}}function st(s,c){1&s&&e.nrm(0,"bkd-spinner")}function ot(s,c){if(1&s){const t=e.RV6();e.j41(0,"div"),e.nrm(1,"bkd-backlink",3),e.nI1(2,"async"),e.j41(3,"h1"),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"div",4)(7,"div",5)(8,"span",6),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.j41(11,"button",7),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.selectGroup())}),e.EFF(12),e.nI1(13,"translate"),e.nI1(14,"translate"),e.k0s()(),e.j41(15,"a",8),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.assignGroup())}),e.j41(16,"i",9),e.EFF(17,"edit"),e.k0s()()(),e.j41(18,"div",10)(19,"div",11),e.DNE(20,qe,5,5,"div",12),e.k0s(),e.DNE(21,nt,2,1,"ng-container",13),e.nI1(22,"async"),e.DNE(23,st,1,0,"ng-template",null,0,e.C5r),e.k0s()()}if(2&s){const t=c.bkdLet,n=e.sdS(24),o=e.XpG();e.R7$(),e.Y8G("link",e.lJ4(22,Ze))("params",e.bMT(2,10,o.backlinkQueryParams$)),e.R7$(3),e.JRh(e.bMT(5,12,"presence-control.groups.title")),e.R7$(5),e.JRh(e.bMT(10,14,"presence-control.groups.show")),e.R7$(3),e.SpI(" ",t.group?e.bMT(13,16,"presence-control.groups.group")+" "+t.group:e.bMT(14,18,"presence-control.groups.all")," "),e.R7$(3),e.AVh("disabled",0===t.selection.length),e.R7$(5),e.Y8G("ngForOf",o.primarySortKeys),e.R7$(),e.Y8G("ngIf",!1===e.bMT(22,20,o.state.loading$))("ngIfElse",n)}}let it=(()=>{class s{constructor(t,n,o,i,a,d,m,I,ue){this.route=t,this.state=n,this.selectionService=o,this.groupService=i,this.userSettings=a,this.subscriptionDetailService=d,this.toastService=m,this.translate=I,this.modalService=ue,this.primarySortKeys=["name","group"],this.backlinkQueryParams$=this.route.queryParams.pipe((0,l.T)(({returnparams:V})=>V),(0,l.T)(N.JO)),this.eventIds$=this.state.selectedLesson$.pipe((0,l.T)(V=>V?.getEventIds()||[])),this.sortCriteriaSubject$=new O.t({primarySortKey:"name",ascending:!1}),this.sortCriteria$=this.sortCriteriaSubject$.asObservable(),this.sortedEntries$=(0,f.z)([this.groupService.getSubscriptionDetailsForStudents(),this.sortCriteria$]).pipe((0,l.T)((0,k.i)(De))),this.selected=[]}ngOnInit(){this.selectionService.selection$.subscribe(t=>this.selected=t)}selectGroup(){this.openGroupModal(X.Select,this.selectCallback.bind(this))}assignGroup(){this.openGroupModal(X.Assign,this.assignCallback.bind(this))}openGroupModal(t,n){(0,f.z)([this.groupService.getSubscriptionDetailsDefinitions(),this.groupService.group$]).pipe((0,P.s)(1)).subscribe(([o,i])=>{const a=this.modalService.open(je);a.componentInstance.dialogMode=t,a.componentInstance.subscriptionDetailsDefinitions=o,a.componentInstance.group=i,a.result.then(d=>{n(d)},()=>{})})}selectCallback(t){(0,f.z)([this.eventIds$,this.userSettings.getPresenceControlGroupView()]).pipe((0,P.s)(1),(0,v.n)(([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.T)(()=>t.id)).subscribe(n=>this.groupService.selectGroup(n))}assignCallback(t){(0,E.p)(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.s)(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.rXU(x.nX),e.rXU(L),e.rXU(y),e.rXU(W),e.rXU(re.A),e.rXU(Pe),e.rXU(de.f),e.rXU(g.c$),e.rXU(pe.y))};static#t=this.\u0275cmp=e.VBU({type:s,selectors:[["bkd-presence-control-group"]],standalone:!0,features:[e.Jv_([y]),e.aNF],decls:5,vars:14,consts:[["loading",""],["checkbox",""],[4,"bkdLet"],[3,"link","params"],[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"],[3,"click","className"],[1,"sort-direction"],[4,"ngFor","ngForOf"],[1,"group-list-entry"],[1,"checkbox"],["type","checkbox",1,"form-check-input",3,"change","checked"],[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.DNE(0,ot,25,23,"div",2),e.nI1(1,"async"),e.nI1(2,"async"),e.nI1(3,"async"),e.nI1(4,"async")),2&n&&e.Y8G("bkdLet",e.ziG(9,Qe,e.bMT(1,1,o.sortCriteria$),e.bMT(2,3,o.sortedEntries$),e.bMT(3,5,o.selectionService.selection$),e.bMT(4,7,o.groupService.group$)))},dependencies:[S.N,z.P,h.pM,h.bT,R.t,h.Jj,g.h,g.D9],styles:['[_nghost-%COMP%]{display:block}.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 rt=r(6834),ct=r(8358),Me=r(4273);function lt(s,c){if(1&s){const t=e.RV6();e.j41(0,"div",3)(1,"input",4),e.bIt("change",function(){const o=e.eBV(t).$implicit;return e.Njj(o.selected=!o.selected)}),e.k0s(),e.j41(2,"label",5)(3,"i"),e.EFF(4),e.k0s(),e.j41(5,"div",6),e.EFF(6),e.nI1(7,"date"),e.nI1(8,"date"),e.k0s()()()}if(2&s){const t=c.$implicit,n=c.index,o=e.XpG();e.R7$(),e.Mz_("id","lesson-presence-",n,""),e.Y8G("checked",t.selected),e.R7$(),e.AVh("fw-bold",o.isCurrentLesson(t)),e.Mz_("for","lesson-presence-",n,""),e.R7$(),e.ZvI("",t.entry.presenceCategory," material-icons pe-2"),e.R7$(),e.JRh(t.entry.presenceCategoryIcon),e.R7$(2),e.E5c(" ",e.i5U(7,14,t.entry.lessonPresence.LessonDateTimeFrom,"HH:mm"),"\u2013",e.i5U(8,17,t.entry.lessonPresence.LessonDateTimeTo,"HH:mm")," ",t.entry.lessonPresence.EventDesignation," ")}}function dt(s,c){if(1&s){const t=e.RV6();e.j41(0,"div",7)(1,"button",8),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.activeModal.close())}),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"button",9),e.bIt("click",function(){const o=e.eBV(t).bkdLet,i=e.XpG();return e.Njj(i.activeModal.close(o))}),e.EFF(5),e.nI1(6,"translate"),e.k0s()()}if(2&s){const t=c.bkdLet;e.R7$(2),e.SpI(" ",e.bMT(3,3,"presence-control.block-lesson.cancel")," "),e.R7$(2),e.Y8G("disabled",0===t.length),e.R7$(),e.SpI(" ",e.bMT(6,5,"presence-control.block-lesson.save")," ")}}let pt=(()=>{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 at(s,c){return+(0,Me.a)(s)==+(0,Me.a)(c)}(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.rXU(b.Lw))};static#t=this.\u0275cmp=e.VBU({type:s,selectors:[["bkd-presence-control-block-lesson-component"]],inputs:{entry:"entry",blockPresenceControlEntries:"blockPresenceControlEntries"},standalone:!0,features:[e.aNF],decls:7,vars:5,consts:[[1,"modal-body"],["class","form-check",4,"ngFor","ngForOf"],["class","modal-footer",4,"bkdLet"],[1,"form-check"],["type","checkbox",1,"form-check-input",3,"change","id","checked"],[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,"click","disabled"]],template:function(n,o){1&n&&(e.j41(0,"div",0)(1,"p"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"form"),e.DNE(5,lt,9,20,"div",1),e.k0s()(),e.DNE(6,dt,7,7,"div",2)),2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,3,"presence-control.block-lesson.text")," "),e.R7$(3),e.Y8G("ngForOf",o.blockLessonOptions),e.R7$(),e.Y8G("bkdLet",o.getSelectedEntries()))},dependencies:[C.YN,C.qT,C.cb,C.cV,h.pM,S.N,h.vh,g.h,g.D9],styles:[".checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important;display:block}.absent[_ngcontent-%COMP%]{color:#ea161f}.present[_ngcontent-%COMP%]{color:#3d8608}.unapproved[_ngcontent-%COMP%]{color:#ffa814}"]})}return s})();var ut=r(1433);function $e(s){return`blockLesson${s.lessonPresence.Id}`}let Ie=(()=>{class s{constructor(t,n,o,i){this.state=t,this.lessonPresencesService=n,this.loadingService=o,this.settings=i}getBlockLessonPresenceControlEntries(t){return(0,f.z)([this.state.lessons$.pipe((0,P.s)(1)),this.loadChangeableLessonPresences(t),this.state.presenceTypes$.pipe((0,P.s)(1)),this.state.absenceConfirmationStates$.pipe((0,P.s)(1)),this.state.otherTeachersAbsences$.pipe((0,P.s)(1))]).pipe((0,l.T)(([n,o,i,a,d])=>this.filterBlockLessonPresences(t,o).map(m=>(0,fe.FO)(n.find(I=>I.id===m.LessonRef.Id.toString()),m,i,a,d))))}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(d=>d.Id===t.lessonPresence.Id)?o:[i],[])}isWithinBlockTime(t,n){return!n||t.LessonDateTimeFrom.getTime()-n.LessonDateTimeTo.getTime()<=18e5}loadChangeableLessonPresences(t){return(0,f.z)([this.loadLessonPresences(t),this.state.presenceTypes$.pipe((0,P.s)(1))]).pipe((0,l.T)(([n,o])=>n.filter(i=>(0,oe.ED)(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.T)(n=>n.filter(o=>o.TeacherInformation===t.lessonPresence.TeacherInformation))),$e(t))}static#e=this.\u0275fac=function(n){return new(n||s)(e.KVO(L),e.KVO(_e.g),e.KVO(K.U),e.KVO(j.yy))};static#t=this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac})}return s})();var ht=r(8676);function mt(s,c){if(1&s&&(e.j41(0,"div"),e.EFF(1),e.nI1(2,"date"),e.nI1(3,"date"),e.nI1(4,"addSpace"),e.k0s()),2&s){const t=c.$implicit;e.R7$(),e.SjE(" ",e.i5U(2,5,t.LessonRef.From,"HH:mm"),"\u2013",e.i5U(3,8,t.LessonRef.To,"HH:mm")," ",t.LessonRef.EventDesignation,"",e.i5U(4,11,":",":")," ",t.Type," ")}}let ft=(()=>{class s{constructor(t){this.activeModal=t}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(b.Lw))};static#t=this.\u0275cmp=e.VBU({type:s,selectors:[["bkd-presence-control-preceding-absence"]],inputs:{precedingAbsences:"precedingAbsences"},standalone:!0,features:[e.aNF],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.j41(0,"div",0)(1,"p"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,mt,5,14,"div",1),e.k0s(),e.j41(5,"div",2)(6,"button",3),e.bIt("click",function(){return o.activeModal.dismiss()}),e.EFF(7),e.nI1(8,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,3,"presence-control.preceding-absence.text")," "),e.R7$(2),e.Y8G("ngForOf",o.precedingAbsences),e.R7$(3),e.SpI(" ",e.bMT(8,5,"presence-control.preceding-absence.cancel")," "))},dependencies:[h.pM,h.vh,g.h,g.D9,ht.c]})}return s})();const _t=s=>["student",s,"absences"],bt=s=>["/presence-control/student",s,"absences"];function vt(s,c){if(1&s&&(e.nrm(0,"bkd-avatar",9),e.nI1(1,"async")),2&s){const t=e.XpG();e.Y8G("studentId",e.bMT(1,3,t.studentId$))("link",e.eq3(5,bt,t.entry.lessonPresence.StudentRef.Id.toString()))("linkParams",t.profileReturnParams)}}function Ct(s,c){if(1&s&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&s){const t=e.XpG(2);e.R7$(),e.JRh(null==t.entry.presenceType?null:t.entry.presenceType.Designation)}}function Pt(s,c){if(1&s){const t=e.RV6();e.j41(0,"button",10),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.updatePresenceType(o.entry))}),e.DNE(1,Ct,2,1,"span",11),e.k0s()}if(2&s){const t=e.XpG();e.R7$(),e.Y8G("ngIf",!(null!=t.entry.presenceType&&t.entry.presenceType.IsIncident))}}function yt(s,c){1&s&&e.nrm(0,"bkd-spinner",16)}function Mt(s,c){if(1&s){const t=e.RV6();e.j41(0,"button",12),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.updatePresenceType(o.entry))}),e.j41(1,"div",13)(2,"i",14),e.EFF(3),e.k0s(),e.DNE(4,yt,1,0,"bkd-spinner",15),e.k0s()()}if(2&s){const t=c.bkdLet,n=e.XpG();e.Y8G("disabled",t),e.R7$(2),e.AVh("invisible",t),e.R7$(),e.JRh(n.entry.presenceCategoryIcon),e.R7$(),e.Y8G("ngIf",t)}}function $t(s,c){if(1&s){const t=e.RV6();e.j41(0,"button",17),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.showPrecedingAbsences(o.entry))}),e.j41(1,"i",18),e.EFF(2,"info"),e.k0s()()}}function It(s,c){if(1&s&&(e.j41(0,"span",19),e.EFF(1),e.k0s()),2&s){const t=e.XpG();e.R7$(),e.SpI(" ",t.entry.lessonPresence.StudyClassNumber," ")}}function Tt(s,c){if(1&s){const t=e.RV6();e.j41(0,"a",20),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.updateIncident(o.entry))}),e.j41(1,"i",14),e.EFF(2,"edit"),e.k0s(),e.j41(3,"span"),e.EFF(4),e.nI1(5,"translate"),e.k0s()()}if(2&s){const t=e.XpG();e.R7$(4),e.JRh(e.bMT(5,1,(null==t.entry.presenceType?null:t.entry.presenceType.IsIncident)&&(null==t.entry.presenceType?null:t.entry.presenceType.Designation)||"presence-control.entry.incident"))}}let Ot=(()=>{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.showClassName=!1,this.togglePresenceType=new e.bkB,this.changeIncident=new e.bkB,this.entry$=new ae.m(1),this.studentId$=this.entry$.pipe((0,l.T)(({lessonPresence:a})=>a.StudentRef.Id)),this.loading$=this.entry$.pipe((0,v.n)(a=>this.loadingService.loading($e(a))))}ngOnChanges(t){t.entry&&this.entry$.next(t.entry.currentValue)}get isListViewMode(){return this.viewMode===Y.H_.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(ft).componentInstance.precedingAbsences=t.precedingAbsences}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(de.f),e.rXU(g.c$),e.rXU(pe.y),e.rXU(K.U))};static#t=this.\u0275cmp=e.VBU({type:s,selectors:[["bkd-presence-control-entry"]],hostVars:2,hostBindings:function(n,o){2&n&&e.HbH(o.classNames)},inputs:{entry:"entry",hasUnconfirmedAbsences:"hasUnconfirmedAbsences",viewMode:"viewMode",showClassName:"showClassName",profileReturnParams:"profileReturnParams"},outputs:{togglePresenceType:"togglePresenceType",changeIncident:"changeIncident"},standalone:!0,features:[e.OA$,e.aNF],decls:13,vars:16,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,"bkdLet"],["type","button","class","previously-absent d-flex btn btn-link",3,"click",4,"ngIf"],[1,"student-info",3,"routerLink","queryParams"],[1,"student-name","text-truncate"],["class","study-class text-truncate",4,"ngIf"],[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,"click","disabled"],[1,"position-relative"],[1,"material-icons"],["class","inline small",4,"ngIf"],[1,"inline","small"],["type","button",1,"previously-absent","d-flex","btn","btn-link",3,"click"],[1,"material-icons-outlined"],[1,"study-class","text-truncate"],[1,"incident","btn","btn-link",3,"click"]],template:function(n,o){1&n&&(e.DNE(0,vt,2,7,"bkd-avatar",0)(1,Pt,2,1,"button",1)(2,Mt,5,5,"button",2),e.nI1(3,"async"),e.DNE(4,$t,3,0,"button",3),e.j41(5,"a",4)(6,"span",5),e.EFF(7),e.k0s(),e.DNE(8,It,2,1,"span",6),e.j41(9,"span",7),e.EFF(10),e.nI1(11,"translate"),e.k0s()(),e.DNE(12,Tt,6,3,"a",8)),2&n&&(e.Y8G("ngIf",!o.isListViewMode),e.R7$(),e.Y8G("ngIf",o.entry.showDesignation),e.R7$(),e.Y8G("bkdLet",e.bMT(3,10,o.loading$)),e.R7$(2),e.Y8G("ngIf",(null==o.entry.precedingAbsences?null:o.entry.precedingAbsences.length)||!1),e.R7$(),e.Y8G("routerLink",e.eq3(14,_t,o.entry.lessonPresence.StudentRef.Id))("queryParams",o.profileReturnParams),e.R7$(2),e.JRh(o.entry.lessonPresence.StudentFullName),e.R7$(),e.Y8G("ngIf",o.isListViewMode&&o.showClassName),e.R7$(2),e.SpI(" ",o.hasUnconfirmedAbsences?e.bMT(11,12,"presence-control.entry.unconfirmed-absences"):""," "),e.R7$(2),e.Y8G("ngIf",o.entry.canChangeIncident))},dependencies:[h.bT,ut.f,S.N,R.t,x.Wk,h.Jj,g.h,g.D9],styles:['[_nghost-%COMP%]{padding:2rem 1rem;background-color:#fff;display:grid;grid-template-areas:"avatar status designation previously-absent" "avatar student-info student-info student-info" "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:#ea161f}.present[_nghost-%COMP%] .presence-category[_ngcontent-%COMP%]{color:#3d8608}.unapproved[_nghost-%COMP%] .presence-category[_ngcontent-%COMP%]{color:#ffa814}.presence-category[_ngcontent-%COMP%] bkd-spinner[_ngcontent-%COMP%]{color:#000;position:absolute;top:4px;left:5px}.designation[_ngcontent-%COMP%], .student-info[_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-info[_ngcontent-%COMP%]{grid-area:student-info;display:flex;flex-direction:column;text-decoration:none}.student-info[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{text-decoration:underline}.student-info[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child:hover{text-decoration-color:#ea161f}.unconfirmed-absences[_ngcontent-%COMP%]{color:#ea161f;font-size:.875rem;line-height:1}.study-class[_ngcontent-%COMP%]{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-info status incidentordesignation previously-absent";grid-template-columns:3fr min-content 4fr 3em;padding:.5rem 1rem}.list[_nghost-%COMP%] .status[_ngcontent-%COMP%]{justify-self:start}.list[_nghost-%COMP%] .student-name[_ngcontent-%COMP%]{line-height:1;margin-bottom:.5rem}.list[_nghost-%COMP%] .incident[_ngcontent-%COMP%], .list[_nghost-%COMP%] .designation[_ngcontent-%COMP%]{grid-area:incidentordesignation}.list[_nghost-%COMP%] .previously-absent[_ngcontent-%COMP%]{padding-right:0}@media (max-width: 750px){.list[_nghost-%COMP%]{grid-template-areas:"student-info student-info student-info 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%] .student-name[_ngcontent-%COMP%]{margin-top:.5rem}.list[_nghost-%COMP%] .previously-absent[_ngcontent-%COMP%]{align-self:start}}']})}return s})();var St=r(1964),J=r(9728),kt=r(853),Et=r(2239);const Rt=(s,c)=>({"btn-link":s,"btn-danger":c}),Dt=s=>["groups",s],Lt=s=>({returnparams:s});function Ft(s,c){if(1&s){const t=e.RV6();e.j41(0,"div",22),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(null==o.lessonDropdown?null:o.lessonDropdown.toggle())}),e.EFF(1),e.nI1(2,"date"),e.j41(3,"span",23),e.EFF(4),e.nI1(5,"date"),e.k0s()()}if(2&s){const t=e.XpG();e.R7$(),e.SpI(" ",e.i5U(2,2,t.selectedLesson.LessonDateTimeFrom,"HH:mm"),"\u2013"),e.R7$(3),e.JRh(e.i5U(5,5,t.selectedLesson.LessonDateTimeTo,"HH:mm"))}}function jt(s,c){if(1&s){const t=e.RV6();e.j41(0,"div",29),e.bIt("click",function(){const o=e.eBV(t).$implicit,i=e.XpG(2);return e.Njj(i.selectLessonChange.emit(o))}),e.j41(1,"div",30)(2,"div"),e.EFF(3),e.nI1(4,"date"),e.nI1(5,"date"),e.k0s(),e.j41(6,"div",26),e.EFF(7),e.k0s(),e.j41(8,"div",26),e.EFF(9),e.k0s()()()}if(2&s){const t=c.$implicit,n=e.XpG(2);e.AVh("active",t.id===n.selectedLesson.id),e.R7$(3),e.Lme(" ",e.i5U(4,6,t.LessonDateTimeFrom,"HH:mm"),"\u2013",e.i5U(5,9,t.LessonDateTimeTo,"HH:mm")," "),e.R7$(4),e.JRh(t.eventDesignations),e.R7$(2),e.JRh(t.studyClassNumbers)}}function xt(s,c){if(1&s&&(e.j41(0,"div",24)(1,"div",25)(2,"div",26),e.EFF(3),e.k0s(),e.j41(4,"div",26),e.EFF(5),e.k0s()(),e.j41(6,"div",27),e.DNE(7,jt,10,12,"div",28),e.k0s()()),2&s){const t=e.XpG();e.R7$(3),e.JRh(t.selectedLesson.eventDesignations),e.R7$(2),e.JRh(t.selectedLesson.studyClassNumbers),e.R7$(2),e.Y8G("ngForOf",t.lessons)}}function Gt(s,c){if(1&s){const t=e.RV6();e.j41(0,"bkd-caret",31),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(null==o.lessonDropdown?null:o.lessonDropdown.toggle())}),e.k0s()}if(2&s){const t=e.XpG();e.Y8G("expanded",(null==t.lessonDropdown?null:t.lessonDropdown.isOpen())||!1)}}function wt(s,c){if(1&s&&(e.j41(0,"a",32),e.nI1(1,"async"),e.nI1(2,"async"),e.nI1(3,"async"),e.j41(4,"i",33),e.EFF(5,"groups"),e.k0s()()),2&s){const t=e.XpG();e.Y8G("ngClass",e.l_i(9,Rt,!1===e.bMT(1,3,t.isGroupSelected$),e.bMT(2,5,t.isGroupSelected$)))("routerLink",e.eq3(12,Dt,t.selectedLesson.id))("queryParams",e.eq3(14,Lt,e.bMT(3,7,t.state.queryParamsString$)))}}function Ut(s,c){if(1&s){const t=e.RV6();e.j41(0,"button",34),e.bIt("click",function(){const o=e.eBV(t).$implicit,i=e.XpG();return e.Njj(i.viewModeChange.emit(o.viewMode))}),e.j41(1,"i",33),e.EFF(2),e.k0s()()}if(2&s){const t=c.$implicit,n=e.XpG();e.AVh("btn-outline-secondary",t.viewMode===n.viewMode)("btn-link",t.viewMode!==n.viewMode)("active",t.viewMode===n.viewMode),e.Y8G("disabled",!n.selectedLesson),e.R7$(2),e.JRh(t.icon)}}const Vt=b.tg.prototype._positionMenu;b.tg.prototype._positionMenu=function(...c){const t=Vt.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 Bt=(()=>{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.bkB,this.selectDateChange=new e.bkB,this.searchChange=new e.bkB,this.viewModeChange=new e.bkB,this.viewModeOptions=[{viewMode:Y.H_.List,icon:"list"},{viewMode:Y.H_.Grid,icon:"view_module"}],this.isGroupSelected$=this.groupService.group$.pipe((0,l.T)(J.TM)),o.popperOptions=i=>({...i,modifiers:i.modifiers?.map(a=>("offset"===a.name&&(a.options={offset:({placement:d,reference:m,popper:I})=>"bottom-start"===d?[(window.innerWidth-I.width)/2-m.x,0]:[]}),a))})}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(L),e.rXU(W),e.rXU(b.YB))};static#t=this.\u0275cmp=e.VBU({type:s,selectors:[["bkd-presence-control-header"]],viewQuery:function(n,o){if(1&n&&e.GBs(b.tg,5),2&n){let i;e.mGM(i=e.lsd())&&(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"},standalone:!0,features:[e.Jv_([b.YB,{provide:b.dn,useClass:b.Ae},{provide:b.tN,useClass:St.m}]),e.aNF],decls:40,vars:20,consts:[["d","ngbDatepicker"],[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,"ngModelChange","ngModel"],["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,"valueChange","value","disabled","placeholder","label"],[1,"group-and-views","d-flex","align-items-center"],["type","button","class","group btn me-2 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,"click","expanded"],["type","button",1,"group","btn","me-2","me-sm-4",3,"ngClass","routerLink","queryParams"],[1,"material-icons","align-middle"],["type","button",1,"view","btn","btn-primary","btn-icon",3,"click","disabled"]],template:function(n,o){if(1&n){const i=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"button",3),e.bIt("click",function(){e.eBV(i);const d=e.sdS(6);return e.Njj(d.toggle())}),e.j41(3,"i",4),e.EFF(4,"calendar_today"),e.k0s()(),e.j41(5,"input",5,0),e.bIt("ngModelChange",function(d){return e.eBV(i),e.Njj(o.selectDateChange.emit(d))}),e.k0s()(),e.DNE(7,Ft,6,8,"div",6)(8,xt,8,3,"div",7)(9,Gt,1,1,"bkd-caret",8),e.k0s(),e.j41(10,"div",9)(11,"div",10)(12,"i",4),e.EFF(13,"check_circle"),e.k0s(),e.j41(14,"span",11),e.EFF(15),e.k0s()(),e.j41(16,"div",12)(17,"i",4),e.EFF(18,"cancel"),e.k0s(),e.j41(19,"span",11),e.EFF(20),e.k0s()(),e.j41(21,"div",13)(22,"i",4),e.EFF(23,"help"),e.k0s(),e.j41(24,"span",11),e.EFF(25),e.k0s()(),e.j41(26,"div",14)(27,"i",15),e.EFF(28,"info"),e.k0s(),e.j41(29,"span",11),e.EFF(30),e.k0s()()(),e.j41(31,"div",16)(32,"bkd-resettable-input",17),e.nI1(33,"translate"),e.nI1(34,"translate"),e.bIt("valueChange",function(d){return e.eBV(i),e.Njj(o.searchChange.emit(d))}),e.k0s(),e.j41(35,"div",18),e.DNE(36,wt,6,16,"a",19),e.nI1(37,"async"),e.j41(38,"div",20),e.DNE(39,Ut,3,8,"button",21),e.k0s()()()}2&n&&(e.R7$(5),e.Y8G("ngModel",o.selectDate),e.R7$(2),e.Y8G("ngIf",o.selectedLesson),e.R7$(),e.Y8G("ngIf",o.selectedLesson),e.R7$(),e.Y8G("ngIf",o.lessons.length>0),e.R7$(6),e.JRh(null!==o.presentCount?o.presentCount:"?"),e.R7$(5),e.JRh(null!==o.absentCount?o.absentCount:"?"),e.R7$(5),e.JRh(null!==o.unapprovedCount?o.unapprovedCount:"?"),e.R7$(5),e.JRh(null!==o.absentPrecedingCount?o.absentPrecedingCount:"?"),e.R7$(2),e.Y8G("value",o.search)("disabled",!o.selectedLesson)("placeholder",e.bMT(33,14,"presence-control.header.search-by-name"))("label",e.bMT(34,16,"presence-control.header.search")),e.R7$(4),e.Y8G("ngIf",e.bMT(37,18,o.selectedLesson&&o.state.groupsAvailability$)),e.R7$(3),e.Y8G("ngForOf",o.viewModeOptions))},dependencies:[b.cw,C.YN,C.me,C.BC,C.vS,h.bT,b.tg,b.do,b.U0,h.pM,b._H,kt.h,Et.B,h.YU,x.Wk,h.Jj,h.vh,g.h,g.D9],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:#ea161f}.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})();function At(s,c){if(1&s){const t=e.RV6();e.j41(0,"div",5)(1,"input",6),e.bIt("change",function(){const o=e.eBV(t).$implicit,i=e.XpG();return e.Njj(i.onSelectionChange(o))}),e.k0s(),e.j41(2,"label",7),e.EFF(3),e.k0s()()}if(2&s){const t=c.$implicit,n=c.index,o=e.XpG();e.R7$(),e.Mz_("id","incident-",n,""),e.Y8G("checked",t.id===o.selected.id)("value",t.id),e.R7$(),e.Mz_("for","incident-",n,""),e.R7$(),e.SpI(" ",t.label," ")}}let Nt=(()=>{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.rXU(b.Lw),e.rXU(g.c$))};static#t=this.\u0275cmp=e.VBU({type:s,selectors:[["bkd-presence-control-incident"]],inputs:{incident:"incident",incidentTypes:"incidentTypes"},standalone:!0,features:[e.aNF],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,"change","id","checked","value"],[1,"form-check-label",3,"for"]],template:function(n,o){1&n&&(e.j41(0,"div",0)(1,"p"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"form"),e.DNE(5,At,4,7,"div",1),e.k0s()(),e.j41(6,"div",2)(7,"button",3),e.bIt("click",function(){return o.activeModal.dismiss()}),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.j41(10,"button",4),e.bIt("click",function(){return o.activeModal.close(o.getSelectedIncident())}),e.EFF(11),e.nI1(12,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,4,"presence-control.incident.text")," "),e.R7$(3),e.Y8G("ngForOf",o.incidentOptions),e.R7$(3),e.SpI(" ",e.bMT(9,6,"presence-control.incident.cancel")," "),e.R7$(3),e.SpI(" ",e.bMT(12,8,"presence-control.incident.save")," "))},dependencies:[C.YN,C.qT,C.cb,C.cV,h.pM,g.h,g.D9],styles:["form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{border-bottom:1px solid #dee2e6;padding-bottom:1rem;margin-bottom:1rem}"]})}return s})();var Xt=r(2816),Yt=r(7647),Te=r(152),Ht=r(274),Kt=r(9437),Oe=r(1803),Se=r(5421),Wt=r(9946),U=function(s){return s.AddUpdateAction="ADD",s.RemoveUpdateAction="REMOVE",s}(U||{});let ke=(()=>{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 $.B,this.action$=new $.B,this.pendingUpdates$=this.action$.pipe((0,Xt.S)(this.reduceUpdates.bind(this),[]),(0,Yt.u)()),this.revertUpdates$=new $.B,this.performUpdates$=this.pendingUpdates$.pipe((0,Te.B)(100),(0,ne.p)((0,J.AU)(Se.VP)),(0,Ht.H)(this.performUpdates.bind(this))),this.stateUpdates$=(0,G.h)(this.pendingUpdates$,this.revertUpdates$).pipe((0,Te.B)(20),(0,ne.p)((0,J.AU)(Se.VP))),this.performUpdates$.pipe((0,D.Q)(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,f.z)(Object.keys(n).reduce((o,i)=>{const a=n[i];return Object.keys(a).forEach(d=>{o.push(this.performUpdateForGroup(a[d]))}),o},[])).pipe((0,l.T)(()=>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,Kt.W)(n=>this.revertUpdatesAfterError(t,n)))}performLessonPresencesUpdatesByIds(t,n,o=null){return o?(o?this.presenceTypesService.getPresenceType(o):(0,w.of)(null)).pipe((0,v.n)(a=>this.restService.editLessonPresences([t],n,a?.Id,(0,oe.Eu)(a,this.settings)||void 0,{context:(new H._y).set(Oe.Q,{disableErrorHandling:!0})}))):this.restService.removeLessonPresences([t],n,{context:(new H._y).set(Oe.Q,{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,w.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 U.AddUpdateAction:{const{presence:o,newPresenceTypeId:i}=n.payload,a=t.findIndex(Ee(o));return-1===a?[...t,{presence:o,newPresenceTypeId:i}]:[...t.slice(0,a),{presence:t[a].presence,newPresenceTypeId:i},...t.slice(a+1)]}case U.RemoveUpdateAction:return t.filter((0,J.AU)(Ee(n.payload)));default:return t}}dispatchAddUpdate(t,n){this.action$.next({type:U.AddUpdateAction,payload:{presence:t,newPresenceTypeId:n}})}dispatchRemoveUpdate(t){this.action$.next({type:U.RemoveUpdateAction,payload:t})}static#e=this.\u0275fac=function(n){return new(n||s)(e.KVO(de.f),e.KVO(g.c$),e.KVO(Wt.T),e.KVO(ce._),e.KVO(j.yy))};static#t=this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function Ee(s){return c=>c.presence.LessonRef.Id===s.LessonRef.Id&&c.presence.StudentRef.Id===s.StudentRef.Id}var Qt=r(1769);const Zt=(s,c,t)=>({lesson:s,lessons:c,entries:t}),qt=s=>({returnparams:s});function en(s,c){if(1&s){const t=e.RV6();e.j41(0,"bkd-presence-control-entry",7),e.nI1(1,"async"),e.nI1(2,"async"),e.nI1(3,"async"),e.nI1(4,"async"),e.bIt("togglePresenceType",function(o){e.eBV(t);const i=e.XpG(5);return e.Njj(i.togglePresenceType(o))})("changeIncident",function(o){e.eBV(t);const i=e.XpG(5);return e.Njj(i.changeIncident(o))}),e.k0s()}if(2&s){let t;const n=c.$implicit,o=e.XpG(5);e.Y8G("entry",n)("hasUnconfirmedAbsences",e.bMT(1,5,o.state.hasUnconfirmedAbsences(n)))("viewMode",e.bMT(2,7,o.state.viewMode$))("showClassName",(null!==(t=e.bMT(3,9,o.state.studyClassCount$))&&void 0!==t?t:0)>1)("profileReturnParams",e.eq3(13,qt,e.bMT(4,11,o.state.queryParamsString$)))}}function tn(s,c){if(1&s&&(e.qex(0),e.j41(1,"div"),e.nI1(2,"async"),e.DNE(3,en,5,15,"bkd-presence-control-entry",6),e.k0s(),e.bVm()),2&s){const t=e.XpG(3).bkdLet,n=e.XpG();e.R7$(),e.ZvI("default-entries entries view-mode-",e.bMT(2,4,n.state.viewMode$),""),e.R7$(2),e.Y8G("ngForOf",t.entries)}}function nn(s,c){1&s&&(e.j41(0,"p",8),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"presence-control.no-lesson-presences")," "))}function sn(s,c){if(1&s&&(e.qex(0),e.DNE(1,tn,4,6,"ng-container",4)(2,nn,3,3,"ng-template",null,2,e.C5r),e.bVm()),2&s){const t=e.sdS(3),n=e.XpG(2).bkdLet;e.R7$(),e.Y8G("ngIf",(null==n.entries?null:n.entries.length)>0)("ngIfElse",t)}}function on(s,c){1&s&&(e.j41(0,"p",8),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&s&&(e.R7$(),e.JRh(e.bMT(2,1,"presence-control.no-lessons")))}function rn(s,c){if(1&s){const t=e.RV6();e.qex(0),e.j41(1,"bkd-presence-control-header",5),e.nI1(2,"async"),e.nI1(3,"async"),e.nI1(4,"async"),e.nI1(5,"async"),e.nI1(6,"async"),e.nI1(7,"async"),e.nI1(8,"async"),e.bIt("searchChange",function(o){e.eBV(t);const i=e.XpG(2);return e.Njj(i.search$.next(o))})("viewModeChange",function(o){e.eBV(t);const i=e.XpG(2);return e.Njj(i.state.setViewMode(o))})("selectDateChange",function(o){e.eBV(t);const i=e.XpG(2);return e.Njj(i.state.setDate(o))})("selectLessonChange",function(o){e.eBV(t);const i=e.XpG(2);return e.Njj(i.state.setLessonId(o.id))}),e.k0s(),e.DNE(9,sn,4,2,"ng-container",4)(10,on,3,3,"ng-template",null,1,e.C5r),e.bVm()}if(2&s){const t=e.sdS(11),n=e.XpG().bkdLet,o=e.XpG();e.R7$(),e.Y8G("selectedLesson",n.lesson)("lessons",n.lessons)("presentCount",e.bMT(2,11,o.state.presentCount$))("absentCount",e.bMT(3,13,o.state.absentCount$))("unapprovedCount",e.bMT(4,15,o.state.unapprovedCount$))("absentPrecedingCount",e.bMT(5,17,o.state.absentPrecedingCount$))("viewMode",e.bMT(6,19,o.state.viewMode$))("selectDate",e.bMT(7,21,o.state.selectedDate$))("search",e.bMT(8,23,o.search$)),e.R7$(8),e.Y8G("ngIf",n.lesson)("ngIfElse",t)}}function cn(s,c){1&s&&e.nrm(0,"bkd-spinner")}function an(s,c){if(1&s&&(e.qex(0),e.DNE(1,rn,12,25,"ng-container",4),e.nI1(2,"async"),e.DNE(3,cn,1,0,"ng-template",null,0,e.C5r),e.bVm()),2&s){const t=e.sdS(4),n=e.XpG();e.R7$(),e.Y8G("ngIf",!1===e.bMT(2,2,n.state.loading$))("ngIfElse",t)}}let ln=(()=>{class s{constructor(t,n,o,i,a,d,m){this.state=t,this.blockLessons=n,this.lessonPresencesUpdateService=o,this.presenceTypesService=i,this.modalService=a,this.scrollPosition=d,this.route=m,this.search$=new O.t(""),this.entries$=(0,f.z)([this.state.presenceControlEntriesByGroup$,this.search$]).pipe((0,l.T)((0,k.i)(ct.x)),(0,M.t)(1)),this.destroy$=new $.B}ngOnInit(){this.route.queryParams.pipe((0,D.Q)(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.s)(1)).subscribe(n=>{if(1===n.length)this.doTogglePresenceType([n[0]]);else{const o=this.modalService.open(pt);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(Nt);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,rt.cv)(t.date));const n=String(t.lesson);n&&this.state.setLessonId(n),t.viewMode&&ze.includes(t.viewMode)&&this.state.setViewMode(t.viewMode)}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(L),e.rXU(Ie),e.rXU(ke),e.rXU(ce._),e.rXU(pe.y),e.rXU(Qt.W),e.rXU(x.nX))};static#t=this.\u0275cmp=e.VBU({type:s,selectors:[["bkd-presence-control-list"]],standalone:!0,features:[e.aNF],decls:7,vars:14,consts:[["loading",""],["noLessons",""],["noLessonPresences",""],[4,"bkdLet"],[4,"ngIf","ngIfElse"],[3,"searchChange","viewModeChange","selectDateChange","selectLessonChange","selectedLesson","lessons","presentCount","absentCount","unapprovedCount","absentPrecedingCount","viewMode","selectDate","search"],[3,"entry","hasUnconfirmedAbsences","viewMode","showClassName","profileReturnParams","togglePresenceType","changeIncident",4,"ngFor","ngForOf"],[3,"togglePresenceType","changeIncident","entry","hasUnconfirmedAbsences","viewMode","showClassName","profileReturnParams"],[1,"mt-3"]],template:function(n,o){1&n&&(e.j41(0,"h1"),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.DNE(3,an,5,4,"ng-container",3),e.nI1(4,"async"),e.nI1(5,"async"),e.nI1(6,"async")),2&n&&(e.R7$(),e.JRh(e.bMT(2,2,"presence-control.title")),e.R7$(2),e.Y8G("bkdLet",e.sMw(10,Zt,e.bMT(4,4,o.state.selectedLesson$),e.bMT(5,6,o.state.lessons$),e.bMT(6,8,o.entries$))))},dependencies:[S.N,h.bT,Bt,h.pM,Ot,R.t,h.Jj,g.h,g.D9],styles:["bkd-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 dn=r(1876),pn=r(9366);const un=[{path:"",component:(()=>{class s{constructor(t,n){this.state=t,this.lessonPresencesUpdateService=n,this.destroy$=new $.B}ngOnInit(){this.lessonPresencesUpdateService.stateUpdates$.pipe((0,D.Q)(this.destroy$)).subscribe(t=>this.state.updateLessonPresencesTypes(t))}ngOnDestroy(){this.destroy$.next()}static#e=this.\u0275fac=function(n){return new(n||s)(e.rXU(L),e.rXU(ke))};static#t=this.\u0275cmp=e.VBU({type:s,selectors:[["bkd-presence-control"]],standalone:!0,features:[e.Jv_([L,Ie,W,pn.s,{provide:dn.G,useExisting:L}]),e.aNF],decls:1,vars:0,template:function(n,o){1&n&&e.nrm(0,"router-outlet")},dependencies:[x.n3],changeDetection:0})}return s})(),children:[{path:"",component:ln,data:{restoreScrollPositionFrom:["/presence-control/student/:id/addresses","/presence-control/student/:id/absences","/presence-control/student/:id/grades"]}},F.R,{path:"groups/:id",component:it}]}]},1769:(Re,A,r)=>{r.d(A,{W:()=>N});var F=r(5539),h=r(1413),g=r(7673),O=r(5964),f=r(6354),E=r(6697),l=r(1397),P=r(5558),v=r(7799),z=r(4668),R=r(6977),S=r(4438),k=r(177);let N=(()=>{class y{constructor(p,_){this.router=p,this.viewportScroller=_,this.scrollPositions={},this.previousRoute=null,this.currentRoute=this.getInitialActivatedRouteSnapshot(),this.currentScrollPosition=[0,0],this.destroy$=new h.B,this.activationEnd$=this.router.events.pipe((0,O.p)(Q)),this.navigationEnd$=this.router.events.pipe((0,O.p)(e)),this.navigationStart$=this.router.events.pipe((0,O.p)(Z)),this.scrollPosition$=this.navigationStart$.pipe((0,f.T)(this.getScrollPosition.bind(this))),this.route$=this.activationEnd$.pipe((0,E.s)(1)).pipe((0,l.Z)(T=>[(0,g.of)(T),this.navigationEnd$.pipe((0,P.n)(()=>this.activationEnd$.pipe((0,E.s)(1))))]),(0,v.w)(),(0,f.T)(T=>T.snapshot),(0,z.t)(1)),this.scrollPosition$.pipe((0,R.Q)(this.destroy$)).subscribe(T=>this.currentScrollPosition=T),this.route$.pipe((0,R.Q)(this.destroy$)).subscribe(T=>{this.previousRoute=this.currentRoute,this.currentRoute=T})}ngOnDestroy(){this.destroy$.next()}restore(){if(!this.currentRoute||!this.requiresStoring(this.currentRoute))return;if(this.previousRoute&&this.shouldStoreFor(this.currentRoute,this.previousRoute)){const _=this.getPath(this.currentRoute);this.scrollToPosition(this.scrollPositions[_]||[0,0])}const p=this.currentRoute;this.route$.pipe((0,E.s)(1),(0,R.Q)(this.destroy$),(0,O.p)(_=>this.shouldStoreFor(p,_))).subscribe(()=>{const _=this.getPath(p);this.scrollPositions[_]=this.currentScrollPosition})}getScrollPosition(){return this.viewportScroller.getScrollPosition()}scrollToPosition(p){this.viewportScroller.scrollToPosition(p)}getPath(p){return p?"/"+p.pathFromRoot.map(_=>_.routeConfig&&_.routeConfig.path).filter(_=>_).join("/"):"/"}requiresStoring(p){return!!(p&&p.routeConfig&&p.routeConfig.data&&Array.isArray(p.routeConfig.data.restoreScrollPositionFrom)&&p.routeConfig.data.restoreScrollPositionFrom.length>0)}shouldStoreFor(p,_){return(p&&p.routeConfig&&p.routeConfig.data&&Array.isArray(p.routeConfig.data.restoreScrollPositionFrom)?p.routeConfig.data.restoreScrollPositionFrom:[]).includes(this.getPath(_))}getInitialActivatedRouteSnapshot(){let p=this.router.routerState.snapshot.root;for(;p.firstChild;)p=p.firstChild;return p}static#e=this.\u0275fac=function(_){return new(_||y)(S.KVO(F.Ix),S.KVO(k.Xr))};static#t=this.\u0275prov=S.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})();function Q(y){return y instanceof F._d}function Z(y){return y instanceof F.Z}function e(y){return y instanceof F.wF}}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/911.js b/public/apps/webapp-schulverwaltung/911.js deleted file mode 100644 index 7fa0a50c..00000000 --- a/public/apps/webapp-schulverwaltung/911.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[911],{9733:(j,b,n)=>{n.d(b,{k:()=>Q});var p=n(177),d=n(9417),S=n(5539),R=n(3955),y=n(4412),i=n(1413),v=n(4572),x=n(6354),g=n(4668),T=n(6697),O=n(6977),$=n(5964),f=n(5558),N=n(980),G=n(2809),M=n(5561),_=n(9728),I=n(8156),B=n(7887),P=n(1876),e=n(4438),A=n(5889),K=n(9366),W=n(8296),D=n(8413),X=n(9946);const k=(r,h,s)=>({formGroup:r,unexcusedState:h,excusedState:s}),U=r=>({count:r}),F=()=>["/edit-absences"];function m(r,h){if(1&r&&(e.j41(0,"div",4),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&r){const s=h.bkdLet;e.R7$(),e.SpI(" ",e.i5U(2,1,1===s?"open-absences.edit.lesson-selected":"open-absences.edit.lessons-selected",e.eq3(4,U,s))," ")}}function E(r,h){if(1&r&&(e.j41(0,"div",19),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&r){const s=h.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,"global.validation-errors."+s.error,s.params)," ")}}function t(r,h){if(1&r&&(e.j41(0,"div",27),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&r){const s=h.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,"global.validation-errors."+s.error,s.params)," ")}}function o(r,h){if(1&r&&(e.qex(0),e.DNE(1,t,3,4,"div",26),e.nI1(2,"async"),e.bVm()),2&r){const s=e.XpG(5);e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,s.absenceTypeIdErrors$))}}function u(r,h){if(1&r&&(e.j41(0,"div",23),e.nrm(1,"input",24),e.nI1(2,"async"),e.j41(3,"label",25),e.EFF(4),e.k0s(),e.DNE(5,o,3,3,"ng-container",11),e.nI1(6,"async"),e.k0s()),2&r){let s,a;const l=h.$implicit,C=h.index,L=e.XpG(4);e.R7$(),e.AVh("is-invalid",(null!==(s=null==(s=e.bMT(2,7,L.absenceTypeIdErrors$))?null:s.length)&&void 0!==s?s:0)>0),e.Y8G("id","absence-type-"+C)("value",l.Id),e.R7$(2),e.Y8G("for","absence-type-"+C),e.R7$(),e.SpI(" ",l.Designation," "),e.R7$(),e.Y8G("ngIf",(null!==(a=null==(a=e.bMT(6,9,L.absenceTypes$))?null:a.length)&&void 0!==a?a:0)-1===C)}}function c(r,h){if(1&r&&(e.qex(0),e.DNE(1,u,7,11,"div",20),e.nI1(2,"async"),e.j41(3,"div",21),e.EFF(4),e.nI1(5,"translate"),e.j41(6,"a",22),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.bVm()),2&r){const s=e.XpG(3);e.R7$(),e.Y8G("ngForOf",e.bMT(2,4,s.absenceTypes$)),e.R7$(3),e.SpI(" ",e.bMT(5,6,"open-absences.edit.remark")," "),e.R7$(2),e.Y8G("routerLink",e.lJ4(10,F)),e.R7$(),e.SpI(" ",e.bMT(8,8,"edit-absences.title")," ")}}function z(r,h){1&r&&(e.j41(0,"div",28)(1,"span",29),e.EFF(2,"Loading..."),e.k0s()())}function H(r,h){if(1&r){const s=e.RV6();e.j41(0,"form",5),e.bIt("ngSubmit",function(){e.eBV(s);const l=e.XpG(2);return e.Njj(l.onSubmit())}),e.DNE(1,E,3,4,"div",6),e.nI1(2,"async"),e.j41(3,"div",7)(4,"div",8),e.nrm(5,"input",9),e.j41(6,"label",10),e.EFF(7),e.k0s(),e.DNE(8,c,9,11,"ng-container",11),e.k0s(),e.j41(9,"div",12),e.nrm(10,"input",13),e.j41(11,"label",14),e.EFF(12),e.k0s()()(),e.j41(13,"div",15)(14,"button",16),e.nI1(15,"async"),e.bIt("click",function(){e.eBV(s);const l=e.XpG(2);return e.Njj(l.cancel())}),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"button",17),e.nI1(19,"async"),e.EFF(20),e.nI1(21,"translate"),e.DNE(22,z,3,0,"div",18),e.nI1(23,"async"),e.k0s()()()}if(2&r){const s=e.XpG().bkdLet,a=e.XpG();e.Y8G("formGroup",s.formGroup),e.R7$(),e.Y8G("ngForOf",e.bMT(2,12,a.formErrors$)),e.R7$(4),e.Y8G("value",s.excusedState.Key),e.R7$(2),e.SpI(" ",s.excusedState.Value," "),e.R7$(),e.Y8G("ngIf",s.formGroup.get("absenceTypeId")),e.R7$(2),e.Y8G("value",s.unexcusedState.Key),e.R7$(2),e.SpI(" ",s.unexcusedState.Value," "),e.R7$(2),e.Y8G("disabled",e.bMT(15,14,a.saving$)),e.R7$(2),e.SpI(" ",e.bMT(17,16,"open-absences.edit.cancel")," "),e.R7$(2),e.Y8G("disabled",e.bMT(19,18,a.saving$)),e.R7$(2),e.SpI(" ",e.bMT(21,20,"open-absences.edit.save")," "),e.R7$(2),e.Y8G("ngIf",e.bMT(23,22,a.saving$))}}function J(r,h){if(1&r&&(e.j41(0,"div",1)(1,"h1"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,m,3,6,"div",2),e.nI1(5,"async"),e.DNE(6,H,24,24,"form",3),e.k0s()),2&r){const s=h.bkdLet,a=e.XpG();e.R7$(2),e.JRh(e.bMT(3,3,"open-absences.edit.title")),e.R7$(2),e.Y8G("bkdLet",e.bMT(5,5,a.getSelectedCount())),e.R7$(2),e.Y8G("ngIf",s.formGroup&&s.unexcusedState&&s.excusedState)}}let Q=(()=>{class r{constructor(s,a,l,C,L,Y,V,Z,w,q,ee){this.fb=s,this.router=a,this.activatedRoute=l,this.toastService=C,this.translate=L,this.selectionService=Y,this.dropDownItemsService=V,this.presenceTypesService=Z,this.updateService=w,this.settings=q,this.openAbsencesEditService=ee,this.formGroup$=this.selectionService.selectedWithoutPresenceType$.pipe((0,x.T)(this.createFormGroup.bind(this)),(0,g.t)(1)),this.saving$=new y.t(!1),this.submitted$=new y.t(!1),this.formErrors$=(0,I.v)(this.formGroup$,this.submitted$),this.absenceTypeIdErrors$=(0,I.v)(this.formGroup$,this.submitted$,"absenceTypeId"),this.confirmationStates$=this.dropDownItemsService.getAbsenceConfirmationStates().pipe((0,g.t)(1)),this.excusedState$=(0,M.c)(this.confirmationStates$,this.settings.excusedAbsenceStateId),this.unexcusedState$=(0,M.c)(this.confirmationStates$,this.settings.unexcusedAbsenceStateId),this.absenceTypes$=this.presenceTypesService.confirmationTypes$,this.destroy$=new i.B}ngOnInit(){this.selectionService.selectedIds$.pipe((0,T.s)(1)).subscribe(s=>{0===s.length&&this.navigateBack()}),(0,I.IK)(this.formGroup$,"confirmationValue").pipe((0,O.Q)(this.destroy$)).subscribe(s=>{"number"==typeof s&&this.updateAbsenceTypeIdDisabled(s)}),(0,v.z)([(0,I.Oi)(this.formGroup$,"confirmationValue").pipe((0,$.p)(_.TM)),(0,I.Oi)(this.formGroup$,"absenceTypeId").pipe((0,$.p)(_.TM)),this.saving$]).pipe((0,O.Q)(this.destroy$)).subscribe(([s,a,l])=>{l?(s.disable(),a.disable()):(s.enable(),this.updateAbsenceTypeIdDisabled(s.value))}),(0,v.z)([(0,I.Oi)(this.formGroup$,"confirmationValue").pipe((0,$.p)(_.TM)),this.excusedState$.pipe((0,T.s)(1),(0,$.p)(_.TM))]).pipe((0,O.Q)(this.destroy$)).subscribe(([s,a])=>s.setValue(a.Key))}ngOnDestroy(){this.destroy$.next()}onSubmit(){this.submitted$.next(!0),this.formGroup$.pipe((0,T.s)(1)).subscribe(s=>{if(s.valid){const{confirmationValue:a,absenceTypeId:l}=s.value;this.save(a,l)}})}cancel(){this.navigateBack()}getSelectedCount(){return this.selectionService.selectedLessons$.pipe((0,x.T)(s=>s.length))}createFormGroup(s){return this.fb.group(s.length>0?{confirmationValue:[null],absenceTypeId:[null,d.k0.required]}:{confirmationValue:[null]})}updateAbsenceTypeIdDisabled(s){(0,v.z)([(0,I.Oi)(this.formGroup$,"absenceTypeId").pipe((0,T.s)(1),(0,$.p)(_.TM)),this.excusedState$.pipe((0,T.s)(1),(0,$.p)(_.TM))]).subscribe(([a,l])=>{s===l.Key?a.enable():a.disable()})}save(s,a){this.saving$.next(!0),(0,v.z)([this.selectionService.selectedIds$.pipe((0,T.s)(1)),this.unexcusedState$.pipe((0,T.s)(1),(0,$.p)(_.TM))]).pipe((0,f.n)(([l,C])=>(0,v.z)(l.map(({lessonIds:L,personId:Y,presenceTypeId:V})=>this.updateService.confirmLessonPresences(L,[Y],this.getNewAbsenceTypeId(V,s,Number(C.Key),a),s)))),(0,N.j)(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}getNewAbsenceTypeId(s,a,l,C){if(!s)throw new Error("absence type id cannot be null");return a===l?this.settings.absencePresenceTypeId:s===this.settings.absencePresenceTypeId?C:s}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(a){return new(a||r)(e.rXU(d.ze),e.rXU(S.Ix),e.rXU(S.nX),e.rXU(A.f),e.rXU(R.c$),e.rXU(K.s),e.rXU(W.v),e.rXU(D._),e.rXU(X.T),e.rXU(G.yy),e.rXU(P.G,8))};static#t=this.\u0275cmp=e.VBU({type:r,selectors:[["bkd-confirm-absences"]],standalone:!0,features:[e.aNF],decls:4,vars:11,consts:[["class","bkd-container bkd-container-limited",4,"bkdLet"],[1,"bkd-container","bkd-container-limited"],["class","mb-3 pb-3 border-bottom",4,"bkdLet"],[3,"formGroup","ngSubmit",4,"ngIf"],[1,"mb-3","pb-3","border-bottom"],[3,"ngSubmit","formGroup"],["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,"click","disabled"],["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(a,l){1&a&&(e.DNE(0,J,7,7,"div",0),e.nI1(1,"async"),e.nI1(2,"async"),e.nI1(3,"async")),2&a&&e.Y8G("bkdLet",e.sMw(7,k,e.bMT(1,1,l.formGroup$),e.bMT(2,3,l.unexcusedState$),e.bMT(3,5,l.excusedState$)))},dependencies:[B.N,p.bT,d.YN,d.qT,d.me,d.Fm,d.BC,d.cb,d.X1,d.j4,d.JD,p.pM,S.Wk,p.Jj,R.h,R.D9],changeDetection:0})}return r})()},9067:(j,b,n)=>{n.d(b,{g:()=>k});var p=n(1626),d=n(4903),S=n(5818),R=n(7165),y=n(906),i=n(5783),v=n(7673),x=n(7468),g=n(5558),T=n(6354),O=n(916),$=n(2809),f=n(5306);const N=i.NW({StudentRef:f.Or,StudentFullName:i.Yj,TotalAbsences:i.ai,TotalAbsencesUnconfirmed:i.ai,TotalAbsencesValidExcuse:i.ai,TotalAbsencesWithoutExcuse:i.ai,TotalAbsencesUnchecked:i.ai,TotalDispensations:i.ai,TotalHalfDays:i.ai,TotalIncidents:i.ai}),G=i.NW({Id:i.Yj,LessonRef:f.Or,StudentRef:f.Or,EventRef:f.Or,TypeRef:f.cO,RegistrationRef:f.cO,StudyClassRef:f.cO,ConfirmationStateId:(0,f.c$)(i.ai),EventDesignation:i.Yj,HasStudyCourseConfirmationCode:i.zM,LessonDateTimeFrom:f.iC,LessonDateTimeTo:f.iC,Comment:(0,f.c$)(i.Yj),Date:(0,f.c$)(f.DR),Type:(0,f.c$)(i.Yj),StudentFullName:i.Yj,StudyClassNumber:i.Yj,TeacherInformation:(0,f.c$)(i.Yj)}),M=i.NW({LessonRef:f.Or,EventRef:f.Or,EventDesignation:i.Yj,StudyClassNumber:i.Yj,TeacherInformation:(0,f.c$)(i.Yj),LessonDateTimeFrom:f.iC,LessonDateTimeTo:f.iC});var _=n(785),I=n(3382);function B(m){return E=>E.pipe((0,g.n)(t=>{const o=Number(t.headers.get("X-Pagination-Offset")),u=Number(t.headers.get("X-Pagination-Total"));return(0,_.k$)(m)(t.body).pipe((0,T.T)(c=>({offset:o,total:u,entries:c})))}))}function P(m,E,t=new p.Nl){return t.set("offset",String(m)).set("limit",String(E))}function e(m=new p.Lr){return m.set("X-Pagination-Total","on")}var A=n(4297),K=n(5437),W=n(6952),D=n(4438),X=n(4599);let k=(()=>{class m extends W.G{constructor(t,o,u){super(t,o,G,"LessonPresences"),this.storage=u,this.lessonPresenceRefCodec=i.NW((0,K.U)(this.codec.props,["LessonRef","RegistrationRef","StudentRef","EventRef","StudyClassRef","TypeRef"])),this.lessonPresenceIdCodec=i.NW((0,K.U)(this.codec.props,["Id"]))}getLessonsByDate(t){const o={fields:Object.keys(M.props).join(","),"filter.LessonDateTimeFrom":`=${(0,d.GP)(t,"yyyy-MM-dd")}`,sort:"LessonDateTimeFrom"};return this.http.get(`${this.baseUrl}/`,{params:o,headers:{"X-Role-Restriction":"LessonTeacherRole"}}).pipe((0,g.n)((0,_.k$)(M)))}getListByLessons(t){if(0===t.length)return(0,v.of)([]);const u={"filter.LessonRef":`;${t.map(c=>c.LessonRef.Id).join(";")}`};return this.getList({params:u,headers:{"X-Role-Restriction":"LessonTeacherRole"}})}getListByDateStudentClass(t,o,u){const c={"filter.LessonDateTimeFrom":`=${(0,d.GP)(t,"yyyy-MM-dd")}`,"filter.StudentRef":`=${o}`};return null!=u&&(c["filter.StudyClassRef"]=`=${u}`),this.getList({params:c,headers:{"X-Role-Restriction":"LessonTeacherRole"}})}getListForToday(){return this.http.get(`${this.baseUrl}/Today`,{headers:{"X-Role-Restriction":"LessonTeacherRole"}}).pipe((0,g.n)((0,_.k$)(this.codec)))}getListOfUnconfirmed(t){return(0,A.h)(this.storage.getPayload()?.roles,"ClassTeacherRole")?(0,x.p)([this.getListOfUnconfirmedClassTeacher(t),this.getListOfUnconfirmedLessonTeacher(t)]).pipe((0,T.T)((0,I.i)(O.Ak))):(0,A.h)(this.storage.getPayload()?.roles,"LessonTeacherRole")?this.getListOfUnconfirmedLessonTeacher(t):(0,A.h)(this.storage.getPayload()?.roles,"AbsenceAdministratorRole")?this.getListOfUnconfirmedAbsenceAdministrator(t):(0,v.of)([])}getStatistics(t,o,u){let c=U([[t.student,"StudentRef"],[t.educationalEvent,"EventRef"],[t.studyClass,"StudyClassRef"]]);return c=function F(m,E=new p.Nl){return m?E.set("sort",`${m.key}.${m.ascending?"asc":"desc"}`):E}(o,c),c=P(u,this.settings.paginationLimit,c),this.http.get(`${this.baseUrl}/Statistics`,{params:c,headers:e(),observe:"response"}).pipe(B(N))}getLessonRefs(t){let o=U([[t.student,"StudentRef"],[t.educationalEvent,"EventRef"],[t.studyClass,"StudyClassRef"]]);return o=o.set("filter.TypeRef",">0"),o=o.set("fields",["LessonRef","RegistrationRef","StudentRef","EventRef","StudyClassRef","TypeRef"].join(",")),o=o.set("limit","1500"),this.http.get(`${this.baseUrl}/`,{params:o}).pipe((0,g.n)((0,_.k$)(this.lessonPresenceRefCodec)))}getRegistrationRefsByEventIds(t){let o=new p.Nl;return o.set("filter.EventRef",`;${t.join(";")}`),o=o.set("fields",["LessonRef","RegistrationRef","StudentRef","EventRef","StudyClassRef","TypeRef"].join(",")),this.http.get(`${this.baseUrl}/`,{params:o}).pipe((0,g.n)((0,_.k$)(this.lessonPresenceRefCodec)))}getFilteredList(t,o,u){let c=U([[t.student,"StudentRef"],[t.educationalEvent,"EventRef"],[t.studyClass,"StudyClassRef"]],new p.Nl({fromObject:u}));return t.teacher&&(c=c.set("filter.TeacherInformation",`~*${t.teacher}*`)),t.dateFrom&&t.dateTo&&(0,S.r)(t.dateFrom,t.dateTo)?c=c.set("filter.LessonDateTimeFrom",`=${(0,d.GP)(t.dateFrom,"yyyy-MM-dd")}`):(t.dateFrom&&(c=c.set("filter.LessonDateTimeFrom",`>${(0,d.GP)((0,R.e)(t.dateFrom,1),"yyyy-MM-dd")}`)),t.dateTo&&(c=c.set("filter.LessonDateTimeTo",`<${(0,d.GP)((0,y.f)(t.dateTo,1),"yyyy-MM-dd")}`))),t.confirmationStates&&(c=c.set("filter.ConfirmationStateId",`;${t.confirmationStates.join(";")}`)),t.incidentTypes&&(c=c.set("filter.TypeRef",`;${t.incidentTypes.join(";")}`)),t.presenceTypes&&(c=c.set("filter.TypeRef",`;${t.presenceTypes.join(";")}`)),t.incidentTypes&&t.presenceTypes&&(c=c.set("filter.TypeRef",`;${t.presenceTypes.join(";")};${t.incidentTypes.join(";")}`)),this.http.get(`${this.baseUrl}/`,{params:P(o,this.settings.paginationLimit,c),headers:e(),observe:"response"}).pipe(B(G))}hasLessonsLessonTeacher(){const t=(new p.Nl).set("fields","Id");return this.http.get(`${this.baseUrl}/`,{params:P(0,1,t),headers:{"X-Role-Restriction":"LessonTeacherRole"}}).pipe((0,g.n)((0,_.k$)(this.lessonPresenceIdCodec)),(0,T.T)(o=>o.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,g.n)((0,_.k$)(this.lessonPresenceIdCodec)),(0,T.T)(t=>t.length))}getListOfUnconfirmedLessonTeacher(t){return this.getList({headers:{"X-Role-Restriction":"LessonTeacherRole"},params:{...t,"filter.ConfirmationStateId":`=${this.settings.unconfirmedAbsenceStateId}`,"filter.HasStudyCourseConfirmationCode":"=false"}})}getListOfUnconfirmedClassTeacher(t){return this.getList({headers:{"X-Role-Restriction":"ClassTeacherRole"},params:{...t,"filter.ConfirmationStateId":`=${this.settings.unconfirmedAbsenceStateId}`,"filter.HasStudyCourseConfirmationCode":"=true"}})}getListOfUnconfirmedAbsenceAdministrator(t){return this.getList({headers:{"X-Role-Restriction":"AbsenceAdministratorRole"},params:{...t,"filter.ConfirmationStateId":`=${this.settings.unconfirmedAbsenceStateId}`}})}static#e=this.\u0275fac=function(o){return new(o||m)(D.KVO(p.Qq),D.KVO($.yy),D.KVO(X.n))};static#t=this.\u0275prov=D.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();function U(m,E=new p.Nl){return m.reduce((t,[o,u])=>o&&u?t.set(`filter.${u}`,`=${o}`):t,E)}},1876:(j,b,n)=>{n.d(b,{G:()=>d});const d=new(n(4438).nKC)("Confirm Absences Service")},5561:(j,b,n)=>{n.d(b,{c:()=>d,w:()=>S});var p=n(6354);function d(R,y){return R.pipe((0,p.T)(i=>i.find(v=>v.Key===y)||null))}function S(R){return R.slice().sort((y,i)=>y.Value.localeCompare(i.Value))}},5818:(j,b,n)=>{n.d(b,{r:()=>d});var p=n(3601);function d(R,y){return+(0,p.o)(R)==+(0,p.o)(y)}}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/chunk-2FIH3FGB.js b/public/apps/webapp-schulverwaltung/chunk-2FIH3FGB.js new file mode 100644 index 00000000..b4012be1 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-2FIH3FGB.js @@ -0,0 +1 @@ +import{a as it}from"./chunk-MVTCHCDH.js";import{a as M}from"./chunk-Y4QYVF5K.js";import{K as et,P as tt,T as rt,U as st,c as Ye,j as ne,t as D,u as Ze}from"./chunk-GI4AZI25.js";import{a as ie,b as P,c as Je,e as ot}from"./chunk-Q5U6YZUT.js";import{a as Qe,b as nt}from"./chunk-33NXTXD7.js";import{u as E}from"./chunk-FTRAQKUW.js";import{a as He}from"./chunk-3AROKYRB.js";import{$ as be,$a as T,$b as $e,$c as je,Ac as f,Bb as c,Bc as v,Cb as d,Cc as De,Db as V,E as x,Ed as C,Ga as S,Gc as _,Gd as Ke,Hd as qe,I as fe,Ia as p,Id as We,Ja as ye,Jd as ze,L as z,Nc as L,O as y,Pc as R,Q as w,Qc as G,Sa as m,Sb as Ce,Sc as k,Ta as l,Tb as Ie,Tc as Pe,Ua as N,Uc as te,Va as Y,W as ue,Wa as Z,Wb as xe,Wc as U,Y as he,Ya as ge,Z as O,Zc as Be,_a as ee,a as B,ac as $,ad as we,b as j,bd as Oe,e as me,ec as Le,f as q,fd as Ne,ha as J,hd as Ve,ia as Q,jb as u,jd as Ge,k as W,kb as ve,kd as Ue,lb as g,m as b,n as A,pc as Ee,r as le,rc as Ae,rd as Me,sc as ke,sd as Fe,tb as Se,td as Xe,ua as a,ub as Te,va as h,vb as _e,w as I,xb as Re}from"./chunk-T7QWSMKM.js";function re(i,r){return i.pipe(b(n=>n.find(e=>e.Key===r)||null))}function Et(i){return i.slice().sort((r,n)=>r.Value.localeCompare(n.Value))}var at=new he("Confirm Absences Service");function ct(i,r){let n=ne(i),e=ne(r);return+n==+e}var ht=(i,r,n)=>({formGroup:i,unexcusedState:r,excusedState:n}),bt=i=>({count:i}),yt=()=>["/edit-absences"];function gt(i,r){if(i&1&&(m(0,"div",4),u(1),c(2,"translate"),l()),i&2){let n=r.bkdLet;a(),g(" ",V(2,1,n===1?"open-absences.edit.lesson-selected":"open-absences.edit.lessons-selected",_e(4,bt,n))," ")}}function vt(i,r){if(i&1&&(m(0,"div",19),u(1),c(2,"translate"),l()),i&2){let n=r.$implicit;a(),g(" ",V(2,1,"global.validation-errors."+n.error,n.params)," ")}}function St(i,r){if(i&1&&(m(0,"div",27),u(1),c(2,"translate"),l()),i&2){let n=r.$implicit;a(),g(" ",V(2,1,"global.validation-errors."+n.error,n.params)," ")}}function Tt(i,r){if(i&1&&(Y(0),S(1,St,3,4,"div",26),c(2,"async"),Z()),i&2){let n=T(5);a(),p("ngForOf",d(2,1,n.absenceTypeIdErrors$))}}function _t(i,r){if(i&1&&(m(0,"div",23),N(1,"input",24),c(2,"async"),m(3,"label",25),u(4),l(),S(5,Tt,3,3,"ng-container",11),c(6,"async"),l()),i&2){let n,e,t=r.$implicit,o=r.index,s=T(4);a(),ye("is-invalid",((n=(n=d(2,7,s.absenceTypeIdErrors$))==null?null:n.length)!==null&&n!==void 0?n:0)>0),p("id","absence-type-"+o)("value",t.Id),a(2),p("for","absence-type-"+o),a(),g(" ",t.Designation," "),a(),p("ngIf",((e=(e=d(6,9,s.absenceTypes$))==null?null:e.length)!==null&&e!==void 0?e:0)-1===o)}}function Rt(i,r){if(i&1&&(Y(0),S(1,_t,7,11,"div",20),c(2,"async"),m(3,"div",21),u(4),c(5,"translate"),m(6,"a",22),u(7),c(8,"translate"),l()(),Z()),i&2){let n=T(3);a(),p("ngForOf",d(2,4,n.absenceTypes$)),a(3),g(" ",d(5,6,"open-absences.edit.remark")," "),a(2),p("routerLink",Te(10,yt)),a(),g(" ",d(8,8,"edit-absences.title")," ")}}function Ct(i,r){i&1&&(m(0,"div",28)(1,"span",29),u(2,"Loading..."),l()())}function It(i,r){if(i&1){let n=ge();m(0,"form",5),ee("ngSubmit",function(){J(n);let t=T(2);return Q(t.onSubmit())}),S(1,vt,3,4,"div",6),c(2,"async"),m(3,"div",7)(4,"div",8),N(5,"input",9),m(6,"label",10),u(7),l(),S(8,Rt,9,11,"ng-container",11),l(),m(9,"div",12),N(10,"input",13),m(11,"label",14),u(12),l()()(),m(13,"div",15)(14,"button",16),c(15,"async"),ee("click",function(){J(n);let t=T(2);return Q(t.cancel())}),u(16),c(17,"translate"),l(),m(18,"button",17),c(19,"async"),u(20),c(21,"translate"),S(22,Ct,3,0,"div",18),c(23,"async"),l()()()}if(i&2){let n=T().bkdLet,e=T();p("formGroup",n.formGroup),a(),p("ngForOf",d(2,12,e.formErrors$)),a(4),p("value",n.excusedState.Key),a(2),g(" ",n.excusedState.Value," "),a(),p("ngIf",n.formGroup.get("absenceTypeId")),a(2),p("value",n.unexcusedState.Key),a(2),g(" ",n.unexcusedState.Value," "),a(2),p("disabled",d(15,14,e.saving$)),a(2),g(" ",d(17,16,"open-absences.edit.cancel")," "),a(2),p("disabled",d(19,18,e.saving$)),a(2),g(" ",d(21,20,"open-absences.edit.save")," "),a(2),p("ngIf",d(23,22,e.saving$))}}function xt(i,r){if(i&1&&(m(0,"div",1)(1,"h1"),u(2),c(3,"translate"),l(),S(4,gt,3,6,"div",2),c(5,"async"),S(6,It,24,24,"form",3),l()),i&2){let n=r.bkdLet,e=T();a(2),ve(d(3,3,"open-absences.edit.title")),a(2),p("bkdLet",d(5,5,e.getSelectedCount())),a(2),p("ngIf",n.formGroup&&n.unexcusedState&&n.excusedState)}}var ti=(()=>{let r=class r{constructor(e,t,o,s,X,H,K,dt,mt,lt,ft){this.fb=e,this.router=t,this.activatedRoute=o,this.toastService=s,this.translate=X,this.selectionService=H,this.dropDownItemsService=K,this.presenceTypesService=dt,this.updateService=mt,this.settings=lt,this.openAbsencesEditService=ft,this.formGroup$=this.selectionService.selectedWithoutPresenceType$.pipe(b(this.createFormGroup.bind(this)),z(1)),this.saving$=new q(!1),this.submitted$=new q(!1),this.formErrors$=ie(this.formGroup$,this.submitted$),this.absenceTypeIdErrors$=ie(this.formGroup$,this.submitted$,"absenceTypeId"),this.confirmationStates$=this.dropDownItemsService.getAbsenceConfirmationStates().pipe(z(1)),this.excusedState$=re(this.confirmationStates$,this.settings.excusedAbsenceStateId),this.unexcusedState$=re(this.confirmationStates$,this.settings.unexcusedAbsenceStateId),this.absenceTypes$=this.presenceTypesService.confirmationTypes$,this.destroy$=new me}ngOnInit(){this.selectionService.selectedIds$.pipe(x(1)).subscribe(e=>{e.length===0&&this.navigateBack()}),Je(this.formGroup$,"confirmationValue").pipe(w(this.destroy$)).subscribe(e=>{typeof e=="number"&&this.updateAbsenceTypeIdDisabled(e)}),A([P(this.formGroup$,"confirmationValue").pipe(I(E)),P(this.formGroup$,"absenceTypeId").pipe(I(E)),this.saving$]).pipe(w(this.destroy$)).subscribe(([e,t,o])=>{o?(e.disable(),t.disable()):(e.enable(),this.updateAbsenceTypeIdDisabled(e.value))}),A([P(this.formGroup$,"confirmationValue").pipe(I(E)),this.excusedState$.pipe(x(1),I(E))]).pipe(w(this.destroy$)).subscribe(([e,t])=>e.setValue(t.Key))}ngOnDestroy(){this.destroy$.next()}onSubmit(){this.submitted$.next(!0),this.formGroup$.pipe(x(1)).subscribe(e=>{if(e.valid){let{confirmationValue:t,absenceTypeId:o}=e.value;this.save(t,o)}})}cancel(){this.navigateBack()}getSelectedCount(){return this.selectionService.selectedLessons$.pipe(b(e=>e.length))}createFormGroup(e){return e.length>0?this.fb.group({confirmationValue:[null],absenceTypeId:[null,je.required]}):this.fb.group({confirmationValue:[null]})}updateAbsenceTypeIdDisabled(e){A([P(this.formGroup$,"absenceTypeId").pipe(x(1),I(E)),this.excusedState$.pipe(x(1),I(E))]).subscribe(([t,o])=>{e===o.Key?t.enable():t.disable()})}save(e,t){this.saving$.next(!0),A([this.selectionService.selectedIds$.pipe(x(1)),this.unexcusedState$.pipe(x(1),I(E))]).pipe(y(([o,s])=>A(o.map(({lessonIds:X,personId:H,presenceTypeId:K})=>this.updateService.confirmLessonPresences(X,[H],this.getNewAbsenceTypeId(K,e,Number(s.Key),t),e)))),fe(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}getNewAbsenceTypeId(e,t,o,s){if(!e)throw new Error("absence type id cannot be null");return t===o?this.settings.absencePresenceTypeId:e===this.settings.absencePresenceTypeId?s:e}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})}};r.\u0275fac=function(t){return new(t||r)(h(Me),h(Ae),h(Ee),h(He),h(Ke),h(tt),h(it),h(rt),h(st),h(U),h(at,8))},r.\u0275cmp=be({type:r,selectors:[["bkd-confirm-absences"]],standalone:!0,features:[Se],decls:4,vars:11,consts:[["class","bkd-container bkd-container-limited",4,"bkdLet"],[1,"bkd-container","bkd-container-limited"],["class","mb-3 pb-3 border-bottom",4,"bkdLet"],[3,"formGroup","ngSubmit",4,"ngIf"],[1,"mb-3","pb-3","border-bottom"],[3,"ngSubmit","formGroup"],["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,"click","disabled"],["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(t,o){t&1&&(S(0,xt,7,7,"div",0),c(1,"async"),c(2,"async"),c(3,"async")),t&2&&p("bkdLet",Re(7,ht,d(1,1,o.formGroup$),d(2,3,o.unexcusedState$),d(3,5,o.excusedState$)))},dependencies:[Qe,Ie,Fe,Ne,Be,Ve,we,Oe,Xe,Ge,Ue,Ce,ke,xe,We,qe],changeDetection:0});let i=r;return i})();var pt=_({StudentRef:R,StudentFullName:f,TotalAbsences:v,TotalAbsencesUnconfirmed:v,TotalAbsencesValidExcuse:v,TotalAbsencesWithoutExcuse:v,TotalAbsencesUnchecked:v,TotalDispensations:v,TotalHalfDays:v,TotalIncidents:v});var oe=_({Id:f,LessonRef:R,StudentRef:R,EventRef:R,TypeRef:G,RegistrationRef:G,StudyClassRef:G,ConfirmationStateId:L(v),EventDesignation:f,HasStudyCourseConfirmationCode:De,LessonDateTimeFrom:k,LessonDateTimeTo:k,Comment:L(f),Date:L(Pe),Type:L(f),StudentFullName:f,StudyClassNumber:f,TeacherInformation:L(f)});var ae=_({LessonRef:R,EventRef:R,EventDesignation:f,StudyClassNumber:f,TeacherInformation:L(f),LessonDateTimeFrom:k,LessonDateTimeTo:k});function ce(i){return r=>r.pipe(y(n=>{let e=Number(n.headers.get("X-Pagination-Offset")),t=Number(n.headers.get("X-Pagination-Total"));return C(i)(n.body).pipe(b(o=>({offset:e,total:t,entries:o})))}))}function F(i,r,n=new $){return n.set("offset",String(i)).set("limit",String(r))}function pe(i=new $e){return i.set("X-Pagination-Total","on")}var Ai=(()=>{let r=class r extends nt{constructor(e,t,o){super(e,t,oe,"LessonPresences"),this.storage=o,this.lessonPresenceRefCodec=_(te(this.codec.props,["LessonRef","RegistrationRef","StudentRef","EventRef","StudyClassRef","TypeRef"])),this.lessonPresenceIdCodec=_(te(this.codec.props,["Id"]))}getLessonsByDate(e){let t={fields:Object.keys(ae.props).join(","),"filter.LessonDateTimeFrom":`=${D(e,"yyyy-MM-dd")}`,sort:"LessonDateTimeFrom"},o={"X-Role-Restriction":"LessonTeacherRole"};return this.http.get(`${this.baseUrl}/`,{params:t,headers:o}).pipe(y(C(ae)))}getListByLessons(e){if(e.length===0)return W([]);let o={"filter.LessonRef":`;${e.map(s=>s.LessonRef.Id).join(";")}`};return this.getList({params:o,headers:{"X-Role-Restriction":"LessonTeacherRole"}})}getListByDateStudentClass(e,t,o){let s={"filter.LessonDateTimeFrom":`=${D(e,"yyyy-MM-dd")}`,"filter.StudentRef":`=${t}`};return o!=null&&(s["filter.StudyClassRef"]=`=${o}`),this.getList({params:s,headers:{"X-Role-Restriction":"LessonTeacherRole"}})}getListForToday(){return this.http.get(`${this.baseUrl}/Today`,{headers:{"X-Role-Restriction":"LessonTeacherRole"}}).pipe(y(C(this.codec)))}getListOfUnconfirmed(e){return M(this.storage.getPayload()?.roles,"ClassTeacherRole")?le([this.getListOfUnconfirmedClassTeacher(e),this.getListOfUnconfirmedLessonTeacher(e)]).pipe(b(ot(et))):M(this.storage.getPayload()?.roles,"LessonTeacherRole")?this.getListOfUnconfirmedLessonTeacher(e):M(this.storage.getPayload()?.roles,"AbsenceAdministratorRole")?this.getListOfUnconfirmedAbsenceAdministrator(e):W([])}getStatistics(e,t,o){let s=de([[e.student,"StudentRef"],[e.educationalEvent,"EventRef"],[e.studyClass,"StudyClassRef"]]);return s=$t(t,s),s=F(o,this.settings.paginationLimit,s),this.http.get(`${this.baseUrl}/Statistics`,{params:s,headers:pe(),observe:"response"}).pipe(ce(pt))}getLessonRefs(e){let t=de([[e.student,"StudentRef"],[e.educationalEvent,"EventRef"],[e.studyClass,"StudyClassRef"]]);return t=t.set("filter.TypeRef",">0"),t=t.set("fields",["LessonRef","RegistrationRef","StudentRef","EventRef","StudyClassRef","TypeRef"].join(",")),t=t.set("limit","1500"),this.http.get(`${this.baseUrl}/`,{params:t}).pipe(y(C(this.lessonPresenceRefCodec)))}getRegistrationRefsByEventIds(e){let t=new $;return t.set("filter.EventRef",`;${e.join(";")}`),t=t.set("fields",["LessonRef","RegistrationRef","StudentRef","EventRef","StudyClassRef","TypeRef"].join(",")),this.http.get(`${this.baseUrl}/`,{params:t}).pipe(y(C(this.lessonPresenceRefCodec)))}getFilteredList(e,t,o){let s=de([[e.student,"StudentRef"],[e.educationalEvent,"EventRef"],[e.studyClass,"StudyClassRef"]],new $({fromObject:o}));return e.teacher&&(s=s.set("filter.TeacherInformation",`~*${e.teacher}*`)),e.dateFrom&&e.dateTo&&ct(e.dateFrom,e.dateTo)?s=s.set("filter.LessonDateTimeFrom",`=${D(e.dateFrom,"yyyy-MM-dd")}`):(e.dateFrom&&(s=s.set("filter.LessonDateTimeFrom",`>${D(Ze(e.dateFrom,1),"yyyy-MM-dd")}`)),e.dateTo&&(s=s.set("filter.LessonDateTimeTo",`<${D(Ye(e.dateTo,1),"yyyy-MM-dd")}`))),e.confirmationStates&&(s=s.set("filter.ConfirmationStateId",`;${e.confirmationStates.join(";")}`)),e.incidentTypes&&(s=s.set("filter.TypeRef",`;${e.incidentTypes.join(";")}`)),e.presenceTypes&&(s=s.set("filter.TypeRef",`;${e.presenceTypes.join(";")}`)),e.incidentTypes&&e.presenceTypes&&(s=s.set("filter.TypeRef",`;${e.presenceTypes.join(";")};${e.incidentTypes.join(";")}`)),this.http.get(`${this.baseUrl}/`,{params:F(t,this.settings.paginationLimit,s),headers:pe(),observe:"response"}).pipe(ce(oe))}hasLessonsLessonTeacher(){let e=new $().set("fields","Id");return this.http.get(`${this.baseUrl}/`,{params:F(0,1,e),headers:{"X-Role-Restriction":"LessonTeacherRole"}}).pipe(y(C(this.lessonPresenceIdCodec)),b(t=>t.length>0))}checkableAbsencesCount(){return this.http.get(`${this.baseUrl}/`,{headers:{"X-Role-Restriction":"LessonTeacherRole"},params:{"filter.ConfirmationStateId":`;${this.settings.checkableAbsenceStateId}`,fields:"Id,ConfirmationStateId"}}).pipe(y(C(this.lessonPresenceIdCodec)),b(e=>e.length))}getListOfUnconfirmedLessonTeacher(e){return this.getList({headers:{"X-Role-Restriction":"LessonTeacherRole"},params:j(B({},e),{"filter.ConfirmationStateId":`=${this.settings.unconfirmedAbsenceStateId}`,"filter.HasStudyCourseConfirmationCode":"=false"})})}getListOfUnconfirmedClassTeacher(e){return this.getList({headers:{"X-Role-Restriction":"ClassTeacherRole"},params:j(B({},e),{"filter.ConfirmationStateId":`=${this.settings.unconfirmedAbsenceStateId}`,"filter.HasStudyCourseConfirmationCode":"=true"})})}getListOfUnconfirmedAbsenceAdministrator(e){return this.getList({headers:{"X-Role-Restriction":"AbsenceAdministratorRole"},params:j(B({},e),{"filter.ConfirmationStateId":`=${this.settings.unconfirmedAbsenceStateId}`})})}};r.\u0275fac=function(t){return new(t||r)(O(Le),O(U),O(ze))},r.\u0275prov=ue({token:r,factory:r.\u0275fac,providedIn:"root"});let i=r;return i})();function de(i,r=new $){return i.reduce((n,[e,t])=>e&&t?n.set(`filter.${t}`,`=${e}`):n,r)}function $t(i,r=new $){return i?r.set("sort",`${i.key}.${i.ascending?"asc":"desc"}`):r}export{Et as a,at as b,ct as c,ti as d,Ai as e}; diff --git a/public/apps/webapp-schulverwaltung/chunk-2IXEFCAH.js b/public/apps/webapp-schulverwaltung/chunk-2IXEFCAH.js new file mode 100644 index 00000000..e17c6647 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-2IXEFCAH.js @@ -0,0 +1 @@ +import{E as o,G as a,L as c,W as u,f as n,m as s,zd as p}from"./chunk-T7QWSMKM.js";var f=(()=>{let e=class e{getSortingChar$(i){return this.sorting$.pipe(s(t=>t&&i===t.key?t.ascending?"\u2193":"\u2191":""))}constructor(){this.sortingSubject$=new n(null),this.sorting$=this.sortingSubject$.asObservable().pipe(a(p),c(1))}setSorting(i){this.sortingSubject$.next(i)}toggleSorting(i){this.sorting$.pipe(o(1)).subscribe(t=>{let g=t&&t.key===i?!t.ascending:!0;this.sortingSubject$.next({key:i,ascending:g})})}};e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=u({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();export{f as a}; diff --git a/public/apps/webapp-schulverwaltung/chunk-2JTOMQIG.js b/public/apps/webapp-schulverwaltung/chunk-2JTOMQIG.js new file mode 100644 index 00000000..3d5654c4 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-2JTOMQIG.js @@ -0,0 +1,2 @@ +import{a as Di}from"./chunk-IA3IH2MK.js";import{a as Vi,b as Ni,c as ji}from"./chunk-V34B6ZOV.js";import{a as ki}from"./chunk-VTGXNMZL.js";import{a as $i}from"./chunk-VFMGCCGG.js";import{a as Ai}from"./chunk-RC3HL7KB.js";import"./chunk-KLXFX6SJ.js";import"./chunk-QHPTZGVN.js";import"./chunk-HHGALFFJ.js";import{a as hi,b as _i,e as Si}from"./chunk-2FIH3FGB.js";import{a as We}from"./chunk-MVTCHCDH.js";import"./chunk-Y4QYVF5K.js";import"./chunk-WN7VWSJW.js";import{a as Ri}from"./chunk-QR6JUXUH.js";import{a as Li,b as Pi}from"./chunk-DXYHDL5D.js";import{a as Bi}from"./chunk-TK3HGFHH.js";import{a as Oi}from"./chunk-TNMAZX5O.js";import{a as Mi}from"./chunk-2IXEFCAH.js";import{b as xi,c as wi}from"./chunk-X2BR3YJG.js";import"./chunk-LO5XSJLW.js";import{a as Ii}from"./chunk-DMYOU5OM.js";import"./chunk-RWNJF4OZ.js";import{L as vi,M as pt,P as Ei,Q as mt,R as ht,S as qe,T as Ue,U as Ci,j as gi,v as bi,w as ut}from"./chunk-GI4AZI25.js";import{a as He,c as dt,e as yi}from"./chunk-Q5U6YZUT.js";import{b as Fi}from"./chunk-N6FFLIGM.js";import{a as Ge,c as Ti}from"./chunk-33NXTXD7.js";import{f as li,g as ci,j as di,w as we,y as fi}from"./chunk-FTRAQKUW.js";import{a as pi}from"./chunk-3AROKYRB.js";import{$ as j,$a as f,$c as xe,Ac as ot,Ad as ui,Ba as Pt,Bb as u,Bc as lt,C as It,Cb as m,Db as ie,E as ee,Ed as mi,Fa as Le,Fb as Z,Ga as b,Gc as zt,Gd as $e,Ha as q,Hd as de,I as xt,Ia as p,Ib as Mt,Id as ue,Ja as $,Jb as k,Kb as Ie,L as pe,Ma as Xe,Mb as Nt,Mc as ct,N as wt,Na as U,Nb as Rt,O as Se,Q as M,Qa as et,R as Ft,Ra as tt,Rb as jt,Sa as c,Sb as Ee,Ta as d,Tb as Me,Ua as D,V as At,Va as ge,Vb as at,W,Wa as be,Wb as Ce,Wc as ce,X as kt,Xa as it,Xb as $t,Xc as Qt,Y as Dt,Ya as V,Yc as Kt,Z as R,Zb as Ht,Zc as Yt,_a as x,a as _e,aa as Ot,ab as nt,ad as Re,b as ke,ba as H,bb as st,bd as Zt,cb as me,db as rt,e as se,eb as G,ec as Gt,ed as Jt,f as Ze,fb as he,fd as Xt,ga as Te,gb as O,h as Ct,ha as C,hb as B,hd as ei,i as yt,ia as y,ib as N,jb as h,jd as ti,k as St,kb as T,kd as ii,la as Bt,lb as E,ld as ni,m as S,ma as Je,mb as ve,md as si,n as De,nd as ri,pb as z,pc as Ne,qa as re,qb as Q,qc as Wt,ra as A,rb as K,rc as qt,rd as ai,s as ye,sb as le,sc as Ut,sd as je,tb as te,td as oi,ua as l,v as Oe,va as _,vb as Y,w as Be,wb as Vt,xa as I,xb as Pe,yb as Ve,z as Tt,za as Lt}from"./chunk-T7QWSMKM.js";var L=function(i){return i.Absent="absent",i.Dispensation="dispensation",i.HalfDay="half-day",i.Incident="incident",i.Present="present",i}(L||{}),Gi=(()=>{let t=class t{constructor(e,n){this.updateService=e,this.settings=n}update(e,n,r,a,o,g){let v=[];switch(r){case L.Present:v=this.createResetBulkRequests(e);break;case L.Absent:v=this.createAbsentEditBulkRequests(e,n,a,o);break;case L.Dispensation:v=this.createEditBulkRequests(e,null,this.settings.dispensationPresenceTypeId);break;case L.HalfDay:v=this.createEditBulkRequests(e,null,this.settings.halfDayPresenceTypeId);break;case L.Incident:v=this.createEditBulkRequests(e,null,g);break}return De(v).pipe(S(()=>{}))}createAbsentEditBulkRequests(e,n,r,a){return r===this.settings.excusedAbsenceStateId?this.createEditBulkRequests(e,r,a):r===this.settings.unexcusedAbsenceStateId?this.createEditBulkRequests(e,r,this.settings.absencePresenceTypeId):[...this.createEditBulkRequests(e.filter(Hi(n,this.settings)),r,this.settings.absencePresenceTypeId),...this.createEditBulkRequests(e.filter(we(Hi(n,this.settings))),r,null)]}createResetBulkRequests(e){return pt(e).map(({lessonIds:n,personIds:r})=>this.updateService.removeLessonPresences(n,r))}createEditBulkRequests(e,n,r){return pt(e).map(({lessonIds:a,personIds:o})=>this.updateService.editLessonPresences(a,o,r||void 0,n||void 0))}};t.\u0275fac=function(n){return new(n||t)(R(Ci),R(ce))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();function Hi(i,t){return s=>{let e=i.find(n=>n.Id===s.TypeRef.Id);return!e||e.Id===t.dispensationPresenceTypeId||e.Id===t.halfDayPresenceTypeId||e.IsIncident}}var X=(()=>{let t=class t extends Pi{constructor(e,n,r,a,o,g,v){super(e,n,r,a,"/edit-absences"),this.lessonPresencesService=o,this.presenceTypesService=g,this.dropDownItemsService=v,this.presenceTypes$=this.loadPresenceTypes().pipe(pe(1)),this.absenceConfirmationStates$=this.loadAbsenceConfirmationStates().pipe(S(hi),pe(1)),this.presenceControlEntries$=De([this.entries$,this.presenceTypes$,this.absenceConfirmationStates$]).pipe(S(yi(Di)),pe(1)),this.selected=[],this.queryParamsString$.pipe(M(this.destroy$)).subscribe(F=>this.confirmBackLinkParams={returnparams:F})}resetSelection(){this.selected=[]}updateAfterConfirm(){this.resetEntries()}getInitialFilter(){return{student:null,educationalEvent:null,studyClass:null,teacher:null,dateFrom:null,dateTo:null,presenceTypes:null,confirmationStates:null,incidentTypes:null}}isValidFilter(e){return!!(e.student||e.educationalEvent||e.studyClass||e.teacher||e.dateFrom||e.dateTo||e.presenceTypes||e.confirmationStates||e.incidentTypes)}loadEntries(e,n,r){let a={sort:"StudentFullName.asc,LessonDateTimeFrom.asc"};return this.loadingService.load(this.lessonPresencesService.getFilteredList(e,r,a),Li)}buildParamsFromFilter(e){return Vi(e)}loadPresenceTypes(){return this.loadingService.load(this.presenceTypesService.activePresenceTypes$)}loadAbsenceConfirmationStates(){return this.loadingService.load(this.dropDownItemsService.getAbsenceConfirmationStates())}};t.\u0275fac=function(n){return new(n||t)(R(Rt),R(Fi),R(Mi),R(ce),R(Si),R(Ue),R(We))},t.\u0275prov=W({token:t,factory:t.\u0275fac});let i=t;return i})();var _n=(i,t,s)=>({confirmationStates:i,categories:t,formGroup:s});function gn(i,t){if(i&1&&(c(0,"div",11),h(1),u(2,"translate"),d()),i&2){let s=t.$implicit;l(),E(" ",ie(2,1,"global.validation-errors."+s.error,s.params)," ")}}function bn(i,t){if(i&1&&(c(0,"option",23),h(1),d()),i&2){let s=t.$implicit;p("ngValue",s.Id),l(),E(" ",s.Designation," ")}}function vn(i,t){if(i&1&&(c(0,"select",22),u(1,"async"),c(2,"option",23),h(3),u(4,"translate"),d(),b(5,bn,2,2,"option",24),u(6,"async"),d()),i&2){let s,e=f(6);$("is-invalid",((s=m(1,5,e.absenceTypeIdErrors$))==null?null:s.length)||!1),l(2),p("ngValue",null),l(),E(" ",m(4,7,"edit-absences.edit.absence-type-placeholder")," "),l(2),p("ngForOf",m(6,9,e.absenceTypes$))}}function En(i,t){if(i&1&&(c(0,"div",25),h(1),u(2,"translate"),d()),i&2){let s=t.$implicit;l(),E(" ",ie(2,1,"global.validation-errors."+s.error,s.params)," ")}}function Cn(i,t){if(i&1&&(c(0,"div",18),D(1,"input",19),c(2,"label",14),h(3),d(),b(4,vn,7,11,"select",20)(5,En,3,4,"div",21),u(6,"async"),d()),i&2){let s=t.$implicit,e=f(5);l(),p("id","state-"+s.Key)("value",s.Key),l(),me("for","state-"+s.Key),l(),E(" ",s.Value," "),l(),p("ngIf",e.isExcused(s)),l(),p("ngForOf",m(6,6,e.absenceTypeIdErrors$))}}function yn(i,t){if(i&1&&(c(0,"div",16),b(1,Cn,7,8,"div",17),d()),i&2){let s=f(3).bkdLet;l(),p("ngForOf",s.confirmationStates)}}function Sn(i,t){if(i&1&&(c(0,"option",23),h(1),d()),i&2){let s=t.$implicit;p("ngValue",s.Id),l(),E(" ",s.Designation," ")}}function Tn(i,t){if(i&1&&(c(0,"div",25),h(1),u(2,"translate"),d()),i&2){let s=t.$implicit;l(),E(" ",ie(2,1,"global.validation-errors."+s.error,s.params)," ")}}function In(i,t){if(i&1&&(c(0,"div",16)(1,"select",26),u(2,"async"),c(3,"option",23),h(4),u(5,"translate"),d(),b(6,Sn,2,2,"option",24),u(7,"async"),d(),b(8,Tn,3,4,"div",21),u(9,"async"),d()),i&2){let s,e=f(4);l(),$("is-invalid",((s=m(2,6,e.incidentIdErrors$))==null?null:s.length)||!1),l(2),p("ngValue",null),l(),E(" ",m(5,8,"edit-absences.edit.incident-placeholder")," "),l(2),p("ngForOf",m(7,10,e.incidents$)),l(2),p("ngForOf",m(9,12,e.incidentIdErrors$))}}function xn(i,t){if(i&1&&(c(0,"div",12),D(1,"input",13),c(2,"label",14),h(3),u(4,"translate"),d(),b(5,yn,2,1,"div",15)(6,In,10,14,"div",15),d()),i&2){let s=t.$implicit,e=f(3);l(),p("id","category-"+s)("value",s),l(),me("for","category-"+s),l(),E(" ",m(4,6,"edit-absences.edit.categories."+s)," "),l(2),p("ngIf",e.isAbsent(s)),l(),p("ngIf",e.isIncident(s))}}function wn(i,t){i&1&&(c(0,"div",27)(1,"span",28),h(2,"Loading..."),d()())}function Fn(i,t){if(i&1){let s=V();c(0,"form",3),x("ngSubmit",function(){C(s);let n=f(2);return y(n.onSubmit())}),b(1,gn,3,4,"div",4),u(2,"async"),c(3,"div",5),b(4,xn,7,8,"div",6),d(),c(5,"div",7)(6,"button",8),u(7,"async"),x("click",function(){C(s);let n=f(2);return y(n.cancel())}),h(8),u(9,"translate"),d(),c(10,"button",9),u(11,"async"),h(12),u(13,"translate"),b(14,wn,3,0,"div",10),u(15,"async"),d()()()}if(i&2){let s=f().bkdLet,e=f();p("formGroup",s.formGroup),l(),p("ngForOf",m(2,8,e.formErrors$)),l(3),p("ngForOf",s.categories),l(2),p("disabled",m(7,10,e.saving$)),l(2),E(" ",m(9,12,"edit-absences.edit.cancel")," "),l(2),p("disabled",m(11,14,e.saving$)),l(2),E(" ",m(13,16,"edit-absences.edit.save")," "),l(2),p("ngIf",m(15,18,e.saving$))}}function An(i,t){if(i&1&&(c(0,"div",1),b(1,Fn,16,20,"form",2),d()),i&2){let s=t.bkdLet;l(),p("ngIf",s.formGroup&&s.confirmationStates)}}var Wi=(()=>{let t=class t{constructor(e,n,r,a,o,g,v,F,P,oe){this.fb=e,this.router=n,this.route=r,this.toastService=a,this.translate=o,this.state=g,this.dropDownItemsService=v,this.presenceTypesService=F,this.updateService=P,this.settings=oe,this.absenceTypes$=this.presenceTypesService.confirmationTypes$,this.incidents$=this.presenceTypesService.incidentTypes$,this.formGroup$=this.createFormGroup(),this.saving$=new Ze(!1),this.submitted$=new Ze(!1),this.formErrors$=He(this.formGroup$,this.submitted$),this.absenceTypeIdErrors$=He(this.formGroup$,this.submitted$,"absenceTypeId"),this.incidentIdErrors$=He(this.formGroup$,this.submitted$,"incidentId"),this.availableCategories=[L.Absent,L.Dispensation,L.HalfDay,L.Incident,L.Present],this.confirmationStates$=this.dropDownItemsService.getAbsenceConfirmationStates().pipe(S(this.sortAbsenceConfirmationStates.bind(this)),pe(1)),this.activeCategories$=this.presenceTypesService.halfDayActive$.pipe(S(J=>J?this.availableCategories:this.availableCategories.filter(fe=>fe!==L.HalfDay))),this.destroy$=new se}ngOnInit(){this.state.selected.length===0&&this.navigateBack(),dt(this.formGroup$,"category").pipe(M(this.destroy$)).subscribe(this.updateConfirmationValueDisabled.bind(this)),dt(this.formGroup$,"confirmationValue").pipe(M(this.destroy$)).subscribe(this.updateAbsenceTypeIdDisabled.bind(this))}ngOnDestroy(){this.destroy$.next()}isAbsent(e){return e===L.Absent}isExcused(e){return e.Key===this.settings.excusedAbsenceStateId}isIncident(e){return e===L.Incident}onSubmit(){this.submitted$.next(!0),this.formGroup$.pipe(ee(1)).subscribe(e=>{e.valid&&this.save(e)})}cancel(){this.navigateBack()}createFormGroup(){return this.getInitialAbsenceTypeId().pipe(S(e=>this.fb.group({category:[L.Absent,xe.required],confirmationValue:[this.settings.excusedAbsenceStateId,xe.required],absenceTypeId:[e,xe.required],incidentId:[{value:null,disabled:!0},xe.required]})),pe(1))}getInitialAbsenceTypeId(){return this.absenceTypes$.pipe(ee(1),S(e=>{let n=e.map(a=>a.Id),r=ui(this.state.selected.map(a=>a.TypeRef.Id));return r.length===1&&r[0]!=null&&n.includes(r[0])?r[0]:null}))}updateConfirmationValueDisabled(){this.formGroup$.pipe(ee(1)).subscribe(e=>{let n=e.get("category"),r=e.get("confirmationValue"),a=e.get("absenceTypeId"),o=e.get("incidentId");n&&r&&a&&o&&(n.value===L.Absent?(r.enable(),this.updateAbsenceTypeIdDisabled()):(r.disable(),a.disable()),n.value===L.Incident?o.enable():o.disable())})}updateAbsenceTypeIdDisabled(){this.formGroup$.pipe(ee(1)).subscribe(e=>{let n=e.get("confirmationValue"),r=e.get("absenceTypeId");n&&r&&(n.value===this.settings.excusedAbsenceStateId?r.enable():r.disable())})}save(e){this.saving$.next(!0);let{category:n,confirmationValue:r,absenceTypeId:a,incidentId:o}=e.value;this.presenceTypesService.presenceTypes$.pipe(Se(g=>this.updateService.update(this.state.selected,g,n,r,a,o)),xt(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.state.resetSelection(),this.toastService.success(this.translate.instant("edit-absences.edit.save-success")),this.navigateBack(!0)}navigateBack(e){this.route.queryParams.pipe(ee(1)).subscribe(n=>{this.router.navigate(["/edit-absences"],{queryParams:ke(_e({},Ii(n.returnparams)),{reload:e})})})}sortAbsenceConfirmationStates(e){return e.slice().sort((n,r)=>n.Key===this.settings.excusedAbsenceStateId?-1:r.Key===this.settings.excusedAbsenceStateId?1:n.Value.localeCompare(r.Value))}};t.\u0275fac=function(n){return new(n||t)(_(ai),_(qt),_(Ne),_(pi),_($e),_(X),_(We),_(Ue),_(Gi),_(ce))},t.\u0275cmp=j({type:t,selectors:[["bkd-edit-absences-edit"]],standalone:!0,features:[te],decls:7,vars:14,consts:[["class","bkd-container bkd-container-limited",4,"bkdLet"],[1,"bkd-container","bkd-container-limited"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"ngSubmit","formGroup"],["class","alert alert-danger",4,"ngFor","ngForOf"],[1,"form-group","pb-4"],["class","form-check mt-2 mb-3",4,"ngFor","ngForOf"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-secondary",3,"click","disabled"],["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"],[1,"form-check","mt-2","mb-3"],["type","radio","formControlName","category",1,"form-check-input",3,"id","value"],[1,"form-check-label",3,"for"],["class","ms-5",4,"ngIf"],[1,"ms-5"],["class","form-check mt-2 mb-2",4,"ngFor","ngForOf"],[1,"form-check","mt-2","mb-2"],["type","radio","formControlName","confirmationValue",1,"form-check-input",3,"id","value"],["class","form-select mt-1","formControlName","absenceTypeId",3,"is-invalid",4,"ngIf"],["class","invalid-feedback",4,"ngFor","ngForOf"],["formControlName","absenceTypeId",1,"form-select","mt-1"],[3,"ngValue"],[3,"ngValue",4,"ngFor","ngForOf"],[1,"invalid-feedback"],["formControlName","incidentId",1,"form-select","mt-1"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(n,r){n&1&&(c(0,"h1"),h(1),u(2,"translate"),d(),b(3,An,2,1,"div",0),u(4,"async"),u(5,"async"),u(6,"async")),n&2&&(l(),T(m(2,2,"edit-absences.title")),l(2),p("bkdLet",Pe(10,_n,m(4,4,r.confirmationStates$),m(5,6,r.activeCategories$),m(6,8,r.formGroup$))))},dependencies:[Ge,Me,je,Xt,si,ri,Yt,ni,ei,Re,Zt,oi,ti,ii,Ee,Ce,ue,de],changeDetection:0});let i=t;return i})();var Qe=(()=>{let t=class t extends vi{};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=Bt(t)))(r||t)}})(),t.\u0275prov=W({token:t,factory:t.\u0275fac});let i=t;return i})();var Dn=["content"],On=["scroll"],Bn=["padding"],zi=["*"],Ae=i=>({searchTerm:i});function Ln(i,t){if(i&1&&(c(0,"div",3),it(1,6),d()),i&2){let s=f();l(),p("ngTemplateOutlet",s.headerTemplate)("ngTemplateOutletContext",Y(2,Ae,s.filterValue))}}function Pn(i,t){if(i&1&&(c(0,"div",5),it(1,6),d()),i&2){let s=f();l(),p("ngTemplateOutlet",s.footerTemplate)("ngTemplateOutletContext",Y(2,Ae,s.filterValue))}}var Vn=["searchInput"],Mn=["clearButton"],Nn=(i,t,s)=>({item:i,clear:t,label:s}),Rn=(i,t)=>({items:i,clear:t}),jn=(i,t,s,e)=>({item:i,item$:t,index:s,searchTerm:e});function $n(i,t){if(i&1){let s=V();c(0,"span",21),x("click",function(){C(s);let n=f().$implicit,r=f(2);return y(r.unselect(n))}),h(1,"\xD7"),d(),D(2,"span",22)}if(i&2){let s=f().$implicit,e=f(2);l(2),p("ngItemLabel",s.label)("escape",e.escapeHTML)}}function Hn(i,t){}function Gn(i,t){if(i&1&&(c(0,"div",20),b(1,$n,3,2,"ng-template",null,1,Z)(3,Hn,0,0,"ng-template",12),d()),i&2){let s=t.$implicit,e=N(2),n=f(2);$("ng-value-disabled",s.disabled),l(3),p("ngTemplateOutlet",n.labelTemplate||e)("ngTemplateOutletContext",Pe(4,Nn,s.value,n.clearItem,s.label))}}function Wn(i,t){if(i&1&&et(0,Gn,4,8,"div",19,Xe().trackByOption,!0),i&2){let s=f();tt(s.selectedItems)}}function qn(i,t){}function Un(i,t){if(i&1&&b(0,qn,0,0,"ng-template",12),i&2){let s=f();p("ngTemplateOutlet",s.multiLabelTemplate)("ngTemplateOutletContext",Vt(2,Rn,s.selectedValues,s.clearItem))}}function zn(i,t){i&1&&D(0,"div",24)}function Qn(i,t){}function Kn(i,t){if(i&1&&b(0,zn,1,0,"ng-template",null,2,Z)(2,Qn,0,0,"ng-template",23),i&2){let s=N(1),e=f();l(2),p("ngTemplateOutlet",e.loadingSpinnerTemplate||s)}}function Yn(i,t){if(i&1&&(c(0,"span",15,3)(2,"span",25),h(3,"\xD7"),d()()),i&2){let s=f();me("title",s.clearAllText)}}function Zn(i,t){if(i&1&&D(0,"span",30),i&2){let s=f().$implicit,e=f(2);p("ngItemLabel",s.label)("escape",e.escapeHTML)}}function Jn(i,t){}function Xn(i,t){if(i&1){let s=V();c(0,"div",29),x("click",function(){let n=C(s).$implicit,r=f(2);return y(r.toggleItem(n))})("mouseover",function(){let n=C(s).$implicit,r=f(2);return y(r.onItemHover(n))}),b(1,Zn,1,2,"ng-template",null,4,Z)(3,Jn,0,0,"ng-template",12),d()}if(i&2){let s=t.$implicit,e=N(2),n=f(2);$("ng-option-disabled",s.disabled)("ng-option-selected",s.selected)("ng-optgroup",s.children)("ng-option",!s.children)("ng-option-child",!!s.parent)("ng-option-marked",s===n.itemsList.markedItem),q("role",s.children?"group":"option")("aria-selected",s.selected)("id",s==null?null:s.htmlId),l(3),p("ngTemplateOutlet",s.children?n.optgroupTemplate||e:n.optionTemplate||e)("ngTemplateOutletContext",Ve(17,jn,s.value,s,s.index,n.searchTerm))}}function es(i,t){if(i&1&&(c(0,"span")(1,"span",32),h(2),d(),h(3),d()),i&2){let s=f(3);l(2),T(s.addTagText),l(),E('"',s.searchTerm,'"')}}function ts(i,t){}function is(i,t){if(i&1){let s=V();c(0,"div",31),x("mouseover",function(){C(s);let n=f(2);return y(n.itemsList.unmarkItem())})("click",function(){C(s);let n=f(2);return y(n.selectTag())}),b(1,es,4,2,"ng-template",null,5,Z)(3,ts,0,0,"ng-template",12),d()}if(i&2){let s=N(2),e=f(2);$("ng-option-marked",!e.itemsList.markedItem),l(3),p("ngTemplateOutlet",e.tagTemplate||s)("ngTemplateOutletContext",Y(4,Ae,e.searchTerm))}}function ns(i,t){if(i&1&&(c(0,"div",33),h(1),d()),i&2){let s=f(3);l(),T(s.notFoundText)}}function ss(i,t){}function rs(i,t){if(i&1&&b(0,ns,2,1,"ng-template",null,6,Z)(2,ss,0,0,"ng-template",12),i&2){let s=N(1),e=f(2);l(2),p("ngTemplateOutlet",e.notFoundTemplate||s)("ngTemplateOutletContext",Y(2,Ae,e.searchTerm))}}function as(i,t){if(i&1&&(c(0,"div",33),h(1),d()),i&2){let s=f(3);l(),T(s.typeToSearchText)}}function os(i,t){}function ls(i,t){if(i&1&&b(0,as,2,1,"ng-template",null,7,Z)(2,os,0,0,"ng-template",23),i&2){let s=N(1),e=f(2);l(2),p("ngTemplateOutlet",e.typeToSearchTemplate||s)}}function cs(i,t){if(i&1&&(c(0,"div",33),h(1),d()),i&2){let s=f(3);l(),T(s.loadingText)}}function ds(i,t){}function us(i,t){if(i&1&&b(0,cs,2,1,"ng-template",null,8,Z)(2,ds,0,0,"ng-template",12),i&2){let s=N(1),e=f(2);l(2),p("ngTemplateOutlet",e.loadingTextTemplate||s)("ngTemplateOutletContext",Y(2,Ae,e.searchTerm))}}function ps(i,t){if(i&1){let s=V();c(0,"ng-dropdown-panel",26),x("update",function(n){C(s);let r=f();return y(r.viewPortItems=n)})("scroll",function(n){C(s);let r=f();return y(r.scroll.emit(n))})("scrollToEnd",function(n){C(s);let r=f();return y(r.scrollToEnd.emit(n))})("outsideClick",function(){C(s);let n=f();return y(n.close())}),ge(1),et(2,Xn,4,22,"div",27,Xe().trackByOption,!0),b(4,is,4,6,"div",28),be(),b(5,rs,3,4)(6,ls,3,1)(7,us,3,4),d()}if(i&2){let s=f();$("ng-select-multiple",s.multiple),p("virtualScroll",s.virtualScroll)("bufferAmount",s.bufferAmount)("appendTo",s.appendTo)("position",s.dropdownPosition)("headerTemplate",s.headerTemplate)("footerTemplate",s.footerTemplate)("filterValue",s.searchTerm)("items",s.itemsList.filteredItems)("markedItem",s.itemsList.markedItem)("ngClass",s.appendTo?s.classes:null)("id",s.dropdownId),l(2),tt(s.viewPortItems),l(2),U(s.showAddTag?4:-1),l(),U(s.showNoItemsFound()?5:-1),l(),U(s.showTypeToSearch()?6:-1),l(),U(s.loading&&s.itemsList.filteredItems.length===0?7:-1)}}var Qi=/[&<>"']/g,ms=RegExp(Qi.source),hs={"&":"&","<":"<",">":">",'"':""","'":"'"};function fs(i){return i&&ms.test(i)?i.replace(Qi,t=>hs[t]):i}function w(i){return i!=null}function Fe(i){return typeof i=="object"&&w(i)}function _s(i){return i instanceof Promise}function Ye(i){return i instanceof Function}var gs=(()=>{let t=class t{constructor(e){this.element=e,this.escape=!0}ngOnChanges(e){this.element.nativeElement.innerHTML=this.escape?fs(this.ngItemLabel):this.ngItemLabel}};t.\u0275fac=function(n){return new(n||t)(_(re))},t.\u0275dir=H({type:t,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[Te]});let i=t;return i})(),bt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(n){return new(n||t)(_(I))},t.\u0275dir=H({type:t,selectors:[["","ng-option-tmp",""]]});let i=t;return i})(),vt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(n){return new(n||t)(_(I))},t.\u0275dir=H({type:t,selectors:[["","ng-optgroup-tmp",""]]});let i=t;return i})(),bs=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(n){return new(n||t)(_(I))},t.\u0275dir=H({type:t,selectors:[["","ng-label-tmp",""]]});let i=t;return i})(),Et=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(n){return new(n||t)(_(I))},t.\u0275dir=H({type:t,selectors:[["","ng-multi-label-tmp",""]]});let i=t;return i})(),vs=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(n){return new(n||t)(_(I))},t.\u0275dir=H({type:t,selectors:[["","ng-header-tmp",""]]});let i=t;return i})(),Es=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(n){return new(n||t)(_(I))},t.\u0275dir=H({type:t,selectors:[["","ng-footer-tmp",""]]});let i=t;return i})(),Cs=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(n){return new(n||t)(_(I))},t.\u0275dir=H({type:t,selectors:[["","ng-notfound-tmp",""]]});let i=t;return i})(),ys=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(n){return new(n||t)(_(I))},t.\u0275dir=H({type:t,selectors:[["","ng-typetosearch-tmp",""]]});let i=t;return i})(),Ss=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(n){return new(n||t)(_(I))},t.\u0275dir=H({type:t,selectors:[["","ng-loadingtext-tmp",""]]});let i=t;return i})(),Ts=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(n){return new(n||t)(_(I))},t.\u0275dir=H({type:t,selectors:[["","ng-tag-tmp",""]]});let i=t;return i})(),Is=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(n){return new(n||t)(_(I))},t.\u0275dir=H({type:t,selectors:[["","ng-loadingspinner-tmp",""]]});let i=t;return i})();function Ki(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var xs={"\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 Ke(i){let t=s=>xs[s]||s;return i.replace(/[^\u0000-\u007E]/g,t)}var _t=class{constructor(t,s){this._ngSelect=t,this._selectionModel=s,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 t=this.selectedItems.length-1;for(;t>=0;t--){let s=this.selectedItems[t];if(!s.disabled)return s}return null}setItems(t){this._items=t.map((s,e)=>this.mapItem(s,e)),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(t){if(t.selected||this.maxItemsSelected)return;let s=this._ngSelect.multiple;s||this.clearSelected(),this._selectionModel.select(t,s,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(t)}unselect(t){t.selected&&(this._selectionModel.unselect(t,this._ngSelect.multiple),this._ngSelect.hideSelected&&w(t.index)&&this._ngSelect.multiple&&this._showSelected(t))}findItem(t){let s;return this._ngSelect.compareWith?s=e=>this._ngSelect.compareWith(e.value,t):this._ngSelect.bindValue?s=e=>!e.children&&this.resolveNested(e.value,this._ngSelect.bindValue)===t:s=e=>e.value===t||!e.children&&e.label&&e.label===this.resolveNested(t,this._ngSelect.bindLabel),this._items.find(e=>s(e))}addItem(t){let s=this.mapItem(t,this._items.length);return this._items.push(s),this._filteredItems.push(s),s}clearSelected(t=!1){this._selectionModel.clear(t),this._items.forEach(s=>{s.selected=t&&s.selected&&s.disabled,s.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(t){return t=Ke(t).toLocaleLowerCase(),this.filteredItems.find(s=>Ke(s.label).toLocaleLowerCase().substr(0,t.length)===t)}filter(t){if(!t){this.resetFilteredItems();return}this._filteredItems=[],t=this._ngSelect.searchFn?t:Ke(t).toLocaleLowerCase();let s=this._ngSelect.searchFn||this._defaultSearchFn,e=this._ngSelect.hideSelected;for(let n of Array.from(this._groups.keys())){let r=[];for(let a of this._groups.get(n)){if(e&&(a.parent&&a.parent.selected||a.selected))continue;let o=this._ngSelect.searchFn?a.value:a;s(t,o)&&r.push(a)}if(r.length>0){let[a]=r.slice(-1);if(a.parent){let o=this._items.find(g=>g===a.parent);this._filteredItems.push(o)}this._filteredItems.push(...r)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected&&this.selectedItems.length>0?this._filteredItems=this._items.filter(t=>!t.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(t){this._markedIndex=this._filteredItems.indexOf(t)}markSelectedOrDefault(t){if(this._filteredItems.length===0)return;let s=this._getLastMarkedIndex();s>-1?this._markedIndex=s:this._markedIndex=t?this.filteredItems.findIndex(e=>!e.disabled):-1}resolveNested(t,s){if(!Fe(t))return t;if(s.indexOf(".")===-1)return t[s];{let e=s.split("."),n=t;for(let r=0,a=e.length;rthis.selectedItems.indexOf(s)===-1))}_showSelected(t){if(this._filteredItems.push(t),t.parent){let s=t.parent;this._filteredItems.find(n=>n===s)||this._filteredItems.push(s)}else if(t.children)for(let s of t.children)s.selected=!1,this._filteredItems.push(s);this._filteredItems=[...this._filteredItems.sort((s,e)=>s.index-e.index)]}_hideSelected(t){this._filteredItems=this._filteredItems.filter(s=>s!==t),t.parent?t.parent.children.every(e=>e.selected)&&(this._filteredItems=this._filteredItems.filter(e=>e!==t.parent)):t.children&&(this._filteredItems=this.filteredItems.filter(s=>s.parent!==t))}_defaultSearchFn(t,s){return Ke(s.label).toLocaleLowerCase().indexOf(t)>-1}_getNextItemIndex(t){return t>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(t){this._filteredItems.length===0||this._filteredItems.every(s=>s.disabled)||(this._markedIndex=this._getNextItemIndex(t),this.markedItem.disabled&&this._stepToItem(t))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&this.markedItem===void 0)return-1;let t=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&t<0?-1:Math.max(this.markedIndex,t)}_groupBy(t,s){let e=new Map;if(t.length===0)return e;if(Array.isArray(t[0].value[s])){for(let a of t){let o=(a.value[s]||[]).map((g,v)=>this.mapItem(g,v));e.set(a,o)}return e}let n=Ye(this._ngSelect.groupBy),r=a=>{let o=n?s(a.value):a.value[s];return w(o)?o:void 0};for(let a of t){let o=r(a),g=e.get(o);g?g.push(a):e.set(o,[a])}return e}_flatten(t){let s=Ye(this._ngSelect.groupBy),e=[];for(let n of Array.from(t.keys())){let r=e.length;if(n===void 0){let P=t.get(void 0)||[];e.push(...P.map(oe=>(oe.index=r++,oe)));continue}let a=Fe(n),o={label:a?"":String(n),children:void 0,parent:null,index:r++,disabled:!this._ngSelect.selectableGroup,htmlId:Ki()},g=s?this._ngSelect.bindLabel:this._ngSelect.groupBy,v=this._ngSelect.groupValue||(()=>a?n.value:{[g]:n}),F=t.get(n).map(P=>(P.parent=o,P.children=void 0,P.index=r++,P));o.children=F,o.value=v(n,F.map(P=>P.value)),e.push(o),e.push(...F)}return e}},ne=function(i){return i[i.Tab=9]="Tab",i[i.Enter=13]="Enter",i[i.Esc=27]="Esc",i[i.Space=32]="Space",i[i.ArrowUp=38]="ArrowUp",i[i.ArrowDown=40]="ArrowDown",i[i.Backspace=8]="Backspace",i}(ne||{}),Yi=(()=>{let t=class t{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(e,n,r){let a=this._dimensions,o=a.itemHeight*n,v=Math.max(0,e)/o*n,F=Math.min(n,Math.ceil(v)+(a.itemsPerViewport+1)),oe=Math.max(0,F-a.itemsPerViewport),J=Math.min(oe,Math.floor(v)),fe=a.itemHeight*Math.ceil(J)-a.itemHeight*Math.min(J,r);return fe=isNaN(fe)?0:fe,J=isNaN(J)?-1:J,F=isNaN(F)?-1:F,J-=r,J=Math.max(0,J),F+=r,F=Math.min(n,F),{topPadding:fe,scrollHeight:o,start:J,end:F}}setDimensions(e,n){let r=Math.max(1,Math.floor(n/e));this._dimensions={itemHeight:e,panelHeight:n,itemsPerViewport:r}}getScrollTo(e,n,r){let{panelHeight:a}=this.dimensions,o=e+n,g=r,v=g+a;return a>=o&&r===e?null:o>v?g+o-v:e<=g?e:null}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac});let i=t;return i})(),qi=["top","right","bottom","left"],ws=typeof requestAnimationFrame<"u"?yt:Ct,Ui=(()=>{let t=class t{constructor(e,n,r,a,o){this._renderer=e,this._zone=n,this._panelService=r,this._document=o,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new A,this.scroll=new A,this.scrollToEnd=new A,this.outsideClick=new A,this._destroy$=new se,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=a.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(e){e!==this._itemsLength&&(this._itemsLength=e,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){let{itemHeight:e,panelHeight:n}=this._panelService.dimensions,r=this.markedItem.index*e;return n>r?0:r}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(e){if(e.items){let n=e.items;this._onItemsChange(n.currentValue,n.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(e,n=!1){if(!e)return;let r=this.items.indexOf(e);if(r<0||r>=this.itemsLength)return;let a;if(this.virtualScroll){let o=this._panelService.dimensions.itemHeight;a=this._panelService.getScrollTo(r*o,o,this._lastScrollPosition)}else{let o=this._dropdown.querySelector(`#${e.htmlId}`),g=n?o.offsetTop:this._lastScrollPosition;a=this._panelService.getScrollTo(o.offsetTop,o.clientHeight,g)}w(a)&&(this._scrollablePanel.scrollTop=a)}scrollToTag(){let e=this._scrollablePanel;e.scrollTop=e.scrollHeight-e.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),qi.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(e){qi.forEach(r=>{let a=`ng-select-${r}`;this._renderer.removeClass(this._dropdown,a),this._renderer.removeClass(this._select,a)});let n=`ng-select-${e}`;this._renderer.addClass(this._dropdown,n),this._renderer.addClass(this._select,n)}_handleScroll(){this._zone.runOutsideAngular(()=>{ye(this.scrollElementRef.nativeElement,"scroll").pipe(M(this._destroy$),Tt(0,ws)).subscribe(e=>{let n=e.path||e.composedPath&&e.composedPath();if(!n||n.length===0&&!e.target)return;let r=!n||n.length===0?e.target.scrollTop:n[0].scrollTop;this._onContentScrolled(r)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{Oe(ye(this._document,"touchstart",{capture:!0}),ye(this._document,"click",{capture:!0})).pipe(M(this._destroy$)).subscribe(e=>this._checkToClose(e))})}_checkToClose(e){if(this._select.contains(e.target)||this._dropdown.contains(e.target))return;let n=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&n&&n[0]&&this._select.contains(n[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(e,n){this.items=e||[],this._scrollToEndFired=!1,this.itemsLength=e.length,this.virtualScroll?this._updateItemsRange(n):(this._setVirtualHeight(),this._updateItems(n))}_updateItems(e){this.update.emit(this.items),e!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let n=this._scrollablePanel.clientHeight;this._panelService.setDimensions(0,n),this._handleDropdownPosition(),this.scrollTo(this.markedItem,e)})})}_updateItemsRange(e){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{e?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(e){this.virtualScroll&&this._renderItemsRange(e),this._lastScrollPosition=e,this._fireScrollToEnd(e)}_updateVirtualHeight(e){this._updateScrollHeight&&(this._virtualPadding.style.height=`${e}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(e=null){if(e&&this._lastScrollPosition===e)return;e=e||this._scrollablePanel.scrollTop;let n=this._panelService.calculateItems(e,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(n.scrollHeight),this._contentPanel.style.transform=`translateY(${n.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(n.start,n.end)),this.scroll.emit({start:n.start,end:n.end})}),w(e)&&this._lastScrollPosition===0&&(this._scrollablePanel.scrollTop=e,this._lastScrollPosition=e)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||this.itemsLength===0)return Promise.resolve(this._panelService.dimensions);let[e]=this.items;return this.update.emit([e]),Promise.resolve().then(()=>{let r=this._dropdown.querySelector(`#${e.htmlId}`).clientHeight;this._virtualPadding.style.height=`${r*this.itemsLength}px`;let a=this._scrollablePanel.clientHeight;return this._panelService.setDimensions(r,a),this._panelService.dimensions})}_fireScrollToEnd(e){if(this._scrollToEndFired||e===0)return;let n=this.virtualScroll?this._virtualPadding:this._contentPanel;e+this._dropdown.clientHeight>=n.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(e){if(this.position!=="auto")return this.position;let n=this._select.getBoundingClientRect(),r=document.documentElement.scrollTop||document.body.scrollTop,a=n.top+window.pageYOffset,o=n.height,g=e.getBoundingClientRect().height;return a+o+g>r+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(){let e=this._select.getBoundingClientRect(),n=this._parent.getBoundingClientRect(),r=e.left-n.left;this._dropdown.style.left=r+"px",this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"}_updateYPosition(){let e=this._select.getBoundingClientRect(),n=this._parent.getBoundingClientRect(),r=e.height;if(this._currentPosition==="top"){let a=n.bottom-e.bottom;this._dropdown.style.bottom=a+r+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let a=e.top-n.top;this._dropdown.style.top=a+r+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{ye(this._dropdown,"mousedown").pipe(M(this._destroy$)).subscribe(e=>{e.target.tagName!=="INPUT"&&e.preventDefault()})})}};t.\u0275fac=function(n){return new(n||t)(_(Lt),_(Pt),_(Yi),_(re),_(Nt,8))},t.\u0275cmp=j({type:t,selectors:[["ng-dropdown-panel"]],viewQuery:function(n,r){if(n&1&&(he(Dn,7,re),he(On,7,re),he(Bn,7,re)),n&2){let a;O(a=B())&&(r.contentElementRef=a.first),O(a=B())&&(r.scrollElementRef=a.first),O(a=B())&&(r.paddingElementRef=a.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:[2,"virtualScroll","virtualScroll",k],headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[Le,Te],ngContentSelectors:zi,decls:9,vars:6,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,r){n&1&&(nt(),b(0,Ln,2,4,"div",3),c(1,"div",4,0),D(3,"div",null,1),c(5,"div",null,2),st(7),d()(),b(8,Pn,2,4,"div",5)),n&2&&(U(r.headerTemplate?0:-1),l(3),$("total-padding",r.virtualScroll),l(2),$("scrollable-content",r.virtualScroll&&r.items.length),l(3),U(r.footerTemplate?8:-1))},dependencies:[at],encapsulation:2,changeDetection:0});let i=t;return i})(),Fs=(()=>{let t=class t{constructor(e){this.elementRef=e,this.disabled=!1,this.stateChange$=new se}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(e){e.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()}};t.\u0275fac=function(n){return new(n||t)(_(re))},t.\u0275cmp=j({type:t,selectors:[["ng-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",k]},features:[Le,Te],ngContentSelectors:zi,decls:1,vars:0,template:function(n,r){n&1&&(nt(),st(0))},encapsulation:2,changeDetection:0});let i=t;return i})(),As=(()=>{let t=class t{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"}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})(),ks=(()=>{let t=class t{warn(e){console.warn(e)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})(),Zi=new Dt("ng-select-selection-model"),Ji=(()=>{let t=class t{get items(){return this._items}set items(e){this._itemsAreUsed=!0,this._items=e??[]}get compareWith(){return this._compareWith}set compareWith(e){if(e!=null&&!Ye(e))throw Error("`compareWith` must be a function.");this._compareWith=e}get clearSearchOnAdd(){return w(this._clearSearchOnAdd)?this._clearSearchOnAdd:w(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(e){this._clearSearchOnAdd=e}get deselectOnClick(){return w(this._deselectOnClick)?this._deselectOnClick:w(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(e){this._deselectOnClick=e}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(e,n,r,a,o,g,v){this.classes=e,this.autoFocus=n,this.config=r,this._cd=g,this._console=v,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=F=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new A,this.focusEvent=new A,this.changeEvent=new A,this.openEvent=new A,this.closeEvent=new A,this.searchEvent=new A,this.clearEvent=new A,this.addEvent=new A,this.removeEvent=new A,this.scroll=new A,this.scrollToEnd=new A,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=Ki(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new se,this._keyPress$=new se,this._onChange=F=>{},this._onTouched=()=>{},this.clearItem=F=>{let P=this.selectedItems.find(oe=>oe.value===F);this.unselect(P)},this.trackByOption=(F,P)=>this.trackByFn?this.trackByFn(P.value):P,this._mergeGlobalConfig(r),this.itemsList=new _t(this,a()),this.element=o.nativeElement}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(e=>e.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[]),e.isOpen&&(this._manualOpen=w(e.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),w(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(e){if(ne[e.which]){if(this.keyDownFn(e)===!1)return;this.handleKeyCode(e)}else e.key&&e.key.length===1&&this._keyPress$.next(e.key.toLocaleLowerCase())}handleKeyCode(e){let n=e.target;this.clearButton&&this.clearButton.nativeElement===n?this.handleKeyCodeClear(e):this.handleKeyCodeInput(e)}handleKeyCodeInput(e){switch(e.which){case ne.ArrowDown:this._handleArrowDown(e);break;case ne.ArrowUp:this._handleArrowUp(e);break;case ne.Space:this._handleSpace(e);break;case ne.Enter:this._handleEnter(e);break;case ne.Tab:this._handleTab(e);break;case ne.Esc:this.close(),e.preventDefault();break;case ne.Backspace:this._handleBackspace();break}}handleKeyCodeClear(e){switch(e.which){case ne.Enter:this.handleClearClick(),e.preventDefault();break}}handleMousedown(e){let n=e.target;if(n.tagName!=="INPUT"&&e.preventDefault(),n.classList.contains("ng-clear-wrapper")){this.handleClearClick();return}if(n.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}n.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(e){this.itemsList.clearSelected(),this._handleWriteValue(e),this._cd.markForCheck()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._disabled=e,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(e){!e||e.disabled||this.disabled||(this.deselectOnClick&&e.selected?this.unselect(e):this.select(e),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(e){e.selected||(this.itemsList.select(e),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(e.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(e){e&&(this.itemsList.unselect(e),this.focus(),this._updateNgModel(),this.removeEvent.emit(e.value))}selectTag(){let e;Ye(this.addTag)?e=this.addTag(this.searchTerm):e=this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};let n=r=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(r,null):this.itemsList.addItem(r);_s(e)?e.then(r=>this.select(n(r))).catch(()=>{}):e&&this.select(n(e))}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;let e=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(n=>n.label.toLowerCase()===e)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(n=>n.label.toLowerCase()===e))&&!this.loading}showNoItemsFound(){let e=this.itemsList.filteredItems.length===0;return(e&&!this._isTypeahead&&!this.loading||e&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return this.itemsList.filteredItems.length===0&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(e){this._isComposing=!1,!this.searchWhileComposing&&this.filter(e)}filter(e){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=e,this._isTypeahead&&(this._validTerm||this.minTermLength===0)&&this.typeahead.next(e),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:e,items:this.itemsList.filteredItems.map(n=>n.value)}),this.open())}onInputFocus(e){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(e),this.focused=!0)}onInputBlur(e){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(e),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(e){e.disabled||this.itemsList.markItem(e)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){let e=this.selectedItems&&this.selectedItems[0];this.searchTerm=e&&e.label||null}_setItems(e){let n=e[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=w(n)?!Fe(n):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(e),e.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&w(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){let e=r=>{this.items=r.map(a=>({$ngOptionValue:a.value,$ngOptionLabel:a.elementRef.nativeElement.innerHTML,disabled:a.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},n=()=>{let r=Oe(this.ngOptions.changes,this._destroy$);Oe(...this.ngOptions.map(a=>a.stateChange$)).pipe(M(r)).subscribe(a=>{let o=this.itemsList.findItem(a.value);o.disabled=a.disabled,o.label=a.label||o.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe(wt(this.ngOptions),M(this._destroy$)).subscribe(r=>{this.bindLabel=this._defaultLabel,e(r),n()})}_isValidWriteValue(e){if(!w(e)||this.multiple&&e===""||Array.isArray(e)&&e.length===0)return!1;let n=r=>!w(this.compareWith)&&Fe(r)&&this.bindValue?(this._console.warn(`Setting object(${JSON.stringify(r)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple?Array.isArray(e)?e.every(r=>n(r)):(this._console.warn("Multiple select ngModel should be array."),!1):n(e)}_handleWriteValue(e){if(!this._isValidWriteValue(e))return;let n=r=>{let a=this.itemsList.findItem(r);if(a)this.itemsList.select(a);else{let o=Fe(r),g=!o&&!this.bindValue;o||g?this.itemsList.select(this.itemsList.mapItem(r,null)):this.bindValue&&(a={[this.bindLabel]:null,[this.bindValue]:r},this.itemsList.select(this.itemsList.mapItem(a,null)))}};this.multiple?e.forEach(r=>n(r)):n(e)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe(M(this._destroy$),Ft(e=>this._pressedKeys.push(e)),It(200),Be(()=>this._pressedKeys.length>0),S(()=>this._pressedKeys.join(""))).subscribe(e=>{let n=this.itemsList.findByLabel(e);n&&(this.isOpen?(this.itemsList.markItem(n),this._scrollToMarked(),this._cd.markForCheck()):this.select(n)),this._pressedKeys=[]})}_setInputAttributes(){let e=this.searchInput.nativeElement,n=_e({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId},this.inputAttrs);for(let r of Object.keys(n))e.setAttribute(r,n[r])}_updateNgModel(){let e=[];for(let r of this.selectedItems)if(this.bindValue){let a=null;if(r.children){let o=this.groupValue?this.bindValue:this.groupBy;a=r.value[o||this.groupBy]}else a=this.itemsList.resolveNested(r.value,this.bindValue);e.push(a)}else e.push(r.value);let n=this.selectedItems.map(r=>r.value);this.multiple?(this._onChange(e),this.changeEvent.emit(n)):(this._onChange(w(e[0])?e[0]:null),this.changeEvent.emit(n[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(e){this.searchTerm=e,this._isTypeahead&&this.typeahead.next(e)}_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(e){if(this.isOpen===!1){if(this.showClear()&&!e.shiftKey)this.focusOnClear(),e.preventDefault();else if(!this.addTag)return}this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),e.preventDefault()):this.showAddTag?(this.selectTag(),e.preventDefault()):this.close():this.close()}_handleEnter(e){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else if(this.openOnEnter)this.open();else return;e.preventDefault()}_handleSpace(e){this.isOpen||this._manualOpen||(this.open(),e.preventDefault())}_handleArrowDown(e){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()}_handleArrowUp(e){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())}_nextItemIsTag(e){let n=this.itemsList.markedIndex+e;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(n<0||n===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(){let e=this.searchTerm&&this.searchTerm.trim();return e&&e.length>=this.minTermLength}_mergeGlobalConfig(e){this.placeholder=this.placeholder||e.placeholder,this.notFoundText=this.notFoundText||e.notFoundText,this.typeToSearchText=this.typeToSearchText||e.typeToSearchText,this.addTagText=this.addTagText||e.addTagText,this.loadingText=this.loadingText||e.loadingText,this.clearAllText=this.clearAllText||e.clearAllText,this.virtualScroll=w(this.virtualScroll)?this.virtualScroll:w(e.disableVirtualScroll)?!e.disableVirtualScroll:!1,this.openOnEnter=w(this.openOnEnter)?this.openOnEnter:e.openOnEnter,this.appendTo=this.appendTo||e.appendTo,this.bindValue=this.bindValue||e.bindValue,this.bindLabel=this.bindLabel||e.bindLabel,this.appearance=this.appearance||e.appearance}};t.\u0275fac=function(n){return new(n||t)(Je("class"),Je("autofocus"),_(As),_(Zi),_(re),_(Mt),_(ks))},t.\u0275cmp=j({type:t,selectors:[["ng-select"]],contentQueries:function(n,r,a){if(n&1&&(G(a,bt,5,I),G(a,vt,5,I),G(a,bs,5,I),G(a,Et,5,I),G(a,vs,5,I),G(a,Es,5,I),G(a,Cs,5,I),G(a,ys,5,I),G(a,Ss,5,I),G(a,Ts,5,I),G(a,Is,5,I),G(a,Fs,5)),n&2){let o;O(o=B())&&(r.optionTemplate=o.first),O(o=B())&&(r.optgroupTemplate=o.first),O(o=B())&&(r.labelTemplate=o.first),O(o=B())&&(r.multiLabelTemplate=o.first),O(o=B())&&(r.headerTemplate=o.first),O(o=B())&&(r.footerTemplate=o.first),O(o=B())&&(r.notFoundTemplate=o.first),O(o=B())&&(r.typeToSearchTemplate=o.first),O(o=B())&&(r.loadingTextTemplate=o.first),O(o=B())&&(r.tagTemplate=o.first),O(o=B())&&(r.loadingSpinnerTemplate=o.first),O(o=B())&&(r.ngOptions=o)}},viewQuery:function(n,r){if(n&1&&(he(Ui,5),he(Vn,7),he(Mn,5)),n&2){let a;O(a=B())&&(r.dropdownPanel=a.first),O(a=B())&&(r.searchInput=a.first),O(a=B())&&(r.clearButton=a.first)}},hostVars:20,hostBindings:function(n,r){n&1&&x("keydown",function(o){return r.handleKeyDown(o)}),n&2&&$("ng-select-typeahead",r.typeahead)("ng-select-multiple",r.multiple)("ng-select-taggable",r.addTag)("ng-select-searchable",r.searchable)("ng-select-clearable",r.clearable)("ng-select-opened",r.isOpen)("ng-select",r.useDefaultClass)("ng-select-disabled",r.disabled)("ng-select-filtered",r.filtered)("ng-select-single",r.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:[2,"markFirst","markFirst",k],placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:[2,"loading","loading",k],closeOnSelect:[2,"closeOnSelect","closeOnSelect",k],hideSelected:[2,"hideSelected","hideSelected",k],selectOnTab:[2,"selectOnTab","selectOnTab",k],openOnEnter:[2,"openOnEnter","openOnEnter",k],maxSelectedItems:[2,"maxSelectedItems","maxSelectedItems",Ie],groupBy:"groupBy",groupValue:"groupValue",bufferAmount:[2,"bufferAmount","bufferAmount",Ie],virtualScroll:[2,"virtualScroll","virtualScroll",k],selectableGroup:[2,"selectableGroup","selectableGroup",k],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",k],searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",k],labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:[2,"tabIndex","tabIndex",Ie],readonly:[2,"readonly","readonly",k],searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",k],minTermLength:[2,"minTermLength","minTermLength",Ie],editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",k],keyDownFn:"keyDownFn",typeahead:"typeahead",multiple:[2,"multiple","multiple",k],addTag:"addTag",searchable:[2,"searchable","searchable",k],clearable:[2,"clearable","clearable",k],isOpen:[2,"isOpen","isOpen",k],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:[le([{provide:Qt,useExisting:At(()=>t),multi:!0},Yi]),Le,Te],decls:14,vars:19,consts:[["searchInput",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"input","compositionstart","compositionend","focus","blur","change","readOnly","disabled","value"],["tabindex","0",1,"ng-clear-wrapper",3,"title"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id"],[1,"ng-value",3,"ng-value-disabled"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id"],[1,"ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked"],["role","option",1,"ng-option",3,"ng-option-marked"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(n,r){if(n&1){let a=V();c(0,"div",9),x("mousedown",function(g){return C(a),y(r.handleMousedown(g))}),c(1,"div",10)(2,"div",11),h(3),d(),b(4,Wn,2,0)(5,Un,1,5,null,12),c(6,"div",13)(7,"input",14,0),x("input",function(){C(a);let g=N(8);return y(r.filter(g.value))})("compositionstart",function(){return C(a),y(r.onCompositionStart())})("compositionend",function(){C(a);let g=N(8);return y(r.onCompositionEnd(g.value))})("focus",function(g){return C(a),y(r.onInputFocus(g))})("blur",function(g){return C(a),y(r.onInputBlur(g))})("change",function(g){return C(a),y(g.stopPropagation())}),d()()(),b(9,Kn,3,1)(10,Yn,4,1,"span",15),c(11,"span",16),D(12,"span",17),d()(),b(13,ps,8,17,"ng-dropdown-panel",18)}n&2&&($("ng-appearance-outline",r.appearance==="outline")("ng-has-value",r.hasValue),l(3),T(r.placeholder),l(),U((!r.multiLabelTemplate||!r.multiple)&&r.selectedItems.length>0?4:-1),l(),U(r.multiple&&r.multiLabelTemplate&&r.selectedValues.length>0?5:-1),l(),q("aria-expanded",r.isOpen)("aria-owns",r.isOpen?r.dropdownId:null),l(),p("readOnly",!r.searchable||r.itemsList.maxItemsSelected)("disabled",r.disabled)("value",r.searchTerm?r.searchTerm:""),q("id",r.labelForId)("tabindex",r.tabIndex)("aria-activedescendant",r.isOpen?r.itemsList==null||r.itemsList.markedItem==null?null:r.itemsList.markedItem.htmlId:null)("aria-controls",r.isOpen?r.dropdownId:null),l(2),U(r.loading?9:-1),l(),U(r.showClear()?10:-1),l(3),U(r.isOpen?13:-1))},dependencies:[jt,at,Ui,gs],styles:[`@charset "UTF-8";.ng-select{position:relative;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;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}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);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;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;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} +`],encapsulation:2,changeDetection:0});let i=t;return i})();function Ds(){return new gt}var gt=class{constructor(){this._selected=[]}get value(){return this._selected}select(t,s,e){if(t.selected=!0,(!t.children||!s&&e)&&this._selected.push(t),s)if(t.parent){let n=t.parent.children.length,r=t.parent.children.filter(a=>a.selected).length;t.parent.selected=n===r}else t.children&&(this._setChildrenSelectedState(t.children,!0),this._removeChildren(t),e&&this._activeChildren(t)?this._selected=[...this._selected.filter(n=>n.parent!==t),t]:this._selected=[...this._selected,...t.children.filter(n=>!n.disabled)])}unselect(t,s){if(this._selected=this._selected.filter(e=>e!==t),t.selected=!1,s)if(t.parent&&t.parent.selected){let e=t.parent.children;this._removeParent(t.parent),this._removeChildren(t.parent),this._selected.push(...e.filter(n=>n!==t&&!n.disabled)),t.parent.selected=!1}else t.children&&(this._setChildrenSelectedState(t.children,!1),this._removeChildren(t))}clear(t){this._selected=t?this._selected.filter(s=>s.disabled):[]}_setChildrenSelectedState(t,s){for(let e of t)e.disabled||(e.selected=s)}_removeChildren(t){this._selected=[...this._selected.filter(s=>s.parent!==t),...t.children.filter(s=>s.parent===t&&s.disabled&&s.selected)]}_removeParent(t){this._selected=this._selected.filter(s=>s!==t)}_activeChildren(t){return t.children.every(s=>!s.disabled||s.selected)}},Xi=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Ot({type:t}),t.\u0275inj=kt({providers:[{provide:Zi,useValue:Ds}],imports:[Ht]});let i=t;return i})();function Bs(i,t){if(i&1){let s=V();c(0,"div",5),h(1),c(2,"span",6),x("click",function(){let n=C(s).$implicit,r=f().clear;return y(r(n))}),h(3,"\xD7"),d()()}if(i&2){let s=t.$implicit;l(),E(" ",s.Value," ")}}function Ls(i,t){if(i&1&&b(0,Bs,4,1,"div",4),i&2){let s=t.items;p("ngForOf",s)}}function Ps(i,t){if(i&1&&(D(0,"input",7),h(1)),i&2){let s=t.item,e=t.item$,n=t.index;rt("id","item-",n,""),p("ngModel",e.selected),l(),E(" ",s.Group," ")}}function Vs(i,t){if(i&1&&(D(0,"input",7),h(1)),i&2){let s=t.item,e=t.item$,n=t.index;rt("id","item-",n,""),p("ngModel",e.selected),l(),E(" ",s.Value," ")}}var en=(()=>{let t=class t{constructor(){this.options=[],this.values=[],this.valuesChange=new A}itemsChanged(){this.valuesChange.emit(this.values)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=j({type:t,selectors:[["bkd-multiselect"]],inputs:{options:"options",values:"values"},outputs:{valuesChange:"valuesChange"},standalone:!0,features:[te],decls:5,vars:10,consts:[["groupBy","Group","bindValue","Key","bindLabel","Value","dropdownPosition","bottom",1,"multiselect",3,"ngModelChange","click","clear","items","multiple","selectableGroup","selectableGroupAsModel","closeOnSelect","ngModel","placeholder","clearable"],["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(n,r){n&1&&(c(0,"ng-select",0),u(1,"translate"),K("ngModelChange",function(o){return Q(r.values,o)||(r.values=o),o}),x("click",function(){return r.itemsChanged()})("clear",function(){return r.itemsChanged()}),b(2,Ls,1,1,"ng-template",1)(3,Ps,2,4,"ng-template",2)(4,Vs,2,4,"ng-template",3),d()),n&2&&(me("placeholder",m(1,8,"shared.select.empty-option")),p("items",r.options)("multiple",!0)("selectableGroup",!0)("selectableGroupAsModel",!1)("closeOnSelect",!1),z("ngModel",r.values),p("clearable",!0))},dependencies:[Xi,Ji,vt,bt,Et,je,Kt,Re,Jt,Ee,ue,de]});let i=t;return i})();var tn=zt({HRef:ot,Id:lt,TeacherId:lt,FullName:ot});var nn=(()=>{let t=class t extends xi{constructor(e,n){super(e,n,tn,"TeacherResources","FullName","FullName")}getTypeaheadItemByKey(e){return this.http.get(`${this.baseUrl}/`,{params:{fields:[this.keyAttr,this.labelAttr].join(","),[`filter.${this.labelAttr}`]:`~*${e}*`}}).pipe(Se(mi(this.typeaheadCodec)),Se(n=>St({Key:n[0].FullName,Value:`${n[0].FullName}`})))}};t.\u0275fac=function(n){return new(n||t)(R(Gt),R(ce))},t.\u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var rn=(()=>{let t=class t{constructor(e,n,r,a,o,g){this.studentsService=e,this.educationalEventsService=n,this.studyClassService=r,this.teacherResourcesService=a,this.state=o,this.translate=g,this.filter={student:null,educationalEvent:null,studyClass:null,teacher:null,dateFrom:null,dateTo:null,presenceTypes:null,confirmationStates:null,incidentTypes:null},this.filterChange=new A,this.absenceConfirmationStatesGrouped$=this.state.absenceConfirmationStates$.pipe(S(v=>qe(v,this.translate.instant("shared.multiselect.all-option")))),this.presenceTypesGrouped$=this.state.presenceTypes$.pipe(S(v=>v.filter(we(bi)).filter(we(ut))),S(mt),S(ht),S(v=>qe(v,this.translate.instant("shared.multiselect.all-option")))),this.incidentTypesGrouped$=this.state.presenceTypes$.pipe(S(v=>v.filter(ut)),S(mt),S(ht),S(v=>qe(v,this.translate.instant("shared.multiselect.all-option")))),this.classesHttpFilter={params:{fields:"IsActive","filter.IsActive":"=true"}}}show(){this.filterChange.emit(ke(_e({},this.filter),{dateFrom:sn(this.filter.dateFrom),dateTo:sn(this.filter.dateTo)}))}};t.\u0275fac=function(n){return new(n||t)(_(wi),_(ji),_($i),_(nn),_(X),_($e))},t.\u0275cmp=j({type:t,selectors:[["bkd-edit-absences-header"]],inputs:{filter:"filter"},outputs:{filterChange:"filterChange"},standalone:!0,features:[le([{provide:li,useClass:di},{provide:ci,useClass:Oi}]),te],decls:54,vars:53,consts:[[1,"row","g-3","mb-5"],[1,"col-md-6","col-lg-3"],[1,"form-label"],[3,"valueChange","typeaheadService","value"],[3,"valueChange","typeaheadService","value","additionalHttpParams"],[3,"valueChange","value"],[1,"row","g-3","align-items-end"],[1,"col-sm-12","col-md"],[3,"valuesChange","options","values"],[1,"col-auto"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(n,r){n&1&&(c(0,"div",0)(1,"div",1)(2,"label",2),h(3),u(4,"translate"),d(),c(5,"bkd-typeahead",3),K("valueChange",function(o){return Q(r.filter.student,o)||(r.filter.student=o),o}),d()(),c(6,"div",1)(7,"label",2),h(8),u(9,"translate"),d(),c(10,"bkd-typeahead",3),K("valueChange",function(o){return Q(r.filter.educationalEvent,o)||(r.filter.educationalEvent=o),o}),d()(),c(11,"div",1)(12,"label",2),h(13),u(14,"translate"),d(),c(15,"bkd-typeahead",4),K("valueChange",function(o){return Q(r.filter.studyClass,o)||(r.filter.studyClass=o),o}),d()(),c(16,"div",1)(17,"label",2),h(18),u(19,"translate"),d(),c(20,"bkd-typeahead",3),K("valueChange",function(o){return Q(r.filter.teacher,o)||(r.filter.teacher=o),o}),d()(),c(21,"div",1)(22,"label",2),h(23),u(24,"translate"),d(),c(25,"bkd-date-select",5),K("valueChange",function(o){return Q(r.filter.dateFrom,o)||(r.filter.dateFrom=o),o}),d()(),c(26,"div",1)(27,"label",2),h(28),u(29,"translate"),d(),c(30,"bkd-date-select",5),K("valueChange",function(o){return Q(r.filter.dateTo,o)||(r.filter.dateTo=o),o}),d()()(),c(31,"div",6)(32,"div",7)(33,"label",2),h(34),u(35,"translate"),d(),c(36,"bkd-multiselect",8),u(37,"async"),K("valuesChange",function(o){return Q(r.filter.confirmationStates,o)||(r.filter.confirmationStates=o),o}),d()(),c(38,"div",7)(39,"label",2),h(40),u(41,"translate"),d(),c(42,"bkd-multiselect",8),u(43,"async"),K("valuesChange",function(o){return Q(r.filter.presenceTypes,o)||(r.filter.presenceTypes=o),o}),d()(),c(44,"div",7)(45,"label",2),h(46),u(47,"translate"),d(),c(48,"bkd-multiselect",8),u(49,"async"),K("valuesChange",function(o){return Q(r.filter.incidentTypes,o)||(r.filter.incidentTypes=o),o}),d()(),c(50,"div",9)(51,"button",10),x("click",function(){return r.show()}),h(52),u(53,"translate"),d()()()),n&2&&(l(3),T(m(4,27,"edit-absences.header.student")),l(2),p("typeaheadService",r.studentsService),z("value",r.filter.student),l(3),T(m(9,29,"edit-absences.header.module-instance")),l(2),p("typeaheadService",r.educationalEventsService),z("value",r.filter.educationalEvent),l(3),T(m(14,31,"edit-absences.header.study-class")),l(2),p("typeaheadService",r.studyClassService),z("value",r.filter.studyClass),p("additionalHttpParams",r.classesHttpFilter),l(3),T(m(19,33,"edit-absences.header.teacher")),l(2),p("typeaheadService",r.teacherResourcesService),z("value",r.filter.teacher),l(3),T(m(24,35,"edit-absences.header.date-from")),l(2),z("value",r.filter.dateFrom),l(3),T(m(29,37,"edit-absences.header.date-to")),l(2),z("value",r.filter.dateTo),l(4),T(m(35,39,"edit-absences.header.confirmation-state")),l(2),p("options",m(37,41,r.absenceConfirmationStatesGrouped$)),z("values",r.filter.confirmationStates),l(4),T(m(41,43,"edit-absences.header.presence-type")),l(2),p("options",m(43,45,r.presenceTypesGrouped$)),z("values",r.filter.presenceTypes),l(4),T(m(47,47,"edit-absences.header.incident")),l(2),p("options",m(49,49,r.incidentTypesGrouped$)),z("values",r.filter.incidentTypes),l(4),E(" ",m(53,51,"edit-absences.header.show")," "))},dependencies:[ki,Ri,en,Ce,ue,de],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:0 1rem 1rem 0;border-bottom:1px solid #dee2e6}"],changeDetection:0});let i=t;return i})();function sn(i){return i?gi(i):null}var Ns=(i,t,s,e)=>({selection:i,entries:t,hasMore:s,loadingPage:e}),an=i=>({count:i}),on=i=>({returnparams:i}),Rs=i=>["student",i,"absences"];function js(i,t){if(i&1&&(c(0,"div",13)(1,"div",14),h(2),u(3,"async"),u(4,"translate"),u(5,"translate"),d(),c(6,"a",15),u(7,"async"),c(8,"i",16),h(9,"edit"),d()()()),i&2){let s=f(4).bkdLet,e=f();l(2),ve(" ",ie(4,7,"edit-absences.list.total",Y(15,an,m(3,5,e.state.total$)||0)),", ",ie(5,10,"edit-absences.list.selected",Y(17,an,s.selection.length))," "),l(4),$("disabled",s.selection.length===0),p("queryParams",Y(19,on,m(7,13,e.state.queryParamsString$)))}}function $s(i,t){if(i&1){let s=V();c(0,"tr")(1,"td",21),x("click",function(n){C(s);let r=N(3),a=f(6);return y(a.onCheckboxCellClick(n,r))}),c(2,"input",18,3),u(4,"async"),x("change",function(){let n=C(s).$implicit,r=f(6);return y(r.selectionService.toggle(n.lessonPresence))}),d()(),c(5,"td",19),u(6,"translate"),c(7,"span",22)(8,"i",16),h(9),d()()(),c(10,"td"),u(11,"translate"),c(12,"a",23),u(13,"async"),h(14),d(),D(15,"br"),h(16),d(),c(17,"td"),u(18,"translate"),h(19),u(20,"date"),d(),c(21,"td"),u(22,"translate"),h(23),u(24,"date"),u(25,"date"),d(),c(26,"td"),u(27,"translate"),h(28),d(),c(29,"td",24),u(30,"translate"),h(31),d(),c(32,"td"),u(33,"translate"),h(34),d()()}if(i&2){let s=t.$implicit,e=f(6);l(2),p("checked",m(4,21,e.selectionService.isSelected$(s.lessonPresence))),l(3),q("data-label",m(6,23,"edit-absences.list.header.presence")),l(2),p("className",s.presenceCategory),l(2),T(s.presenceCategoryIcon),l(),q("data-label",m(11,25,"edit-absences.list.header.mobil-student-module-instance-study-class")),l(2),p("routerLink",Y(48,Rs,s.lessonPresence.StudentRef.Id))("queryParams",Y(50,on,m(13,27,e.profileReturnParams$))),l(2),E(" ",s.lessonPresence.StudentFullName," "),l(2),ve(" ",s.lessonPresence.EventDesignation,", ",s.lessonPresence.StudyClassNumber," "),l(),q("data-label",m(18,29,"edit-absences.list.header.date")),l(2),E(" ",ie(20,31,s.lessonPresence.LessonDateTimeFrom,"mediumDate")," "),l(2),q("data-label",m(22,34,"edit-absences.list.header.time")),l(2),ve(" ",ie(24,36,s.lessonPresence.LessonDateTimeFrom,"shortTime"),"\u2013",ie(25,39,s.lessonPresence.LessonDateTimeTo,"shortTime")," "),l(3),q("data-label",m(27,42,"edit-absences.list.header.confirmation-state")),l(2),E(" ",s.confirmationState==null?null:s.confirmationState.Value," "),l(),q("data-label",m(30,44,"edit-absences.list.header.mobil-presence-type-incident")),l(2),E(" ",s.presenceType==null?null:s.presenceType.Designation," "),l(),q("data-label",m(33,46,"edit-absences.list.header.teacher")),l(2),E(" ",s.lessonPresence.TeacherInformation," ")}}function Hs(i,t){if(i&1){let s=V();c(0,"table",17)(1,"thead")(2,"tr")(3,"th")(4,"input",18),x("change",function(n){C(s);let r=f(5);return y(r.toggleAll(n.currentTarget==null?null:n.currentTarget.checked))}),d()(),c(5,"th",19),h(6),u(7,"translate"),d(),c(8,"th"),h(9),u(10,"translate"),D(11,"br"),h(12),u(13,"translate"),u(14,"translate"),d(),c(15,"th"),h(16),u(17,"translate"),d(),c(18,"th"),h(19),u(20,"translate"),d(),c(21,"th"),h(22),u(23,"translate"),d(),c(24,"th"),h(25),u(26,"translate"),u(27,"translate"),d(),c(28,"th"),h(29),u(30,"translate"),d()()(),c(31,"tbody"),b(32,$s,35,52,"tr",20),d()()}if(i&2){let s=f(4).bkdLet;l(4),p("checked",s.selection.length===s.entries.length),l(2),E(" ",m(7,12,"edit-absences.list.header.presence")," "),l(3),E(" ",m(10,14,"edit-absences.list.header.student")," "),l(3),ve(" ",m(13,16,"edit-absences.list.header.module-instance"),", ",m(14,18,"edit-absences.list.header.study-class")," "),l(4),E(" ",m(17,20,"edit-absences.list.header.date")," "),l(3),T(m(20,22,"edit-absences.list.header.time")),l(3),E(" ",m(23,24,"edit-absences.list.header.confirmation-state")," "),l(3),ve(" ",m(26,26,"edit-absences.list.header.presence-type")," / ",m(27,28,"edit-absences.list.header.incident")," "),l(4),T(m(30,30,"edit-absences.list.header.teacher")),l(3),p("ngForOf",s.entries)}}function Gs(i,t){i&1&&D(0,"bkd-spinner",25)}function Ws(i,t){if(i&1){let s=V();c(0,"button",26),x("click",function(){C(s);let n=f(5);return y(n.state.nextPage())}),h(1),u(2,"translate"),d()}i&2&&(l(),E(" ",m(2,1,"global.pagination.load-more")," "))}function qs(i,t){if(i&1){let s=V();c(0,"div",8),x("scrolled",function(){C(s);let n=f(4);return y(n.onScroll())}),b(1,js,10,21,"div",9)(2,Hs,33,32,"table",10)(3,Gs,1,0,"bkd-spinner",11)(4,Ws,3,3,"button",12),d()}if(i&2){let s=f(3).bkdLet;l(),p("ngIf",s.entries&&s.entries.length>0),l(),p("ngIf",s.entries&&s.entries.length>0),l(),p("ngIf",s.loadingPage),l(),p("ngIf",s.hasMore&&!s.loadingPage)}}function Us(i,t){i&1&&(c(0,"p",27),h(1),u(2,"translate"),d()),i&2&&(l(),T(m(2,1,"edit-absences.no-entries")))}function zs(i,t){if(i&1&&(ge(0),b(1,qs,5,4,"div",7)(2,Us,3,3,"ng-template",null,2,Z),be()),i&2){let s=N(3),e=f(2).bkdLet;l(),p("ngIf",e.entries&&e.entries.length>0||e.loadingPage)("ngIfElse",s)}}function Qs(i,t){i&1&&D(0,"bkd-spinner")}function Ks(i,t){if(i&1&&(ge(0),b(1,zs,4,2,"ng-container",6),u(2,"async"),b(3,Qs,1,0,"ng-template",null,1,Z),be()),i&2){let s=N(4),e=f(2);l(),p("ngIf",m(2,2,e.state.loading$)===!1)("ngIfElse",s)}}function Ys(i,t){i&1&&(c(0,"p",27),h(1),u(2,"translate"),d()),i&2&&(l(),T(m(2,1,"edit-absences.no-filter")))}function Zs(i,t){if(i&1){let s=V();ge(0),c(1,"bkd-edit-absences-header",5),u(2,"async"),x("filterChange",function(n){C(s);let r=f();return y(r.state.setFilter(n))}),d(),b(3,Ks,5,4,"ng-container",6),u(4,"async"),b(5,Ys,3,3,"ng-template",null,0,Z),be()}if(i&2){let s=N(6),e=f();l(),p("filter",m(2,3,e.filterFromParams$)),l(2),p("ngIf",m(4,5,e.state.isFilterValid$))("ngIfElse",s)}}var ln=(()=>{let t=class t{constructor(e,n,r,a){this.state=e,this.selectionService=n,this.scrollPosition=r,this.route=a,this.filterFromParams$=this.route.queryParams.pipe(S(Js)),this.profileReturnParams$=this.state.queryParamsString$,this.destroy$=new se}ngOnInit(){this.filterFromParams$.pipe(ee(1)).subscribe(e=>this.state.setFilter(e)),this.state.validFilter$.pipe(M(this.destroy$)).subscribe(()=>this.selectionService.clear()),this.selectionService.selection$.pipe(M(this.destroy$)).subscribe(e=>this.state.selected=e),this.route.queryParams.pipe(ee(1),S(({reload:e})=>e),Be(fi)).subscribe(()=>this.state.resetEntries())}ngAfterViewInit(){this.scrollPosition.restore()}ngOnDestroy(){this.destroy$.next()}toggleAll(e){this.state.entries$.pipe(ee(1)).subscribe(n=>this.selectionService.clear(e?n:null))}onCheckboxCellClick(e,n){e.target!==n&&n.click()}onScroll(){this.state.nextPage()}};t.\u0275fac=function(n){return new(n||t)(_(X),_(Qe),_(Bi),_(Ne))},t.\u0275cmp=j({type:t,selectors:[["bkd-edit-absences-list"]],standalone:!0,features:[le([Qe]),te],decls:8,vars:17,consts:[["noFilter",""],["loading",""],["noEntries",""],["checkbox",""],[4,"bkdLet"],[3,"filterChange","filter"],[4,"ngIf","ngIfElse"],["class","py-3","infiniteScroll","",3,"scrolled",4,"ngIf","ngIfElse"],["infiniteScroll","",1,"py-3",3,"scrolled"],["class","d-flex align-items-center justify-content-between",4,"ngIf"],["class","table table-striped",4,"ngIf"],["class","inline",4,"ngIf"],["type","button","class","btn btn-outline-secondary btn-sm d-block mx-auto",3,"click",4,"ngIf"],[1,"d-flex","align-items-center","justify-content-between"],[1,"total"],["routerLink","/edit-absences/edit",1,"edit","btn","btn-primary","btn-icon","mt-1","mb-2",3,"queryParams"],[1,"material-icons"],[1,"table","table-striped"],["type","checkbox",3,"change","checked"],[1,"presence-category"],[4,"ngFor","ngForOf"],[1,"edit-absences-checkbox",3,"click"],[3,"className"],[1,"student",3,"routerLink","queryParams"],[1,"designation-incident"],[1,"inline"],["type","button",1,"btn","btn-outline-secondary","btn-sm","d-block","mx-auto",3,"click"],[1,"mt-3"]],template:function(n,r){n&1&&(c(0,"h1"),h(1),u(2,"translate"),d(),b(3,Zs,7,7,"ng-container",4),u(4,"async"),u(5,"async"),u(6,"async"),u(7,"async")),n&2&&(l(),T(m(2,2,"edit-absences.title")),l(2),p("bkdLet",Ve(12,Ns,m(4,4,r.selectionService.selection$),m(5,6,r.state.presenceControlEntries$),m(6,8,r.state.hasMore$),m(7,10,r.state.loadingPage$))))},dependencies:[Ge,rn,Me,Ni,Ut,Ee,Ti,Ce,$t,ue,de],styles:[".presence-category[_ngcontent-%COMP%]{text-align:center}.presence-category[_ngcontent-%COMP%] .absent[_ngcontent-%COMP%]{color:#ea161f}.presence-category[_ngcontent-%COMP%] .present[_ngcontent-%COMP%]{color:#3d8608}.presence-category[_ngcontent-%COMP%] .unapproved[_ngcontent-%COMP%]{color:#ffa814}.designation-incident[_ngcontent-%COMP%]{max-width:50ch}@media screen and (max-width: 820px){.edit-absences-checkbox[_ngcontent-%COMP%]{text-align:left}.presence-category[_ngcontent-%COMP%]{text-align:right}.designation-incident[_ngcontent-%COMP%]{max-width:initial}}"],changeDetection:0});let i=t;return i})();function Js(i){return{student:i.student?Number(i.student):null,educationalEvent:i.educationalEvent?Number(i.educationalEvent):null,studyClass:i.studyClass?Number(i.studyClass):null,teacher:i.teacher??null,dateFrom:i.dateFrom?ct(i.dateFrom):null,dateTo:i.dateTo?ct(i.dateTo):null,presenceTypes:i.presenceTypes?i.presenceTypes.split(",").map(Number):null,confirmationStates:i.confirmationStates?i.confirmationStates.split(",").map(Number):null,incidentTypes:i.incidentTypes?i.incidentTypes.split(",").map(Number):null}}var cn=(()=>{let t=class t{constructor(e){this.state=e}};t.\u0275fac=function(n){return new(n||t)(_(X))},t.\u0275cmp=j({type:t,selectors:[["bkd-edit-absences"]],standalone:!0,features:[le([X,{provide:_i,useExisting:X},Ei]),te],decls:1,vars:0,template:function(n,r){n&1&&D(0,"router-outlet")},dependencies:[Wt],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0});let i=t;return i})();var lo=[{path:"",component:cn,children:[{path:"",component:ln,data:{restoreScrollPositionFrom:["/edit-absences/edit","/edit-absences/student/:id/addresses","/edit-absences/student/:id/absences","/edit-absences/student/:id/grades"]}},{path:"edit",component:Wi},Ai]}];export{lo as EDIT_ABSENCES_ROUTES}; diff --git a/public/apps/webapp-schulverwaltung/chunk-33NXTXD7.js b/public/apps/webapp-schulverwaltung/chunk-33NXTXD7.js new file mode 100644 index 00000000..2a324379 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-33NXTXD7.js @@ -0,0 +1 @@ +import{$ as w,A as g,Ca as y,D as x,Dd as L,Ed as I,N as p,O as o,Sa as O,T as b,Ta as C,ba as v,dc as E,jb as P,k as d,l as h,m as s,p as u,s as m,tb as k,u as f,v as c,va as a,xa as M}from"./chunk-T7QWSMKM.js";var l=class{constructor(){this.$implicit=null,this.bkdLet=null}},U=(()=>{let t=class t{set bkdLet(i){this.context.$implicit=this.context.bkdLet=i}constructor(i,r){this.vcr=i,this.templateRef=r,this.context=new l}ngOnInit(){this.vcr.createEmbeddedView(this.templateRef,this.context)}};t.\u0275fac=function(r){return new(r||t)(a(y),a(M))},t.\u0275dir=v({type:t,selectors:[["","bkdLet",""]],inputs:{bkdLet:"bkdLet"},standalone:!0});let e=t;return e})();var D=(()=>{let t=class t{constructor(){}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=w({type:t,selectors:[["bkd-spinner"]],standalone:!0,features:[k],decls:4,vars:0,consts:[[1,"spinner-container"],["role","status",1,"spinner-border"],[1,"visually-hidden"]],template:function(r,F){r&1&&(O(0,"div",0)(1,"div",1)(2,"span",2),P(3,"Loading..."),C()()())},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}"]});let e=t;return e})();var $=class{constructor(t,n,i,r){this.http=t,this.settings=n,this.codec=i,this.resourcePath=r}get(t,n){return this.http.get(`${this.baseUrl}/${t}`,n).pipe(o(L(this.codec)))}getList(t){return this.http.get(`${this.baseUrl}/`,t).pipe(o(I(this.codec)))}get baseUrl(){return`${this.settings.apiUrl}/${this.resourcePath}`}};function z(e){return g(t=>t instanceof E&&t.status===404?d(e||null):h(()=>t))}function B(e){return t=>u(()=>(e(),t))}function G(e){return t=>t.pipe(s(n=>n??e),x(e))}function J(e,t){return e.pipe(o(n=>t.pipe(p(n),s(()=>n))))}function K(e,t=window.document){return c(...["click","keydown"].map(n=>m(t,n))).pipe(p(null),o(()=>f(e)),s(()=>{}))}function N(e,t){return c(e,t.pipe(b(e),s(([n,i])=>i)))}export{U as a,$ as b,D as c,z as d,B as e,G as f,J as g,K as h,N as i}; diff --git a/public/apps/webapp-schulverwaltung/chunk-3AROKYRB.js b/public/apps/webapp-schulverwaltung/chunk-3AROKYRB.js new file mode 100644 index 00000000..cf2f9acd --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-3AROKYRB.js @@ -0,0 +1 @@ +import{E as n,W as c,f as r,zd as o}from"./chunk-T7QWSMKM.js";var l=(()=>{let s=class s{constructor(){this.toastsSubject=new r([]),this.toasts$=this.toastsSubject.asObservable()}success(t,e){this.addUnique({message:t,header:e,classname:"bg-success text-light",icon:"check_circle"})}warning(t,e){this.addUnique({message:t,header:e,classname:"bg-warning",icon:"help"})}error(t,e){this.addUnique({message:t,header:e,classname:"bg-danger text-light",icon:"cancel"})}remove(t){this.updateToasts(e=>e.filter(i=>!o(i,t)))}addUnique(t){this.updateToasts(e=>{if(!this.exists(e,t))return[...e,t]})}exists(t,e){return!!t.find(i=>i.message===e.message&&i.header===e.header)}updateToasts(t){this.toasts$.pipe(n(1)).subscribe(e=>{let i=t(e);i&&this.toastsSubject.next(i)})}};s.\u0275fac=function(e){return new(e||s)},s.\u0275prov=c({token:s,factory:s.\u0275fac,providedIn:"root"});let a=s;return a})();export{l as a}; diff --git a/public/apps/webapp-schulverwaltung/chunk-3V5HHMRH.js b/public/apps/webapp-schulverwaltung/chunk-3V5HHMRH.js new file mode 100644 index 00000000..5c818a7f --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-3V5HHMRH.js @@ -0,0 +1 @@ +import{q as b}from"./chunk-QHPTZGVN.js";import{b as l}from"./chunk-33NXTXD7.js";import{Ac as c,Bc as n,Ed as d,Gc as f,O as s,W as p,Wc as u,Z as o,ac as m,ec as a}from"./chunk-T7QWSMKM.js";var h=f({Id:n,Designation:c,StudentCount:n});var T=(()=>{let t=class t extends l{constructor(r,i){super(r,i,h,"Events")}getStudyCourseEvents(){let r=new m().set("filter.EventTypeId=","1");return this.getList({params:r})}getSubscriptionDetailsDefinitions(r){return this.http.get(`${this.baseUrl}/${r}/SubscriptionDetails`).pipe(s(d(b)))}};t.\u0275fac=function(i){return new(i||t)(o(a),o(u))},t.\u0275prov=p({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();export{T as a}; diff --git a/public/apps/webapp-schulverwaltung/chunk-62KHQOYN.js b/public/apps/webapp-schulverwaltung/chunk-62KHQOYN.js new file mode 100644 index 00000000..f7b18663 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-62KHQOYN.js @@ -0,0 +1 @@ +import{a as je,b as Be}from"./chunk-ZK2M6PDV.js";import{b as xe,d as Me,e as Ee}from"./chunk-2FIH3FGB.js";import{b as De}from"./chunk-MVTCHCDH.js";import"./chunk-Y4QYVF5K.js";import"./chunk-WN7VWSJW.js";import{a as K}from"./chunk-TK3HGFHH.js";import{H as ke,I as Ae,J as Oe,O as $e,P as C,T as Pe,V as Ie,X as we,Y as Le,a as fe}from"./chunk-GI4AZI25.js";import{e as U}from"./chunk-Q5U6YZUT.js";import{b as Fe}from"./chunk-N6FFLIGM.js";import{a as Se,c as Te}from"./chunk-33NXTXD7.js";import{x as ye,y as Ce}from"./chunk-FTRAQKUW.js";import"./chunk-3AROKYRB.js";import{$ as P,$a as u,Bb as p,Cb as l,Db as F,E as _,Fb as J,Ga as v,Gd as he,Hd as _e,Ia as g,Id as ve,Ja as ie,L,O as j,Q as Y,Sa as c,Sb as pe,Ta as a,Tb as le,Ua as x,Va as G,W as ne,Wa as H,Wb as V,Xb as de,Ya as B,Z as D,_a as I,e as $,f as W,ha as M,ia as E,ib as N,j as Z,jb as d,kb as y,lb as T,m,mb as se,n as S,pc as me,qc as ge,rc as ue,sb as re,sc as be,tb as w,ua as o,ub as oe,v as ee,va as h,vb as R,w as te,wb as ce,xb as ae}from"./chunk-T7QWSMKM.js";var k=(()=>{let i=class i{constructor(e,t,r,b){this.lessonPresencesService=e,this.selectionService=t,this.loadingService=r,this.translate=b,this.loading$=this.loadingService.loading$,this.search$=new W(""),this.updateUnconfirmedAbsences$=new $,this.unconfirmedAbsences$=ee(this.loadUnconfirmedAbsences(),this.updateUnconfirmedAbsences$).pipe(L(1)),this.entries$=this.unconfirmedAbsences$.pipe(m(ke),L(1)),this.sortCriteriaSubject$=new W({primarySortKey:"date",ascending:!1}),this.sortCriteria$=this.sortCriteriaSubject$.asObservable(),this.sortedEntries$=S([this.entries$,this.sortCriteria$]).pipe(m(U(Ae))),this.filteredEntries$=S([this.sortedEntries$,this.search$]).pipe(m(U(je)),L(1)),this.currentDetail=null}getUnconfirmedAbsences(e,t){return this.entries$.pipe(m(r=>{let b=r.find(A=>A.dateString===e&&A.studentId===t);return b?b.absences:[]}))}getAllUnconfirmedAbsencesForStudent(e){return this.entries$.pipe(m(t=>t.filter(r=>r.studentId===e).reduce((r,b)=>r.concat(b.absences),[])))}toggleSort(e){this.sortCriteriaSubject$.pipe(_(1)).subscribe(t=>{t.primarySortKey===e?this.sortCriteriaSubject$.next({primarySortKey:e,ascending:!t.ascending}):this.sortCriteriaSubject$.next({primarySortKey:e,ascending:e==="name"})})}get confirmBackLink(){return this.currentDetail?["/open-absences/detail",this.currentDetail.personId,this.currentDetail.date]:["/open-absences"]}updateAfterConfirm(){S([this.unconfirmedAbsences$.pipe(_(1)),this.selectionService.selectedIds$.pipe(_(1))]).pipe(m(U(Oe))).subscribe(e=>{this.selectionService.clear(),this.updateUnconfirmedAbsences$.next(e)})}buildMailToString(e,t){let r=e.Email,b=this.translate.instant("open-absences.detail.mail.subject"),A=t.map(q=>$e(q)).join("%0D%0A"),O=`${this.translate.instant("open-absences.detail.mail.body")}%0D%0A${A}`;return O.length>=1600&&(O=`${O.substring(0,1500)}%0D%0A${this.translate.instant("open-absences.detail.mail.bodyToLargeForEmailTo")}`),`${r}?subject=${b}&body=${O}`}loadUnconfirmedAbsences(){return this.loadingService.load(this.lessonPresencesService.getListOfUnconfirmed())}};i.\u0275fac=function(t){return new(t||i)(D(Ee),D(C),D(Fe),D(he))},i.\u0275prov=ne({token:i,factory:i.\u0275fac});let n=i;return n})();var We=()=>["/open-absences"],Ve=(()=>{let i=class i{constructor(e,t,r,b,A,O,q){this.router=e,this.route=t,this.openAbsencesService=r,this.presenceTypesService=b,this.personService=A,this.selectionService=O,this.scrollPosition=q,this.absences$=this.route.paramMap.pipe(j(this.getAbsencesForParams.bind(this))),this.hasAbsences$=this.absences$.pipe(m(ye(1))),this.studentFullName$=this.absences$.pipe(m(f=>f[0]&&f[0].StudentFullName||null)),this.allSelected$=S([this.absences$,this.selectionService.selection$]).pipe(m(([f,z])=>f.length===z.length)),this.studentEmail$=this.absences$.pipe(m(f=>f[0]&&f[0].StudentRef.Id||null),j(f=>f?this.personService.getByIdWithEmailInfos(f):Z)),this.allUnconfirmedAbsencesForStudent$=this.route.paramMap.pipe(j(this.getAbsencesForStudentParam.bind(this))),this.mailTo$=S([this.studentEmail$,this.allUnconfirmedAbsencesForStudent$]).pipe(m(([f,z])=>this.openAbsencesService.buildMailToString(f,z))),this.destroy$=new $}ngOnInit(){this.selectionService.clearNonLessonPresences(),this.route.paramMap.pipe(Y(this.destroy$)).subscribe(e=>this.openAbsencesService.currentDetail={date:String(e.get("date")),personId:Number(e.get("personId"))}),this.hasAbsences$.pipe(Y(this.destroy$),te(fe(Ce))).subscribe(()=>this.router.navigate(["/open-absences"]))}ngAfterViewInit(){this.scrollPosition.restore()}ngOnDestroy(){this.destroy$.next()}toggleAll(e){e?this.absences$.pipe(_(1)).subscribe(t=>this.selectionService.clear(t)):this.selectionService.clear()}onRowClick(e,t){e.target!==t&&t.click()}getPresenceTypeDesignation(e){return this.presenceTypesService.displayedTypes$.pipe(m(t=>e.TypeRef.Id&&t.find(r=>r.Id===e.TypeRef.Id)?.Designation||null))}getAbsencesForParams(e){return this.openAbsencesService.getUnconfirmedAbsences(String(e.get("date")),Number(e.get("personId")))}getAbsencesForStudentParam(e){return this.openAbsencesService.getAllUnconfirmedAbsencesForStudent(Number(e.get("personId")))}};i.\u0275fac=function(t){return new(t||i)(h(ue),h(me),h(k),h(Pe),h(De),h(C),h(K))},i.\u0275cmp=P({type:i,selectors:[["bkd-open-absences-detail"]],standalone:!0,features:[w],decls:6,vars:10,consts:[[3,"link"],[3,"absences$","selectionService","confirmLink","displayEmail","mailTo$"]],template:function(t,r){t&1&&(c(0,"div"),x(1,"bkd-backlink",0),c(2,"h1"),d(3),p(4,"async"),a()(),x(5,"bkd-student-dossier-absences",1)),t&2&&(o(),g("link",oe(9,We)),o(2),y(l(4,7,r.studentFullName$)),o(2),g("absences$",r.absences$)("selectionService",r.selectionService)("confirmLink","/open-absences/confirm")("displayEmail",!0)("mailTo$",r.mailTo$))},dependencies:[Le,we,V],styles:['.content[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}.back[_ngcontent-%COMP%]{color:#000;text-decoration:none}.back[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%], .back[_ngcontent-%COMP%]:active span[_ngcontent-%COMP%]{text-decoration:underline}.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}.checkbox[_ngcontent-%COMP%]{grid-area:checkbox;margin:0;padding:.6rem .5rem 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}.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){.content[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.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});let n=i;return n})();var Ye=(n,i,s)=>({selection:n,entries:i,sortCriteria:s}),X=n=>({count:n}),Ge=(n,i)=>["detail",n,i];function He(n,i){if(n&1){let s=B();c(0,"div",16),I("click",function(){let t=M(s).$implicit,r=u(4);return E(r.openAbsencesService.toggleSort(t))}),d(1),p(2,"translate"),c(3,"span",17),d(4),a()()}if(n&2){let s=i.$implicit,e=u(3).bkdLet,t=u();g("className",s),o(),T(" ",l(2,3,"open-absences.list.header."+s)," "),o(3),y(t.getSortDirectionCharacter(e.sortCriteria,s))}}function Je(n,i){if(n&1){let s=B();c(0,"div")(1,"div",18)(2,"div",19),I("click",function(t){M(s);let r=N(4),b=u(4);return E(b.onCheckboxCellClick(t,r))}),c(3,"input",13,2),p(5,"async"),I("change",function(){let t=M(s).$implicit,r=u(4);return E(r.selectionService.toggle(t))}),a()(),c(6,"div",20)(7,"a",21),d(8),a()(),c(9,"div",22),d(10),a(),c(11,"div",23),d(12),p(13,"translate"),a(),c(14,"div",24),d(15),p(16,"translate"),a(),c(17,"div",25),d(18),p(19,"bkdDaysDifference"),a(),c(20,"div",26),d(21),p(22,"date"),a()()()}if(n&2){let s=i.$implicit,e=u(4);o(3),g("checked",l(5,9,e.selectionService.isSelected$(s))),o(4),g("routerLink",ce(22,Ge,s.studentId,s.dateString)),o(),y(s.studentFullName),o(2),T(" ",s.studyClassNumber," "),o(2),T(" ",F(13,11,e.getLessonsCountKey(s),R(25,X,s.lessonsCount))," "),o(3),se(" ",s.studyClassNumber,", ",F(16,14,e.getLessonsCountKey(s),R(27,X,s.lessonsCount))," "),o(3),T(" ",l(19,17,s.date)," "),o(3),y(F(22,19,s.date,"dd.MM.yyyy"))}}function Qe(n,i){if(n&1){let s=B();G(0),c(1,"div")(2,"bkd-resettable-input",5),p(3,"async"),p(4,"translate"),p(5,"translate"),I("valueChange",function(t){M(s);let r=u(3);return E(r.openAbsencesService.search$.next(t))}),a(),c(6,"div",6)(7,"div",7),d(8),p(9,"translate"),a(),c(10,"a",8)(11,"i",9),d(12,"edit"),a()()()(),c(13,"div",10)(14,"div",11)(15,"div",12)(16,"input",13),I("change",function(t){M(s);let r=u(3);return E(r.onToggleAll(t.currentTarget==null?null:t.currentTarget.checked))}),a()(),v(17,He,5,5,"div",14),a(),v(18,Je,23,29,"div",15),a(),H()}if(n&2){let s=u(2).bkdLet,e=u();o(2),g("value",l(3,9,e.openAbsencesService.search$))("placeholder",l(4,11,"open-absences.search-by-name-or-class"))("label",l(5,13,"open-absences.search")),o(6),T(" ",F(9,15,"open-absences.selected",R(18,X,s.selection.length))," "),o(2),ie("disabled",s.selection.length===0),o(6),g("checked",s.selection.length===s.entries.length),o(),g("ngForOf",e.primarySortKeys),o(),g("ngForOf",s.entries)}}function Xe(n,i){n&1&&(c(0,"p",27),d(1),p(2,"translate"),a()),n&2&&(o(),y(l(2,1,"open-absences.noEntries")))}function Ze(n,i){if(n&1&&(G(0),v(1,Qe,19,20,"ng-container",4),p(2,"async"),v(3,Xe,3,3,"ng-template",null,1,J),H()),n&2){let s,e=N(4),t=u().bkdLet,r=u();o(),g("ngIf",((s=(s=l(2,2,r.openAbsencesService.sortedEntries$))==null?null:s.length)!==null&&s!==void 0?s:0)>0||(t.entries==null?null:t.entries.length)>0)("ngIfElse",e)}}function et(n,i){n&1&&x(0,"bkd-spinner")}function tt(n,i){if(n&1&&(c(0,"div"),v(1,Ze,5,4,"ng-container",4),p(2,"async"),v(3,et,1,0,"ng-template",null,0,J),a()),n&2){let s=N(4),e=u();o(),g("ngIf",l(2,2,e.openAbsencesService.loading$)===!1)("ngIfElse",s)}}var Ue=(()=>{let i=class i{constructor(e,t,r){this.openAbsencesService=e,this.selectionService=t,this.scrollPosition=r,this.primarySortKeys=["name","date"],this.destroy$=new $}ngOnInit(){this.openAbsencesService.currentDetail=null,this.selectionService.clearNonOpenAbsencesEntries()}ngAfterViewInit(){this.scrollPosition.restore()}ngOnDestroy(){this.destroy$.next()}onToggleAll(e){this.openAbsencesService.filteredEntries$.pipe(_(1)).subscribe(t=>{this.selectionService.clear(e?t:null)})}onCheckboxCellClick(e,t){e.target!==t&&t.click()}getSortDirectionCharacter(e,t){return e.primarySortKey!==t?"":e.ascending?"\u2193":"\u2191"}getLessonsCountKey(e){return`open-absences.list.content.lessonsCount.${e.lessonsCount===1?"singular":"plural"}`}};i.\u0275fac=function(t){return new(t||i)(h(k),h(C),h(K))},i.\u0275cmp=P({type:i,selectors:[["bkd-open-absences-list"]],standalone:!0,features:[w],decls:7,vars:14,consts:[["loading",""],["noEntries",""],["checkbox",""],[4,"bkdLet"],[4,"ngIf","ngIfElse"],[1,"d-flex","header-search",3,"valueChange","value","placeholder","label"],[1,"d-flex","align-items-center","justify-content-between","mt-1"],[1,"selection-count","ps-1"],["routerLink","/open-absences/confirm",1,"edit","btn","btn-primary","btn-edit","mt-1","mb-2"],[1,"material-icons"],[1,"content"],[1,"absence-header"],[1,"checkbox"],["type","checkbox",1,"form-check-input",3,"change","checked"],[3,"className","click",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[3,"click","className"],[1,"sort-direction"],[1,"absence-entry"],[1,"checkbox",3,"click"],[1,"name","pe-2"],[3,"routerLink"],[1,"study-class"],[1,"lessons-count"],[1,"study-class-lessons-count"],[1,"days-ago"],[1,"date"],[1,"mt-3"]],template:function(t,r){t&1&&(c(0,"h1"),d(1),p(2,"translate"),a(),v(3,tt,5,4,"div",3),p(4,"async"),p(5,"async"),p(6,"async")),t&2&&(o(),y(l(2,2,"open-absences.title")),o(2),g("bkdLet",ae(10,Ye,l(4,4,r.selectionService.selection$),l(5,6,r.openAbsencesService.filteredEntries$),l(6,8,r.openAbsencesService.sortCriteria$))))},dependencies:[Se,le,Be,be,pe,Te,V,de,ve,_e,Ie],styles:['.header-search[_ngcontent-%COMP%]{max-width:500px}.absence-header[_ngcontent-%COMP%]{cursor:pointer;padding:1rem;display:grid;grid-template-areas:"checkbox name date";grid-template-columns:min-content 5fr 1fr;border-top:1px solid #dee2e6;border-bottom:2px solid #dee2e6;align-items:center}.absence-entry[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid #dee2e6;display:grid;grid-template-areas:"checkbox name study-class lessons-count days-ago date";grid-template-columns:min-content 2fr 1fr 1fr 1fr 1fr;align-items:center}.checkbox[_ngcontent-%COMP%]{align-self:start;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}.lessons-count[_ngcontent-%COMP%]{grid-area:lessons-count}.study-class[_ngcontent-%COMP%]{grid-area:study-class}.study-class-lessons-count[_ngcontent-%COMP%]{grid-area:study-class-lessons-count;display:none}.days-ago[_ngcontent-%COMP%]{color:#6c757d;grid-area:days-ago}.date[_ngcontent-%COMP%]{grid-area:date}@media (max-width: 750px){.content[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.absence-header[_ngcontent-%COMP%]{grid-template-areas:"checkbox name date";grid-template-columns:min-content 3fr 2fr}.absence-entry[_ngcontent-%COMP%]{grid-template-areas:"checkbox name date" "checkbox study-class-lessons-count days-ago";grid-template-columns:min-content 3fr 2fr}.study-class-lessons-count[_ngcontent-%COMP%]{display:block}.study-class[_ngcontent-%COMP%], .lessons-count[_ngcontent-%COMP%]{display:none}.days-ago[_ngcontent-%COMP%], .study-class-lessons-count[_ngcontent-%COMP%]{font-size:.875rem;color:#adb5bd}}'],changeDetection:0});let n=i;return n})();var Ke=(()=>{let i=class i{constructor(){}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=P({type:i,selectors:[["bkd-open-absences"]],standalone:!0,features:[re([k,C,{provide:xe,useExisting:k}]),w],decls:1,vars:0,template:function(t,r){t&1&&x(0,"router-outlet")},dependencies:[ge],changeDetection:0});let n=i;return n})();var Rt=[{path:"",component:Ke,children:[{path:"",component:Ue,data:{restoreScrollPositionFrom:["/open-absences/detail/:personId/:date","/open-absences/confirm"]}},{path:"detail/:personId/:date",component:Ve,data:{restoreScrollPositionFrom:["/open-absences/confirm"]}},{path:"confirm",component:Me}]}];export{Rt as OPEN_ABSENCES_ROUTES}; diff --git a/public/apps/webapp-schulverwaltung/chunk-67IXHFR4.js b/public/apps/webapp-schulverwaltung/chunk-67IXHFR4.js new file mode 100644 index 00000000..8fec49aa --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-67IXHFR4.js @@ -0,0 +1 @@ +import{a as G}from"./chunk-WN7VWSJW.js";import{b as M,f as u}from"./chunk-33NXTXD7.js";import{Ac as p,Bc as A,C as V,Cc as h,Dd as s,Ec as U,Fc as l,Gc as o,Kc as S,L as I,Lc as $,N as C,Nc as v,O as n,R as O,Rc as d,W as g,Wc as F,Z as f,e as T,ec as j,m as a,wc as P,xc as R,yc as m,zc as x}from"./chunk-T7QWSMKM.js";function K(e){var i=Object.create(Object.getPrototypeOf(e));return Object.assign(i,e),i}function _(e,i,c){c===void 0&&(c=e.name);var t=K(e);return t.validate=i,t.decode=function(r){return i(r,$(t))},t.name=c,t}function y(e,i,c){return c===void 0&&(c="withFallback("+e.name+")"),_(e,function(t,r){return P(function(){return m(i)})(e.validate(t,r))},c)}var z=o({Key:p,Value:p}),D=o({Id:p,Settings:S(l(z))}),b=d.pipe(o({mail:y(h,!1),gui:y(h,!1),phoneMobile:y(h,!1)})),E=new x("NotificationTypesInactive",e=>Array.isArray(e)&&e.every(i=>typeof i=="string"),(e,i)=>typeof e=="string"?m(e.split(";").filter(Boolean)):R(e,i),e=>e.join(";")),Q=function(e){return e.Grid="grid",e.List="list",e}(Q||{}),w=d.pipe(o({presenceControl:U({grid:null,list:null})})),X=o({eventId:v(A),group:v(G.props.Key)}),N=d.pipe(S(l(X))),Y=o({AccessInfo:o({Roles:l(p),Permissions:l(p)})});var L=(()=>{let i=class i extends M{constructor(t,r){super(t,r,D,"UserSettings")}getUserSettingsCst(t){return this.http.get(`${this.baseUrl}/Cst`,{params:t}).pipe(n(s(this.codec)))}updateUserSettingsCst(t){return this.http.patch(`${this.baseUrl}/Cst`,t)}getAccessInfo(){return this.http.get(`${this.baseUrl}/?expand=AccessInfo`).pipe(n(s(Y)),a(({AccessInfo:t})=>t))}};i.\u0275fac=function(r){return new(r||i)(f(j),f(F))},i.\u0275prov=g({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();var et=100,H="presenceControlViewMode",W="presenceControlGroupView",B="notification",J="notificationTypesInactive",bt=(()=>{let i=class i{constructor(t){this.settingsRestService=t,this.refetch$=new T,this.settings$=this.refetch$.pipe(C(null),V(et),n(()=>this.settingsRestService.getUserSettingsCst()),a(r=>r.Settings),I(1)),this.accessInfo$=this.settingsRestService.getAccessInfo().pipe(I(1))}refetch(){this.refetch$.next()}getSetting(t){return this.settings$.pipe(a(r=>r.find(q=>q.Key===t)?.Value??null))}saveSetting(t,r){return this.settingsRestService.updateUserSettingsCst(this.buildSettings(t,r)).pipe(O(()=>this.refetch$.next()))}getPresenceControlViewMode(){return this.getSetting(H).pipe(u('{"presenceControl":"grid"}'),n(s(w)),a(({presenceControl:t})=>t))}savePresenceControlViewMode(t){return this.saveSetting(H,w.encode({presenceControl:t}))}getPresenceControlGroupView(){return this.getSetting(W).pipe(u("[]"),n(s(N)))}savePresenceControlGroupView(t){return this.saveSetting(W,N.encode(t))}getNotificationChannels(){return this.getSetting(B).pipe(u("{}"),n(s(b)))}saveNotificationChannels(t){return this.saveSetting(B,b.encode(t))}getNotificationTypesInactive(){return this.getSetting(J).pipe(u(""),n(s(E)))}saveNotificationTypesInactive(t){return this.saveSetting(J,E.encode(t))}getRolesAndPermissions(){return this.accessInfo$.pipe(a(({Roles:t,Permissions:r})=>[...t,...r]),C(null))}buildSettings(t,r){return{Id:"Cst",Settings:[{Key:t,Value:r}]}}};i.\u0275fac=function(r){return new(r||i)(f(L))},i.\u0275prov=g({token:i,factory:i.\u0275fac,providedIn:"root"});let e=i;return e})();export{Q as a,bt as b}; diff --git a/public/apps/webapp-schulverwaltung/chunk-73JV7FSB.js b/public/apps/webapp-schulverwaltung/chunk-73JV7FSB.js new file mode 100644 index 00000000..30e3c10d --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-73JV7FSB.js @@ -0,0 +1 @@ +import{a as Cn,b as vn}from"./chunk-JX2LWS6H.js";import{a as me,b as we}from"./chunk-67IXHFR4.js";import{b as bn}from"./chunk-IA3IH2MK.js";import{a as yn}from"./chunk-3V5HHMRH.js";import{a as Pn,b as xn}from"./chunk-ZK2M6PDV.js";import{a as _n}from"./chunk-RC3HL7KB.js";import{e as fn}from"./chunk-KLXFX6SJ.js";import{q as gn,u as Ie}from"./chunk-QHPTZGVN.js";import{a as at}from"./chunk-HHGALFFJ.js";import{b as Jt,e as Ke}from"./chunk-2FIH3FGB.js";import{a as rn}from"./chunk-MVTCHCDH.js";import"./chunk-Y4QYVF5K.js";import"./chunk-WN7VWSJW.js";import{a as In}from"./chunk-TK3HGFHH.js";import{a as Sn}from"./chunk-TNMAZX5O.js";import{a as pt,d as un}from"./chunk-X2BR3YJG.js";import{a as cn}from"./chunk-LO5XSJLW.js";import{a as an,b as pn}from"./chunk-DMYOU5OM.js";import"./chunk-RWNJF4OZ.js";import{E as en,F as tn,L as nn,P as on,T as Se,U as sn,W as ct,Y as hn,j as Xt,t as Yt,y as Zt,z as We}from"./chunk-GI4AZI25.js";import{d as st,e as K}from"./chunk-Q5U6YZUT.js";import{b as pe}from"./chunk-N6FFLIGM.js";import{a as ae,b as Qe,c as xe,g as ln,h as dn,i as mn}from"./chunk-33NXTXD7.js";import{f as Rt,g as Nt,h as Ue,i as Gt,j as Ut,k as Ht,m as qt,n as Wt,o as Le,p as ce,u as zt,w as qe}from"./chunk-FTRAQKUW.js";import{a as Pe}from"./chunk-3AROKYRB.js";import{$ as L,$a as u,A as ht,Ad as Ee,B as _t,Bb as l,C as nt,Cb as m,Db as U,E as D,Ed as Qt,Fb as _e,G as Fe,Ga as v,Gd as Q,Hd as j,Ia as g,Id as F,J as Ct,Ja as z,Jd as Kt,K as vt,Ka as Pt,L as B,La as Ae,M as it,Mc as jt,N as Ve,Nb as Et,O as T,Q as q,Rb as Dt,Sa as c,Sb as R,Ta as p,Tb as oe,Ua as W,Va as ee,W as A,Wa as te,Wb as re,Wc as H,Xb as Ce,Ya as M,Z as y,Zc as Ft,_a as b,a as ue,ad as Vt,b as ge,bd as ve,cc as ot,cd as be,db as J,e as $,ec as Re,ed as At,f as fe,fb as St,fd as ye,g as Oe,ga as bt,gb as xt,ha as P,hb as It,ia as S,ib as ne,jb as d,k as X,kb as w,la as yt,lb as x,m as f,mb as wt,n as O,nb as Mt,ob as kt,pc as Ne,qc as Bt,r as Te,ra as Z,sb as he,sc as Ge,sd as se,t as ft,tb as E,ua as s,ub as Ot,ud as rt,v as Y,va as _,vb as ie,w as $e,wb as Tt,xb as $t,yb as Lt,zd as He}from"./chunk-T7QWSMKM.js";function wn(n,i){let r=st(n),e=st(i);return+r==+e}function Mn(n,i,r){let e=i.map(o=>({eventId:o,group:n})),t=r.map(o=>e.find(a=>a.eventId===o.eventId)||o);return[...new Set([...t,...e])].filter(o=>o.group!==null)}var ze=(()=>{let i=class i extends nn{};i.\u0275fac=(()=>{let e;return function(o){return(e||(e=yt(i)))(o||i)}})(),i.\u0275prov=A({token:i,factory:i.\u0275fac});let n=i;return n})();function kn(n,i){return[...n].sort(ei(i))}function ei(n){return(i,r)=>{switch(n.primarySortKey){case"name":{let e=i.name.localeCompare(r.name);return n.ascending?e*-1:e}case"group":{let e=(i.detail.Value||"").localeCompare(r.detail.Value||"");return n.ascending?e*-1:e}}}}function On(n,i){return n.map(r=>ti(r,i))}function ti(n,i){return{id:n.IdPerson,name:i.find(r=>r.StudentRef.Id===n.IdPerson)?.StudentFullName||"",group:n.Value,detail:n}}function Tn(n,i){return n.filter(r=>r.VssId===i.subscriptionDetailGroupId)}function lt(n,i){return n.find(r=>r.VssId===i.subscriptionDetailGroupId)}function ni(n,i){if(n&1){let r=M();c(0,"div",5)(1,"input",6),b("change",function(){let t=P(r).$implicit,o=u();return S(o.onSelectionChange(t))}),p(),c(2,"label",7),d(3),p()()}if(n&2){let r=i.$implicit,e=i.index,t=u();s(),J("id","group-",e,""),g("checked",r.id===t.selected.id)("value",r.id),s(),J("for","group-",e,""),s(),x(" ",r.label," ")}}var De=function(n){return n.Select="select",n.Assign="assign",n}(De||{}),$n=(()=>{let i=class i{constructor(e,t){this.activeModal=e,this.translate=t,this.groupOptions=[]}ngOnInit(){this.title=`presence-control.groups.${this.dialogMode}.title`;let e=this.createEmtpyOption();this.groupOptions=this.createGroupOptions(this.subscriptionDetailsDefinitions),this.groupOptions.unshift(e),this.selected=this.groupOptions.find(t=>t.id===this.group)||e}createEmtpyOption(){let e=this.dialogMode===De.Select?"presence-control.groups.all":"presence-control.groups.none";return{id:null,label:this.translate.instant(e)}}createGroupOptions(e){return e.DropdownItems?e.DropdownItems.map(t=>({id:t.Key,label:`${this.translate.instant("presence-control.groups.group")} ${t.Value}`})):[]}getSelectedGroup(){return this.selected}onSelectionChange(e){this.selected=e}};i.\u0275fac=function(t){return new(t||i)(_(ce),_(Q))},i.\u0275cmp=L({type:i,selectors:[["bkd-presence-control-group-dialog"]],inputs:{dialogMode:"dialogMode",subscriptionDetailsDefinitions:"subscriptionDetailsDefinitions",group:"group"},standalone:!0,features:[E],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,"change","id","checked","value"],[1,"form-check-label",3,"for"]],template:function(t,o){t&1&&(c(0,"div",0)(1,"p"),d(2),l(3,"translate"),p(),c(4,"form"),v(5,ni,4,7,"div",1),p()(),c(6,"div",2)(7,"button",3),b("click",function(){return o.activeModal.dismiss()}),d(8),l(9,"translate"),p(),c(10,"button",4),b("click",function(){return o.activeModal.close(o.getSelectedGroup())}),d(11),l(12,"translate"),p()()),t&2&&(s(2),x(" ",m(3,4,o.title)," "),s(3),g("ngForOf",o.groupOptions),s(3),x(" ",m(9,6,"presence-control.groups.cancel")," "),s(3),x(" ",m(12,8,"presence-control.groups.save")," "))},dependencies:[se,ye,ve,be,R,F,j]});let n=i;return n})();function Ln(n,i,r,e){return n.map(t=>{let o=i.find(a=>ii(a.presence,t));if(o){let a;return!o.newPresenceTypeId&&t.Comment?a=r.find(h=>h.IsComment)||null:a=r.find(h=>h.Id===o.newPresenceTypeId)||null,ge(ue({},t),{TypeRef:oi(a),Date:null,Type:a?a.Designation:null,ConfirmationStateId:We(a,e)})}return t})}function ii(n,i){return n.LessonRef.Id===i.LessonRef.Id&&n.StudentRef.Id===i.StudentRef.Id}function oi(n){return{Id:n?n.Id:null,HRef:null}}function Xe(n){return i=>i.reduce((r,e)=>r+(e.presenceCategory===n?1:0),0)}function En(){return n=>n.reduce((i,r)=>i+(r.precedingAbsences&&r.precedingAbsences.length>0?1:0),0)}var Dn=(()=>{let i=class i extends Qe{constructor(e,t){super(e,t,pt,"LessonTeachers")}loadOtherTeachersLessonAbsences(e,t,o){let a=`${this.baseUrl}/except/${e}/LessonAbsences?expand=LessonRef`;return t&&t.length>0&&(a=a.concat("&filter.StudentRef=;"+t.join(";"))),this.http.get(a,{params:o}).pipe(T(Qt(pt)))}};i.\u0275fac=function(t){return new(t||i)(y(Re),y(H))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})();var Ye=(()=>{let i=class i extends Qe{constructor(e,t){super(e,t,gn,"SubscriptionDetails")}getListForEvent(e){return this.getList({params:{IdEvent:String(e)}})}update(e,t){let o={IdPerson:t.IdPerson,EventId:t.EventId,Value:e};return this.http.put(`${this.baseUrl}/${t.Id}`,o).pipe(f(()=>{}))}};i.\u0275fac=function(t){return new(t||i)(y(Re),y(H))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})();var jn="presence-control-group",de=(()=>{let i=class i{constructor(e,t,o,a,h){this.userSettings=e,this.eventService=t,this.subscriptionDetailsService=o,this.loadingService=a,this.settings=h,this.selectGroup$=new $,this.selectedLesson$=new Oe,this.lessonPresences$=new Oe,this.reloadSubscriptionDetails$=new $,this.defaultGroup=null,this.savedGroup$=this.selectedLesson$.pipe(T(C=>this.userSettings.getPresenceControlGroupView().pipe(f(k=>this.findGroupByLesson(k,C))))),this.group$=Y(this.selectGroup$,this.savedGroup$).pipe(Ve(this.defaultGroup),B(1)),this.loading$=this.loadingService.loading(jn),this.subscriptionDetailsDefinitions$=this.selectedLesson$.pipe(f(C=>C?.getEventIds()||[]),T(C=>Te(C.map(k=>this.eventService.getSubscriptionDetailsDefinitions(k)))),B(1)),this.groupsAvailability$=this.subscriptionDetailsDefinitions$.pipe(f(C=>C.every(k=>lt(k,this.settings))),B(1)),this.subscriptionDetails$=O([this.selectedLesson$,this.groupsAvailability$,this.reloadSubscriptionDetails$.pipe(f(()=>!1),Ve(!0))]).pipe(T(([C,k,N])=>C&&k?this.loadSubscriptionDetailsForLesson(C,N):X([])),f(C=>Tn(C,this.settings)),B(1)),this.subscriptionDetailPersonIds$=O([this.group$,this.subscriptionDetails$]).pipe(f(([C,k])=>k.filter(N=>N.Value===C).map(N=>N.IdPerson)),Ve([]))}selectGroup(e){this.selectGroup$.next(e)}setSelectedLesson(e){this.selectedLesson$.next(e)}setLessonPresences(e){this.lessonPresences$.next(e)}getSubscriptionDetailsDefinitions(){return this.subscriptionDetailsDefinitions$.pipe(f(rt),f(e=>lt(e,this.settings)))}getSubscriptionDetailsForStudents(){return O([this.subscriptionDetails$,this.lessonPresences$]).pipe(f(K(On)))}reloadSubscriptionDetails(){this.reloadSubscriptionDetails$.next(void 0)}loadSubscriptionDetailsForLesson(e,t=!0){return this.loadingService.load(Te(Ee(e.getEventIds()).map(o=>this.subscriptionDetailsService.getListForEvent(o))),t?void 0:jn).pipe(f(rt))}findGroupByLesson(e,t){return e.find(a=>a.eventId===t?.getEventIds()[0])?.group||this.defaultGroup}};i.\u0275fac=function(t){return new(t||i)(y(we),y(yn),y(Ye),y(pe),y(H))},i.\u0275prov=A({token:i,factory:i.\u0275fac});let n=i;return n})();var An=Object.values(me),G=(()=>{let i=class i{constructor(e,t,o,a,h,C,k,N,tt,Me){this.userSettings=e,this.lessonPresencesService=t,this.lessonTeacherService=o,this.presenceTypesService=a,this.groupService=h,this.dropDownItemsService=C,this.loadingService=k,this.storageService=N,this.settings=tt,this.location=Me,this.selectedDateSubject$=new fe(new Date),this.selectedDate$=this.selectedDateSubject$.asObservable().pipe(f(Xt),Fe(He)),this.viewModeSubject$=new $,this.viewMode$=Y(this.viewModeSubject$,this.userSettings.getPresenceControlViewMode().pipe(D(1))),this.lessons$=this.selectedDate$.pipe(T(I=>this.loadLessonsByDate(I)),B(1)),this.selectLessonId$=new $,this.selectLesson$=this.selectLessonId$.pipe(T(I=>this.getLessonById(I))),this.selectedLesson$=O([ln(this.selectLesson$.pipe(Fe((I,ke)=>He(I,ke))),dn(this.settings.lessonPresencesRefreshTime)),this.lessons$]).pipe(f(([I,ke])=>ke.find(Yn=>Yn.id===I.id)?I:null),B(1)),this.studyClassCount$=this.selectedLesson$.pipe(f(I=>I?.lessons.length||0)),this.updateLessonPresences$=new $,this.reloadLessonPresences$=new $,this.lessonPresences$=Y(mn(this.selectedLesson$,this.reloadLessonPresences$).pipe(T(I=>I?this.loadLessonPresencesByLesson(I):X([]))),this.updateLessonPresences$).pipe(B(1)),this.presenceTypes$=this.loadPresenceTypes().pipe(B(1)),this.reloadStudentIdsWithUnconfirmedAbsences$=new $,this.studentIdsWithUnconfirmedAbsences$=Y(this.selectedDate$,this.selectedLesson$.pipe(it(1)),this.reloadStudentIdsWithUnconfirmedAbsences$).pipe(T(()=>this.loadStudentIdsWithUnconfirmedAbsences()),B(1)),this.loading$=this.loadingService.loading$,this.absenceConfirmationStates$=this.dropDownItemsService.getAbsenceConfirmationStates().pipe(B(1)),this.studentIds$=this.lessonPresences$.pipe(f(I=>Ee(I.map(ke=>ke.StudentRef.Id))),B(1)),this.otherTeachersAbsences$=this.studentIds$.pipe(Fe(He),T(I=>I.length>0?this.lessonTeacherService.loadOtherTeachersLessonAbsences(this.getMyself(),I):X([])),B(1)),this.groupsAvailability$=this.groupService.groupsAvailability$,this.presenceControlEntries$=O([this.selectedLesson$,this.lessonPresences$,this.presenceTypes$,this.absenceConfirmationStates$,this.otherTeachersAbsences$]).pipe(f(K(en))),this.presenceControlEntriesByGroup$=O([this.groupService.group$,this.presenceControlEntries$,this.groupService.subscriptionDetailPersonIds$]).pipe(f(K(bn)),B(1)),this.presentCount$=this.presenceControlEntriesByGroup$.pipe(f(Xe("present"))),this.absentCount$=this.presenceControlEntriesByGroup$.pipe(f(Xe("absent"))),this.unapprovedCount$=this.presenceControlEntriesByGroup$.pipe(f(Xe("unapproved"))),this.absentPrecedingCount$=this.presenceControlEntriesByGroup$.pipe(f(En())),this.queryParamsString$=O([this.selectedDate$,this.selectedLesson$,this.viewMode$]).pipe(f(K(this.buildQueryParams.bind(this))),f(pn)),this.destroy$=new $,this.queryParamsString$.pipe(q(this.destroy$)).subscribe(I=>{this.location.replaceState("/presence-control",I),this.confirmBackLinkParams={returnparams:I}}),this.viewMode$.pipe(it(1),T(I=>this.userSettings.savePresenceControlViewMode(I)),q(this.destroy$)).subscribe(),this.selectedLesson$.pipe(q(this.destroy$)).subscribe(I=>{this.groupService.setSelectedLesson(I)}),this.lessonPresences$.pipe(q(this.destroy$)).subscribe(I=>this.groupService.setLessonPresences(I))}ngOnDestroy(){this.destroy$.next()}setDate(e){this.selectedDateSubject$.next(e)}setLessonId(e){this.selectLessonId$.next(e)}setViewMode(e){this.viewModeSubject$.next(e)}updateLessonPresencesTypes(e){O([this.lessonPresences$.pipe(D(1)),this.presenceTypes$.pipe(D(1))]).pipe(f(([t,o])=>Ln(t,e,o,this.settings))).subscribe(t=>this.updateLessonPresences$.next(t))}getNextPresenceType(e){return this.presenceTypes$.pipe(D(1),f(t=>e.getNextPresenceType(t)))}hasUnconfirmedAbsences(e){return this.studentIdsWithUnconfirmedAbsences$.pipe(f(t=>t.includes(e.lessonPresence.StudentRef.Id)))}updateAfterConfirm(){this.reloadLessonPresences$.next(),this.reloadStudentIdsWithUnconfirmedAbsences$.next()}loadLessonPresencesByLesson(e){return this.loadingService.load(this.lessonPresencesService.getListByLessons(e.lessons))}loadLessonsByDate(e){return this.loadingService.load(this.lessonPresencesService.getLessonsByDate(e)).pipe(f(Cn))}loadPresenceTypes(){return this.loadingService.load(this.presenceTypesService.presenceTypes$)}loadStudentIdsWithUnconfirmedAbsences(){return ft(0,this.settings.unconfirmedAbsencesRefreshTime||-1).pipe(T(()=>this.lessonPresencesService.getListOfUnconfirmed()),f(e=>Ee(e.map(t=>t.StudentRef.Id))))}buildQueryParams(e,t,o){let a={date:Yt(e,"yyyy-MM-dd"),viewMode:o};return t&&(a.lesson=String(t.id)),a}getLessonById(e){let t=String(e);return this.lessons$.pipe(f(o=>t&&o.find(a=>a.id===t)||vn(o)),$e(Boolean))}getMyself(){let e=this.storageService.getPayload();return Number(e?.holder_id||e?.id_person)}};i.\u0275fac=function(t){return new(t||i)(y(we),y(Ke),y(Dn),y(Se),y(de),y(rn),y(pe),y(Kt),y(H),y(Et))},i.\u0275prov=A({token:i,factory:i.\u0275fac});let n=i;return n})();var pi=(n,i,r,e)=>({sortCriteria:n,sortedEntries:i,selection:r,group:e}),li=()=>["/presence-control"];function di(n,i){if(n&1){let r=M();c(0,"div",14),b("click",function(){let t=P(r).$implicit,o=u(2);return S(o.toggleSort(t))}),d(1),l(2,"translate"),c(3,"span",15),d(4),p()()}if(n&2){let r=i.$implicit,e=u().bkdLet,t=u();g("className",r),s(),x(" ",m(2,3,"presence-control.groups.list.header."+r)," "),s(3),w(t.getSortDirectionCharacter(e.sortCriteria,r))}}function mi(n,i){n&1&&W(0,"bkd-spinner",23)}function ui(n,i){if(n&1){let r=M();ee(0),c(1,"div",17)(2,"div",18)(3,"input",19,1),l(5,"async"),b("change",function(){let t=P(r).$implicit,o=u(3);return S(o.selectionService.toggle(t))}),p()(),c(6,"div",20),d(7),p(),c(8,"div",21)(9,"span"),d(10),p(),v(11,mi,1,0,"bkd-spinner",22),l(12,"async"),p()(),te()}if(n&2){let r=i.$implicit,e=u(3);s(3),g("checked",m(5,4,e.selectionService.isSelected$(r))),s(4),x(" ",r.name," "),s(3),w(r.group?r.group:""),s(),g("ngIf",m(12,6,e.groupService.loading$))}}function gi(n,i){if(n&1&&(ee(0),v(1,ui,13,8,"ng-container",16),te()),n&2){let r=u().bkdLet;s(),g("ngForOf",r.sortedEntries)}}function fi(n,i){n&1&&W(0,"bkd-spinner")}function hi(n,i){if(n&1){let r=M();c(0,"div"),W(1,"bkd-backlink",3),l(2,"async"),c(3,"h1"),d(4),l(5,"translate"),p(),c(6,"div",4)(7,"div",5)(8,"span",6),d(9),l(10,"translate"),p(),c(11,"button",7),b("click",function(){P(r);let t=u();return S(t.selectGroup())}),d(12),l(13,"translate"),l(14,"translate"),p()(),c(15,"a",8),b("click",function(){P(r);let t=u();return S(t.assignGroup())}),c(16,"i",9),d(17,"edit"),p()()(),c(18,"div",10)(19,"div",11),v(20,di,5,5,"div",12),p(),v(21,gi,2,1,"ng-container",13),l(22,"async"),v(23,fi,1,0,"ng-template",null,0,_e),p()()}if(n&2){let r=i.bkdLet,e=ne(24),t=u();s(),g("link",Ot(22,li))("params",m(2,10,t.backlinkQueryParams$)),s(3),w(m(5,12,"presence-control.groups.title")),s(5),w(m(10,14,"presence-control.groups.show")),s(3),x(" ",r.group?m(13,16,"presence-control.groups.group")+" "+r.group:m(14,18,"presence-control.groups.all")," "),s(3),z("disabled",r.selection.length===0),s(5),g("ngForOf",t.primarySortKeys),s(),g("ngIf",m(22,20,t.state.loading$)===!1)("ngIfElse",e)}}var Gn=(()=>{let i=class i{constructor(e,t,o,a,h,C,k,N,tt){this.route=e,this.state=t,this.selectionService=o,this.groupService=a,this.userSettings=h,this.subscriptionDetailService=C,this.toastService=k,this.translate=N,this.modalService=tt,this.primarySortKeys=["name","group"],this.backlinkQueryParams$=this.route.queryParams.pipe(f(({returnparams:Me})=>Me),f(an)),this.eventIds$=this.state.selectedLesson$.pipe(f(Me=>Me?.getEventIds()||[])),this.sortCriteriaSubject$=new fe({primarySortKey:"name",ascending:!1}),this.sortCriteria$=this.sortCriteriaSubject$.asObservable(),this.sortedEntries$=O([this.groupService.getSubscriptionDetailsForStudents(),this.sortCriteria$]).pipe(f(K(kn))),this.selected=[]}ngOnInit(){this.selectionService.selection$.subscribe(e=>this.selected=e)}selectGroup(){this.openGroupModal(De.Select,this.selectCallback.bind(this))}assignGroup(){this.openGroupModal(De.Assign,this.assignCallback.bind(this))}openGroupModal(e,t){O([this.groupService.getSubscriptionDetailsDefinitions(),this.groupService.group$]).pipe(D(1)).subscribe(([o,a])=>{let h=this.modalService.open($n);h.componentInstance.dialogMode=e,h.componentInstance.subscriptionDetailsDefinitions=o,h.componentInstance.group=a,h.result.then(C=>{t(C)},()=>{})})}selectCallback(e){O([this.eventIds$,this.userSettings.getPresenceControlGroupView()]).pipe(D(1),T(([t,o])=>this.userSettings.savePresenceControlGroupView(Mn(e.id,t,o))),f(()=>e.id)).subscribe(t=>this.groupService.selectGroup(t))}assignCallback(e){Te(this.selected.map(t=>this.subscriptionDetailService.update(e.id,t.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(e,t){return e.primarySortKey!==t?"":e.ascending?"\u2193":"\u2191"}toggleSort(e){this.sortCriteriaSubject$.pipe(D(1)).subscribe(t=>{t.primarySortKey===e?this.sortCriteriaSubject$.next({primarySortKey:e,ascending:!t.ascending}):this.sortCriteriaSubject$.next({primarySortKey:e,ascending:e==="name"})})}};i.\u0275fac=function(t){return new(t||i)(_(Ne),_(G),_(ze),_(de),_(we),_(Ye),_(Pe),_(Q),_(Ie))},i.\u0275cmp=L({type:i,selectors:[["bkd-presence-control-group"]],standalone:!0,features:[he([ze]),E],decls:5,vars:14,consts:[["loading",""],["checkbox",""],[4,"bkdLet"],[3,"link","params"],[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"],[3,"click","className"],[1,"sort-direction"],[4,"ngFor","ngForOf"],[1,"group-list-entry"],[1,"checkbox"],["type","checkbox",1,"form-check-input",3,"change","checked"],[1,"name","pe-2"],[1,"group","d-flex","justify-content-between"],["class","inline small",4,"ngIf"],[1,"inline","small"]],template:function(t,o){t&1&&(v(0,hi,25,23,"div",2),l(1,"async"),l(2,"async"),l(3,"async"),l(4,"async")),t&2&&g("bkdLet",Lt(9,pi,m(1,1,o.sortCriteria$),m(2,3,o.sortedEntries$),m(3,5,o.selectionService.selection$),m(4,7,o.groupService.group$)))},dependencies:[ae,hn,R,oe,xe,re,F,j],styles:['[_nghost-%COMP%]{display:block}.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});let n=i;return n})();function _i(n,i){if(n&1){let r=M();c(0,"div",3)(1,"input",4),b("change",function(){let t=P(r).$implicit;return S(t.selected=!t.selected)}),p(),c(2,"label",5)(3,"i"),d(4),p(),c(5,"div",6),d(6),l(7,"date"),l(8,"date"),p()()()}if(n&2){let r=i.$implicit,e=i.index,t=u();s(),J("id","lesson-presence-",e,""),g("checked",r.selected),s(),z("fw-bold",t.isCurrentLesson(r)),J("for","lesson-presence-",e,""),s(),Ae("",r.entry.presenceCategory," material-icons pe-2"),s(),w(r.entry.presenceCategoryIcon),s(2),Mt(" ",U(7,14,r.entry.lessonPresence.LessonDateTimeFrom,"HH:mm"),"\u2013",U(8,17,r.entry.lessonPresence.LessonDateTimeTo,"HH:mm")," ",r.entry.lessonPresence.EventDesignation," ")}}function Ci(n,i){if(n&1){let r=M();c(0,"div",7)(1,"button",8),b("click",function(){P(r);let t=u();return S(t.activeModal.close())}),d(2),l(3,"translate"),p(),c(4,"button",9),b("click",function(){let t=P(r).bkdLet,o=u();return S(o.activeModal.close(t))}),d(5),l(6,"translate"),p()()}if(n&2){let r=i.bkdLet;s(2),x(" ",m(3,3,"presence-control.block-lesson.cancel")," "),s(2),g("disabled",r.length===0),s(),x(" ",m(6,5,"presence-control.block-lesson.save")," ")}}var Un=(()=>{let i=class i{constructor(e){this.activeModal=e,this.blockLessonOptions=[]}ngOnInit(){this.blockLessonOptions=this.buildLessonPresenceOptions()}getSelectedEntries(){return this.blockLessonOptions.filter(({selected:e})=>e).map(({entry:e})=>e)}isCurrentLesson(e){return wn(e.entry.lessonPresence.LessonDateTimeFrom,this.entry.lessonPresence.LessonDateTimeFrom)}buildLessonPresenceOptions(){return this.blockPresenceControlEntries.map(e=>({entry:e,selected:this.entry.confirmationState===e.confirmationState}))}};i.\u0275fac=function(t){return new(t||i)(_(ce))},i.\u0275cmp=L({type:i,selectors:[["bkd-presence-control-block-lesson-component"]],inputs:{entry:"entry",blockPresenceControlEntries:"blockPresenceControlEntries"},standalone:!0,features:[E],decls:7,vars:5,consts:[[1,"modal-body"],["class","form-check",4,"ngFor","ngForOf"],["class","modal-footer",4,"bkdLet"],[1,"form-check"],["type","checkbox",1,"form-check-input",3,"change","id","checked"],[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,"click","disabled"]],template:function(t,o){t&1&&(c(0,"div",0)(1,"p"),d(2),l(3,"translate"),p(),c(4,"form"),v(5,_i,9,20,"div",1),p()(),v(6,Ci,7,7,"div",2)),t&2&&(s(2),x(" ",m(3,3,"presence-control.block-lesson.text")," "),s(3),g("ngForOf",o.blockLessonOptions),s(),g("bkdLet",o.getSelectedEntries()))},dependencies:[se,ye,ve,be,R,ae,Ce,F,j],styles:[".checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important;display:block}.absent[_ngcontent-%COMP%]{color:#ea161f}.present[_ngcontent-%COMP%]{color:#3d8608}.unapproved[_ngcontent-%COMP%]{color:#ffa814}"]});let n=i;return n})();var vi=30;function gt(n){return`blockLesson${n.lessonPresence.Id}`}var Ze=(()=>{let i=class i{constructor(e,t,o,a){this.state=e,this.lessonPresencesService=t,this.loadingService=o,this.settings=a}getBlockLessonPresenceControlEntries(e){return O([this.state.lessons$.pipe(D(1)),this.loadChangeableLessonPresences(e),this.state.presenceTypes$.pipe(D(1)),this.state.absenceConfirmationStates$.pipe(D(1)),this.state.otherTeachersAbsences$.pipe(D(1))]).pipe(f(([t,o,a,h,C])=>this.filterBlockLessonPresences(e,o).map(k=>tn(t.find(N=>N.id===k.LessonRef.Id.toString()),k,a,h,C))))}filterBlockLessonPresences(e,t){return[...t].sort((o,a)=>o.LessonDateTimeFrom>a.LessonDateTimeFrom?1:-1).reduce((o,a)=>{let h=o[o.length-1];return this.isWithinBlockTime(a,h)?(o.push(a),o):o.find(C=>C.Id===e.lessonPresence.Id)?o:[a]},[])}isWithinBlockTime(e,t){return t?e.LessonDateTimeFrom.getTime()-t.LessonDateTimeTo.getTime()<=vi*60*1e3:!0}loadChangeableLessonPresences(e){return O([this.loadLessonPresences(e),this.state.presenceTypes$.pipe(D(1))]).pipe(f(([t,o])=>t.filter(a=>Zt(a,o.find(h=>h.Id===a.TypeRef.Id)||null,this.settings))))}loadLessonPresences(e){return this.loadingService.load(this.lessonPresencesService.getListByDateStudentClass(e.lessonPresence.LessonDateTimeFrom,e.lessonPresence.StudentRef.Id,e.lessonPresence.StudyClassRef.Id??void 0).pipe(f(t=>t.filter(o=>o.TeacherInformation===e.lessonPresence.TeacherInformation))),gt(e))}};i.\u0275fac=function(t){return new(t||i)(y(G),y(Ke),y(pe),y(H))},i.\u0275prov=A({token:i,factory:i.\u0275fac});let n=i;return n})();function yi(n,i){if(n&1&&(c(0,"div"),d(1),l(2,"date"),l(3,"date"),l(4,"addSpace"),p()),n&2){let r=i.$implicit;s(),kt(" ",U(2,5,r.LessonRef.From,"HH:mm"),"\u2013",U(3,8,r.LessonRef.To,"HH:mm")," ",r.LessonRef.EventDesignation,"",U(4,11,":",":")," ",r.Type," ")}}var Hn=(()=>{let i=class i{constructor(e){this.activeModal=e}};i.\u0275fac=function(t){return new(t||i)(_(ce))},i.\u0275cmp=L({type:i,selectors:[["bkd-presence-control-preceding-absence"]],inputs:{precedingAbsences:"precedingAbsences"},standalone:!0,features:[E],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(t,o){t&1&&(c(0,"div",0)(1,"p"),d(2),l(3,"translate"),p(),v(4,yi,5,14,"div",1),p(),c(5,"div",2)(6,"button",3),b("click",function(){return o.activeModal.dismiss()}),d(7),l(8,"translate"),p()()),t&2&&(s(2),x(" ",m(3,3,"presence-control.preceding-absence.text")," "),s(2),g("ngForOf",o.precedingAbsences),s(3),x(" ",m(8,5,"presence-control.preceding-absence.cancel")," "))},dependencies:[R,Ce,F,j,un]});let n=i;return n})();var Pi=n=>["student",n,"absences"],Si=n=>["/presence-control/student",n,"absences"];function xi(n,i){if(n&1&&(W(0,"bkd-avatar",9),l(1,"async")),n&2){let r=u();g("studentId",m(1,3,r.studentId$))("link",ie(5,Si,r.entry.lessonPresence.StudentRef.Id.toString()))("linkParams",r.profileReturnParams)}}function Ii(n,i){if(n&1&&(c(0,"span"),d(1),p()),n&2){let r=u(2);s(),w(r.entry.presenceType==null?null:r.entry.presenceType.Designation)}}function wi(n,i){if(n&1){let r=M();c(0,"button",10),b("click",function(){P(r);let t=u();return S(t.updatePresenceType(t.entry))}),v(1,Ii,2,1,"span",11),p()}if(n&2){let r=u();s(),g("ngIf",!(r.entry.presenceType!=null&&r.entry.presenceType.IsIncident))}}function Mi(n,i){n&1&&W(0,"bkd-spinner",16)}function ki(n,i){if(n&1){let r=M();c(0,"button",12),b("click",function(){P(r);let t=u();return S(t.updatePresenceType(t.entry))}),c(1,"div",13)(2,"i",14),d(3),p(),v(4,Mi,1,0,"bkd-spinner",15),p()()}if(n&2){let r=i.bkdLet,e=u();g("disabled",r),s(2),z("invisible",r),s(),w(e.entry.presenceCategoryIcon),s(),g("ngIf",r)}}function Oi(n,i){if(n&1){let r=M();c(0,"button",17),b("click",function(){P(r);let t=u();return S(t.showPrecedingAbsences(t.entry))}),c(1,"i",18),d(2,"info"),p()()}}function Ti(n,i){if(n&1&&(c(0,"span",19),d(1),p()),n&2){let r=u();s(),x(" ",r.entry.lessonPresence.StudyClassNumber," ")}}function $i(n,i){if(n&1){let r=M();c(0,"a",20),b("click",function(){P(r);let t=u();return S(t.updateIncident(t.entry))}),c(1,"i",14),d(2,"edit"),p(),c(3,"span"),d(4),l(5,"translate"),p()()}if(n&2){let r=u();s(4),w(m(5,1,(r.entry.presenceType==null?null:r.entry.presenceType.IsIncident)&&(r.entry.presenceType==null?null:r.entry.presenceType.Designation)||"presence-control.entry.incident"))}}var qn=(()=>{let i=class i{get classNames(){return[this.entry.presenceCategory,this.viewMode].join(" ")}constructor(e,t,o,a){this.toastService=e,this.translate=t,this.modalService=o,this.loadingService=a,this.hasUnconfirmedAbsences=!1,this.showClassName=!1,this.togglePresenceType=new Z,this.changeIncident=new Z,this.entry$=new Oe(1),this.studentId$=this.entry$.pipe(f(({lessonPresence:h})=>h.StudentRef.Id)),this.loading$=this.entry$.pipe(T(h=>this.loadingService.loading(gt(h))))}ngOnChanges(e){e.entry&&this.entry$.next(e.entry.currentValue)}get isListViewMode(){return this.viewMode===me.List}updatePresenceType(e){e.canChangePresenceType?this.togglePresenceType.emit(e):this.toastService.warning(this.translate.instant("presence-control.entry.update-warning"))}updateIncident(e){e.canChangeIncident&&this.changeIncident.emit(e)}showPrecedingAbsences(e){let t=this.modalService.open(Hn);t.componentInstance.precedingAbsences=e.precedingAbsences}};i.\u0275fac=function(t){return new(t||i)(_(Pe),_(Q),_(Ie),_(pe))},i.\u0275cmp=L({type:i,selectors:[["bkd-presence-control-entry"]],hostVars:2,hostBindings:function(t,o){t&2&&Pt(o.classNames)},inputs:{entry:"entry",hasUnconfirmedAbsences:"hasUnconfirmedAbsences",viewMode:"viewMode",showClassName:"showClassName",profileReturnParams:"profileReturnParams"},outputs:{togglePresenceType:"togglePresenceType",changeIncident:"changeIncident"},standalone:!0,features:[bt,E],decls:13,vars:16,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,"bkdLet"],["type","button","class","previously-absent d-flex btn btn-link",3,"click",4,"ngIf"],[1,"student-info",3,"routerLink","queryParams"],[1,"student-name","text-truncate"],["class","study-class text-truncate",4,"ngIf"],[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,"click","disabled"],[1,"position-relative"],[1,"material-icons"],["class","inline small",4,"ngIf"],[1,"inline","small"],["type","button",1,"previously-absent","d-flex","btn","btn-link",3,"click"],[1,"material-icons-outlined"],[1,"study-class","text-truncate"],[1,"incident","btn","btn-link",3,"click"]],template:function(t,o){t&1&&(v(0,xi,2,7,"bkd-avatar",0)(1,wi,2,1,"button",1)(2,ki,5,5,"button",2),l(3,"async"),v(4,Oi,3,0,"button",3),c(5,"a",4)(6,"span",5),d(7),p(),v(8,Ti,2,1,"span",6),c(9,"span",7),d(10),l(11,"translate"),p()(),v(12,$i,6,3,"a",8)),t&2&&(g("ngIf",!o.isListViewMode),s(),g("ngIf",o.entry.showDesignation),s(),g("bkdLet",m(3,10,o.loading$)),s(2),g("ngIf",(o.entry.precedingAbsences==null?null:o.entry.precedingAbsences.length)||!1),s(),g("routerLink",ie(14,Pi,o.entry.lessonPresence.StudentRef.Id))("queryParams",o.profileReturnParams),s(2),w(o.entry.lessonPresence.StudentFullName),s(),g("ngIf",o.isListViewMode&&o.showClassName),s(2),x(" ",o.hasUnconfirmedAbsences?m(11,12,"presence-control.entry.unconfirmed-absences"):""," "),s(2),g("ngIf",o.entry.canChangeIncident))},dependencies:[oe,fn,ae,xe,Ge,re,F,j],styles:['[_nghost-%COMP%]{padding:2rem 1rem;background-color:#fff;display:grid;grid-template-areas:"avatar status designation previously-absent" "avatar student-info student-info student-info" "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:#ea161f}.present[_nghost-%COMP%] .presence-category[_ngcontent-%COMP%]{color:#3d8608}.unapproved[_nghost-%COMP%] .presence-category[_ngcontent-%COMP%]{color:#ffa814}.presence-category[_ngcontent-%COMP%] bkd-spinner[_ngcontent-%COMP%]{color:#000;position:absolute;top:4px;left:5px}.designation[_ngcontent-%COMP%], .student-info[_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-info[_ngcontent-%COMP%]{grid-area:student-info;display:flex;flex-direction:column;text-decoration:none}.student-info[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{text-decoration:underline}.student-info[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child:hover{text-decoration-color:#ea161f}.unconfirmed-absences[_ngcontent-%COMP%]{color:#ea161f;font-size:.875rem;line-height:1}.study-class[_ngcontent-%COMP%]{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-info status incidentordesignation previously-absent";grid-template-columns:3fr min-content 4fr 3em;padding:.5rem 1rem}.list[_nghost-%COMP%] .status[_ngcontent-%COMP%]{justify-self:start}.list[_nghost-%COMP%] .student-name[_ngcontent-%COMP%]{line-height:1;margin-bottom:.5rem}.list[_nghost-%COMP%] .incident[_ngcontent-%COMP%], .list[_nghost-%COMP%] .designation[_ngcontent-%COMP%]{grid-area:incidentordesignation}.list[_nghost-%COMP%] .previously-absent[_ngcontent-%COMP%]{padding-right:0}@media (max-width: 750px){.list[_nghost-%COMP%]{grid-template-areas:"student-info student-info student-info 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%] .student-name[_ngcontent-%COMP%]{margin-top:.5rem}.list[_nghost-%COMP%] .previously-absent[_ngcontent-%COMP%]{align-self:start}}']});let n=i;return n})();var Li=(n,i)=>({"btn-link":n,"btn-danger":i}),Ei=n=>["groups",n],Di=n=>({returnparams:n});function Bi(n,i){if(n&1){let r=M();c(0,"div",22),b("click",function(){P(r);let t=u();return S(t.lessonDropdown==null?null:t.lessonDropdown.toggle())}),d(1),l(2,"date"),c(3,"span",23),d(4),l(5,"date"),p()()}if(n&2){let r=u();s(),x(" ",U(2,2,r.selectedLesson.LessonDateTimeFrom,"HH:mm"),"\u2013"),s(3),w(U(5,5,r.selectedLesson.LessonDateTimeTo,"HH:mm"))}}function ji(n,i){if(n&1){let r=M();c(0,"div",29),b("click",function(){let t=P(r).$implicit,o=u(2);return S(o.selectLessonChange.emit(t))}),c(1,"div",30)(2,"div"),d(3),l(4,"date"),l(5,"date"),p(),c(6,"div",26),d(7),p(),c(8,"div",26),d(9),p()()()}if(n&2){let r=i.$implicit,e=u(2);z("active",r.id===e.selectedLesson.id),s(3),wt(" ",U(4,6,r.LessonDateTimeFrom,"HH:mm"),"\u2013",U(5,9,r.LessonDateTimeTo,"HH:mm")," "),s(4),w(r.eventDesignations),s(2),w(r.studyClassNumbers)}}function Fi(n,i){if(n&1&&(c(0,"div",24)(1,"div",25)(2,"div",26),d(3),p(),c(4,"div",26),d(5),p()(),c(6,"div",27),v(7,ji,10,12,"div",28),p()()),n&2){let r=u();s(3),w(r.selectedLesson.eventDesignations),s(2),w(r.selectedLesson.studyClassNumbers),s(2),g("ngForOf",r.lessons)}}function Vi(n,i){if(n&1){let r=M();c(0,"bkd-caret",31),b("click",function(){P(r);let t=u();return S(t.lessonDropdown==null?null:t.lessonDropdown.toggle())}),p()}if(n&2){let r=u();g("expanded",(r.lessonDropdown==null?null:r.lessonDropdown.isOpen())||!1)}}function Ai(n,i){if(n&1&&(c(0,"a",32),l(1,"async"),l(2,"async"),l(3,"async"),c(4,"i",33),d(5,"groups"),p()()),n&2){let r=u();g("ngClass",Tt(9,Li,m(1,3,r.isGroupSelected$)===!1,m(2,5,r.isGroupSelected$)))("routerLink",ie(12,Ei,r.selectedLesson.id))("queryParams",ie(14,Di,m(3,7,r.state.queryParamsString$)))}}function Ri(n,i){if(n&1){let r=M();c(0,"button",34),b("click",function(){let t=P(r).$implicit,o=u();return S(o.viewModeChange.emit(t.viewMode))}),c(1,"i",33),d(2),p()()}if(n&2){let r=i.$implicit,e=u();z("btn-outline-secondary",r.viewMode===e.viewMode)("btn-link",r.viewMode!==e.viewMode)("active",r.viewMode===e.viewMode),g("disabled",!e.selectedLesson),s(2),w(r.icon)}}var Ni=Le.prototype._positionMenu;Le.prototype._positionMenu=function(...i){let r=Ni.apply(this,i);if(this._anchor.nativeElement.id==="lesson-dropdown"){let e=this._bodyContainer||this._menu.nativeElement,t=e.style.transform?.match(/translate\(([0-9-.]+)px, ([0-9-.]+)px\)/);t&&parseFloat(t[1])<0&&(e.style.transform=`translate(0px, ${t[2]}px)`)}return r};var Wn=(()=>{let i=class i{constructor(e,t,o){this.state=e,this.groupService=t,this.presentCount=null,this.absentCount=null,this.unapprovedCount=null,this.absentPrecedingCount=null,this.search="",this.selectLessonChange=new Z,this.selectDateChange=new Z,this.searchChange=new Z,this.viewModeChange=new Z,this.viewModeOptions=[{viewMode:me.List,icon:"list"},{viewMode:me.Grid,icon:"view_module"}],this.isGroupSelected$=this.groupService.group$.pipe(f(zt)),o.popperOptions=a=>ge(ue({},a),{modifiers:a.modifiers?.map(h=>(h.name==="offset"&&(h.options={offset:({placement:C,reference:k,popper:N})=>C==="bottom-start"?[(window.innerWidth-N.width)/2-k.x,0]:[]}),h))})}};i.\u0275fac=function(t){return new(t||i)(_(G),_(de),_(Ue))},i.\u0275cmp=L({type:i,selectors:[["bkd-presence-control-header"]],viewQuery:function(t,o){if(t&1&&St(Le,5),t&2){let a;xt(a=It())&&(o.lessonDropdown=a.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"},standalone:!0,features:[he([Ue,{provide:Rt,useClass:Ut},{provide:Nt,useClass:Sn}]),E],decls:40,vars:20,consts:[["d","ngbDatepicker"],[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,"ngModelChange","ngModel"],["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,"valueChange","value","disabled","placeholder","label"],[1,"group-and-views","d-flex","align-items-center"],["type","button","class","group btn me-2 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,"click","expanded"],["type","button",1,"group","btn","me-2","me-sm-4",3,"ngClass","routerLink","queryParams"],[1,"material-icons","align-middle"],["type","button",1,"view","btn","btn-primary","btn-icon",3,"click","disabled"]],template:function(t,o){if(t&1){let a=M();c(0,"div",1)(1,"div",2)(2,"button",3),b("click",function(){P(a);let C=ne(6);return S(C.toggle())}),c(3,"i",4),d(4,"calendar_today"),p()(),c(5,"input",5,0),b("ngModelChange",function(C){return P(a),S(o.selectDateChange.emit(C))}),p()(),v(7,Bi,6,8,"div",6)(8,Fi,8,3,"div",7)(9,Vi,1,1,"bkd-caret",8),p(),c(10,"div",9)(11,"div",10)(12,"i",4),d(13,"check_circle"),p(),c(14,"span",11),d(15),p()(),c(16,"div",12)(17,"i",4),d(18,"cancel"),p(),c(19,"span",11),d(20),p()(),c(21,"div",13)(22,"i",4),d(23,"help"),p(),c(24,"span",11),d(25),p()(),c(26,"div",14)(27,"i",15),d(28,"info"),p(),c(29,"span",11),d(30),p()()(),c(31,"div",16)(32,"bkd-resettable-input",17),l(33,"translate"),l(34,"translate"),b("valueChange",function(C){return P(a),S(o.searchChange.emit(C))}),p(),c(35,"div",18),v(36,Ai,6,16,"a",19),l(37,"async"),c(38,"div",20),v(39,Ri,3,8,"button",21),p()()()}t&2&&(s(5),g("ngModel",o.selectDate),s(2),g("ngIf",o.selectedLesson),s(),g("ngIf",o.selectedLesson),s(),g("ngIf",o.lessons.length>0),s(6),w(o.presentCount!==null?o.presentCount:"?"),s(5),w(o.absentCount!==null?o.absentCount:"?"),s(5),w(o.unapprovedCount!==null?o.unapprovedCount:"?"),s(5),w(o.absentPrecedingCount!==null?o.absentPrecedingCount:"?"),s(2),g("value",o.search)("disabled",!o.selectedLesson)("placeholder",m(33,14,"presence-control.header.search-by-name"))("label",m(34,16,"presence-control.header.search")),s(4),g("ngIf",m(37,18,o.selectedLesson&&o.state.groupsAvailability$)),s(3),g("ngForOf",o.viewModeOptions))},dependencies:[Gt,se,Ft,Vt,At,oe,Le,Wt,qt,R,Ht,cn,xn,Dt,Ge,re,Ce,F,j],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:#ea161f}.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}}']});let n=i;return n})();function Gi(n,i){if(n&1){let r=M();c(0,"div",5)(1,"input",6),b("change",function(){let t=P(r).$implicit,o=u();return S(o.onSelectionChange(t))}),p(),c(2,"label",7),d(3),p()()}if(n&2){let r=i.$implicit,e=i.index,t=u();s(),J("id","incident-",e,""),g("checked",r.id===t.selected.id)("value",r.id),s(),J("for","incident-",e,""),s(),x(" ",r.label," ")}}var Qn=(()=>{let i=class i{constructor(e,t){this.activeModal=e,this.translate=t,this.incidentOptions=[]}ngOnInit(){let e=this.createIncidentOption();this.incidentOptions=this.incidentTypes.map(t=>this.createIncidentOption(t)),this.incidentOptions.unshift(e),this.selected=this.incidentOptions.find(t=>t.id===this.incident?.Id)||e}createIncidentOption(e){return{id:e?e.Id:null,label:e?e.Designation:this.translate.instant("presence-control.incident.no-incident")}}onSelectionChange(e){this.selected=e}getSelectedIncident(){return this.incidentTypes.find(e=>e.Id===this.selected?.id)||null}};i.\u0275fac=function(t){return new(t||i)(_(ce),_(Q))},i.\u0275cmp=L({type:i,selectors:[["bkd-presence-control-incident"]],inputs:{incident:"incident",incidentTypes:"incidentTypes"},standalone:!0,features:[E],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,"change","id","checked","value"],[1,"form-check-label",3,"for"]],template:function(t,o){t&1&&(c(0,"div",0)(1,"p"),d(2),l(3,"translate"),p(),c(4,"form"),v(5,Gi,4,7,"div",1),p()(),c(6,"div",2)(7,"button",3),b("click",function(){return o.activeModal.dismiss()}),d(8),l(9,"translate"),p(),c(10,"button",4),b("click",function(){return o.activeModal.close(o.getSelectedIncident())}),d(11),l(12,"translate"),p()()),t&2&&(s(2),x(" ",m(3,4,"presence-control.incident.text")," "),s(3),g("ngForOf",o.incidentOptions),s(3),x(" ",m(9,6,"presence-control.incident.cancel")," "),s(3),x(" ",m(12,8,"presence-control.incident.save")," "))},dependencies:[se,ye,ve,be,R,F,j],styles:["form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{border-bottom:1px solid #dee2e6;padding-bottom:1rem;margin-bottom:1rem}"]});let n=i;return n})();var Ui=20,Hi=100,je=function(n){return n.AddUpdateAction="ADD",n.RemoveUpdateAction="REMOVE",n}(je||{}),et=(()=>{let i=class i{constructor(e,t,o,a,h){this.toastService=e,this.translate=t,this.restService=o,this.presenceTypesService=a,this.settings=h,this.destroy$=new $,this.action$=new $,this.pendingUpdates$=this.action$.pipe(Ct(this.reduceUpdates.bind(this),[]),vt()),this.revertUpdates$=new $,this.performUpdates$=this.pendingUpdates$.pipe(nt(Hi),$e(qe(ct)),_t(this.performUpdates.bind(this))),this.stateUpdates$=Y(this.pendingUpdates$,this.revertUpdates$).pipe(nt(Ui),$e(qe(ct))),this.performUpdates$.pipe(q(this.destroy$)).subscribe()}ngOnDestroy(){this.destroy$.next()}updatePresenceType(e,t=null){this.dispatchAddUpdate(e.lessonPresence,t)}performUpdates(e){let t=this.groupUpdates(e);return O(Object.keys(t).reduce((o,a)=>{let h=t[a];return Object.keys(h).forEach(C=>{let k=h[C];o.push(this.performUpdateForGroup(k))}),o},[])).pipe(f(()=>t))}performUpdateForGroup(e){return e.forEach(t=>this.dispatchRemoveUpdate(t.presence)),this.performLessonPresencesUpdatesByIds(e[0].presence.LessonRef.Id,e.map(t=>t.presence.StudentRef.Id),e[0].newPresenceTypeId).pipe(ht(t=>this.revertUpdatesAfterError(e,t)))}performLessonPresencesUpdatesByIds(e,t,o=null){return o?(o?this.presenceTypesService.getPresenceType(o):X(null)).pipe(T(h=>this.restService.editLessonPresences([e],t,h?.Id,We(h,this.settings)||void 0,{context:new ot().set(at,{disableErrorHandling:!0})}))):this.restService.removeLessonPresences([e],t,{context:new ot().set(at,{disableErrorHandling:!0})})}revertUpdatesAfterError(e,t){return console.error("Bulk-update of lesson presences failed"),console.error(t),this.toastService.error(this.translate.instant("shared.lesson-presences-update.error")),this.revertUpdates$.next(e.map(o=>ge(ue({},o),{newPresenceTypeId:o.presence.TypeRef.Id}))),X(void 0)}groupUpdates(e){return e.reduce((t,o)=>{let a=String(o.newPresenceTypeId&&o.newPresenceTypeId);return t[a]||(t[a]={}),Array.isArray(t[a][o.presence.LessonRef.Id])||(t[a][o.presence.LessonRef.Id]=[]),t[a][o.presence.LessonRef.Id].push(o),t},{})}reduceUpdates(e,t){switch(t.type){case je.AddUpdateAction:{let{presence:o,newPresenceTypeId:a}=t.payload,h=e.findIndex(Kn(o));return h===-1?[...e,{presence:o,newPresenceTypeId:a}]:[...e.slice(0,h),{presence:e[h].presence,newPresenceTypeId:a},...e.slice(h+1)]}case je.RemoveUpdateAction:return e.filter(qe(Kn(t.payload)));default:return e}}dispatchAddUpdate(e,t){this.action$.next({type:je.AddUpdateAction,payload:{presence:e,newPresenceTypeId:t}})}dispatchRemoveUpdate(e){this.action$.next({type:je.RemoveUpdateAction,payload:e})}};i.\u0275fac=function(t){return new(t||i)(y(Pe),y(Q),y(sn),y(Se),y(H))},i.\u0275prov=A({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})();function Kn(n){return i=>i.presence.LessonRef.Id===n.LessonRef.Id&&i.presence.StudentRef.Id===n.StudentRef.Id}var qi=(n,i,r)=>({lesson:n,lessons:i,entries:r}),Wi=n=>({returnparams:n});function Qi(n,i){if(n&1){let r=M();c(0,"bkd-presence-control-entry",7),l(1,"async"),l(2,"async"),l(3,"async"),l(4,"async"),b("togglePresenceType",function(t){P(r);let o=u(5);return S(o.togglePresenceType(t))})("changeIncident",function(t){P(r);let o=u(5);return S(o.changeIncident(t))}),p()}if(n&2){let r,e=i.$implicit,t=u(5);g("entry",e)("hasUnconfirmedAbsences",m(1,5,t.state.hasUnconfirmedAbsences(e)))("viewMode",m(2,7,t.state.viewMode$))("showClassName",((r=m(3,9,t.state.studyClassCount$))!==null&&r!==void 0?r:0)>1)("profileReturnParams",ie(13,Wi,m(4,11,t.state.queryParamsString$)))}}function Ki(n,i){if(n&1&&(ee(0),c(1,"div"),l(2,"async"),v(3,Qi,5,15,"bkd-presence-control-entry",6),p(),te()),n&2){let r=u(3).bkdLet,e=u();s(),Ae("default-entries entries view-mode-",m(2,4,e.state.viewMode$),""),s(2),g("ngForOf",r.entries)}}function zi(n,i){n&1&&(c(0,"p",8),d(1),l(2,"translate"),p()),n&2&&(s(),x(" ",m(2,1,"presence-control.no-lesson-presences")," "))}function Ji(n,i){if(n&1&&(ee(0),v(1,Ki,4,6,"ng-container",4)(2,zi,3,3,"ng-template",null,2,_e),te()),n&2){let r=ne(3),e=u(2).bkdLet;s(),g("ngIf",(e.entries==null?null:e.entries.length)>0)("ngIfElse",r)}}function Xi(n,i){n&1&&(c(0,"p",8),d(1),l(2,"translate"),p()),n&2&&(s(),w(m(2,1,"presence-control.no-lessons")))}function Yi(n,i){if(n&1){let r=M();ee(0),c(1,"bkd-presence-control-header",5),l(2,"async"),l(3,"async"),l(4,"async"),l(5,"async"),l(6,"async"),l(7,"async"),l(8,"async"),b("searchChange",function(t){P(r);let o=u(2);return S(o.search$.next(t))})("viewModeChange",function(t){P(r);let o=u(2);return S(o.state.setViewMode(t))})("selectDateChange",function(t){P(r);let o=u(2);return S(o.state.setDate(t))})("selectLessonChange",function(t){P(r);let o=u(2);return S(o.state.setLessonId(t.id))}),p(),v(9,Ji,4,2,"ng-container",4)(10,Xi,3,3,"ng-template",null,1,_e),te()}if(n&2){let r=ne(11),e=u().bkdLet,t=u();s(),g("selectedLesson",e.lesson)("lessons",e.lessons)("presentCount",m(2,11,t.state.presentCount$))("absentCount",m(3,13,t.state.absentCount$))("unapprovedCount",m(4,15,t.state.unapprovedCount$))("absentPrecedingCount",m(5,17,t.state.absentPrecedingCount$))("viewMode",m(6,19,t.state.viewMode$))("selectDate",m(7,21,t.state.selectedDate$))("search",m(8,23,t.search$)),s(8),g("ngIf",e.lesson)("ngIfElse",r)}}function Zi(n,i){n&1&&W(0,"bkd-spinner")}function eo(n,i){if(n&1&&(ee(0),v(1,Yi,12,25,"ng-container",4),l(2,"async"),v(3,Zi,1,0,"ng-template",null,0,_e),te()),n&2){let r=ne(4),e=u();s(),g("ngIf",m(2,2,e.state.loading$)===!1)("ngIfElse",r)}}var Jn=(()=>{let i=class i{constructor(e,t,o,a,h,C,k){this.state=e,this.blockLessons=t,this.lessonPresencesUpdateService=o,this.presenceTypesService=a,this.modalService=h,this.scrollPosition=C,this.route=k,this.search$=new fe(""),this.entries$=O([this.state.presenceControlEntriesByGroup$,this.search$]).pipe(f(K(Pn)),B(1)),this.destroy$=new $}ngOnInit(){this.route.queryParams.pipe(q(this.destroy$)).subscribe(this.restoreStateFromParams.bind(this))}ngAfterViewInit(){this.scrollPosition.restore()}ngOnDestroy(){this.destroy$.next()}doTogglePresenceType(e){e.forEach(t=>this.state.getNextPresenceType(t).subscribe(o=>this.lessonPresencesUpdateService.updatePresenceType(t,o?o.Id:null)))}togglePresenceType(e){this.blockLessons.getBlockLessonPresenceControlEntries(e).pipe(D(1)).subscribe(t=>{if(t.length===1){let o=t[0];this.doTogglePresenceType([o])}else{let o=this.modalService.open(Un);o.componentInstance.entry=e,o.componentInstance.blockPresenceControlEntries=t,o.result.then(a=>{a&&this.doTogglePresenceType(a)},()=>{})}})}updateIncident(e,t){this.lessonPresencesUpdateService.updatePresenceType(e,t)}changeIncident(e){this.presenceTypesService.incidentTypes$.subscribe(t=>{let o=this.modalService.open(Qn);o.componentInstance.incident=t.find(a=>a.Id===e.presenceType?.Id)||null,o.componentInstance.incidentTypes=t,o.result.then(a=>{this.updateIncident(e,a?.Id||null)},()=>{})})}restoreStateFromParams(e){e.date&&this.state.setDate(jt(e.date));let t=String(e.lesson);t&&this.state.setLessonId(t),e.viewMode&&An.includes(e.viewMode)&&this.state.setViewMode(e.viewMode)}};i.\u0275fac=function(t){return new(t||i)(_(G),_(Ze),_(et),_(Se),_(Ie),_(In),_(Ne))},i.\u0275cmp=L({type:i,selectors:[["bkd-presence-control-list"]],standalone:!0,features:[E],decls:7,vars:14,consts:[["loading",""],["noLessons",""],["noLessonPresences",""],[4,"bkdLet"],[4,"ngIf","ngIfElse"],[3,"searchChange","viewModeChange","selectDateChange","selectLessonChange","selectedLesson","lessons","presentCount","absentCount","unapprovedCount","absentPrecedingCount","viewMode","selectDate","search"],[3,"entry","hasUnconfirmedAbsences","viewMode","showClassName","profileReturnParams","togglePresenceType","changeIncident",4,"ngFor","ngForOf"],[3,"togglePresenceType","changeIncident","entry","hasUnconfirmedAbsences","viewMode","showClassName","profileReturnParams"],[1,"mt-3"]],template:function(t,o){t&1&&(c(0,"h1"),d(1),l(2,"translate"),p(),v(3,eo,5,4,"ng-container",3),l(4,"async"),l(5,"async"),l(6,"async")),t&2&&(s(),w(m(2,2,"presence-control.title")),s(2),g("bkdLet",$t(10,qi,m(4,4,o.state.selectedLesson$),m(5,6,o.state.lessons$),m(6,8,o.entries$))))},dependencies:[ae,oe,Wn,R,qn,xe,re,F,j],styles:["bkd-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});let n=i;return n})();var Xn=(()=>{let i=class i{constructor(e,t){this.state=e,this.lessonPresencesUpdateService=t,this.destroy$=new $}ngOnInit(){this.lessonPresencesUpdateService.stateUpdates$.pipe(q(this.destroy$)).subscribe(e=>this.state.updateLessonPresencesTypes(e))}ngOnDestroy(){this.destroy$.next()}};i.\u0275fac=function(t){return new(t||i)(_(G),_(et))},i.\u0275cmp=L({type:i,selectors:[["bkd-presence-control"]],standalone:!0,features:[he([G,Ze,de,on,{provide:Jt,useExisting:G}]),E],decls:1,vars:0,template:function(t,o){t&1&&W(0,"router-outlet")},dependencies:[Bt],changeDetection:0});let n=i;return n})();var Qs=[{path:"",component:Xn,children:[{path:"",component:Jn,data:{restoreScrollPositionFrom:["/presence-control/student/:id/addresses","/presence-control/student/:id/absences","/presence-control/student/:id/grades"]}},_n,{path:"groups/:id",component:Gn}]}];export{Qs as PRESENCE_CONTROL_ROUTES}; diff --git a/public/apps/webapp-schulverwaltung/chunk-AJF2ECIH.js b/public/apps/webapp-schulverwaltung/chunk-AJF2ECIH.js new file mode 100644 index 00000000..136cdcae --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-AJF2ECIH.js @@ -0,0 +1 @@ +import{a as Le,b as Ne,c as Ve,d as Oe,e as je}from"./chunk-KLXFX6SJ.js";import"./chunk-HHGALFFJ.js";import{b as De}from"./chunk-MVTCHCDH.js";import"./chunk-WN7VWSJW.js";import"./chunk-X2BR3YJG.js";import{b as Fe,d as Re}from"./chunk-LO5XSJLW.js";import"./chunk-RWNJF4OZ.js";import{a as Y}from"./chunk-Q5U6YZUT.js";import{a as $e}from"./chunk-N6FFLIGM.js";import{a as z,c as Ae}from"./chunk-33NXTXD7.js";import{a as Ie,b as ke,c as Pe,d as Me,e as we,u as Be}from"./chunk-FTRAQKUW.js";import{a as Ee}from"./chunk-3AROKYRB.js";import{$ as h,$a as f,$c as ue,A as Q,Bb as d,Cb as c,Db as P,E as W,Fb as G,Ga as m,Gd as Te,Ha as re,Hd as $,I as X,Ia as l,Id as A,Ja as oe,L as O,N as ee,O as w,Sa as p,Sb as H,Ta as a,Tb as T,Ua as _,Va as R,W as te,Wa as j,Wb as B,Xb as U,Ya as k,Z as ie,Zc as _e,_a as I,ad as ve,bd as ye,cb as E,f as N,fd as ge,g as q,ga as ne,ha as S,ia as C,ib as g,jb as s,jd as he,k as V,kb as y,kd as be,l as J,lb as u,m as M,mb as ae,nb as pe,qc as ce,rc as me,rd as xe,sb as le,sc as fe,sd as Se,tb as b,td as Ce,ua as n,va as x,vb as de,w as K,wb as se}from"./chunk-T7QWSMKM.js";var Z="no_access",D=(()=>{let t=class t{constructor(r){this.profileService=r,this.reset$=new N(void 0),this.rawProfile$=this.reset$.pipe(w(()=>this.loadProfile()),O(1)),this.profile$=this.rawProfile$.pipe(M(o=>o===Z?null:o)),this.noAccess$=this.rawProfile$.pipe(M(o=>o===Z)),this.loading$=this.profileService.loading$}reset(){this.reset$.next()}loadProfile(){return this.profileService.getMyProfile().pipe(Q(r=>r.status===403?V(Z):J(()=>r)))}};t.\u0275fac=function(o){return new(o||t)(ie(Le))},t.\u0275prov=te({token:t,factory:t.\u0275fac});let e=t;return e})();var Xe=(e,t)=>({formGroup:e,student:t});function et(e,t){if(e&1&&(p(0,"div"),s(1),a()),e&2){let i=f(2).bkdLet;n(),u(" ",i.student.AddressLine2," ")}}function tt(e,t){if(e&1&&(p(0,"div",21),s(1),d(2,"translate"),a()),e&2){let i=t.$implicit;n(),u(" ",P(2,1,"global.validation-errors."+i.error,i.params)," ")}}function it(e,t){if(e&1&&(p(0,"div",22),s(1),d(2,"translate"),a()),e&2){let i=t.$implicit;n(),u(" ",P(2,1,"global.validation-errors."+i.error,i.params)," ")}}function nt(e,t){e&1&&(p(0,"div",23)(1,"span",24),s(2,"Loading..."),a()())}function rt(e,t){if(e&1){let i=k();p(0,"form",3),I("ngSubmit",function(){S(i);let o=f(2);return C(o.onSubmit())}),p(1,"div",4)(2,"p"),s(3),d(4,"translate"),a(),p(5,"address",5)(6,"div"),s(7),a(),m(8,et,2,1,"div",6),p(9,"div"),s(10),a()()(),m(11,tt,3,4,"div",7),d(12,"async"),p(13,"div",4)(14,"label",8),s(15),d(16,"translate"),a(),_(17,"input",9),a(),p(18,"div",4)(19,"label",10),s(20),d(21,"translate"),a(),_(22,"input",11),p(23,"small",12),s(24),d(25,"translate"),a()(),p(26,"div",4)(27,"label",13),s(28),d(29,"translate"),a(),_(30,"input",14),d(31,"async"),m(32,it,3,4,"div",15),d(33,"async"),p(34,"small",16),s(35),d(36,"translate"),a()(),p(37,"div",17)(38,"button",18),d(39,"async"),I("click",function(){S(i);let o=f(2);return C(o.cancel())}),s(40),d(41,"translate"),a(),p(42,"button",19),d(43,"async"),s(44),d(45,"translate"),m(46,nt,3,0,"div",20),d(47,"async"),a()()()}if(e&2){let i,r=f().bkdLet,o=f();l("formGroup",r.formGroup),n(3),y(c(4,20,"my-profile.edit.address-changes-remark")),n(4),y(r.student.AddressLine1),n(),l("ngIf",r.student.AddressLine2),n(2),ae("",r.student.Zip||""," ",r.student.Location,""),n(),l("ngForOf",c(12,22,o.formErrors$)),n(4),u(" ",c(16,24,"my-profile.edit.fields.phone-private")," "),n(5),u(" ",c(21,26,"my-profile.edit.fields.phone-mobile")," "),n(4),y(c(25,28,"my-profile.edit.fields.phone-mobile-hint")),n(4),u(" ",c(29,30,"my-profile.edit.fields.email2")," "),n(2),oe("is-invalid",((i=(i=c(31,32,o.email2Errors$))==null?null:i.length)!==null&&i!==void 0?i:0)>0),n(2),l("ngForOf",c(33,34,o.email2Errors$)),n(3),y(c(36,36,"my-profile.edit.fields.email2-hint")),n(3),l("disabled",c(39,38,o.saving$)),n(2),u(" ",c(41,40,"my-profile.edit.cancel")," "),n(2),l("disabled",c(43,42,o.saving$)),n(2),u(" ",c(45,44,"my-profile.edit.save")," "),n(2),l("ngIf",c(47,46,o.saving$))}}function ot(e,t){if(e&1&&(p(0,"div",1)(1,"h1"),s(2),d(3,"translate"),a(),m(4,rt,48,48,"form",2),a()),e&2){let i=t.bkdLet;n(2),y(c(3,2,"my-profile.edit.title")),n(2),l("ngIf",i.formGroup)}}var Ue=(()=>{let t=class t{constructor(r,o,v,L,Je,Ke){this.fb=r,this.router=o,this.toastService=v,this.translate=L,this.profileService=Je,this.personsService=Ke,this.student$=this.profileService.profile$.pipe(K(Be),M(({student:Qe})=>Qe)),this.formGroup$=this.student$.pipe(M(this.createFormGroup.bind(this)),O(1)),this.saving$=new N(!1),this.submitted$=new N(!1),this.formErrors$=Y(this.formGroup$,this.submitted$),this.email2Errors$=Y(this.formGroup$,this.submitted$,"email2")}cancel(){this.navigateBack()}onSubmit(){this.submitted$.next(!0),this.formGroup$.pipe(W(1)).subscribe(r=>{if(r.valid){let{phonePrivate:o,phoneMobile:v,email2:L}=r.value;this.save(o?.trim()||null,v?.trim()||null,L||null)}})}createFormGroup(r){return this.fb.group({phonePrivate:[r.PhonePrivate],phoneMobile:[r.PhoneMobile],email2:[r.Email2,ue.email]})}save(r,o,v){this.saving$.next(!0),this.student$.pipe(W(1),w(L=>this.personsService.update(L.Id,r,o,v)),X(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.profileService.reset(),this.toastService.success(this.translate.instant("my-profile.edit.save-success")),this.navigateBack()}navigateBack(){this.router.navigate(["/my-profile"])}};t.\u0275fac=function(o){return new(o||t)(x(xe),x(me),x(Ee),x(Te),x(D),x(De))},t.\u0275cmp=h({type:t,selectors:[["bkd-my-profile-edit"]],standalone:!0,features:[b],decls:3,vars:8,consts:[["class","bkd-container bkd-container-limited",4,"bkdLet"],[1,"bkd-container","bkd-container-limited"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"ngSubmit","formGroup"],[1,"mb-3"],[1,"text-muted"],[4,"ngIf"],["class","alert alert-danger",4,"ngFor","ngForOf"],["id","my-profile-phone-private",1,"form-label"],["id","my-profile-phone-private","formControlName","phonePrivate","type","tel",1,"form-control"],["id","my-profile-phone-mobile",1,"form-label"],["id","my-profile-phone-mobile","formControlName","phoneMobile","type","tel","aria-describedby","my-profile-phone-mobile-hint",1,"form-control"],["id","my-profile-phone-mobile-hint",1,"form-text"],["for","my-profile-email2",1,"form-label"],["id","my-profile-email2","formControlName","email2","type","email","aria-describedby","my-profile-email2-hint",1,"form-control"],["class","invalid-feedback",4,"ngFor","ngForOf"],["id","my-profile-email2-hint",1,"form-text"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-secondary",3,"click","disabled"],["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"],[1,"invalid-feedback"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(o,v){o&1&&(m(0,ot,5,4,"div",0),d(1,"async"),d(2,"async")),o&2&&l("bkdLet",se(5,Xe,c(1,1,v.formGroup$),c(2,3,v.student$)))},dependencies:[z,T,Se,ge,_e,ve,ye,Ce,he,be,H,B,A,$],changeDetection:0});let e=t;return e})();var ze=(()=>{let t=class t{constructor(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=h({type:t,selectors:[["bkd-my-profile-address"]],inputs:{address:"address"},standalone:!0,features:[b],decls:2,vars:1,template:function(o,v){o&1&&(p(0,"address"),s(1),a()),o&2&&(n(),y(v.address))},styles:["[_nghost-%COMP%]{padding:1rem}address[_ngcontent-%COMP%]{white-space:pre-wrap}"],changeDetection:0});let e=t;return e})();var We=(()=>{let t=class t{constructor(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=h({type:t,selectors:[["bkd-my-profile-entry"]],inputs:{label:"label",value:"value"},standalone:!0,features:[b],decls:6,vars:4,consts:[[1,"row"],[1,"col-md-6"]],template:function(o,v){o&1&&(p(0,"dl",0)(1,"dt",1),s(2),d(3,"translate"),a(),p(4,"dd",1),s(5),a()()),o&2&&(n(2),y(c(3,2,v.label)),n(3),y(v.value))},dependencies:[A,$],styles:["dl[_ngcontent-%COMP%]{padding:0 1rem}dt[_ngcontent-%COMP%]{font-weight:400;color:#00000080}"],changeDetection:0});let e=t;return e})();function at(e,t){if(e&1&&(p(0,"span"),s(1),a()),e&2){let i=f(2);n(),u("(",i.student.Gender,")")}}function pt(e,t){if(e&1&&(p(0,"div",2)(1,"div",3),_(2,"bkd-avatar",4),p(3,"div",5),s(4),m(5,at,2,1,"span",6),p(6,"div",7),s(7),d(8,"date"),a()()(),_(9,"bkd-reports-link",8),d(10,"async"),a()),e&2){let i=f();n(2),l("studentId",i.student.Id),n(2),pe(" ",i.student.LastName," ",i.student.FirstName," ",i.student.MiddleName," "),n(),l("ngIf",i.student.Gender),n(2),y(P(8,7,i.student.Birthdate,"dd.MM.yyyy")),n(2),l("reports",c(10,10,i.reports$))}}function lt(e,t){if(e&1&&(p(0,"div",9),s(1),a()),e&2){let i=f();n(),y(i.student.Email)}}var Ye=(()=>{let t=class t{constructor(r){this.reportsService=r,this.studentId$=new q(1),this.reports$=this.studentId$.pipe(w(o=>o?this.reportsService.getPersonMasterDataReports(o):V([])),ee([]))}ngOnChanges(r){r.student&&this.studentId$.next(r.student.currentValue?.Id||null)}};t.\u0275fac=function(o){return new(o||t)(x(Re))},t.\u0275cmp=h({type:t,selectors:[["bkd-my-profile-header"]],inputs:{student:"student"},standalone:!0,features:[ne,b],decls:2,vars:2,consts:[["class","avatar-person",4,"ngIf"],["class","email",4,"ngIf"],[1,"avatar-person"],[1,"d-flex"],[1,"me-3","avatar","large",3,"studentId"],[1,"person"],[4,"ngIf"],[1,"birthdate"],[3,"reports"],[1,"email"]],template:function(o,v){o&1&&m(0,pt,11,12,"div",0)(1,lt,2,1,"div",1),o&2&&(l("ngIf",v.student),n(),l("ngIf",v.student))},dependencies:[T,je,$e,B,U],styles:[".avatar-person[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding-left:1rem 1rem 1rem 0}.person[_ngcontent-%COMP%]{align-self:center}.email[_ngcontent-%COMP%]{padding:1rem 1rem 0 0}.report[_ngcontent-%COMP%]{align-self:flex-start;line-height:1}"],changeDetection:0});let e=t;return e})();var dt=e=>({profile:e});function st(e,t){if(e&1&&_(0,"bkd-my-profile-entry",27),e&2){let i=f(3).bkdLet;E("value",i.profile.student.SocialSecurityNumber)}}function ct(e,t){if(e&1&&_(0,"bkd-my-profile-entry",28),e&2){let i=f(3).bkdLet;E("value",i.profile.student.HomeTown||i.profile.student.Nationality)}}function mt(e,t){if(e&1&&_(0,"bkd-my-profile-entry",29),e&2){let i=f(3).bkdLet;E("value",i.profile.student.NativeLanguage)}}function ft(e,t){if(e&1&&_(0,"bkd-my-profile-entry",30),e&2){let i=f(3).bkdLet;E("value",i.profile.stayPermitValue)}}function _t(e,t){if(e&1&&(_(0,"bkd-my-profile-entry",31),d(1,"date")),e&2){let i=f(3).bkdLet;E("value",P(1,1,i.profile.student.StayPermitExpiry,"mediumDate"))}}function ut(e,t){if(e&1&&(p(0,"div",32)(1,"a",33),d(2,"translate"),p(3,"i",34),s(4,"edit"),a()(),_(5,"bkd-student-dossier-address",35),a()),e&2){let i=f(3).bkdLet;n(),re("aria-label",c(2,2,"my-profile.edit.title")),n(4),l("student",i.profile.student)}}function vt(e,t){if(e&1&&_(0,"bkd-my-profile-address",36),e&2){let i=f(4).bkdLet;l("address",i.profile.student.CorrespondenceAddress)}}function yt(e,t){if(e&1){let i=k();p(0,"div",20,3)(2,"div",21)(3,"bkd-student-dossier-entry-header",22),I("click",function(){S(i);let o=g(1);return C(o.toggle())}),s(4),d(5,"translate"),a()(),p(6,"div",23)(7,"div",24),m(8,vt,1,1,"ng-template"),a()()()}if(e&2){let i=g(1);n(3),l("opened",!i.collapsed),n(),u(" ",c(5,2,"shared.profile.correspondence-address")," ")}}function gt(e,t){if(e&1&&_(0,"bkd-my-profile-address",36),e&2){let i=f(4).bkdLet;l("address",i.profile.student.BillingAddress)}}function ht(e,t){if(e&1){let i=k();p(0,"div",20,4)(2,"div",21)(3,"bkd-student-dossier-entry-header",22),I("click",function(){S(i);let o=g(1);return C(o.toggle())}),s(4),d(5,"translate"),a()(),p(6,"div",23)(7,"div",24),m(8,gt,1,1,"ng-template"),a()()()}if(e&2){let i=g(1);n(3),l("opened",!i.collapsed),n(),u(" ",c(5,2,"shared.profile.billing-address")," ")}}function bt(e,t){if(e&1&&_(0,"bkd-student-dossier-legal-representative",38),e&2){let i=t.$implicit;l("person",i)}}function xt(e,t){if(e&1&&m(0,bt,1,1,"bkd-student-dossier-legal-representative",37),e&2){let i=f(4).bkdLet;l("ngForOf",i.profile.legalRepresentativePersons)}}function St(e,t){if(e&1){let i=k();p(0,"div",20,5)(2,"div",21)(3,"bkd-student-dossier-entry-header",22),I("click",function(){S(i);let o=g(1);return C(o.toggle())}),s(4),d(5,"translate"),a()(),p(6,"div",23)(7,"div",24),m(8,xt,1,1,"ng-template"),a()()()}if(e&2){let i=g(1);n(3),l("opened",!i.collapsed),n(),u(" ",c(5,2,"shared.profile.legal-representation")," ")}}function Ct(e,t){if(e&1&&(R(0),s(1),j()),e&2){let i=f().index;n(),y(i+1)}}function It(e,t){if(e&1&&_(0,"bkd-student-dossier-apprenticeship-company",41),e&2){let i=f().$implicit;l("company",i)}}function kt(e,t){if(e&1){let i=k();p(0,"div",39,6)(2,"div",21)(3,"bkd-student-dossier-entry-header",22),I("click",function(){S(i);let o=g(1);return C(o.toggle())}),s(4),d(5,"translate"),m(6,Ct,2,1,"ng-container",40),a()(),p(7,"div",23)(8,"div",24),m(9,It,1,1,"ng-template"),a()()()}if(e&2){let i=g(1),r=f(3).bkdLet;n(3),l("opened",!i.collapsed),n(),u(" ",c(5,3,"shared.profile.apprenticeship-company")," "),n(2),l("ngIf",r.profile.apprenticeshipCompanies.length>1)}}function Pt(e,t){e&1&&(p(0,"p",42),s(1),d(2,"translate"),a()),e&2&&(n(),u(" ",c(2,1,"shared.profile.no-profile")," "))}function Mt(e,t){if(e&1){let i=k();R(0),_(1,"bkd-my-profile-header",11),p(2,"div",12)(3,"div",13),m(4,st,1,1,"bkd-my-profile-entry",14)(5,ct,1,1,"bkd-my-profile-entry",15)(6,mt,1,1,"bkd-my-profile-entry",16)(7,ft,1,1,"bkd-my-profile-entry",17)(8,_t,2,4,"bkd-my-profile-entry",18),a(),p(9,"div",19)(10,"div",20,2)(12,"div",21)(13,"bkd-student-dossier-entry-header",22),I("click",function(){S(i);let o=g(11);return C(o.toggle())}),s(14),d(15,"translate"),a()(),p(16,"div",23)(17,"div",24),m(18,ut,6,4,"ng-template"),a()()(),m(19,yt,9,4,"div",25)(20,ht,9,4,"div",25)(21,St,9,4,"div",25)(22,kt,10,5,"div",26),a()(),m(23,Pt,3,3,"ng-template",null,1,G),j()}if(e&2){let i=g(11),r=f(2).bkdLet;n(),l("student",r.profile.student),n(3),l("ngIf",r.profile.student.SocialSecurityNumber),n(),l("ngIf",r.profile.student.HomeTown||r.profile.student.Nationality),n(),l("ngIf",r.profile.student.NativeLanguage),n(),l("ngIf",r.profile.stayPermitValue),n(),l("ngIf",r.profile.student.StayPermitExpiry),n(5),l("opened",!i.collapsed),n(),u(" ",c(15,12,"shared.profile.student-address")," "),n(5),l("ngIf",r.profile.student.CorrespondenceAddress),n(),l("ngIf",r.profile.student.BillingAddress),n(),l("ngIf",r.profile.legalRepresentativePersons.length>0),n(),l("ngForOf",r.profile.apprenticeshipCompanies)}}function wt(e,t){e&1&&(p(0,"p",45),s(1),d(2,"translate"),a()),e&2&&(n(),u(" ",c(2,1,"shared.profile.substitution-profile")," "))}function Et(e,t){e&1&&(p(0,"p",42),s(1),d(2,"translate"),a()),e&2&&(n(),u(" ",c(2,1,"shared.profile.no-profile")," "))}function Tt(e,t){if(e&1&&(m(0,wt,3,3,"p",43),d(1,"async"),m(2,Et,3,3,"p",44),d(3,"async")),e&2){let i=f(3);l("ngIf",c(1,2,i.profileService.noAccess$)===!0),n(2),l("ngIf",c(3,4,i.profileService.noAccess$)===!1)}}function Bt(e,t){if(e&1&&(R(0),m(1,Mt,25,14,"ng-container",10)(2,Tt,4,6,"ng-template",null,1,G),j()),e&2){let i=g(3),r=f().bkdLet;n(),l("ngIf",r.profile)("ngIfElse",i)}}function $t(e,t){e&1&&_(0,"bkd-spinner")}function At(e,t){if(e&1&&(p(0,"div",8)(1,"h1",9),s(2),d(3,"translate"),a(),m(4,Bt,4,2,"ng-container",10),d(5,"async"),m(6,$t,1,0,"ng-template",null,0,G),a()),e&2){let i=g(7),r=f();n(2),y(c(3,3,"my-profile.title")),n(2),l("ngIf",c(5,5,r.profileService.loading$)===!1)("ngIfElse",i)}}var Ze=(()=>{let t=class t{constructor(r){this.profileService=r}};t.\u0275fac=function(o){return new(o||t)(x(D))},t.\u0275cmp=h({type:t,selectors:[["bkd-my-profile-show"]],standalone:!0,features:[b],decls:2,vars:5,consts:[["loading",""],["noProfile",""],["studentAddress","ngbAccordionItem"],["correspondenceAddress","ngbAccordionItem"],["billingAddress","ngbAccordionItem"],["legalRepresentatives","ngbAccordionItem"],["apprenticeshipCompanies","ngbAccordionItem"],["class","bkd-container bkd-container-limited",4,"bkdLet"],[1,"bkd-container","bkd-container-limited"],["data-testid","profile-title"],[4,"ngIf","ngIfElse"],[3,"student"],["data-testid","profile-content",1,"profile-content"],[1,"profile-entries","pt-3"],["label","my-profile.show.social-security-number",3,"value",4,"ngIf"],["label","my-profile.show.hometown-nationality",3,"value",4,"ngIf"],["label","my-profile.show.native-language",3,"value",4,"ngIf"],["label","my-profile.show.stay-permit",3,"value",4,"ngIf"],["label","my-profile.show.stay-permit-expiry",3,"value",4,"ngIf"],["ngbAccordion",""],["ngbAccordionItem",""],["ngbAccordionHeader",""],[3,"click","opened"],["ngbAccordionCollapse",""],["ngbAccordionBody",""],["ngbAccordionItem","",4,"ngIf"],[3,"ngbAccordionItem",4,"ngFor","ngForOf"],["label","my-profile.show.social-security-number",3,"value"],["label","my-profile.show.hometown-nationality",3,"value"],["label","my-profile.show.native-language",3,"value"],["label","my-profile.show.stay-permit",3,"value"],["label","my-profile.show.stay-permit-expiry",3,"value"],[1,"clearfix"],["routerLink","edit",1,"btn","btn-primary","btn-icon","float-end","me-2"],[1,"material-icons"],["emailProperty","Email2",1,"profile-entry",3,"student"],[1,"profile-entry",3,"address"],["class","profile-entry",3,"person",4,"ngFor","ngForOf"],[1,"profile-entry",3,"person"],[3,"ngbAccordionItem"],[4,"ngIf"],[1,"profile-entry",3,"company"],["data-testid","profile-none"],["data-testid","profile-substitution",4,"ngIf"],["data-testid","profile-none",4,"ngIf"],["data-testid","profile-substitution"]],template:function(o,v){o&1&&(m(0,At,8,7,"div",7),d(1,"async")),o&2&&l("bkdLet",de(3,dt,c(1,1,v.profileService.profile$)))},dependencies:[z,T,Ye,We,we,Me,Pe,Fe,ke,Ie,fe,Ne,ze,H,Oe,Ve,Ae,B,U,A,$],styles:[".profile-content[_ngcontent-%COMP%]{padding-top:1rem}.profile-entry[_ngcontent-%COMP%]{display:block;padding:0 1rem}.profile-entries[_ngcontent-%COMP%]:not(:empty){border-top:1px solid rgb(222,222,222)}"],changeDetection:0});let e=t;return e})();var qe=(()=>{let t=class t{constructor(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=h({type:t,selectors:[["bkd-my-profile"]],standalone:!0,features:[le([D]),b],decls:1,vars:0,template:function(o,v){o&1&&_(0,"router-outlet")},dependencies:[ce],changeDetection:0});let e=t;return e})();var Pi=[{path:"",component:qe,children:[{path:"",component:Ze},{path:"edit",component:Ue}]}];export{Pi as MY_PROFILE_ROUTES}; diff --git a/public/apps/webapp-schulverwaltung/chunk-BTBVZYMS.js b/public/apps/webapp-schulverwaltung/chunk-BTBVZYMS.js new file mode 100644 index 00000000..3981b0c7 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-BTBVZYMS.js @@ -0,0 +1 @@ +import{a as Ee,b as ke,c as Ie}from"./chunk-V34B6ZOV.js";import{a as ye}from"./chunk-VTGXNMZL.js";import{a as Te}from"./chunk-VFMGCCGG.js";import{a as be}from"./chunk-RC3HL7KB.js";import"./chunk-KLXFX6SJ.js";import"./chunk-QHPTZGVN.js";import"./chunk-HHGALFFJ.js";import{b as pe,e as O}from"./chunk-2FIH3FGB.js";import"./chunk-MVTCHCDH.js";import"./chunk-Y4QYVF5K.js";import"./chunk-WN7VWSJW.js";import{a as Ce,b as Se}from"./chunk-DXYHDL5D.js";import{a as he}from"./chunk-TK3HGFHH.js";import{a as xe}from"./chunk-2IXEFCAH.js";import{c as fe}from"./chunk-X2BR3YJG.js";import{d as ge}from"./chunk-LO5XSJLW.js";import"./chunk-DMYOU5OM.js";import"./chunk-RWNJF4OZ.js";import{P as de,T as _e}from"./chunk-GI4AZI25.js";import"./chunk-Q5U6YZUT.js";import{a as me,b as ve}from"./chunk-N6FFLIGM.js";import{a as ce,c as ue}from"./chunk-33NXTXD7.js";import{s as le}from"./chunk-FTRAQKUW.js";import"./chunk-3AROKYRB.js";import{$ as E,$a as _,Bb as p,Cb as d,E as q,Fb as L,Ga as v,Ha as J,Hd as j,Ia as c,Id as M,L as U,Nb as Z,O as N,Q as G,Rb as ee,Sa as s,Sb as te,Ta as l,Tb as ne,Ua as x,Va as F,W as X,Wa as w,Wb as ie,Wc as se,Ya as A,Z as S,_a as y,ha as I,ia as T,ib as P,jb as u,kb as h,lb as g,m as W,pb as R,pc as ae,qb as B,qc as re,ra as z,rb as $,sb as K,sc as oe,tb as k,ua as o,ub as Q,va as f,vb as V,xb as Y}from"./chunk-T7QWSMKM.js";var Ae=(()=>{let n=class n{constructor(t,i,r){this.studentsService=t,this.educationalEventsService=i,this.studyClassesService=r,this.filter={student:null,educationalEvent:null,studyClass:null},this.filterChange=new z,this.classesHttpFilter={params:{fields:"IsActive","filter.IsActive":"=true"}}}show(){this.filterChange.emit(this.filter)}};n.\u0275fac=function(i){return new(i||n)(f(fe),f(Ie),f(Te))},n.\u0275cmp=E({type:n,selectors:[["bkd-evaluate-absences-header"]],inputs:{filter:"filter"},outputs:{filterChange:"filterChange"},standalone:!0,features:[k],decls:20,vars:19,consts:[[1,"row","g-3","align-items-end"],[1,"col-sm-12","col-md"],[1,"form-label"],[3,"valueChange","typeaheadService","value"],[3,"valueChange","typeaheadService","value","additionalHttpParams"],[1,"col-auto"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(i,r){i&1&&(s(0,"div",0)(1,"div",1)(2,"label",2),u(3),p(4,"translate"),l(),s(5,"bkd-typeahead",3),$("valueChange",function(m){return B(r.filter.student,m)||(r.filter.student=m),m}),l()(),s(6,"div",1)(7,"label",2),u(8),p(9,"translate"),l(),s(10,"bkd-typeahead",3),$("valueChange",function(m){return B(r.filter.educationalEvent,m)||(r.filter.educationalEvent=m),m}),l()(),s(11,"div",1)(12,"label",2),u(13),p(14,"translate"),l(),s(15,"bkd-typeahead",4),$("valueChange",function(m){return B(r.filter.studyClass,m)||(r.filter.studyClass=m),m}),l()(),s(16,"div",5)(17,"button",6),y("click",function(){return r.show()}),u(18),p(19,"translate"),l()()()),i&2&&(o(3),h(d(4,11,"evaluate-absences.header.student")),o(2),c("typeaheadService",r.studentsService),R("value",r.filter.student),o(3),h(d(9,13,"evaluate-absences.header.module-instance")),o(2),c("typeaheadService",r.educationalEventsService),R("value",r.filter.educationalEvent),o(3),h(d(14,15,"evaluate-absences.header.study-class")),o(2),c("typeaheadService",r.studyClassesService),R("value",r.filter.studyClass),c("additionalHttpParams",r.classesHttpFilter),o(3),g(" ",d(19,17,"evaluate-absences.header.show")," "))},dependencies:[ye,M,j],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:1rem 1rem 1rem 0;border-bottom:1px solid #dee2e6}"],changeDetection:0});let e=n;return e})();var C=(()=>{let n=class n extends Se{constructor(t,i,r,b,m){super(t,i,m,r,"/evaluate-absences"),this.lessonPresenceService=b,this.queryParamsString$.pipe(G(this.destroy$)).subscribe(D=>this.confirmBackLinkParams={returnparams:D})}updateAfterConfirm(){this.resetEntries()}getInitialFilter(){return{student:null,educationalEvent:null,studyClass:null}}isValidFilter(t){return!!(t.student||t.educationalEvent||t.studyClass)}getInitialSorting(){return{key:"StudentFullName",ascending:!0}}loadEntries(t,i,r){return this.loadingService.load(this.lessonPresenceService.getStatistics(t,i,r),Ce)}buildParamsFromFilter(t){return Ee(t)}};n.\u0275fac=function(i){return new(i||n)(S(Z),S(ve),S(se),S(O),S(xe))},n.\u0275prov=X({token:n,factory:n.\u0275fac});let e=n;return e})();var Be=(e,n,a)=>({entries:e,hasMore:n,loadingPage:a}),$e=()=>[],je=e=>["student",e,"absences"],Me=e=>({returnparams:e});function Oe(e,n){if(e&1){let a=A();s(0,"th",16),y("click",function(){let i=I(a).$implicit,r=_(5);return T(r.state.sortService.toggleSorting(i.key))}),s(1,"div",17)(2,"div",18),p(3,"translate"),u(4),p(5,"translate"),l(),s(6,"div",19),u(7),p(8,"async"),l()()()}if(e&2){let a=n.$implicit,t=_(5);c("ngClass",a.label),o(2),c("ngbTooltip",d(3,4,"evaluate-absences.list.header."+a.label)),o(2),g(" ",d(5,6,"evaluate-absences.list.header."+a.label)," "),o(3),g(" ",d(8,8,t.state.sortService.getSortingChar$(a.key))," ")}}function De(e,n){if(e&1&&(s(0,"a",22),p(1,"async"),u(2),l()),e&2){let a=_().$implicit,t=_().$implicit,i=_(6);c("routerLink",V(5,je,t.StudentRef.Id))("queryParams",V(7,Me,d(1,3,i.profileReturnParams$))),o(2),g(" ",t[a.key]," ")}}function Ne(e,n){if(e&1&&u(0),e&2){let a=_().$implicit,t=_().$implicit;g(" ",t[a.key]," ")}}function Ve(e,n){if(e&1&&(s(0,"td"),p(1,"translate"),v(2,De,3,9,"a",21)(3,Ne,1,1,"ng-template",null,3,L),l()),e&2){let a=n.$implicit,t=P(4);J("data-label",d(1,3,"evaluate-absences.list.header."+a.label)),o(2),c("ngIf",a.key==="StudentFullName")("ngIfElse",t)}}function He(e,n){if(e&1&&(s(0,"tr"),v(1,Ve,5,5,"td",20),l()),e&2){let a=_(6);o(),c("ngForOf",a.columns)}}function We(e,n){if(e&1&&(s(0,"tbody"),v(1,He,2,1,"tr",20),l()),e&2){let a=_(4).bkdLet;o(),c("ngForOf",a.entries)}}function qe(e,n){e&1&&x(0,"bkd-spinner",23)}function Ue(e,n){if(e&1){let a=A();s(0,"button",24),y("click",function(){I(a);let i=_(5);return T(i.state.nextPage())}),u(1),p(2,"translate"),l()}e&2&&(o(),g(" ",d(2,1,"global.pagination.load-more")," "))}function Ge(e,n){if(e&1){let a=A();s(0,"div",8)(1,"div",9),x(2,"bkd-reports-link",10),p(3,"async"),l(),s(4,"table",11),y("scrolled",function(){I(a);let i=_(4);return T(i.onScroll())}),s(5,"thead")(6,"tr"),v(7,Oe,9,10,"th",12),l()(),v(8,We,2,1,"tbody",13),l(),v(9,qe,1,0,"bkd-spinner",14)(10,Ue,3,3,"button",15),l()}if(e&2){let a,t=_(3).bkdLet,i=_();o(2),c("reports",(a=d(3,5,i.reports$))!==null&&a!==void 0?a:Q(7,$e)),o(5),c("ngForOf",i.columns),o(),c("ngIf",t.entries&&t.entries.length>0),o(),c("ngIf",t.loadingPage),o(),c("ngIf",t.hasMore&&!t.loadingPage)}}function Xe(e,n){e&1&&(s(0,"p",25),u(1),p(2,"translate"),l()),e&2&&(o(),g(" ",d(2,1,"evaluate-absences.no-entries")," "))}function ze(e,n){if(e&1&&(F(0),v(1,Ge,11,8,"div",7)(2,Xe,3,3,"ng-template",null,2,L),w()),e&2){let a=P(3),t=_(2).bkdLet;o(),c("ngIf",t.entries&&t.entries.length>0||t.loadingPage)("ngIfElse",a)}}function Je(e,n){e&1&&x(0,"bkd-spinner")}function Ke(e,n){if(e&1&&(F(0),v(1,ze,4,2,"ng-container",6),p(2,"async"),v(3,Je,1,0,"ng-template",null,1,L),w()),e&2){let a=P(4),t=_(2);o(),c("ngIf",d(2,2,t.state.loading$)===!1)("ngIfElse",a)}}function Qe(e,n){e&1&&(s(0,"p",25),u(1),p(2,"translate"),l()),e&2&&(o(),h(d(2,1,"evaluate-absences.no-filter")))}function Ye(e,n){if(e&1){let a=A();F(0),s(1,"bkd-evaluate-absences-header",5),p(2,"async"),y("filterChange",function(i){I(a);let r=_();return T(r.state.setFilter(i))}),l(),v(3,Ke,5,4,"ng-container",6),p(4,"async"),v(5,Qe,3,3,"ng-template",null,0,L),w()}if(e&2){let a=P(6),t=_();o(),c("filter",d(2,3,t.filterFromParams$)),o(2),c("ngIf",d(4,5,t.state.isFilterValid$))("ngIfElse",a)}}var Le=(()=>{let n=class n{constructor(t,i,r,b,m,D){this.state=t,this.scrollPosition=i,this.route=r,this.presenceTypesService=b,this.reportsService=m,this.lessonPresencesService=D,this.reports$=this.loadReports(),this.columns=[{key:"StudentFullName",label:"student"},{key:"TotalAbsences",label:"total"},{key:"TotalAbsencesValidExcuse",label:"valid-excuse"},{key:"TotalAbsencesWithoutExcuse",label:"without-excuse"},{key:"TotalAbsencesUnconfirmed",label:"unconfirmed"},{key:"TotalAbsencesUnchecked",label:"unchecked"},{key:"TotalIncidents",label:"incident"}],this.filterFromParams$=this.route.queryParams.pipe(W(Ze)),this.profileReturnParams$=this.state.queryParamsString$}ngOnInit(){this.filterFromParams$.pipe(q(1)).subscribe(t=>this.state.setFilter(t)),this.presenceTypesService.halfDayActive$.subscribe(t=>{t&&(this.columns=[...this.columns,{key:"TotalHalfDays",label:"halfday"}])})}ngAfterViewInit(){this.scrollPosition.restore()}onScroll(){this.state.nextPage()}loadReports(){return this.state.validFilter$.pipe(N(t=>this.lessonPresencesService.getLessonRefs(t)),N(t=>t.length>0?this.reportsService.getEvaluateAbsencesReports(this.getReportRecordIds(t)):[]),U(1))}getReportRecordIds(t){return t.map(i=>`${i.LessonRef.Id}_${i.RegistrationRef.Id}`)}};n.\u0275fac=function(i){return new(i||n)(f(C),f(he),f(ae),f(_e),f(ge),f(O))},n.\u0275cmp=E({type:n,selectors:[["bkd-evaluate-absences-list"]],standalone:!0,features:[k],decls:7,vars:14,consts:[["noFilter",""],["loading",""],["noEntries",""],["noLink",""],[4,"bkdLet"],[3,"filterChange","filter"],[4,"ngIf","ngIfElse"],["class","py-3",4,"ngIf","ngIfElse"],[1,"py-3"],[1,"buttons"],[1,"mb-2",3,"reports"],["infiniteScroll","",1,"table","table-striped","table-fixed",3,"scrolled"],["scope","col",3,"ngClass","click",4,"ngFor","ngForOf"],[4,"ngIf"],["class","inline",4,"ngIf"],["type","button","class","btn btn-outline-secondary btn-sm d-block mx-auto",3,"click",4,"ngIf"],["scope","col",3,"click","ngClass"],[1,"d-flex"],[1,"column-title",3,"ngbTooltip"],[1,"sort-direction"],[4,"ngFor","ngForOf"],["class","student",3,"routerLink","queryParams",4,"ngIf","ngIfElse"],[1,"student",3,"routerLink","queryParams"],[1,"inline"],["type","button",1,"btn","btn-outline-secondary","btn-sm","d-block","mx-auto",3,"click"],[1,"mt-3"]],template:function(i,r){i&1&&(s(0,"h1"),u(1),p(2,"translate"),l(),v(3,Ye,7,7,"ng-container",4),p(4,"async"),p(5,"async"),p(6,"async")),i&2&&(o(),h(d(2,2,"evaluate-absences.title")),o(2),c("bkdLet",Y(10,Be,d(4,4,r.state.entries$),d(5,6,r.state.hasMore$),d(6,8,r.state.loadingPage$))))},dependencies:[ce,Ae,ne,me,ke,te,ee,le,oe,ue,ie,M,j],styles:["th[_ngcontent-%COMP%]{cursor:pointer}th.student[_ngcontent-%COMP%]{width:30%}.column-title[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}"],changeDetection:0});let e=n;return e})();function Ze(e){return{student:e.student?Number(e.student):null,educationalEvent:e.educationalEvent?Number(e.educationalEvent):null,studyClass:e.studyClass?Number(e.studyClass):null}}var Fe=(()=>{let n=class n{constructor(t){this.state=t}};n.\u0275fac=function(i){return new(i||n)(f(C))},n.\u0275cmp=E({type:n,selectors:[["bkd-evaluate-absences"]],standalone:!0,features:[K([C,{provide:pe,useExisting:C},de]),k],decls:1,vars:0,template:function(i,r){i&1&&x(0,"router-outlet")},dependencies:[re],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0});let e=n;return e})();var Vt=[{path:"",component:Fe,children:[{path:"",component:Le,data:{restoreScrollPositionFrom:["/evaluate-absences/student/:id"]}},be]}];export{Vt as EVALUATE_ABSENCES_ROUTES}; diff --git a/public/apps/webapp-schulverwaltung/chunk-DMYOU5OM.js b/public/apps/webapp-schulverwaltung/chunk-DMYOU5OM.js new file mode 100644 index 00000000..5270b8f5 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-DMYOU5OM.js @@ -0,0 +1 @@ +import{a as s,b as o,kc as u,lc as l}from"./chunk-T7QWSMKM.js";function a(e){return String(e||"").split("&").reduce((n,r)=>{let[t,i]=r.split("=");return o(s({},n),{[t]:i})},{})}function p(e){return Object.keys(e).reduce((n,r)=>{let t=e[r];return[...n,t==null?r:`${r}=${t}`]},[]).join("&")}function g(e){let i=new l().parse(e)?.root.children[u]?.segments;return i?i[0].path:null}export{a,p as b,g as c}; diff --git a/public/apps/webapp-schulverwaltung/chunk-DXYHDL5D.js b/public/apps/webapp-schulverwaltung/chunk-DXYHDL5D.js new file mode 100644 index 00000000..3f71133f --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-DXYHDL5D.js @@ -0,0 +1 @@ +import{b as v}from"./chunk-DMYOU5OM.js";import{e as P}from"./chunk-Q5U6YZUT.js";import{B as d,C as f,E as m,G as u,J as l,L as h,Q as b,W as F,e as a,f as c,m as i,n as $,v as n,w as g,wa as S,xd as x,zd as y}from"./chunk-T7QWSMKM.js";var q="page",M=(()=>{let r=class r{constructor(e,s,E,R,I){this.location=e,this.loadingService=s,this.sortService=E,this.settings=R,this.loading$=this.loadingService.loading$,this.loadingPage$=this.loadingService.loading(q),this.sorting$=this.sortService.sorting$,this.filter$=new c(this.getInitialFilter()),this.isFilterValid$=this.filter$.pipe(i(this.isValidFilter.bind(this))),this.validFilter$=this.filter$.pipe(g(this.isValidFilter.bind(this)),u(y),h(1)),this.resetEntries$=new a,this.nextPage$=new a,this.page$=n(this.nextPage$.pipe(i(()=>"next")),n(this.resetEntries$,this.validFilter$,this.sorting$).pipe(i(()=>"reset"))).pipe(l((t,p)=>p==="next"?t+1:0,0)),this.offset$=this.page$.pipe(i(t=>t*this.settings.paginationLimit)),this.pageResult$=$([this.validFilter$,this.sorting$,this.offset$]).pipe(f(10),d(P(this.loadEntries.bind(this))),h(1)),this.entries$=n(n(this.resetEntries$,this.validFilter$,this.sorting$).pipe(i(()=>({action:"reset"}))),this.pageResult$.pipe(i(t=>t.offset===0?{action:"reset",entries:t.entries}:{action:"append",entries:t.entries}))).pipe(l(this.entriesActionReducer.bind(this),[]),h(1)),this.total$=this.pageResult$.pipe(i(({total:t})=>t)),this.hasMore$=this.pageResult$.pipe(i(({offset:t,total:p})=>tthis.location.replaceState(I,t)),this.sortService.setSorting(this.getInitialSorting())}ngOnDestroy(){this.destroy$.next()}setFilter(e){this.filter$.next(x(e))}nextPage(){this.hasMore$.pipe(m(1)).subscribe(e=>{e&&this.nextPage$.next()})}resetEntries(){this.resetEntries$.next()}getInitialSorting(){return null}entriesActionReducer(e,s){switch(s.action){case"append":return[...e,...s.entries];case"reset":return s.entries?s.entries:[];default:return e}}};r.\u0275fac=function(s){S()},r.\u0275prov=F({token:r,factory:r.\u0275fac});let o=r;return o})();export{q as a,M as b}; diff --git a/public/apps/webapp-schulverwaltung/chunk-FTRAQKUW.js b/public/apps/webapp-schulverwaltung/chunk-FTRAQKUW.js new file mode 100644 index 00000000..bd172f53 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-FTRAQKUW.js @@ -0,0 +1,10 @@ +import{$ as ae,$a as T,Ba as le,Ca as zt,Da as Dn,E as ge,Ea as Tn,F as gn,Fb as Rt,Ga as x,Gb as Mi,H as vn,Ha as Re,Hb as Rn,Ia as I,Ib as We,Ja as G,Ka as Ye,Lb as Yt,Mb as ve,Na as ie,O as Oi,Oa as Kt,Ob as Mn,Pa as Ze,Q as W,Qa as Se,R as St,Ra as Oe,Sa as O,T as jt,Ta as R,Ua as Me,V as ht,Va as En,Vb as Mt,W as C,Wa as Sn,Xc as Zt,Y as yn,Ya as Xe,Za as Ne,_ as d,_a as Z,_c as Nn,a as ut,ab as Qt,b as Ei,ba as U,bb as Jt,d as Vt,e as ee,ea as Ci,eb as Pe,f as hn,fa as bn,fb as ft,ga as Le,gb as ne,ha as Te,hb as oe,ia as Ee,ib as qt,j as pn,jb as ce,k as Et,kb as Ce,la as He,lb as Ri,m as Je,ma as wn,na as qe,o as fn,pa as Ot,qa as Y,ra as S,s as z,sb as Ct,t as _n,tb as de,ua as b,v as mn,vb as On,w as De,x as Si,xa as pt,xb as Cn,y as $t}from"./chunk-T7QWSMKM.js";function et(n){n||(bn(et),n=d(Ot));let t=new Vt(s=>n.onDestroy(s.next.bind(s)));return s=>s.pipe(W(t))}var k="top",K="bottom",V="right",F="left",Xt="auto",Ue=[k,K,V,F],Ae="start",tt="end",Pn="clippingParents",ei="viewport",_t="popper",An="reference",Ni=Ue.reduce(function(n,t){return n.concat([t+"-"+Ae,t+"-"+tt])},[]),ti=[].concat(Ue,[Xt]).reduce(function(n,t){return n.concat([t,t+"-"+Ae,t+"-"+tt])},[]),go="beforeRead",vo="read",yo="afterRead",bo="beforeMain",wo="main",Do="afterMain",To="beforeWrite",Eo="write",So="afterWrite",xn=[go,vo,yo,bo,wo,Do,To,Eo,So];function $(n){return n?(n.nodeName||"").toLowerCase():null}function A(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var t=n.ownerDocument;return t&&t.defaultView||window}return n}function ue(n){var t=A(n).Element;return n instanceof t||n instanceof Element}function L(n){var t=A(n).HTMLElement;return n instanceof t||n instanceof HTMLElement}function mt(n){if(typeof ShadowRoot>"u")return!1;var t=A(n).ShadowRoot;return n instanceof t||n instanceof ShadowRoot}function Oo(n){var t=n.state;Object.keys(t.elements).forEach(function(s){var e=t.styles[s]||{},i=t.attributes[s]||{},o=t.elements[s];!L(o)||!$(o)||(Object.assign(o.style,e),Object.keys(i).forEach(function(r){var a=i[r];a===!1?o.removeAttribute(r):o.setAttribute(r,a===!0?"":a)}))})}function Co(n){var t=n.state,s={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,s.popper),t.styles=s,t.elements.arrow&&Object.assign(t.elements.arrow.style,s.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],o=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:s[e]),a=r.reduce(function(l,u){return l[u]="",l},{});!L(i)||!$(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}var kn={name:"applyStyles",enabled:!0,phase:"write",fn:Oo,effect:Co,requires:["computeStyles"]};function j(n){return n.split("-")[0]}var ye=Math.max,it=Math.min,xe=Math.round;function gt(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Nt(){return!/^((?!chrome|android).)*safari/i.test(gt())}function he(n,t,s){t===void 0&&(t=!1),s===void 0&&(s=!1);var e=n.getBoundingClientRect(),i=1,o=1;t&&L(n)&&(i=n.offsetWidth>0&&xe(e.width)/n.offsetWidth||1,o=n.offsetHeight>0&&xe(e.height)/n.offsetHeight||1);var r=ue(n)?A(n):window,a=r.visualViewport,l=!Nt()&&s,u=(e.left+(l&&a?a.offsetLeft:0))/i,c=(e.top+(l&&a?a.offsetTop:0))/o,f=e.width/i,p=e.height/o;return{width:f,height:p,top:c,right:u+f,bottom:c+p,left:u,x:u,y:c}}function nt(n){var t=he(n),s=n.offsetWidth,e=n.offsetHeight;return Math.abs(t.width-s)<=1&&(s=t.width),Math.abs(t.height-e)<=1&&(e=t.height),{x:n.offsetLeft,y:n.offsetTop,width:s,height:e}}function Pt(n,t){var s=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(s&&mt(s)){var e=t;do{if(e&&n.isSameNode(e))return!0;e=e.parentNode||e.host}while(e)}return!1}function te(n){return A(n).getComputedStyle(n)}function Pi(n){return["table","td","th"].indexOf($(n))>=0}function Q(n){return((ue(n)?n.ownerDocument:n.document)||window.document).documentElement}function ke(n){return $(n)==="html"?n:n.assignedSlot||n.parentNode||(mt(n)?n.host:null)||Q(n)}function Bn(n){return!L(n)||te(n).position==="fixed"?null:n.offsetParent}function Ro(n){var t=/firefox/i.test(gt()),s=/Trident/i.test(gt());if(s&&L(n)){var e=te(n);if(e.position==="fixed")return null}var i=ke(n);for(mt(i)&&(i=i.host);L(i)&&["html","body"].indexOf($(i))<0;){var o=te(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function be(n){for(var t=A(n),s=Bn(n);s&&Pi(s)&&te(s).position==="static";)s=Bn(s);return s&&($(s)==="html"||$(s)==="body"&&te(s).position==="static")?t:s||Ro(n)||t}function ot(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function st(n,t,s){return ye(n,it(t,s))}function In(n,t,s){var e=st(n,t,s);return e>s?s:e}function At(){return{top:0,right:0,bottom:0,left:0}}function xt(n){return Object.assign({},At(),n)}function kt(n,t){return t.reduce(function(s,e){return s[e]=n,s},{})}var Mo=function(t,s){return t=typeof t=="function"?t(Object.assign({},s.rects,{placement:s.placement})):t,xt(typeof t!="number"?t:kt(t,Ue))};function No(n){var t,s=n.state,e=n.name,i=n.options,o=s.elements.arrow,r=s.modifiersData.popperOffsets,a=j(s.placement),l=ot(a),u=[F,V].indexOf(a)>=0,c=u?"height":"width";if(!(!o||!r)){var f=Mo(i.padding,s),p=nt(o),h=l==="y"?k:F,_=l==="y"?K:V,v=s.rects.reference[c]+s.rects.reference[l]-r[l]-s.rects.popper[c],m=r[l]-s.rects.reference[l],w=be(o),y=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,N=v/2-m/2,g=f[h],D=y-p[c]-f[_],E=y/2-p[c]/2+N,P=st(g,E,D),M=l;s.modifiersData[e]=(t={},t[M]=P,t.centerOffset=P-E,t)}}function Po(n){var t=n.state,s=n.options,e=s.element,i=e===void 0?"[data-popper-arrow]":e;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Pt(t.elements.popper,i)&&(t.elements.arrow=i))}var Ai={name:"arrow",enabled:!0,phase:"main",fn:No,effect:Po,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pe(n){return n.split("-")[1]}var Ao={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xo(n,t){var s=n.x,e=n.y,i=t.devicePixelRatio||1;return{x:xe(s*i)/i||0,y:xe(e*i)/i||0}}function Fn(n){var t,s=n.popper,e=n.popperRect,i=n.placement,o=n.variation,r=n.offsets,a=n.position,l=n.gpuAcceleration,u=n.adaptive,c=n.roundOffsets,f=n.isFixed,p=r.x,h=p===void 0?0:p,_=r.y,v=_===void 0?0:_,m=typeof c=="function"?c({x:h,y:v}):{x:h,y:v};h=m.x,v=m.y;var w=r.hasOwnProperty("x"),y=r.hasOwnProperty("y"),N=F,g=k,D=window;if(u){var E=be(s),P="clientHeight",M="clientWidth";if(E===A(s)&&(E=Q(s),te(E).position!=="static"&&a==="absolute"&&(P="scrollHeight",M="scrollWidth")),E=E,i===k||(i===F||i===V)&&o===tt){g=K;var H=f&&E===D&&D.visualViewport?D.visualViewport.height:E[P];v-=H-e.height,v*=l?1:-1}if(i===F||(i===k||i===K)&&o===tt){N=V;var B=f&&E===D&&D.visualViewport?D.visualViewport.width:E[M];h-=B-e.width,h*=l?1:-1}}var q=Object.assign({position:a},u&&Ao),_e=c===!0?xo({x:h,y:v},A(s)):{x:h,y:v};if(h=_e.x,v=_e.y,l){var X;return Object.assign({},q,(X={},X[g]=y?"0":"",X[N]=w?"0":"",X.transform=(D.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",X))}return Object.assign({},q,(t={},t[g]=y?v+"px":"",t[N]=w?h+"px":"",t.transform="",t))}function ko(n){var t=n.state,s=n.options,e=s.gpuAcceleration,i=e===void 0?!0:e,o=s.adaptive,r=o===void 0?!0:o,a=s.roundOffsets,l=a===void 0?!0:a,u={placement:j(t.placement),variation:pe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Fn(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Fn(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Ln={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ko,data:{}};var ii={passive:!0};function Bo(n){var t=n.state,s=n.instance,e=n.options,i=e.scroll,o=i===void 0?!0:i,r=e.resize,a=r===void 0?!0:r,l=A(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",s.update,ii)}),a&&l.addEventListener("resize",s.update,ii),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",s.update,ii)}),a&&l.removeEventListener("resize",s.update,ii)}}var Hn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Bo,data:{}};var Io={left:"right",right:"left",bottom:"top",top:"bottom"};function vt(n){return n.replace(/left|right|bottom|top/g,function(t){return Io[t]})}var Fo={start:"end",end:"start"};function ni(n){return n.replace(/start|end/g,function(t){return Fo[t]})}function rt(n){var t=A(n),s=t.pageXOffset,e=t.pageYOffset;return{scrollLeft:s,scrollTop:e}}function at(n){return he(Q(n)).left+rt(n).scrollLeft}function xi(n,t){var s=A(n),e=Q(n),i=s.visualViewport,o=e.clientWidth,r=e.clientHeight,a=0,l=0;if(i){o=i.width,r=i.height;var u=Nt();(u||!u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:r,x:a+at(n),y:l}}function ki(n){var t,s=Q(n),e=rt(n),i=(t=n.ownerDocument)==null?void 0:t.body,o=ye(s.scrollWidth,s.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),r=ye(s.scrollHeight,s.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-e.scrollLeft+at(n),l=-e.scrollTop;return te(i||s).direction==="rtl"&&(a+=ye(s.clientWidth,i?i.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}function lt(n){var t=te(n),s=t.overflow,e=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(s+i+e)}function oi(n){return["html","body","#document"].indexOf($(n))>=0?n.ownerDocument.body:L(n)&<(n)?n:oi(ke(n))}function Ge(n,t){var s;t===void 0&&(t=[]);var e=oi(n),i=e===((s=n.ownerDocument)==null?void 0:s.body),o=A(e),r=i?[o].concat(o.visualViewport||[],lt(e)?e:[]):e,a=t.concat(r);return i?a:a.concat(Ge(ke(r)))}function yt(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function Lo(n,t){var s=he(n,!1,t==="fixed");return s.top=s.top+n.clientTop,s.left=s.left+n.clientLeft,s.bottom=s.top+n.clientHeight,s.right=s.left+n.clientWidth,s.width=n.clientWidth,s.height=n.clientHeight,s.x=s.left,s.y=s.top,s}function Wn(n,t,s){return t===ei?yt(xi(n,s)):ue(t)?Lo(t,s):yt(ki(Q(n)))}function Ho(n){var t=Ge(ke(n)),s=["absolute","fixed"].indexOf(te(n).position)>=0,e=s&&L(n)?be(n):n;return ue(e)?t.filter(function(i){return ue(i)&&Pt(i,e)&&$(i)!=="body"}):[]}function Bi(n,t,s,e){var i=t==="clippingParents"?Ho(n):[].concat(t),o=[].concat(i,[s]),r=o[0],a=o.reduce(function(l,u){var c=Wn(n,u,e);return l.top=ye(c.top,l.top),l.right=it(c.right,l.right),l.bottom=it(c.bottom,l.bottom),l.left=ye(c.left,l.left),l},Wn(n,r,e));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Bt(n){var t=n.reference,s=n.element,e=n.placement,i=e?j(e):null,o=e?pe(e):null,r=t.x+t.width/2-s.width/2,a=t.y+t.height/2-s.height/2,l;switch(i){case k:l={x:r,y:t.y-s.height};break;case K:l={x:r,y:t.y+t.height};break;case V:l={x:t.x+t.width,y:a};break;case F:l={x:t.x-s.width,y:a};break;default:l={x:t.x,y:t.y}}var u=i?ot(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Ae:l[u]=l[u]-(t[c]/2-s[c]/2);break;case tt:l[u]=l[u]+(t[c]/2-s[c]/2);break;default:}}return l}function Ve(n,t){t===void 0&&(t={});var s=t,e=s.placement,i=e===void 0?n.placement:e,o=s.strategy,r=o===void 0?n.strategy:o,a=s.boundary,l=a===void 0?Pn:a,u=s.rootBoundary,c=u===void 0?ei:u,f=s.elementContext,p=f===void 0?_t:f,h=s.altBoundary,_=h===void 0?!1:h,v=s.padding,m=v===void 0?0:v,w=xt(typeof m!="number"?m:kt(m,Ue)),y=p===_t?An:_t,N=n.rects.popper,g=n.elements[_?y:p],D=Bi(ue(g)?g:g.contextElement||Q(n.elements.popper),l,c,r),E=he(n.elements.reference),P=Bt({reference:E,element:N,strategy:"absolute",placement:i}),M=yt(Object.assign({},N,P)),H=p===_t?M:E,B={top:D.top-H.top+w.top,bottom:H.bottom-D.bottom+w.bottom,left:D.left-H.left+w.left,right:H.right-D.right+w.right},q=n.modifiersData.offset;if(p===_t&&q){var _e=q[i];Object.keys(B).forEach(function(X){var $e=[V,K].indexOf(X)>=0?1:-1,je=[k,K].indexOf(X)>=0?"y":"x";B[X]+=_e[je]*$e})}return B}function Ii(n,t){t===void 0&&(t={});var s=t,e=s.placement,i=s.boundary,o=s.rootBoundary,r=s.padding,a=s.flipVariations,l=s.allowedAutoPlacements,u=l===void 0?ti:l,c=pe(e),f=c?a?Ni:Ni.filter(function(_){return pe(_)===c}):Ue,p=f.filter(function(_){return u.indexOf(_)>=0});p.length===0&&(p=f);var h=p.reduce(function(_,v){return _[v]=Ve(n,{placement:v,boundary:i,rootBoundary:o,padding:r})[j(v)],_},{});return Object.keys(h).sort(function(_,v){return h[_]-h[v]})}function Wo(n){if(j(n)===Xt)return[];var t=vt(n);return[ni(n),t,ni(t)]}function Uo(n){var t=n.state,s=n.options,e=n.name;if(!t.modifiersData[e]._skip){for(var i=s.mainAxis,o=i===void 0?!0:i,r=s.altAxis,a=r===void 0?!0:r,l=s.fallbackPlacements,u=s.padding,c=s.boundary,f=s.rootBoundary,p=s.altBoundary,h=s.flipVariations,_=h===void 0?!0:h,v=s.allowedAutoPlacements,m=t.options.placement,w=j(m),y=w===m,N=l||(y||!_?[vt(m)]:Wo(m)),g=[m].concat(N).reduce(function(dt,Fe){return dt.concat(j(Fe)===Xt?Ii(t,{placement:Fe,boundary:c,rootBoundary:f,padding:u,flipVariations:_,allowedAutoPlacements:v}):Fe)},[]),D=t.rects.reference,E=t.rects.popper,P=new Map,M=!0,H=g[0],B=0;B=0,je=$e?"width":"height",re=Ve(t,{placement:q,boundary:c,rootBoundary:f,altBoundary:p,padding:u}),me=$e?X?V:F:X?K:k;D[je]>E[je]&&(me=vt(me));var Lt=vt(me),ze=[];if(o&&ze.push(re[_e]<=0),a&&ze.push(re[me]<=0,re[Lt]<=0),ze.every(function(dt){return dt})){H=q,M=!1;break}P.set(q,ze)}if(M)for(var Ht=_?3:1,bi=function(Fe){var Tt=g.find(function(Ut){var Ke=P.get(Ut);if(Ke)return Ke.slice(0,Fe).every(function(wi){return wi})});if(Tt)return H=Tt,"break"},Dt=Ht;Dt>0;Dt--){var Wt=bi(Dt);if(Wt==="break")break}t.placement!==H&&(t.modifiersData[e]._skip=!0,t.placement=H,t.reset=!0)}}var Fi={name:"flip",enabled:!0,phase:"main",fn:Uo,requiresIfExists:["offset"],data:{_skip:!1}};function Go(n,t,s){var e=j(n),i=[F,k].indexOf(e)>=0?-1:1,o=typeof s=="function"?s(Object.assign({},t,{placement:n})):s,r=o[0],a=o[1];return r=r||0,a=(a||0)*i,[F,V].indexOf(e)>=0?{x:a,y:r}:{x:r,y:a}}function Vo(n){var t=n.state,s=n.options,e=n.name,i=s.offset,o=i===void 0?[0,0]:i,r=ti.reduce(function(c,f){return c[f]=Go(f,t.rects,o),c},{}),a=r[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[e]=r}var Li={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Vo};function $o(n){var t=n.state,s=n.name;t.modifiersData[s]=Bt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Un={name:"popperOffsets",enabled:!0,phase:"read",fn:$o,data:{}};function Hi(n){return n==="x"?"y":"x"}function jo(n){var t=n.state,s=n.options,e=n.name,i=s.mainAxis,o=i===void 0?!0:i,r=s.altAxis,a=r===void 0?!1:r,l=s.boundary,u=s.rootBoundary,c=s.altBoundary,f=s.padding,p=s.tether,h=p===void 0?!0:p,_=s.tetherOffset,v=_===void 0?0:_,m=Ve(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),w=j(t.placement),y=pe(t.placement),N=!y,g=ot(w),D=Hi(g),E=t.modifiersData.popperOffsets,P=t.rects.reference,M=t.rects.popper,H=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,B=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),q=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_e={x:0,y:0};if(E){if(o){var X,$e=g==="y"?k:F,je=g==="y"?K:V,re=g==="y"?"height":"width",me=E[g],Lt=me+m[$e],ze=me-m[je],Ht=h?-M[re]/2:0,bi=y===Ae?P[re]:M[re],Dt=y===Ae?-M[re]:-P[re],Wt=t.elements.arrow,dt=h&&Wt?nt(Wt):{width:0,height:0},Fe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:At(),Tt=Fe[$e],Ut=Fe[je],Ke=st(0,P[re],dt[re]),wi=N?P[re]/2-Ht-Ke-Tt-B.mainAxis:bi-Ke-Tt-B.mainAxis,uo=N?-P[re]/2+Ht+Ke+Ut+B.mainAxis:Dt+Ke+Ut+B.mainAxis,Di=t.elements.arrow&&be(t.elements.arrow),ho=Di?g==="y"?Di.clientTop||0:Di.clientLeft||0:0,nn=(X=q?.[g])!=null?X:0,po=me+wi-nn-ho,fo=me+uo-nn,on=st(h?it(Lt,po):Lt,me,h?ye(ze,fo):ze);E[g]=on,_e[g]=on-me}if(a){var sn,_o=g==="x"?k:F,mo=g==="x"?K:V,Qe=E[D],Gt=D==="y"?"height":"width",rn=Qe+m[_o],an=Qe-m[mo],Ti=[k,F].indexOf(w)!==-1,ln=(sn=q?.[D])!=null?sn:0,cn=Ti?rn:Qe-P[Gt]-M[Gt]-ln+B.altAxis,dn=Ti?Qe+P[Gt]+M[Gt]-ln-B.altAxis:an,un=h&&Ti?In(cn,Qe,dn):st(h?cn:rn,Qe,h?dn:an);E[D]=un,_e[D]=un-Qe}t.modifiersData[e]=_e}}var Wi={name:"preventOverflow",enabled:!0,phase:"main",fn:jo,requiresIfExists:["offset"]};function Ui(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function Gi(n){return n===A(n)||!L(n)?rt(n):Ui(n)}function zo(n){var t=n.getBoundingClientRect(),s=xe(t.width)/n.offsetWidth||1,e=xe(t.height)/n.offsetHeight||1;return s!==1||e!==1}function Vi(n,t,s){s===void 0&&(s=!1);var e=L(t),i=L(t)&&zo(t),o=Q(t),r=he(n,i,s),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(e||!e&&!s)&&(($(t)!=="body"||lt(o))&&(a=Gi(t)),L(t)?(l=he(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=at(o))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function Ko(n){var t=new Map,s=new Set,e=[];n.forEach(function(o){t.set(o.name,o)});function i(o){s.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(a){if(!s.has(a)){var l=t.get(a);l&&i(l)}}),e.push(o)}return n.forEach(function(o){s.has(o.name)||i(o)}),e}function $i(n){var t=Ko(n);return xn.reduce(function(s,e){return s.concat(t.filter(function(i){return i.phase===e}))},[])}function ji(n){var t;return function(){return t||(t=new Promise(function(s){Promise.resolve().then(function(){t=void 0,s(n())})})),t}}function zi(n){var t=n.reduce(function(s,e){var i=s[e.name];return s[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,s},{});return Object.keys(t).map(function(s){return t[s]})}var Gn={placement:"bottom",modifiers:[],strategy:"absolute"};function Vn(){for(var n=arguments.length,t=new Array(n),s=0;s0?0:-1),b(2),Ri(" ",i.i18n.getMonthLabel(s.firstDate)," "),b(),ie(e!==i.months.length-1?3:-1)}}function os(n,t){if(n&1&&Se(0,ns,4,3,null,null,Ze),n&2){let s=T();Oe(s.months)}}function ss(n,t){if(n&1&&(O(0,"div",1),ce(1),R()),n&2){let s=T(2);b(),Ce(s.i18n.getWeekLabel())}}function rs(n,t){if(n&1&&(O(0,"div",2),ce(1),R()),n&2){let s=t.$implicit;b(),Ce(s)}}function as(n,t){if(n&1&&(O(0,"div",0),x(1,ss,2,1,"div",1),Se(2,rs,2,1,"div",2,Kt),R()),n&2){let s=T();b(),ie(s.datepicker.showWeekNumbers?1:-1),b(),Oe(s.viewModel.weekdays)}}function ls(n,t){if(n&1&&(O(0,"div",4),ce(1),R()),n&2){let s=T(2).$implicit,e=T();b(),Ce(e.i18n.getWeekNumerals(s.number))}}function cs(n,t){}function ds(n,t){if(n&1&&x(0,cs,0,0,"ng-template",7),n&2){let s=T().$implicit,e=T(3);I("ngTemplateOutlet",e.datepicker.dayTemplate)("ngTemplateOutletContext",s.context)}}function us(n,t){if(n&1){let s=Xe();O(0,"div",6),Z("click",function(i){let o=Te(s).$implicit;return T(3).doSelect(o),Ee(i.preventDefault())}),x(1,ds,1,2,null,7),R()}if(n&2){let s=t.$implicit;G("disabled",s.context.disabled)("hidden",s.hidden)("ngb-dp-today",s.context.today),I("tabindex",s.tabindex),Re("aria-label",s.ariaLabel),b(),ie(s.hidden?-1:1)}}function hs(n,t){if(n&1&&(O(0,"div",3),x(1,ls,2,1,"div",4),Se(2,us,2,9,"div",5,Ze),R()),n&2){let s=T().$implicit,e=T();b(),ie(e.datepicker.showWeekNumbers?1:-1),b(),Oe(s.days)}}function ps(n,t){if(n&1&&x(0,hs,4,1,"div",3),n&2){let s=t.$implicit;ie(s.collapsed?-1:0)}}var fs=["defaultDayTemplate"],_s=["content"],ms=n=>({$implicit:n});function gs(n,t){if(n&1&&Me(0,"div",8),n&2){let s=t.date,e=t.currentMonth,i=t.selected,o=t.disabled,r=t.focused;I("date",s)("currentMonth",e)("selected",i)("disabled",o)("focused",r)}}function vs(n,t){if(n&1&&(O(0,"div",10),ce(1),R()),n&2){let s=T().$implicit,e=T(2);b(),Ri(" ",e.i18n.getMonthLabel(s.firstDate)," ")}}function ys(n,t){if(n&1&&(O(0,"div",9),x(1,vs,2,1,"div",10),Me(2,"ngb-datepicker-month",11),R()),n&2){let s=t.$implicit,e=T(2);b(),ie(e.navigation==="none"||e.displayMonths>1&&e.navigation==="select"?1:-1),b(),I("month",s.firstDate)}}function bs(n,t){if(n&1&&Se(0,ys,3,2,"div",9,Ze),n&2){let s=T();Oe(s.model.months)}}function ws(n,t){if(n&1){let s=Xe();O(0,"ngb-datepicker-navigation",12),Z("navigate",function(i){Te(s);let o=T();return Ee(o.onNavigateEvent(i))})("select",function(i){Te(s);let o=T();return Ee(o.onNavigateDateSelect(i))}),R()}if(n&2){let s=T();I("date",s.model.firstDate)("months",s.model.months)("disabled",s.model.disabled)("showSelect",s.model.navigation==="select")("prevDisabled",s.model.prevDisabled)("nextDisabled",s.model.nextDisabled)("selectBoxes",s.model.selectBoxes)}}function Ds(n,t){}function Ts(n,t){}var Es=["dialog"];function Ss(n,t){if(n&1&&(O(0,"strong",3),ce(1),R()),n&2){let s=T();b(),Ce(s.header)}}function Os(n,t){}function Cs(n,t){if(n&1){let s=Xe();O(0,"div",1),x(1,Os,0,0,"ng-template",4),O(2,"button",5),Z("click",function(){Te(s);let i=T();return Ee(i.hide())}),R()()}if(n&2){let s=T(),e=qt(1);b(),I("ngTemplateOutlet",s.contentHeaderTpl||e)}}function Rs(n,t){if(n&1&&(O(0,"span"),ce(1),R()),n&2){let s=T().$implicit,e=T();Ye(e.highlightClass),b(),Ce(s)}}function Ms(n,t){if(n&1&&(En(0),ce(1),Sn()),n&2){let s=T().$implicit;b(),Ce(s)}}function Ns(n,t){if(n&1&&x(0,Rs,2,4,"span",0)(1,Ms,2,1,"ng-container"),n&2){let s=t.$index;ie(s%2!==0?0:1)}}var Ps=(n,t,s)=>({result:n,term:t,formatter:s});function As(n,t){if(n&1&&Me(0,"ngb-highlight",2),n&2){let s=t.result,e=t.term,i=t.formatter;I("result",i(s))("term",e)}}function xs(n,t){}function ks(n,t){if(n&1){let s=Xe();O(0,"button",3),Z("mouseenter",function(){let i=Te(s).$index,o=T();return Ee(o.markActive(i))})("click",function(){let i=Te(s).$implicit,o=T();return Ee(o.select(i))}),x(1,xs,0,0,"ng-template",4),R()}if(n&2){let s=t.$implicit,e=t.$index,i=T(),o=qt(1);G("active",e===i.activeIdx),I("id",i.id+"-"+e),b(),I("ngTemplateOutlet",i.resultTemplate||o)("ngTemplateOutletContext",Cn(5,Ps,s,i.term,i.formatter))}}var eo={animation:!0,transitionTimerDelayMs:5},Ft=(()=>{let t=class t{constructor(){this.animation=eo.animation}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Bs=(()=>{let t=class t{constructor(){this._ngbConfig=d(Ft),this.closeOthers=!1,this.destroyOnHide=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function Is(n){let{transitionDelay:t,transitionDuration:s}=window.getComputedStyle(n),e=parseFloat(t),i=parseFloat(s);return(e+i)*1e3}function we(n){return parseInt(`${n}`,10)}function It(n){return n!=null?`${n}`:""}function wt(n){return typeof n=="string"}function Be(n){return!isNaN(we(n))}function J(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n}function ci(n){return n!=null}function Fs(n){return n&&n.then}function jn(n){return Be(n)?`0${n}`.slice(-2):""}function Ls(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Hs(n,t){return!t||typeof n.closest>"u"?null:n.closest(t)}function pi(n){return(n||document.body).getBoundingClientRect()}function Ws(n){return t=>new Vt(s=>{let e=r=>n.run(()=>s.next(r)),i=r=>n.run(()=>s.error(r)),o=()=>n.run(()=>s.complete());return t.subscribe({next:e,error:i,complete:o})})}function zn(n){return n.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function to(n=document){let t=n?.activeElement;return t?t.shadowRoot?to(t.shadowRoot):t:null}var Us=()=>{},{transitionTimerDelayMs:Gs}=eo,si=new Map,fe=(n,t,s,e)=>{let i=e.context||{},o=si.get(t);if(o)switch(e.runningTransition){case"continue":return pn;case"stop":n.run(()=>o.transition$.complete()),i=Object.assign(o.context,i),si.delete(t)}let r=s(t,e.animation,i)||Us;if(!e.animation||window.getComputedStyle(t).transitionProperty==="none")return n.run(()=>r()),Et(void 0).pipe(Ws(n));let a=new ee,l=new ee,u=a.pipe(vn(!0));si.set(t,{transition$:a,complete:()=>{l.next(),l.complete()},context:i});let c=Is(t);return n.runOutsideAngular(()=>{let f=z(t,"transitionend").pipe(W(u),De(({target:h})=>h===t)),p=_n(c+Gs).pipe(W(u));Si(p,f,l).pipe(W(u)).subscribe(()=>{si.delete(t),n.run(()=>{r(),a.next(),a.complete()})})}),a.asObservable()};function Vs(n,t){if(typeof navigator>"u")return"0px";let{classList:s}=n,e=s.contains("show");e||s.add("show"),n.style[t]="";let i=n.getBoundingClientRect()[t]+"px";return e||s.remove("show"),i}var $s=(n,t,s)=>{let{direction:e,maxSize:i,dimension:o}=s,{classList:r}=n;function a(){r.add("collapse"),e==="show"?r.add("show"):r.remove("show")}if(!t){a();return}return i||(i=Vs(n,o),s.maxSize=i,n.style[o]=e!=="show"?i:"0px",r.remove("collapse","collapsing","show"),pi(n),r.add("collapsing")),n.style[o]=e==="show"?i:"0px",()=>{a(),r.remove("collapsing"),n.style[o]=""}},js=(()=>{let t=class t{constructor(){this._ngbConfig=d(Ft),this.horizontal=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Kn=(()=>{let t=class t{constructor(){this._config=d(js),this._element=d(Y),this._zone=d(le),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new S,this.horizontal=this._config.horizontal,this.shown=new S,this.hidden=new S}set collapsed(e){this._isCollapsed!==e&&(this._isCollapsed=e,this._afterInit&&this._runTransitionWithEvents(e,this.animation))}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(e=this._isCollapsed){this.collapsed=!e,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(e,i){return fe(this._zone,this._element.nativeElement,$s,{animation:i,runningTransition:"stop",context:{direction:e?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(e,i){this._runTransition(e,i).subscribe(()=>{e?this.hidden.emit():this.shown.emit()})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=U({type:t,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(i,o){i&2&&G("collapse-horizontal",o.horizontal)},inputs:{animation:"animation",collapsed:[0,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],standalone:!0});let n=t;return n})(),zs=0,$u=(()=>{let t=class t{constructor(){this._vcr=d(zt),this._element=d(Y).nativeElement,this._item=d(fi),this._viewRef=null}ngAfterContentChecked(){this._bodyTpl&&(this._item._shouldBeInDOM?this._createViewIfNotExists():this._destroyViewIfExists())}ngOnDestroy(){this._destroyViewIfExists()}_destroyViewIfExists(){this._viewRef?.destroy(),this._viewRef=null}_createViewIfNotExists(){if(!this._viewRef){this._viewRef=this._vcr.createEmbeddedView(this._bodyTpl),this._viewRef.detectChanges();for(let e of this._viewRef.rootNodes)this._element.appendChild(e)}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=U({type:t,selectors:[["","ngbAccordionBody",""]],contentQueries:function(i,o,r){if(i&1&&Pe(r,pt,7),i&2){let a;ne(a=oe())&&(o._bodyTpl=a.first)}},hostAttrs:[1,"accordion-body"],standalone:!0});let n=t;return n})(),Ks=(()=>{let t=class t{constructor(){this.item=d(fi),this.ngbCollapse=d(Kn)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=U({type:t,selectors:[["","ngbAccordionCollapse",""]],hostAttrs:["role","region",1,"accordion-collapse"],hostVars:2,hostBindings:function(i,o){i&2&&(Ne("id",o.item.collapseId),Re("aria-labelledby",o.item.toggleId))},exportAs:["ngbAccordionCollapse"],standalone:!0,features:[Tn([Kn])]});let n=t;return n})();var ju=(()=>{let t=class t{constructor(){this.item=d(fi)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=U({type:t,selectors:[["","ngbAccordionHeader",""]],hostAttrs:["role","heading",1,"accordion-header"],hostVars:2,hostBindings:function(i,o){i&2&&G("collapsed",o.item.collapsed)},standalone:!0});let n=t;return n})(),fi=(()=>{let t=class t{constructor(){this._accordion=d(Qs),this._cd=d(We),this._destroyRef=d(Ot),this._collapsed=!0,this._id=`ngb-accordion-item-${zs++}`,this._collapseAnimationRunning=!1,this.disabled=!1,this.show=new S,this.shown=new S,this.hide=new S,this.hidden=new S}set id(e){wt(e)&&e!==""&&(this._id=e)}set destroyOnHide(e){this._destroyOnHide=e}get destroyOnHide(){return this._destroyOnHide===void 0?this._accordion.destroyOnHide:this._destroyOnHide}set collapsed(e){e?this.collapse():this.expand()}get collapsed(){return this._collapsed}get id(){return`${this._id}`}get toggleId(){return`${this.id}-toggle`}get collapseId(){return`${this.id}-collapse`}get _shouldBeInDOM(){return!this.collapsed||this._collapseAnimationRunning||!this.destroyOnHide}ngAfterContentInit(){let{ngbCollapse:e}=this._collapse;e.animation=!1,e.collapsed=this.collapsed,e.animation=this._accordion.animation,e.hidden.pipe(et(this._destroyRef)).subscribe(()=>{this._collapseAnimationRunning=!1,this.hidden.emit(),this._accordion.hidden.emit(this.id)}),e.shown.pipe(et(this._destroyRef)).subscribe(()=>{this.shown.emit(),this._accordion.shown.emit(this.id)})}toggle(){this.collapsed=!this.collapsed}expand(){if(this.collapsed){if(!this._accordion._ensureCanExpand(this))return;this._collapsed=!1,this._cd.markForCheck(),this._cd.detectChanges(),this.show.emit(),this._accordion.show.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!1}}collapse(){this.collapsed||(this._collapsed=!0,this._collapseAnimationRunning=!0,this._cd.markForCheck(),this.hide.emit(),this._accordion.hide.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!0)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=U({type:t,selectors:[["","ngbAccordionItem",""]],contentQueries:function(i,o,r){if(i&1&&Pe(r,Ks,7),i&2){let a;ne(a=oe())&&(o._collapse=a.first)}},hostAttrs:[1,"accordion-item"],hostVars:1,hostBindings:function(i,o){i&2&&Ne("id",o.id)},inputs:{id:[0,"ngbAccordionItem","id"],destroyOnHide:"destroyOnHide",disabled:"disabled",collapsed:"collapsed"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordionItem"],standalone:!0});let n=t;return n})(),Qs=(()=>{let t=class t{constructor(){this._config=d(Bs),this._anItemWasAlreadyExpandedDuringInitialisation=!1,this.animation=this._config.animation,this.closeOthers=this._config.closeOthers,this.destroyOnHide=this._config.destroyOnHide,this.show=new S,this.shown=new S,this.hide=new S,this.hidden=new S}toggle(e){this._getItem(e)?.toggle()}expand(e){this._getItem(e)?.expand()}expandAll(){this._items&&(this.closeOthers?this._items.find(e=>!e.collapsed)||this._items.first.expand():this._items.forEach(e=>e.expand()))}collapse(e){this._getItem(e)?.collapse()}collapseAll(){this._items?.forEach(e=>e.collapse())}isExpanded(e){let i=this._getItem(e);return i?!i.collapsed:!1}_ensureCanExpand(e){return this.closeOthers?this._items?(this._items.find(i=>!i.collapsed&&e!==i)?.collapse(),!0):this._anItemWasAlreadyExpandedDuringInitialisation?!1:(this._anItemWasAlreadyExpandedDuringInitialisation=!0,!0):!0}_getItem(e){return this._items?.find(i=>i.id===e)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=U({type:t,selectors:[["","ngbAccordion",""]],contentQueries:function(i,o,r){if(i&1&&Pe(r,fi,4),i&2){let a;ne(a=oe())&&(o._items=a)}},hostAttrs:[1,"accordion"],inputs:{animation:"animation",closeOthers:"closeOthers",destroyOnHide:"destroyOnHide"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0});let n=t;return n})();var se=class n{static from(t){return t instanceof n?t:t?new n(t.year,t.month,t.day):null}constructor(t,s,e){this.year=J(t)?t:null,this.month=J(s)?s:null,this.day=J(e)?e:null}equals(t){return t!=null&&this.year===t.year&&this.month===t.month&&this.day===t.day}before(t){return t?this.year===t.year?this.month===t.month?this.day===t.day?!1:this.dayt.day:this.month>t.month:this.year>t.year:!1}};function Qn(n){return new se(n.getFullYear(),n.getMonth()+1,n.getDate())}function ri(n){let t=new Date(n.year,n.month-1,n.day,12);return isNaN(t.getTime())||t.setFullYear(n.year),t}function Js(){return new qs}var _i=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>Js(),providedIn:"root"});let n=t;return n})(),qs=(()=>{let t=class t extends _i{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(e,i="d",o=1){let r=ri(e),a=!0,l=r.getMonth();switch(i){case"y":r.setFullYear(r.getFullYear()+o);break;case"m":l+=o,r.setMonth(l),l=l%12,l<0&&(l=l+12);break;case"d":r.setDate(r.getDate()+o),a=!1;break;default:return e}return a&&r.getMonth()!==l&&r.setDate(0),Qn(r)}getPrev(e,i="d",o=1){return this.getNext(e,i,-o)}getWeekday(e){let o=ri(e).getDay();return o===0?7:o}getWeekNumber(e,i){i===7&&(i=0);let o=(11-i)%7,r=e[o],a=ri(r);a.setDate(a.getDate()+4-(a.getDay()||7));let l=a.getTime();return a.setMonth(0),a.setDate(1),Math.floor(Math.round((l-a.getTime())/864e5)/7)+1}getToday(){return Qn(new Date)}isValid(e){if(!e||!J(e.year)||!J(e.month)||!J(e.day)||e.year===0)return!1;let i=ri(e);return!isNaN(i.getTime())&&i.getFullYear()===e.year&&i.getMonth()+1===e.month&&i.getDate()===e.day}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=He(t)))(o||t)}})(),t.\u0275prov=C({token:t,factory:t.\u0275fac});let n=t;return n})();function bt(n,t){return!Ys(n,t)}function io(n,t){return!n&&!t?!1:!n||!t?!0:n.year!==t.year||n.month!==t.month}function Ys(n,t){return!n&&!t||!!n&&!!t&&n.equals(t)}function Zs(n,t){if(t&&n&&t.before(n))throw new Error(`'maxDate' ${t} should be greater than 'minDate' ${n}`)}function ai(n,t,s){return n&&t&&n.before(t)?t:n&&s&&n.after(s)?s:n||null}function Qi(n,t){let{minDate:s,maxDate:e,disabled:i,markDisabled:o}=t;return!(n==null||i||o&&o(n,{year:n.year,month:n.month})||s&&n.before(s)||e&&n.after(e))}function Xs(n,t,s,e){if(!t)return[];let i=n.getMonths(t.year);if(s&&t.year===s.year){let o=i.findIndex(r=>r===s.month);i=i.slice(o)}if(e&&t.year===e.year){let o=i.findIndex(r=>r===e.month);i=i.slice(0,o+1)}return i}function er(n,t,s){if(!n)return[];let e=t?Math.max(t.year,n.year-500):n.year-10,o=(s?Math.min(s.year,n.year+500):n.year+10)-e+1,r=Array(o);for(let a=0;a{let f=Object.assign(n.getNext(t,"m",c),{day:1});if(r[c]=null,!i){let p=a.findIndex(h=>h.firstDate.equals(f));p!==-1&&(r[c]=a.splice(p,1)[0])}return f}).forEach((u,c)=>{r[c]===null&&(r[c]=or(n,u,s,e,a.shift()||{}))}),r}function or(n,t,s,e,i={}){let{dayTemplateData:o,minDate:r,maxDate:a,firstDayOfWeek:l,markDisabled:u,outsideDays:c,weekdayWidth:f,weekdaysVisible:p}=s,h=n.getToday();i.firstDate=null,i.lastDate=null,i.number=t.month,i.year=t.year,i.weeks=i.weeks||[],i.weekdays=i.weekdays||[],t=sr(n,t,l),p||(i.weekdays.length=0);for(let _=0;_w.date),l),v.collapsed=c==="collapsed"&&m[0].date.month!==i.number&&m[m.length-1].date.month!==i.number}return i}function sr(n,t,s){let e=n.getDaysPerWeek(),i=new se(t.year,t.month,1),o=n.getWeekday(i)%e;return n.getPrev(i,"d",(e+o-s)%e)}var ct=(()=>{let t=class t{getMonthLabel(e){return`${this.getMonthFullName(e.month,e.year)} ${this.getYearNumerals(e.year)}`}getDayNumerals(e){return`${e.day}`}getWeekNumerals(e){return`${e}`}getYearNumerals(e){return`${e}`}getWeekLabel(){return""}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>new rr,providedIn:"root"});let n=t;return n})(),rr=(()=>{let t=class t extends ct{constructor(){super(...arguments),this._locale=d(Rn),this._monthsShort=[...Array(12).keys()].map(e=>Intl.DateTimeFormat(this._locale,{month:"short"}).format(new Date(2e3,e))),this._monthsFull=[...Array(12).keys()].map(e=>Intl.DateTimeFormat(this._locale,{month:"long"}).format(new Date(2e3,e)))}getWeekdayLabel(e,i="narrow"){let o=[...Array(7).keys()].map(a=>Intl.DateTimeFormat(this._locale,{weekday:i}).format(new Date(Date.UTC(2021,5,a-1))));return o.map((a,l)=>o[(l+1)%7])[e-1]||""}getMonthShortName(e){return this._monthsShort[e-1]||""}getMonthFullName(e){return this._monthsFull[e-1]||""}getDayAriaLabel(e){let i=new Date(e.year,e.month-1,e.day);return Mn(i,"fullDate",this._locale)}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=He(t)))(o||t)}})(),t.\u0275prov=C({token:t,factory:t.\u0275fac});let n=t;return n})(),Ji=(()=>{let t=class t{constructor(){this._VALIDATORS={dayTemplateData:e=>{if(this._state.dayTemplateData!==e)return{dayTemplateData:e}},displayMonths:e=>{if(e=we(e),J(e)&&e>0&&this._state.displayMonths!==e)return{displayMonths:e}},disabled:e=>{if(this._state.disabled!==e)return{disabled:e}},firstDayOfWeek:e=>{if(e=we(e),J(e)&&e>=0&&this._state.firstDayOfWeek!==e)return{firstDayOfWeek:e}},focusVisible:e=>{if(this._state.focusVisible!==e&&!this._state.disabled)return{focusVisible:e}},markDisabled:e=>{if(this._state.markDisabled!==e)return{markDisabled:e}},maxDate:e=>{let i=this.toValidDate(e,null);if(bt(this._state.maxDate,i))return{maxDate:i}},minDate:e=>{let i=this.toValidDate(e,null);if(bt(this._state.minDate,i))return{minDate:i}},navigation:e=>{if(this._state.navigation!==e)return{navigation:e}},outsideDays:e=>{if(this._state.outsideDays!==e)return{outsideDays:e}},weekdays:e=>{let i=e===!0||e===!1?"narrow":e,o=e===!0||e===!1?e:!0;if(this._state.weekdayWidth!==i||this._state.weekdaysVisible!==o)return{weekdayWidth:i,weekdaysVisible:o}}},this._calendar=d(_i),this._i18n=d(ct),this._model$=new ee,this._dateSelect$=new ee,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:"narrow",weekdaysVisible:!0}}get model$(){return this._model$.pipe(De(e=>e.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(De(e=>e!==null))}set(e){let i=Object.keys(e).map(o=>this._VALIDATORS[o](e[o])).reduce((o,r)=>ut(ut({},o),r),{});Object.keys(i).length>0&&this._nextState(i)}focus(e){let i=this.toValidDate(e,null);i!=null&&!this._state.disabled&&bt(this._state.focusDate,i)&&this._nextState({focusDate:e})}focusSelect(){Qi(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(e){let i=this.toValidDate(e,this._calendar.getToday());i!=null&&!this._state.disabled&&(!this._state.firstDate||io(this._state.firstDate,i))&&this._nextState({firstDate:i})}select(e,i={}){let o=this.toValidDate(e,null);o!=null&&!this._state.disabled&&(bt(this._state.selectedDate,o)&&this._nextState({selectedDate:o}),i.emitEvent&&Qi(o,this._state)&&this._dateSelect$.next(o))}toValidDate(e,i){let o=se.from(e);return i===void 0&&(i=this._calendar.getToday()),this._calendar.isValid(o)?o:i}getMonth(e){for(let i of this._state.months)if(e.month===i.number&&e.year===i.year)return i;throw new Error(`month ${e.month} of year ${e.year} not found`)}_nextState(e){let i=this._updateState(e);this._patchContexts(i),this._state=i,this._model$.next(this._state)}_patchContexts(e){let{months:i,displayMonths:o,selectedDate:r,focusDate:a,focusVisible:l,disabled:u,outsideDays:c}=e;e.months.forEach(f=>{f.weeks.forEach(p=>{p.days.forEach(h=>{a&&(h.context.focused=a.equals(h.date)&&l),h.tabindex=!u&&a&&h.date.equals(a)&&a.month===f.number?0:-1,u===!0&&(h.context.disabled=!0),r!==void 0&&(h.context.selected=r!==null&&r.equals(h.date)),f.number!==h.date.month&&(h.hidden=c==="hidden"||c==="collapsed"||o>1&&h.date.after(i[0].firstDate)&&h.date.before(i[o-1].lastDate))})})})}_updateState(e){let i=Object.assign({},this._state,e),o=i.firstDate;if(("minDate"in e||"maxDate"in e)&&(Zs(i.minDate,i.maxDate),i.focusDate=ai(i.focusDate,i.minDate,i.maxDate),i.firstDate=ai(i.firstDate,i.minDate,i.maxDate),o=i.focusDate),"disabled"in e&&(i.focusVisible=!1),"selectedDate"in e&&this._state.months.length===0&&(o=i.selectedDate),"focusVisible"in e||"focusDate"in e&&(i.focusDate=ai(i.focusDate,i.minDate,i.maxDate),o=i.focusDate,i.months.length!==0&&i.focusDate&&!i.focusDate.before(i.firstDate)&&!i.focusDate.after(i.lastDate)))return i;if("firstDate"in e&&(i.firstDate=ai(i.firstDate,i.minDate,i.maxDate),o=i.firstDate),o){let r="dayTemplateData"in e||"firstDayOfWeek"in e||"markDisabled"in e||"minDate"in e||"maxDate"in e||"disabled"in e||"outsideDays"in e||"weekdaysVisible"in e,a=nr(this._calendar,o,i,this._i18n,r);i.months=a,i.firstDate=a[0].firstDate,i.lastDate=a[a.length-1].lastDate,"selectedDate"in e&&!Qi(i.selectedDate,i)&&(i.selectedDate=null),"firstDate"in e&&(!i.focusDate||i.focusDate.before(i.firstDate)||i.focusDate.after(i.lastDate))&&(i.focusDate=o);let l=!this._state.firstDate||this._state.firstDate.year!==i.firstDate.year,u=!this._state.firstDate||this._state.firstDate.month!==i.firstDate.month;i.navigation==="select"?(("minDate"in e||"maxDate"in e||i.selectBoxes.years.length===0||l)&&(i.selectBoxes.years=er(i.firstDate,i.minDate,i.maxDate)),("minDate"in e||"maxDate"in e||i.selectBoxes.months.length===0||l)&&(i.selectBoxes.months=Xs(this._calendar,i.firstDate,i.minDate,i.maxDate))):i.selectBoxes={years:[],months:[]},(i.navigation==="arrows"||i.navigation==="select")&&(u||l||"minDate"in e||"maxDate"in e||"disabled"in e)&&(i.prevDisabled=i.disabled||ir(this._calendar,i.firstDate,i.minDate),i.nextDisabled=i.disabled||tr(this._calendar,i.lastDate,i.maxDate))}return i}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac});let n=t;return n})(),di=function(n){return n[n.PREV=0]="PREV",n[n.NEXT=1]="NEXT",n}(di||{}),en=(()=>{let t=class t{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekNumbers=!1,this.weekdays="narrow"}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function ar(){return new lr}var mi=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>ar(),providedIn:"root"});let n=t;return n})(),lr=(()=>{let t=class t extends mi{fromModel(e){return e&&J(e.year)&&J(e.month)&&J(e.day)?{year:e.year,month:e.month,day:e.day}:null}toModel(e){return e&&J(e.year)&&J(e.month)&&J(e.day)?{year:e.year,month:e.month,day:e.day}:null}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=He(t)))(o||t)}})(),t.\u0275prov=C({token:t,factory:t.\u0275fac});let n=t;return n})(),cr=(()=>{let t=class t{processKey(e,i){let{state:o,calendar:r}=i;switch(e.key){case"PageUp":i.focusDate(r.getPrev(o.focusedDate,e.shiftKey?"y":"m",1));break;case"PageDown":i.focusDate(r.getNext(o.focusedDate,e.shiftKey?"y":"m",1));break;case"End":i.focusDate(e.shiftKey?o.maxDate:o.lastDate);break;case"Home":i.focusDate(e.shiftKey?o.minDate:o.firstDate);break;case"ArrowLeft":i.focusDate(r.getPrev(o.focusedDate,"d",1));break;case"ArrowUp":i.focusDate(r.getPrev(o.focusedDate,"d",r.getDaysPerWeek()));break;case"ArrowRight":i.focusDate(r.getNext(o.focusedDate,"d",1));break;case"ArrowDown":i.focusDate(r.getNext(o.focusedDate,"d",r.getDaysPerWeek()));break;case"Enter":case" ":i.focusSelect();break;default:return}e.preventDefault(),e.stopPropagation()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),dr=(()=>{let t=class t{constructor(){this.i18n=d(ct)}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=ae({type:t,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(i,o){i&2&&G("bg-primary",o.selected)("text-white",o.selected)("text-muted",o.isMuted())("outside",o.isMuted())("active",o.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},standalone:!0,features:[de],attrs:Jo,decls:1,vars:1,template:function(i,o){i&1&&ce(0),i&2&&Ce(o.i18n.getDayNumerals(o.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-tertiary-bg);outline:1px solid var(--bs-border-color)}[ngbDatepickerDayView].outside{opacity:.5} +`],encapsulation:2,changeDetection:0});let n=t;return n})(),ur=(()=>{let t=class t{constructor(){this._month=-1,this._year=-1,this.i18n=d(ct),this.select=new S}changeMonth(e){this.select.emit(new se(this.date.year,we(e),1))}changeYear(e){this.select.emit(new se(we(e),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this.monthSelect.nativeElement.value=`${this._month}`),this.date.year!==this._year&&(this._year=this.date.year,this.yearSelect.nativeElement.value=`${this._year}`))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=ae({type:t,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(i,o){if(i&1&&(ft(qo,7,Y),ft(Yo,7,Y)),i&2){let r;ne(r=oe())&&(o.monthSelect=r.first),ne(r=oe())&&(o.yearSelect=r.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},standalone:!0,features:[de],decls:8,vars:2,consts:()=>{let e;e=$localize`:@@ngb.datepicker.select-month:Select month`;let i;i=$localize`:@@ngb.datepicker.select-month:Select month`;let o;o=$localize`:@@ngb.datepicker.select-year:Select year`;let r;return r=$localize`:@@ngb.datepicker.select-year:Select year`,[["month",""],["year",""],["aria-label",e,"title",i,1,"form-select",3,"change","disabled"],[3,"value"],["aria-label",o,"title",r,1,"form-select",3,"change","disabled"]]},template:function(i,o){if(i&1){let r=Xe();O(0,"select",2,0),Z("change",function(l){return Te(r),Ee(o.changeMonth(l.target.value))}),Se(2,Zo,2,3,"option",3,Ze),R(),O(4,"select",4,1),Z("change",function(l){return Te(r),Ee(o.changeYear(l.target.value))}),Se(6,Xo,2,2,"option",3,Ze),R()}i&2&&(I("disabled",o.disabled),b(2),Oe(o.months),b(2),I("disabled",o.disabled),b(2),Oe(o.years))},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} +`],encapsulation:2,changeDetection:0});let n=t;return n})(),hr=(()=>{let t=class t{constructor(){this.navigation=di,this.i18n=d(ct),this.months=[],this.navigate=new S,this.select=new S}onClickPrev(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=ae({type:t,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:[de],decls:8,vars:4,consts:()=>{let e;e=$localize`:@@ngb.datepicker.previous-month:Previous month`;let i;i=$localize`:@@ngb.datepicker.previous-month:Previous month`;let o;o=$localize`:@@ngb.datepicker.next-month:Next month`;let r;return r=$localize`:@@ngb.datepicker.next-month:Next month`,[[1,"ngb-dp-arrow","ngb-dp-arrow-prev"],["type","button","aria-label",e,"title",i,1,"btn","btn-link","ngb-dp-arrow-btn",3,"click","disabled"],[1,"ngb-dp-navigation-chevron"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years"],[1,"ngb-dp-arrow","ngb-dp-arrow-next"],["type","button","aria-label",o,"title",r,1,"btn","btn-link","ngb-dp-arrow-btn",3,"click","disabled"],[1,"ngb-dp-navigation-select",3,"select","date","disabled","months","years"],[1,"ngb-dp-arrow"],[1,"ngb-dp-month-name"]]},template:function(i,o){i&1&&(O(0,"div",0)(1,"button",1),Z("click",function(a){return o.onClickPrev(a)}),Me(2,"span",2),R()(),x(3,es,1,4,"ngb-datepicker-navigation-select",3)(4,os,2,0),O(5,"div",4)(6,"button",5),Z("click",function(a){return o.onClickNext(a)}),Me(7,"span",2),R()()),i&2&&(b(),I("disabled",o.prevDisabled),b(2),ie(o.showSelect?3:-1),b(),ie(o.showSelect?-1:4),b(2),I("disabled",o.nextDisabled))},dependencies:[ur],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} +`],encapsulation:2,changeDetection:0});let n=t;return n})(),pr=(()=>{let t=class t{constructor(){this.templateRef=d(pt)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=U({type:t,selectors:[["ng-template","ngbDatepickerContent",""]],standalone:!0});let n=t;return n})(),fr=(()=>{let t=class t{constructor(){this._keyboardService=d(cr),this._service=d(Ji),this.i18n=d(ct),this.datepicker=d(no)}set month(e){this.viewModel=this._service.getMonth(e)}onKeyDown(e){this._keyboardService.processKey(e,this.datepicker)}doSelect(e){!e.context.disabled&&!e.hidden&&this.datepicker.onDateSelect(e.date)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=ae({type:t,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(i,o){i&1&&Z("keydown",function(a){return o.onKeyDown(a)})},inputs:{month:"month"},standalone:!0,features:[de],decls:3,vars:1,consts:[["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],[1,"ngb-dp-weekday","ngb-dp-showweek","small"],["role","columnheader",1,"ngb-dp-weekday","small"],["role","row",1,"ngb-dp-week"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"disabled","tabindex","hidden","ngb-dp-today"],["role","gridcell",1,"ngb-dp-day",3,"click","tabindex"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){i&1&&(x(0,as,4,1,"div",0),Se(1,ps,1,1,null,null,Ze)),i&2&&(ie(o.viewModel.weekdays.length>0?0:-1),b(),Oe(o.viewModel.weeks))},dependencies:[Mt],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-tertiary-bg)}.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} +`],encapsulation:2});let n=t;return n})(),no=(()=>{let t=class t{constructor(){this.injector=d(qe),this._service=d(Ji),this._calendar=d(_i),this._i18n=d(ct),this._config=d(en),this._nativeElement=d(Y).nativeElement,this._ngbDateAdapter=d(mi),this._ngZone=d(le),this._destroyRef=d(Ot),this._controlValue=null,this._publicState={},this.dayTemplate=this._config.dayTemplate,this.dayTemplateData=this._config.dayTemplateData,this.displayMonths=this._config.displayMonths,this.firstDayOfWeek=this._config.firstDayOfWeek,this.footerTemplate=this._config.footerTemplate,this.markDisabled=this._config.markDisabled,this.maxDate=this._config.maxDate,this.minDate=this._config.minDate,this.navigation=this._config.navigation,this.outsideDays=this._config.outsideDays,this.showWeekNumbers=this._config.showWeekNumbers,this.startDate=this._config.startDate,this.weekdays=this._config.weekdays,this.navigate=new S,this.dateSelect=new S,this.onChange=i=>{},this.onTouched=()=>{};let e=d(We);this._service.dateSelect$.pipe(et()).subscribe(i=>{this.dateSelect.emit(i)}),this._service.model$.pipe(et()).subscribe(i=>{let o=i.firstDate,r=this.model?this.model.firstDate:null;this._publicState={maxDate:i.maxDate,minDate:i.minDate,firstDate:i.firstDate,lastDate:i.lastDate,focusedDate:i.focusDate,months:i.months.map(f=>f.firstDate)};let a=!1;if(!o.equals(r)&&(this.navigate.emit({current:r?{year:r.year,month:r.month}:null,next:{year:o.year,month:o.month},preventDefault:()=>a=!0}),a&&r!==null)){this._service.open(r);return}let l=i.selectedDate,u=i.focusDate,c=this.model?this.model.focusDate:null;this.model=i,bt(l,this._controlValue)&&(this._controlValue=l,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(l))),bt(u,c)&&c&&i.focusVisible&&this.focus(),e.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}get i18n(){return this._i18n}focusDate(e){this._service.focus(se.from(e))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe(ge(1)).subscribe(()=>this._nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]')?.focus())}navigateTo(e){this._service.open(se.from(e?e.day?e:Ei(ut({},e),{day:1}):null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{let e=z(this._contentEl.nativeElement,"focusin"),i=z(this._contentEl.nativeElement,"focusout");mn(e,i).pipe(De(o=>{let r=o.target,a=o.relatedTarget;return!(r?.classList.contains("ngb-dp-day")&&a?.classList.contains("ngb-dp-day")&&this._nativeElement.contains(r)&&this._nativeElement.contains(a))}),et(this._destroyRef)).subscribe(({type:o})=>this._ngZone.run(()=>this._service.set({focusVisible:o==="focusin"})))})}ngOnInit(){if(this.model===void 0){let e={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].forEach(i=>e[i]=this[i]),this._service.set(e),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(e){let i={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].filter(o=>o in e).forEach(o=>i[o]=this[o]),this._service.set(i),"startDate"in e){let{currentValue:o,previousValue:r}=e.startDate;io(r,o)&&this.navigateTo(this.startDate)}}onDateSelect(e){this._service.focus(e),this._service.select(e,{emitEvent:!0})}onNavigateDateSelect(e){this._service.open(e)}onNavigateEvent(e){switch(e){case di.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case di.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1));break}}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._service.set({disabled:e})}writeValue(e){this._controlValue=se.from(this._ngbDateAdapter.fromModel(e)),this._service.select(this._controlValue)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=ae({type:t,selectors:[["ngb-datepicker"]],contentQueries:function(i,o,r){if(i&1&&Pe(r,pr,7),i&2){let a;ne(a=oe())&&(o.contentTemplateFromContent=a.first)}},viewQuery:function(i,o){if(i&1&&(ft(fs,7),ft(_s,7)),i&2){let r;ne(r=oe())&&(o._defaultDayTemplate=r.first),ne(r=oe())&&(o._contentEl=r.first)}},hostVars:2,hostBindings:function(i,o){i&2&&G("disabled",o.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:[Ct([{provide:Zt,useExisting:ht(()=>t),multi:!0},Ji]),Le,de],decls:10,vars:9,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],["content",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes"],[1,"ngb-dp-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],[1,"ngb-dp-month"],[1,"ngb-dp-month-name"],[3,"month"],[3,"navigate","select","date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes"]],template:function(i,o){if(i&1&&(x(0,gs,1,5,"ng-template",null,0,Rt)(2,bs,2,0,"ng-template",null,1,Rt),O(4,"div",3),x(5,ws,1,7,"ngb-datepicker-navigation",4),R(),O(6,"div",5,2),x(8,Ds,0,0,"ng-template",6),R(),x(9,Ts,0,0,"ng-template",7)),i&2){let r=qt(3);b(5),ie(o.navigation!=="none"?5:-1),b(),G("ngb-dp-months",!o.contentTemplate),b(2),I("ngTemplateOutlet",o.contentTemplate||(o.contentTemplateFromContent==null?null:o.contentTemplateFromContent.templateRef)||r)("ngTemplateOutletContext",On(7,ms,o))("ngTemplateOutletInjector",o.injector),b(),I("ngTemplateOutlet",o.footerTemplate)}},dependencies:[Mt,dr,fr,hr],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-tertiary-bg)}.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-tertiary-bg)}.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} +`],encapsulation:2,changeDetection:0});let n=t;return n})(),li=(n,t)=>t?t.some(s=>s.contains(n)):!1,Jn=(n,t)=>!t||Hs(n,t)!=null,_r=(()=>{let n=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,t=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(n()||t()):!1})(),mr=n=>_r?()=>setTimeout(()=>n(),100):n;function gi(n,t,s,e,i,o,r,a){s&&n.runOutsideAngular(mr(()=>{let l=p=>{let h=p.target;return p.button===2||li(h,r)?!1:s==="inside"?li(h,o)&&Jn(h,a):s==="outside"?!li(h,o):Jn(h,a)||!li(h,o)},u=z(t,"keydown").pipe(W(i),De(p=>p.key==="Escape"),St(p=>p.preventDefault())),c=z(t,"mousedown").pipe(Je(l),W(i)),f=z(t,"mouseup").pipe(jt(c),De(([p,h])=>h),gn(0),W(i));Si([u.pipe(Je(p=>0)),f.pipe(Je(p=>1))]).subscribe(p=>n.run(()=>e(p)))}))}var oo=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function so(n){let t=Array.from(n.querySelectorAll(oo)).filter(s=>s.tabIndex!==-1);return[t[0],t[t.length-1]]}var ro=(n,t,s,e=!1)=>{n.runOutsideAngular(()=>{let i=z(t,"focusin").pipe(W(s),Je(o=>o.target));z(t,"keydown").pipe(W(s),De(o=>o.key==="Tab"),jt(i)).subscribe(([o,r])=>{let[a,l]=so(t);(r===a||r===t)&&o.shiftKey&&(l.focus(),o.preventDefault()),r===l&&!o.shiftKey&&(a.focus(),o.preventDefault())}),e&&z(t,"click").pipe(W(s),jt(i),Je(o=>o[1])).subscribe(o=>o.focus())})},gr=(()=>{let t=class t{constructor(){this._element=d(ve).documentElement}isRTL(){return(this._element.getAttribute("dir")||"").toLowerCase()==="rtl"}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),vr=/\s+/,yr=/ +/gi,br={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"]};function wr(n,t){let[s,e]=br[n];return t&&e||s}var Dr=/^left/,Tr=/^right/,Er=/^start/,Sr=/^end/;function Or(n,t){let[s,e]=t.split("-"),i=s.replace(Dr,"start").replace(Tr,"end"),o=[i];if(e){let r=e;(s==="left"||s==="right")&&(r=r.replace(Er,"top").replace(Sr,"bottom")),o.push(`${i}-${r}`)}return n&&(o=o.map(r=>`${n}-${r}`)),o.join(" ")}function qn({placement:n,baseClass:t},s){let e=Array.isArray(n)?n:n.split(vr),i=["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"],o=e.findIndex(u=>u==="auto");o>=0&&i.forEach(function(u){e.find(c=>c.search("^"+u)!==-1)==null&&e.splice(o++,1,u)});let r=e.map(u=>wr(u,s.isRTL()));return{placement:r.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!t,phase:"write",fn({state:u}){let c=new RegExp(t+"(-[a-z]+)*","gi"),f=u.elements.popper,p=u.placement,h=f.className;h=h.replace(c,""),h+=` ${Or(t,p)}`,h=h.trim().replace(yr," "),f.className=h}},Fi,Wi,Ai,{enabled:!0,name:"flip",options:{fallbackPlacements:r}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function Yn(n){return n}function vi(){let n=d(gr),t=null;return{createPopper(s){if(!t){let i=(s.updatePopperOptions||Yn)(qn(s,n));t=Ki(s.hostElement,s.targetElement,i)}},update(){t&&t.update()},setOptions(s){if(t){let i=(s.updatePopperOptions||Yn)(qn(s,n));t.setOptions(i)}},destroy(){t&&(t.destroy(),t=null)}}}function Cr(){return new Rr}var ao=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:()=>Cr(),providedIn:"root"});let n=t;return n})(),Rr=(()=>{let t=class t extends ao{parse(e){if(e!=null){let i=e.trim().split("-");if(i.length===1&&Be(i[0]))return{year:we(i[0]),month:null,day:null};if(i.length===2&&Be(i[0])&&Be(i[1]))return{year:we(i[0]),month:we(i[1]),day:null};if(i.length===3&&Be(i[0])&&Be(i[1])&&Be(i[2]))return{year:we(i[0]),month:we(i[1]),day:we(i[2])}}return null}format(e){return e?`${e.year}-${Be(e.month)?jn(e.month):""}-${Be(e.day)?jn(e.day):""}`:""}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=He(t)))(o||t)}})(),t.\u0275prov=C({token:t,factory:t.\u0275fac});let n=t;return n})(),Zn=(()=>{let t=class t extends en{constructor(){super(...arguments),this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=e=>e,this.restoreFocus=!0}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=He(t)))(o||t)}})(),t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function yi(n){return t=>(t.modifiers.push(Li,{name:"offset",options:{offset:()=>n}}),t)}var zu=(()=>{let t=class t{constructor(){this._parserFormatter=d(ao),this._elRef=d(Y),this._vcRef=d(zt),this._ngZone=d(le),this._calendar=d(_i),this._dateAdapter=d(mi),this._document=d(ve),this._changeDetector=d(We),this._config=d(Zn),this._cRef=null,this._disabled=!1,this._elWithFocus=null,this._model=null,this._positioning=vi(),this._destroyCloseHandlers$=new ee,this.autoClose=this._config.autoClose,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.container=this._config.container,this.positionTarget=this._config.positionTarget,this.dateSelect=new S,this.navigate=new S,this.closed=new S,this._onChange=e=>{},this._onTouched=()=>{},this._validatorChange=()=>{}}get disabled(){return this._disabled}set disabled(e){this._disabled=e===""||e&&e!=="false",this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}registerOnValidatorChange(e){this._validatorChange=e}setDisabledState(e){this.disabled=e}validate(e){let{value:i}=e;if(i!=null){let o=this._fromDateStruct(this._dateAdapter.fromModel(i));if(!o)return{ngbDate:{invalid:i}};if(this.minDate&&o.before(se.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:i}}};if(this.maxDate&&o.after(se.from(this.maxDate)))return{ngbDate:{maxDate:{maxDate:this.maxDate,actual:i}}}}return null}writeValue(e){this._model=this._fromDateStruct(this._dateAdapter.fromModel(e)),this._writeModelValue(this._model)}manualDateChange(e,i=!1){let o=e!==this._inputValue;o&&(this._inputValue=e,this._model=this._fromDateStruct(this._parserFormatter.parse(e))),(o||!i)&&this._onChange(this._model?this._dateAdapter.toModel(this._model):e===""?null:e),i&&this._model&&this._writeModelValue(this._model)}isOpen(){return!!this._cRef}open(){if(!this.isOpen()){this._cRef=this._vcRef.createComponent(no),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(i=>{this.writeValue(i),this._onChange(i),this._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),this.container==="body"&&this._document.querySelector(this.container)?.appendChild(this._cRef.location.nativeElement),this._elWithFocus=this._document.activeElement,ro(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),setTimeout(()=>this._cRef?.instance.focus());let e;if(wt(this.positionTarget)?e=this._document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?e=this.positionTarget:e=this._elRef.nativeElement,this.positionTarget&&!e)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");this._ngZone.runOutsideAngular(()=>{this._cRef&&e&&(this._positioning.createPopper({hostElement:e,targetElement:this._cRef.location.nativeElement,placement:this.placement,updatePopperOptions:i=>this.popperOptions(yi([0,2])(i))}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update()))}),this._setCloseHandlers()}}close(){if(this.isOpen()){this._cRef?.destroy(),this._cRef=null,this._positioning.destroy(),this._zoneSubscription?.unsubscribe(),this._destroyCloseHandlers$.next(),this.closed.emit(),this._changeDetector.markForCheck();let e=this._elWithFocus;wt(this.restoreFocus)?e=this._document.querySelector(this.restoreFocus):this.restoreFocus!==void 0&&(e=this.restoreFocus),e&&e.focus?e.focus():this._document.body.focus()}}toggle(){this.isOpen()?this.close():this.open()}navigateTo(e){this.isOpen()&&this._cRef.instance.navigateTo(e)}onBlur(){this._onTouched()}onFocus(){this._elWithFocus=this._elRef.nativeElement}ngOnChanges(e){if((e.minDate||e.maxDate)&&(this._validatorChange(),this.isOpen()&&(e.minDate&&this._cRef.setInput("minDate",this.minDate),e.maxDate&&this._cRef.setInput("maxDate",this.maxDate))),e.datepickerClass){let{currentValue:i,previousValue:o}=e.datepickerClass;this._applyPopupClass(i,o)}e.autoClose&&this.isOpen()&&this._setCloseHandlers()}ngOnDestroy(){this.close()}_applyDatepickerInputs(e){["contentTemplate","dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekNumbers","weekdays"].forEach(i=>{this[i]!==void 0&&e.setInput(i,this[i])}),e.setInput("startDate",this.startDate||this._model)}_applyPopupClass(e,i){let o=this._cRef?.location.nativeElement;o&&(e&&o.classList.add(e),i&&o.classList.remove(i))}_applyPopupStyling(e){e.classList.add("dropdown-menu","show"),this.container==="body"&&e.classList.add("ngb-dp-body"),this._applyPopupClass(this.datepickerClass)}_subscribeForDatepickerOutputs(e){e.navigate.subscribe(i=>this.navigate.emit(i)),e.dateSelect.subscribe(i=>{this.dateSelect.emit(i),(this.autoClose===!0||this.autoClose==="inside")&&this.close()})}_writeModelValue(e){let i=this._parserFormatter.format(e);this._inputValue=i,this._elRef.nativeElement.value=i,this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(e)),this._onTouched())}_fromDateStruct(e){let i=e?new se(e.year,e.month,e.day):null;return this._calendar.isValid(i)?i:null}_setCloseHandlers(){this._destroyCloseHandlers$.next(),gi(this._ngZone,this._document,this.autoClose,()=>this.close(),this._destroyCloseHandlers$,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=U({type:t,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(i,o){i&1&&Z("input",function(a){return o.manualDateChange(a.target.value)})("change",function(a){return o.manualDateChange(a.target.value,!0)})("focus",function(){return o.onFocus()})("blur",function(){return o.onBlur()}),i&2&&Ne("disabled",o.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:[Ct([{provide:Zt,useExisting:ht(()=>t),multi:!0},{provide:Nn,useExisting:ht(()=>t),multi:!0},{provide:en,useExisting:Zn}]),Le]});let n=t;return n})();var Ku=new Date(1882,10,12),Qu=new Date(2174,10,25);var Ju=1e3*60*60*24;var tn=1080,Mr=24*tn,Nr=12*tn+793,qu=29*Mr+Nr,Yu=11*tn+204;var Zu=(()=>{let t=class t extends mi{fromModel(e){return e instanceof Date&&!isNaN(e.getTime())?this._fromNativeDate(e):null}toModel(e){return e&&J(e.year)&&J(e.month)&&J(e.day)?this._toNativeDate(e):null}_fromNativeDate(e){return{year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate()}}_toNativeDate(e){let i=new Date(e.year,e.month-1,e.day,12);return i.setFullYear(e.year),i}};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=He(t)))(o||t)}})(),t.\u0275prov=C({token:t,factory:t.\u0275fac});let n=t;return n})();var Pr=(()=>{let t=class t{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=e=>e,this.container=null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),lo=(()=>{let t=class t{constructor(){this._disabled=!1,this.nativeElement=d(Y).nativeElement,this.tabindex=0}set disabled(e){this._disabled=e===""||e===!0}get disabled(){return this._disabled}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=U({type:t,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(i,o){i&2&&(Ne("tabIndex",o.disabled?-1:o.tabindex),G("disabled",o.disabled))},inputs:{tabindex:"tabindex",disabled:"disabled"},standalone:!0});let n=t;return n})(),Xu=(()=>{let t=class t{constructor(){this.item=d(lo)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=U({type:t,selectors:[["button","ngbDropdownItem",""]],hostVars:1,hostBindings:function(i,o){i&2&&Ne("disabled",o.item.disabled)},standalone:!0});let n=t;return n})(),Ar=(()=>{let t=class t{constructor(){this.dropdown=d(co),this.nativeElement=d(Y).nativeElement}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=U({type:t,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(i,o,r){if(i&1&&Pe(r,lo,4),i&2){let a;ne(a=oe())&&(o.menuItems=a)}},hostAttrs:[1,"dropdown-menu"],hostVars:2,hostBindings:function(i,o){i&1&&Z("keydown.ArrowUp",function(a){return o.dropdown.onKeyDown(a)})("keydown.ArrowDown",function(a){return o.dropdown.onKeyDown(a)})("keydown.Home",function(a){return o.dropdown.onKeyDown(a)})("keydown.End",function(a){return o.dropdown.onKeyDown(a)})("keydown.Enter",function(a){return o.dropdown.onKeyDown(a)})("keydown.Space",function(a){return o.dropdown.onKeyDown(a)})("keydown.Tab",function(a){return o.dropdown.onKeyDown(a)})("keydown.Shift.Tab",function(a){return o.dropdown.onKeyDown(a)}),i&2&&G("show",o.dropdown.isOpen())},standalone:!0});let n=t;return n})(),qi=(()=>{let t=class t{constructor(){this.dropdown=d(co),this.nativeElement=d(Y).nativeElement}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=U({type:t,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(i,o){i&2&&(Re("aria-expanded",o.dropdown.isOpen()),G("show",o.dropdown.isOpen()))},standalone:!0});let n=t;return n})(),eh=(()=>{let t=class t extends qi{};t.\u0275fac=(()=>{let e;return function(o){return(e||(e=He(t)))(o||t)}})(),t.\u0275dir=U({type:t,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(i,o){i&1&&Z("click",function(){return o.dropdown.toggle()})("keydown.ArrowUp",function(a){return o.dropdown.onKeyDown(a)})("keydown.ArrowDown",function(a){return o.dropdown.onKeyDown(a)})("keydown.Home",function(a){return o.dropdown.onKeyDown(a)})("keydown.End",function(a){return o.dropdown.onKeyDown(a)})("keydown.Tab",function(a){return o.dropdown.onKeyDown(a)})("keydown.Shift.Tab",function(a){return o.dropdown.onKeyDown(a)}),i&2&&(Re("aria-expanded",o.dropdown.isOpen()),G("show",o.dropdown.isOpen()))},standalone:!0,features:[Ct([{provide:qi,useExisting:ht(()=>t)}]),Dn]});let n=t;return n})(),co=(()=>{let t=class t{constructor(){this._changeDetector=d(We),this._config=d(Pr),this._document=d(ve),this._ngZone=d(le),this._nativeElement=d(Y).nativeElement,this._destroyCloseHandlers$=new ee,this._bodyContainer=null,this._positioning=vi(),this.autoClose=this._config.autoClose,this._open=!1,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.container=this._config.container,this.openChange=new S}ngOnInit(){this.display||(this.display=this._nativeElement.closest(".navbar")?"static":"dynamic")}ngAfterContentInit(){this._ngZone.onStable.pipe(ge(1)).subscribe(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()})}ngOnChanges(e){if(e.container&&this._open&&this._applyContainer(this.container),e.placement&&!e.placement.firstChange&&(this._positioning.setOptions({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement}),this._applyPlacementClasses()),e.dropdownClass){let{currentValue:i,previousValue:o}=e.dropdownClass;this._applyCustomDropdownClass(i,o)}e.autoClose&&this._open&&(this.autoClose=e.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(),this.display==="dynamic"&&this._ngZone.runOutsideAngular(()=>{this._positioning.createPopper({hostElement:this._anchor.nativeElement,targetElement:this._bodyContainer||this._menu.nativeElement,placement:this.placement,updatePopperOptions:e=>this.popperOptions(yi([0,2])(e))}),this._applyPlacementClasses(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positionMenu())})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),gi(this._ngZone,this._document,this.autoClose,e=>{this.close(),e===0&&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(e){let{key:i}=e,o=this._getMenuElements(),r=-1,a=null,l=this._isEventFromToggle(e);if(!l&&o.length&&o.forEach((u,c)=>{u.contains(e.target)&&(a=u),u===to(this._document)&&(r=c)}),i===" "||i==="Enter"){a&&(this.autoClose===!0||this.autoClose==="inside")&&z(a,"click").pipe(ge(1)).subscribe(()=>this.close());return}if(i==="Tab"){if(e.target&&this.isOpen()&&this.autoClose)if(this._anchor.nativeElement===e.target){this.container==="body"&&!e.shiftKey?(this._menu.nativeElement.setAttribute("tabindex","0"),this._menu.nativeElement.focus(),this._menu.nativeElement.removeAttribute("tabindex")):e.shiftKey&&this.close();return}else if(this.container==="body"){let u=this._menu.nativeElement.querySelectorAll(oo);e.shiftKey&&e.target===u[0]?(this._anchor.nativeElement.focus(),e.preventDefault()):!e.shiftKey&&e.target===u[u.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else z(e.target,"focusout").pipe(ge(1)).subscribe(({relatedTarget:u})=>{this._nativeElement.contains(u)||this.close()});return}if(l||a){if(this.open(),o.length){switch(i){case"ArrowDown":r=Math.min(r+1,o.length-1);break;case"ArrowUp":if(this._isDropup()&&r===-1){r=o.length-1;break}r=Math.max(r-1,0);break;case"Home":r=0;break;case"End":r=o.length-1;break}o[r].focus()}e.preventDefault()}}_isDropup(){return this._nativeElement.classList.contains("dropup")}_isEventFromToggle(e){return this._anchor.nativeElement.contains(e.target)}_getMenuElements(){return this._menu?this._menu.menuItems.filter(({disabled:e})=>!e).map(({nativeElement:e})=>e):[]}_positionMenu(){let e=this._menu;this.isOpen()&&e&&(this.display==="dynamic"?(this._positioning.update(),this._applyPlacementClasses()):this._applyPlacementClasses(this._getFirstPlacement(this.placement)))}_getFirstPlacement(e){return Array.isArray(e)?e[0]:e.split(" ")[0]}_resetContainer(){this._menu&&this._nativeElement.appendChild(this._menu.nativeElement),this._bodyContainer&&(this._document.body.removeChild(this._bodyContainer),this._bodyContainer=null)}_applyContainer(e=null){if(this._resetContainer(),e==="body"){let i=this._menu.nativeElement,o=this._bodyContainer=this._bodyContainer||this._document.createElement("div");o.style.position="absolute",i.style.position="static",o.style.zIndex="1055",o.appendChild(i),this._document.body.appendChild(o)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(e,i){let o=this.container==="body"?this._bodyContainer:this._nativeElement;o&&(i&&o.classList.remove(i),e&&o.classList.add(e))}_applyPlacementClasses(e){if(this._menu){e||(e=this._getFirstPlacement(this.placement)),this._nativeElement.classList.remove("dropup","dropdown"),this.display==="static"?this._menu.nativeElement.setAttribute("data-bs-popper","static"):this._menu.nativeElement.removeAttribute("data-bs-popper");let i=e.search("^top")!==-1?"dropup":"dropdown";this._nativeElement.classList.add(i),this._bodyContainer&&(this._bodyContainer.classList.remove("dropup","dropdown"),this._bodyContainer.classList.add(i))}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=U({type:t,selectors:[["","ngbDropdown",""]],contentQueries:function(i,o,r){if(i&1&&(Pe(r,Ar,5),Pe(r,qi,5)),i&2){let a;ne(a=oe())&&(o._menu=a.first),ne(a=oe())&&(o._anchor=a.first)}},hostVars:2,hostBindings:function(i,o){i&2&&G("show",o.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:[0,"open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],standalone:!0,features:[Le]});let n=t;return n})();var xr=(()=>{let t=class t{constructor(){this._ngbConfig=d(Ft),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Ie=class{constructor(t,s,e){this.nodes=t,this.viewRef=s,this.componentRef=e}},ui=class{constructor(t){this._componentType=t,this._windowRef=null,this._contentRef=null,this._document=d(ve),this._applicationRef=d(Mi),this._injector=d(qe),this._viewContainerRef=d(zt),this._ngZone=d(le)}open(t,s,e=!1){this._windowRef||(this._contentRef=this._getContentRef(t,s),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));let{nativeElement:i}=this._windowRef.location,o=this._ngZone.onStable.pipe(ge(1),fn(()=>fe(this._ngZone,i,({classList:r})=>r.add("show"),{animation:e,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:o}}close(t=!1){return this._windowRef?fe(this._ngZone,this._windowRef.location.nativeElement,({classList:s})=>s.remove("show"),{animation:t,runningTransition:"stop"}).pipe(St(()=>{this._windowRef?.destroy(),this._contentRef?.viewRef?.destroy(),this._windowRef=null,this._contentRef=null})):Et(void 0)}_getContentRef(t,s){if(t)if(t instanceof pt){let e=t.createEmbeddedView(s);return this._applicationRef.attachView(e),new Ie([e.rootNodes],e)}else return new Ie([[this._document.createTextNode(`${t}`)]]);else return new Ie([])}},kr=(()=>{let t=class t{constructor(){this._document=d(ve)}hide(){let e=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,o=i.style,{overflow:r,paddingRight:a}=o;if(e>0){let l=parseFloat(window.getComputedStyle(i).paddingRight);o.paddingRight=`${l+e}px`}return o.overflow="hidden",()=>{e>0&&(o.paddingRight=a),o.overflow=r}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Br=(()=>{let t=class t{constructor(){this._nativeElement=d(Y).nativeElement,this._zone=d(le)}ngOnInit(){this._zone.onStable.asObservable().pipe(ge(1)).subscribe(()=>{fe(this._zone,this._nativeElement,(e,i)=>{i&&pi(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return fe(this._zone,this._nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=ae({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(i,o){i&2&&(Ye("modal-backdrop"+(o.backdropClass?" "+o.backdropClass:"")),G("show",!o.animation)("fade",o.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[de],decls:0,vars:0,template:function(i,o){},encapsulation:2});let n=t;return n})(),hi=class{update(t){}close(t){}dismiss(t){}},Ir=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],Fr=["animation","backdropClass"],Yi=class{_applyWindowOptions(t,s){Ir.forEach(e=>{ci(s[e])&&(t[e]=s[e])})}_applyBackdropOptions(t,s){Fr.forEach(e=>{ci(s[e])&&(t[e]=s[e])})}update(t){this._applyWindowOptions(this._windowCmptRef.instance,t),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,t)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(W(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(W(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(t,s,e,i){this._windowCmptRef=t,this._contentRef=s,this._backdropCmptRef=e,this._beforeDismiss=i,this._closed=new ee,this._dismissed=new ee,this._hidden=new ee,t.instance.dismissEvent.subscribe(o=>{this.dismiss(o)}),this.result=new Promise((o,r)=>{this._resolve=o,this._reject=r}),this.result.then(null,()=>{})}close(t){this._windowCmptRef&&(this._closed.next(t),this._resolve(t),this._removeModalElements())}_dismiss(t){this._dismissed.next(t),this._reject(t),this._removeModalElements()}dismiss(t){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(t);else{let s=this._beforeDismiss();Fs(s)?s.then(e=>{e!==!1&&this._dismiss(t)},()=>{}):s!==!1&&this._dismiss(t)}}_removeModalElements(){let t=this._windowCmptRef.instance.hide(),s=this._backdropCmptRef?this._backdropCmptRef.instance.hide():Et(void 0);t.subscribe(()=>{let{nativeElement:e}=this._windowCmptRef.location;e.parentNode.removeChild(e),this._windowCmptRef.destroy(),this._contentRef?.viewRef?.destroy(),this._windowCmptRef=null,this._contentRef=null}),s.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:e}=this._backdropCmptRef.location;e.parentNode.removeChild(e),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),$t(t,s).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},Zi=function(n){return n[n.BACKDROP_CLICK=0]="BACKDROP_CLICK",n[n.ESC=1]="ESC",n}(Zi||{}),Lr=(()=>{let t=class t{constructor(){this._document=d(ve),this._elRef=d(Y),this._zone=d(le),this._closed$=new ee,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new S,this.shown=new ee,this.hidden=new ee}get fullscreenClass(){return this.fullscreen===!0?" modal-fullscreen":wt(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(e){this.dismissEvent.emit(e)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(ge(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},o=fe(this._zone,e,()=>e.classList.remove("show"),i),r=fe(this._zone,this._dialogEl.nativeElement,()=>{},i),a=$t(o,r);return a.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),a}_show(){let e={animation:this.animation,runningTransition:"continue"},i=fe(this._zone,this._elRef.nativeElement,(r,a)=>{a&&pi(r),r.classList.add("show")},e),o=fe(this._zone,this._dialogEl.nativeElement,()=>{},e);$t(i,o).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{z(e,"keydown").pipe(W(this._closed$),De(o=>o.key==="Escape")).subscribe(o=>{this.keyboard?requestAnimationFrame(()=>{o.defaultPrevented||this._zone.run(()=>this.dismiss(Zi.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let i=!1;z(this._dialogEl.nativeElement,"mousedown").pipe(W(this._closed$),St(()=>i=!1),Oi(()=>z(e,"mouseup").pipe(W(this._closed$),ge(1))),De(({target:o})=>e===o)).subscribe(()=>{i=!0}),z(e,"click").pipe(W(this._closed$)).subscribe(({target:o})=>{e===o&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!i&&this._zone.run(()=>this.dismiss(Zi.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){let i=e.querySelector("[ngbAutofocus]"),o=so(e)[0];(i||o||e).focus()}}_restoreFocus(){let e=this._document.body,i=this._elWithFocus,o;i&&i.focus&&e.contains(i)?o=i:o=e,this._zone.runOutsideAngular(()=>{setTimeout(()=>o.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&fe(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=ae({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(i,o){if(i&1&&ft(Es,7),i&2){let r;ne(r=oe())&&(o._dialogEl=r.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(i,o){i&2&&(Re("aria-modal",!0)("aria-labelledby",o.ariaLabelledBy)("aria-describedby",o.ariaDescribedBy),Ye("modal d-block"+(o.windowClass?" "+o.windowClass:"")),G("fade",o.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:[de],ngContentSelectors:Xi,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(i,o){i&1&&(Qt(),O(0,"div",1,0)(2,"div",2),Jt(3),R()()),i&2&&Ye("modal-dialog"+(o.size?" modal-"+o.size:"")+(o.centered?" modal-dialog-centered":"")+o.fullscreenClass+(o.scrollable?" modal-dialog-scrollable":"")+(o.modalDialogClass?" "+o.modalDialogClass:""))},styles:[`ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden} +`],encapsulation:2});let n=t;return n})(),Hr=(()=>{let t=class t{constructor(){this._applicationRef=d(Mi),this._injector=d(qe),this._environmentInjector=d(Ci),this._document=d(ve),this._scrollBar=d(kr),this._activeWindowCmptHasChanged=new ee,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new S;let e=d(le);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){let i=this._windowCmpts[this._windowCmpts.length-1];ro(e,i.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(i.location.nativeElement)}})}_restoreScrollBar(){let e=this._scrollBarRestoreFn;e&&(this._scrollBarRestoreFn=null,e())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(e,i,o){let r=o.container instanceof HTMLElement?o.container:ci(o.container)?this._document.querySelector(o.container):this._document.body;if(!r)throw new Error(`The specified modal container "${o.container||"body"}" was not found in the DOM.`);this._hideScrollBar();let a=new hi;e=o.injector||e;let l=e.get(Ci,null)||this._environmentInjector,u=this._getContentRef(e,l,i,a,o),c=o.backdrop!==!1?this._attachBackdrop(r):void 0,f=this._attachWindowComponent(r,u.nodes),p=new Yi(f,u,c,o.beforeDismiss);return this._registerModalRef(p),this._registerWindowCmpt(f),p.hidden.pipe(ge(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),a.close=h=>{p.close(h)},a.dismiss=h=>{p.dismiss(h)},a.update=h=>{p.update(h)},p.update(o),this._modalRefs.length===1&&this._document.body.classList.add("modal-open"),c&&c.instance&&c.changeDetectorRef.detectChanges(),f.changeDetectorRef.detectChanges(),p}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e){let i=Yt(Br,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),e.appendChild(i.location.nativeElement),i}_attachWindowComponent(e,i){let o=Yt(Lr,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:i});return this._applicationRef.attachView(o.hostView),e.appendChild(o.location.nativeElement),o}_getContentRef(e,i,o,r,a){return o?o instanceof pt?this._createFromTemplateRef(o,r):wt(o)?this._createFromString(o):this._createFromComponent(e,i,o,r,a):new Ie([])}_createFromTemplateRef(e,i){let o={$implicit:i,close(a){i.close(a)},dismiss(a){i.dismiss(a)}},r=e.createEmbeddedView(o);return this._applicationRef.attachView(r),new Ie([r.rootNodes],r)}_createFromString(e){let i=this._document.createTextNode(`${e}`);return new Ie([[i]])}_createFromComponent(e,i,o,r,a){let l=qe.create({providers:[{provide:hi,useValue:r}],parent:e}),u=Yt(o,{environmentInjector:i,elementInjector:l}),c=u.location.nativeElement;return a.scrollable&&c.classList.add("component-host-scrollable"),this._applicationRef.attachView(u.hostView),new Ie([[c]],u.hostView,u)}_setAriaHidden(e){let i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(o=>{o!==e&&o.nodeName!=="SCRIPT"&&(this._ariaHiddenValues.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}),this._setAriaHidden(i))}_revertAriaHidden(){this._ariaHiddenValues.forEach((e,i)=>{e?i.setAttribute("aria-hidden",e):i.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(e){let i=()=>{let o=this._modalRefs.indexOf(e);o>-1&&(this._modalRefs.splice(o,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(i,i)}_registerWindowCmpt(e){this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(()=>{let i=this._windowCmpts.indexOf(e);i>-1&&(this._windowCmpts.splice(i,1),this._activeWindowCmptHasChanged.next())})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),th=(()=>{let t=class t{constructor(){this._injector=d(qe),this._modalStack=d(Hr),this._config=d(xr)}open(e,i={}){let o=ut(Ei(ut({},this._config),{animation:this._config.animation}),i);return this._modalStack.open(this._injector,e,o)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();var Wr={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};function Ur(n){let t=(n||"").trim();if(t.length===0)return[];let s=t.split(/\s+/).map(i=>i.split(":")).map(i=>Wr[i[0]]||i),e=s.filter(i=>i.includes("manual"));if(e.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(e.length===1&&s.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return e.length?[]:s}function Gr(n,t,s,e,i,o=0,r=0){let a=Ur(t);if(a.length===0)return()=>{};let l=new Set,u=[],c;function f(h,_){n.addEventListener(h,_),u.push(()=>n.removeEventListener(h,_))}function p(h,_){clearTimeout(c),_>0?c=setTimeout(h,_):h()}for(let[h,_]of a)_?(f(h,()=>{l.add(h),p(()=>l.size>0&&e(),o)}),f(_,()=>{l.delete(h),p(()=>l.size===0&&i(),r)})):f(h,()=>s()?p(i,r):p(e,o));return()=>u.forEach(h=>h())}var Vr=(()=>{let t=class t{constructor(){this._ngbConfig=d(Ft),this.autohide=!0,this.delay=5e3,this.ariaLive="polite"}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),$r=(n,t)=>{let{classList:s}=n;if(t)s.add("fade");else{s.add("show");return}return pi(n),s.add("show","showing"),()=>{s.remove("showing")}},jr=({classList:n})=>(n.add("showing"),()=>{n.remove("show","showing")}),zr=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=U({type:t,selectors:[["","ngbToastHeader",""]],standalone:!0});let n=t;return n})(),ih=(()=>{let t=class t{constructor(e){this.ariaLive=e,this._config=d(Vr),this._zone=d(le),this._element=d(Y),this.animation=this._config.animation,this.delay=this._config.delay,this.autohide=this._config.autohide,this.contentHeaderTpl=null,this.shown=new S,this.hidden=new S,this.ariaLive??=this._config.ariaLive}ngAfterContentInit(){this._zone.onStable.asObservable().pipe(ge(1)).subscribe(()=>{this._init(),this.show()})}ngOnChanges(e){"autohide"in e&&(this._clearTimeout(),this._init())}hide(){this._clearTimeout();let e=fe(this._zone,this._element.nativeElement,jr,{animation:this.animation,runningTransition:"stop"});return e.subscribe(()=>{this.hidden.emit()}),e}show(){let e=fe(this._zone,this._element.nativeElement,$r,{animation:this.animation,runningTransition:"continue"});return e.subscribe(()=>{this.shown.emit()}),e}_init(){this.autohide&&!this._timeoutID&&(this._timeoutID=setTimeout(()=>this.hide(),this.delay))}_clearTimeout(){this._timeoutID&&(clearTimeout(this._timeoutID),this._timeoutID=null)}};t.\u0275fac=function(i){return new(i||t)(wn("aria-live"))},t.\u0275cmp=ae({type:t,selectors:[["ngb-toast"]],contentQueries:function(i,o,r){if(i&1&&Pe(r,zr,7,pt),i&2){let a;ne(a=oe())&&(o.contentHeaderTpl=a.first)}},hostAttrs:["role","alert","aria-atomic","true",1,"toast"],hostVars:3,hostBindings:function(i,o){i&2&&(Re("aria-live",o.ariaLive),G("fade",o.animation))},inputs:{animation:"animation",delay:"delay",autohide:"autohide",header:"header"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbToast"],standalone:!0,features:[Le,de],ngContentSelectors:Xi,decls:5,vars:1,consts:()=>{let e;return e=$localize`:@@ngb.toast.close-aria:Close`,[["headerTpl",""],[1,"toast-header"],[1,"toast-body"],[1,"me-auto"],[3,"ngTemplateOutlet"],["type","button","aria-label",e,1,"btn-close",3,"click"]]},template:function(i,o){i&1&&(Qt(),x(0,Ss,2,1,"ng-template",null,0,Rt)(2,Cs,3,1,"div",1),O(3,"div",2),Jt(4),R()),i&2&&(b(2),ie(o.contentHeaderTpl||o.header?2:-1))},dependencies:[Mt],styles:[`ngb-toast{display:block}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem} +`],encapsulation:2});let n=t;return n})();var Kr=(()=>{let t=class t{constructor(){this._ngbConfig=d(Ft),this.autoClose=!0,this.placement="auto",this.popperOptions=e=>e,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Qr=0,Jr=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=ae({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(i,o){i&2&&(Ne("id",o.id),Ye("tooltip"+(o.tooltipClass?" "+o.tooltipClass:"")),G("fade",o.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[de],ngContentSelectors:Xi,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(i,o){i&1&&(Qt(),Me(0,"div",0),O(1,"div",1),Jt(2),R())},styles:[`ngb-tooltip-window{pointer-events:none;position:absolute}ngb-tooltip-window .tooltip-inner{pointer-events:auto}ngb-tooltip-window.bs-tooltip-top,ngb-tooltip-window.bs-tooltip-bottom{padding-left:0;padding-right:0}ngb-tooltip-window.bs-tooltip-start,ngb-tooltip-window.bs-tooltip-end{padding-top:0;padding-bottom:0} +`],encapsulation:2,changeDetection:0});let n=t;return n})(),nh=(()=>{let t=class t{constructor(){this._config=d(Kr),this.animation=this._config.animation,this.autoClose=this._config.autoClose,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.triggers=this._config.triggers,this.container=this._config.container,this.disableTooltip=this._config.disableTooltip,this.tooltipClass=this._config.tooltipClass,this.openDelay=this._config.openDelay,this.closeDelay=this._config.closeDelay,this.shown=new S,this.hidden=new S,this._nativeElement=d(Y).nativeElement,this._ngZone=d(le),this._document=d(ve),this._changeDetector=d(We),this._ngbTooltipWindowId=`ngb-tooltip-${Qr++}`,this._popupService=new ui(Jr),this._windowRef=null,this._positioning=vi()}set ngbTooltip(e){this._ngbTooltip=e,!e&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(e){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){let{windowRef:i,transition$:o}=this._popupService.open(this._ngbTooltip,e??this.tooltipContext,this.animation);this._windowRef=i,this._windowRef.setInput("animation",this.animation),this._windowRef.setInput("tooltipClass",this.tooltipClass),this._windowRef.setInput("id",this._ngbTooltipWindowId),this._getPositionTargetElement().setAttribute("aria-describedby",this._ngbTooltipWindowId),this.container==="body"&&this._document.body.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,baseClass:"bs-tooltip",updatePopperOptions:r=>this.popperOptions(yi([0,6])(r))}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),gi(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement],[this._nativeElement]),o.subscribe(()=>this.shown.emit())}}close(e=this.animation){this._windowRef!=null&&(this._getPositionTargetElement().removeAttribute("aria-describedby"),this._popupService.close(e).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 this._windowRef!=null}ngOnInit(){this._unregisterListenersFn=Gr(this._nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:e}){e&&this.isOpen()&&this._windowRef.setInput("tooltipClass",e.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(wt(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._nativeElement}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=U({type:t,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:[Le]});let n=t;return n})();var qr=(()=>{let t=class t{constructor(){this.highlightClass="ngb-highlight",this.accentSensitive=!0}ngOnChanges(e){!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);let i=It(this.result),o=Array.isArray(this.term)?this.term:[this.term],r=c=>this.accentSensitive?c:zn(c),a=o.map(c=>Ls(r(It(c)))).filter(c=>c),l=this.accentSensitive?i:zn(i),u=a.length?l.split(new RegExp(`(${a.join("|")})`,"gmi")):[i];if(this.accentSensitive)this.parts=u;else{let c=0;this.parts=u.map(f=>i.substring(c,c+=f.length))}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=ae({type:t,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},standalone:!0,features:[Le,de],decls:2,vars:0,consts:[[3,"class"]],template:function(i,o){i&1&&Se(0,Ns,2,1,null,null,Kt),i&2&&Oe(o.parts)},styles:[`.ngb-highlight{font-weight:700} +`],encapsulation:2,changeDetection:0});let n=t;return n})(),Yr=new yn("live announcer delay",{providedIn:"root",factory:()=>100});function Xn(n,t=!1){let s=n.body.querySelector("#ngb-live");return s==null&&t&&(s=n.createElement("div"),s.setAttribute("id","ngb-live"),s.setAttribute("aria-live","polite"),s.setAttribute("aria-atomic","true"),s.classList.add("visually-hidden"),n.body.appendChild(s)),s}var Zr=(()=>{let t=class t{constructor(){this._document=d(ve),this._delay=d(Yr)}ngOnDestroy(){let e=Xn(this._document);e&&e.parentElement.removeChild(e)}say(e){let i=Xn(this._document,!0),o=this._delay;if(i!=null){i.textContent="";let r=()=>i.textContent=e;o===null?r():setTimeout(r,o)}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Xr=(()=>{let t=class t{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=e=>e}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),ea=(()=>{let t=class t{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=It,this.selectEvent=new S,this.activeChangeEvent=new S}hasActive(){return this.activeIdx>-1&&this.activeIdx=0?this.id+"-"+this.activeIdx:void 0)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=ae({type:t,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(i,o){i&1&&Z("mousedown",function(a){return a.preventDefault()}),i&2&&(Ne("id",o.id),Ye("dropdown-menu show"+(o.popupClass?" "+o.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:[de],decls:4,vars:0,consts:[["rt",""],["type","button","role","option",1,"dropdown-item",3,"id","active"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"mouseenter","click","id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){i&1&&(x(0,As,1,2,"ng-template",null,0,Rt),Se(2,ks,2,9,"button",1,Kt)),i&2&&(b(2),Oe(o.results))},dependencies:[qr,Mt],encapsulation:2});let n=t;return n})(),ta=0,oh=(()=>{let t=class t{constructor(){this._nativeElement=d(Y).nativeElement,this._config=d(Xr),this._live=d(Zr),this._document=d(ve),this._ngZone=d(le),this._changeDetector=d(We),this._popupService=new ui(ea),this._positioning=vi(),this._subscription=null,this._closed$=new ee,this._inputValueBackup=null,this._inputValueForSelectOnExact=null,this._valueChanges$=z(this._nativeElement,"input").pipe(Je(e=>e.target.value)),this._resubscribeTypeahead$=new hn(null),this._windowRef=null,this.autocomplete="off",this.container=this._config.container,this.editable=this._config.editable,this.focusFirst=this._config.focusFirst,this.selectOnExact=this._config.selectOnExact,this.showHint=this._config.showHint,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.selectItem=new S,this.activeDescendant=null,this.popupId=`ngb-typeahead-${ta++}`,this._onTouched=()=>{},this._onChange=e=>{}}ngOnInit(){this._subscribeToUserInput()}ngOnChanges({ngbTypeahead:e}){e&&!e.firstChange&&(this._unsubscribeFromUserInput(),this._subscribeToUserInput())}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}writeValue(e){this._writeInputValue(this._formatItemForInput(e)),this.showHint&&(this._inputValueBackup=e)}setDisabledState(e){this._nativeElement.disabled=e}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead$.next(null),this._closePopup(),this.showHint&&this._inputValueBackup!==null&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return this._windowRef!=null}handleBlur(){this._resubscribeTypeahead$.next(null),this._onTouched()}handleKeyDown(e){if(this.isPopupOpen())switch(e.key){case"ArrowDown":e.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case"ArrowUp":e.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case"Enter":case"Tab":{let i=this._windowRef.instance.getActive();ci(i)&&(e.preventDefault(),e.stopPropagation(),this._selectResult(i)),this._closePopup();break}}}_openPopup(){if(!this.isPopupOpen()){this._inputValueBackup=this._nativeElement.value;let{windowRef:e}=this._popupService.open();this._windowRef=e,this._windowRef.setInput("id",this.popupId),this._windowRef.setInput("popupClass",this.popupClass),this._windowRef.instance.selectEvent.subscribe(i=>this._selectResultClosePopup(i)),this._windowRef.instance.activeChangeEvent.subscribe(i=>this.activeDescendant=i),this.container==="body"&&(this._windowRef.location.nativeElement.style.zIndex="1055",this._document.body.appendChild(this._windowRef.location.nativeElement)),this._changeDetector.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._windowRef&&(this._positioning.createPopper({hostElement:this._nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,updatePopperOptions:i=>this.popperOptions(yi([0,2])(i))}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update()))}),gi(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._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(e){let i=!1;this.selectItem.emit({item:e,preventDefault:()=>{i=!0}}),this._resubscribeTypeahead$.next(null),i||(this.writeValue(e),this._onChange(e))}_selectResultClosePopup(e){this._selectResult(e),this._closePopup()}_showHint(){if(this.showHint&&this._windowRef?.instance.hasActive()&&this._inputValueBackup!=null){let e=this._inputValueBackup.toLowerCase(),i=this._formatItemForInput(this._windowRef.instance.getActive());e===i.substring(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+i.substring(this._inputValueBackup.length)),this._nativeElement.setSelectionRange.apply(this._nativeElement,[this._inputValueBackup.length,i.length])):this._writeInputValue(i)}}_formatItemForInput(e){return e!=null&&this.inputFormatter?this.inputFormatter(e):It(e)}_writeInputValue(e){this._nativeElement.value=It(e)}_subscribeToUserInput(){let e=this._valueChanges$.pipe(St(i=>{this._inputValueBackup=this.showHint?i:null,this._inputValueForSelectOnExact=this.selectOnExact?i:null,this._onChange(this.editable?i:void 0)}),this.ngbTypeahead?this.ngbTypeahead:()=>Et([]));this._subscription=this._resubscribeTypeahead$.pipe(Oi(()=>e)).subscribe(i=>{!i||i.length===0?this._closePopup():this.selectOnExact&&i.length===1&&this._formatItemForInput(i[0])===this._inputValueForSelectOnExact?(this._selectResult(i[0]),this._closePopup()):(this._openPopup(),this._windowRef.setInput("focusFirst",this.focusFirst),this._windowRef.setInput("results",i),this._windowRef.setInput("term",this._nativeElement.value),this.resultFormatter&&this._windowRef.setInput("formatter",this.resultFormatter),this.resultTemplate&&this._windowRef.setInput("resultTemplate",this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint());let o=i?i.length:0;this._live.say(o===0?"No results available":`${o} result${o===1?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275dir=U({type:t,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox"],hostVars:7,hostBindings:function(i,o){i&1&&Z("blur",function(){return o.handleBlur()})("keydown",function(a){return o.handleKeyDown(a)}),i&2&&(Ne("autocomplete",o.autocomplete),Re("aria-autocomplete",o.showHint?"both":"list")("aria-activedescendant",o.activeDescendant)("aria-owns",o.isPopupOpen()?o.popupId:null)("aria-expanded",o.isPopupOpen()),G("open",o.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:[Ct([{provide:Zt,useExisting:ht(()=>t),multi:!0}]),Le]});let n=t;return n})();function ah(n){return n!==null}function lh(n){return typeof n=="string"&&n.length>0}function ch(n){return t=>!n(t)}function dh(n){return t=>t.length>=n}function uh(n){return!!n}function hh(n){return t=>t instanceof n}function ph(n,t,s){return s.indexOf(n)===t}export{$u as a,Ks as b,ju as c,fi as d,Qs as e,mi as f,ao as g,Zn as h,zu as i,Zu as j,lo as k,Xu as l,Ar as m,eh as n,co as o,hi as p,th as q,ih as r,nh as s,oh as t,ah as u,lh as v,ch as w,dh as x,uh as y,hh as z,ph as A}; diff --git a/public/apps/webapp-schulverwaltung/chunk-GI4AZI25.js b/public/apps/webapp-schulverwaltung/chunk-GI4AZI25.js new file mode 100644 index 00000000..68cf4516 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-GI4AZI25.js @@ -0,0 +1,2 @@ +import{d}from"./chunk-Q5U6YZUT.js";import{a as lt}from"./chunk-N6FFLIGM.js";import{a as ut,b as dt,c as mt}from"./chunk-33NXTXD7.js";import{u as st,w as ct,z as Pe}from"./chunk-FTRAQKUW.js";import{$ as re,$a as x,Ac as rt,Bb as m,Bc as De,Bd as de,Cb as h,Cc as L,Db as z,E as V,Fb as ke,G as ne,Ga as T,Gc as it,Gd as at,Hd as le,Ia as b,Id as me,J as Ne,Ja as Ve,L as I,N as W,Nc as ot,O as Te,P as Be,Sa as l,Sb as Ze,Ta as f,Tb as et,Ua as Se,Va as U,W as D,Wa as X,Wb as tt,Wc as F,Xb as nt,Ya as oe,Z as k,_a as J,ab as Ge,bb as Qe,ca as je,cb as Ue,db as Xe,e as Ee,ec as ce,f as Ae,fb as Je,g as H,ga as qe,gb as Ke,ha as G,hb as ze,ia as Q,ib as ae,jb as _,k as We,kb as K,lb as C,m as u,mb as Ie,n as Re,q as $e,sc as ue,ta as He,tb as se,ua as c,va as ie,w as Ye}from"./chunk-T7QWSMKM.js";var pt=function(e){return function(t){return!e(t)}};function Jt(e){return!e}function Kt(e){return!!(e&&e.IsComment)}function zt(e){return!!(e&&e.IsIncident)}function pe(e){return!!(e&&(e.IsAbsence||e.IsDispensation||e.IsHalfDay))}function Ce(e,t){return!!(e&&t&&e.Id===t.absencePresenceTypeId)}function Oe(e,t){return!!(e&&t&&t===e.checkableAbsenceStateId)}function ft(e,t,n){return!!(Jt(t)&&e.ConfirmationStateId===null||Kt(t)||zt(t)||pe(t)&&e.ConfirmationStateId===n.unconfirmedAbsenceStateId||Oe(n,e.ConfirmationStateId))}function gr(e,t){return e?.IsAbsence?t.unconfirmedAbsenceStateId:null}var S=function(e){return e.Present="present",e.Unapproved="unapproved",e.Absent="absent",e}(S||{});function Zt(e){switch(e){case S.Absent:return"cancel";case S.Unapproved:return"help";default:return"check_circle"}}var fe=class{constructor(t,n,r,i){this.lessonPresence=t,this.presenceType=n,this.precedingAbsences=r,this.confirmationState=i,this.studentFullName=t.StudentFullName}get presenceCategory(){return Oe(this.settings,this.confirmationState&&Number(this.confirmationState.Key))?S.Unapproved:pe(this.presenceType)?S.Absent:S.Present}get nextPresenceCategory(){return this.presenceCategory===S.Absent?S.Present:S.Absent}getNextPresenceType(t){switch(this.nextPresenceCategory){case S.Absent:return this.presenceCategory===S.Unapproved?this.presenceType:t.find(n=>Ce(n,this.settings))||null;default:return null}}get canChangePresenceType(){return ft(this.lessonPresence,this.presenceType,this.settings)}get canChangeIncident(){return!pe(this.presenceType)}get showDesignation(){return!this.canChangePresenceType||this.presenceCategory===S.Absent&&!Ce(this.presenceType,this.settings)||this.presenceCategory===S.Unapproved}get presenceCategoryIcon(){return Zt(this.presenceCategory)}get settings(){return window.schulverwaltung.settings}};function v(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function ht(e,t){let n=d(e);return isNaN(t)?v(e,NaN):(t&&n.setDate(n.getDate()+t),n)}var en=Math.pow(10,8)*24*60*60*1e3,Sr=-en,he=6048e5,gt=864e5,Ir=6e4,kr=36e5,Dr=1e3;var tn=3600;var yt=tn*24,Pr=yt*7,nn=yt*365.2425,rn=nn/12,Cr=rn*3;var on={};function E(){return on}function O(e,t){let n=E(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=d(e),o=i.getDay(),a=(o=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Z(e){let t=d(e);return t.setHours(0,0,0,0),t}function Me(e){let t=d(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function ye(e,t){let n=Z(e),r=Z(t),i=+n-Me(n),o=+r-Me(r);return Math.round((i-o)/gt)}function bt(e){let t=ge(e),n=v(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),R(n)}function xt(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function _t(e){if(!xt(e)&&typeof e!="number")return!1;let t=d(e);return!isNaN(Number(t))}function wt(e){let t=d(e),n=v(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}var an={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"}},vt=(e,t,n)=>{let r,i=an[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function be(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var sn={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},cn={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},un={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Tt={date:be({formats:sn,defaultWidth:"full"}),time:be({formats:cn,defaultWidth:"full"}),dateTime:be({formats:un,defaultWidth:"full"})};var dn={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},St=(e,t,n,r)=>dn[e];function B(e){return(t,n)=>{let r=n?.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){let a=e.defaultFormattingWidth||e.defaultWidth,p=n?.width?String(n.width):a;i=e.formattingValues[p]||e.formattingValues[a]}else{let a=e.defaultWidth,p=n?.width?String(n.width):e.defaultWidth;i=e.values[p]||e.values[a]}let o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}var ln={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},mn={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},pn={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"]},fn={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"]},hn={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"}},gn={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"}},yn=(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},It={ordinalNumber:yn,era:B({values:ln,defaultWidth:"wide"}),quarter:B({values:mn,defaultWidth:"wide",argumentCallback:e=>e-1}),month:B({values:pn,defaultWidth:"wide"}),day:B({values:fn,defaultWidth:"wide"}),dayPeriod:B({values:hn,defaultWidth:"wide",formattingValues:gn,defaultFormattingWidth:"wide"})};function j(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;let a=o[0],p=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],g=Array.isArray(p)?xn(p,y=>y.test(a)):bn(p,y=>y.test(a)),P;P=e.valueCallback?e.valueCallback(g):g,P=n.valueCallback?n.valueCallback(P):P;let w=t.slice(a.length);return{value:P,rest:w}}}function bn(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function xn(e,t){for(let n=0;n{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],o=t.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;let p=t.slice(i.length);return{value:a,rest:p}}}var _n=/^(\d+)(th|st|nd|rd)?/i,wn=/\d+/i,vn={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},Tn={any:[/^b/i,/^(a|c)/i]},Sn={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},In={any:[/1/i,/2/i,/3/i,/4/i]},kn={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},Dn={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]},Pn={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},Cn={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]},On={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},Mn={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}},Dt={ordinalNumber:kt({matchPattern:_n,parsePattern:wn,valueCallback:e=>parseInt(e,10)}),era:j({matchPatterns:vn,defaultMatchWidth:"wide",parsePatterns:Tn,defaultParseWidth:"any"}),quarter:j({matchPatterns:Sn,defaultMatchWidth:"wide",parsePatterns:In,defaultParseWidth:"any",valueCallback:e=>e+1}),month:j({matchPatterns:kn,defaultMatchWidth:"wide",parsePatterns:Dn,defaultParseWidth:"any"}),day:j({matchPatterns:Pn,defaultMatchWidth:"wide",parsePatterns:Cn,defaultParseWidth:"any"}),dayPeriod:j({matchPatterns:On,defaultMatchWidth:"any",parsePatterns:Mn,defaultParseWidth:"any"})};var Le={code:"en-US",formatDistance:vt,formatLong:Tt,formatRelative:St,localize:It,match:Dt,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Pt(e){let t=d(e);return ye(t,wt(t))+1}function Ct(e){let t=d(e),n=+R(t)-+bt(t);return Math.round(n/he)+1}function xe(e,t){let n=d(e),r=n.getFullYear(),i=E(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=v(e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);let p=O(a,t),g=v(e,0);g.setFullYear(r,0,o),g.setHours(0,0,0,0);let P=O(g,t);return n.getTime()>=p.getTime()?r+1:n.getTime()>=P.getTime()?r:r-1}function Ot(e,t){let n=E(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=xe(e,t),o=v(e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),O(o,t)}function Mt(e,t){let n=d(e),r=+O(n,t)-+Ot(n,t);return Math.round(r/he)+1}function s(e,t){let n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}var M={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return s(t==="yy"?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t==="M"?String(n+1):s(n+1,2)},d(e,t){return s(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return s(e.getHours()%12||12,t.length)},H(e,t){return s(e.getHours(),t.length)},m(e,t){return s(e.getMinutes(),t.length)},s(e,t){return s(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return s(i,t.length)}};var q={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Fe={G:function(e,t,n){let r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){let r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return M.y(e,t)},Y:function(e,t,n,r){let i=xe(e,r),o=i>0?i:1-i;if(t==="YY"){let a=o%100;return s(a,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):s(o,t.length)},R:function(e,t){let n=ge(e);return s(n,t.length)},u:function(e,t){let n=e.getFullYear();return s(n,t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return s(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return s(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){let r=e.getMonth();switch(t){case"M":case"MM":return M.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){let r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return s(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){let i=Mt(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):s(i,t.length)},I:function(e,t,n){let r=Ct(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):s(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):M.d(e,t)},D:function(e,t,n){let r=Pt(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):s(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){let i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return s(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){let i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return s(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return s(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){let i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){let r=e.getHours(),i;switch(r===12?i=q.noon:r===0?i=q.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){let r=e.getHours(),i;switch(r>=17?i=q.evening:r>=12?i=q.afternoon:r>=4?i=q.morning:i=q.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return M.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):M.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):s(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):s(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):M.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):M.s(e,t)},S:function(e,t){return M.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Ft(r);case"XXXX":case"XX":return $(r);case"XXXXX":case"XXX":default:return $(r,":")}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"x":return Ft(r);case"xxxx":case"xx":return $(r);case"xxxxx":case"xxx":default:return $(r,":")}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Lt(r,":");case"OOOO":default:return"GMT"+$(r,":")}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Lt(r,":");case"zzzz":default:return"GMT"+$(r,":")}},t:function(e,t,n){let r=Math.trunc(e.getTime()/1e3);return s(r,t.length)},T:function(e,t,n){let r=e.getTime();return s(r,t.length)}};function Lt(e,t=""){let n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+s(o,2)}function Ft(e,t){return e%60===0?(e>0?"-":"+")+s(Math.abs(e)/60,2):$(e,t)}function $(e,t=""){let n=e>0?"-":"+",r=Math.abs(e),i=s(Math.trunc(r/60),2),o=s(r%60,2);return n+i+t+o}var Et=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},At=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Ln=(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Et(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Et(r,t)).replace("{{time}}",At(i,t))},Wt={p:At,P:Ln};var Fn=/^D+$/,En=/^Y+$/,An=["D","DD","YY","YYYY"];function Rt(e){return Fn.test(e)}function $t(e){return En.test(e)}function Yt(e,t,n){let r=Wn(e,t,n);if(console.warn(r),An.includes(e))throw new RangeError(r)}function Wn(e,t,n){let r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Rn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$n=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Yn=/^'([^]*?)'?$/,Nn=/''/g,Bn=/[a-zA-Z]/;function A(e,t,n){let r=E(),i=n?.locale??r.locale??Le,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,p=d(e);if(!_t(p))throw new RangeError("Invalid time value");let g=t.match($n).map(w=>{let y=w[0];if(y==="p"||y==="P"){let ve=Wt[y];return ve(w,i.formatLong)}return w}).join("").match(Rn).map(w=>{if(w==="''")return{isToken:!1,value:"'"};let y=w[0];if(y==="'")return{isToken:!1,value:jn(w)};if(Fe[y])return{isToken:!0,value:w};if(y.match(Bn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+y+"`");return{isToken:!1,value:w}});i.localize.preprocessor&&(g=i.localize.preprocessor(p,g));let P={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return g.map(w=>{if(!w.isToken)return w.value;let y=w.value;(!n?.useAdditionalWeekYearTokens&&$t(y)||!n?.useAdditionalDayOfYearTokens&&Rt(y))&&Yt(y,t,String(e));let ve=Fe[y[0]];return ve(p,y,i.localize,P)}).join("")}function jn(e){let t=e.match(Yn);return t?t[1].replace(Nn,"'"):e}function _o(e,t){return ht(e,-t)}var Y=class{constructor(t){if(this.absences=t,t.length===0)throw new Error("Absences array is empty");this.date=Z(this.absences[0].LessonDateTimeFrom),this.dateString=A(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}};function ko(e,t){return e===null&&t===null||e!==null&&t!==null&&e.LessonRef.Id===t.LessonRef.Id&&e.EventDesignation===t.EventDesignation&&e.StudyClassNumber===t.StudyClassNumber&&e.TeacherInformation===t.TeacherInformation&&e.LessonDateTimeFrom.getTime()===t.LessonDateTimeFrom.getTime()&&e.LessonDateTimeTo.getTime()===t.LessonDateTimeTo.getTime()}function qn(e,t){return e?t.filter(n=>e.lessons.map(r=>r.LessonRef.Id).indexOf(n.LessonRef.Id)>=0).sort(Gn):[]}function Hn(e,t,n){return de(e.filter(r=>r.StudentRef.Id===t.StudentRef.Id&&r.LessonRef.From&&r.LessonRef.From.toDateString()===n?.LessonDateTimeFrom.toDateString()&&r.LessonRef.FromVn(e,o,n,r,i))}function Vn(e,t,n,r,i){let o=null;t.TypeRef.Id&&(o=n.find(g=>g.Id===t.TypeRef.Id)||null);let a=Hn(i,t,e),p;return t.ConfirmationStateId&&(p=r.find(g=>g.Key===t.ConfirmationStateId)),new fe(t,o,a,p)}function Nt(e,t){let n=e.LessonDateTimeFrom.getTime(),r=t.LessonDateTimeFrom.getTime();return n-r===0?e.LessonDateTimeTo.getTime()-t.LessonDateTimeTo.getTime():n-r}function Gn(e,t){return e.StudentFullName.localeCompare(t.StudentFullName)}function Qn(e,t){return e.LessonRef.From&&e.LessonRef.To&&t.LessonRef.From&&t.LessonRef.To?e.LessonRef.From.getTime()-t.LessonRef.From.getTime()===0?e.LessonRef.To.getTime()-t.LessonRef.To.getTime():e.LessonRef.From.getTime()-t.LessonRef.From.getTime():0}var _e=class extends Error{constructor(t,n){super(`TypeScript thought we could never end up here +${n}`)}};function Ao(e){let t=Xn(e);return Object.keys(t).reduce((n,r)=>(Object.keys(t[r]).forEach(i=>{n=[...n,new Y(t[r][i].sort(Nt))]}),n),[])}function Wo(e,t){return[...e].sort(Un(t))}function we(e){return e.reduce((t,n)=>t.concat(n.absences),[])}function Ro(e,t){return e.filter(n=>!t.some(({lessonIds:r,personId:i})=>r.includes(n.LessonRef.Id)&&i===n.StudentRef.Id))}function $o(e,t){return de([...e,...t],"Id")}function Un(e){return(t,n)=>{switch(e.primarySortKey){case"date":{let r=t.date.getTime(),i=n.date.getTime();return r===i?t.studentFullName.localeCompare(n.studentFullName):e.ascending?r-i:i-r}case"name":{let r=e.ascending?t.studentFullName.localeCompare(n.studentFullName):n.studentFullName.localeCompare(t.studentFullName);return r===0?n.date.getTime()-t.date.getTime():r}default:throw new _e(e.primarySortKey,"Unhandled sort criteria")}}}function Xn(e){return e.reduce((t,n)=>{let r=A(n.LessonDateTimeFrom,"yyyy-MM-dd"),i=n.StudentRef.Id;return t[r]||(t[r]={}),t[r][i]||(t[r][i]=[]),t[r][i].push(n),t},{})}var ee=function(e){return e.ToggleSelection="TOGGLE",e.ClearSelection="CLEAR",e}(ee||{}),Bt=(()=>{let t=class t{constructor(){this.action$=new Ee,this.selection$=$e(this.action$.pipe(Ne(this.reduceSelection.bind(this),[]),W([])),{connector:()=>new H(1)}),this.selectionSub=this.selection$.connect()}ngOnDestroy(){this.selectionSub.unsubscribe()}toggle(r){this.action$.next({type:ee.ToggleSelection,payload:r})}clear(r=null){this.action$.next({type:ee.ClearSelection,payload:r})}isSelected$(r){return this.selection$.pipe(u(i=>i.includes(r)),ne())}reduceSelection(r,i){switch(i.type){case ee.ToggleSelection:return r.includes(i.payload)?r.filter(o=>o!==i.payload):[...r,i.payload];case ee.ClearSelection:return i.payload||[];default:return r}}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})();function Ho(e){let t=e.reduce((n,r)=>(n[r.StudentRef.Id]||(n[r.StudentRef.Id]=[]),n[r.StudentRef.Id].push(r.LessonRef.Id),n),{});return Object.keys(t).map(n=>({personIds:[Number(n)],lessonIds:t[n]}))}function jt(e){let t={};return e.forEach(n=>{t[n.StudentRef.Id]||(t[n.StudentRef.Id]={}),t[n.StudentRef.Id][String(n.TypeRef.Id)]||(t[n.StudentRef.Id][String(n.TypeRef.Id)]=[]),t[n.StudentRef.Id][String(n.TypeRef.Id)].push(n.LessonRef.Id)}),Object.keys(t).reduce((n,r)=>[...n,...Object.keys(t[r]).map(i=>({personId:Number(r),presenceTypeId:i==="null"?null:Number(i),lessonIds:t[r][String(i)]}))],[])}function Vo(e){return e.slice().sort((t,n)=>t.LessonDateTimeFrom.getTime()-n.LessonDateTimeFrom.getTime())}function Go(e){return`${e.EventDesignation}, ${A(e.LessonDateTimeFrom,"dd.MM.yyyy")}, ${A(e.LessonDateTimeFrom,"HH:mm")}-${A(e.LessonDateTimeTo,"HH:mm")}`}var na=(()=>{let t=class t extends Bt{constructor(r){super(),this.settings=r,this.selectedIds$=this.selection$.pipe(u(te),u(({openAbsencesEntries:i,lessonPresences:o})=>jt([...we(i),...o])),I(1)),this.selectedLessons$=this.selection$.pipe(u(te),u(({openAbsencesEntries:i,lessonPresences:o})=>[...we(i),...o]),I(1)),this.selectedWithoutPresenceType$=this.selection$.pipe(u(te),u(({openAbsencesEntries:i,lessonPresences:o})=>[...we(i),...o].filter(a=>a.TypeRef.Id===this.settings.absencePresenceTypeId)))}clearNonOpenAbsencesEntries(){this.selection$.pipe(V(1),u(te)).subscribe(({openAbsencesEntries:r})=>this.clear(r))}clearNonLessonPresences(){this.selection$.pipe(V(1),u(te)).subscribe(({lessonPresences:r})=>this.clear(r))}};t.\u0275fac=function(i){return new(i||t)(k(F))},t.\u0275prov=D({token:t,factory:t.\u0275fac});let e=t;return e})();function te(e){return{openAbsencesEntries:e.filter(Pe(Y)),lessonPresences:e.filter(pt(Pe(Y)))}}function qt(e){return e.slice().sort((t,n)=>t.Sort-n.Sort)}function ia(e){return e.map(t=>({Key:t.Id,Value:t.Designation||""}))}function oa(e,t){return e.map(n=>Object.assign(n,{Group:t}))}var Ht=it({Id:De,Active:L,Designation:ot(rt),IsAbsence:L,IsComment:L,IsDispensation:L,IsIncident:L,IsHalfDay:L,NeedsConfirmation:L,Sort:De});var Vt=(()=>{let t=class t extends dt{constructor(r,i){super(r,i,Ht,"PresenceTypes")}};t.\u0275fac=function(i){return new(i||t)(k(ce),k(F))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Gt=(()=>{let t=class t{constructor(r,i){this.restService=r,this.settings=i,this.presenceTypes$=this.loadPresenceTypes().pipe(I(1)),this.activePresenceTypes$=this.presenceTypes$.pipe(u(this.filterActiveTypes.bind(this)),I(1)),this.confirmationTypes$=this.presenceTypes$.pipe(u(this.filterConfirmationTypes.bind(this)),I(1)),this.incidentTypes$=this.presenceTypes$.pipe(u(this.filterIncidentTypes.bind(this)),I(1)),this.displayedTypes$=this.presenceTypes$.pipe(u(this.filterDisplayedTypes.bind(this)),I(1)),this.halfDayActive$=this.presenceTypes$.pipe(u(this.isHalfDayActive.bind(this)),W(!1),ne(),I(1))}getPresenceType(r){return this.presenceTypes$.pipe(u(i=>{let o=i.find(a=>a.Id===r);if(!o)throw new Error("presence type not found");return o}))}loadPresenceTypes(){return this.restService.getList().pipe(u(qt))}filterActiveTypes(r){return r.filter(i=>i.Active)}filterConfirmationTypes(r){return r.filter(i=>i.NeedsConfirmation&&i.Active&&i.Id!==this.settings.absencePresenceTypeId)}filterIncidentTypes(r){return r.filter(i=>i.IsIncident&&i.Active)}filterDisplayedTypes(r){return r.filter(i=>i.Id!==this.settings.absencePresenceTypeId)}isHalfDayActive(r){return!!r.find(i=>i.Id===this.settings.halfDayPresenceTypeId)?.Active}};t.\u0275fac=function(i){return new(i||t)(k(Vt),k(F))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var ba=(()=>{let t=class t{constructor(r,i){this.http=r,this.settings=i}editLessonPresences(r,i,o,a,p){let g={LessonIds:r,PersonIds:i};return o!==void 0&&(g.PresenceTypeId=o),a!==void 0&&(g.ConfirmationValue=a),this.http.put(`${this.settings.apiUrl}/LessonPresences/Edit`,g,p).pipe(u(()=>{}))}removeLessonPresences(r,i,o){return this.http.put(`${this.settings.apiUrl}/LessonPresences/Reset`,{LessonIds:r,PersonIds:i,WithComment:!0},o).pipe(u(()=>{}))}confirmLessonPresences(r,i,o,a){let p={LessonIds:r,PersonIds:i,AbsenceTypeId:o,ConfirmationValue:a};return this.http.put(`${this.settings.apiUrl}/LessonAbsences/Confirm`,p).pipe(u(()=>{}))}};t.\u0275fac=function(i){return new(i||t)(k(ce),k(F))},t.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Ut=(()=>{let t=class t{constructor(r){this.translate=r}transform(r){if(!r)return"";let i=ye(r,new Date);return this.translate.instant(`shared.daysDifference.${this.getKey(i)}`,{count:Math.abs(i)})}getKey(r){return r===0?"today":r===1?"tomorrow":r===-1?"yesterday":r>0?"in":"ago"}};t.\u0275fac=function(i){return new(i||t)(ie(at,16))},t.\u0275pipe=je({name:"bkdDaysDifference",type:t,pure:!0,standalone:!0});let e=t;return e})();function va(e){return e.length===0}function Xt(e){return Array.isArray(e)}var Zn=["checkbox"];function er(e,t){if(e&1&&Se(0,"bkd-reports-link",17),e&2){let n=x(4);b("reports",n.reports)("disableIfUnavailable",!0)}}function tr(e,t){if(e&1&&(l(0,"a",18),m(1,"async"),l(2,"i",13),_(3,"mail"),f()()),e&2){let n=x(4);Xe("href","mailto:",h(1,2,n.mailTo$),"",He)}}function nr(e,t){if(e&1&&(l(0,"div",19),_(1),f()),e&2){let n=x(4);c(),C(" ",n.defaultAbsenceSelectionMessage," ")}}function rr(e,t){if(e&1){let n=oe();l(0,"div",7),J("click",function(i){G(n);let o=ae(3),a=x(3);return Q(a.onRowClick(i,o))}),l(1,"div",8)(2,"input",9,2),m(4,"async"),J("change",function(i){G(n);let o=x(3);return Q(o.toggleAll(i.target==null?null:i.target.checked))}),f()(),l(5,"div",10),_(6),m(7,"translate"),f(),l(8,"div",11)(9,"a",12),m(10,"async"),l(11,"i",13),_(12,"edit"),f()(),T(13,er,1,2,"bkd-reports-link",14)(14,tr,4,4,"a",15),f(),T(15,nr,2,1,"div",16),m(16,"async"),f()}if(e&2){let n,r,i=x(3);c(2),b("checked",h(4,8,i.allSelected$)),c(4),K(h(7,10,"open-absences.detail.all")),c(3),Ve("disabled",((n=h(10,12,i.selectionService==null?null:i.selectionService.selection$))==null?null:n.length)===0),Ue("routerLink",i.confirmLink),c(4),b("ngIf",i.reports),c(),b("ngIf",i.displayEmail),c(),b("ngIf",i.defaultAbsenceSelectionMessage&&((r=h(16,14,i.selectionService==null?null:i.selectionService.selectedWithoutPresenceType$))==null?null:r.length)||!1)}}function ir(e,t){if(e&1){let n=oe();l(0,"div",8)(1,"input",9,3),m(3,"async"),J("change",function(){G(n);let i=x().$implicit,o=x(3);return Q(o.selectionService==null?null:o.selectionService.toggle(i))}),f()()}if(e&2){let n=x().$implicit,r=x(3);c(),b("checked",h(3,1,r.selectionService==null?null:r.selectionService.isSelected$(n)))}}function or(e,t){if(e&1&&(U(0),_(1),X()),e&2){let n=x().$implicit;c(),C(", ",n.StudyClassNumber,"")}}function ar(e,t){if(e&1&&(l(0,"div",32),_(1),f()),e&2){let n=x().bkdLet;c(),C(" ",n," ")}}function sr(e,t){e&1&&(l(0,"div",33),_(1),m(2,"translate"),f()),e&2&&(c(),C(" ",h(2,1,"my-absences.show.confirm-presence-type")," "))}function cr(e,t){if(e&1&&(U(0),T(1,ar,2,1,"div",30)(2,sr,3,3,"div",31),X()),e&2){let n=t.bkdLet,r=x(4);c(),b("ngIf",n),c(),b("ngIf",r.displayPresenceType&&!n&&r.defaultAbsenceSelectionMessage)}}function ur(e,t){if(e&1){let n=oe();l(0,"div",20),J("click",function(i){let o=G(n).index,a=x(3);return Q(a.onRowClick(i,o))}),T(1,ir,4,3,"div",21),m(2,"async"),l(3,"div",22),_(4),T(5,or,2,1,"ng-container",23),f(),l(6,"div",24),_(7),m(8,"date"),m(9,"date"),f(),l(10,"div",25),_(11),f(),T(12,cr,3,2,"ng-container",26),m(13,"async"),l(14,"div",27),_(15),m(16,"date"),f(),l(17,"div",28),_(18),m(19,"bkdDaysDifference"),f(),l(20,"div",29),_(21),m(22,"date"),m(23,"bkdDaysDifference"),f()()}if(e&2){let n=t.$implicit,r=x(3);c(),b("ngIf",h(2,11,r.editable$)),c(3),C(" ",n.EventDesignation,""),c(),b("ngIf",n.StudyClassNumber),c(2),Ie(" ",z(8,13,n.LessonDateTimeFrom,"HH:mm"),"\u2013",z(9,16,n.LessonDateTimeTo,"HH:mm")," "),c(4),C(" ",n.TeacherInformation," "),c(),b("bkdLet",h(13,19,r.getPresenceTypeDesignation(n))),c(3),C(" ",z(16,21,n.LessonDateTimeFrom,"dd.MM.yyyy")," "),c(3),C(" ",h(19,24,n.LessonDateTimeFrom)," "),c(3),Ie(" ",z(22,26,n.LessonDateTimeFrom,"dd.MM.yyyy"),", ",h(23,29,n.LessonDateTimeFrom)," ")}}function dr(e,t){if(e&1&&(U(0),T(1,rr,17,16,"div",5),m(2,"async"),T(3,ur,24,31,"div",6),m(4,"async"),X()),e&2){let n=x(2);c(),b("ngIf",h(2,2,n.editable$)),c(2),b("ngForOf",h(4,4,n.lessonPresences$))}}function lr(e,t){e&1&&(l(0,"p",34),_(1),m(2,"translate"),f()),e&2&&(c(),K(h(2,1,"shared.profile.no-absences")))}function mr(e,t){if(e&1&&(U(0),T(1,dr,5,6,"ng-container",4),m(2,"async"),T(3,lr,3,3,"ng-template",null,1,ke),X()),e&2){let n,r=ae(4),i=x();c(),b("ngIf",((n=(n=h(2,2,i.lessonPresences$))==null?null:n.length)!==null&&n!==void 0?n:0)>0)("ngIfElse",r)}}function pr(e,t){e&1&&Se(0,"bkd-spinner",35)}var Aa=(()=>{let t=class t{constructor(r){this.presenceTypesService=r,this.selectionService=null,this.displayPresenceType=!0,this.defaultAbsenceSelectionMessage=null,this.reports=null,this.confirmLink="confirm",this.displayEmail=!1,this.lessonPresences$$=new H(1),this.lessonPresences$=this.lessonPresences$$.pipe(Be(),W(null),I(1)),this.loading$=this.lessonPresences$.pipe(u(ct(Xt))),this.selectionService$=new H(1),this.editable$=this.selectionService$.pipe(u(()=>!0),W(!1)),this.displayPresenceType$=new Ae(!0),this.allSelected$=Re([this.lessonPresences$.pipe(Ye(st)),this.selectionService$.pipe(Te(i=>i.selection$))]).pipe(u(([i,o])=>i.length===o.length))}ngOnChanges(r){r.absences$&&this.lessonPresences$$.next(r.absences$.currentValue),r.selectionService&&r.selectionService.currentValue&&(r.selectionService.currentValue.clear(),this.selectionService$.next(r.selectionService.currentValue)),r.displayPresenceType&&this.displayPresenceType$.next(r.displayPresenceType.currentValue)}toggleAll(r){r?this.lessonPresences$.pipe(V(1)).subscribe(i=>this.selectionService?.clear(i)):this.selectionService?.clear()}onRowClick(r,i){if(this.checkboxes.length===0)return;let o;typeof i=="number"?o=this.checkboxes.toArray()[i].nativeElement:o=i,r.target!==o&&!r.target.closest(".buttons")&&o.click()}getPresenceTypeDesignation(r){return this.displayPresenceType$.pipe(Te(i=>i?this.presenceTypesService.displayedTypes$:We([])),u(i=>r.TypeRef.Id&&i.find(o=>o.Id===r.TypeRef.Id)?.Designation||null))}};t.\u0275fac=function(i){return new(i||t)(ie(Gt))},t.\u0275cmp=re({type:t,selectors:[["bkd-student-dossier-absences"]],viewQuery:function(i,o){if(i&1&&Je(Zn,5),i&2){let a;Ke(a=ze())&&(o.checkboxes=a)}},inputs:{absences$:"absences$",selectionService:"selectionService",displayPresenceType:"displayPresenceType",defaultAbsenceSelectionMessage:"defaultAbsenceSelectionMessage",reports:"reports",confirmLink:"confirmLink",displayEmail:"displayEmail",mailTo$:"mailTo$"},standalone:!0,features:[qe,se],decls:4,vars:4,consts:[["loading",""],["noAbsences",""],["allCheckbox",""],["checkbox",""],[4,"ngIf","ngIfElse"],["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,"change","checked"],[1,"all"],[1,"buttons"],[1,"edit","btn","btn-primary","btn-icon","me-2",3,"routerLink"],[1,"material-icons"],["class","me-2",3,"reports","disableIfUnavailable",4,"ngIf"],["class","mail btn btn-primary btn-icon me-2","target","_blank",3,"href",4,"ngIf"],["class","validation",4,"ngIf"],[1,"me-2",3,"reports","disableIfUnavailable"],["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,"bkdLet"],[1,"date"],[1,"days-ago"],[1,"date-days-ago"],["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(i,o){if(i&1&&(T(0,mr,5,4,"ng-container",4),m(1,"async"),T(2,pr,1,0,"ng-template",null,0,ke)),i&2){let a=ae(3);b("ngIf",h(1,2,o.loading$)===!1)("ngIfElse",a)}},dependencies:[et,ue,lt,Ze,ut,mt,tt,nt,me,le,Ut],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:#ea161f}.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});let e=t;return e})();var fr=["*"],Ya=(()=>{let t=class t{constructor(){this.link=[]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=re({type:t,selectors:[["bkd-backlink"]],inputs:{link:"link",params:"params"},standalone:!0,features:[se],ngContentSelectors:fr,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(i,o){i&1&&(Ge(),l(0,"div",0)(1,"a",1)(2,"span",2),_(3,"arrow_back"),f(),l(4,"span",3),_(5),m(6,"translate"),f()(),Qe(7),f()),i&2&&(c(),b("routerLink",o.link)("queryParams",o.params),c(4),K(h(6,3,"global.back")))},dependencies:[ue,me,le],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}"]});let e=t;return e})();export{pt as a,v as b,ht as c,Ir as d,kr as e,Dr as f,E as g,O as h,R as i,Z as j,Me as k,Le as l,Ct as m,xe as n,Mt as o,Wt as p,Rt as q,$t as r,Yt as s,A as t,_o as u,Kt as v,zt as w,pe as x,ft as y,gr as z,S as A,Zt as B,fe as C,ko as D,Do as E,Vn as F,Nt as G,Ao as H,Wo as I,Ro as J,$o as K,Bt as L,Ho as M,Vo as N,Go as O,na as P,qt as Q,ia as R,oa as S,Gt as T,ba as U,Ut as V,va as W,Aa as X,Ya as Y}; diff --git a/public/apps/webapp-schulverwaltung/chunk-HHGALFFJ.js b/public/apps/webapp-schulverwaltung/chunk-HHGALFFJ.js new file mode 100644 index 00000000..3c9500ef --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-HHGALFFJ.js @@ -0,0 +1,2 @@ +import{v as b}from"./chunk-FTRAQKUW.js";import{a as g}from"./chunk-3AROKYRB.js";import{A as f,Gd as E,_ as i,bc as p,dc as m,j as t,l as u,rc as d}from"./chunk-T7QWSMKM.js";var S=new p(()=>({disableErrorHandling:!1,disableErrorHandlingForStatus:[]}));function R(){return(e,o)=>{let s=e.context.get(S);return o(e).pipe(f(h(s)))}}function h(e){let o=i(d),s=i(g),a=i(E);return r=>{if(r instanceof m&&!e.disableErrorHandling&&(!e.disableErrorHandlingForStatus||!e.disableErrorHandlingForStatus.includes(r.status)))switch(r.status){case 401:return n("noaccess"),o.navigate(["/unauthenticated"]),t;case 403:return n("noaccess"),o.navigate(["/dashboard"]),t;case 404:return n("notfound"),t;case 0:case 503:case 504:return n("unavailable"),t;case 409:return H(r),t;default:return n("server"),t}return u(()=>r)};function n(r){s.error(a.instant(`global.rest-errors.${r}-message`),a.instant(`global.rest-errors.${r}-title`))}function H(r){let c=a.instant("global.rest-errors.conflict-message"),l=v(r);s.error(l.length>0?l.join(` +`):c,a.instant("global.rest-errors.conflict-title"))}function v(r){return Array.isArray(r.error?.Issues)?r.error.Issues.map(c=>c?.Message).filter(b):[]}}export{S as a,R as b}; diff --git a/public/apps/webapp-schulverwaltung/chunk-IA3IH2MK.js b/public/apps/webapp-schulverwaltung/chunk-IA3IH2MK.js new file mode 100644 index 00000000..a8116b42 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-IA3IH2MK.js @@ -0,0 +1 @@ +import{C as u}from"./chunk-GI4AZI25.js";function l(e,n,i){return e.map(t=>{let r=null;t.TypeRef.Id&&(r=n.find(f=>f.Id===t.TypeRef.Id)||null);let o;return t.ConfirmationStateId&&(o=i.find(f=>f.Key===t.ConfirmationStateId)),new u(t,r,null,o)})}function p(e,n,i){return e?n.filter(t=>i.find(r=>r===t.lessonPresence.StudentRef.Id)):n}export{l as a,p as b}; diff --git a/public/apps/webapp-schulverwaltung/chunk-JX2LWS6H.js b/public/apps/webapp-schulverwaltung/chunk-JX2LWS6H.js new file mode 100644 index 00000000..1d8b7640 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-JX2LWS6H.js @@ -0,0 +1 @@ +import{c as f}from"./chunk-2FIH3FGB.js";import{D as r,G as m}from"./chunk-GI4AZI25.js";import{d as o}from"./chunk-Q5U6YZUT.js";function d(t,e){let s=o(t),n=o(e);return+s<+n}function p(t,e){let s=+o(t),[n,i]=[+o(e.start),+o(e.end)].sort((a,l)=>a-l);return s>=n&&s<=i}function T(t,e){return t===null&&e===null||t!==null&&e!==null&&t.TeacherInformation===e.TeacherInformation&&t.LessonDateTimeFrom.getTime()===e.LessonDateTimeFrom.getTime()&&t.LessonDateTimeTo.getTime()===e.LessonDateTimeTo.getTime()}function h(t){let e=new u(t.TeacherInformation,t.LessonDateTimeFrom,t.LessonDateTimeTo);return e.addLesson(t),e}var u=class{constructor(e,s,n){this.TeacherInformation=e,this.LessonDateTimeFrom=s,this.LessonDateTimeTo=n,this.lessons=[]}addLesson(e){this.lessons.some(s=>r(s,e))||(this.lessons.push(e),this.updateId(),this.updateStudyClassNumbers(),this.updateEventDesignations())}getIds(){return[...new Set(this.lessons.map(e=>e.LessonRef.Id))]}getEventIds(){return[...new Set(this.lessons.map(e=>e.EventRef.Id))]}updateId(){this.id=[...new Set(this.lessons.map(e=>e.LessonRef.Id).sort())].join("-")}updateStudyClassNumbers(){this.studyClassNumbers=[...new Set(this.lessons.map(e=>e.StudyClassNumber).sort((e,s)=>e.localeCompare(s)))].join(", ")}updateEventDesignations(){this.eventDesignations=[...new Set(this.lessons.map(e=>e.EventDesignation).sort())].join(", ")}};function C(t){return c(t).reduce((e,s)=>{let n=e.find(a=>T(a,s));if(n)return n.addLesson(s),e;let i=h(s);return[...e,i]},[]).sort(m)}function F(t){if(t.length===0)return null;let e=new Date;if(t=[...t].sort(m),f(e,t[0].LessonDateTimeFrom)){for(let s of t)if(d(e,s.LessonDateTimeFrom)||p(e,{start:s.LessonDateTimeFrom,end:s.LessonDateTimeTo}))return s;return t[t.length-1]}return t[0]}function c(t){return t.reduce((e,s)=>e.some(n=>r(n,s))?e:[...e,s],[])}export{C as a,F as b,c}; diff --git a/public/apps/webapp-schulverwaltung/chunk-KLXFX6SJ.js b/public/apps/webapp-schulverwaltung/chunk-KLXFX6SJ.js new file mode 100644 index 00000000..23770647 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-KLXFX6SJ.js @@ -0,0 +1,2 @@ +import{a as G}from"./chunk-HHGALFFJ.js";import{a as de,b as fe}from"./chunk-MVTCHCDH.js";import{c as ue,d as he}from"./chunk-X2BR3YJG.js";import{d as M,e as X}from"./chunk-Q5U6YZUT.js";import{b as ge}from"./chunk-N6FFLIGM.js";import{b as H,d as ee}from"./chunk-33NXTXD7.js";import{u as W}from"./chunk-FTRAQKUW.js";import{$ as E,$a as l,Ac as g,Bb as h,Bc as J,Cb as _,Db as N,Ga as P,Gc as $,Hd as ce,Ia as s,Id as le,Ja as ae,Jd as me,Nc as v,O as z,Oc as U,Sa as u,Ta as f,Tb as R,Ua as c,Ub as oe,Va as m,W as k,Wa as d,Wc as B,Xb as pe,Z as S,ca as ie,cc as O,db as x,ec as Y,ga as re,jb as p,k as L,kb as y,lb as F,m as K,mb as I,n as j,sc as se,ta as C,tb as A,ua as o,va as Q,w as ne}from"./chunk-T7QWSMKM.js";function be(e,t){if(e&1&&(m(0),p(1),c(2,"br"),d()),e&2){let n=l();o(),F(" ",n.student.AddressLine2,"")}}function Pe(e,t){if(e&1&&(m(0),u(1,"a",2),p(2),f(),c(3,"br"),d()),e&2){let n=l();o(),x("href","tel:",n.student.PhonePrivate,"",C),o(),F(" ",n.student.PhonePrivate," ")}}function Me(e,t){if(e&1&&(m(0),u(1,"a",2),p(2),f(),c(3,"br"),d()),e&2){let n=l();o(),x("href","tel:",n.student.PhoneMobile,"",C),o(),F(" ",n.student.PhoneMobile," ")}}function Te(e,t){if(e&1&&(u(0,"a",2),p(1),f()),e&2){let n=l();x("href","mailto:",n.email,"",C),o(),F(" ",n.email," ")}}var tt=(()=>{let t=class t{constructor(){this.emailProperty="DisplayEmail"}get postalCode(){return"PostalCode"in this.student?this.student.PostalCode:this.student.Zip}get email(){return this.emailProperty==="Email2"&&"Email2"in this.student?this.student.Email2||null:this.student.DisplayEmail}};t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=E({type:t,selectors:[["bkd-student-dossier-address"]],inputs:{student:"student",emailProperty:"emailProperty"},standalone:!0,features:[A],decls:9,vars:7,consts:[[4,"ngIf"],[3,"href",4,"ngIf"],[3,"href"]],template:function(a,r){a&1&&(u(0,"address"),p(1),c(2,"br"),P(3,be,3,1,"ng-container",0),p(4),c(5,"br"),P(6,Pe,4,3,"ng-container",0)(7,Me,4,3,"ng-container",0)(8,Te,2,3,"a",1),f()),a&2&&(o(),F(" ",r.student.AddressLine1,""),o(2),s("ngIf",r.student.AddressLine2),o(),I(" ",r.postalCode||""," ",r.student.Location,""),o(2),s("ngIf",r.student.PhonePrivate),o(),s("ngIf",r.student.PhoneMobile),o(),s("ngIf",r.email))},dependencies:[R],changeDetection:0});let e=t;return e})();var V=(()=>{let t=class t{transform(i){return i?.DisplayEmail||i?.Email||i?.Email2||null}};t.\u0275fac=function(a){return new(a||t)},t.\u0275pipe=ie({name:"bkdPersonEmail",type:t,pure:!0,standalone:!0});let e=t;return e})();function Ee(e,t){if(e&1&&(m(0),p(1),c(2,"br"),d()),e&2){let n=l();o(),y(n.company.apprenticeshipManager==null?null:n.company.apprenticeshipManager.CompanyName)}}function Ae(e,t){if(e&1&&(m(0),p(1),c(2,"br"),d()),e&2){let n=l();o(),y(n.company.apprenticeshipManager==null?null:n.company.apprenticeshipManager.CompanyNameAddition)}}function De(e,t){if(e&1&&(m(0),p(1),c(2,"br"),d()),e&2){let n=l();o(),I(" ",(n.company.apprenticeshipManager==null?null:n.company.apprenticeshipManager.Lastname)||""," ",(n.company.apprenticeshipManager==null?null:n.company.apprenticeshipManager.Firstname)||"","")}}function Le(e,t){if(e&1&&(m(0),p(1),c(2,"br"),d()),e&2){let n=l();o(),y(n.company.apprenticeshipManager==null?null:n.company.apprenticeshipManager.AddressLine1)}}function je(e,t){if(e&1&&(m(0),p(1),c(2,"br"),d()),e&2){let n=l();o(),y(n.company.apprenticeshipManager==null?null:n.company.apprenticeshipManager.AddressLine2)}}function ke(e,t){if(e&1&&(m(0),p(1),c(2,"br"),d()),e&2){let n=l();o(),I("",n.company.apprenticeshipManager==null?null:n.company.apprenticeshipManager.PostalCode," ",n.company.apprenticeshipManager==null?null:n.company.apprenticeshipManager.Location,"")}}function Fe(e,t){if(e&1&&(m(0),u(1,"a",2),p(2),c(3,"br"),f(),d()),e&2){let n=l();o(),x("href","tel:",n.company.apprenticeshipManager==null?null:n.company.apprenticeshipManager.PhoneBusiness,"",C),o(),y(n.company.apprenticeshipManager==null?null:n.company.apprenticeshipManager.PhoneBusiness)}}function Re(e,t){if(e&1&&(m(0),u(1,"a",2),h(2,"bkdPersonEmail"),p(3),h(4,"bkdPersonEmail"),f(),d()),e&2){let n=l();o(),x("href","mailto:",_(2,3,n.company.apprenticeshipManager),"",C),o(2),y(_(4,5,n.company.apprenticeshipManager))}}function Be(e,t){if(e&1&&(u(0,"div",3),p(1),h(2,"translate"),h(3,"addSpace"),c(4,"br"),p(5),h(6,"date"),h(7,"date"),f()),e&2){let n=l();o(),I(" ",_(2,4,"shared.profile.apprenticeship-period"),"",N(3,6,":",":"),""),o(4),I(" ",N(6,9,n.company.apprenticeshipContract.ContractDateFrom,"dd.MM.yyyy"),"\u2013",N(7,12,n.company.apprenticeshipContract.ContractDateTo,"dd.MM.yyyy"),` +`)}}function we(e,t){if(e&1&&(m(0),p(1),c(2,"br"),d()),e&2){let n=l(2);o(),I(" ",n.company.jobTrainer.Lastname||""," ",n.company.jobTrainer.Firstname||"","")}}function Ne(e,t){if(e&1&&(m(0),u(1,"a",2),p(2),c(3,"br"),f(),d()),e&2){let n=l(2);o(),x("href","tel:",n.company.jobTrainer.PhoneBusiness,"",C),o(),y(n.company.jobTrainer.PhoneBusiness)}}function Ue(e,t){if(e&1&&(m(0),u(1,"a",2),p(2),c(3,"br"),f(),d()),e&2){let n=l(2);o(),x("href","tel:",n.company.jobTrainer.PhoneMobile,"",C),o(),y(n.company.jobTrainer.PhoneMobile)}}function ze(e,t){if(e&1&&(m(0),u(1,"a",2),h(2,"bkdPersonEmail"),p(3),h(4,"bkdPersonEmail"),f(),d()),e&2){let n=l(2);o(),x("href","mailto:",_(2,3,n.company.jobTrainer),"",C),o(2),y(_(4,5,n.company.jobTrainer))}}function Oe(e,t){if(e&1&&(u(0,"div",3),p(1),h(2,"translate"),h(3,"addSpace"),u(4,"address"),P(5,we,3,2,"ng-container",0)(6,Ne,4,3,"ng-container",0)(7,Ue,4,3,"ng-container",0)(8,ze,5,7,"ng-container",0),h(9,"bkdPersonEmail"),f()()),e&2){let n=l();o(),I(" ",_(2,6,"shared.profile.job-trainer"),"",N(3,8,":",":")," "),o(4),s("ngIf",n.company.jobTrainer.Lastname||n.company.jobTrainer.Firstname),o(),s("ngIf",n.company.jobTrainer.PhoneBusiness),o(),s("ngIf",n.company.jobTrainer.PhoneMobile),o(),s("ngIf",_(9,11,n.company.jobTrainer))}}var ct=(()=>{let t=class t{constructor(){}};t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=E({type:t,selectors:[["bkd-student-dossier-apprenticeship-company"]],inputs:{company:"company"},standalone:!0,features:[A],decls:12,vars:12,consts:[[4,"ngIf"],["class","subentry",4,"ngIf"],[3,"href"],[1,"subentry"]],template:function(a,r){a&1&&(u(0,"address"),P(1,Ee,3,1,"ng-container",0)(2,Ae,3,1,"ng-container",0)(3,De,3,2,"ng-container",0)(4,Le,3,1,"ng-container",0)(5,je,3,1,"ng-container",0)(6,ke,3,2,"ng-container",0)(7,Fe,4,3,"ng-container",0)(8,Re,5,7,"ng-container",0),h(9,"bkdPersonEmail"),f(),P(10,Be,8,15,"div",1)(11,Oe,10,13,"div",1)),a&2&&(o(),s("ngIf",r.company.apprenticeshipManager==null?null:r.company.apprenticeshipManager.CompanyName),o(),s("ngIf",r.company.apprenticeshipManager==null?null:r.company.apprenticeshipManager.CompanyNameAddition),o(),s("ngIf",(r.company.apprenticeshipManager==null?null:r.company.apprenticeshipManager.Lastname)||(r.company.apprenticeshipManager==null?null:r.company.apprenticeshipManager.Firstname)),o(),s("ngIf",r.company.apprenticeshipManager==null?null:r.company.apprenticeshipManager.AddressLine1),o(),s("ngIf",r.company.apprenticeshipManager==null?null:r.company.apprenticeshipManager.AddressLine2),o(),s("ngIf",(r.company.apprenticeshipManager==null?null:r.company.apprenticeshipManager.PostalCode)&&(r.company.apprenticeshipManager==null?null:r.company.apprenticeshipManager.Location)),o(),s("ngIf",r.company.apprenticeshipManager==null?null:r.company.apprenticeshipManager.PhoneBusiness),o(),s("ngIf",_(9,10,r.company.apprenticeshipManager)),o(2),s("ngIf",r.company.apprenticeshipContract.ContractDateFrom),o(),s("ngIf",r.company.jobTrainer))},dependencies:[R,pe,le,ce,he,V],styles:[".subentry[_ngcontent-%COMP%]{padding-bottom:1rem}"],changeDetection:0});let e=t;return e})();function Ye(e,t){if(e&1&&(m(0),p(1),c(2,"br"),d()),e&2){let n=l();o(),y(n.person.AddressLine1)}}function Je(e,t){if(e&1&&(m(0),p(1),c(2,"br"),d()),e&2){let n=l();o(),y(n.person.AddressLine2)}}function $e(e,t){if(e&1&&(m(0),p(1),c(2,"br"),d()),e&2){let n=l();o(),I("",n.person.Zip," ",n.person.Location,"")}}function He(e,t){if(e&1&&(m(0),u(1,"a",1),p(2),c(3,"br"),f(),d()),e&2){let n=l();o(),x("href","tel:",n.person.PhonePrivate,"",C),o(),y(n.person.PhonePrivate)}}function Ge(e,t){if(e&1&&(m(0),u(1,"a",1),p(2),c(3,"br"),f(),d()),e&2){let n=l();o(),x("href","tel:",n.person.PhoneMobile,"",C),o(),y(n.person.PhoneMobile)}}function Ve(e,t){if(e&1&&(m(0),u(1,"a",1),h(2,"bkdPersonEmail"),p(3),h(4,"bkdPersonEmail"),f(),d()),e&2){let n=l();o(),x("href","mailto:",_(2,3,n.person),"",C),o(2),y(_(4,5,n.person))}}var ut=(()=>{let t=class t{constructor(){}};t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=E({type:t,selectors:[["bkd-student-dossier-legal-representative"]],inputs:{person:"person"},standalone:!0,features:[A],decls:10,vars:10,consts:[[4,"ngIf"],[3,"href"]],template:function(a,r){a&1&&(u(0,"address"),p(1),c(2,"br"),P(3,Ye,3,1,"ng-container",0)(4,Je,3,1,"ng-container",0)(5,$e,3,2,"ng-container",0)(6,He,4,3,"ng-container",0)(7,Ge,4,3,"ng-container",0)(8,Ve,5,7,"ng-container",0),h(9,"bkdPersonEmail"),f()),a&2&&(o(),I(" ",r.person.LastName," ",r.person.FirstName,""),o(2),s("ngIf",r.person.AddressLine1),o(),s("ngIf",r.person.AddressLine2),o(),s("ngIf",r.person.Zip&&r.person.Zip),o(),s("ngIf",r.person.PhonePrivate),o(),s("ngIf",r.person.PhoneMobile),o(),s("ngIf",_(9,8,r.person)))},dependencies:[R,V],changeDetection:0});let e=t;return e})();function te(e,t){let n=M(e),i=M(t),a=n.getTime()-i.getTime();return a<0?-1:a>0?1:a}function ye(e,t){let n=M(e),i=M(t);return n.getFullYear()-i.getFullYear()}function ve(e,t){let n=M(e),i=M(t),a=te(n,i),r=Math.abs(ye(n,i));n.setFullYear(1584),i.setFullYear(1584);let b=te(n,i)===-a,T=a*(r-+b);return T===0?0:T}var Ze=18;function Ce(e){return ve(new Date,e.Birthdate||new Date)>=Ze}var xe=$({Email:v(g),Email2:v(g),PhoneBusiness:v(g),CompanyName:U(g),CompanyNameAddition:U(g),Firstname:v(g),Lastname:v(g),AddressLine1:U(g),AddressLine2:U(g),PostalCode:v(g),Location:v(g),Id:J});var Se=(()=>{let t=class t extends H{constructor(i,a){super(i,a,xe,"ApprenticeshipManagers")}};t.\u0275fac=function(a){return new(a||t)(S(Y),S(B))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var _e=$({Email:v(g),Email2:v(g),PhoneBusiness:v(g),PhoneMobile:v(g),Firstname:v(g),Lastname:v(g),Id:J});var Ie=(()=>{let t=class t extends H{constructor(i,a){super(i,a,_e,"JobTrainers")}};t.\u0275fac=function(a){return new(a||t)(S(Y),S(B))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Vt=(()=>{let t=class t{constructor(i,a,r,b,T,w){this.studentService=i,this.personsService=a,this.apprenticeshipManagersService=r,this.jobTrainersService=b,this.loadingService=T,this.dropDownItemsService=w,this.loading$=this.loadingService.loading$}getProfile(i){return this.loadingService.load(j([this.loadStudent(i),this.loadLegalRepresentatives(i),this.loadApprenticeshipContracts(i)]).pipe(z(X(this.mapToProfile.bind(this)))))}getMyProfile(){return this.loadingService.load(this.personsService.getMyself({context:new O().set(G,{disableErrorHandlingForStatus:[403]})}).pipe(z(i=>j([L(i),this.loadLegalRepresentatives(i.Id),this.loadApprenticeshipContracts(i.Id),this.loadStayPermitValue(i.StayPermit)]))).pipe(z(X(this.mapToProfile.bind(this))),ne(W)))}loadStudent(i){return this.studentService.get(i,{context:new O().set(G,{disableErrorHandlingForStatus:[404]})}).pipe(ee())}loadLegalRepresentatives(i){return this.studentService.getLegalRepresentatives(i)}loadApprenticeshipContracts(i){return this.studentService.getCurrentApprenticeshipContracts(i,{context:new O().set(G,{disableErrorHandlingForStatus:[404]})}).pipe(ee([]))}loadStayPermitValue(i){return this.dropDownItemsService.getStayPermits().pipe(K(a=>a.find(r=>r.Key===i)?.Value||null))}mapToProfile(i,a,r,b=null){return i?(a=this.getRelevantLegalRepresentatives(i,a),j([this.loadLegalRepresentativPersons(a),this.loadJobTrainers(r),this.loadApprenticeshipManagers(r)]).pipe(K(([T,w,Z])=>this.createProfile(i,b,a,T,r,Z,w)))):L(null)}loadLegalRepresentativPersons(i){return i.length===0?L([]):this.personsService.getListForIds(i.map(a=>a.RepresentativeId))}loadJobTrainers(i){let a=i.map(r=>r.JobTrainer).filter(r=>typeof r=="number");return a.length===0?L([]):j(a.map(r=>this.jobTrainersService.get(r)))}loadApprenticeshipManagers(i){let a=i.map(r=>r.ApprenticeshipManagerId);return a.length===0?L([]):j(a.map(r=>this.apprenticeshipManagersService.get(r)))}createProfile(i,a,r,b,T,w,Z){return{student:i,stayPermitValue:a||void 0,legalRepresentativePersons:r.map(q=>this.findPerson(q.RepresentativeId,b)).filter(W),apprenticeshipCompanies:T.map(q=>this.createApprenticeshipCompany(q,w,Z))}}getRelevantLegalRepresentatives(i,a){let r=Ce(i);return a.filter(b=>!r||b.RepresentativeAfterMajority)}createApprenticeshipCompany(i,a,r){return{apprenticeshipContract:i,jobTrainer:this.findPerson(i.JobTrainer,r),apprenticeshipManager:this.findPerson(i.ApprenticeshipManagerId,a)}}findPerson(i,a){return i&&a.find(r=>r.Id===i)||null}};t.\u0275fac=function(a){return new(a||t)(S(ue),S(fe),S(Se),S(Ie),S(ge),S(de))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Xt=(()=>{let t=class t{constructor(i,a){this.settings=i,this.storageService=a,this.avatarStyles={}}ngOnChanges(i){i.studentId&&(this.avatarStyles=this.buildAvatarStyles(this.studentId))}buildAvatarStyles(i){return{"background-image":[this.buildAvatarUrl(i),this.fallbackAvatarUrl].map(a=>`url(${a})`).join(", ")}}buildAvatarUrl(i){let a=this.storageService.getAccessToken()||"";return`${this.settings.apiUrl}/Files/personPictures/${i}?token=${a}`}get fallbackAvatarUrl(){return`${this.settings.scriptsAndAssetsPath}/assets/images/avatar-placeholder.png`}};t.\u0275fac=function(a){return new(a||t)(Q(B),Q(me))},t.\u0275cmp=E({type:t,selectors:[["bkd-avatar"]],inputs:{studentId:"studentId",link:"link",linkParams:"linkParams"},standalone:!0,features:[re,A],decls:1,vars:5,consts:[[1,"avatar",3,"routerLink","queryParams","ngStyle"]],template:function(a,r){a&1&&c(0,"a",0),a&2&&(ae("disabled",!r.link),s("routerLink",r.link)("queryParams",r.linkParams)("ngStyle",r.avatarStyles))},dependencies:[se,oe],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}"]});let e=t;return e})();export{Vt as a,tt as b,ct as c,ut as d,Xt as e}; diff --git a/public/apps/webapp-schulverwaltung/chunk-LO5XSJLW.js b/public/apps/webapp-schulverwaltung/chunk-LO5XSJLW.js new file mode 100644 index 00000000..cf47068d --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-LO5XSJLW.js @@ -0,0 +1 @@ +import{$ as d,Ac as a,Bc as R,Dc as b,Dd as G,Fc as w,Gc as y,Ia as j,Ic as L,Jd as N,Nc as p,O as C,Oc as O,Sa as g,Sc as B,Ta as f,Ua as D,W as M,Wc as E,Z as m,a as v,ab as F,b as A,bb as T,ec as k,jb as U,k as S,kb as $,m as P,n as x,tb as h,ua as u,ud as I,yd as z}from"./chunk-T7QWSMKM.js";var X=(()=>{let n=class n{constructor(){this.expanded=!1}};n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=d({type:n,selectors:[["bkd-caret"]],inputs:{expanded:"expanded"},standalone:!0,features:[h],decls:2,vars:1,consts:[["role","button",1,"d-flex","material-icons"]],template:function(e,r){e&1&&(g(0,"i",0),U(1),f()),e&2&&(u(),$(r.expanded?"expand_less":"expand_more"))},styles:["i[_ngcontent-%COMP%]:hover{color:#ea161f}"]});let o=n;return o})();var K=["*"],Z=(()=>{let n=class n{constructor(){this.opened=!1}};n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=d({type:n,selectors:[["bkd-student-dossier-entry-header"]],inputs:{opened:"opened"},standalone:!0,features:[h],ngContentSelectors:K,decls:3,vars:1,consts:[[1,"m-0"],[1,"d-flex","align-items-center",3,"expanded"]],template:function(e,r){e&1&&(F(),g(0,"h5",0),T(1),f(),D(2,"bkd-caret",1)),e&2&&(u(2),j("expanded",r.opened))},dependencies:[X],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});let o=n;return o})();var V=y({Id:R,Title:a}),q=p(w(V));var ct=(()=>{let n=class n{constructor(t,e,r){this.settings=t,this.storageService=e,this.http=r}getPersonMasterDataReports(t){return this.getAvailableReports("Person",this.settings.personMasterDataReports,[t])}getStudentConfirmationReports(t){return this.getAvailableReports("Praesenzinformation",this.settings.studentConfirmationReports,t)}getEvaluateAbsencesReports(t){return this.getAvailableReports("Praesenzinformation",this.settings.evaluateAbsencesReports,t)}getMyAbsencesReports(t){return this.getAvailableReports("Praesenzinformation",this.settings.myAbsencesReports,t)}getCourseReports(t){return this.getAvailableReports("Anlass",this.settings.testsByCourseReports,[t])}getStudentSubscriptionReports(t){return this.settings.testsBySubscriptionStudentReports.map((r,s)=>{let i=this.getReportUrl(r.type,"Anmeldung",r.id,t);return A(v({},r),{title:`Report ${s+1}`,url:i})})}getTeacherSubscriptionReports(t){return this.settings.testsBySubscriptionTeacherReports.map((r,s)=>{let i=this.getReportUrl(r.type,"Anmeldung",r.id,t);return A(v({},r),{title:`Report ${s+1}`,url:i})})}getAvailableReports(t,e,r){let s=z(e,l=>l.type),i=x(Object.keys(s).map(l=>this.getAvailableReportsForType(l,t,s[l].map(({id:c})=>c),r)));return this.mergeAvailableReports(i,e)}getAvailableReportsForType(t,e,r,s){return s.length===0?S([]):this.http.get(this.getReportAvailabilityUrl(t,e,r,s)).pipe(C(G(q)),P(i=>i?i.map(({Id:l,Title:c})=>({type:t,id:l,title:c,url:this.getReportUrl(t,e,l,s)})):[]))}mergeAvailableReports(t,e){return t.pipe(P(r=>{let s=I(r);return e.reduce((i,l)=>{let c=s.find(({id:J})=>J===l.id);return c?[...i,c]:i},[])}))}getReportUrl(t,e,r,s){let i=new URL(`${this.settings.apiUrl}/Files/${this.getReportTypePathPart(t)}/${e}/${r}`);return i.searchParams.set("ids",s.join(",")),i.searchParams.set("token",this.storageService.getAccessToken()??""),i.toString()}getReportAvailabilityUrl(t,e,r,s){let i=new URL(`${this.settings.apiUrl}/${this.getReportTypePathPart(t)}/AvailableReports/${e}`);return i.searchParams.set("ids",Array.isArray(r)?r.join(","):String(r)),i.searchParams.set("keys",s.join(",")),i.toString()}getReportTypePathPart(t){return`${t[0].toUpperCase()+t.slice(1)}Reports`}};n.\u0275fac=function(e){return new(e||n)(m(E),m(N),m(k))},n.\u0275prov=M({token:n,factory:n.\u0275fac,providedIn:"root"});let o=n;return o})();var gt=y({Id:R,AddressLine1:p(a),AddressLine2:O(a),Birthdate:p(B),DisplayEmail:p(a),FullName:a,Gender:L([b("M"),b("F"),b("X")]),Location:p(a),PhoneMobile:p(a),PhonePrivate:p(a),PostalCode:p(a)});export{X as a,Z as b,gt as c,ct as d}; diff --git a/public/apps/webapp-schulverwaltung/chunk-MVTCHCDH.js b/public/apps/webapp-schulverwaltung/chunk-MVTCHCDH.js new file mode 100644 index 00000000..cba3f234 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-MVTCHCDH.js @@ -0,0 +1 @@ +import{a as I}from"./chunk-WN7VWSJW.js";import{b as E}from"./chunk-33NXTXD7.js";import{Ac as t,Bc as y,Dc as l,Dd as j,Ed as m,Gc as d,Ic as P,L as u,Nc as i,O as n,Oc as f,Sc as b,Uc as S,W as p,Wc as g,Z as a,ec as c,m as h}from"./chunk-T7QWSMKM.js";var x=(()=>{let r=class r{constructor(e,s){this.http=e,this.settings=s}getAbsenceConfirmationStates(){return this.http.get(`${this.baseUrl}/AbsenceConfirmationStates`).pipe(n(m(I)),u(1))}getStayPermits(){return this.http.get(`${this.baseUrl}/StayPermits`).pipe(n(m(I)),u(1))}get baseUrl(){return`${this.settings.apiUrl}/DropDownItems`}};r.\u0275fac=function(s){return new(s||r)(a(c),a(g))},r.\u0275prov=p({token:r,factory:r.\u0275fac,providedIn:"root"});let o=r;return o})();var A=d({Id:y,FormOfAddress:t,Nationality:i(t),AddressLine1:i(t),AddressLine2:i(t),BillingAddress:i(t),Birthdate:i(b),CorrespondenceAddress:i(t),DisplayEmail:i(t),Email:f(t),Email2:f(t),FirstName:i(t),Gender:i(P([l("M"),l("F"),l("X")])),HomeTown:i(t),LastName:i(t),FullName:i(t),Location:i(t),MiddleName:i(t),NativeLanguage:i(t),PhoneMobile:i(t),PhonePrivate:i(t),PhoneBusiness:f(t),SocialSecurityNumber:i(t),StayPermit:i(y),StayPermitExpiry:i(b),Zip:i(t)});var q=(()=>{let r=class r extends E{constructor(e,s){super(e,s,A,"Persons"),this.personEmailCodec=d(S(this.codec.props,["Email","FormOfAddress"]))}getListForIds(e){return this.getList({params:{"filter.Id":`;${e.join(";")}`}})}getMyself(e){return this.http.get(`${this.baseUrl}/me`,e).pipe(n(j(this.codec)))}getByIdWithEmailInfos(e){return this.http.get(`${this.baseUrl}/`,{params:{"filter.Id=":e.toString(),fields:["FormOfAddress","Email"].join(",")}}).pipe(n(m(this.personEmailCodec)),h(s=>s[0]))}update(e,s,F,N){let L={PhonePrivate:s,PhoneMobile:F,Email2:N};return this.http.put(`${this.baseUrl}/${e}`,L).pipe(h(()=>{}))}};r.\u0275fac=function(s){return new(s||r)(a(c),a(g))},r.\u0275prov=p({token:r,factory:r.\u0275fac,providedIn:"root"});let o=r;return o})();export{x as a,q as b}; diff --git a/public/apps/webapp-schulverwaltung/chunk-N6FFLIGM.js b/public/apps/webapp-schulverwaltung/chunk-N6FFLIGM.js new file mode 100644 index 00000000..d3c0abb7 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-N6FFLIGM.js @@ -0,0 +1 @@ +import{e as B}from"./chunk-33NXTXD7.js";import{k as V,l as j,m as z,n as P,o as q}from"./chunk-FTRAQKUW.js";import{$ as D,$a as c,Cd as A,G as I,Ga as f,Ha as L,I as C,Ia as l,J as v,Ja as N,N as y,R as x,Sa as s,Sb as E,Ta as p,Tb as M,W as k,Ya as O,_a as S,e as h,g as w,ha as F,ia as T,jb as d,lb as U,m,q as _,ta as $,tb as R,ua as a}from"./chunk-T7QWSMKM.js";function G(e,n){if(e&1&&(s(0,"a",2)(1,"i",3),d(2,"description"),p()()),e&2){let r=c();N("disabled",r.disableIfUnavailable&&r.reports.length===0),l("href",r.reports.length>0&&r.reports[0].url,$)}}function H(e,n){if(e&1){let r=O();s(0,"button",8),S("click",function(){let i=F(r).$implicit,o=c(2);return T(o.openReport(i))}),d(1),p()}if(e&2){let r=n.$implicit;a(),U(" ",r.title," ")}}function J(e,n){if(e&1&&(s(0,"div",4)(1,"a",5)(2,"i",3),d(3,"description"),p()(),s(4,"div",6),f(5,H,2,1,"button",7),p()()),e&2){let r=c();a(),l("id",r.dropdownId),a(3),L("aria-labelledby",r.dropdownId),a(),l("ngForOf",r.reports)}}var et=(()=>{let n=class n{constructor(){this.reports=[],this.disableIfUnavailable=!1,this.dropdownId=A("reports-link-dropdown")}openReport(t){window.open(t.url,"_blank")}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=D({type:n,selectors:[["bkd-reports-link"]],inputs:{reports:"reports",disableIfUnavailable:"disableIfUnavailable"},standalone:!0,features:[R],decls:2,vars:2,consts:[["class","btn btn-primary btn-icon","target","_blank",3,"href","disabled",4,"ngIf"],["ngbDropdown","","class","d-inline-block",4,"ngIf"],["target","_blank",1,"btn","btn-primary","btn-icon",3,"href"],[1,"material-icons"],["ngbDropdown","",1,"d-inline-block"],["ngbDropdownToggle","",1,"btn","btn-primary","btn-icon","d-flex","align-items-center",3,"id"],["ngbDropdownMenu",""],["ngbDropdownItem","",3,"click",4,"ngFor","ngForOf"],["ngbDropdownItem","",3,"click"]],template:function(i,o){i&1&&f(0,G,3,3,"a",0)(1,J,6,3,"div",1),i&2&&(l("ngIf",o.reports.length===1||o.reports.length===0&&o.disableIfUnavailable),a(),l("ngIf",o.reports.length>1))},dependencies:[M,q,P,z,E,j,V],styles:["a[_ngcontent-%COMP%]{text-decoration:none;color:#fff}"]});let e=n;return e})();var u="default",at=(()=>{let n=class n{constructor(){this.action$=new h,this.loadingCounts$=_(this.action$.pipe(v((t,{action:i,context:o})=>{switch(i){case"increment":return t[o]=(t[o]||0)+1,t;case"decrement":return t[o]=Math.max(0,(t[o]||0)-1),t;default:return t}},{}),y({})),{connector:()=>new w(1)}),this.loading$=this.loading(),this.loadingCountsSub=this.loadingCounts$.connect()}ngOnDestroy(){this.loadingCountsSub.unsubscribe()}loading(t=u){return this.loadingCounts$.pipe(m(i=>i[t]),m(K),I())}load(t,i=u){let o=typeof i=="string"?i:i.context||u,W=typeof i=="object"&&i.stopOnFirstValue||!1,b=this.decrementLoadingCount(o),g=!0;function X(){g&&(b(),g=!1)}return t.pipe(B(this.incrementLoadingCount(o)),W?x(X):C(b))}incrementLoadingCount(t){return()=>this.action$.next({action:"increment",context:t})}decrementLoadingCount(t){return()=>this.action$.next({action:"decrement",context:t})}};n.\u0275fac=function(i){return new(i||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac,providedIn:"root"});let e=n;return e})();function K(e){return(e||0)!==0}export{et as a,at as b}; diff --git a/public/apps/webapp-schulverwaltung/chunk-Q5U6YZUT.js b/public/apps/webapp-schulverwaltung/chunk-Q5U6YZUT.js new file mode 100644 index 00000000..1bc59148 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-Q5U6YZUT.js @@ -0,0 +1 @@ +import{L as b,N as s,O as a,j as u,k as c,m as i,n as f,w as l}from"./chunk-T7QWSMKM.js";function C(t,r,e){return f([t,r]).pipe(l(([o,p])=>p),a(([o,p])=>{let n=e?o?.get(e)||null:o;return n?n.statusChanges.pipe(s(n.status),i(()=>y(n))):c([])}),s([]),b(1))}function j(t,r){return t.pipe(i(e=>e.get(r)||null))}function D(t,r){return j(t,r).pipe(a(e=>e?e.valueChanges:u))}function y(t){return t?Object.keys(t.errors||{}).map(r=>({error:r,params:t.errors&&t.errors[r]instanceof Object?t.errors[r]:null})):[]}function g(t){return r=>t(...r)}function E(t){let r=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&r==="[object Date]"?new t.constructor(+t):typeof t=="number"||r==="[object Number]"||typeof t=="string"||r==="[object String]"?new Date(t):new Date(NaN)}export{C as a,j as b,D as c,E as d,g as e}; diff --git a/public/apps/webapp-schulverwaltung/chunk-QHPTZGVN.js b/public/apps/webapp-schulverwaltung/chunk-QHPTZGVN.js new file mode 100644 index 00000000..e5a9d3b5 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-QHPTZGVN.js @@ -0,0 +1,2 @@ +import{a as Tt}from"./chunk-Y4QYVF5K.js";import{a as yt}from"./chunk-WN7VWSJW.js";import{b as _t,c as Gt,d as Pt}from"./chunk-LO5XSJLW.js";import{b as Et}from"./chunk-N6FFLIGM.js";import{a as Te,b as de}from"./chunk-33NXTXD7.js";import{A as ye,a as ht,b as It,c as bt,d as St,e as vt,p as xt,q as Ct,u as Ce}from"./chunk-FTRAQKUW.js";import{$ as D,$a as v,$c as Fe,Ac as c,Bb as g,Bc as a,C as we,Cb as b,Cc as M,Db as K,Dd as oe,Eb as Ze,Ed as Q,Fb as ne,Fc as E,G as ze,Ga as y,Gc as C,Gd as xe,Hb as et,Hc as be,Hd as F,Ia as m,Id as k,J as Xe,Ja as Re,Jc as Oe,L as $e,Nc as o,O as G,Pb as tt,Q as Me,Sa as p,Sb as re,Sc as ae,Ta as l,Tb as O,Ua as te,Uc as rt,Va as fe,W as N,Wa as he,Wb as H,Wc as q,Xb as it,Ya as ie,Yb as nt,Z as _,Zc as st,_a as A,a as L,ad as Se,b as U,c as We,ca as Y,cb as Ie,dd as at,e as me,ec as se,ed as ot,f as B,g as pe,ga as W,gd as dt,ha as Z,ia as ee,ib as V,id as lt,jb as u,k as De,kb as P,l as Ke,lb as x,ld as pt,m as I,md as ct,n as ce,nd as ut,od as mt,pd as gt,r as ge,ra as Je,sd as ve,tb as $,td as ft,ua as d,v as qe,va as w,vb as Ye,w as Qe}from"./chunk-T7QWSMKM.js";function ri(i,t){if(i&1&&(p(0,"option",3),u(1),g(2,"translate"),l()),i&2){let r=v();m("ngValue",null),d(),x(" ",b(2,2,r.emptyLabel)," ")}}function si(i,t){if(i&1&&(p(0,"option",3),u(1),l()),i&2){let r=t.$implicit;m("ngValue",r),d(),x(" ",r.Value," ")}}var Dt=(()=>{let t=class t{constructor(){this.options=[],this.allowEmpty=!0,this.emptyLabel="",this.value=null,this.disabled=!1,this.tabindex=0,this.valueChange=new Je,this.options$=new B([]),this.rawValue$=new B(null),this.value$=ce([this.rawValue$,this.options$]).pipe(I(([e,n])=>n&&n.find(s=>s.Key===e)||null))}ngOnChanges(e){e.value&&this.rawValue$.next(e.value.currentValue),e.options&&this.options$.next(e.options.currentValue)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=D({type:t,selectors:[["bkd-select"]],inputs:{options:"options",allowEmpty:"allowEmpty",emptyLabel:"emptyLabel",value:"value",disabled:"disabled",tabindex:"tabindex"},outputs:{valueChange:"valueChange"},standalone:!0,features:[W,$],decls:5,vars:7,consts:[[1,"form-select",3,"ngModelChange","tabindex","disabled","ngModel"],[3,"ngValue",4,"ngIf"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"]],template:function(n,s){n&1&&(p(0,"select",0),g(1,"async"),A("ngModelChange",function(T){return s.valueChange.emit(T&&T.Key)}),y(2,ri,3,4,"option",1)(3,si,2,2,"option",2),u(4,` > +`),l()),n&2&&(Ie("tabindex",s.tabindex),m("disabled",s.disabled)("ngModel",b(1,5,s.value$)),d(2),m("ngIf",s.allowEmpty),d(),m("ngForOf",s.options))},dependencies:[ve,ct,ut,pt,Se,ot,O,re,H,k,F],changeDetection:0});let i=t;return i})();var wt=C({Id:a,Designation:c,StudentCount:a,Number:c});var ke=C({Id:c,TestId:a,CourseRegistrationId:a,GradeId:o(a),GradeValue:o(a),GradeDesignation:o(c),Points:o(a),StudentId:a});var $t=C({Id:a,CourseId:a,Date:ae,Designation:c,Weight:a,WeightPercent:a,IsPointGrading:M,MaxPoints:o(a),MaxPointsAdjusted:o(a),IsPublished:M,IsOwner:M,Owner:o(c),GradingScaleId:o(a),Results:o(E(ke))});var Mt=C({Id:a}),Rt=be({HRef:o(c)}),ai=be({HasEvaluationStarted:M,EvaluationUntil:o(ae),HasReviewOfEvaluationStarted:M,HasTestGrading:M,Id:a}),oi=Oe([Mt,Rt,ai]),di=be({Id:a,StudentCount:a}),li=Oe([Mt,Rt,di]),pi=C({Grade:c,AverageTestResult:a,Id:a,StudentId:a}),je=C({AverageTestResult:a,CanGrade:M,EventId:a,GradeId:o(a),GradeValue:o(a),Id:a,StudentId:a}),le=C({HRef:c,Id:a,Number:c,Designation:c,DateFrom:o(ae),DateTo:o(ae),StatusId:a,GradingScaleId:o(a),FinalGrades:o(E(pi)),Gradings:o(E(je)),Tests:o(E($t)),EvaluationStatusRef:oi,AttendanceRef:li,ParticipatingStudents:o(E(Gt)),Classes:o(E(wt))}),Ot=C({TestResults:E(ke),Gradings:E(je)}),Ft=C({Gradings:E(je)});var _e=(()=>{let t=class t extends de{constructor(e,n){super(e,n,le,"Courses"),this.statusCodec=C(rt(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(G(Q(this.statusCodec)),I(e=>e.filter(n=>n.EvaluationStatusRef.HasEvaluationStarted===!0)),I(e=>e.length))}getExpandedCourses(e){return Tt(e,"TeacherRole")?this.http.get(`${this.baseUrl}/?expand=EvaluationStatusRef,AttendanceRef,Classes,FinalGrades&filter.StatusId=;${this.settings.eventlist.statusfilter}`,{headers:{"X-Role-Restriction":"TeacherRole"}}).pipe(G(Q(le))):De([])}getExpandedCourse(e){return this.http.get(`${this.baseUrl}/${e}?expand=ParticipatingStudents,EvaluationStatusRef,Tests,Gradings,FinalGrades,Classes`).pipe(G(oe(le)))}getExpandedCoursesForDossier(){return this.http.get(`${this.baseUrl}/?expand=Tests,Gradings,FinalGrades,EvaluationStatusRef,ParticipatingStudents,Classes&filter.StatusId=;${this.settings.eventlist.statusfilter}`).pipe(G(Q(le)))}getExpandedCoursesForStudent(){return this.http.get(`${this.baseUrl}/?expand=Tests,Gradings,FinalGrades&filter.StatusId=;${this.settings.eventlist.statusfilter}`,{headers:{"X-Role-Restriction":"StudentRole"}}).pipe(G(Q(le)))}add(e,n,s,f,T,j,h){let S={Tests:[{Date:n,Designation:s,Weight:f,IsPointGrading:T,MaxPoints:j,MaxPointsAdjusted:h}]};return this.http.put(`${this.baseUrl}/${e}/Tests/New`,S).pipe(I(()=>{}))}update(e,n,s,f,T,j,h,S){let J={Tests:[{Id:n,Designation:s,Date:f,Weight:T,IsPointGrading:j,MaxPoints:h,MaxPointsAdjusted:S}]};return this.http.put(`${this.baseUrl}/${e}/Tests/Update`,J).pipe(I(()=>{}))}delete(e,n){let s={TestIds:[n]};return this.http.put(`${this.baseUrl}/${e}/Tests/Delete`,s).pipe(I(()=>n))}updateTestResult(e,n){let S=n,{studentId:s,testId:f}=S,T=We(S,["studentId","testId"]),j={StudentIds:[s],TestId:f},h="gradeId"in T?U(L({},j),{GradeId:T.gradeId}):U(L({},j),{Points:T.points});return this.http.put(`${this.baseUrl}/${e}/SetTestResult`,h).pipe(G(oe(Ot)),G(({TestResults:J,Gradings:Ue})=>J.length<=1&&Ue.length===1?De({courseId:e,testResult:J[0]??null,grading:Ue[0]}):Ke(()=>new Error("`TestResults` or `Gradings` does not contain a single value"))))}setAverageAsFinalGrade(e){return this.http.put(`${this.baseUrl}/SetAverageTestResult`,e).pipe(G(oe(Ft)))}publishTest(e){let n={TestIds:[e]};return this.http.put(`${this.baseUrl}/PublishTest`,n).pipe(I(()=>e))}unpublishTest(e){let n={TestIds:[e]};return this.http.put(`${this.baseUrl}/UnpublishTest`,n).pipe(I(()=>e))}};t.\u0275fac=function(n){return new(n||t)(_(se),_(q))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();function Bt(i){return i.length===0?0:Be(i.map(({value:t,weight:r})=>t*r))/Be(i.map(({weight:t})=>t))}function Ne(i){return i.length===0?0:Number(Be(i)/i.length)}function Be(i){return i.reduce(ci,0)}function ci(i,t){return i+t}function In(i,t,r){return i?i.Tests?.reduce((e,n)=>e||n.Id===t&&n.Results?.find(s=>s.TestId===t&&s.StudentId===r)||null,null)??null:null}function bn(i,t,r){return t.map(e=>e.Id===i.TestId?Ve(i,e,r):e)}function Sn(i,t,r){return r.map(e=>e.Id===i?ui(t,e):e)}function vn(i,t){return t.map(r=>r.Id===i?U(L({},r),{IsPublished:!r.IsPublished}):r)}function xn(i){let t=gi(i);if(t.length===0)throw new Error("unable to calculate averages without results");return Ne(t)}function Ae(i){return i.MaxPointsAdjusted||i.MaxPoints}function Cn(i){let t=mi(i);if(t.length===0)throw new Error("unable to calculate averages without results");return Ne(t)}function X(i,t){return t.Results?.find(r=>r.StudentId===i)}function yn(i,t){return t===null?null:t.filter(r=>r.Id!==i)}function Ve(i,t,r){let e=r&&t.Results?.find(s=>s.TestId===i.TestId&&s.StudentId===i.StudentId),n=t.Results?.filter(s=>!(s.TestId===i.TestId&&s.StudentId===i.StudentId))||[];return e&&r==="grade"?i.GradeId=e.GradeId:e&&r==="points"&&(i.Points=e.Points),U(L({},t),{Results:[...n,i]})}function At(i){return i.slice().sort((t,r)=>r.Date.getTime()-t.Date.getTime())}function Ge(i,t){return t?.find(r=>r.Id===i.GradingScaleId)||null}function ui(i,t){return U(L({},t),{Results:t.Results?.filter(r=>r.StudentId!==i)||[]})}function mi(i){return i.Results?.filter(t=>t.GradeDesignation!==null).map(t=>Number(t.GradeDesignation)).filter(t=>!isNaN(t))||[]}function gi(i){return i.Results?.map(t=>t.Points!==null?t.Points:Nt).filter(t=>t>Nt)||[]}var Nt=-1;var He=C({Id:c,SubscriptionId:a,VssId:a,EventId:a,DropdownItems:o(E(yt)),IdPerson:a,ShowAsRadioButtons:M,Value:o(c)}),Vt=C({Id:a,CurrentWorkProgressId:o(c||o(a)),EventId:o(a),PersonId:o(a),Status:c,StatusId:o(a),IsOkay:o(M),IsQueued:o(M),EventDesignation:o(c),EventInformation:o(c||a),EventNotes:o(c||a),CheckPersonalInformation:o(M),CorrespondencePersonId:o(a),CorrespondenceAddressTypeId:o(c||a),Billing1PersonId:o(a),Billing1AddressTypeId:o(c||a),Billing2PersonId:o(c||a),Billing2AddressTypeId:o(c||a),KindOfPaymentId1:o(c||a),KindOfPaymentEmail1:o(c||a),KindOfPaymentId2:o(c||a),KindOfPaymentEmail2:o(c||a),IdObject:o(a),IdSubscription:o(a),IdStatus:o(a),AnsweredQuestions:o(c||a),Messages:o(c||a),SubscriptionDetails:o(E(He)),HRef:o(c)});var Ht=(()=>{let t=class t extends de{constructor(e,n){super(e,n,He,"Subscriptions")}getIdSubscriptionsByStudentAndCourse(e,n){return this.http.get(`${this.settings.apiUrl}/Subscriptions/?filter.PersonId==${e}&filter.EventId=;${n}`).pipe(G(Q(Vt)))}};t.\u0275fac=function(n){return new(n||t)(_(se),_(q))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var hi=C({Id:a,Designation:c}),Le=C({Id:a,Grades:E(hi)});var Lt=(()=>{let t=class t extends de{constructor(e,n){super(e,n,Le,"GradingScales")}getGradingScale(e){return this.http.get(`${this.baseUrl}/${e}`).pipe(G(oe(Le)))}getGradingScales(e){return ge(e.map(this.getGradingScale.bind(this)))}};t.\u0275fac=function(n){return new(n||t)(_(se),_(q))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var Ee=(()=>{let t=class t{constructor(e,n,s,f,T,j){this.coursesRestService=e,this.subscriptionRestService=n,this.reportsService=s,this.loadingService=f,this.gradingScalesRestService=T,this.settings=j,this.studentId$=new pe(1),this.initialStudentCourses$=this.studentId$.pipe(ze(),G(this.loadCourses.bind(this)),I(h=>h.sort((S,J)=>S.Designation.localeCompare(J.Designation))),$e(1)),this.action$=new pe(1),this.studentCourses$=qe(this.action$,this.initialStudentCourses$.pipe(I(h=>({type:"initializeCourses",payload:h})))).pipe(Xe(this.coursesReducer.bind(this),[]),$e(1)),this.loading$=this.loadingService.loading$,this.studentCourseIds$=this.studentCourses$.pipe(I(h=>h.flatMap(S=>S.Id))),this.idSubscriptions$=ce([this.studentId$,this.studentCourseIds$]).pipe(G(([h,S])=>this.subscriptionRestService.getIdSubscriptionsByStudentAndCourse(h,S))),this.ids$=this.idSubscriptions$.pipe(I(h=>h.map(S=>S.Id))),this.testReports$=this.ids$.pipe(I(h=>this.reportsService.getTeacherSubscriptionReports(h))),this.tests$=this.studentCourses$.pipe(I(h=>h.flatMap(S=>S.Tests).filter(Ce))),this.gradingScaleIdsFromTests$=this.tests$.pipe(I(h=>[...h.map(S=>S.GradingScaleId)].filter(Ce).filter(ye))),this.gradingScaleIdsFromCourses$=this.studentCourses$.pipe(I(h=>h.flatMap(S=>S.GradingScaleId).filter(Ce).filter(ye))),this.gradingScaleIds$=ce([this.gradingScaleIdsFromCourses$,this.gradingScaleIdsFromTests$]).pipe(I(([h,S])=>h.concat(S).filter(ye))),this.gradingScales$=this.gradingScaleIds$.pipe(G(h=>ge(h.map(S=>this.gradingScalesRestService.getGradingScale(S)))))}setStudentId(e){this.studentId$.next(e)}getFinalGradeForStudent(e,n){return e?.FinalGrades?.find(s=>s.StudentId===n)}getGradingForStudent(e,n){return e?.Gradings?.find(s=>s.StudentId===n)}getGradingScaleOfCourse(e,n){return n?.find(s=>s.Id===e.GradingScaleId)}getGradesForStudent(e,n,s){return e.Tests?.flatMap(f=>({value:Number(Ge(f,s)?.Grades.find(j=>j.Id===X(n,f)?.GradeId)?.Designation),weight:f.Weight})).filter(({value:f})=>!!f)||[]}updateStudentCourses(e){this.action$.next({type:"updateCourses",payload:e})}loadCourses(e){return this.loadingService.load(this.coursesRestService.getExpandedCoursesForDossier().pipe(I(n=>n.filter(s=>s.ParticipatingStudents?.find(f=>f.Id===e)))))}coursesReducer(e,n){switch(n.type){case"initializeCourses":return n.payload;case"updateCourses":return this.updateCourses([...e],n.payload);default:return e}}updateCourses(e,n){return e.map(s=>U(L({},s),{Tests:s.Tests!==null?s.Tests.map(f=>f.Id===n.Id?n:f):null}))}};t.\u0275fac=function(n){return new(n||t)(_(_e),_(Ht),_(Pt),_(Et),_(Lt),_(q))},t.\u0275prov=N({token:t,factory:t.\u0275fac});let i=t;return i})();var Wt=(()=>{let t=class t{constructor(e){this.modal=e}open(...e){let n=this.modal.open(...e);return this.applyPortalOffsetAndMaxHeight(n),this.disablePortalScrolling(n),n}get activeInstances(){return this.modal.activeInstances}dismissAll(...e){return this.modal.dismissAll(...e)}hasOpenModals(...e){return this.modal.hasOpenModals(...e)}applyPortalOffsetAndMaxHeight(e){let n=this.getModalWindowElement(e);if(!n){console.warn("Trying to apply portal offset to , but element is not present!");return}this.portalWindow&&(n.style.top=`${this.getModalIframeOffset()}px`,n.style.maxHeight=`${this.getModalHeight()}px`)}disablePortalScrolling(e){if(this.portalWindow&&this.portalDocument){let n=this.portalWindow.innerWidth-this.portalDocument.clientWidth;this.portalDocument.style.paddingRight=`${n}px`,this.portalDocument.style.overflow="hidden"}e.hidden.subscribe(()=>{this.portalDocument&&(this.portalDocument.style.paddingRight="0px",this.portalDocument.style.overflow="auto")})}getModalWindowElement(e){return e._windowCmptRef?.instance?._elRef?.nativeElement??null}getModalIframeOffset(){return Math.max(this.getViewportTop()-this.getIframeTop(),0)}getIframeTop(){return this.portalQuerySelector("bkd-content")?.shadowRoot?.querySelector("iframe")?.offsetTop??0}getIFrameBottom(){let e=this.portalQuerySelector("bkd-content")?.shadowRoot?.querySelector("iframe");return e?e.offsetTop+e.offsetHeight:0}getModalTop(){return Math.max(this.getViewportTop(),this.getIframeTop())}getModalBottom(){return Math.min(this.getViewportBottom(),this.getIFrameBottom())}getModalHeight(){return this.getModalBottom()-this.getModalTop()}getViewportTop(){return this.portalWindow?.scrollY??0}getViewportBottom(){return this.getViewportTop()+this.getViewportHeight()}getViewportHeight(){return this.portalWindow?.innerHeight??0}portalQuerySelector(e){return this.portalWindow?.document?.querySelector("bkd-portal")?.shadowRoot?.querySelector(e)??null}get portalDocument(){return this.portalWindow?.document.documentElement??null}get portalWindow(){return window.parent===window?null:window.parent}};t.\u0275fac=function(n){return new(n||t)(_(Ct))},t.\u0275prov=N({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();function Pe(i,t,r){return t?t.Grade:vi(i,r)||i?.GradeValue}function vi(i,t){return t?.Grades.find(r=>r.Id===i?.GradeId)?.Designation}var xi="1-3",qt="\u2013",Qt=(()=>{let t=class t{constructor(e){this.locale=e}transform(e,n,s){let f=Number(e??null);return isNaN(f)?qt:Ci(Number(e??null),s??this.locale,n)}};t.\u0275fac=function(n){return new(n||t)(w(et,16))},t.\u0275pipe=Y({name:"decimalOrDash",type:t,pure:!0,standalone:!0});let i=t;return i})();function Ci(i,t,r){return i===0?qt:tt(i,t,`1.${yi(r)}`)}function yi(i){return i?String(i).includes("-")?String(i):`${i}-${i}`:xi}var zt=(()=>{let t=class t{constructor(){}getGradeForStudent(){return Pe(this.grading,this.finalGrade,this.gradingScale)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=D({type:t,selectors:[["bkd-dossier-grades-final-grade"]],inputs:{finalGrade:"finalGrade",grading:"grading",gradingScale:"gradingScale",average:"average"},standalone:!0,features:[$],decls:14,vars:11,consts:[[1,"final-entry"],["data-testid","final-grade"],["data-testid","average-test-results"]],template:function(n,s){n&1&&(p(0,"div",0)(1,"div"),u(2),g(3,"translate"),l(),p(4,"div",1)(5,"span"),u(6),l()(),p(7,"div"),u(8),g(9,"translate"),l(),p(10,"div",2)(11,"span"),u(12),g(13,"decimalOrDash"),l()()()),n&2&&(d(2),P(b(3,4,"dossier.grade")),d(4),P(s.getGradeForStudent()||"\u2013"),d(2),P(b(9,6,"dossier.average")),d(4),P(K(13,8,s.average,"1-3")))},dependencies:[k,F,Qt],styles:[".final-entry[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:repeat(2,1fr)}span[_ngcontent-%COMP%]{margin-left:2em}"]});let i=t;return i})();var Xt=(()=>{let t=class t{constructor(e){this.translate=e}transform(e,n,s,f="tests.points"){return e.IsPointGrading&&(e.IsPublished||s)?`${X(n,e)?.Points||"\u2013"} / ${e.MaxPointsAdjusted||e.MaxPoints} ${this.translate.instant(f)}`:""}};t.\u0275fac=function(n){return new(n||t)(w(xe,16))},t.\u0275pipe=Y({name:"bkdTestPoints",type:t,pure:!0,standalone:!0});let i=t;return i})();var Jt=(()=>{let t=class t{constructor(e){this.translate=e}transform(e){return`${this.translate.instant("tests.factor")} ${e.Weight} (${e.WeightPercent}%)`}};t.\u0275fac=function(n){return new(n||t)(w(xe,16))},t.\u0275pipe=Y({name:"bkdTestWeight",type:t,pure:!0,standalone:!0});let i=t;return i})();var Ti=i=>({maxPoints:i});function _i(i,t){if(i&1&&(p(0,"div",15),u(1),g(2,"translate"),l()),i&2){let r=v(2);d(),x(" ",K(2,1,"global.validation-errors.invalidPoints",Ye(4,Ti,r.maxPoints))," ")}}function Gi(i,t){if(i&1){let r=ie();p(0,"div",11)(1,"label",12),u(2),g(3,"translate"),l(),p(4,"div",6)(5,"input",13,0),A("input",function(){Z(r);let n=V(6),s=v();return ee(s.onPointsChange(n.value))}),l()(),y(7,_i,3,6,"div",14),l()}if(i&2){let r=v();d(2),P(b(3,8,"dossier.dialog.points")),d(2),Re("is-invalid",r.pointsInput.errors),d(),Re("is-invalid",r.pointsInput.errors),Ie("max",r.maxPoints),m("formControl",r.pointsInput),d(2),m("ngIf",r.pointsInput.errors)}}var Yt=500,Zt=(()=>{let t=class t{constructor(e,n){this.activeModal=e,this.courseService=n,this.maxPoints=0,this.gradeSubject$=new me,this.pointsSubject$=new me,this.closeButtonDisabled$=new B(!1),this.gradingScaleDisabled$=new B(!0),this.grade$=this.gradeSubject$.pipe(we(Yt)),this.points$=this.pointsSubject$.pipe(we(Yt),Qe(this.isValid.bind(this)),I(Number)),this.destroy$=new me}ngOnInit(){this.maxPoints=Ae(this.test),this.pointsInput=new at({value:this.points,disabled:!1},[Fe.min(0),Fe.pattern("[0-9]+([\\.][0-9]+)?"),this.maxPointValidator()]),this.gradingScaleDisabled$.next(this.test.IsPointGrading&&this.points>0),this.points$.pipe(Me(this.destroy$)).subscribe(e=>this.updateTestResult({studentId:this.studentId,testId:this.test.Id,points:e})),this.grade$.pipe(Me(this.destroy$)).subscribe(e=>this.updateTestResult({studentId:this.studentId,testId:this.test.Id,gradeId:e}))}onGradeChange(e){this.gradeSubject$.next(e)}onPointsChange(e){this.pointsSubject$.next(e),this.gradingScaleDisabled$.next(e.length>0)}updateTestResult(e){this.closeButtonDisabled$.next(!0),this.courseService.updateTestResult(this.test.CourseId,e).subscribe(({testResult:n})=>{this.gradeId=n?.GradeId??null,this.updatedTestResult=n,this.closeButtonDisabled$.next(!1)})}isValid(e){return e===""||isNaN(Number(e))?!1:!(Number(e)<0||Number(e)>this.maxPoints)}maxPointValidator(){return e=>Number(e.value)>Ae(this.test)?{customMax:!0}:null}};t.\u0275fac=function(n){return new(n||t)(w(xt),w(_e))},t.\u0275cmp=D({type:t,selectors:[["bkd-dossier-grades-edit"]],inputs:{test:"test",gradeId:"gradeId",gradeOptions:"gradeOptions",points:"points",studentId:"studentId"},standalone:!0,features:[$],decls:19,vars:20,consts:[["pointInput",""],[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,"valueChange","options","value","allowEmpty","disabled"],[1,"text-muted","mt-4"],[1,"modal-footer"],["type","button",1,"btn","btn-primary",3,"click","disabled"],[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,"input","max","formControl"],["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(n,s){n&1&&(p(0,"div",1)(1,"p",2),u(2),l(),y(3,Gi,8,10,"div",3),p(4,"div",4)(5,"label",5),u(6),g(7,"translate"),l(),p(8,"div",6)(9,"bkd-select",7),g(10,"async"),A("valueChange",function(T){return T&&s.onGradeChange(T)}),l()()(),p(11,"p",8),u(12),g(13,"translate"),l()(),p(14,"div",9)(15,"button",10),g(16,"async"),A("click",function(){return s.activeModal.close(s.updatedTestResult)}),u(17),g(18,"translate"),l()()),n&2&&(d(2),P(s.test.Designation),d(),m("ngIf",s.test.IsPointGrading),d(3),P(b(7,10,"dossier.dialog.grade")),d(3),m("options",s.gradeOptions)("value",s.gradeId)("allowEmpty",!1)("disabled",b(10,12,s.gradingScaleDisabled$)),d(3),x(" ",b(13,14,s.test.IsPointGrading?"dossier.dialog.hint.points":"dossier.dialog.hint.grade")," "),d(3),m("disabled",b(16,16,s.closeButtonDisabled$)),d(2),x(" ",b(18,18,"dossier.dialog.close")," "))},dependencies:[O,ve,st,dt,Se,gt,mt,ft,lt,Dt,H,k,F]});let i=t;return i})();function Ei(i,t){if(i&1){let r=ie();p(0,"a",11),A("click",function(){Z(r);let n=v().bkdLet,s=v();return ee(s.editGrading(n))}),p(1,"i",12),u(2,"edit"),l(),p(3,"span",13),u(4),g(5,"async"),l()()}if(i&2){let r=v(2);d(4),P(b(5,1,r.grading$))}}function Pi(i,t){if(i&1&&(p(0,"span",13),u(1),g(2,"async"),l()),i&2){let r=v(2);d(),P(b(2,1,r.grading$))}}function Di(i,t){if(i&1&&(p(0,"div",14),u(1),g(2,"translate"),l()),i&2){let r=v().bkdLet;d(),x(" ",b(2,1,r.IsPublished?"tests.published":"tests.not-published")," ")}}function wi(i,t){if(i&1&&(p(0,"div",2)(1,"div",3),u(2),l(),p(3,"div",4),u(4),g(5,"date"),l(),p(6,"div",5),y(7,Ei,6,3,"a",6)(8,Pi,3,3,"ng-template",null,0,ne),l(),p(10,"div",7),u(11),g(12,"bkdTestWeight"),l(),p(13,"div",8)(14,"span"),u(15),g(16,"bkdTestPoints"),l()(),p(17,"div",9),u(18),l(),y(19,Di,3,3,"div",10),l()),i&2){let r=t.bkdLet,e=V(9),n=v();d(2),x(" ",r.Designation," "),d(2),x(" ",K(5,8,r.Date,"dd.MM.yyyy")," "),d(3),m("ngIf",n.isEditable&&r.IsOwner)("ngIfElse",e),d(4),x(" ",b(12,11,r)," "),d(4),P(Ze(16,13,r,n.studentId,n.isEditable,"dossier.points")),d(3),x(" ",r.Owner," "),d(),m("ngIf",n.isEditable)}}var ei=(()=>{let t=class t{constructor(e,n){this.gradeService=e,this.modalService=n,this.test$=new pe(1),this.grading$=this.test$.pipe(I(this.getGrading.bind(this)))}ngOnChanges(e){e.test&&this.test$.next(this.test)}editGrading(e){let n=this.modalService.open(Zt,{backdrop:"static"});n.componentInstance.test=e,n.componentInstance.gradeId=this.getGradeId(e),n.componentInstance.gradeOptions=t.mapToOptions(this.gradingScale),n.componentInstance.studentId=this.studentId,n.componentInstance.points=this.getPoints(e),n.result.then(s=>{s&&this.updateStudentGrade(s,e)},()=>{})}updateStudentGrade(e,n){let s=Ve(e,n);this.gradeService.updateStudentCourses(s)}getGrading(e){return this.gradingScale?.Grades.find(n=>n.Id===this.getGradeId(e))?.Designation||"\u2013"}getGradeId(e){return X(this.studentId,e)?.GradeId||null}getPoints(e){return X(this.studentId,e)?.Points||null}static mapToOptions(e){return e?.Grades.map(n=>({Key:n.Id,Value:n.Designation}))||null}};t.\u0275fac=function(n){return new(n||t)(w(Ee),w(Wt))},t.\u0275cmp=D({type:t,selectors:[["bkd-dossier-single-test"]],inputs:{test:"test",studentId:"studentId",gradingScale:"gradingScale",isEditable:"isEditable"},standalone:!0,features:[W,$],decls:2,vars:3,consts:[["notEditable",""],["class","test-entry",4,"bkdLet"],[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"],["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(n,s){n&1&&(y(0,wi,20,18,"div",1),g(1,"async")),n&2&&m("bkdLet",b(1,1,s.test$))},dependencies:[Te,O,H,it,k,F,Xt,Jt],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)}}']});let i=t;return i})();function $i(i,t){if(i&1&&te(0,"bkd-dossier-single-test",5),i&2){let r=t.$implicit,e=v(3);m("test",r)("studentId",e.studentId)("gradingScale",e.getGradingScaleOfTest(r))("isEditable",e.isEditable)}}function Mi(i,t){if(i&1&&(p(0,"div"),te(1,"bkd-dossier-grades-final-grade",3),y(2,$i,1,4,"bkd-dossier-single-test",4),l()),i&2){let r=v().bkdLet,e=v();d(),m("finalGrade",e.decoratedCourse.finalGrade)("grading",e.decoratedCourse.grading)("gradingScale",e.decoratedCourse.gradingScale)("average",e.decoratedCourse.average),d(),m("ngForOf",r)}}function Ri(i,t){i&1&&(p(0,"p",6),u(1),g(2,"translate"),l()),i&2&&(d(),x(" ",b(2,1,"dossier.no-tests")," "))}function Oi(i,t){if(i&1&&(fe(0),y(1,Mi,3,5,"div",2)(2,Ri,3,3,"ng-template",null,0,ne),he()),i&2){let r=t.bkdLet,e=V(3);d(),m("ngIf",r.length>0)("ngIfElse",e)}}var ti=(()=>{let t=class t{ngOnChanges(e){e.decoratedCourse&&this.sortedTests$.next(this.sortedTests())}constructor(){this.sortedTests$=new B([])}sortedTests(){return this.decoratedCourse.course.Tests?At(this.decoratedCourse.course.Tests):[]}getGradingScaleOfTest(e){return Ge(e,this.gradingScales)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=D({type:t,selectors:[["bkd-dossier-course-tests"]],inputs:{studentId:"studentId",decoratedCourse:"decoratedCourse",gradingScales:"gradingScales",isEditable:"isEditable"},standalone:!0,features:[W,$],decls:2,vars:3,consts:[["noTests",""],[4,"bkdLet"],[4,"ngIf","ngIfElse"],[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(n,s){n&1&&(y(0,Oi,4,2,"ng-container",1),g(1,"async")),n&2&&m("bkdLet",b(1,1,s.sortedTests$))},dependencies:[Te,O,zt,re,ei,H,k,F]});let i=t;return i})();function Fi(i,t){if(i&1&&(p(0,"span",2),u(1),l()),i&2){let r=v();d(),x(" (",r.grade,")")}}function ki(i,t){if(i&1&&(p(0,"span",3),u(1),g(2,"number"),l()),i&2){let r=v();d(),x(" (",K(2,1,r.average,"1.1-3"),")")}}var ii=(()=>{let t=class t{constructor(){}get grade(){return this.getGradeForStudent()}getGradeForStudent(){return Pe(this.grading,this.finalGrade,this.gradingScale)}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=D({type:t,selectors:[["bkd-dossier-grades-course-header"]],inputs:{designation:"designation",finalGrade:"finalGrade",grading:"grading",gradingScale:"gradingScale",average:"average"},standalone:!0,features:[$],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(n,s){n&1&&(u(0),y(1,Fi,2,1,"span",0)(2,ki,3,4,"span",1)),n&2&&(P(s.designation),d(),m("ngIf",s.grade),d(),m("ngIf",!s.grade&&s.average))},dependencies:[O,nt],styles:[".average[_ngcontent-%COMP%]{color:#00000080}"]});let i=t;return i})();function ji(i,t){if(i&1&&te(0,"bkd-dossier-course-tests",11),i&2){let r=v().$implicit,e=v(2);m("decoratedCourse",r)("studentId",e.studentId)("gradingScales",e.gradingScales)("isEditable",e.isEditable)}}function Bi(i,t){if(i&1){let r=ie();p(0,"div")(1,"div",4)(2,"div",5,1)(4,"div",6)(5,"bkd-student-dossier-entry-header",7),A("click",function(){Z(r);let n=V(3);return ee(n.toggle())}),te(6,"bkd-dossier-grades-course-header",8),l()(),p(7,"div",9)(8,"div",10),y(9,ji,1,4,"ng-template"),l()()()()()}if(i&2){let r=t.$implicit,e=V(3);d(5),m("opened",!e.collapsed),d(),m("designation",r.course.Designation)("finalGrade",r.finalGrade)("grading",r.grading)("gradingScale",r.gradingScale)("average",r.average)}}function Ni(i,t){if(i&1&&(fe(0),y(1,Bi,10,6,"div",3),g(2,"async"),he()),i&2){let r=v();d(),m("ngForOf",b(2,2,r.decoratedCoursesSubject$))("ngForTrackBy",r.trackByCourseId)}}function Ai(i,t){i&1&&(p(0,"p",12),u(1),g(2,"translate"),l()),i&2&&(d(),x(" ",b(2,1,"dossier.no-courses")," "))}var Ar=(()=>{let t=class t{constructor(e){this.dossierGradeService=e,this.isEditable=!0,this.decoratedCoursesSubject$=new B([])}ngOnChanges(){this.decoratedCoursesSubject$.next(this.decorateCourses())}trackByCourseId(e,n){return n.course.Id}decorateCourses(){return this.courses?.map(e=>{let n=this.dossierGradeService.getFinalGradeForStudent(e,this.studentId),s=this.dossierGradeService.getGradesForStudent(e,this.studentId,this.gradingScales);return{course:e,finalGrade:n,grading:this.dossierGradeService.getGradingForStudent(e,this.studentId),gradingScale:this.dossierGradeService.getGradingScaleOfCourse(e,this.gradingScales),average:n?.AverageTestResult||Bt(s)}})}};t.\u0275fac=function(n){return new(n||t)(w(Ee))},t.\u0275cmp=D({type:t,selectors:[["bkd-dossier-grades-view"]],inputs:{courses:"courses",studentId:"studentId",gradingScales:"gradingScales",isEditable:"isEditable"},standalone:!0,features:[W,$],decls:3,vars:2,consts:[["noCourses",""],["courses","ngbAccordionItem"],[4,"ngIf","ngIfElse"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngbAccordion",""],["ngbAccordionItem",""],["ngbAccordionHeader",""],[3,"click","opened"],[3,"designation","finalGrade","grading","gradingScale","average"],["ngbAccordionCollapse",""],["ngbAccordionBody",""],[3,"decoratedCourse","studentId","gradingScales","isEditable"],["data-testid","message-no-courses",1,"py-3"]],template:function(n,s){if(n&1&&y(0,Ni,3,4,"ng-container",2)(1,Ai,3,3,"ng-template",null,0,ne),n&2){let f,T=V(2);m("ngIf",((f=s.courses==null?null:s.courses.length)!==null&&f!==void 0?f:0)>0)("ngIfElse",T)}},dependencies:[O,re,vt,St,bt,_t,ii,It,ht,ti,H,k,F]});let i=t;return i})();export{Ne as a,In as b,bn as c,Sn as d,vn as e,xn as f,Cn as g,yn as h,At as i,qt as j,Qt as k,Ci as l,Dt as m,wt as n,je as o,_e as p,He as q,Ht as r,Lt as s,Ee as t,Wt as u,Ar as v}; diff --git a/public/apps/webapp-schulverwaltung/chunk-QR6JUXUH.js b/public/apps/webapp-schulverwaltung/chunk-QR6JUXUH.js new file mode 100644 index 00000000..408016eb --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-QR6JUXUH.js @@ -0,0 +1 @@ +import{i as I}from"./chunk-FTRAQKUW.js";import{$ as g,Bb as u,Cb as c,Cd as S,Ha as h,Hd as V,Ia as p,Id as T,Sa as d,Ta as s,Ya as v,Zc as b,_a as D,ad as k,ed as y,ha as r,ia as o,ib as C,jb as _,ra as f,sd as w,tb as M,ua as l}from"./chunk-T7QWSMKM.js";var K=(()=>{let t=class t{constructor(){this.value=null,this.placeholder="shared.date-select.default-placeholder",this.minDate=null,this.valueChange=new f,this.componentId=S("bkd-date-select-")}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=g({type:t,selectors:[["bkd-date-select"]],inputs:{value:"value",placeholder:"placeholder",minDate:"minDate"},outputs:{valueChange:"valueChange"},standalone:!0,features:[M],decls:8,vars:10,consts:[["dp","ngbDatepicker"],[1,"input-group"],[1,"input-group-text",3,"id"],[1,"material-icons"],["type","text","ngbDatepicker","",1,"form-control",3,"click","ngModelChange","minDate","ngModel"]],template:function(i,e){if(i&1){let m=v();d(0,"div",1)(1,"span",2)(2,"i",3),_(3,"calendar_today"),s()(),d(4,"input",4,0),u(6,"translate"),u(7,"translate"),D("click",function(){r(m);let a=C(5);return o(a.toggle())})("ngModelChange",function(a){return r(m),o(e.valueChange.emit(a))}),s()()}i&2&&(l(),p("id",e.componentId),l(3),p("minDate",e.minDate)("ngModel",e.value),h("placeholder",c(6,6,e.placeholder))("aria-label",c(7,8,e.placeholder))("aria-describedby",e.componentId))},dependencies:[I,w,b,k,y,T,V]});let n=t;return n})();export{K as a}; diff --git a/public/apps/webapp-schulverwaltung/chunk-QUM6674D.js b/public/apps/webapp-schulverwaltung/chunk-QUM6674D.js new file mode 100644 index 00000000..ca3e3caa --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-QUM6674D.js @@ -0,0 +1,2 @@ +import{b as Te}from"./chunk-67IXHFR4.js";import{b as xe}from"./chunk-Y4QYVF5K.js";import"./chunk-WN7VWSJW.js";import{a as Se,c as Me}from"./chunk-33NXTXD7.js";import{a as be}from"./chunk-3AROKYRB.js";import{$ as g,$a as _,Ad as ye,Bb as u,Cb as f,Cd as ve,G as z,Ga as h,Gd as Ce,Ha as T,Hd as E,I as B,Ia as l,Ib as oe,Id as P,Ja as U,Jd as _e,L,M as H,O as I,Q as N,Sa as p,Sb as O,T as A,Ta as a,Tb as w,Ua as b,V as Y,W as J,Wb as se,Wc as ae,Xc as le,Yc as pe,Z as V,_a as X,a as D,ad as $,b as R,bd as ce,e as K,ed as de,f as W,fd as me,jb as y,jd as ue,k as j,kb as S,kd as fe,lb as k,m as M,pb as Z,qb as ee,qc as re,ra as Q,rb as te,rd as ge,sb as ie,sd as G,tb as v,td as he,ua as r,v as q,va as C,wb as ne}from"./chunk-T7QWSMKM.js";var ke=(()=>{let t=class t{constructor(){this.id=null,this.label=null,this.disabled=!1,this.value=!1,this.valueChange=new Q,this.fallbackId=ve("bkd-switch")}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=g({type:t,selectors:[["bkd-switch"]],inputs:{id:"id",label:"label",disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange"},standalone:!0,features:[v],decls:3,vars:5,consts:[["type","checkbox",3,"ngModelChange","disabled","ngModel"]],template:function(n,o){if(n&1&&(p(0,"input",0),X("ngModelChange",function(m){return o.valueChange.emit(m)}),a(),p(1,"label"),y(2),a()),n&2){let c,m;l("disabled",o.disabled)("ngModel",o.value),T("id",(c=o.id)!==null&&c!==void 0?c:o.fallbackId),r(),T("for",(m=o.id)!==null&&m!==void 0?m:o.fallbackId),r(),S(o.label)}},dependencies:[G,pe,$,de],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:#000;border-radius:14px;transition:.3s}input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{border-color:#000;background:#000}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:#dedede}label[_ngcontent-%COMP%]:active:after{width:18.2px}'],changeDetection:0});let i=t;return i})();function Ee(i,t){if(i&1&&(p(0,"div"),y(1),a()),i&2){let s=t.$implicit;r(),k(" ",s," ")}}function Pe(i,t){if(i&1&&(p(0,"div",4),h(1,Ee,2,1,"div",5),a()),i&2){let s=_();r(),l("ngForOf",s.descriptionLines)}}var Fe=(()=>{let t=class t{constructor(e){this.cd=e,this.id="",this.label="",this.description=null,this.disabled=!1,this.onChange=n=>{},this.onTouched=()=>{},this._value=!1}get value(){return this._value}set value(e){this._value=e,this.onChange(e)}get descriptionLines(){return this.description?this.description.split(` +`):[]}writeValue(e){this._value=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}};t.\u0275fac=function(n){return new(n||t)(C(oe))},t.\u0275cmp=g({type:t,selectors:[["bkd-my-settings-notifications-toggle"]],inputs:{id:"id",label:"label",description:"description",disabled:"disabled"},standalone:!0,features:[ie([{provide:le,useExisting:Y(()=>t),multi:!0}]),v],decls:5,vars:6,consts:[[1,"d-flex","align-items-center"],[1,"flex-fill"],[3,"valueChange","id","value","disabled"],["class","form-text",4,"ngIf"],[1,"form-text"],[4,"ngFor","ngForOf"]],template:function(n,o){n&1&&(p(0,"div",0)(1,"label",1),y(2),a(),p(3,"bkd-switch",2),te("valueChange",function(m){return ee(o.value,m)||(o.value=m),m}),a()(),h(4,Pe,2,1,"div",3)),n&2&&(r(),T("for",o.id),r(),k(" ",o.label," "),r(),l("id",o.id),Z("value",o.value),l("disabled",o.disabled),r(),l("ngIf",o.description))},dependencies:[ke,w,O],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0});let i=t;return i})();var Ie=(()=>{let t=class t{constructor(e,n){this.settings=e,this.storage=n,this.currentRoles=null}getNotificationTypes(){return this.getNotificationTypeKeys().map(e=>{if(!(e in this.settings.notificationTypes))throw new Error(`Key '${e}' is missing in 'notificationTypes' setting`);return{key:e,text:this.settings.notificationTypes[e]}})}getNotificationTypeKeys(){return ye(this.settings.notificationTypesAssignments.reduce((e,{roles:n,types:o})=>this.hasAnyRole(n)?[...e,...o]:e,[]))}hasAnyRole(e){return this.currentRoles===null&&(this.currentRoles=xe(this.storage.getPayload()?.roles)),this.currentRoles.some(n=>e.includes(n))}};t.\u0275fac=function(n){return new(n||t)(V(ae),V(_e))},t.\u0275prov=J({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})();var je=(i,t)=>({channelsFormGroup:i,typesFormGroup:t});function Be(i,t){i&1&&(p(0,"div",6),b(1,"bkd-spinner",7),a())}function Le(i,t){if(i&1&&(b(0,"bkd-my-settings-notifications-toggle",10),u(1,"async"),u(2,"async")),i&2){let s=t.$implicit,e=t.index;U("mt-4",e>0),l("id","notification-channels-"+s.key)("label",f(1,6,s.label))("description",f(2,8,s.description))("formControlName",s.key)}}function Ae(i,t){if(i&1&&(p(0,"form",8),h(1,Le,3,10,"bkd-my-settings-notifications-toggle",9),a()),i&2){let s=_().bkdLet,e=_();l("formGroup",s.channelsFormGroup),r(),l("ngForOf",e.channelsSettings)}}function Ve(i,t){if(i&1&&(b(0,"bkd-my-settings-notifications-toggle",10),u(1,"async"),u(2,"async")),i&2){let s=t.$implicit,e=t.index;U("mt-4",e>0),l("id","notification-types-"+s.key)("label",f(1,6,s.label))("description",f(2,8,s.description))("formControlName",s.key)}}function Ue(i,t){if(i&1&&(p(0,"form",8),h(1,Ve,3,10,"bkd-my-settings-notifications-toggle",9),a()),i&2){let s=_().bkdLet,e=_();l("formGroup",s.typesFormGroup),r(),l("ngForOf",e.typesSettings)}}function Ke(i,t){if(i&1&&(p(0,"div",1)(1,"h2",2)(2,"span"),y(3),u(4,"translate"),a(),h(5,Be,2,0,"div",3),u(6,"async"),a(),h(7,Ae,2,2,"form",4),p(8,"p",5),y(9),u(10,"translate"),a(),b(11,"hr"),h(12,Ue,2,2,"form",4),a()),i&2){let s=t.bkdLet,e=_();r(3),S(f(4,5,"my-settings.notifications.title")),r(2),l("ngIf",f(6,7,e.saving$)),r(2),l("ngIf",s.channelsFormGroup),r(2),k(" ",f(10,9,"my-settings.notifications.privacy-hint")," "),r(3),l("ngIf",s.typesFormGroup)}}var Ne=(()=>{let t=class t{constructor(e,n,o,c,m){this.userSettings=e,this.formBuilder=n,this.toastService=o,this.translate=c,this.notificationTypes=m,this.channelsSettings=[{key:"gui",label:this.translate.get("my-settings.notifications.gui")},{key:"mail",label:this.translate.get("my-settings.notifications.mail")},{key:"phoneMobile",label:this.translate.get("my-settings.notifications.phoneMobile")}],this.typesSettings=this.notificationTypes.getNotificationTypes().map(d=>{let{label:x,description:$e}=this.translate.currentLang==="fr-CH"?d.text.fr:d.text.de;return{key:d.key,label:j(x),description:j($e)}}),this.channelsValue$=this.userSettings.getNotificationChannels(),this.typesValue$=this.userSettings.getNotificationTypesInactive().pipe(M(this.typesArrayToRecord.bind(this))),this.channelsFormGroup$=this.channelsValue$.pipe(M(d=>this.createFormGroup(this.channelsSettings,d)),L(1)),this.allChannelsInactive$=q(this.channelsValue$,this.channelsFormGroup$.pipe(I(d=>d.valueChanges))).pipe(M(d=>Object.values(d).every(x=>!x)),z()),this.typesFormGroup$=this.typesValue$.pipe(A(this.allChannelsInactive$),M(([d,x])=>this.createFormGroup(this.typesSettings,d,!0,x)),L(1)),this.saving$=new W(!1),this.destroy$=new K}ngOnInit(){this.userSettings.refetch(),this.allChannelsInactive$.pipe(H(1),A(this.typesFormGroup$),N(this.destroy$)).subscribe(([e,n])=>{Object.values(n.controls).forEach(o=>e?o.disable():o.enable())}),this.channelsFormGroup$.pipe(N(this.destroy$),I(e=>e.valueChanges)).subscribe(this.saveChannels.bind(this)),this.typesFormGroup$.pipe(N(this.destroy$),I(e=>e.valueChanges)).subscribe(this.saveTypes.bind(this))}ngOnDestroy(){this.destroy$.next()}createFormGroup(e,n,o=!1,c=!1){return this.formBuilder.group(e.reduce((m,{key:d})=>R(D({},m),{[d]:[{value:n[d]??o,disabled:c}]}),{}))}saveChannels(e){this.saving$.next(!0),this.userSettings.saveNotificationChannels(e).pipe(B(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}saveTypes(e){this.saving$.next(!0),this.userSettings.saveNotificationTypesInactive(this.typesRecordToArray(e)).pipe(B(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.toastService.success(this.translate.instant("my-settings.notifications.save-success"))}typesArrayToRecord(e){return this.typesSettings.reduce((o,{key:c})=>R(D({},o),{[c]:!e.includes(c)}),{})}typesRecordToArray(e){return Object.keys(e).reduce((o,c)=>e[c]?o:[...o,c],[])}};t.\u0275fac=function(n){return new(n||t)(C(Te),C(ge),C(be),C(Ce),C(Ie))},t.\u0275cmp=g({type:t,selectors:[["bkd-my-settings-notifications"]],standalone:!0,features:[v],decls:3,vars:8,consts:[["class","pb-4",4,"bkdLet"],[1,"pb-4"],[1,"m-0","pb-3","d-flex","align-items-stretch"],["class","position-relative",4,"ngIf"],[3,"formGroup",4,"ngIf"],[1,"mt-4","form-text"],[1,"position-relative"],[1,"position-absolute","inline","small","d-inline-block","ms-2"],[3,"formGroup"],[3,"id","label","description","formControlName","mt-4",4,"ngFor","ngForOf"],[3,"id","label","description","formControlName"]],template:function(n,o){n&1&&(h(0,Ke,13,11,"div",0),u(1,"async"),u(2,"async")),n&2&&l("bkdLet",ne(5,je,f(1,1,o.channelsFormGroup$),f(2,3,o.typesFormGroup$)))},dependencies:[Se,w,Me,G,me,$,ce,he,ue,fe,O,Fe,se,P,E],styles:[".checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important}"],changeDetection:0});let i=t;return i})();var Oe=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=g({type:t,selectors:[["bkd-my-settings-show"]],standalone:!0,features:[v],decls:5,vars:3,consts:[[1,"bkd-container","bkd-container-limited"]],template:function(n,o){n&1&&(p(0,"div",0)(1,"h1"),y(2),u(3,"translate"),a(),b(4,"bkd-my-settings-notifications"),a()),n&2&&(r(2),S(f(3,1,"my-settings.title")))},dependencies:[Ne,P,E]});let i=t;return i})();var we=(()=>{let t=class t{constructor(){}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=g({type:t,selectors:[["bkd-my-settings"]],standalone:!0,features:[v],decls:1,vars:0,template:function(n,o){n&1&&b(0,"router-outlet")},dependencies:[re],changeDetection:0});let i=t;return i})();var Ot=[{path:"",component:we,children:[{path:"",component:Oe}]}];export{Ot as MY_SETTINGS_ROUTES}; diff --git a/public/apps/webapp-schulverwaltung/chunk-RC3HL7KB.js b/public/apps/webapp-schulverwaltung/chunk-RC3HL7KB.js new file mode 100644 index 00000000..49fc945d --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-RC3HL7KB.js @@ -0,0 +1 @@ +import{a as je,b as Ne,c as Me,d as Ve,e as Oe}from"./chunk-KLXFX6SJ.js";import{t as V,v as Re}from"./chunk-QHPTZGVN.js";import{d as Ee,e as Le}from"./chunk-2FIH3FGB.js";import{b as te}from"./chunk-LO5XSJLW.js";import{a as Fe}from"./chunk-DMYOU5OM.js";import{P as Pe,T as Z,X as Be,Y as Ge}from"./chunk-GI4AZI25.js";import{a as we}from"./chunk-N6FFLIGM.js";import{a as E,c as ee}from"./chunk-33NXTXD7.js";import{a as Y,b as z,c as J,d as K,e as X}from"./chunk-FTRAQKUW.js";import{a as $e}from"./chunk-3AROKYRB.js";import{$ as x,$a as l,Bb as m,Cb as _,Db as xe,Fb as ce,Ga as c,Gd as Te,Hd as N,Ia as o,Id as M,Ja as ge,K as ue,L as fe,N as oe,O as L,Q as H,Sa as d,Sb as W,Ta as p,Tb as I,Ua as b,Va as v,W as U,Wa as h,Wb as P,Wc as De,Xb as Ce,Ya as j,Z as T,_a as k,a as B,ab as be,b as F,bb as ve,e as q,f as pe,g as re,ha as C,ia as S,ib as f,j as le,jb as u,k as me,kb as G,lb as g,m as $,n as _e,pc as Se,qc as ke,sb as Q,sc as Ae,tb as A,tc as Ie,ua as r,ub as ae,va as y,vb as w,xb as he,yb as ye}from"./chunk-T7QWSMKM.js";var ne=(()=>{let t=class t{constructor(i,s,a,O,se){this.settings=i,this.lessonPresencesService=s,this.presenceTypesService=a,this.toastService=O,this.translate=se,this.studentId$=new re(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(i){this.studentId$.next(i)}getAbsences(i){return this.studentId$.pipe(L(i),oe(null),ue({connector:()=>new re(1)}))}getCounts(){return this.studentId$.pipe(L(i=>_e([this.loadStatistics(i).pipe(oe(null)),this.openAbsences$.pipe($(s=>s?.length??null)),this.checkableAbsences$.pipe($(s=>s?.length??null))])),$(([i,s,a])=>({openAbsences:s,checkableAbsences:a,excusedAbsences:i?.TotalAbsencesValidExcuse??null,unexcusedAbsences:i?.TotalAbsencesWithoutExcuse??null,incidents:i?.TotalIncidents??null,halfDays:i?.TotalHalfDays??null})))}loadStatistics(i){return this.lessonPresencesService.getStatistics({student:i,educationalEvent:null,studyClass:null},null,0).pipe(L(({entries:s})=>s.length>0?me(s[0]):(this.toastService.error(this.translate.instant("global.rest-errors.notfound-message"),this.translate.instant("global.rest-errors.notfound-title")),le)))}loadOpenAbsences(i){return this.lessonPresencesService.getListOfUnconfirmed(this.getBaseParams(i))}loadCheckableAbsences(i){return this.lessonPresencesService.getList({params:F(B({},this.getBaseParams(i)),{"filter.ConfirmationStateId":`=${this.settings.checkableAbsenceStateId}`})})}loadExcusedAbsences(i){return this.lessonPresencesService.getList({params:F(B({},this.getBaseParams(i)),{"filter.ConfirmationStateId":`=${this.settings.excusedAbsenceStateId}`})})}loadUnexcusedAbsences(i){return this.lessonPresencesService.getList({params:F(B({},this.getBaseParams(i)),{"filter.ConfirmationStateId":`=${this.settings.unexcusedAbsenceStateId}`})})}loadIncidents(i){return this.presenceTypesService.incidentTypes$.pipe($(s=>F(B({},this.getBaseParams(i)),{"filter.TypeRef":`;${s.map(a=>a.Id).join(";")}`})),L(s=>this.lessonPresencesService.getList({params:s})))}loadHalfDays(i){return this.lessonPresencesService.getList({params:F(B({},this.getBaseParams(i)),{"filter.TypeRef":`=${this.settings.halfDayPresenceTypeId}`})})}getBaseParams(i){return{sort:"LessonDateTimeFrom.asc","filter.StudentRef":`=${i}`}}};t.\u0275fac=function(s){return new(s||t)(T(De),T(Le),T(Z),T($e),T(Te))},t.\u0275prov=U({token:t,factory:t.\u0275fac});let e=t;return e})();var D=(()=>{let t=class t{constructor(i,s){this.profileService=i,this.route=s,this.currentDossier$=new pe("addresses"),this.studentId$=this.route.paramMap.pipe($(a=>Number(a.get("id")))),this.profile$=this.studentId$.pipe(L(a=>this.profileService.getProfile(a)),fe(1)),this.returnParams$=this.route.queryParams.pipe($(({returnparams:a})=>a)),this.backlinkQueryParams$=this.returnParams$.pipe($(Fe)),this.loading$=this.profileService.loading$}};t.\u0275fac=function(s){return new(s||t)(T(je),T(Se))},t.\u0275prov=U({token:t,factory:t.\u0275fac});let e=t;return e})();var Ke=e=>({absenceCounts:e});function Xe(e,t){if(e&1&&(v(0),u(1),h()),e&2){let n=l().bkdLet;r(),g("(",n.absenceCounts.checkableAbsences,") ")}}function Ze(e,t){if(e&1&&b(0,"bkd-student-dossier-absences",15),e&2){let n=l(2);o("absences$",n.absencesService.checkableAbsences$)}}function et(e,t){if(e&1&&(v(0),u(1),h()),e&2){let n=l().bkdLet;r(),g("(",n.absenceCounts.openAbsences,") ")}}function tt(e,t){if(e&1&&b(0,"bkd-student-dossier-absences",16),e&2){let n=l(2);o("absences$",n.absencesService.openAbsences$)("selectionService",n.absencesSelectionService)}}function nt(e,t){if(e&1&&(v(0),u(1),h()),e&2){let n=l().bkdLet;r(),g("(",n.absenceCounts.excusedAbsences,") ")}}function it(e,t){if(e&1&&b(0,"bkd-student-dossier-absences",15),e&2){let n=l(2);o("absences$",n.absencesService.excusedAbsences$)}}function st(e,t){if(e&1&&(v(0),u(1),h()),e&2){let n=l().bkdLet;r(),g("(",n.absenceCounts.unexcusedAbsences,") ")}}function rt(e,t){if(e&1&&b(0,"bkd-student-dossier-absences",17),e&2){let n=l(2);o("absences$",n.absencesService.unexcusedAbsences$)("displayPresenceType",!1)}}function ot(e,t){if(e&1&&(v(0),u(1),h()),e&2){let n=l().bkdLet;r(),g("(",n.absenceCounts.incidents,") ")}}function at(e,t){if(e&1&&b(0,"bkd-student-dossier-absences",15),e&2){let n=l(2);o("absences$",n.absencesService.incidents$)}}function ct(e,t){if(e&1&&(v(0),u(1),h()),e&2){let n=l(2).bkdLet;r(),g("(",n.absenceCounts.halfDays,") ")}}function dt(e,t){if(e&1&&b(0,"bkd-student-dossier-absences",17),e&2){let n=l(3);o("absences$",n.absencesService.halfDays$)("displayPresenceType",!1)}}function pt(e,t){if(e&1){let n=j();d(0,"div",18,5)(2,"div",9)(3,"bkd-student-dossier-entry-header",10),k("click",function(){C(n);let s=f(1);return S(s.toggle())}),u(4),m(5,"translate"),c(6,ct,2,1,"ng-container",11),p()(),d(7,"div",12)(8,"div",13),c(9,dt,1,2,"ng-template"),p()()()}if(e&2){let n=f(1),i=l().bkdLet;r(3),o("opened",!n.collapsed),r(),g(" ",_(5,3,"shared.profile.half-days")," "),r(2),o("ngIf",i.absenceCounts.halfDays!==null)}}function lt(e,t){if(e&1){let n=j();v(0),d(1,"div",7)(2,"div",8,0)(4,"div",9)(5,"bkd-student-dossier-entry-header",10),k("click",function(){C(n);let s=f(3);return S(s.toggle())}),u(6),m(7,"translate"),c(8,Xe,2,1,"ng-container",11),p()(),d(9,"div",12)(10,"div",13),c(11,Ze,1,1,"ng-template"),p()()(),d(12,"div",8,1)(14,"div",9)(15,"bkd-student-dossier-entry-header",10),k("click",function(){C(n);let s=f(13);return S(s.toggle())}),u(16),m(17,"translate"),c(18,et,2,1,"ng-container",11),p()(),d(19,"div",12)(20,"div",13),c(21,tt,1,2,"ng-template"),p()()(),d(22,"div",8,2)(24,"div",9)(25,"bkd-student-dossier-entry-header",10),k("click",function(){C(n);let s=f(23);return S(s.toggle())}),u(26),m(27,"translate"),c(28,nt,2,1,"ng-container",11),p()(),d(29,"div",12)(30,"div",13),c(31,it,1,1,"ng-template"),p()()(),d(32,"div",8,3)(34,"div",9)(35,"bkd-student-dossier-entry-header",10),k("click",function(){C(n);let s=f(33);return S(s.toggle())}),u(36),m(37,"translate"),c(38,st,2,1,"ng-container",11),p()(),d(39,"div",12)(40,"div",13),c(41,rt,1,2,"ng-template"),p()()(),d(42,"div",8,4)(44,"div",9)(45,"bkd-student-dossier-entry-header",10),k("click",function(){C(n);let s=f(43);return S(s.toggle())}),u(46),m(47,"translate"),c(48,ot,2,1,"ng-container",11),p()(),d(49,"div",12)(50,"div",13),c(51,at,1,1,"ng-template"),p()()(),c(52,pt,10,5,"div",14),m(53,"async"),p(),h()}if(e&2){let n=t.bkdLet,i=f(3),s=f(13),a=f(23),O=f(33),se=f(43),Ye=l();r(5),o("opened",!i.collapsed),r(),g(" ",_(7,16,"shared.profile.checkable-absences")," "),r(2),o("ngIf",n.absenceCounts.checkableAbsences!==null),r(7),o("opened",!s.collapsed),r(),g(" ",_(17,18,"shared.profile.open-absences")," "),r(2),o("ngIf",n.absenceCounts.openAbsences!==null),r(7),o("opened",!a.collapsed),r(),g(" ",_(27,20,"shared.profile.excused-absences")," "),r(2),o("ngIf",n.absenceCounts.excusedAbsences!==null),r(7),o("opened",!O.collapsed),r(),g(" ",_(37,22,"shared.profile.unexcused-absences")," "),r(2),o("ngIf",n.absenceCounts.unexcusedAbsences!==null),r(7),o("opened",!se.collapsed),r(),g(" ",_(47,24,"shared.profile.incidents")," "),r(2),o("ngIf",n.absenceCounts.incidents!==null),r(4),o("ngIf",_(53,26,Ye.halfDayActive$))}}var qe=(()=>{let t=class t{constructor(i,s,a,O){this.state=i,this.presenceTypesService=s,this.absencesService=a,this.absencesSelectionService=O,this.halfDayActive$=this.presenceTypesService.halfDayActive$,this.destroy$=new q,this.state.currentDossier$.next("absences")}ngOnInit(){this.state.studentId$.pipe(H(this.destroy$)).subscribe(i=>this.absencesService.setStudentId(i))}ngOnDestroy(){this.destroy$.next()}};t.\u0275fac=function(s){return new(s||t)(y(D),y(Z),y(ne),y(Pe))},t.\u0275cmp=x({type:t,selectors:[["bkd-dossier-absences"]],standalone:!0,features:[Q([ne]),A],decls:2,vars:5,consts:[["checkableAbsences","ngbAccordionItem"],["openAbsences","ngbAccordionItem"],["excusedAbsences","ngbAccordionItem"],["unexcusedAbsences","ngbAccordionItem"],["incidents","ngbAccordionItem"],["halfDays","ngbAccordionItem"],[4,"bkdLet"],["ngbAccordion",""],["ngbAccordionItem",""],["ngbAccordionHeader",""],[3,"click","opened"],[4,"ngIf"],["ngbAccordionCollapse",""],["ngbAccordionBody",""],["ngbAccordionItem","","id","half-days",4,"ngIf"],[3,"absences$"],[3,"absences$","selectionService"],[3,"absences$","displayPresenceType"],["ngbAccordionItem","","id","half-days"]],template:function(s,a){s&1&&(c(0,lt,54,28,"ng-container",6),m(1,"async")),s&2&&o("bkdLet",w(3,Ke,_(1,1,a.absencesService.counts$)))},dependencies:[E,X,K,J,te,I,z,Y,Be,P,M,N],changeDetection:0});let e=t;return e})();var mt=e=>({profile:e});function _t(e,t){if(e&1&&b(0,"bkd-student-dossier-legal-representative",13),e&2){let n=t.$implicit;o("person",n)}}function ut(e,t){if(e&1&&c(0,_t,1,1,"bkd-student-dossier-legal-representative",12),e&2){let n=l(2).bkdLet;o("ngForOf",n.profile.legalRepresentativePersons)}}function ft(e,t){if(e&1){let n=j();d(0,"div",7,0)(2,"div",8)(3,"bkd-student-dossier-entry-header",9),k("click",function(){C(n);let s=f(1);return S(s.toggle())}),u(4),m(5,"translate"),p()(),d(6,"div",10)(7,"div",11),c(8,ut,1,1,"ng-template"),p()()()}if(e&2){let n=f(1);r(3),o("opened",!n.collapsed),r(),g(" ",_(5,2,"shared.profile.legal-representation")," ")}}function gt(e,t){if(e&1&&(v(0),u(1),h()),e&2){let n=l().index;r(),g("",n+1," ")}}function bt(e,t){if(e&1&&b(0,"bkd-student-dossier-apprenticeship-company",15),e&2){let n=l().$implicit;o("company",n)}}function vt(e,t){if(e&1){let n=j();d(0,"div",7,1)(2,"div",8)(3,"bkd-student-dossier-entry-header",9),k("click",function(){C(n);let s=f(1);return S(s.toggle())}),u(4),m(5,"translate"),c(6,gt,2,1,"ng-container",14),p()(),d(7,"div",10)(8,"div",11),c(9,bt,1,1,"ng-template"),p()()()}if(e&2){let n=f(1),i=l().bkdLet;r(3),o("opened",!n.collapsed),r(),g(" ",_(5,3,"shared.profile.apprenticeship-company")," "),r(2),o("ngIf",i.profile.apprenticeshipCompanies.length>1)}}function ht(e,t){if(e&1&&(v(0),b(1,"bkd-student-dossier-address",3),d(2,"div",4),c(3,ft,9,4,"div",5)(4,vt,10,5,"div",6),p(),h()),e&2){let n=t.bkdLet;r(),o("student",n.profile.student),r(2),o("ngIf",n.profile.legalRepresentativePersons.length>0),r(),o("ngForOf",n.profile.apprenticeshipCompanies)}}var He=(()=>{let t=class t{constructor(i){this.state=i,this.state.currentDossier$.next("addresses")}};t.\u0275fac=function(s){return new(s||t)(y(D))},t.\u0275cmp=x({type:t,selectors:[["bkd-dossier-addresses"]],standalone:!0,features:[A],decls:2,vars:5,consts:[["legalRepresentatives","ngbAccordionItem"],["apprenticeshipCompanies","ngbAccordionItem"],[4,"bkdLet"],[1,"profile-entry",3,"student"],["ngbAccordion",""],["ngbAccordionItem","",4,"ngIf"],["ngbAccordionItem","",4,"ngFor","ngForOf"],["ngbAccordionItem",""],["ngbAccordionHeader",""],[3,"click","opened"],["ngbAccordionCollapse",""],["ngbAccordionBody",""],["class","profile-entry",3,"person",4,"ngFor","ngForOf"],[1,"profile-entry",3,"person"],[4,"ngIf"],[1,"profile-entry",3,"company"]],template:function(s,a){s&1&&(c(0,ht,5,3,"ng-container",2),m(1,"async")),s&2&&o("bkdLet",w(3,mt,_(1,1,a.state.profile$)))},dependencies:[E,Ne,X,I,K,J,te,z,Y,W,Ve,Me,P,M,N],styles:[".profile-entry[_ngcontent-%COMP%]{display:block;padding:0 1rem}"],changeDetection:0});let e=t;return e})();var xt=(e,t,n,i)=>({studentId:e,loading:t,courses:n,gradingScales:i});function Ct(e,t){if(e&1&&b(0,"bkd-dossier-grades-view",3),e&2){let n=l().bkdLet;o("courses",n.courses)("studentId",n.studentId)("gradingScales",n.gradingScales)}}function St(e,t){e&1&&(v(0),b(1,"bkd-spinner"),h())}function kt(e,t){if(e&1&&(v(0),c(1,Ct,1,3,"bkd-dossier-grades-view",1)(2,St,2,0,"ng-container",2),h()),e&2){let n=t.bkdLet;r(),o("ngIf",!n.loading),r(),o("ngIf",n.loading)}}var Ue=(()=>{let t=class t{constructor(i,s){this.state=i,this.dossierGradesService=s,this.destroy$=new q}ngOnInit(){this.state.currentDossier$.next("grades"),this.state.studentId$.pipe(H(this.destroy$)).subscribe(i=>this.dossierGradesService.setStudentId(i))}ngOnDestroy(){this.destroy$.next()}};t.\u0275fac=function(s){return new(s||t)(y(D),y(V))},t.\u0275cmp=x({type:t,selectors:[["bkd-dossier-grades"]],standalone:!0,features:[A],decls:5,vars:14,consts:[[4,"bkdLet"],[3,"courses","studentId","gradingScales",4,"ngIf"],[4,"ngIf"],[3,"courses","studentId","gradingScales"]],template:function(s,a){s&1&&(c(0,kt,3,2,"ng-container",0),m(1,"async"),m(2,"async"),m(3,"async"),m(4,"async")),s&2&&o("bkdLet",ye(9,xt,_(1,1,a.state.studentId$),_(2,3,a.dossierGradesService.loading$),_(3,5,a.dossierGradesService.studentCourses$),_(4,7,a.dossierGradesService.gradingScales$)))},dependencies:[E,I,Re,ee,P]});let e=t;return e})();var At=["*"];function It(e,t){if(e&1&&(d(0,"div",6)(1,"span",7),u(2),m(3,"date"),p(),d(4,"span",8),u(5),p()()),e&2){let n=l();r(2),G(xe(3,2,n.student.Birthdate,"dd.MM.yyyy")),r(3),g("(",n.student.Gender,")")}}var Qe=(()=>{let t=class t{constructor(){this.link="/"}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=x({type:t,selectors:[["bkd-student-backlink"]],inputs:{link:"link",queryParams:"queryParams",studentId:"studentId",studentName:"studentName",student:"student"},standalone:!0,features:[A],ngContentSelectors:At,decls:9,vars:5,consts:[[1,"d-flex","flex-column","w-100"],[3,"link","params"],[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(s,a){s&1&&(be(),d(0,"div",0)(1,"bkd-backlink",1),ve(2),p(),d(3,"div",2),b(4,"bkd-avatar",3),d(5,"div",4)(6,"h1"),u(7),p(),c(8,It,6,5,"div",5),p()()()),s&2&&(r(),o("link",a.link)("params",a.queryParams),r(3),o("studentId",a.studentId),r(3),G(a.student?a.student.FullName:a.studentName),r(),o("ngIf",a.student))},dependencies:[Ge,Oe,I,Ce],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});let e=t;return e})();var Dt=(e,t,n)=>({profile:e,currentDossierSection:t,reports:n}),$t=()=>["addresses","absences","grades"],Tt=()=>[],Pt=e=>({returnparams:e}),Et=e=>[e];function Lt(e,t){if(e&1&&b(0,"bkd-reports-link",10),e&2){let n,i=l(2).bkdLet;o("reports",(n=i.reports)!==null&&n!==void 0?n:ae(1,Tt))}}function wt(e,t){if(e&1&&(d(0,"a",11),m(1,"async"),d(2,"button",12,2),u(4),m(5,"translate"),p()()),e&2){let n=t.$implicit,i=f(3),s=l(3);o("queryParams",w(9,Pt,_(1,5,s.state.returnParams$)))("routerLink",w(11,Et,n)),r(2),ge("btn-outline-secondary",!i.isActive),r(2),g(" ",_(5,7,"dossier."+n)," ")}}function Bt(e,t){e&1&&(d(0,"div"),b(1,"router-outlet"),p())}function Ft(e,t){e&1&&(d(0,"p"),u(1),m(2,"translate"),p()),e&2&&(r(),G(_(2,1,"shared.profile.no-profile")))}function jt(e,t){if(e&1&&(v(0),d(1,"bkd-student-backlink",6),m(2,"async"),m(3,"async"),c(4,Lt,1,2,"bkd-reports-link",7),p(),d(5,"div",8),c(6,wt,6,13,"a",9),p(),c(7,Bt,2,0,"div",5)(8,Ft,3,3,"ng-template",null,1,ce),h()),e&2){let n=f(9),i=l().bkdLet,s=l();r(),o("link","../..")("queryParams",_(2,8,s.state.backlinkQueryParams$))("studentId",_(3,10,s.state.studentId$))("student",i.profile&&i.profile.student),r(3),o("ngIf",i.currentDossierSection==="grades"),r(2),o("ngForOf",ae(12,$t)),r(),o("ngIf",i.profile)("ngIfElse",n)}}function Nt(e,t){e&1&&b(0,"bkd-spinner")}function Mt(e,t){if(e&1&&(v(0),c(1,jt,10,13,"ng-container",5),m(2,"async"),c(3,Nt,1,0,"ng-template",null,0,ce),h()),e&2){let n=f(4),i=l();r(),o("ngIf",_(2,2,i.state.loading$)===!1)("ngIfElse",n)}}var We=(()=>{let t=class t{constructor(i,s){this.state=i,this.dossierGradesService=s,this.state.currentDossier$.next("addresses")}};t.\u0275fac=function(s){return new(s||t)(y(D),y(V))},t.\u0275cmp=x({type:t,selectors:[["bkd-student-dossier"]],standalone:!0,features:[Q([D,V]),A],decls:5,vars:11,consts:[["loading",""],["noProfile",""],["rla","routerLinkActive"],[1,"bkd-container","bkd-container-limited"],[4,"bkdLet"],[4,"ngIf","ngIfElse"],[1,"mb-2",3,"link","queryParams","studentId","student"],["class","ms-2",3,"reports",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"],[1,"ms-2",3,"reports"],[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"]],template:function(s,a){s&1&&(d(0,"div",3),c(1,Mt,5,4,"ng-container",4),m(2,"async"),m(3,"async"),m(4,"async"),p()),s&2&&(r(),o("bkdLet",he(7,Dt,_(2,1,a.state.profile$),_(3,3,a.state.currentDossier$),_(4,5,a.dossierGradesService.testReports$))))},dependencies:[E,I,Qe,we,W,Ae,Ie,ke,ee,P,M,N],changeDetection:0});let e=t;return e})();var Gn={path:"student/:id",children:[{path:"",component:We,children:[{path:"addresses",component:He},{path:"absences",component:qe},{path:"grades",component:Ue}]},{path:"absences/confirm",component:Ee}]};export{Gn as a}; diff --git a/public/apps/webapp-schulverwaltung/chunk-RWNJF4OZ.js b/public/apps/webapp-schulverwaltung/chunk-RWNJF4OZ.js new file mode 100644 index 00000000..fefe1619 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-RWNJF4OZ.js @@ -0,0 +1 @@ +import{Gd as u,Hb as g,Jd as c,W as s,Z as n}from"./chunk-T7QWSMKM.js";var o=["de-CH","fr-CH"],i=o[0];function p(){return[{provide:g,useFactory:r=>r.detectLanguage(),deps:[L]}]}var L=(()=>{let t=class t{constructor(e,a){this.translate=e,this.storage=a}initialize(){this.translate.setDefaultLang(i),this.translate.use(this.detectLanguage())}detectLanguage(){return this.detectedLanguage||(this.detectedLanguage=this.getDocumentLanguage()||this.getStoredLanguage()||this.getBrowserLanguage()||i),this.detectedLanguage}getLocalizedLanguage(e){return e=o.find(a=>a===`${(e||"").toLowerCase()}-CH`),e||i}getDocumentLanguage(){let e=document.querySelector("[lang]");return this.normalizeLanguage(e&&e.lang)}getStoredLanguage(){return this.normalizeLanguage(this.storage.getLanguage())}getBrowserLanguage(){return this.normalizeLanguage(this.translate.getBrowserLang())}normalizeLanguage(e){return e=(e||"").split("-")[0],e&&o.find(a=>e===a.split("-")[0])||null}};t.\u0275fac=function(a){return new(a||t)(n(u),n(c))},t.\u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})();export{p as a,L as b}; diff --git a/public/apps/webapp-schulverwaltung/chunk-T7QWSMKM.js b/public/apps/webapp-schulverwaltung/chunk-T7QWSMKM.js new file mode 100644 index 00000000..c312470b --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-T7QWSMKM.js @@ -0,0 +1,9 @@ +var mx=Object.defineProperty,vx=Object.defineProperties;var yx=Object.getOwnPropertyDescriptors;var Vs=Object.getOwnPropertySymbols;var Kp=Object.prototype.hasOwnProperty,Yp=Object.prototype.propertyIsEnumerable;var Zp=(t,e,r)=>e in t?mx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,D=(t,e)=>{for(var r in e||={})Kp.call(e,r)&&Zp(t,r,e[r]);if(Vs)for(var r of Vs(e))Yp.call(e,r)&&Zp(t,r,e[r]);return t},$=(t,e)=>vx(t,yx(e));var Dx=(t,e)=>{var r={};for(var n in t)Kp.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&Vs)for(var n of Vs(t))e.indexOf(n)<0&&Yp.call(t,n)&&(r[n]=t[n]);return r};var Us=(t,e,r)=>new Promise((n,o)=>{var i=u=>{try{a(r.next(u))}catch(c){o(c)}},s=u=>{try{a(r.throw(u))}catch(c){o(c)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(i,s);a((r=r.apply(t,e)).next())});var nl=null;var tl=1,rl=Symbol("SIGNAL");function V(t){let e=nl;return nl=t,e}function Qp(){return nl}var ol={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function wx(t){if(!(cl(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===tl)){if(!t.producerMustRecompute(t)&&!sl(t)){t.dirty=!1,t.lastCleanEpoch=tl;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=tl}}function il(t){return t&&(t.nextProducerIndex=0),V(t)}function Jp(t,e){if(V(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(cl(t))for(let r=t.nextProducerIndex;rt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function sl(t){ll(t);for(let e=0;e0}function ll(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function bx(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Cx(t){return t.producerNode!==void 0}function Ex(){throw new Error}var Ix=Ex;function Xp(t){Ix=t}function T(t){return typeof t=="function"}function Kr(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Bs=Kr(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: +${r.map((n,o)=>`${o+1}) ${n.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=r});function hr(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var ie=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let i of r)i.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(T(n))try{n()}catch(i){e=i instanceof Bs?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{eg(i)}catch(s){e=e??[],s instanceof Bs?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Bs(e)}}add(e){var r;if(e&&e!==this)if(this.closed)eg(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&hr(r,e)}remove(e){let{_finalizers:r}=this;r&&hr(r,e),e instanceof t&&e._removeParent(this)}};ie.EMPTY=(()=>{let t=new ie;return t.closed=!0,t})();var dl=ie.EMPTY;function $s(t){return t instanceof ie||t&&"closed"in t&&T(t.remove)&&T(t.add)&&T(t.unsubscribe)}function eg(t){T(t)?t():t.unsubscribe()}var Dt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Yr={setTimeout(t,e,...r){let{delegate:n}=Yr;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=Yr;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Hs(t){Yr.setTimeout(()=>{let{onUnhandledError:e}=Dt;if(e)e(t);else throw t})}function Yt(){}var tg=fl("C",void 0,void 0);function ng(t){return fl("E",void 0,t)}function rg(t){return fl("N",t,void 0)}function fl(t,e,r){return{kind:t,value:e,error:r}}var pr=null;function Qr(t){if(Dt.useDeprecatedSynchronousErrorHandling){let e=!pr;if(e&&(pr={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=pr;if(pr=null,r)throw n}}else t()}function og(t){Dt.useDeprecatedSynchronousErrorHandling&&pr&&(pr.errorThrown=!0,pr.error=t)}var gr=class extends ie{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,$s(e)&&e.add(this)):this.destination=Mx}static create(e,r,n){return new Qt(e,r,n)}next(e){this.isStopped?pl(rg(e),this):this._next(e)}error(e){this.isStopped?pl(ng(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?pl(tg,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()}}},xx=Function.prototype.bind;function hl(t,e){return xx.call(t,e)}var gl=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){zs(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){zs(n)}else zs(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){zs(r)}}},Qt=class extends gr{constructor(e,r,n){super();let o;if(T(e)||!e)o={next:e??void 0,error:r??void 0,complete:n??void 0};else{let i;this&&Dt.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&hl(e.next,i),error:e.error&&hl(e.error,i),complete:e.complete&&hl(e.complete,i)}):o=e}this.destination=new gl(o)}};function zs(t){Dt.useDeprecatedSynchronousErrorHandling?og(t):Hs(t)}function _x(t){throw t}function pl(t,e){let{onStoppedNotification:r}=Dt;r&&Yr.setTimeout(()=>r(t,e))}var Mx={closed:!0,next:Yt,error:_x,complete:Yt};var Jr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function we(t){return t}function ml(...t){return vl(t)}function vl(t){return t.length===0?we:t.length===1?t[0]:function(r){return t.reduce((n,o)=>o(n),r)}}var P=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,o){let i=Sx(r)?r:new Qt(r,n,o);return Qr(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=ig(n),new n((o,i)=>{let s=new Qt({next:a=>{try{r(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[Jr](){return this}pipe(...r){return vl(r)(this)}toPromise(r){return r=ig(r),new r((n,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>n(i))})}}return t.create=e=>new t(e),t})();function ig(t){var e;return(e=t??Dt.Promise)!==null&&e!==void 0?e:Promise}function Tx(t){return t&&T(t.next)&&T(t.error)&&T(t.complete)}function Sx(t){return t&&t instanceof gr||Tx(t)&&$s(t)}function yl(t){return T(t?.lift)}function S(t){return e=>{if(yl(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function _(t,e,r,n,o){return new Dl(t,e,r,n,o)}var Dl=class extends gr{constructor(e,r,n,o,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(u){e.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){e.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function Xr(){return S((t,e)=>{let r=null;t._refCount++;let n=_(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let o=t._connection,i=r;r=null,o&&(!i||o===i)&&o.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var eo=class extends P{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,yl(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new ie;let r=this.getSubject();e.add(this.source.subscribe(_(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=ie.EMPTY)}return e}refCount(){return Xr()(this)}};var to={schedule(t){let e=requestAnimationFrame,r=cancelAnimationFrame,{delegate:n}=to;n&&(e=n.requestAnimationFrame,r=n.cancelAnimationFrame);let o=e(i=>{r=void 0,t(i)});return new ie(()=>r?.(o))},requestAnimationFrame(...t){let{delegate:e}=to;return(e?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:e}=to;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var sg=Kr(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var se=(()=>{class t extends P{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new Gs(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new sg}next(r){Qr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){Qr(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){Qr(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:o,observers:i}=this;return n||o?dl:(this.currentObservers=null,i.push(r),new ie(()=>{this.currentObservers=null,hr(i,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:o,isStopped:i}=this;n?r.error(o):i&&r.complete()}asObservable(){let r=new P;return r.source=this,r}}return t.create=(e,r)=>new Gs(e,r),t})(),Gs=class extends se{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:dl}};var Se=class extends se{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var yi={now(){return(yi.delegate||Date).now()},delegate:void 0};var Di=class extends se{constructor(e=1/0,r=1/0,n=yi){super(),this._bufferSize=e,this._windowTime=r,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=r===1/0,this._bufferSize=Math.max(1,e),this._windowTime=Math.max(1,r)}next(e){let{isStopped:r,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;r||(n.push(e),!o&&n.push(i.now()+s)),this._trimBuffer(),super.next(e)}_subscribe(e){this._throwIfClosed(),this._trimBuffer();let r=this._innerSubscribe(e),{_infiniteTimeWindow:n,_buffer:o}=this,i=o.slice();for(let s=0;sag(e)&&t()),e},clearImmediate(t){ag(t)}};var{setImmediate:Nx,clearImmediate:Ox}=ug,bi={setImmediate(...t){let{delegate:e}=bi;return(e?.setImmediate||Nx)(...t)},clearImmediate(t){let{delegate:e}=bi;return(e?.clearImmediate||Ox)(t)},delegate:void 0};var qs=class extends _n{constructor(e,r){super(e,r),this.scheduler=e,this.work=r}requestAsyncId(e,r,n=0){return n!==null&&n>0?super.requestAsyncId(e,r,n):(e.actions.push(this),e._scheduled||(e._scheduled=bi.setImmediate(e.flush.bind(e,void 0))))}recycleAsyncId(e,r,n=0){var o;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(e,r,n);let{actions:i}=e;r!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==r&&(bi.clearImmediate(r),e._scheduled===r&&(e._scheduled=void 0))}};var no=class t{constructor(e,r=t.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,n){return new this.schedulerActionCtor(this,e).schedule(n,r)}};no.now=yi.now;var Mn=class extends no{constructor(e,r=no.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,n){for(;e=r.shift();)e.unsubscribe();throw n}}};var Zs=class extends Mn{flush(e){this._active=!0;let r=this._scheduled;this._scheduled=void 0;let{actions:n}=this,o;e=e||n.shift();do if(o=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===r&&n.shift());if(this._active=!1,o){for(;(e=n[0])&&e.id===r&&n.shift();)e.unsubscribe();throw o}}};var Rx=new Zs(qs);var wt=new Mn(_n),cg=wt;var Ks=class extends _n{constructor(e,r){super(e,r),this.scheduler=e,this.work=r}requestAsyncId(e,r,n=0){return n!==null&&n>0?super.requestAsyncId(e,r,n):(e.actions.push(this),e._scheduled||(e._scheduled=to.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,r,n=0){var o;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(e,r,n);let{actions:i}=e;r!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==r&&(to.cancelAnimationFrame(r),e._scheduled=void 0)}};var Ys=class extends Mn{flush(e){this._active=!0;let r=this._scheduled;this._scheduled=void 0;let{actions:n}=this,o;e=e||n.shift();do if(o=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===r&&n.shift());if(this._active=!1,o){for(;(e=n[0])&&e.id===r&&n.shift();)e.unsubscribe();throw o}}};var Px=new Ys(Ks);var Ae=new P(t=>t.complete());function Qs(t){return t&&T(t.schedule)}function Cl(t){return t[t.length-1]}function Tn(t){return T(Cl(t))?t.pop():void 0}function Lt(t){return Qs(Cl(t))?t.pop():void 0}function lg(t,e){return typeof Cl(t)=="number"?t.pop():e}function fg(t,e,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(l){try{c(n.next(l))}catch(d){s(d)}}function u(l){try{c(n.throw(l))}catch(d){s(d)}}function c(l){l.done?i(l.value):o(l.value).then(a,u)}c((n=n.apply(t,e||[])).next())})}function dg(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function mr(t){return this instanceof mr?(this.v=t,this):new mr(t)}function hg(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),o,i=[];return o={},a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(h){return function(p){return Promise.resolve(p).then(h,d)}}function a(h,p){n[h]&&(o[h]=function(g){return new Promise(function(m,v){i.push([h,g,m,v])>1||u(h,g)})},p&&(o[h]=p(o[h])))}function u(h,p){try{c(n[h](p))}catch(g){f(i[0][3],g)}}function c(h){h.value instanceof mr?Promise.resolve(h.value.v).then(l,d):f(i[0][2],h)}function l(h){u("next",h)}function d(h){u("throw",h)}function f(h,p){h(p),i.shift(),i.length&&u(i[0][0],i[0][1])}}function pg(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof dg=="function"?dg(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(s){return new Promise(function(a,u){s=t[i](s),o(a,u,s.done,s.value)})}}function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}}var ro=t=>t&&typeof t.length=="number"&&typeof t!="function";function Js(t){return T(t?.then)}function Xs(t){return T(t[Jr])}function ea(t){return Symbol.asyncIterator&&T(t?.[Symbol.asyncIterator])}function ta(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Fx(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var na=Fx();function ra(t){return T(t?.[na])}function oa(t){return hg(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:o}=yield mr(r.read());if(o)return yield mr(void 0);yield yield mr(n)}}finally{r.releaseLock()}})}function ia(t){return T(t?.getReader)}function k(t){if(t instanceof P)return t;if(t!=null){if(Xs(t))return Lx(t);if(ro(t))return kx(t);if(Js(t))return jx(t);if(ea(t))return gg(t);if(ra(t))return Vx(t);if(ia(t))return Ux(t)}throw ta(t)}function Lx(t){return new P(e=>{let r=t[Jr]();if(T(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function kx(t){return new P(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,Hs)})}function Vx(t){return new P(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function gg(t){return new P(e=>{Bx(t,e).catch(r=>e.error(r))})}function Ux(t){return gg(oa(t))}function Bx(t,e){var r,n,o,i;return fg(this,void 0,void 0,function*(){try{for(r=pg(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){o={error:s}}finally{try{n&&!n.done&&(i=r.return)&&(yield i.call(r))}finally{if(o)throw o.error}}e.complete()})}function qe(t,e,r,n=0,o=!1){let i=e.schedule(function(){r(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(i),!o)return i}function sa(t,e=0){return S((r,n)=>{r.subscribe(_(n,o=>qe(n,t,()=>n.next(o),e),()=>qe(n,t,()=>n.complete(),e),o=>qe(n,t,()=>n.error(o),e)))})}function aa(t,e=0){return S((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function mg(t,e){return k(t).pipe(aa(e),sa(e))}function vg(t,e){return k(t).pipe(aa(e),sa(e))}function yg(t,e){return new P(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function Dg(t,e){return new P(r=>{let n;return qe(r,e,()=>{n=t[na](),qe(r,e,()=>{let o,i;try{({value:o,done:i}=n.next())}catch(s){r.error(s);return}i?r.complete():r.next(o)},0,!0)}),()=>T(n?.return)&&n.return()})}function ua(t,e){if(!t)throw new Error("Iterable cannot be null");return new P(r=>{qe(r,e,()=>{let n=t[Symbol.asyncIterator]();qe(r,e,()=>{n.next().then(o=>{o.done?r.complete():r.next(o.value)})},0,!0)})})}function wg(t,e){return ua(oa(t),e)}function bg(t,e){if(t!=null){if(Xs(t))return mg(t,e);if(ro(t))return yg(t,e);if(Js(t))return vg(t,e);if(ea(t))return ua(t,e);if(ra(t))return Dg(t,e);if(ia(t))return wg(t,e)}throw ta(t)}function te(t,e){return e?bg(t,e):k(t)}function I(...t){let e=Lt(t);return te(t,e)}function Sn(t,e){let r=T(t)?t:()=>t,n=o=>o.error(r());return new P(e?o=>e.schedule(n,0,o):n)}function bt(t){return!!t&&(t instanceof P||T(t.lift)&&T(t.subscribe))}var Jt=Kr(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Cg(t){return t instanceof Date&&!isNaN(t)}function N(t,e){return S((r,n)=>{let o=0;r.subscribe(_(n,i=>{n.next(t.call(e,i,o++))}))})}var{isArray:$x}=Array;function Hx(t,e){return $x(e)?t(...e):t(e)}function oo(t){return N(e=>Hx(t,e))}var{isArray:zx}=Array,{getPrototypeOf:Gx,prototype:Wx,keys:qx}=Object;function ca(t){if(t.length===1){let e=t[0];if(zx(e))return{args:e,keys:null};if(Zx(e)){let r=qx(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function Zx(t){return t&&typeof t=="object"&&Gx(t)===Wx}function la(t,e){return t.reduce((r,n,o)=>(r[n]=e[o],r),{})}function da(...t){let e=Lt(t),r=Tn(t),{args:n,keys:o}=ca(t);if(n.length===0)return te([],e);let i=new P(Kx(n,e,o?s=>la(o,s):we));return r?i.pipe(oo(r)):i}function Kx(t,e,r=we){return n=>{Eg(e,()=>{let{length:o}=t,i=new Array(o),s=o,a=o;for(let u=0;u{let c=te(t[u],e),l=!1;c.subscribe(_(n,d=>{i[u]=d,l||(l=!0,a--),a||n.next(r(i.slice()))},()=>{--s||n.complete()}))},n)},n)}}function Eg(t,e,r){t?qe(r,t,e):e()}function Ig(t,e,r,n,o,i,s,a){let u=[],c=0,l=0,d=!1,f=()=>{d&&!u.length&&!c&&e.complete()},h=g=>c{i&&e.next(g),c++;let m=!1;k(r(g,l++)).subscribe(_(e,v=>{o?.(v),i?h(v):e.next(v)},()=>{m=!0},void 0,()=>{if(m)try{for(c--;u.length&&cp(v)):p(v)}f()}catch(v){e.error(v)}}))};return t.subscribe(_(e,h,()=>{d=!0,f()})),()=>{a?.()}}function le(t,e,r=1/0){return T(e)?le((n,o)=>N((i,s)=>e(n,i,o,s))(k(t(n,o))),r):(typeof e=="number"&&(r=e),S((n,o)=>Ig(n,o,t,r)))}function An(t=1/0){return le(we,t)}function xg(){return An(1)}function tt(...t){return xg()(te(t,Lt(t)))}function Xt(t){return new P(e=>{k(t()).subscribe(e)})}var Yx={connector:()=>new se,resetOnDisconnect:!0};function Qx(t,e=Yx){let r=null,{connector:n,resetOnDisconnect:o=!0}=e,i=n(),s=new P(a=>i.subscribe(a));return s.connect=()=>((!r||r.closed)&&(r=Xt(()=>t).subscribe(i),o&&r.add(()=>i=n())),r),s}function Ci(...t){let e=Tn(t),{args:r,keys:n}=ca(t),o=new P(i=>{let{length:s}=r;if(!s){i.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=f},()=>u--,void 0,()=>{(!u||!d)&&(c||i.next(n?la(n,a):a),i.complete())}))}});return e?o.pipe(oo(e)):o}var Jx=["addListener","removeListener"],Xx=["addEventListener","removeEventListener"],e0=["on","off"];function El(t,e,r,n){if(T(r)&&(n=r,r=void 0),n)return El(t,e,r).pipe(oo(n));let[o,i]=r0(t)?Xx.map(s=>a=>t[s](e,a,r)):t0(t)?Jx.map(_g(t,e)):n0(t)?e0.map(_g(t,e)):[];if(!o&&ro(t))return le(s=>El(s,e,r))(k(t));if(!o)throw new TypeError("Invalid event target");return new P(s=>{let a=(...u)=>s.next(1i(a)})}function _g(t,e){return r=>n=>t[r](e,n)}function t0(t){return T(t.addListener)&&T(t.removeListener)}function n0(t){return T(t.on)&&T(t.off)}function r0(t){return T(t.addEventListener)&&T(t.removeEventListener)}function en(t=0,e,r=cg){let n=-1;return e!=null&&(Qs(e)?r=e:n=e),new P(o=>{let i=Cg(t)?+t-r.now():t;i<0&&(i=0);let s=0;return r.schedule(function(){o.closed||(o.next(s++),0<=n?this.schedule(void 0,n):o.complete())},i)})}function o0(t=0,e=wt){return t<0&&(t=0),en(t,t,e)}function i0(...t){let e=Lt(t),r=lg(t,1/0),n=t;return n.length?n.length===1?k(n[0]):An(r)(te(n,e)):Ae}var{isArray:s0}=Array;function fa(t){return t.length===1&&s0(t[0])?t[0]:t}function ke(t,e){return S((r,n)=>{let o=0;r.subscribe(_(n,i=>t.call(e,i,o++)&&n.next(i)))})}function a0(...t){return t=fa(t),t.length===1?k(t[0]):new P(u0(t))}function u0(t){return e=>{let r=[];for(let n=0;r&&!e.closed&&n{if(r){for(let i=0;i{let o=r.map(()=>[]),i=r.map(()=>!1);n.add(()=>{o=i=null});for(let s=0;!n.closed&&s{if(o[s].push(a),o.every(u=>u.length)){let u=o.map(c=>c.shift());n.next(e?e(...u):u),o.some((c,l)=>!c.length&&i[l])&&n.complete()}},()=>{i[s]=!0,!o[s].length&&n.complete()}));return()=>{o=i=null}}):Ae}function Mg(t){return S((e,r)=>{let n=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,n){n=!1;let c=o;o=null,r.next(c)}s&&r.complete()},u=()=>{i=null,s&&r.complete()};e.subscribe(_(r,c=>{n=!0,o=c,i||k(t(c)).subscribe(i=_(r,a,u))},()=>{s=!0,(!n||!i||i.closed)&&r.complete()}))})}function l0(t,e=wt){return Mg(()=>en(t,e))}function Nn(t){return S((e,r)=>{let n=null,o=!1,i;n=e.subscribe(_(r,void 0,void 0,s=>{i=k(t(s,Nn(t)(e))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function Tg(t,e,r,n,o){return(i,s)=>{let a=r,u=e,c=0;i.subscribe(_(s,l=>{let d=c++;u=a?t(u,l,d):(a=!0,l),n&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}function kt(t,e){return T(e)?le(t,e,1):le(t,1)}function Sg(t,e=wt){return S((r,n)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let c=i;i=null,n.next(c)}};function u(){let c=s+t,l=e.now();if(l{i=c,s=e.now(),o||(o=e.schedule(u,t),n.add(o))},()=>{a(),n.complete()},void 0,()=>{i=o=null}))})}function On(t){return S((e,r)=>{let n=!1;e.subscribe(_(r,o=>{n=!0,r.next(o)},()=>{n||r.next(t),r.complete()}))})}function xe(t){return t<=0?()=>Ae:S((e,r)=>{let n=0;e.subscribe(_(r,o=>{++n<=t&&(r.next(o),t<=n&&r.complete())}))})}function Ag(){return S((t,e)=>{t.subscribe(_(e,Yt))})}function Ei(t){return N(()=>t)}function Il(t,e){return e?r=>tt(e.pipe(xe(1),Ag()),r.pipe(Il(t))):le((r,n)=>k(t(r,n)).pipe(xe(1),Ei(r)))}function d0(t,e=wt){let r=en(t,e);return Il(()=>r)}function Ng(t,e=we){return t=t??f0,S((r,n)=>{let o,i=!0;r.subscribe(_(n,s=>{let a=e(s);(i||!t(o,a))&&(i=!1,o=a,n.next(s))}))})}function f0(t,e){return t===e}function ha(t=h0){return S((e,r)=>{let n=!1;e.subscribe(_(r,o=>{n=!0,r.next(o)},()=>n?r.complete():r.error(t())))})}function h0(){return new Jt}function p0(...t){return e=>tt(e,I(...t))}function Rn(t){return S((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function jt(t,e){let r=arguments.length>=2;return n=>n.pipe(t?ke((o,i)=>t(o,i,n)):we,xe(1),r?On(e):ha(()=>new Jt))}function io(t){return t<=0?()=>Ae:S((e,r)=>{let n=[];e.subscribe(_(r,o=>{n.push(o),t{for(let o of n)r.next(o);r.complete()},void 0,()=>{n=null}))})}function xl(t,e){let r=arguments.length>=2;return n=>n.pipe(t?ke((o,i)=>t(o,i,n)):we,io(1),r?On(e):ha(()=>new Jt))}function pa(t,e){return S(Tg(t,e,arguments.length>=2,!0))}function Ml(t={}){let{connector:e=()=>new se,resetOnError:r=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return i=>{let s,a,u,c=0,l=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=u=void 0,l=d=!1},p=()=>{let g=s;h(),g?.unsubscribe()};return S((g,m)=>{c++,!d&&!l&&f();let v=u=u??e();m.add(()=>{c--,c===0&&!d&&!l&&(a=_l(p,o))}),v.subscribe(m),!s&&c>0&&(s=new Qt({next:A=>v.next(A),error:A=>{d=!0,f(),a=_l(h,r,A),v.error(A)},complete:()=>{l=!0,f(),a=_l(h,n),v.complete()}}),k(g).subscribe(s))})(i)}}function _l(t,e,...r){if(e===!0){t();return}if(e===!1)return;let n=new Qt({next:()=>{n.unsubscribe(),t()}});return k(e(...r)).subscribe(n)}function Ii(t,e,r){let n,o=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:e=1/0,refCount:o=!1,scheduler:r}=t:n=t??1/0,Ml({connector:()=>new Di(n,e,r),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function g0(t){return ke((e,r)=>t<=r)}function ga(...t){let e=Lt(t);return S((r,n)=>{(e?tt(t,r,e):tt(t,r)).subscribe(n)})}function be(t,e){return S((r,n)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&n.complete();r.subscribe(_(n,u=>{o?.unsubscribe();let c=0,l=i++;k(t(u,l)).subscribe(o=_(n,d=>n.next(e?e(u,d,l,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function m0(){return be(we)}function ma(t){return S((e,r)=>{k(t).subscribe(_(r,()=>r.complete(),Yt)),!r.closed&&e.subscribe(r)})}function Ce(t,e,r){let n=T(t)||e||r?{next:t,error:e,complete:r}:t;return n?S((o,i)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;o.subscribe(_(i,u=>{var c;(c=n.next)===null||c===void 0||c.call(n,u),i.next(u)},()=>{var u;a=!1,(u=n.complete)===null||u===void 0||u.call(n),i.complete()},u=>{var c;a=!1,(c=n.error)===null||c===void 0||c.call(n,u),i.error(u)},()=>{var u,c;a&&((u=n.unsubscribe)===null||u===void 0||u.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):we}function Og(t,e){return S((r,n)=>{let{leading:o=!0,trailing:i=!1}=e??{},s=!1,a=null,u=null,c=!1,l=()=>{u?.unsubscribe(),u=null,i&&(h(),c&&n.complete())},d=()=>{u=null,c&&n.complete()},f=p=>u=k(t(p)).subscribe(_(n,l,d)),h=()=>{if(s){s=!1;let p=a;a=null,n.next(p),!c&&f(p)}};r.subscribe(_(n,p=>{s=!0,a=p,!(u&&!u.closed)&&(o?h():f(p))},()=>{c=!0,!(i&&s&&u&&!u.closed)&&n.complete()}))})}function v0(t,e=wt,r){let n=en(t,e);return Og(()=>n,r)}function y0(...t){let e=Tn(t);return S((r,n)=>{let o=t.length,i=new Array(o),s=t.map(()=>!1),a=!1;for(let u=0;u{i[u]=c,!a&&!s[u]&&(s[u]=!0,(a=s.every(we))&&(s=null))},Yt));r.subscribe(_(n,u=>{if(a){let c=[u,...i];n.next(e?e(...c):c)}}))})}var Em="https://g.co/ng/security#xss",C=class extends Error{constructor(e,r){super(Xa(e,r)),this.code=e}};function Xa(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function Li(t){return{toString:t}.toString()}var va="__parameters__";function D0(t){return function(...r){if(t){let n=t(...r);for(let o in n)this[o]=n[o]}}}function Im(t,e,r){return Li(()=>{let n=D0(e);function o(...i){if(this instanceof o)return n.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(va)?u[va]:Object.defineProperty(u,va,{value:[]})[va];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return r&&(o.prototype=Object.create(r.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}var It=globalThis;function J(t){for(let e in t)if(t[e]===J)return e;throw Error("Could not find renamed property on target object.")}function w0(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Be(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Be).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` +`);return r===-1?e:e.substring(0,r)}function Hl(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var b0=J({__forward_ref__:J});function Re(t){return t.__forward_ref__=Re,t.toString=function(){return Be(this())},t}function Ne(t){return xm(t)?t():t}function xm(t){return typeof t=="function"&&t.hasOwnProperty(b0)&&t.__forward_ref__===Re}function b(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function _t(t){return{providers:t.providers||[],imports:t.imports||[]}}function eu(t){return Rg(t,Mm)||Rg(t,Tm)}function _m(t){return eu(t)!==null}function Rg(t,e){return t.hasOwnProperty(e)?t[e]:null}function C0(t){let e=t&&(t[Mm]||t[Tm]);return e||null}function Pg(t){return t&&(t.hasOwnProperty(Fg)||t.hasOwnProperty(E0))?t[Fg]:null}var Mm=J({\u0275prov:J}),Fg=J({\u0275inj:J}),Tm=J({ngInjectableDef:J}),E0=J({ngInjectorDef:J}),E=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=b({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Sm(t){return t&&!!t.\u0275providers}var I0=J({\u0275cmp:J}),x0=J({\u0275dir:J}),_0=J({\u0275pipe:J}),M0=J({\u0275mod:J}),Sa=J({\u0275fac:J}),xi=J({__NG_ELEMENT_ID__:J}),Lg=J({__NG_ENV_ID__:J});function Ke(t){return typeof t=="string"?t:t==null?"":String(t)}function T0(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Ke(t)}function S0(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new C(-200,t)}function Jd(t,e){throw new C(-201,!1)}var j=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(j||{}),zl;function Am(){return zl}function Ze(t){let e=zl;return zl=t,e}function Nm(t,e,r){let n=eu(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&j.Optional)return null;if(e!==void 0)return e;Jd(t,"Injector")}var A0={},Mi=A0,Gl="__NG_DI_FLAG__",Aa="ngTempTokenPath",N0="ngTokenPath",O0=/\n/gm,R0="\u0275",kg="__source",co;function P0(){return co}function Pn(t){let e=co;return co=t,e}function F0(t,e=j.Default){if(co===void 0)throw new C(-203,!1);return co===null?Nm(t,void 0,e):co.get(t,e&j.Optional?null:void 0,e)}function x(t,e=j.Default){return(Am()||F0)(Ne(t),e)}function y(t,e=j.Default){return x(t,tu(e))}function tu(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Wl(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let i=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):Be(a)))}o=`{${i.join(", ")}}`}return`${r}${n?"("+n+")":""}[${o}]: ${t.replace(O0,` + `)}`}var nu=Om(Im("Optional"),8);var Xd=Om(Im("SkipSelf"),4);function wr(t,e){let r=t.hasOwnProperty(Sa);return r?t[Sa]:null}function V0(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?ef(r,e):e(r))}function Rm(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function Na(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function B0(t,e){let r=[];for(let n=0;ne;){let i=o-2;t[o]=t[i],o--}t[e]=r,t[e+1]=n}}function ru(t,e,r){let n=ki(t,e);return n>=0?t[n|1]=r:(n=~n,$0(t,n,e,r)),n}function Tl(t,e){let r=ki(t,e);if(r>=0)return t[r|1]}function ki(t,e){return H0(t,e,1)}function H0(t,e,r){let n=0,o=t.length>>r;for(;o!==n;){let i=n+(o-n>>1),s=t[i<e?o=i:n=i+1}return~(o<e){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),n&2&&c!==d){if(Ct(n))return!1;s=!0}}}}return Ct(n)||s}function Ct(t){return(t&1)===0}function K0(t,e,r,n){if(e===null)return-1;let o=0;if(n||!r){let i=!1;for(;o-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?o+="."+s:n&4&&(o+=" "+s);else o!==""&&!Ct(s)&&(e+=Vg(i,o),o=""),n=s,i=i||!Ct(n);r++}return o!==""&&(e+=Vg(i,o)),e}function t_(t){return t.map(e_).join(",")}function n_(t){let e=[],r=[],n=1,o=2;for(;n{let e=zm(t),r=$(D({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Lm.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Bt.Emulated,styles:t.styles||Ye,_:null,schemas:t.schemas||null,tView:null,id:""});Gm(r);let n=t.dependencies;return r.directiveDefs=Bg(n,!1),r.pipeDefs=Bg(n,!0),r.id=i_(r),r})}function r_(t){return kn(t)||nf(t)}function o_(t){return t!==null}function Mt(t){return Li(()=>({type:t.type,bootstrap:t.bootstrap||Ye,declarations:t.declarations||Ye,imports:t.imports||Ye,exports:t.exports||Ye,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Ug(t,e){if(t==null)return tn;let r={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],i,s,a=ho.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),e?(r[i]=a!==ho.None?[n,a]:n,e[i]=s):r[i]=n}return r}function H(t){return Li(()=>{let e=zm(t);return Gm(e),e})}function xo(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function kn(t){return t[I0]||null}function nf(t){return t[x0]||null}function Bm(t){return t[_0]||null}function $m(t){let e=kn(t)||nf(t)||Bm(t);return e!==null?e.standalone:!1}function Hm(t,e){let r=t[M0]||null;if(!r&&e===!0)throw new Error(`Type ${Be(t)} does not have '\u0275mod' property.`);return r}function zm(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||tn,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Ye,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ug(t.inputs,e),outputs:Ug(t.outputs),debugInfo:null}}function Gm(t){t.features?.forEach(e=>e(t))}function Bg(t,e){if(!t)return null;let r=e?Bm:r_;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(o_)}function i_(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let o of r)e=Math.imul(31,e)+o.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function ji(t){return{\u0275providers:t}}function s_(...t){return{\u0275providers:Wm(!0,t),\u0275fromNgModule:!0}}function Wm(t,...e){let r=[],n=new Set,o,i=s=>{r.push(s)};return ef(e,s=>{let a=s;Zl(a,i,[],n)&&(o||=[],o.push(a))}),o!==void 0&&qm(o,i),r}function qm(t,e){for(let r=0;r{e(i,n)})}}function Zl(t,e,r,n){if(t=Ne(t),!t)return!1;let o=null,i=Pg(t),s=!i&&kn(t);if(!i&&!s){let u=t.ngModule;if(i=Pg(u),i)o=u;else return!1}else{if(s&&!s.standalone)return!1;o=t}let a=n.has(o);if(s){if(a)return!1;if(n.add(o),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)Zl(c,e,r,n)}}else if(i){if(i.imports!=null&&!a){n.add(o);let c;try{ef(i.imports,l=>{Zl(l,e,r,n)&&(c||=[],c.push(l))})}finally{}c!==void 0&&qm(c,e)}if(!a){let c=wr(o)||(()=>new o);e({provide:o,useFactory:c,deps:Ye},o),e({provide:Fm,useValue:o,multi:!0},o),e({provide:fo,useValue:()=>x(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=t;rf(u,l=>{e(l,c)})}}else return!1;return o!==t&&t.providers!==void 0}function rf(t,e){for(let r of t)Sm(r)&&(r=r.\u0275providers),Array.isArray(r)?rf(r,e):e(r)}var a_=J({provide:String,useValue:J});function Zm(t){return t!==null&&typeof t=="object"&&a_ in t}function u_(t){return!!(t&&t.useExisting)}function c_(t){return!!(t&&t.useFactory)}function po(t){return typeof t=="function"}function l_(t){return!!t.useClass}var ou=new E(""),Ea={},d_={},Sl;function iu(){return Sl===void 0&&(Sl=new Oa),Sl}var Qe=class{},Si=class extends Qe{get destroyed(){return this._destroyed}constructor(e,r,n,o){super(),this.parent=r,this.source=n,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Yl(e,s=>this.processProvider(s)),this.records.set(Pm,so(void 0,this)),o.has("environment")&&this.records.set(Qe,so(void 0,this));let i=this.records.get(ou);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Fm,Ye,j.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=V(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),V(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=Pn(this),n=Ze(void 0),o;try{return e()}finally{Pn(r),Ze(n)}}get(e,r=Mi,n=j.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Lg))return e[Lg](this);n=tu(n);let o,i=Pn(this),s=Ze(void 0);try{if(!(n&j.SkipSelf)){let u=this.records.get(e);if(u===void 0){let c=m_(e)&&eu(e);c&&this.injectableDefInScope(c)?u=so(Kl(e),Ea):u=null,this.records.set(e,u)}if(u!=null)return this.hydrate(e,u)}let a=n&j.Self?iu():this.parent;return r=n&j.Optional&&r===Mi?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[Aa]=a[Aa]||[]).unshift(Be(e)),i)throw a;return k0(a,e,"R3InjectorError",this.source)}else throw a}finally{Ze(s),Pn(i)}}resolveInjectorInitializers(){let e=V(null),r=Pn(this),n=Ze(void 0),o;try{let i=this.get(fo,Ye,j.Self);for(let s of i)s()}finally{Pn(r),Ze(n),V(e)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(Be(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(e){e=Ne(e);let r=po(e)?e:Ne(e&&e.provide),n=h_(e);if(!po(e)&&e.multi===!0){let o=this.records.get(r);o||(o=so(void 0,Ea,!0),o.factory=()=>Wl(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,n)}hydrate(e,r){let n=V(null);try{return r.value===Ea&&(r.value=d_,r.value=r.factory()),typeof r.value=="object"&&r.value&&g_(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{V(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=Ne(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function Kl(t){let e=eu(t),r=e!==null?e.factory:wr(t);if(r!==null)return r;if(t instanceof E)throw new C(204,!1);if(t instanceof Function)return f_(t);throw new C(204,!1)}function f_(t){if(t.length>0)throw new C(204,!1);let r=C0(t);return r!==null?()=>r.factory(t):()=>new t}function h_(t){if(Zm(t))return so(void 0,t.useValue);{let e=Km(t);return so(e,Ea)}}function Km(t,e,r){let n;if(po(t)){let o=Ne(t);return wr(o)||Kl(o)}else if(Zm(t))n=()=>Ne(t.useValue);else if(c_(t))n=()=>t.useFactory(...Wl(t.deps||[]));else if(u_(t))n=()=>x(Ne(t.useExisting));else{let o=Ne(t&&(t.useClass||t.provide));if(p_(t))n=()=>new o(...Wl(t.deps));else return wr(o)||Kl(o)}return n}function so(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function p_(t){return!!t.deps}function g_(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function m_(t){return typeof t=="function"||typeof t=="object"&&t instanceof E}function Yl(t,e){for(let r of t)Array.isArray(r)?Yl(r,e):r&&Sm(r)?Yl(r.\u0275providers,e):e(r)}function Tt(t,e){t instanceof Si&&t.assertNotDestroyed();let r,n=Pn(t),o=Ze(void 0);try{return e()}finally{Pn(n),Ze(o)}}function Ym(){return Am()!==void 0||P0()!=null}function K6(t){if(!Ym())throw new C(-203,!1)}function v_(t){return typeof t=="function"}var an=0,R=1,O=2,Ve=3,xt=4,Xe=5,go=6,Ra=7,Oe=8,mo=9,$t=10,ae=11,Ai=12,$g=13,_o=14,Je=15,br=16,ao=17,nn=18,su=19,Qm=20,Fn=21,Al=22,dt=23,Ee=25,Jm=1;var Cr=7,Pa=8,vo=9,je=10,Fa=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Fa||{});function Ln(t){return Array.isArray(t)&&typeof t[Jm]=="object"}function un(t){return Array.isArray(t)&&t[Jm]===!0}function of(t){return(t.flags&4)!==0}function au(t){return t.componentOffset>-1}function uu(t){return(t.flags&1)===1}function jn(t){return!!t.template}function Ql(t){return(t[O]&512)!==0}var Jl=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function Xm(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function nt(){return ev}function ev(t){return t.type.prototype.ngOnChanges&&(t.setInput=D_),y_}nt.ngInherit=!0;function y_(){let t=nv(this),e=t?.current;if(e){let r=t.previous;if(r===tn)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function D_(t,e,r,n,o){let i=this.declaredInputs[n],s=nv(t)||w_(t,{previous:tn,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[i];a[i]=new Jl(c&&c.currentValue,r,u===tn),Xm(t,e,o,r)}var tv="__ngSimpleChanges__";function nv(t){return t[tv]||null}function w_(t,e){return t[tv]=e}var Hg=null;var Vt=function(t,e,r){Hg?.(t,e,r)},rv="svg",ov="math";function Ht(t){for(;Array.isArray(t);)t=t[an];return t}function iv(t,e){return Ht(e[t])}function ft(t,e){return Ht(e[t.index])}function sf(t,e){return t.data[e]}function cu(t,e){return t[e]}function $n(t,e){let r=e[t];return Ln(r)?r:r[an]}function b_(t){return(t[O]&4)===4}function af(t){return(t[O]&128)===128}function C_(t){return un(t[Ve])}function Vn(t,e){return e==null?null:t[e]}function sv(t){t[ao]=0}function av(t){t[O]&1024||(t[O]|=1024,af(t)&&lu(t))}function E_(t,e){for(;t>0;)e=e[_o],t--;return e}function Ni(t){return!!(t[O]&9216||t[dt]?.dirty)}function Xl(t){t[$t].changeDetectionScheduler?.notify(7),t[O]&64&&(t[O]|=1024),Ni(t)&&lu(t)}function lu(t){t[$t].changeDetectionScheduler?.notify(0);let e=Er(t);for(;e!==null&&!(e[O]&8192||(e[O]|=8192,!af(e)));)e=Er(e)}function uv(t,e){if((t[O]&256)===256)throw new C(911,!1);t[Fn]===null&&(t[Fn]=[]),t[Fn].push(e)}function I_(t,e){if(t[Fn]===null)return;let r=t[Fn].indexOf(e);r!==-1&&t[Fn].splice(r,1)}function Er(t){let e=t[Ve];return un(e)?e[Ve]:e}var F={lFrame:vv(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var cv=!1;function x_(){return F.lFrame.elementDepthCount}function __(){F.lFrame.elementDepthCount++}function M_(){F.lFrame.elementDepthCount--}function lv(){return F.bindingsEnabled}function dv(){return F.skipHydrationRootTNode!==null}function T_(t){return F.skipHydrationRootTNode===t}function S_(){F.skipHydrationRootTNode=null}function M(){return F.lFrame.lView}function ce(){return F.lFrame.tView}function Y6(t){return F.lFrame.contextLView=t,t[Oe]}function Q6(t){return F.lFrame.contextLView=null,t}function Pe(){let t=fv();for(;t!==null&&t.type===64;)t=t.parent;return t}function fv(){return F.lFrame.currentTNode}function A_(){let t=F.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Ar(t,e){let r=F.lFrame;r.currentTNode=t,r.isParent=e}function uf(){return F.lFrame.isParent}function cf(){F.lFrame.isParent=!1}function N_(){return F.lFrame.contextLView}function hv(){return cv}function zg(t){cv=t}function Gt(){let t=F.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function lf(){return F.lFrame.bindingIndex}function O_(t){return F.lFrame.bindingIndex=t}function Nr(){return F.lFrame.bindingIndex++}function Vi(t){let e=F.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function R_(){return F.lFrame.inI18n}function P_(t,e){let r=F.lFrame;r.bindingIndex=r.bindingRootIndex=t,ed(e)}function F_(){return F.lFrame.currentDirectiveIndex}function ed(t){F.lFrame.currentDirectiveIndex=t}function L_(t){let e=F.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function pv(){return F.lFrame.currentQueryIndex}function df(t){F.lFrame.currentQueryIndex=t}function k_(t){let e=t[R];return e.type===2?e.declTNode:e.type===1?t[Xe]:null}function gv(t,e,r){if(r&j.SkipSelf){let o=e,i=t;for(;o=o.parent,o===null&&!(r&j.Host);)if(o=k_(i),o===null||(i=i[_o],o.type&10))break;if(o===null)return!1;e=o,t=i}let n=F.lFrame=mv();return n.currentTNode=e,n.lView=t,!0}function ff(t){let e=mv(),r=t[R];F.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function mv(){let t=F.lFrame,e=t===null?null:t.child;return e===null?vv(t):e}function vv(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function yv(){let t=F.lFrame;return F.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Dv=yv;function hf(){let t=yv();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function j_(t){return(F.lFrame.contextLView=E_(t,F.lFrame.contextLView))[Oe]}function St(){return F.lFrame.selectedIndex}function Ir(t){F.lFrame.selectedIndex=t}function Ui(){let t=F.lFrame;return sf(t.tView,t.selectedIndex)}function J6(){F.lFrame.currentNamespace=rv}function X6(){F.lFrame.currentNamespace=ov}function V_(){return F.lFrame.currentNamespace}var wv=!0;function du(){return wv}function fu(t){wv=t}function U_(t,e,r){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(n){let s=ev(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}o&&(r.preOrderHooks??=[]).push(0-t,o),i&&((r.preOrderHooks??=[]).push(t,i),(r.preOrderCheckHooks??=[]).push(t,i))}function hu(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[u]<0&&(t[ao]+=65536),(a>14>16&&(t[O]&3)===e&&(t[O]+=16384,Gg(a,i)):Gg(a,i)}var lo=-1,xr=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function $_(t){return t instanceof xr}function H_(t){return(t.flags&8)!==0}function z_(t){return(t.flags&16)!==0}function Cv(t){return t!==lo}function La(t){return t&32767}function G_(t){return t>>16}function ka(t,e){let r=G_(t),n=e;for(;r>0;)n=n[_o],r--;return n}var td=!0;function ja(t){let e=td;return td=t,e}var W_=256,Ev=W_-1,Iv=5,q_=0,Ut={};function Z_(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(xi)&&(n=r[xi]),n==null&&(n=r[xi]=q_++);let o=n&Ev,i=1<>Iv)]|=i}function Va(t,e){let r=xv(t,e);if(r!==-1)return r;let n=e[R];n.firstCreatePass&&(t.injectorIndex=e.length,Ol(n.data,t),Ol(e,null),Ol(n.blueprint,null));let o=pf(t,e),i=t.injectorIndex;if(Cv(o)){let s=La(o),a=ka(o,e),u=a[R].data;for(let c=0;c<8;c++)e[i+c]=a[s+c]|u[s+c]}return e[i+8]=o,i}function Ol(t,e){t.push(0,0,0,0,0,0,0,0,e)}function xv(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function pf(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,o=e;for(;o!==null;){if(n=Av(o),n===null)return lo;if(r++,o=o[_o],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return lo}function nd(t,e,r){Z_(t,e,r)}function K_(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,o=0;for(;o>20,d=n?a:a+l,f=o?a+l:c;for(let h=d;h=u&&p.type===r)return h}if(o){let h=s[u];if(h&&jn(h)&&h.type===r)return u}return null}function _r(t,e,r,n){let o=t[r],i=e.data;if($_(o)){let s=o;s.resolving&&S0(T0(i[r]));let a=ja(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?Ze(s.injectImpl):null,l=gv(t,n,j.Default);try{o=t[r]=s.factory(void 0,i,t,n),e.firstCreatePass&&r>=n.directiveStart&&U_(r,i[r],e)}finally{c!==null&&Ze(c),ja(a),s.resolving=!1,Dv()}}return o}function Q_(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(xi)?t[xi]:void 0;return typeof e=="number"?e>=0?e&Ev:J_:e}function Wg(t,e,r){let n=1<>Iv)]&n)}function qg(t,e){return!(t&j.Self)&&!(t&j.Host&&e)}var Dr=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return Tv(this._tNode,this._lView,e,tu(n),r)}};function J_(){return new Dr(Pe(),M())}function Fe(t){return Li(()=>{let e=t.prototype.constructor,r=e[Sa]||rd(e),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let i=o[Sa]||rd(o);if(i&&i!==r)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function rd(t){return xm(t)?()=>{let e=rd(Ne(t));return e&&e()}:wr(t)}function X_(t,e,r,n,o){let i=t,s=e;for(;i!==null&&s!==null&&s[O]&2048&&!(s[O]&512);){let a=Sv(i,s,r,n|j.Self,Ut);if(a!==Ut)return a;let u=i.parent;if(!u){let c=s[Qm];if(c){let l=c.get(r,Ut,n);if(l!==Ut)return l}u=Av(s),s=s[_o]}i=u}return o}function Av(t){let e=t[R],r=e.type;return r===2?e.declTNode:r===1?t[Xe]:null}function gf(t){return K_(Pe(),t)}function Zg(t,e=null,r=null,n){let o=Nv(t,e,r,n);return o.resolveInjectorInitializers(),o}function Nv(t,e=null,r=null,n,o=new Set){let i=[r||Ye,s_(t)];return n=n||(typeof t=="object"?void 0:Be(t)),new Si(i,e||iu(),n||null,o)}var yr=class yr{static create(e,r){if(Array.isArray(e))return Zg({name:""},r,e,"");{let n=e.name??"";return Zg({name:n},e.parent,e.providers,n)}}};yr.THROW_IF_NOT_FOUND=Mi,yr.NULL=new Oa,yr.\u0275prov=b({token:yr,providedIn:"any",factory:()=>x(Pm)}),yr.__NG_ELEMENT_ID__=-1;var rn=yr;var eM=new E("");eM.__NG_ELEMENT_ID__=t=>{let e=Pe();if(e===null)throw new C(204,!1);if(e.type&2)return e.value;if(t&j.Optional)return null;throw new C(204,!1)};var tM="ngOriginalError";function Rl(t){return t[tM]}var on=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&Rl(e);for(;r&&Rl(r);)r=Rl(r);return r||null}},Ov=new E("",{providedIn:"root",factory:()=>y(on).handleError.bind(void 0)}),Rv=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=nM,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),od=class extends Rv{constructor(e){super(),this._lView=e}onDestroy(e){return uv(this._lView,e),()=>I_(this._lView,e)}};function nM(){return new od(M())}function rM(){return Mo(Pe(),M())}function Mo(t,e){return new _e(ft(t,e))}var _e=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=rM;let t=e;return t})();function oM(t){return t instanceof _e?t.nativeElement:t}var Hn=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Se(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=b({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var id=class extends se{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,Ym()&&(this.destroyRef=y(Rv,{optional:!0})??void 0,this.pendingTasks=y(Hn,{optional:!0})??void 0)}emit(e){let r=V(null);try{super.next(e)}finally{V(r)}}subscribe(e,r,n){let o=e,i=r||(()=>null),s=n;if(e&&typeof e=="object"){let u=e;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return e instanceof ie&&e.add(a),a}wrapInTimeout(e){return r=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(r),n!==void 0&&this.pendingTasks?.remove(n)})}}},G=id;function iM(){return this._results[Symbol.iterator]()}var sd=class t{get changes(){return this._changes??=new G}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=iM)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,r){return this._results.reduce(e,r)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,r){this.dirty=!1;let n=U0(e);(this._changesDetected=!V0(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function Pv(t){return(t.flags&128)===128}var Fv=new Map,sM=0;function aM(){return sM++}function uM(t){Fv.set(t[su],t)}function cM(t){Fv.delete(t[su])}var Kg="__ngContext__";function Un(t,e){Ln(e)?(t[Kg]=e[su],uM(e)):t[Kg]=e}function Lv(t){return jv(t[Ai])}function kv(t){return jv(t[xt])}function jv(t){for(;t!==null&&!un(t);)t=t[xt];return t}var ad;function Vv(t){ad=t}function lM(){if(ad!==void 0)return ad;if(typeof document<"u")return document;throw new C(210,!1)}var mf=new E("",{providedIn:"root",factory:()=>dM}),dM="ng",vf=new E(""),cn=new E("",{providedIn:"platform",factory:()=>"unknown"});var e5=new E(""),yf=new E("",{providedIn:"root",factory:()=>lM().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var fM="h",hM="b";var pM=()=>null;function Df(t,e,r=!1){return pM(t,e,r)}var Uv=!1,gM=new E("",{providedIn:"root",factory:()=>Uv});var ya;function mM(){if(ya===void 0&&(ya=null,It.trustedTypes))try{ya=It.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return ya}function pu(t){return mM()?.createHTML(t)||t}var Da;function vM(){if(Da===void 0&&(Da=null,It.trustedTypes))try{Da=It.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Da}function Yg(t){return vM()?.createScriptURL(t)||t}var sn=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Em})`}},ud=class extends sn{getTypeName(){return"HTML"}},cd=class extends sn{getTypeName(){return"Style"}},ld=class extends sn{getTypeName(){return"Script"}},dd=class extends sn{getTypeName(){return"URL"}},fd=class extends sn{getTypeName(){return"ResourceURL"}};function At(t){return t instanceof sn?t.changingThisBreaksApplicationSecurity:t}function zn(t,e){let r=yM(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${Em})`)}return r===e}function yM(t){return t instanceof sn&&t.getTypeName()||null}function Bv(t){return new ud(t)}function $v(t){return new cd(t)}function Hv(t){return new ld(t)}function zv(t){return new dd(t)}function Gv(t){return new fd(t)}function DM(t){let e=new pd(t);return wM()?new hd(e):e}var hd=class{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{let r=new window.DOMParser().parseFromString(pu(e),"text/html").body;return r===null?this.inertDocumentHelper.getInertBodyElement(e):(r.removeChild(r.firstChild),r)}catch{return null}}},pd=class{constructor(e){this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(e){let r=this.inertDocument.createElement("template");return r.innerHTML=pu(e),r}};function wM(){try{return!!new window.DOMParser().parseFromString(pu(""),"text/html")}catch{return!1}}var bM=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function gu(t){return t=String(t),t.match(bM)?t:"unsafe:"+t}function ln(t){let e={};for(let r of t.split(","))e[r]=!0;return e}function Bi(...t){let e={};for(let r of t)for(let n in r)r.hasOwnProperty(n)&&(e[n]=!0);return e}var Wv=ln("area,br,col,hr,img,wbr"),qv=ln("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Zv=ln("rp,rt"),CM=Bi(Zv,qv),EM=Bi(qv,ln("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")),IM=Bi(Zv,ln("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")),Qg=Bi(Wv,EM,IM,CM),Kv=ln("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),xM=ln("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"),_M=ln("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"),MM=Bi(Kv,xM,_M),TM=ln("script,style,template"),gd=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let r=e.firstChild,n=!0,o=[];for(;r;){if(r.nodeType===Node.ELEMENT_NODE?n=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,n&&r.firstChild){o.push(r),r=NM(r);continue}for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let i=AM(r);if(i){r=i;break}r=o.pop()}}return this.buf.join("")}startElement(e){let r=Jg(e).toLowerCase();if(!Qg.hasOwnProperty(r))return this.sanitizedSomething=!0,!TM.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);let n=e.attributes;for(let o=0;o"),!0}endElement(e){let r=Jg(e).toLowerCase();Qg.hasOwnProperty(r)&&!Wv.hasOwnProperty(r)&&(this.buf.push(""))}chars(e){this.buf.push(Xg(e))}};function SM(t,e){return(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function AM(t){let e=t.nextSibling;if(e&&t!==e.previousSibling)throw Yv(e);return e}function NM(t){let e=t.firstChild;if(e&&SM(t,e))throw Yv(e);return e}function Jg(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function Yv(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var OM=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,RM=/([^\#-~ |!])/g;function Xg(t){return t.replace(/&/g,"&").replace(OM,function(e){let r=e.charCodeAt(0),n=e.charCodeAt(1);return"&#"+((r-55296)*1024+(n-56320)+65536)+";"}).replace(RM,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var wa;function Qv(t,e){let r=null;try{wa=wa||DM(t);let n=e?String(e):"";r=wa.getInertBodyElement(n);let o=5,i=n;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,n=i,i=r.innerHTML,r=wa.getInertBodyElement(n)}while(n!==i);let a=new gd().sanitizeChildren(em(r)||r);return pu(a)}finally{if(r){let n=em(r)||r;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function em(t){return"content"in t&&PM(t)?t.content:null}function PM(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Wt=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(Wt||{});function FM(t){let e=Xv();return e?e.sanitize(Wt.URL,t)||"":zn(t,"URL")?At(t):gu(Ke(t))}function LM(t){let e=Xv();if(e)return Yg(e.sanitize(Wt.RESOURCE_URL,t)||"");if(zn(t,"ResourceURL"))return Yg(At(t));throw new C(904,!1)}function kM(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?LM:FM}function Jv(t,e,r){return kM(e,r)(t)}function Xv(){let t=M();return t&&t[$t].sanitizer}var jM=/^>|^->||--!>|)/g,UM="\u200B$1\u200B";function BM(t){return t.replace(jM,e=>e.replace(VM,UM))}function ey(t){return t instanceof Function?t():t}var zt=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(zt||{}),$M;function wf(t,e){return $M(t,e)}function uo(t,e,r,n,o){if(n!=null){let i,s=!1;un(n)?i=n:Ln(n)&&(s=!0,n=n[an]);let a=Ht(n);t===0&&r!==null?o==null?iy(e,r,a):Ua(e,r,a,o||null,!0):t===1&&r!==null?Ua(e,r,a,o||null,!0):t===2?rT(e,a,s):t===3&&e.destroyNode(a),i!=null&&iT(e,t,i,r,o)}}function HM(t,e){return t.createText(e)}function zM(t,e,r){t.setValue(e,r)}function GM(t,e){return t.createComment(BM(e))}function ty(t,e,r){return t.createElement(e,r)}function WM(t,e){ny(t,e),e[an]=null,e[Xe]=null}function qM(t,e,r,n,o,i){n[an]=o,n[Xe]=e,yu(t,n,r,1,o,i)}function ny(t,e){e[$t].changeDetectionScheduler?.notify(8),yu(t,e,e[ae],2,null,null)}function ZM(t){let e=t[Ai];if(!e)return Pl(t[R],t);for(;e;){let r=null;if(Ln(e))r=e[Ai];else{let n=e[je];n&&(r=n)}if(!r){for(;e&&!e[xt]&&e!==t;)Ln(e)&&Pl(e[R],e),e=e[Ve];e===null&&(e=t),Ln(e)&&Pl(e[R],e),r=e&&e[xt]}e=r}}function KM(t,e,r,n){let o=je+n,i=r.length;n>0&&(r[o-1][xt]=e),n0&&(t[r-1][xt]=n[xt]);let i=Na(t,je+e);WM(n[R],n);let s=i[nn];s!==null&&s.detachView(i[R]),n[Ve]=null,n[xt]=null,n[O]&=-129}return n}function mu(t,e){if(!(e[O]&256)){let r=e[ae];r.destroyNode&&yu(t,e,r,3,null,null),ZM(e)}}function Pl(t,e){if(e[O]&256)return;let r=V(null);try{e[O]&=-129,e[O]|=256,e[dt]&&al(e[dt]),QM(t,e),YM(t,e),e[R].type===1&&e[ae].destroy();let n=e[br];if(n!==null&&un(e[Ve])){n!==e[Ve]&&bf(n,e);let o=e[nn];o!==null&&o.detachView(t)}cM(e)}finally{V(r)}}function YM(t,e){let r=t.cleanup,n=e[Ra];if(r!==null)for(let i=0;i=0?n[s]():n[-s].unsubscribe(),i+=2}else{let s=n[r[i+1]];r[i].call(s)}n!==null&&(e[Ra]=null);let o=e[Fn];if(o!==null){e[Fn]=null;for(let i=0;i-1){let{encapsulation:i}=t.data[n.directiveStart+o];if(i===Bt.None||i===Bt.Emulated)return null}return ft(n,r)}}function Ua(t,e,r,n,o){t.insertBefore(e,r,n,o)}function iy(t,e,r){t.appendChild(e,r)}function tm(t,e,r,n,o){n!==null?Ua(t,e,r,n,o):iy(t,e,r)}function XM(t,e,r,n){t.removeChild(e,r,n)}function Cf(t,e){return t.parentNode(e)}function eT(t,e){return t.nextSibling(e)}function sy(t,e,r){return nT(t,e,r)}function tT(t,e,r){return t.type&40?ft(t,r):null}var nT=tT,nm;function vu(t,e,r,n){let o=oy(t,n,e),i=e[ae],s=n.parent||e[Xe],a=sy(s,n,e);if(o!=null)if(Array.isArray(r))for(let u=0;uEe&&dy(t,e,Ee,!1),Vt(s?2:0,o),r(n,o)}finally{Ir(i),Vt(s?3:1,o)}}function If(t,e,r){if(of(e)){let n=V(null);try{let o=e.directiveStart,i=e.directiveEnd;for(let s=o;snull;function gT(t,e,r,n){let o=wy(e);o.push(r),t.firstCreatePass&&by(t).push(n,o.length-1)}function mT(t,e,r,n,o,i){let s=e?e.injectorIndex:-1,a=0;return dv()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function rm(t,e,r,n,o){for(let i in e){if(!e.hasOwnProperty(i))continue;let s=e[i];if(s===void 0)continue;n??={};let a,u=ho.None;Array.isArray(s)?(a=s[0],u=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}t===0?om(n,r,c,a,u):om(n,r,c,a)}return n}function om(t,e,r,n,o){let i;t.hasOwnProperty(r)?(i=t[r]).push(e,n):i=t[r]=[e,n],o!==void 0&&i.push(o)}function vT(t,e,r){let n=e.directiveStart,o=e.directiveEnd,i=t.data,s=e.attrs,a=[],u=null,c=null;for(let l=n;l0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function CT(t,e,r,n){let o=r.directiveStart,i=r.directiveEnd;au(r)&&ST(e,r,t.data[o+r.componentOffset]),t.firstCreatePass||Va(r,e),Un(n,e);let s=r.initialInputs;for(let a=o;a{lu(t.lView)},consumerOnSignalRead(){this.lView[dt]=this}});function $T(t){let e=t[dt]??Object.create(HT);return e.lView=t,e}var HT=$(D({},ol),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=Er(t.lView);for(;e&&!_y(e[R]);)e=Er(e);e&&av(e)},consumerOnSignalRead(){this.lView[dt]=this}});function _y(t){return t.type!==2}var zT=100;function My(t,e=!0,r=0){let n=t[$t],o=n.rendererFactory,i=!1;i||o.begin?.();try{GT(t,r)}catch(s){throw e&&Cy(t,s),s}finally{i||(o.end?.(),n.inlineEffectRunner?.flush())}}function GT(t,e){let r=hv();try{zg(!0),Dd(t,e);let n=0;for(;Ni(t);){if(n===zT)throw new C(103,!1);n++,Dd(t,1)}}finally{zg(r)}}function WT(t,e,r,n){let o=e[O];if((o&256)===256)return;let i=!1,s=!1;!i&&e[$t].inlineEffectRunner?.flush(),ff(e);let a=!0,u=null,c=null;i||(_y(t)?(c=jT(e),u=il(c)):Qp()===null?(a=!1,c=$T(e),u=il(c)):e[dt]&&(al(e[dt]),e[dt]=null));try{sv(e),O_(t.bindingStartIndex),r!==null&&py(t,e,r,2,n);let l=(o&3)===3;if(!i)if(l){let h=t.preOrderCheckHooks;h!==null&&Ia(e,h,null)}else{let h=t.preOrderHooks;h!==null&&xa(e,h,0,null),Nl(e,0)}if(s||qT(e),Ty(e,0),t.contentQueries!==null&&Dy(t,e),!i)if(l){let h=t.contentCheckHooks;h!==null&&Ia(e,h)}else{let h=t.contentHooks;h!==null&&xa(e,h,1),Nl(e,1)}cT(t,e);let d=t.components;d!==null&&Ay(e,d,0);let f=t.viewQuery;if(f!==null&&yd(2,f,n),!i)if(l){let h=t.viewCheckHooks;h!==null&&Ia(e,h)}else{let h=t.viewHooks;h!==null&&xa(e,h,2),Nl(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Al]){for(let h of e[Al])h();e[Al]=null}i||(e[O]&=-73)}catch(l){throw i||lu(e),l}finally{c!==null&&(Jp(c,u),a&&UT(c)),hf()}}function Ty(t,e){for(let r=Lv(t);r!==null;r=kv(r))for(let n=je;n-1&&(Oi(e,n),Na(r,n))}this._attachedToViewContainer=!1}mu(this._lView[R],this._lView)}onDestroy(e){uv(this._lView,e)}markForCheck(){Nf(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[O]&=-129}reattach(){Xl(this._lView),this._lView[O]|=128}detectChanges(){this._lView[O]|=1024,My(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Ql(this._lView),r=this._lView[br];r!==null&&!e&&bf(r,this._lView),ny(this._lView[R],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=e;let r=Ql(this._lView),n=this._lView[br];n!==null&&!r&&ry(n,this._lView),Xl(this._lView)}},Tr=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=QT;let t=e;return t})(),KT=Tr,YT=class extends KT{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let o=$i(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:n});return new Mr(o)}};function QT(){return Eu(Pe(),M())}function Eu(t,e){return t.type&4?new YT(e,t,Mo(t,e)):null}var r5=new RegExp(`^(\\d+)*(${hM}|${fM})*(.*)`);var JT=()=>null;function Do(t,e){return JT(t,e)}var Ri=class{},Ny=new E("",{providedIn:"root",factory:()=>!1});var Oy=new E(""),wd=class{},$a=class{};function XT(t){let e=Error(`No component factory found for ${Be(t)}.`);return e[eS]=t,e}var eS="ngComponent";var bd=class{resolveComponentFactory(e){throw XT(e)}},Wf=class Wf{};Wf.NULL=new bd;var wo=Wf,bo=class{},rt=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>tS();let t=e;return t})();function tS(){let t=M(),e=Pe(),r=$n(e.index,t);return(Ln(r)?r:t)[ae]}var nS=(()=>{let e=class e{};e.\u0275prov=b({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),Fl={};var im=new Set;function zi(t){im.has(t)||(im.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Ry(t){let e=!0;return setTimeout(()=>{e&&(e=!1,t())}),typeof It.requestAnimationFrame=="function"&&It.requestAnimationFrame(()=>{e&&(e=!1,t())}),()=>{e=!1}}function sm(t){let e=!0;return queueMicrotask(()=>{e&&t()}),()=>{e=!1}}function am(...t){}var pe=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new G(!1),this.onMicrotaskEmpty=new G(!1),this.onStable=new G(!1),this.onError=new G(!1),typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!n&&r,o.shouldCoalesceRunChangeDetection=n,o.callbackScheduled=!1,iS(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new C(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,rS,am,am);try{return i.runTask(s,r,n)}finally{i.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},rS={};function Of(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function oS(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{Ry(()=>{t.callbackScheduled=!1,Cd(t),t.isCheckStableRunning=!0,Of(t),t.isCheckStableRunning=!1})}),Cd(t))}function iS(t){let e=()=>{oS(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,o,i,s,a)=>{if(sS(a))return r.invokeTask(o,i,s,a);try{return um(t),r.invokeTask(o,i,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),cm(t)}},onInvoke:(r,n,o,i,s,a,u)=>{try{return um(t),r.invoke(o,i,s,a,u)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!aS(a)&&e(),cm(t)}},onHasTask:(r,n,o,i)=>{r.hasTask(o,i),n===o&&(i.change=="microTask"?(t._hasPendingMicrotasks=i.microTask,Cd(t),Of(t)):i.change=="macroTask"&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(r,n,o,i)=>(r.handleError(o,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}function Cd(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function um(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function cm(t){t._nesting--,Of(t)}var Ed=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new G,this.onMicrotaskEmpty=new G,this.onStable=new G,this.onError=new G}run(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,o){return e.apply(r,n)}};function sS(t){return Py(t,"__ignore_ng_zone__")}function aS(t){return Py(t,"__scheduler_tick__")}function Py(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var Fy=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of n)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=b({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function Ha(t,e,r){let n=r?t.styles:null,o=r?t.classes:null,i=0;if(e!==null)for(let s=0;s0&&cy(t,r,i.join(" "))}}function pS(t,e,r){let n=t.projection=[];for(let o=0;o{let e=class e{};e.__NG_ELEMENT_ID__=mS;let t=e;return t})();function mS(){let t=Pe();return ky(t,M())}var vS=dn,Ly=class extends vS{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return Mo(this._hostTNode,this._hostLView)}get injector(){return new Dr(this._hostTNode,this._hostLView)}get parentInjector(){let e=pf(this._hostTNode,this._hostLView);if(Cv(e)){let r=ka(e,this._hostLView),n=La(e),o=r[R].data[n+8];return new Dr(o,r)}else return new Dr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=dm(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-je}createEmbeddedView(e,r,n){let o,i;typeof n=="number"?o=n:n!=null&&(o=n.index,i=n.injector);let s=Do(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},i,s);return this.insertImpl(a,o,yo(this._hostTNode,s)),a}createComponent(e,r,n,o,i){let s=e&&!v_(e),a;if(s)a=r;else{let p=r||{};a=p.index,n=p.injector,o=p.projectableNodes,i=p.environmentInjector||p.ngModuleRef}let u=s?e:new Co(kn(e)),c=n||this.parentInjector;if(!i&&u.ngModule==null){let g=(s?c:this.parentInjector).get(Qe,null);g&&(i=g)}let l=kn(u.componentType??{}),d=Do(this._lContainer,l?.id??null),f=d?.firstChild??null,h=u.create(c,o,f,i);return this.insertImpl(h.hostView,a,yo(this._hostTNode,d)),h}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let o=e._lView;if(C_(o)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let u=o[Ve],c=new Ly(u,u[Xe],u[Ve]);c.detach(c.indexOf(e))}}let i=this._adjustIndex(r),s=this._lContainer;return Hi(s,o,i,n),e.attachToViewContainerRef(),Rm(Ll(s),i,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=dm(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=Oi(this._lContainer,r);n&&(Na(Ll(this._lContainer),r),mu(n[R],n))}detach(e){let r=this._adjustIndex(e,-1),n=Oi(this._lContainer,r);return n&&Na(Ll(this._lContainer),r)!=null?new Mr(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function dm(t){return t[Pa]}function Ll(t){return t[Pa]||(t[Pa]=[])}function ky(t,e){let r,n=e[t.index];return un(n)?r=n:(r=yy(n,e,null,t),e[t.index]=r,bu(e,r)),DS(r,e,t,n),new Ly(r,t,e)}function yS(t,e){let r=t[ae],n=r.createComment(""),o=ft(e,t),i=Cf(r,o);return Ua(r,i,n,eT(r,o),!1),n}var DS=CS,wS=()=>!1;function bS(t,e,r){return wS(t,e,r)}function CS(t,e,r,n){if(t[Cr])return;let o;r.type&8?o=Ht(n):o=yS(e,r),t[Cr]=o}var _d=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Md=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,o=[];for(let i=0;i0)n.push(s[a/2]);else{let c=i[a+1],l=e[-u];for(let d=je;de.trim())}function Uy(t,e,r){t.queries===null&&(t.queries=new Td),t.queries.track(new Sd(e,r))}function NS(t,e){let r=t.contentQueries||(t.contentQueries=[]),n=r.length?r[r.length-1]:-1;e!==n&&r.push(t.queries.length-1,e)}function Rf(t,e){return t.queries.getByIndex(e)}function OS(t,e){let r=t[R],n=Rf(r,e);return n.crossesNgTemplate?Ad(r,t,e,[]):jy(r,t,n,e)}function RS(t){return typeof t=="function"&&t[rl]!==void 0}function By(t){return RS(t)&&typeof t.set=="function"}function PS(t){return Object.getPrototypeOf(t.prototype).constructor}function Ie(t){let e=PS(t.type),r=!0,n=[t];for(;e;){let o;if(jn(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new C(903,!1);o=e.\u0275dir}if(o){if(r){n.push(o);let s=t;s.inputs=ba(t.inputs),s.inputTransforms=ba(t.inputTransforms),s.declaredInputs=ba(t.declaredInputs),s.outputs=ba(t.outputs);let a=o.hostBindings;a&&VS(t,a);let u=o.viewQuery,c=o.contentQueries;if(u&&kS(t,u),c&&jS(t,c),FS(t,o),w0(t.outputs,o.outputs),jn(o)&&o.data.animation){let l=t.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;n--){let o=t[n];o.hostVars=e+=o.hostVars,o.hostAttrs=Ti(o.hostAttrs,r=Ti(r,o.hostAttrs))}}function ba(t){return t===tn?{}:t===Ye?[]:t}function kS(t,e){let r=t.viewQuery;r?t.viewQuery=(n,o)=>{e(n,o),r(n,o)}:t.viewQuery=e}function jS(t,e){let r=t.contentQueries;r?t.contentQueries=(n,o,i)=>{e(n,o,i),r(n,o,i)}:t.contentQueries=e}function VS(t,e){let r=t.hostBindings;r?t.hostBindings=(n,o)=>{e(n,o),r(n,o)}:t.hostBindings=e}function i5(t){let e=r=>{let n=(Array.isArray(t)?t:t()).map(o=>typeof o=="function"?{directive:Ne(o),inputs:tn,outputs:tn}:{directive:Ne(o.directive),inputs:fm(o.inputs),outputs:fm(o.outputs)});r.hostDirectives===null?(r.findHostDirectiveDefs=$y,r.hostDirectives=n):r.hostDirectives.unshift(...n)};return e.ngInherit=!0,e}function $y(t,e,r){if(t.hostDirectives!==null)for(let n of t.hostDirectives){let o=nf(n.directive);US(o.declaredInputs,n.inputs),$y(o,e,r),r.set(o,n),e.push(o)}}function fm(t){if(t===void 0||t.length===0)return tn;let e={};for(let r=0;rr()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},Od=class extends Pi{constructor(e){super(),this.moduleType=e}create(e){return new Nd(this.moduleType,e,[])}};var Wa=class extends Bn{constructor(e){super(),this.componentFactoryResolver=new za(this),this.instance=null;let r=new Si([...e.providers,{provide:Bn,useValue:this},{provide:wo,useValue:this.componentFactoryResolver}],e.parent||iu(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Ff(t,e,r=null){return new Wa({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}function Hy(t){return Lf(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function BS(t,e){if(Array.isArray(t))for(let r=0;r>17&32767}function YS(t){return(t&2)==2}function QS(t,e){return t&131071|e<<17}function Rd(t){return t|2}function Io(t){return(t&131068)>>2}function kl(t,e){return t&-131069|e<<2}function JS(t){return(t&1)===1}function Pd(t){return t|1}function XS(t,e,r,n,o,i){let s=i?e.classBindings:e.styleBindings,a=Sr(s),u=Io(s);t[n]=r;let c=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||ki(d,l)>0)&&(c=!0)}else l=r;if(o)if(u!==0){let f=Sr(t[a+1]);t[n+1]=Ca(f,a),f!==0&&(t[f+1]=kl(t[f+1],n)),t[a+1]=QS(t[a+1],n)}else t[n+1]=Ca(a,0),a!==0&&(t[a+1]=kl(t[a+1],n)),a=n;else t[n+1]=Ca(u,0),a===0?a=n:t[u+1]=kl(t[u+1],n),u=n;c&&(t[n+1]=Rd(t[n+1])),hm(t,l,n,!0),hm(t,l,n,!1),eA(e,l,t,n,i),s=Ca(a,u),i?e.classBindings=s:e.styleBindings=s}function eA(t,e,r,n,o){let i=o?t.residualClasses:t.residualStyles;i!=null&&typeof e=="string"&&ki(i,e)>=0&&(r[n+1]=Pd(r[n+1]))}function hm(t,e,r,n){let o=t[r+1],i=e===null,s=n?Sr(o):Io(o),a=!1;for(;s!==0&&(a===!1||i);){let u=t[s],c=t[s+1];tA(u,e)&&(a=!0,t[s+1]=n?Pd(c):Rd(c)),s=n?Sr(c):Io(c)}a&&(t[r+1]=n?Rd(o):Pd(o))}function tA(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?ki(t,e)>=0:!1}var Et={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function nA(t){return t.substring(Et.key,Et.keyEnd)}function rA(t){return oA(t),Gy(t,Wy(t,0,Et.textEnd))}function Gy(t,e){let r=Et.textEnd;return r===e?-1:(e=Et.keyEnd=iA(t,Et.key=e,r),Wy(t,e,r))}function oA(t){Et.key=0,Et.keyEnd=0,Et.value=0,Et.valueEnd=0,Et.textEnd=t.length}function Wy(t,e,r){for(;e32;)e++;return e}function sA(t,e,r){let n=M(),o=Nr();if($e(n,o,e)){let i=ce(),s=Ui();wu(i,s,n,t,e,n[ae],r,!1)}return sA}function Fd(t,e,r,n,o){let i=e.inputs,s=o?"class":"style";Sf(t,r,i[s],s,n)}function xu(t,e){return aA(t,e,null,!0),xu}function s5(t){Zy(hA,qy,t,!0)}function qy(t,e){for(let r=rA(e);r>=0;r=Gy(e,r))ru(t,nA(e),!0)}function aA(t,e,r,n){let o=M(),i=ce(),s=Vi(2);if(i.firstUpdatePass&&Yy(i,t,s,n),e!==Me&&$e(o,s,e)){let a=i.data[St()];Qy(i,a,o,o[ae],t,o[s+1]=gA(e,r),n,s)}}function Zy(t,e,r,n){let o=ce(),i=Vi(2);o.firstUpdatePass&&Yy(o,null,i,n);let s=M();if(r!==Me&&$e(s,i,r)){let a=o.data[St()];if(Jy(a,n)&&!Ky(o,i)){let u=n?a.classesWithoutHost:a.stylesWithoutHost;u!==null&&(r=Hl(u,r||"")),Fd(o,a,s,r,n)}else pA(o,a,s,s[ae],s[i+1],s[i+1]=fA(t,e,r),n,i)}}function Ky(t,e){return e>=t.expandoStartIndex}function Yy(t,e,r,n){let o=t.data;if(o[r+1]===null){let i=o[St()],s=Ky(t,r);Jy(i,n)&&e===null&&!s&&(e=!1),e=uA(o,i,e,n),XS(o,i,e,r,s,n)}}function uA(t,e,r,n){let o=L_(t),i=n?e.residualClasses:e.residualStyles;if(o===null)(n?e.classBindings:e.styleBindings)===0&&(r=jl(null,t,e,r,n),r=Fi(r,e.attrs,n),i=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==o)if(r=jl(o,t,e,r,n),i===null){let u=cA(t,e,n);u!==void 0&&Array.isArray(u)&&(u=jl(null,t,e,u[1],n),u=Fi(u,e.attrs,n),lA(t,e,n,u))}else i=dA(t,e,n)}return i!==void 0&&(n?e.residualClasses=i:e.residualStyles=i),r}function cA(t,e,r){let n=r?e.classBindings:e.styleBindings;if(Io(n)!==0)return t[Sr(n)]}function lA(t,e,r,n){let o=r?e.classBindings:e.styleBindings;t[Sr(o)]=n}function dA(t,e,r){let n,o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0;){let u=t[o],c=Array.isArray(u),l=c?u[1]:u,d=l===null,f=r[o+1];f===Me&&(f=d?Ye:void 0);let h=d?Tl(f,n):l===n?f:void 0;if(c&&!Za(h)&&(h=Tl(u,n)),Za(h)&&(a=h,s))return a;let p=t[o+1];o=s?Sr(p):Io(p)}if(e!==null){let u=i?e.residualClasses:e.residualStyles;u!=null&&(a=Tl(u,n))}return a}function Za(t){return t!==void 0}function gA(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Be(At(t)))),t}function Jy(t,e){return(t.flags&(e?8:16))!==0}function a5(t,e,r){let n=M(),o=jf(n,t,e,r);Zy(ru,qy,o,!0)}function u5(){return M()[Je][Oe]}var Ld=class{destroy(e){}updateValue(e,r){}swap(e,r){let n=Math.min(e,r),o=Math.max(e,r),i=this.detach(o);if(o-n>1){let s=this.detach(n);this.attach(n,i),this.attach(o,s)}else this.attach(n,i)}move(e,r){this.attach(r,this.detach(e))}};function Vl(t,e,r,n,o){return t===r&&Object.is(e,n)?1:Object.is(o(t,e),o(r,n))?-1:0}function mA(t,e,r){let n,o,i=0,s=t.length-1,a=void 0;if(Array.isArray(e)){let u=e.length-1;for(;i<=s&&i<=u;){let c=t.at(i),l=e[i],d=Vl(i,c,i,l,r);if(d!==0){d<0&&t.updateValue(i,l),i++;continue}let f=t.at(s),h=e[u],p=Vl(s,f,u,h,r);if(p!==0){p<0&&t.updateValue(s,h),s--,u--;continue}let g=r(i,c),m=r(s,f),v=r(i,l);if(Object.is(v,m)){let A=r(u,h);Object.is(A,g)?(t.swap(i,s),t.updateValue(s,h),u--,s--):t.move(s,i),t.updateValue(i,l),i++;continue}if(n??=new Ka,o??=mm(t,i,s,r),kd(t,n,i,v))t.updateValue(i,l),i++,s++;else if(o.has(v))n.set(g,t.detach(i)),s--;else{let A=t.create(i,e[i]);t.attach(i,A),i++,s++}}for(;i<=u;)gm(t,n,r,i,e[i]),i++}else if(e!=null){let u=e[Symbol.iterator](),c=u.next();for(;!c.done&&i<=s;){let l=t.at(i),d=c.value,f=Vl(i,l,i,d,r);if(f!==0)f<0&&t.updateValue(i,d),i++,c=u.next();else{n??=new Ka,o??=mm(t,i,s,r);let h=r(i,d);if(kd(t,n,i,h))t.updateValue(i,d),i++,s++,c=u.next();else if(!o.has(h))t.attach(i,t.create(i,d)),i++,s++,c=u.next();else{let p=r(i,l);n.set(p,t.detach(i)),s--}}}for(;!c.done;)gm(t,n,r,t.length,c.value),c=u.next()}for(;i<=s;)t.destroy(t.detach(s--));n?.forEach(u=>{t.destroy(u)})}function kd(t,e,r,n){return e!==void 0&&e.has(n)?(t.attach(r,e.get(n)),e.delete(n),!0):!1}function gm(t,e,r,n,o){if(kd(t,e,n,r(n,o)))t.updateValue(n,o);else{let i=t.create(n,o);t.attach(n,i)}}function mm(t,e,r,n){let o=new Set;for(let i=e;i<=r;i++)o.add(n(i,t.at(i)));return o}var Ka=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let r=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(r)?(this.kvMap.set(e,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,r){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(n);)n=o.get(n);o.set(n,r)}else this.kvMap.set(e,r)}forEach(e){for(let[r,n]of this.kvMap)if(e(n,r),this._vMap!==void 0){let o=this._vMap;for(;o.has(n);)n=o.get(n),e(n,r)}}};function c5(t,e){zi("NgControlFlow");let r=M(),n=Nr(),o=r[n]!==Me?r[n]:-1,i=o!==-1?Ya(r,Ee+o):void 0,s=0;if($e(r,n,t)){let a=V(null);try{if(i!==void 0&&Iy(i,s),t!==-1){let u=Ee+t,c=Ya(r,u),l=Bd(r[R],u),d=Do(c,l.tView.ssrId),f=$i(r,l,e,{dehydratedView:d});Hi(c,f,s,yo(l,d))}}finally{V(a)}}else if(i!==void 0){let a=Ey(i,s);a!==void 0&&(a[Oe]=e)}}var jd=class{constructor(e,r,n){this.lContainer=e,this.$implicit=r,this.$index=n}get $count(){return this.lContainer.length-je}};function l5(t){return t}function d5(t,e){return e}var Vd=class{constructor(e,r,n){this.hasEmptyBlock=e,this.trackByFn=r,this.liveCollection=n}};function f5(t,e,r,n,o,i,s,a,u,c,l,d,f){zi("NgControlFlow");let h=M(),p=ce(),g=u!==void 0,m=M(),v=a?s.bind(m[Je][Oe]):s,A=new Vd(g,v);m[Ee+t]=A,qa(h,p,t+1,e,r,n,o,Vn(p.consts,i)),g&&qa(h,p,t+2,u,c,l,d,Vn(p.consts,f))}var Ud=class extends Ld{constructor(e,r,n){super(),this.lContainer=e,this.hostLView=r,this.templateTNode=n,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-je}at(e){return this.getLView(e)[Oe].$implicit}attach(e,r){let n=r[go];this.needsIndexUpdate||=e!==this.length,Hi(this.lContainer,r,e,yo(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,vA(this.lContainer,e)}create(e,r){let n=Do(this.lContainer,this.templateTNode.tView.ssrId),o=$i(this.hostLView,this.templateTNode,new jd(this.lContainer,r,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),o}destroy(e){mu(e[R],e),this.operationsCounter?.recordDestroy()}updateValue(e,r){this.getLView(e)[Oe].$implicit=r}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(fu(!0),ty(n,o,V_()));function bA(t,e,r,n,o){let i=e.consts,s=Vn(i,n),a=To(e,t,8,"ng-container",s);s!==null&&Ha(a,s,!0);let u=Vn(i,o);return Tf(e,r,a,u),e.queries!==null&&e.queries.elementStart(e,a),a}function tD(t,e,r){let n=M(),o=ce(),i=t+Ee,s=o.firstCreatePass?bA(i,o,n,e,r):o.data[i];Ar(s,!0);let a=EA(o,n,s,t);return n[i]=a,du()&&vu(o,n,a,s),Un(a,n),uu(s)&&(xf(o,n,s),If(o,s,n)),r!=null&&_f(n,s),tD}function nD(){let t=Pe(),e=ce();return uf()?cf():(t=t.parent,Ar(t,!1)),e.firstCreatePass&&(hu(e,t),of(t)&&e.queries.elementEnd(t)),nD}function CA(t,e,r){return tD(t,e,r),nD(),CA}var EA=(t,e,r,n)=>(fu(!0),GM(e[ae],""));function p5(){return M()}function IA(t,e,r){let n=M(),o=Nr();if($e(n,o,e)){let i=ce(),s=Ui();wu(i,s,n,t,e,n[ae],r,!0)}return IA}var vr=void 0;function xA(t){let e=t,r=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return r===1&&n===0?1:5}var _A=["en",[["a","p"],["AM","PM"],vr],[["AM","PM"],vr,vr],[["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"]],vr,[["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"]],vr,[["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}",vr,"{1} 'at' {0}",vr],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",xA],_i={};function rD(t,e,r){typeof e!="string"&&(r=e,e=t[ue.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),_i[e]=t,r&&(_i[e][ue.ExtraData]=r)}function ot(t){let e=MA(t),r=vm(e);if(r)return r;let n=e.split("-")[0];if(r=vm(n),r)return r;if(n==="en")return _A;throw new C(701,!1)}function vm(t){return t in _i||(_i[t]=It.ng&&It.ng.common&&It.ng.common.locales&&It.ng.common.locales[t]),_i[t]}var ue=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(ue||{});function MA(t){return t.toLowerCase().replace(/_/g,"-")}var Qa="en-US";var TA=Qa;function SA(t){typeof t=="string"&&(TA=t.toLowerCase().replace(/_/g,"-"))}var AA=(t,e,r)=>{};function ht(t,e,r,n){let o=M(),i=ce(),s=Pe();return oD(i,o,o[ae],s,t,e,n),ht}function NA(t,e,r,n){let o=t.cleanup;if(o!=null)for(let i=0;iu?a[u]:null}typeof s=="string"&&(i+=2)}return null}function oD(t,e,r,n,o,i,s){let a=uu(n),c=t.firstCreatePass&&by(t),l=e[Oe],d=wy(e),f=!0;if(n.type&3||s){let g=ft(n,e),m=s?s(g):g,v=d.length,A=s?U=>s(Ht(U[n.index])):n.index,z=null;if(!s&&a&&(z=NA(t,e,o,n.index)),z!==null){let U=z.__ngLastListenerFn__||z;U.__ngNextListenerFn__=i,z.__ngLastListenerFn__=i,f=!1}else{i=Dm(n,e,l,i),AA(g,o,i);let U=r.listen(m,o,i);d.push(i,U),c&&c.push(o,A,v,v+1)}}else i=Dm(n,e,l,i);let h=n.outputs,p;if(f&&h!==null&&(p=h[o])){let g=p.length;if(g)for(let m=0;m-1?$n(t.index,e):e;Nf(s,5);let a=ym(e,r,n,i),u=o.__ngNextListenerFn__;for(;u;)a=ym(e,r,u,i)&&a,u=u.__ngNextListenerFn__;return a}}function g5(t=1){return j_(t)}function OA(t,e){let r=null,n=Y0(t);for(let o=0;o=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}function D5(t){let e=N_();return cu(e,Ee+t)}function w5(t,e=""){let r=M(),n=ce(),o=t+Ee,i=n.firstCreatePass?To(n,o,1,e,null):n.data[o],s=LA(n,r,i,e,t);r[o]=s,du()&&vu(n,r,s,i),Ar(i,!1)}var LA=(t,e,r,n,o)=>(fu(!0),HM(e[ae],n));function kA(t){return cD("",t,""),kA}function cD(t,e,r){let n=M(),o=jf(n,t,e,r);return o!==Me&&Cu(n,St(),o),cD}function jA(t,e,r,n,o){let i=M(),s=qS(i,t,e,r,n,o);return s!==Me&&Cu(i,St(),s),jA}function VA(t,e,r,n,o,i,s){let a=M(),u=ZS(a,t,e,r,n,o,i,s);return u!==Me&&Cu(a,St(),u),VA}function UA(t,e,r,n,o,i,s,a,u,c,l){let d=M(),f=KS(d,t,e,r,n,o,i,s,a,u,c,l);return f!==Me&&Cu(d,St(),f),UA}function BA(t,e,r){By(e)&&(e=e());let n=M(),o=Nr();if($e(n,o,e)){let i=ce(),s=Ui();wu(i,s,n,t,e,n[ae],r,!1)}return BA}function b5(t,e){let r=By(t);return r&&t.set(e),r}function $A(t,e){let r=M(),n=ce(),o=Pe();return oD(n,r,r[ae],o,t,e),$A}function HA(t,e,r){let n=ce();if(n.firstCreatePass){let o=jn(t);$d(r,n.data,n.blueprint,o,!0),$d(e,n.data,n.blueprint,o,!1)}}function $d(t,e,r,n,o){if(t=Ne(t),Array.isArray(t))for(let i=0;i>20;if(po(t)||!t.multi){let h=new xr(c,o,w),p=Bl(u,e,o?l:l+f,d);p===-1?(nd(Va(a,s),i,u),Ul(i,t,e.length),e.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),r.push(h),s.push(h)):(r[p]=h,s[p]=h)}else{let h=Bl(u,e,l+f,d),p=Bl(u,e,l,l+f),g=h>=0&&r[h],m=p>=0&&r[p];if(o&&!m||!o&&!g){nd(Va(a,s),i,u);let v=WA(o?GA:zA,r.length,o,n,c);!o&&m&&(r[p].providerFactory=v),Ul(i,t,e.length,0),e.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),r.push(v),s.push(v)}else{let v=lD(r[o?p:h],c,!o&&n);Ul(i,t,h>-1?h:p,v)}!o&&n&&m&&r[p].componentProviders++}}}function Ul(t,e,r,n){let o=po(e),i=l_(e);if(o||i){let u=(i?Ne(e.useClass):e).prototype.ngOnDestroy;if(u){let c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){let l=c.indexOf(r);l===-1?c.push(r,[n,u]):c[l+1].push(n,u)}else c.push(r,u)}}}function lD(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function Bl(t,e,r,n){for(let o=r;o{r.providersResolver=(n,o)=>HA(n,o?o(t):t,e)}}var qA=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let o=Wm(!1,n.type),i=o.length>0?Ff([o],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=b({token:e,providedIn:"environment",factory:()=>new e(x(Qe))});let t=e;return t})();function dD(t){zi("NgStandalone"),t.getStandaloneInjector=e=>e.get(qA).getOrCreateStandaloneInjector(t)}function C5(t,e,r){let n=Gt()+t,o=M();return o[n]===Me?Or(o,n,r?e.call(r):e()):kf(o,n)}function E5(t,e,r,n){return fD(M(),Gt(),t,e,r,n)}function I5(t,e,r,n,o){return hD(M(),Gt(),t,e,r,n,o)}function x5(t,e,r,n,o,i){return ZA(M(),Gt(),t,e,r,n,o,i)}function _5(t,e,r,n,o,i,s){return pD(M(),Gt(),t,e,r,n,o,i,s)}function M5(t,e,r,n,o,i,s,a){let u=Gt()+t,c=M(),l=Iu(c,u,r,n,o,i);return $e(c,u+4,s)||l?Or(c,u+5,a?e.call(a,r,n,o,i,s):e(r,n,o,i,s)):kf(c,u+5)}function T5(t,e,r,n,o,i,s,a,u){let c=Gt()+t,l=M(),d=Iu(l,c,r,n,o,i);return Eo(l,c+4,s,a)||d?Or(l,c+6,u?e.call(u,r,n,o,i,s,a):e(r,n,o,i,s,a)):kf(l,c+6)}function _u(t,e){let r=t[e];return r===Me?void 0:r}function fD(t,e,r,n,o,i){let s=e+r;return $e(t,s,o)?Or(t,s+1,i?n.call(i,o):n(o)):_u(t,s+1)}function hD(t,e,r,n,o,i,s){let a=e+r;return Eo(t,a,o,i)?Or(t,a+2,s?n.call(s,o,i):n(o,i)):_u(t,a+2)}function ZA(t,e,r,n,o,i,s,a){let u=e+r;return zy(t,u,o,i,s)?Or(t,u+3,a?n.call(a,o,i,s):n(o,i,s)):_u(t,u+3)}function pD(t,e,r,n,o,i,s,a,u){let c=e+r;return Iu(t,c,o,i,s,a)?Or(t,c+4,u?n.call(u,o,i,s,a):n(o,i,s,a)):_u(t,c+4)}function S5(t,e){let r=ce(),n,o=t+Ee;r.firstCreatePass?(n=KA(e,r.pipeRegistry),r.data[o]=n,n.onDestroy&&(r.destroyHooks??=[]).push(o,n.onDestroy)):n=r.data[o];let i=n.factory||(n.factory=wr(n.type,!0)),s,a=Ze(w);try{let u=ja(!1),c=i();return ja(u),FA(r,M(),o,c),c}finally{Ze(a)}}function KA(t,e){if(e)for(let r=e.length-1;r>=0;r--){let n=e[r];if(t===n.name)return n}}function A5(t,e,r){let n=t+Ee,o=M(),i=cu(o,n);return Uf(o,n)?fD(o,Gt(),e,i.transform,r,i):i.transform(r)}function N5(t,e,r,n){let o=t+Ee,i=M(),s=cu(i,o);return Uf(i,o)?hD(i,Gt(),e,s.transform,r,n,s):s.transform(r,n)}function O5(t,e,r,n,o,i){let s=t+Ee,a=M(),u=cu(a,s);return Uf(a,s)?pD(a,Gt(),e,u.transform,r,n,o,i,u):u.transform(r,n,o,i)}function Uf(t,e){return t[R].data[e].pure}function R5(t,e){return Eu(t,e)}var Mu=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var gD=new E("");function Gn(t){return!!t&&typeof t.then=="function"}function Bf(t){return!!t&&typeof t.subscribe=="function"}var mD=new E(""),vD=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,o)=>{this.resolve=n,this.reject=o}),this.appInits=y(mD,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let s=i();if(Gn(s))n.push(s);else if(Bf(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});n.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{o()}).catch(i=>{this.reject(i)}),n.length===0&&o(),this.initialized=!0}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Tu=new E("");function YA(){Xp(()=>{throw new C(600,!1)})}function QA(t){return t.isBoundToModule}var JA=10;function XA(t,e,r){try{let n=r();return Gn(n)?n.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var Pr=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=y(Ov),this.afterRenderEffectManager=y(Fy),this.zonelessEnabled=y(Ny),this.externalTestViews=new Set,this.beforeRender=new se,this.afterTick=new se,this.componentTypes=[],this.components=[],this.isStable=y(Hn).hasPendingTasks.pipe(N(n=>!n)),this._injector=y(Qe)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,o){let i=n instanceof $a;if(!this._injector.get(vD).done){let h=!i&&$m(n),p=!1;throw new C(405,p)}let a;i?a=n:a=this._injector.get(wo).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let u=QA(a)?void 0:this._injector.get(Bn),c=o||a.selector,l=a.create(rn.NULL,[],c,u),d=l.location.nativeElement,f=l.injector.get(gD,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),$l(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new C(101,!1);let o=V(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,V(o),this.afterTick.next()}}detectChangesInAttachedViews(n){let o=null;this._injector.destroyed||(o=this._injector.get(bo,null,{optional:!0}));let i=0,s=this.afterRenderEffectManager;for(;iNi(u))&&(s.execute(),!this.allViews.some(({_lView:u})=>Ni(u))))break}}attachView(n){let o=n;this._views.push(o),o.attachToAppRef(this)}detachView(n){let o=n;$l(this._views,o),o.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let o=this._injector.get(Tu,[]);[...this._bootstrapListeners,...o].forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>$l(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new C(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function $l(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function eN(t,e,r,n){if(!r&&!Ni(t))return;My(t,e,r&&!n?0:1)}var zd=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},$f=(()=>{let e=class e{compileModuleSync(n){return new Od(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let o=this.compileModuleSync(n),i=Hm(n),s=ey(i.declarations).reduce((a,u)=>{let c=kn(u);return c&&a.push(new Co(c)),a},[]);return new zd(o,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var tN=(()=>{let e=class e{constructor(){this.zone=y(pe),this.changeDetectionScheduler=y(Ri),this.applicationRef=y(Pr)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function nN({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new pe(oN()),[{provide:pe,useFactory:t},{provide:fo,multi:!0,useFactory:()=>{let r=y(tN,{optional:!0});return()=>r.initialize()}},{provide:fo,multi:!0,useFactory:()=>{let r=y(iN);return()=>{r.initialize()}}},{provide:Ov,useFactory:rN},e===!0?{provide:Oy,useValue:!0}:[]]}function rN(){let t=y(pe),e=y(on);return r=>t.runOutsideAngular(()=>e.handleError(r))}function oN(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var iN=(()=>{let e=class e{constructor(){this.subscription=new ie,this.initialized=!1,this.zone=y(pe),this.pendingTasks=y(Hn)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{pe.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{pe.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var sN=(()=>{let e=class e{constructor(){this.appRef=y(Pr),this.taskService=y(Hn),this.ngZone=y(pe),this.zonelessEnabled=y(Ny),this.disableScheduling=y(Oy,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new ie,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Ed||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let o=this.useMicrotaskScheduler?sm:Ry;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=o(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=o(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&pe.isInAngularZone())}tick(n){if(this.runningTick||this.appRef.destroyed)return;let o=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(n)},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(o),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,sm(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(o)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function aN(){return typeof $localize<"u"&&$localize.locale||Qa}var Gi=new E("",{providedIn:"root",factory:()=>y(Gi,j.Optional|j.SkipSelf)||aN()});var yD=new E("");var Ta=null;function uN(t=[],e){return rn.create({name:e,providers:[{provide:ou,useValue:"platform"},{provide:yD,useValue:new Set([()=>Ta=null])},...t]})}function cN(t=[]){if(Ta)return Ta;let e=uN(t);return Ta=e,YA(),lN(e),e}function lN(t){t.get(vf,null)?.forEach(r=>r())}var Nt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=dN;let t=e;return t})();function dN(t){return fN(Pe(),M(),(t&16)===16)}function fN(t,e,r){if(au(t)&&!r){let n=$n(t.index,e);return new Mr(n,n)}else if(t.type&47){let n=e[Je];return new Mr(n,e)}return null}var Gd=class{constructor(){}supports(e){return Hy(e)}create(e){return new Wd(e)}},hN=(t,e)=>e,Wd=class{constructor(e){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=e||hN}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,o=0,i=null;for(;r||n;){let s=!n||r&&r.currentIndex{s=this._trackByFn(o,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,o),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,o)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,o++}),this.length=o;return this._truncate(r),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,r,n,o){let i;return e===null?i=this._itTail:(i=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,i,o)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,o),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,i,o)):e=this._addAfter(new qd(r,n),i,o)),e}_verifyReinsertion(e,r,n,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return i!==null?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let o=e._prevRemoved,i=e._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let o=r===null?this._itHead:r._next;return e._next=o,e._prev=r,o===null?this._itTail=e:o._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new Ja),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Ja),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},qd=class{constructor(e,r){this.item=e,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}},Zd=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},Ja=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new Zd,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,o=this.map.get(n);return o?o.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function wm(t,e,r){let n=t.previousIndex;if(n===null)return n;let o=0;return r&&n{if(r&&r.key===o)this._maybeAddToChanges(r,n),this._appendAfter=r,r=r._next;else{let i=this._getOrCreateRecordForKey(o,n);r=this._insertBeforeOrAppend(r,i)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let n=r;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,r){if(e){let n=e._prev;return r._next=e,r._prev=n,e._prev=r,n&&(n._next=r),e===this._mapHead&&(this._mapHead=r),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(e,r){if(this._records.has(e)){let o=this._records.get(e);this._maybeAddToChanges(o,r);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let n=new Qd(e);return this._records.set(e,n),n.currentValue=r,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,r){Object.is(r,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=r,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,r){e instanceof Map?e.forEach(r):Object.keys(e).forEach(n=>r(e[n],n))}},Qd=class{constructor(e){this.key=e,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 bm(){return new Hf([new Gd])}var Hf=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,o){if(o!=null){let i=o.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:o=>e.create(n,o||bm()),deps:[[e,new Xd,new nu]]}}find(n){let o=this.factories.find(i=>i.supports(n));if(o!=null)return o;throw new C(901,!1)}};e.\u0275prov=b({token:e,providedIn:"root",factory:bm});let t=e;return t})();function Cm(){return new zf([new Kd])}var zf=(()=>{let e=class e{constructor(n){this.factories=n}static create(n,o){if(o){let i=o.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:o=>e.create(n,o||Cm()),deps:[[e,new Xd,new nu]]}}find(n){let o=this.factories.find(i=>i.supports(n));if(o)return o;throw new C(901,!1)}};e.\u0275prov=b({token:e,providedIn:"root",factory:Cm});let t=e;return t})();function DD(t){try{let{rootComponent:e,appProviders:r,platformProviders:n}=t,o=cN(n),i=[nN({}),{provide:Ri,useExisting:sN},...r||[]],a=new Wa({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,u=a.get(pe);return u.run(()=>{a.resolveInjectorInitializers();let c=a.get(on,null),l;u.runOutsideAngular(()=>{l=u.onError.subscribe({next:h=>{c.handleError(h)}})});let d=()=>a.destroy(),f=o.get(yD);return f.add(d),a.onDestroy(()=>{l.unsubscribe(),f.delete(d)}),XA(c,u,()=>{let h=a.get(vD);return h.runInitializers(),h.donePromise.then(()=>{let p=a.get(Gi,Qa);SA(p||Qa);let g=a.get(Pr);return e!==void 0&&g.bootstrap(e),g})})})}catch(e){return Promise.reject(e)}}function Wn(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function pN(t,e=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):e}function Gf(t){let e=V(null);try{return t()}finally{V(e)}}function P5(t,e){let r=kn(t),n=e.elementInjector||iu();return new Co(r).create(n,e.projectableNodes,e.hostElement,e.environmentInjector)}var MD=null;function mn(){return MD}function TD(t){MD??=t}var ku=class{};var Ue=new E(""),sh=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:()=>y(gN),providedIn:"platform"});let t=e;return t})();var gN=(()=>{let e=class e extends sh{constructor(){super(),this._doc=y(Ue),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return mn().getBaseHref(this._doc)}onPopState(n){let o=mn().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",n,!1),()=>o.removeEventListener("popstate",n)}onHashChange(n){let o=mn().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",n,!1),()=>o.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,o,i){this._history.pushState(n,o,i)}replaceState(n,o,i){this._history.replaceState(n,o,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function ah(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function wD(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function hn(t){return t&&t[0]!=="?"?"?"+t:t}var qn=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:()=>y(AD),providedIn:"root"});let t=e;return t})(),SD=new E(""),AD=(()=>{let e=class e extends qn{constructor(n,o){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??y(Ue).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return ah(this._baseHref,n)}path(n=!1){let o=this._platformLocation.pathname+hn(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${o}${i}`:o}pushState(n,o,i,s){let a=this.prepareExternalUrl(i+hn(s));this._platformLocation.pushState(n,o,a)}replaceState(n,o,i,s){let a=this.prepareExternalUrl(i+hn(s));this._platformLocation.replaceState(n,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(o){return new(o||e)(x(sh),x(SD,8))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ND=(()=>{let e=class e extends qn{constructor(n,o){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],o!=null&&(this._baseHref=o)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let o=this._platformLocation.hash??"#";return o.length>0?o.substring(1):o}prepareExternalUrl(n){let o=ah(this._baseHref,n);return o.length>0?"#"+o:o}pushState(n,o,i,s){let a=this.prepareExternalUrl(i+hn(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,o,a)}replaceState(n,o,i,s){let a=this.prepareExternalUrl(i+hn(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(o){return new(o||e)(x(sh),x(SD,8))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),qi=(()=>{let e=class e{constructor(n){this._subject=new G,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let o=this._locationStrategy.getBaseHref();this._basePath=yN(wD(bD(o))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,o=""){return this.path()==this.normalize(n+hn(o))}normalize(n){return e.stripTrailingSlash(vN(this._basePath,bD(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,o="",i=null){this._locationStrategy.pushState(i,"",n,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+hn(o)),i)}replaceState(n,o="",i=null){this._locationStrategy.replaceState(i,"",n,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+hn(o)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",o){this._urlChangeListeners.forEach(i=>i(n,o))}subscribe(n,o,i){return this._subject.subscribe({next:n,error:o,complete:i})}};e.normalizeQueryParams=hn,e.joinWithSlash=ah,e.stripTrailingSlash=wD,e.\u0275fac=function(o){return new(o||e)(x(qn))},e.\u0275prov=b({token:e,factory:()=>mN(),providedIn:"root"});let t=e;return t})();function mN(){return new qi(x(qn))}function vN(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function bD(t){return t.replace(/\/index.html$/,"")}function yN(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}var OD=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}(OD||{});var ze=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(ze||{}),X=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}(X||{}),it=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}(it||{}),st={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function DN(t){return ot(t)[ue.LocaleId]}function wN(t,e,r){let n=ot(t),o=[n[ue.DayPeriodsFormat],n[ue.DayPeriodsStandalone]],i=pt(o,e);return pt(i,r)}function bN(t,e,r){let n=ot(t),o=[n[ue.DaysFormat],n[ue.DaysStandalone]],i=pt(o,e);return pt(i,r)}function CN(t,e,r){let n=ot(t),o=[n[ue.MonthsFormat],n[ue.MonthsStandalone]],i=pt(o,e);return pt(i,r)}function EN(t,e){let n=ot(t)[ue.Eras];return pt(n,e)}function Su(t,e){let r=ot(t);return pt(r[ue.DateFormat],e)}function Au(t,e){let r=ot(t);return pt(r[ue.TimeFormat],e)}function Nu(t,e){let n=ot(t)[ue.DateTimeFormat];return pt(n,e)}function pn(t,e){let r=ot(t),n=r[ue.NumberSymbols][e];if(typeof n>"u"){if(e===st.CurrencyDecimal)return r[ue.NumberSymbols][st.Decimal];if(e===st.CurrencyGroup)return r[ue.NumberSymbols][st.Group]}return n}function IN(t,e){return ot(t)[ue.NumberFormats][e]}function RD(t){if(!t[ue.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[ue.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function xN(t){let e=ot(t);return RD(e),(e[ue.ExtraData][2]||[]).map(n=>typeof n=="string"?qf(n):[qf(n[0]),qf(n[1])])}function _N(t,e,r){let n=ot(t);RD(n);let o=[n[ue.ExtraData][0],n[ue.ExtraData][1]],i=pt(o,e)||[];return pt(i,r)||[]}function pt(t,e){for(let r=e;r>-1;r--)if(typeof t[r]<"u")return t[r];throw new Error("Locale data API: locale data undefined")}function qf(t){let[e,r]=t.split(":");return{hours:+e,minutes:+r}}var MN=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ou={},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]*)/,gn=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}(gn||{}),q=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}(q||{}),W=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}(W||{});function SN(t,e,r,n){let o=jN(t);e=fn(r,e)||e;let s=[],a;for(;e;)if(a=TN.exec(e),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;e=l}else{s.push(e);break}let u=o.getTimezoneOffset();n&&(u=FD(n,u),o=kN(o,n,!0));let c="";return s.forEach(l=>{let d=FN(l);c+=d?d(o,r,u):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function ju(t,e,r){let n=new Date(0);return n.setFullYear(t,e,r),n.setHours(0,0,0),n}function fn(t,e){let r=DN(t);if(Ou[r]??={},Ou[r][e])return Ou[r][e];let n="";switch(e){case"shortDate":n=Su(t,it.Short);break;case"mediumDate":n=Su(t,it.Medium);break;case"longDate":n=Su(t,it.Long);break;case"fullDate":n=Su(t,it.Full);break;case"shortTime":n=Au(t,it.Short);break;case"mediumTime":n=Au(t,it.Medium);break;case"longTime":n=Au(t,it.Long);break;case"fullTime":n=Au(t,it.Full);break;case"short":let o=fn(t,"shortTime"),i=fn(t,"shortDate");n=Ru(Nu(t,it.Short),[o,i]);break;case"medium":let s=fn(t,"mediumTime"),a=fn(t,"mediumDate");n=Ru(Nu(t,it.Medium),[s,a]);break;case"long":let u=fn(t,"longTime"),c=fn(t,"longDate");n=Ru(Nu(t,it.Long),[u,c]);break;case"full":let l=fn(t,"fullTime"),d=fn(t,"fullDate");n=Ru(Nu(t,it.Full),[l,d]);break}return n&&(Ou[r][e]=n),n}function Ru(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(r,n){return e!=null&&n in e?e[n]:r})),t}function Ot(t,e,r="-",n,o){let i="";(t<0||o&&t<=0)&&(o?t=-t+1:(t=-t,i=r));let s=String(t);for(;s.length0||a>-r)&&(a+=r),t===q.Hours)a===0&&r===-12&&(a=12);else if(t===q.FractionalSeconds)return AN(a,e);let u=pn(s,st.MinusSign);return Ot(a,e,u,n,o)}}function NN(t,e){switch(t){case q.FullYear:return e.getFullYear();case q.Month:return e.getMonth();case q.Date:return e.getDate();case q.Hours:return e.getHours();case q.Minutes:return e.getMinutes();case q.Seconds:return e.getSeconds();case q.FractionalSeconds:return e.getMilliseconds();case q.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}function ne(t,e,r=ze.Format,n=!1){return function(o,i){return ON(o,i,t,e,r,n)}}function ON(t,e,r,n,o,i){switch(r){case W.Months:return CN(e,o,n)[t.getMonth()];case W.Days:return bN(e,o,n)[t.getDay()];case W.DayPeriods:let s=t.getHours(),a=t.getMinutes();if(i){let c=xN(e),l=_N(e,o,n),d=c.findIndex(f=>{if(Array.isArray(f)){let[h,p]=f,g=s>=h.hours&&a>=h.minutes,m=s0?Math.floor(o/60):Math.ceil(o/60);switch(t){case gn.Short:return(o>=0?"+":"")+Ot(s,2,i)+Ot(Math.abs(o%60),2,i);case gn.ShortGMT:return"GMT"+(o>=0?"+":"")+Ot(s,1,i);case gn.Long:return"GMT"+(o>=0?"+":"")+Ot(s,2,i)+":"+Ot(Math.abs(o%60),2,i);case gn.Extended:return n===0?"Z":(o>=0?"+":"")+Ot(s,2,i)+":"+Ot(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${t}"`)}}}var RN=0,Lu=4;function PN(t){let e=ju(t,RN,1).getDay();return ju(t,0,1+(e<=Lu?Lu:Lu+7)-e)}function PD(t){let e=t.getDay(),r=e===0?-3:Lu-e;return ju(t.getFullYear(),t.getMonth(),t.getDate()+r)}function Zf(t,e=!1){return function(r,n){let o;if(e){let i=new Date(r.getFullYear(),r.getMonth(),1).getDay()-1,s=r.getDate();o=1+Math.floor((s+i)/7)}else{let i=PD(r),s=PN(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Ot(o,t,pn(n,st.MinusSign))}}function Fu(t,e=!1){return function(r,n){let i=PD(r).getFullYear();return Ot(i,t,pn(n,st.MinusSign),e)}}var Kf={};function FN(t){if(Kf[t])return Kf[t];let e;switch(t){case"G":case"GG":case"GGG":e=ne(W.Eras,X.Abbreviated);break;case"GGGG":e=ne(W.Eras,X.Wide);break;case"GGGGG":e=ne(W.Eras,X.Narrow);break;case"y":e=ve(q.FullYear,1,0,!1,!0);break;case"yy":e=ve(q.FullYear,2,0,!0,!0);break;case"yyy":e=ve(q.FullYear,3,0,!1,!0);break;case"yyyy":e=ve(q.FullYear,4,0,!1,!0);break;case"Y":e=Fu(1);break;case"YY":e=Fu(2,!0);break;case"YYY":e=Fu(3);break;case"YYYY":e=Fu(4);break;case"M":case"L":e=ve(q.Month,1,1);break;case"MM":case"LL":e=ve(q.Month,2,1);break;case"MMM":e=ne(W.Months,X.Abbreviated);break;case"MMMM":e=ne(W.Months,X.Wide);break;case"MMMMM":e=ne(W.Months,X.Narrow);break;case"LLL":e=ne(W.Months,X.Abbreviated,ze.Standalone);break;case"LLLL":e=ne(W.Months,X.Wide,ze.Standalone);break;case"LLLLL":e=ne(W.Months,X.Narrow,ze.Standalone);break;case"w":e=Zf(1);break;case"ww":e=Zf(2);break;case"W":e=Zf(1,!0);break;case"d":e=ve(q.Date,1);break;case"dd":e=ve(q.Date,2);break;case"c":case"cc":e=ve(q.Day,1);break;case"ccc":e=ne(W.Days,X.Abbreviated,ze.Standalone);break;case"cccc":e=ne(W.Days,X.Wide,ze.Standalone);break;case"ccccc":e=ne(W.Days,X.Narrow,ze.Standalone);break;case"cccccc":e=ne(W.Days,X.Short,ze.Standalone);break;case"E":case"EE":case"EEE":e=ne(W.Days,X.Abbreviated);break;case"EEEE":e=ne(W.Days,X.Wide);break;case"EEEEE":e=ne(W.Days,X.Narrow);break;case"EEEEEE":e=ne(W.Days,X.Short);break;case"a":case"aa":case"aaa":e=ne(W.DayPeriods,X.Abbreviated);break;case"aaaa":e=ne(W.DayPeriods,X.Wide);break;case"aaaaa":e=ne(W.DayPeriods,X.Narrow);break;case"b":case"bb":case"bbb":e=ne(W.DayPeriods,X.Abbreviated,ze.Standalone,!0);break;case"bbbb":e=ne(W.DayPeriods,X.Wide,ze.Standalone,!0);break;case"bbbbb":e=ne(W.DayPeriods,X.Narrow,ze.Standalone,!0);break;case"B":case"BB":case"BBB":e=ne(W.DayPeriods,X.Abbreviated,ze.Format,!0);break;case"BBBB":e=ne(W.DayPeriods,X.Wide,ze.Format,!0);break;case"BBBBB":e=ne(W.DayPeriods,X.Narrow,ze.Format,!0);break;case"h":e=ve(q.Hours,1,-12);break;case"hh":e=ve(q.Hours,2,-12);break;case"H":e=ve(q.Hours,1);break;case"HH":e=ve(q.Hours,2);break;case"m":e=ve(q.Minutes,1);break;case"mm":e=ve(q.Minutes,2);break;case"s":e=ve(q.Seconds,1);break;case"ss":e=ve(q.Seconds,2);break;case"S":e=ve(q.FractionalSeconds,1);break;case"SS":e=ve(q.FractionalSeconds,2);break;case"SSS":e=ve(q.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Pu(gn.Short);break;case"ZZZZZ":e=Pu(gn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Pu(gn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Pu(gn.Long);break;default:return null}return Kf[t]=e,e}function FD(t,e){t=t.replace(/:/g,"");let r=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(r)?e:r}function LN(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function kN(t,e,r){let n=r?-1:1,o=t.getTimezoneOffset(),i=FD(e,o);return LN(t,n*(i-o))}function jN(t){if(CD(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[o,i=1,s=1]=t.split("-").map(a=>+a);return ju(o,i-1,s)}let r=parseFloat(t);if(!isNaN(t-r))return new Date(r);let n;if(n=t.match(MN))return VN(n)}let e=new Date(t);if(!CD(e))throw new Error(`Unable to convert "${t}" into a date`);return e}function VN(t){let e=new Date(0),r=0,n=0,o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=Number(t[9]+t[10]),n=Number(t[9]+t[11])),o.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-r,a=Number(t[5]||0)-n,u=Number(t[6]||0),c=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return i.call(e,s,a,u,c),e}function CD(t){return t instanceof Date&&!isNaN(t.valueOf())}var UN=/^(\d+)?\.((\d+)(-(\d+))?)?$/,ED=22,Vu=".",Wi="0",BN=";",$N=",",Yf="#";function HN(t,e,r,n,o,i,s=!1){let a="",u=!1;if(!isFinite(t))a=pn(r,st.Infinity);else{let c=qN(t);s&&(c=WN(c));let l=e.minInt,d=e.minFrac,f=e.maxFrac;if(i){let A=i.match(UN);if(A===null)throw new Error(`${i} is not a valid digit info`);let z=A[1],U=A[3],me=A[5];z!=null&&(l=Qf(z)),U!=null&&(d=Qf(U)),me!=null?f=Qf(me):U!=null&&d>f&&(f=d)}ZN(c,d,f);let h=c.digits,p=c.integerLen,g=c.exponent,m=[];for(u=h.every(A=>!A);p0?m=h.splice(p,h.length):(m=h,h=[0]);let v=[];for(h.length>=e.lgSize&&v.unshift(h.splice(-e.lgSize,h.length).join(""));h.length>e.gSize;)v.unshift(h.splice(-e.gSize,h.length).join(""));h.length&&v.unshift(h.join("")),a=v.join(pn(r,n)),m.length&&(a+=pn(r,o)+m.join("")),g&&(a+=pn(r,st.Exponential)+"+"+g)}return t<0&&!u?a=e.negPre+a+e.negSuf:a=e.posPre+a+e.posSuf,a}function zN(t,e,r){let n=IN(e,OD.Decimal),o=GN(n,pn(e,st.MinusSign));return HN(t,o,e,st.Group,st.Decimal,r)}function GN(t,e="-"){let r={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(BN),o=n[0],i=n[1],s=o.indexOf(Vu)!==-1?o.split(Vu):[o.substring(0,o.lastIndexOf(Wi)+1),o.substring(o.lastIndexOf(Wi)+1)],a=s[0],u=s[1]||"";r.posPre=a.substring(0,a.indexOf(Yf));for(let l=0;l-1&&(e=e.replace(Vu,"")),(i=e.search(/e/i))>0?(o<0&&(o=i),o+=+e.slice(i+1),e=e.substring(0,i)):o<0&&(o=e.length),i=0;e.charAt(i)===Wi;i++);if(i===(a=e.length))n=[0],o=1;else{for(a--;e.charAt(a)===Wi;)a--;for(o-=i,n=[],s=0;i<=a;i++,s++)n[s]=Number(e.charAt(i))}return o>ED&&(n=n.splice(0,ED-1),r=o-1,o=1),{digits:n,exponent:r,integerLen:o}}function ZN(t,e,r){if(e>r)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${r}).`);let n=t.digits,o=n.length-t.integerLen,i=Math.min(Math.max(e,o),r),s=i+t.integerLen,a=n[s];if(s>0){n.splice(Math.max(t.integerLen,s));for(let d=s;d=5)if(s-1<0){for(let d=0;d>s;d--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[s-1]++;for(;o=c?p.pop():u=!1),f>=10?1:0},0);l&&(n.unshift(l),t.integerLen++)}function Qf(t){let e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function X5(t,e,r){return rD(t,e,r)}function Uu(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[o,i]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}var Jf=/\s+/,ID=[],e9=(()=>{let e=class e{constructor(n,o){this._ngEl=n,this._renderer=o,this.initialClasses=ID,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(Jf):ID}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Jf):n}ngDoCheck(){for(let o of this.initialClasses)this._updateState(o,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let o of n)this._updateState(o,!0);else if(n!=null)for(let o of Object.keys(n))this._updateState(o,!!n[o]);this._applyStateDiff()}_updateState(n,o){let i=this.stateMap.get(n);i!==void 0?(i.enabled!==o&&(i.changed=!0,i.enabled=o),i.touched=!0):this.stateMap.set(n,{enabled:o,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let o=n[0],i=n[1];i.changed?(this._toggleClass(o,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(o,!1),this.stateMap.delete(o)),i.touched=!1}}_toggleClass(n,o){n=n.trim(),n.length>0&&n.split(Jf).forEach(i=>{o?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}};e.\u0275fac=function(o){return new(o||e)(w(_e),w(rt))},e.\u0275dir=H({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var Xf=class{constructor(e,r,n,o){this.$implicit=e,this.ngForOf=r,this.index=n,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},t9=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,o,i){this._viewContainer=n,this._template=o,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let o=this._viewContainer;n.forEachOperation((i,s,a)=>{if(i.previousIndex==null)o.createEmbeddedView(this._template,new Xf(i.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)o.remove(s===null?void 0:s);else if(s!==null){let u=o.get(s);o.move(u,a),xD(u,i)}});for(let i=0,s=o.length;i{let s=o.get(i.currentIndex);xD(s,i)})}static ngTemplateContextGuard(n,o){return!0}};e.\u0275fac=function(o){return new(o||e)(w(dn),w(Tr),w(Hf))},e.\u0275dir=H({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function xD(t,e){t.context.$implicit=e.item}var n9=(()=>{let e=class e{constructor(n,o){this._viewContainer=n,this._context=new eh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){_D("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){_D("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,o){return!0}};e.\u0275fac=function(o){return new(o||e)(w(dn),w(Tr))},e.\u0275dir=H({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),eh=class{constructor(){this.$implicit=null,this.ngIf=null}};function _D(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Be(e)}'.`)}var r9=(()=>{let e=class e{constructor(n,o,i){this._ngEl=n,this._differs=o,this._renderer=i,this._ngStyle=null,this._differ=null}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,o){let[i,s]=n.split("."),a=i.indexOf("-")===-1?void 0:zt.DashCase;o!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,s?`${o}${s}`:o,a):this._renderer.removeStyle(this._ngEl.nativeElement,i,a)}_applyChanges(n){n.forEachRemovedItem(o=>this._setStyle(o.key,null)),n.forEachAddedItem(o=>this._setStyle(o.key,o.currentValue)),n.forEachChangedItem(o=>this._setStyle(o.key,o.currentValue))}};e.\u0275fac=function(o){return new(o||e)(w(_e),w(zf),w(rt))},e.\u0275dir=H({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let t=e;return t})(),o9=(()=>{let e=class e{constructor(n){this._viewContainerRef=n,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(n){if(this._shouldRecreateView(n)){let o=this._viewContainerRef;if(this._viewRef&&o.remove(o.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=o.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,o,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,o,i):!1,get:(n,o,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,o,i)}})}};e.\u0275fac=function(o){return new(o||e)(w(dn))},e.\u0275dir=H({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[nt]});let t=e;return t})();function uh(t,e){return new C(2100,!1)}var th=class{createSubscription(e,r){return Gf(()=>e.subscribe({next:r,error:n=>{throw n}}))}dispose(e){Gf(()=>e.unsubscribe())}},nh=class{createSubscription(e,r){return e.then(r,n=>{throw n})}dispose(e){}},KN=new nh,YN=new th,i9=(()=>{let e=class e{constructor(n){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){if(!this._obj){if(n)try{this.markForCheckOnValueUpdate=!1,this._subscribe(n)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,o=>this._updateLatestValue(n,o))}_selectStrategy(n){if(Gn(n))return KN;if(Bf(n))return YN;throw uh(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,o){n===this._obj&&(this._latestValue=o,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(o){return new(o||e)(w(Nt,16))},e.\u0275pipe=xo({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var QN="mediumDate",JN=new E(""),XN=new E(""),s9=(()=>{let e=class e{constructor(n,o,i){this.locale=n,this.defaultTimezone=o,this.defaultOptions=i}transform(n,o,i,s){if(n==null||n===""||n!==n)return null;try{let a=o??this.defaultOptions?.dateFormat??QN,u=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return SN(n,a,s||this.locale,u)}catch(a){throw uh(e,a.message)}}};e.\u0275fac=function(o){return new(o||e)(w(Gi,16),w(JN,24),w(XN,24))},e.\u0275pipe=xo({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();var a9=(()=>{let e=class e{constructor(n){this._locale=n}transform(n,o,i){if(!eO(n))return null;i||=this._locale;try{let s=tO(n);return zN(s,i,o)}catch(s){throw uh(e,s.message)}}};e.\u0275fac=function(o){return new(o||e)(w(Gi,16))},e.\u0275pipe=xo({name:"number",type:e,pure:!0,standalone:!0});let t=e;return t})();function eO(t){return!(t==null||t===""||t!==t)}function tO(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new Error(`${t} is not a number`);return t}var nO=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Mt({type:e}),e.\u0275inj=_t({});let t=e;return t})(),ch="browser",rO="server";function oO(t){return t===ch}function Bu(t){return t===rO}var iO=(()=>{let e=class e{};e.\u0275prov=b({token:e,providedIn:"root",factory:()=>oO(y(cn))?new rh(y(Ue),window):new oh});let t=e;return t})(),rh=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=sO(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),n=r.left+this.window.pageXOffset,o=r.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],o-i[1])}};function sO(t,e){let r=t.getElementById(e)||t.getElementsByName(e)[0];if(r)return r;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=n.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(e)||i.querySelector(`[name="${e}"]`);if(s)return s}o=n.nextNode()}}return null}var oh=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},So=class{};var Ki=class{},Hu=class{},vn=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` +`).forEach(r=>{let n=r.indexOf(":");if(n>0){let o=r.slice(0,n),i=o.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let o=(e.op==="a"?this.headers.get(r):void 0)||[];o.push(...n),this.headers.set(r,o);break;case"d":let i=e.value;if(!i)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(i=>i.toString()),o=e.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(e,o)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var dh=class{encodeKey(e){return kD(e)}encodeValue(e){return kD(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function aO(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,i)),e.decodeValue(o.slice(i+1))],u=r.get(s)||[];u.push(a),r.set(s,u)}),r}var uO=/%(\d[a-f0-9])/gi,cO={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function kD(t){return encodeURIComponent(t).replace(uO,(e,r)=>cO[r]??e)}function $u(t){return`${t}`}var Kn=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new dh,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=aO(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],o=Array.isArray(n)?n.map($u):[$u(n)];this.map.set(r,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let o=e[n];Array.isArray(o)?o.forEach(i=>{r.push({param:n,value:i,op:"a"})}):r.push({param:n,value:o,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push($u(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],o=n.indexOf($u(e.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}},jD=class{constructor(e){this.defaultValue=e}},fh=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function lO(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function VD(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function UD(t){return typeof Blob<"u"&&t instanceof Blob}function BD(t){return typeof FormData<"u"&&t instanceof FormData}function dO(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Zi=class t{constructor(e,r,n,o){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let i;if(lO(this.method)||o?(this.body=n!==void 0?n:null,i=o):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new vn,this.context??=new fh,!this.params)this.params=new Kn,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),u=a===-1?"?":af.set(h,e.setHeaders[h]),c)),e.setParams&&(l=Object.keys(e.setParams).reduce((f,h)=>f.set(h,e.setParams[h]),l)),new t(r,n,s,{params:l,headers:c,context:d,reportProgress:u,responseType:o,withCredentials:a,transferCache:i})}},Yn=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Yn||{}),Yi=class{constructor(e,r=200,n="OK"){this.headers=e.headers||new vn,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},zu=class t extends Yi{constructor(e={}){super(e),this.type=Yn.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Qi=class t extends Yi{constructor(e={}){super(e),this.type=Yn.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Zn=class extends Yi{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},GD=200,fO=204;function lh(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var hO=(()=>{let e=class e{constructor(n){this.handler=n}request(n,o,i={}){let s;if(n instanceof Zi)s=n;else{let c;i.headers instanceof vn?c=i.headers:c=new vn(i.headers);let l;i.params&&(i.params instanceof Kn?l=i.params:l=new Kn({fromObject:i.params})),s=new Zi(n,o,i.body!==void 0?i.body:null,{headers:c,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let a=I(s).pipe(kt(c=>this.handler.handle(c)));if(n instanceof Zi||i.observe==="events")return a;let u=a.pipe(ke(c=>c instanceof Qi));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return u.pipe(N(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return u.pipe(N(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return u.pipe(N(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return u.pipe(N(c=>c.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(n,o={}){return this.request("DELETE",n,o)}get(n,o={}){return this.request("GET",n,o)}head(n,o={}){return this.request("HEAD",n,o)}jsonp(n,o){return this.request("JSONP",n,{params:new Kn().append(o,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,o={}){return this.request("OPTIONS",n,o)}patch(n,o,i={}){return this.request("PATCH",n,lh(i,o))}post(n,o,i={}){return this.request("POST",n,lh(i,o))}put(n,o,i={}){return this.request("PUT",n,lh(i,o))}};e.\u0275fac=function(o){return new(o||e)(x(Ki))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),pO=/^\)\]\}',?\n/,gO="X-Request-URL";function $D(t){if(t.url)return t.url;let e=gO.toLocaleLowerCase();return t.headers.get(e)}var mO=(()=>{let e=class e{constructor(){this.fetchImpl=y(hh,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=y(pe)}handle(n){return new P(o=>{let i=new AbortController;return this.doRequest(n,i.signal,o).then(ph,s=>o.error(new Zn({error:s}))),()=>i.abort()})}doRequest(n,o,i){return Us(this,null,function*(){let s=this.createRequestInit(n),a;try{let p=this.fetchImpl(n.urlWithParams,D({signal:o},s));vO(p),i.next({type:Yn.Sent}),a=yield p}catch(p){i.error(new Zn({error:p,status:p.status??0,statusText:p.statusText,url:n.urlWithParams,headers:p.headers}));return}let u=new vn(a.headers),c=a.statusText,l=$D(a)??n.urlWithParams,d=a.status,f=null;if(n.reportProgress&&i.next(new zu({headers:u,status:d,statusText:c,url:l})),a.body){let p=a.headers.get("content-length"),g=[],m=a.body.getReader(),v=0,A,z,U=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>Us(this,null,function*(){for(;;){let{done:De,value:lt}=yield m.read();if(De)break;if(g.push(lt),v+=lt.length,n.reportProgress){z=n.responseType==="text"?(z??"")+(A??=new TextDecoder).decode(lt,{stream:!0}):void 0;let Zr=()=>i.next({type:Yn.DownloadProgress,total:p?+p:void 0,loaded:v,partialText:z});U?U.run(Zr):Zr()}}}));let me=this.concatChunks(g,v);try{let De=a.headers.get("Content-Type")??"";f=this.parseBody(n,me,De)}catch(De){i.error(new Zn({error:De,headers:new vn(a.headers),status:a.status,statusText:a.statusText,url:$D(a)??n.urlWithParams}));return}}d===0&&(d=f?GD:0),d>=200&&d<300?(i.next(new Qi({body:f,headers:u,status:d,statusText:c,url:l})),i.complete()):i.error(new Zn({error:f,headers:u,status:d,statusText:c,url:l}))})}parseBody(n,o,i){switch(n.responseType){case"json":let s=new TextDecoder().decode(o).replace(pO,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(o);case"blob":return new Blob([o],{type:i});case"arraybuffer":return o.buffer}}createRequestInit(n){let o={},i=n.withCredentials?"include":void 0;if(n.headers.forEach((s,a)=>o[s]=a.join(",")),o.Accept??="application/json, text/plain, */*",!o["Content-Type"]){let s=n.detectContentTypeHeader();s!==null&&(o["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:o,credentials:i}}concatChunks(n,o){let i=new Uint8Array(o),s=0;for(let a of n)i.set(a,s),s+=a.length;return i}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),hh=class{};function ph(){}function vO(t){t.then(ph,ph)}function yO(t,e){return e(t)}function DO(t,e,r){return(n,o)=>Tt(r,()=>e(n,i=>t(i,o)))}var gh=new E(""),wO=new E(""),bO=new E("",{providedIn:"root",factory:()=>!0});var HD=(()=>{let e=class e extends Ki{constructor(n,o){super(),this.backend=n,this.injector=o,this.chain=null,this.pendingTasks=y(Hn),this.contributeToStability=y(bO)}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(gh),...this.injector.get(wO,[])]));this.chain=o.reduceRight((i,s)=>DO(i,s,this.injector),yO)}if(this.contributeToStability){let o=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(Rn(()=>this.pendingTasks.remove(o)))}else return this.chain(n,o=>this.backend.handle(o))}};e.\u0275fac=function(o){return new(o||e)(x(Hu),x(Qe))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})();var CO=/^\)\]\}',?\n/;function EO(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var zD=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new C(-2800,!1);let o=this.xhrFactory;return(o.\u0275loadImpl?te(o.\u0275loadImpl()):I(null)).pipe(be(()=>new P(s=>{let a=o.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((m,v)=>a.setRequestHeader(m,v.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let m=n.detectContentTypeHeader();m!==null&&a.setRequestHeader("Content-Type",m)}if(n.responseType){let m=n.responseType.toLowerCase();a.responseType=m!=="json"?m:"text"}let u=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let m=a.statusText||"OK",v=new vn(a.getAllResponseHeaders()),A=EO(a)||n.url;return c=new zu({headers:v,status:a.status,statusText:m,url:A}),c},d=()=>{let{headers:m,status:v,statusText:A,url:z}=l(),U=null;v!==fO&&(U=typeof a.response>"u"?a.responseText:a.response),v===0&&(v=U?GD:0);let me=v>=200&&v<300;if(n.responseType==="json"&&typeof U=="string"){let De=U;U=U.replace(CO,"");try{U=U!==""?JSON.parse(U):null}catch(lt){U=De,me&&(me=!1,U={error:lt,text:U})}}me?(s.next(new Qi({body:U,headers:m,status:v,statusText:A,url:z||void 0})),s.complete()):s.error(new Zn({error:U,headers:m,status:v,statusText:A,url:z||void 0}))},f=m=>{let{url:v}=l(),A=new Zn({error:m,status:a.status||0,statusText:a.statusText||"Unknown Error",url:v||void 0});s.error(A)},h=!1,p=m=>{h||(s.next(l()),h=!0);let v={type:Yn.DownloadProgress,loaded:m.loaded};m.lengthComputable&&(v.total=m.total),n.responseType==="text"&&a.responseText&&(v.partialText=a.responseText),s.next(v)},g=m=>{let v={type:Yn.UploadProgress,loaded:m.loaded};m.lengthComputable&&(v.total=m.total),s.next(v)};return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),n.reportProgress&&(a.addEventListener("progress",p),u!==null&&a.upload&&a.upload.addEventListener("progress",g)),a.send(u),s.next({type:Yn.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",f),n.reportProgress&&(a.removeEventListener("progress",p),u!==null&&a.upload&&a.upload.removeEventListener("progress",g)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(o){return new(o||e)(x(So))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),WD=new E(""),IO="XSRF-TOKEN",xO=new E("",{providedIn:"root",factory:()=>IO}),_O="X-XSRF-TOKEN",MO=new E("",{providedIn:"root",factory:()=>_O}),Gu=class{},TO=(()=>{let e=class e{constructor(n,o,i){this.doc=n,this.platform=o,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Uu(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(o){return new(o||e)(x(Ue),x(cn),x(xO))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})();function SO(t,e){let r=t.url.toLowerCase();if(!y(WD)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=y(Gu).getToken(),o=y(MO);return n!=null&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,n)})),e(t)}var qD=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(qD||{});function AO(t,e){return{\u0275kind:t,\u0275providers:e}}function b9(...t){let e=[hO,zD,HD,{provide:Ki,useExisting:HD},{provide:Hu,useFactory:()=>y(mO,{optional:!0})??y(zD)},{provide:gh,useValue:SO,multi:!0},{provide:WD,useValue:!0},{provide:Gu,useClass:TO}];for(let r of t)e.push(...r.\u0275providers);return ji(e)}function C9(t){return AO(qD.Interceptors,t.map(e=>({provide:gh,useValue:e,multi:!0})))}var yh=class extends ku{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Dh=class t extends yh{static makeCurrent(){TD(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=NO();return r==null?null:OO(r)}resetBaseElement(){Ji=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Uu(document.cookie,e)}},Ji=null;function NO(){return Ji=Ji||document.querySelector("base"),Ji?Ji.getAttribute("href"):null}function OO(t){return new URL(t,document.baseURI).pathname}var RO=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),wh=new E(""),QD=(()=>{let e=class e{constructor(n,o){this._zone=o,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,o,i){return this._findPluginFor(o).addEventListener(n,o,i)}getZone(){return this._zone}_findPluginFor(n){let o=this._eventNameToPlugin.get(n);if(o)return o;if(o=this._plugins.find(s=>s.supports(n)),!o)throw new C(5101,!1);return this._eventNameToPlugin.set(n,o),o}};e.\u0275fac=function(o){return new(o||e)(x(wh),x(pe))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),Wu=class{constructor(e){this._doc=e}},mh="ng-app-id",JD=(()=>{let e=class e{constructor(n,o,i,s={}){this.doc=n,this.appId=o,this.nonce=i,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Bu(s),this.resetHostNodes()}addStyles(n){for(let o of n)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(n){for(let o of n)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(o=>o.remove()),n.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let o of this.getAllStyles())this.addStyleToHost(n,o)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let o of this.hostNodes)this.addStyleToHost(o,n)}onStyleRemoved(n){let o=this.styleRef;o.get(n)?.elements?.forEach(i=>i.remove()),o.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${mh}="${this.appId}"]`);if(n?.length){let o=new Map;return n.forEach(i=>{i.textContent!=null&&o.set(i.textContent,i)}),o}return null}changeUsageCount(n,o){let i=this.styleRef;if(i.has(n)){let s=i.get(n);return s.usage+=o,s.usage}return i.set(n,{usage:o,elements:[]}),o}getStyleElement(n,o){let i=this.styleNodesInDOM,s=i?.get(o);if(s?.parentNode===n)return i.delete(o),s.removeAttribute(mh),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(mh,this.appId),n.appendChild(a),a}}addStyleToHost(n,o){let i=this.getStyleElement(n,o),s=this.styleRef,a=s.get(o)?.elements;a?a.push(i):s.set(o,{elements:[i],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(o){return new(o||e)(x(Ue),x(mf),x(yf,8),x(cn))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),vh={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/Math/MathML"},Ch=/%COMP%/g,XD="%COMP%",PO=`_nghost-${XD}`,FO=`_ngcontent-${XD}`,LO=!0,kO=new E("",{providedIn:"root",factory:()=>LO});function jO(t){return FO.replace(Ch,t)}function VO(t){return PO.replace(Ch,t)}function ew(t,e){return e.map(r=>r.replace(Ch,t))}var ZD=(()=>{let e=class e{constructor(n,o,i,s,a,u,c,l=null){this.eventManager=n,this.sharedStylesHost=o,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=u,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Bu(u),this.defaultRenderer=new Xi(n,a,c,this.platformIsServer)}createRenderer(n,o){if(!n||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===Bt.ShadowDom&&(o=$(D({},o),{encapsulation:Bt.Emulated}));let i=this.getOrCreateRenderer(n,o);return i instanceof qu?i.applyToHost(n):i instanceof es&&i.applyStyles(),i}getOrCreateRenderer(n,o){let i=this.rendererByCompId,s=i.get(o.id);if(!s){let a=this.doc,u=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(o.encapsulation){case Bt.Emulated:s=new qu(c,l,o,this.appId,d,a,u,f);break;case Bt.ShadowDom:return new bh(c,l,n,o,a,u,this.nonce,f);default:s=new es(c,l,o,d,a,u,f);break}i.set(o.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(o){return new(o||e)(x(QD),x(JD),x(mf),x(kO),x(Ue),x(cn),x(pe),x(yf))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),Xi=class{constructor(e,r,n,o){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(vh[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(KD(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(KD(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new C(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,o){if(o){r=o+":"+r;let i=vh[o];i?e.setAttributeNS(i,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let o=vh[n];o?e.removeAttributeNS(o,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,o){o&(zt.DashCase|zt.Important)?e.style.setProperty(r,n,o&zt.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&zt.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=mn().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function KD(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var bh=class extends Xi{constructor(e,r,n,o,i,s,a,u){super(e,i,s,u),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=ew(o.id,o.styles);for(let l of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},es=class extends Xi{constructor(e,r,n,o,i,s,a,u){super(e,i,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=o,this.styles=u?ew(u,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},qu=class extends es{constructor(e,r,n,o,i,s,a,u){let c=o+"-"+n.id;super(e,r,n,i,s,a,u,c),this.contentAttr=jO(c),this.hostAttr=VO(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},UO=(()=>{let e=class e extends Wu{constructor(n){super(n)}supports(n){return!0}addEventListener(n,o,i){return n.addEventListener(o,i,!1),()=>this.removeEventListener(n,o,i)}removeEventListener(n,o,i){return n.removeEventListener(o,i)}};e.\u0275fac=function(o){return new(o||e)(x(Ue))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),YD=["alt","control","meta","shift"],BO={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},$O={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},HO=(()=>{let e=class e extends Wu{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,o,i){let s=e.parseEventName(o),a=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>mn().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let o=n.toLowerCase().split("."),i=o.shift();if(o.length===0||!(i==="keydown"||i==="keyup"))return null;let s=e._normalizeKey(o.pop()),a="",u=o.indexOf("code");if(u>-1&&(o.splice(u,1),a="code."),YD.forEach(l=>{let d=o.indexOf(l);d>-1&&(o.splice(d,1),a+=l+".")}),a+=s,o.length!=0||s.length===0)return null;let c={};return c.domEventName=i,c.fullKey=a,c}static matchEventFullKeyCode(n,o){let i=BO[n.key]||n.key,s="";return o.indexOf("code.")>-1&&(i=n.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),YD.forEach(a=>{if(a!==i){let u=$O[a];u(n)&&(s+=a+".")}}),s+=i,s===o)}static eventCallback(n,o,i){return s=>{e.matchEventFullKeyCode(s,n)&&i.runGuarded(()=>o(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(o){return new(o||e)(x(Ue))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})();function $9(t,e){return DD(D({rootComponent:t},zO(e)))}function zO(t){return{appProviders:[...KO,...t?.providers??[]],platformProviders:ZO}}function GO(){Dh.makeCurrent()}function WO(){return new on}function qO(){return Vv(document),document}var ZO=[{provide:cn,useValue:ch},{provide:vf,useValue:GO,multi:!0},{provide:Ue,useFactory:qO,deps:[]}];var KO=[{provide:ou,useValue:"root"},{provide:on,useFactory:WO,deps:[]},{provide:wh,useClass:UO,multi:!0,deps:[Ue,pe,cn]},{provide:wh,useClass:HO,multi:!0,deps:[Ue]},ZD,JD,QD,{provide:bo,useExisting:ZD},{provide:So,useClass:RO,deps:[]},[]];var tw=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(o){return new(o||e)(x(Ue))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var YO=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:function(o){let i=null;return o?i=new(o||e):i=x(QO),i},providedIn:"root"});let t=e;return t})(),QO=(()=>{let e=class e extends YO{constructor(n){super(),this._doc=n}sanitize(n,o){if(o==null)return null;switch(n){case Wt.NONE:return o;case Wt.HTML:return zn(o,"HTML")?At(o):Qv(this._doc,String(o)).toString();case Wt.STYLE:return zn(o,"Style")?At(o):o;case Wt.SCRIPT:if(zn(o,"Script"))return At(o);throw new C(5200,!1);case Wt.URL:return zn(o,"URL")?At(o):gu(String(o));case Wt.RESOURCE_URL:if(zn(o,"ResourceURL"))return At(o);throw new C(5201,!1);default:throw new C(5202,!1)}}bypassSecurityTrustHtml(n){return Bv(n)}bypassSecurityTrustStyle(n){return $v(n)}bypassSecurityTrustScript(n){return Hv(n)}bypassSecurityTrustUrl(n){return zv(n)}bypassSecurityTrustResourceUrl(n){return Gv(n)}};e.\u0275fac=function(o){return new(o||e)(x(Ue))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var L="primary",vs=Symbol("RouteTitle"),Mh=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function Fo(t){return new Mh(t)}function XO(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[i]===o)}else return t===e}function dw(t){return t.length>0?t[t.length-1]:null}function Jn(t){return bt(t)?t:Gn(t)?te(Promise.resolve(t)):I(t)}var tR={exact:hw,subset:pw},fw={exact:nR,subset:rR,ignored:()=>!0};function nw(t,e,r){return tR[r.paths](t.root,e.root,r.matrixParams)&&fw[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function nR(t,e){return qt(t,e)}function hw(t,e,r){if(!kr(t.segments,e.segments)||!Yu(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!hw(t.children[n],e.children[n],r))return!1;return!0}function rR(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>lw(t[r],e[r]))}function pw(t,e,r){return gw(t,e,e.segments,r)}function gw(t,e,r,n){if(t.segments.length>r.length){let o=t.segments.slice(0,r.length);return!(!kr(o,r)||e.hasChildren()||!Yu(o,r,n))}else if(t.segments.length===r.length){if(!kr(t.segments,r)||!Yu(t.segments,r,n))return!1;for(let o in e.children)if(!t.children[o]||!pw(t.children[o],e.children[o],n))return!1;return!0}else{let o=r.slice(0,t.segments.length),i=r.slice(t.segments.length);return!kr(t.segments,o)||!Yu(t.segments,o,n)||!t.children[L]?!1:gw(t.children[L],e,i,n)}}function Yu(t,e,r){return e.every((n,o)=>fw[r](t[o].parameters,n.parameters))}var Qn=class{constructor(e=new K([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Fo(this.queryParams),this._queryParamMap}toString(){return sR.serialize(this)}},K=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Qu(this)}},Lr=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=Fo(this.parameters),this._parameterMap}toString(){return vw(this)}};function oR(t,e){return kr(t,e)&&t.every((r,n)=>qt(r.parameters,e[n].parameters))}function kr(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function iR(t,e){let r=[];return Object.entries(t.children).forEach(([n,o])=>{n===L&&(r=r.concat(e(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==L&&(r=r.concat(e(o,n)))}),r}var ep=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:()=>new as,providedIn:"root"});let t=e;return t})(),as=class{parse(e){let r=new Ah(e);return new Qn(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${ts(e.root,!0)}`,n=cR(e.queryParams),o=typeof e.fragment=="string"?`#${aR(e.fragment)}`:"";return`${r}${n}${o}`}},sR=new as;function Qu(t){return t.segments.map(e=>vw(e)).join("/")}function ts(t,e){if(!t.hasChildren())return Qu(t);if(e){let r=t.children[L]?ts(t.children[L],!1):"",n=[];return Object.entries(t.children).forEach(([o,i])=>{o!==L&&n.push(`${o}:${ts(i,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=iR(t,(n,o)=>o===L?[ts(t.children[L],!1)]:[`${o}:${ts(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[L]!=null?`${Qu(t)}/${r[0]}`:`${Qu(t)}/(${r.join("//")})`}}function mw(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zu(t){return mw(t).replace(/%3B/gi,";")}function aR(t){return encodeURI(t)}function Sh(t){return mw(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ju(t){return decodeURIComponent(t)}function rw(t){return Ju(t.replace(/\+/g,"%20"))}function vw(t){return`${Sh(t.path)}${uR(t.parameters)}`}function uR(t){return Object.entries(t).map(([e,r])=>`;${Sh(e)}=${Sh(r)}`).join("")}function cR(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(o=>`${Zu(r)}=${Zu(o)}`).join("&"):`${Zu(r)}=${Zu(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var lR=/^[^\/()?;#]+/;function Eh(t){let e=t.match(lR);return e?e[0]:""}var dR=/^[^\/()?;=#]+/;function fR(t){let e=t.match(dR);return e?e[0]:""}var hR=/^[^=?&#]+/;function pR(t){let e=t.match(hR);return e?e[0]:""}var gR=/^[^&#]+/;function mR(t){let e=t.match(gR);return e?e[0]:""}var Ah=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new K([],{}):new K([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[L]=new K(e,r)),n}parseSegment(){let e=Eh(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(e),new Lr(Ju(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=fR(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let o=Eh(this.remaining);o&&(n=o,this.capture(n))}e[Ju(r)]=Ju(n)}parseQueryParam(e){let r=pR(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=mR(this.remaining);s&&(n=s,this.capture(n))}let o=rw(r),i=rw(n);if(e.hasOwnProperty(o)){let s=e[o];Array.isArray(s)||(s=[s],e[o]=s),s.push(i)}else e[o]=i}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Eh(this.remaining),o=this.remaining[n.length];if(o!=="/"&&o!==")"&&o!==";")throw new C(4010,!1);let i;n.indexOf(":")>-1?(i=n.slice(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=L);let s=this.parseChildren();r[i]=Object.keys(s).length===1?s[L]:new K([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new C(4011,!1)}};function yw(t){return t.segments.length>0?new K([],{[L]:t}):t}function Dw(t){let e={};for(let[n,o]of Object.entries(t.children)){let i=Dw(o);if(n===L&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))e[s]=a;else(i.segments.length>0||i.hasChildren())&&(e[n]=i)}let r=new K(t.segments,e);return vR(r)}function vR(t){if(t.numberOfChildren===1&&t.children[L]){let e=t.children[L];return new K(t.segments.concat(e.segments),e.children)}return t}function us(t){return t instanceof Qn}function yR(t,e,r=null,n=null){let o=ww(t);return bw(o,e,r,n)}function ww(t){let e;function r(i){let s={};for(let u of i.children){let c=r(u);s[u.outlet]=c}let a=new K(i.url,s);return i===t&&(e=a),a}let n=r(t.root),o=yw(n);return e??o}function bw(t,e,r,n){let o=t;for(;o.parent;)o=o.parent;if(e.length===0)return Ih(o,o,o,r,n);let i=DR(e);if(i.toRoot())return Ih(o,o,new K([],{}),r,n);let s=wR(i,o,t),a=s.processChildren?os(s.segmentGroup,s.index,i.commands):Ew(s.segmentGroup,s.index,i.commands);return Ih(o,s.segmentGroup,a,r,n)}function Xu(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function cs(t){return typeof t=="object"&&t!=null&&t.outlets}function Ih(t,e,r,n,o){let i={};n&&Object.entries(n).forEach(([u,c])=>{i[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;t===e?s=r:s=Cw(t,e,r);let a=yw(Dw(s));return new Qn(a,i,o)}function Cw(t,e,r){let n={};return Object.entries(t.children).forEach(([o,i])=>{i===e?n[o]=r:n[o]=Cw(i,e,r)}),new K(t.segments,n)}var ec=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&Xu(n[0]))throw new C(4003,!1);let o=n.find(cs);if(o&&o!==dw(n))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function DR(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new ec(!0,0,t);let e=0,r=!1,n=t.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?r=!0:a===".."?e++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new ec(r,e,n)}var Oo=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function wR(t,e,r){if(t.isAbsolute)return new Oo(e,!0,0);if(!r)return new Oo(e,!1,NaN);if(r.parent===null)return new Oo(r,!0,0);let n=Xu(t.commands[0])?0:1,o=r.segments.length-1+n;return bR(r,o,t.numberOfDoubleDots)}function bR(t,e,r){let n=t,o=e,i=r;for(;i>o;){if(i-=o,n=n.parent,!n)throw new C(4005,!1);o=n.segments.length}return new Oo(n,!1,o-i)}function CR(t){return cs(t[0])?t[0].outlets:{[L]:t}}function Ew(t,e,r){if(t??=new K([],{}),t.segments.length===0&&t.hasChildren())return os(t,e,r);let n=ER(t,e,r),o=r.slice(n.commandIndex);if(n.match&&n.pathIndexi!==L)&&t.children[L]&&t.numberOfChildren===1&&t.children[L].segments.length===0){let i=os(t.children[L],e,r);return new K(t.segments,i.children)}return Object.entries(n).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=Ew(t.children[i],e,s))}),Object.entries(t.children).forEach(([i,s])=>{n[i]===void 0&&(o[i]=s)}),new K(t.segments,o)}}function ER(t,e,r){let n=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};for(;o=r.length)return i;let s=t.segments[o],a=r[n];if(cs(a))break;let u=`${a}`,c=n0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!iw(u,c,s))return i;n+=2}else{if(!iw(u,{},s))return i;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function Nh(t,e,r){let n=t.segments.slice(0,e),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=Nh(new K([],{}),0,n))}),e}function ow(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function iw(t,e,r){return t==r.path&&qt(e,r.parameters)}var is="imperative",Le=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Le||{}),gt=class{constructor(e,r){this.id=e,this.url=r}},ls=class extends gt{constructor(e,r,n="imperative",o=null){super(e,r),this.type=Le.NavigationStart,this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Dn=class extends gt{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=Le.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},ut=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(ut||{}),Oh=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Oh||{}),yn=class extends gt{constructor(e,r,n,o){super(e,r),this.reason=n,this.code=o,this.type=Le.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},jr=class extends gt{constructor(e,r,n,o){super(e,r),this.reason=n,this.code=o,this.type=Le.NavigationSkipped}},ds=class extends gt{constructor(e,r,n,o){super(e,r),this.error=n,this.target=o,this.type=Le.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},tc=class extends gt{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=Le.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Rh=class extends gt{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=Le.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ph=class extends gt{constructor(e,r,n,o,i){super(e,r),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=i,this.type=Le.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Fh=class extends gt{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=Le.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Lh=class extends gt{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=Le.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},kh=class{constructor(e){this.route=e,this.type=Le.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},jh=class{constructor(e){this.route=e,this.type=Le.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Vh=class{constructor(e){this.snapshot=e,this.type=Le.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Uh=class{constructor(e){this.snapshot=e,this.type=Le.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Bh=class{constructor(e){this.snapshot=e,this.type=Le.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},$h=class{constructor(e){this.snapshot=e,this.type=Le.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var fs=class{},Lo=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};var Hh=class{constructor(e){this.injector=e,this.outlet=null,this.route=null,this.children=new uc(this.injector),this.attachRef=null}},uc=(()=>{let e=class e{constructor(n){this.parentInjector=n,this.contexts=new Map}onChildOutletCreated(n,o){let i=this.getOrCreateContext(n);i.outlet=o,this.contexts.set(n,i)}onChildOutletDestroyed(n){let o=this.getContext(n);o&&(o.outlet=null,o.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let o=this.getContext(n);return o||(o=new Hh(this.parentInjector),this.contexts.set(n,o)),o}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(o){return new(o||e)(x(Qe))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),nc=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=zh(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=zh(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=Gh(e,this._root);return r.length<2?[]:r[r.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return Gh(e,this._root).map(r=>r.value)}};function zh(t,e){if(t===e.value)return e;for(let r of e.children){let n=zh(t,r);if(n)return n}return null}function Gh(t,e){if(t===e.value)return[e];for(let r of e.children){let n=Gh(t,r);if(n.length)return n.unshift(e),n}return[]}var at=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function No(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var rc=class extends nc{constructor(e,r){super(e),this.snapshot=r,tp(this,e)}toString(){return this.snapshot.toString()}};function Iw(t){let e=xR(t),r=new Se([new Lr("",{})]),n=new Se({}),o=new Se({}),i=new Se({}),s=new Se(""),a=new Vr(r,n,i,s,o,L,t,e.root);return a.snapshot=e.root,new rc(new at(a,[]),e)}function xR(t){let e={},r={},n={},o="",i=new Ro([],e,n,o,r,L,t,null,{});return new ic("",new at(i,[]))}var Vr=class{constructor(e,r,n,o,i,s,a,u){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(N(c=>c[vs]))??I(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(N(e=>Fo(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(N(e=>Fo(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function oc(t,e,r="emptyOnly"){let n,{routeConfig:o}=t;return e!==null&&(r==="always"||o?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:D(D({},e.params),t.params),data:D(D({},e.data),t.data),resolve:D(D(D(D({},t.data),e.data),o?.data),t._resolvedData)}:n={params:D({},t.params),data:D({},t.data),resolve:D(D({},t.data),t._resolvedData??{})},o&&_w(o)&&(n.resolve[vs]=o.title),n}var Ro=class{get title(){return this.data?.[vs]}constructor(e,r,n,o,i,s,a,u,c){this.url=e,this.params=r,this.queryParams=n,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}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??=Fo(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Fo(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},ic=class extends nc{constructor(e,r){super(r),this.url=e,tp(this,r)}toString(){return xw(this._root)}};function tp(t,e){e.value._routerState=t,e.children.forEach(r=>tp(t,r))}function xw(t){let e=t.children.length>0?` { ${t.children.map(xw).join(", ")} } `:"";return`${t.value}${e}`}function xh(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,qt(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),qt(e.params,r.params)||t.paramsSubject.next(r.params),eR(e.url,r.url)||t.urlSubject.next(r.url),qt(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Wh(t,e){let r=qt(t.params,e.params)&&oR(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||Wh(t.parent,e.parent))}function _w(t){return typeof t.title=="string"||t.title===null}var _R=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=L,this.activateEvents=new G,this.deactivateEvents=new G,this.attachEvents=new G,this.detachEvents=new G,this.parentContexts=y(uc),this.location=y(dn),this.changeDetector=y(Nt),this.inputBinder=y(np,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:o,previousValue:i}=n.name;if(o)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,o){this.activated=n,this._activatedRoute=o,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,o){if(this.isActivated)throw new C(4013,!1);this._activatedRoute=n;let i=this.location,a=n.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,c=new qh(n,u,i.injector);this.activated=i.createComponent(a,{index:i.length,injector:c,environmentInjector:o}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=H({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[nt]});let t=e;return t})(),qh=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===Vr?this.route:e===uc?this.childContexts:this.parent.get(e,r)}},np=new E("");function MR(t,e,r){let n=hs(t,e._root,r?r._root:void 0);return new rc(n,e)}function hs(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let o=TR(t,e,r);return new at(n,o)}else{if(t.shouldAttach(e.value)){let i=t.retrieve(e.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>hs(t,a)),s}}let n=SR(e.value),o=e.children.map(i=>hs(t,i));return new at(n,o)}}function TR(t,e,r){return e.children.map(n=>{for(let o of r.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return hs(t,n,o);return hs(t,n)})}function SR(t){return new Vr(new Se(t.url),new Se(t.params),new Se(t.queryParams),new Se(t.fragment),new Se(t.data),t.outlet,t.component,t)}var ps=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},Mw="ngNavigationCancelingError";function sc(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=us(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,o=Tw(!1,ut.Redirect);return o.url=r,o.navigationBehaviorOptions=n,o}function Tw(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[Mw]=!0,r.cancellationCode=e,r}function AR(t){return Sw(t)&&us(t.url)}function Sw(t){return!!t&&t[Mw]}var NR=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=Um({type:e,selectors:[["ng-component"]],standalone:!0,features:[dD],decls:1,vars:0,template:function(o,i){o&1&&Vf(0,"router-outlet")},dependencies:[_R],encapsulation:2});let t=e;return t})();function OR(t,e){return t.providers&&!t._injector&&(t._injector=Ff(t.providers,e,`Route: ${t.path}`)),t._injector??e}function rp(t){let e=t.children&&t.children.map(rp),r=e?$(D({},t),{children:e}):D({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==L&&(r.component=NR),r}function Rt(t){return t.outlet||L}function RR(t,e){let r=t.filter(n=>Rt(n)===e);return r.push(...t.filter(n=>Rt(n)!==e)),r}function ys(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var PR=(t,e,r,n)=>N(o=>(new Zh(e,o.targetRouterState,o.currentRouterState,r,n).activate(t),o)),Zh=class{constructor(e,r,n,o,i){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=i}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),xh(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let o=No(r);e.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],n),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,n)})}deactivateRoutes(e,r,n){let o=e.value,i=r?r.value:null;if(o===i)if(o.component){let s=n.getContext(o.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else i&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),o=n&&e.value.component?n.children:r,i=No(e);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),o=n&&e.value.component?n.children:r,i=No(e);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let o=No(r);e.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],n),this.forwardEvent(new $h(i.value.snapshot))}),e.children.length&&this.forwardEvent(new Uh(e.value.snapshot))}activateRoutes(e,r,n){let o=e.value,i=r?r.value:null;if(xh(o),o===i)if(o.component){let s=n.getOrCreateContext(o.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(o.component){let s=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),xh(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=ys(o.snapshot);s.attachRef=null,s.route=o,s.injector=a??s.injector,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}},ac=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Po=class{constructor(e,r){this.component=e,this.route=r}};function FR(t,e,r){let n=t._root,o=e?e._root:null;return ns(n,o,r,[n.value])}function LR(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function jo(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!_m(t)?t:e.get(t):n}function ns(t,e,r,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=No(e);return t.children.forEach(s=>{kR(s,i[s.value.outlet],r,n.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>ss(a,r.getContext(s),o)),o}function kR(t,e,r,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let u=jR(s,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new ac(n)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?ns(t,e,a?a.children:null,n,o):ns(t,e,r,n,o),u&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Po(a.outlet.component,s))}else s&&ss(e,a,o),o.canActivateChecks.push(new ac(n)),i.component?ns(t,null,a?a.children:null,n,o):ns(t,null,r,n,o);return o}function jR(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!kr(t.url,e.url);case"pathParamsOrQueryParamsChange":return!kr(t.url,e.url)||!qt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Wh(t,e)||!qt(t.queryParams,e.queryParams);case"paramsChange":default:return!Wh(t,e)}}function ss(t,e,r){let n=No(t),o=t.value;Object.entries(n).forEach(([i,s])=>{o.component?e?ss(s,e.children.getContext(i),r):ss(s,null,r):ss(s,e,r)}),o.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new Po(e.outlet.component,o)):r.canDeactivateChecks.push(new Po(null,o)):r.canDeactivateChecks.push(new Po(null,o))}function Ds(t){return typeof t=="function"}function VR(t){return typeof t=="boolean"}function UR(t){return t&&Ds(t.canLoad)}function BR(t){return t&&Ds(t.canActivate)}function $R(t){return t&&Ds(t.canActivateChild)}function HR(t){return t&&Ds(t.canDeactivate)}function zR(t){return t&&Ds(t.canMatch)}function Aw(t){return t instanceof Jt||t?.name==="EmptyError"}var Ku=Symbol("INITIAL_VALUE");function ko(){return be(t=>da(t.map(e=>e.pipe(xe(1),ga(Ku)))).pipe(N(e=>{for(let r of e)if(r!==!0){if(r===Ku)return Ku;if(r===!1||GR(r))return r}return!0}),ke(e=>e!==Ku),xe(1)))}function GR(t){return us(t)||t instanceof ps}function WR(t,e){return le(r=>{let{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=r;return s.length===0&&i.length===0?I($(D({},r),{guardsResult:!0})):qR(s,n,o,t).pipe(le(a=>a&&VR(a)?ZR(n,i,t,e):I(a)),N(a=>$(D({},r),{guardsResult:a})))})}function qR(t,e,r,n){return te(t).pipe(le(o=>XR(o.component,o.route,r,e,n)),jt(o=>o!==!0,!0))}function ZR(t,e,r,n){return te(e).pipe(kt(o=>tt(YR(o.route.parent,n),KR(o.route,n),JR(t,o.path,r),QR(t,o.route,r))),jt(o=>o!==!0,!0))}function KR(t,e){return t!==null&&e&&e(new Bh(t)),I(!0)}function YR(t,e){return t!==null&&e&&e(new Vh(t)),I(!0)}function QR(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return I(!0);let o=n.map(i=>Xt(()=>{let s=ys(e)??r,a=jo(i,s),u=BR(a)?a.canActivate(e,t):Tt(s,()=>a(e,t));return Jn(u).pipe(jt())}));return I(o).pipe(ko())}function JR(t,e,r){let n=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(s=>LR(s)).filter(s=>s!==null).map(s=>Xt(()=>{let a=s.guards.map(u=>{let c=ys(s.node)??r,l=jo(u,c),d=$R(l)?l.canActivateChild(n,t):Tt(c,()=>l(n,t));return Jn(d).pipe(jt())});return I(a).pipe(ko())}));return I(i).pipe(ko())}function XR(t,e,r,n,o){let i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!i||i.length===0)return I(!0);let s=i.map(a=>{let u=ys(e)??o,c=jo(a,u),l=HR(c)?c.canDeactivate(t,e,r,n):Tt(u,()=>c(t,e,r,n));return Jn(l).pipe(jt())});return I(s).pipe(ko())}function eP(t,e,r,n){let o=e.canLoad;if(o===void 0||o.length===0)return I(!0);let i=o.map(s=>{let a=jo(s,t),u=UR(a)?a.canLoad(e,r):Tt(t,()=>a(e,r));return Jn(u)});return I(i).pipe(ko(),Nw(n))}function Nw(t){return ml(Ce(e=>{if(typeof e!="boolean")throw sc(t,e)}),N(e=>e===!0))}function tP(t,e,r,n){let o=e.canMatch;if(!o||o.length===0)return I(!0);let i=o.map(s=>{let a=jo(s,t),u=zR(a)?a.canMatch(e,r):Tt(t,()=>a(e,r));return Jn(u)});return I(i).pipe(ko(),Nw(n))}var gs=class{constructor(e){this.segmentGroup=e||null}},ms=class extends Error{constructor(e){super(),this.urlTree=e}};function Ao(t){return Sn(new gs(t))}function nP(t){return Sn(new C(4e3,!1))}function rP(t){return Sn(Tw(!1,ut.GuardRejected))}var Kh=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],o=r.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return I(n);if(o.numberOfChildren>1||!o.children[L])return nP(`${e.redirectTo}`);o=o.children[L]}}applyRedirectCommands(e,r,n,o,i){if(typeof r!="string"){let a=r,{queryParams:u,fragment:c,routeConfig:l,url:d,outlet:f,params:h,data:p,title:g}=o,m=Tt(i,()=>a({params:h,data:p,queryParams:u,fragment:c,routeConfig:l,url:d,outlet:f,title:g}));if(m instanceof Qn)throw new ms(m);r=m}let s=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r[0]==="/")throw new ms(s);return s}applyRedirectCreateUrlTree(e,r,n,o){let i=this.createSegmentGroup(e,r.root,n,o);return new Qn(i,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);n[o]=r[a]}else n[o]=i}),n}createSegmentGroup(e,r,n,o){let i=this.createSegments(e,r.segments,n,o),s={};return Object.entries(r.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(e,u,n,o)}),new K(i,s)}createSegments(e,r,n,o){return r.map(i=>i.path[0]===":"?this.findPosParam(e,i,o):this.findOrReturn(i,n))}findPosParam(e,r,n){let o=n[r.path.substring(1)];if(!o)throw new C(4001,!1);return o}findOrReturn(e,r){let n=0;for(let o of r){if(o.path===e.path)return r.splice(n),o;n++}return e}},Yh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function oP(t,e,r,n,o){let i=op(t,e,r);return i.matched?(n=OR(e,n),tP(n,e,r,o).pipe(N(s=>s===!0?i:D({},Yh)))):I(i)}function op(t,e,r){if(e.path==="**")return iP(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?D({},Yh):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let o=(e.matcher||XO)(r,t,e);if(!o)return D({},Yh);let i={};Object.entries(o.posParams??{}).forEach(([a,u])=>{i[a]=u.path});let s=o.consumed.length>0?D(D({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:r.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function iP(t){return{matched:!0,parameters:t.length>0?dw(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function sw(t,e,r,n){return r.length>0&&uP(t,r,n)?{segmentGroup:new K(e,aP(n,new K(r,t.children))),slicedSegments:[]}:r.length===0&&cP(t,r,n)?{segmentGroup:new K(t.segments,sP(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new K(t.segments,t.children),slicedSegments:r}}function sP(t,e,r,n){let o={};for(let i of r)if(cc(t,e,i)&&!n[Rt(i)]){let s=new K([],{});o[Rt(i)]=s}return D(D({},n),o)}function aP(t,e){let r={};r[L]=e;for(let n of t)if(n.path===""&&Rt(n)!==L){let o=new K([],{});r[Rt(n)]=o}return r}function uP(t,e,r){return r.some(n=>cc(t,e,n)&&Rt(n)!==L)}function cP(t,e,r){return r.some(n=>cc(t,e,n))}function cc(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function lP(t,e,r,n){return Rt(t)!==n&&(n===L||!cc(e,r,t))?!1:op(e,t,r).matched}function dP(t,e,r){return e.length===0&&!t.children[r]}var Qh=class{};function fP(t,e,r,n,o,i,s="emptyOnly"){return new Jh(t,e,r,n,o,s,i).recognize()}var hP=31,Jh=class{constructor(e,r,n,o,i,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Kh(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new C(4002,`'${e.segmentGroup}'`)}recognize(){let e=sw(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(N(({children:r,rootSnapshot:n})=>{let o=new at(n,r),i=new ic("",o),s=yR(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(e){let r=new Ro([],Object.freeze({}),Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),L,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,L,r).pipe(N(n=>({children:n,rootSnapshot:r})),Nn(n=>{if(n instanceof ms)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof gs?this.noMatchError(n):n}))}processSegmentGroup(e,r,n,o,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n,i):this.processSegment(e,r,n,n.segments,o,!0,i).pipe(N(s=>s instanceof at?[s]:[]))}processChildren(e,r,n,o){let i=[];for(let s of Object.keys(n.children))s==="primary"?i.unshift(s):i.push(s);return te(i).pipe(kt(s=>{let a=n.children[s],u=RR(r,s);return this.processSegmentGroup(e,u,a,s,o)}),pa((s,a)=>(s.push(...a),s)),On(null),xl(),le(s=>{if(s===null)return Ao(n);let a=Ow(s);return pP(a),I(a)}))}processSegment(e,r,n,o,i,s,a){return te(r).pipe(kt(u=>this.processSegmentAgainstRoute(u._injector??e,r,u,n,o,i,s,a).pipe(Nn(c=>{if(c instanceof gs)return I(null);throw c}))),jt(u=>!!u),Nn(u=>{if(Aw(u))return dP(n,o,i)?I(new Qh):Ao(n);throw u}))}processSegmentAgainstRoute(e,r,n,o,i,s,a,u){return lP(n,o,i,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,o,n,i,s,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,o,r,n,i,s,u):Ao(o):Ao(o)}expandSegmentAgainstRouteUsingRedirect(e,r,n,o,i,s,a){let{matched:u,parameters:c,consumedSegments:l,positionalParamSegments:d,remainingSegments:f}=op(r,o,i);if(!u)return Ao(r);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>hP&&(this.allowRedirects=!1));let h=new Ro(i,c,Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,aw(o),Rt(o),o.component??o._loadedComponent??null,o,uw(o)),p=oc(h,a,this.paramsInheritanceStrategy);h.params=Object.freeze(p.params),h.data=Object.freeze(p.data);let g=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,h,e);return this.applyRedirects.lineralizeSegments(o,g).pipe(le(m=>this.processSegment(e,n,r,m.concat(f),s,!1,a)))}matchSegmentAgainstRoute(e,r,n,o,i,s){let a=oP(r,n,o,e,this.urlSerializer);return n.path==="**"&&(r.children={}),a.pipe(be(u=>u.matched?(e=n._injector??e,this.getChildConfig(e,n,o).pipe(be(({routes:c})=>{let l=n._loadedInjector??e,{parameters:d,consumedSegments:f,remainingSegments:h}=u,p=new Ro(f,d,Object.freeze(D({},this.urlTree.queryParams)),this.urlTree.fragment,aw(n),Rt(n),n.component??n._loadedComponent??null,n,uw(n)),g=oc(p,s,this.paramsInheritanceStrategy);p.params=Object.freeze(g.params),p.data=Object.freeze(g.data);let{segmentGroup:m,slicedSegments:v}=sw(r,f,h,c);if(v.length===0&&m.hasChildren())return this.processChildren(l,c,m,p).pipe(N(z=>new at(p,z)));if(c.length===0&&v.length===0)return I(new at(p,[]));let A=Rt(n)===i;return this.processSegment(l,c,m,v,A?L:i,!0,p).pipe(N(z=>new at(p,z instanceof at?[z]:[])))}))):Ao(r)))}getChildConfig(e,r,n){return r.children?I({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?I({routes:r._loadedRoutes,injector:r._loadedInjector}):eP(e,r,n,this.urlSerializer).pipe(le(o=>o?this.configLoader.loadChildren(e,r).pipe(Ce(i=>{r._loadedRoutes=i.routes,r._loadedInjector=i.injector})):rP(r))):I({routes:[],injector:e})}};function pP(t){t.sort((e,r)=>e.value.outlet===L?-1:r.value.outlet===L?1:e.value.outlet.localeCompare(r.value.outlet))}function gP(t){let e=t.value.routeConfig;return e&&e.path===""}function Ow(t){let e=[],r=new Set;for(let n of t){if(!gP(n)){e.push(n);continue}let o=e.find(i=>n.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...n.children),r.add(o)):e.push(n)}for(let n of r){let o=Ow(n.children);e.push(new at(n.value,o))}return e.filter(n=>!r.has(n))}function aw(t){return t.data||{}}function uw(t){return t.resolve||{}}function mP(t,e,r,n,o,i){return le(s=>fP(t,e,r,n,s.extractedUrl,o,i).pipe(N(({state:a,tree:u})=>$(D({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function vP(t,e){return le(r=>{let{targetSnapshot:n,guards:{canActivateChecks:o}}=r;if(!o.length)return I(r);let i=new Set(o.map(u=>u.route)),s=new Set;for(let u of i)if(!s.has(u))for(let c of Rw(u))s.add(c);let a=0;return te(s).pipe(kt(u=>i.has(u)?yP(u,n,t,e):(u.data=oc(u,u.parent,t).resolve,I(void 0))),Ce(()=>a++),io(1),le(u=>a===s.size?I(r):Ae))})}function Rw(t){let e=t.children.map(r=>Rw(r)).flat();return[t,...e]}function yP(t,e,r,n){let o=t.routeConfig,i=t._resolve;return o?.title!==void 0&&!_w(o)&&(i[vs]=o.title),DP(i,t,e,n).pipe(N(s=>(t._resolvedData=s,t.data=oc(t,t.parent,r).resolve,null)))}function DP(t,e,r,n){let o=Th(t);if(o.length===0)return I({});let i={};return te(o).pipe(le(s=>wP(t[s],e,r,n).pipe(jt(),Ce(a=>{if(a instanceof ps)throw sc(new as,a);i[s]=a}))),io(1),Ei(i),Nn(s=>Aw(s)?Ae:Sn(s)))}function wP(t,e,r,n){let o=ys(e)??n,i=jo(t,o),s=i.resolve?i.resolve(e,r):Tt(o,()=>i(e,r));return Jn(s)}function _h(t){return be(e=>{let r=t(e);return r?te(r).pipe(N(()=>e)):I(e)})}var Pw=(()=>{let e=class e{buildTitle(n){let o,i=n.root;for(;i!==void 0;)o=this.getResolvedTitleForRoute(i)??o,i=i.children.find(s=>s.outlet===L);return o}getResolvedTitleForRoute(n){return n.data[vs]}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:()=>y(bP),providedIn:"root"});let t=e;return t})(),bP=(()=>{let e=class e extends Pw{constructor(n){super(),this.title=n}updateTitle(n){let o=this.buildTitle(n);o!==void 0&&this.title.setTitle(o)}};e.\u0275fac=function(o){return new(o||e)(x(tw))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ip=new E("",{providedIn:"root",factory:()=>({})}),sp=new E(""),CP=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=y($f)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return I(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=Jn(n.loadComponent()).pipe(N(Fw),Ce(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Rn(()=>{this.componentLoaders.delete(n)})),i=new eo(o,()=>new se).pipe(Xr());return this.componentLoaders.set(n,i),i}loadChildren(n,o){if(this.childrenLoaders.get(o))return this.childrenLoaders.get(o);if(o._loadedRoutes)return I({routes:o._loadedRoutes,injector:o._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(o);let s=EP(o,this.compiler,n,this.onLoadEndListener).pipe(Rn(()=>{this.childrenLoaders.delete(o)})),a=new eo(s,()=>new se).pipe(Xr());return this.childrenLoaders.set(o,a),a}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function EP(t,e,r,n){return Jn(t.loadChildren()).pipe(N(Fw),le(o=>o instanceof Pi||Array.isArray(o)?I(o):te(e.compileModuleAsync(o))),N(o=>{n&&n(t);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(r).injector,s=i.get(sp,[],{optional:!0,self:!0}).flat()),{routes:s.map(rp),injector:i}}))}function IP(t){return t&&typeof t=="object"&&"default"in t}function Fw(t){return IP(t)?t.default:t}var ap=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:()=>y(xP),providedIn:"root"});let t=e;return t})(),xP=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,o){return n}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),_P=new E("");var MP=new E(""),TP=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new se,this.transitionAbortSubject=new se,this.configLoader=y(CP),this.environmentInjector=y(Qe),this.urlSerializer=y(ep),this.rootContexts=y(uc),this.location=y(qi),this.inputBindingEnabled=y(np,{optional:!0})!==null,this.titleStrategy=y(Pw),this.options=y(ip,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=y(ap),this.createViewTransition=y(_P,{optional:!0}),this.navigationErrorHandler=y(MP,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>I(void 0),this.rootComponentType=null;let n=i=>this.events.next(new kh(i)),o=i=>this.events.next(new jh(i));this.configLoader.onLoadEndListener=o,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let o=++this.navigationId;this.transitions?.next($(D(D({},this.transitions.value),n),{id:o}))}setupNavigations(n,o,i){return this.transitions=new Se({id:0,currentUrlTree:o,currentRawUrl:o,extractedUrl:this.urlHandlingStrategy.extract(o),urlAfterRedirects:this.urlHandlingStrategy.extract(o),rawUrl:o,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:is,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(ke(s=>s.id!==0),N(s=>$(D({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),be(s=>{let a=!1,u=!1;return I(s).pipe(be(c=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",ut.SupersededByNewNavigation),Ae;this.currentTransition=s,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?$(D({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let f="";return this.events.next(new jr(c.id,this.urlSerializer.serialize(c.rawUrl),f,Oh.IgnoredSameUrlNavigation)),c.resolve(!1),Ae}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return I(c).pipe(be(f=>{let h=this.transitions?.getValue();return this.events.next(new ls(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?Ae:Promise.resolve(f)}),mP(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),Ce(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=$(D({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let h=new tc(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:f,extractedUrl:h,source:p,restoredState:g,extras:m}=c,v=new ls(f,this.urlSerializer.serialize(h),p,g);this.events.next(v);let A=Iw(this.rootComponentType).snapshot;return this.currentTransition=s=$(D({},c),{targetSnapshot:A,urlAfterRedirects:h,extras:$(D({},m),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,I(s)}else{let f="";return this.events.next(new jr(c.id,this.urlSerializer.serialize(c.extractedUrl),f,Oh.IgnoredByUrlHandlingStrategy)),c.resolve(!1),Ae}}),Ce(c=>{let l=new Rh(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),N(c=>(this.currentTransition=s=$(D({},c),{guards:FR(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),WR(this.environmentInjector,c=>this.events.next(c)),Ce(c=>{if(s.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw sc(this.urlSerializer,c.guardsResult);let l=new Ph(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),ke(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",ut.GuardRejected),!1)),_h(c=>{if(c.guards.canActivateChecks.length)return I(c).pipe(Ce(l=>{let d=new Fh(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),be(l=>{let d=!1;return I(l).pipe(vP(this.paramsInheritanceStrategy,this.environmentInjector),Ce({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",ut.NoDataFromResolver)}}))}),Ce(l=>{let d=new Lh(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),_h(c=>{let l=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(Ce(h=>{d.component=h}),N(()=>{})));for(let h of d.children)f.push(...l(h));return f};return da(l(c.targetSnapshot.root)).pipe(On(null),xe(1))}),_h(()=>this.afterPreactivation()),be(()=>{let{currentSnapshot:c,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return d?te(d).pipe(N(()=>s)):I(s)}),N(c=>{let l=MR(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=$(D({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),Ce(()=>{this.events.next(new fs)}),PR(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),xe(1),Ce({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Dn(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),ma(this.transitionAbortSubject.pipe(Ce(c=>{throw c}))),Rn(()=>{!a&&!u&&this.cancelNavigationTransition(s,"",ut.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),Nn(c=>{if(u=!0,Sw(c))this.events.next(new yn(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),AR(c)?this.events.next(new Lo(c.url,c.navigationBehaviorOptions)):s.resolve(!1);else{let l=new ds(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0);try{let d=Tt(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(d instanceof ps){let{message:f,cancellationCode:h}=sc(this.urlSerializer,d);this.events.next(new yn(s.id,this.urlSerializer.serialize(s.extractedUrl),f,h)),this.events.next(new Lo(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(l);let f=n.errorHandler(c);s.resolve(!!f)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return Ae}))}))}cancelNavigationTransition(n,o,i){let s=new yn(n.id,this.urlSerializer.serialize(n.extractedUrl),o,i);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function SP(t){return t!==is}var AP=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:()=>y(NP),providedIn:"root"});let t=e;return t})(),Xh=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},NP=(()=>{let e=class e extends Xh{};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=Fe(e)))(i||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Lw=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:()=>y(OP),providedIn:"root"});let t=e;return t})(),OP=(()=>{let e=class e extends Lw{constructor(){super(...arguments),this.location=y(qi),this.urlSerializer=y(ep),this.options=y(ip,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=y(ap),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Qn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Iw(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(o=>{o.type==="popstate"&&n(o.url,o.state)})}handleRouterEvent(n,o){if(n instanceof ls)this.stateMemento=this.createStateMemento();else if(n instanceof jr)this.rawUrlTree=o.initialUrl;else if(n instanceof tc){if(this.urlUpdateStrategy==="eager"&&!o.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl);this.setBrowserUrl(i,o)}}else n instanceof fs?(this.currentUrlTree=o.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl),this.routerState=o.targetRouterState,this.urlUpdateStrategy==="deferred"&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o))):n instanceof yn&&(n.code===ut.GuardRejected||n.code===ut.NoDataFromResolver)?this.restoreHistory(o):n instanceof ds?this.restoreHistory(o,!0):n instanceof Dn&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,o){let i=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(i)||o.extras.replaceUrl){let s=this.browserPageId,a=D(D({},o.extras.state),this.generateNgRouterState(o.id,s));this.location.replaceState(i,"",a)}else{let s=D(D({},o.extras.state),this.generateNgRouterState(o.id,this.browserPageId+1));this.location.go(i,"",s)}}restoreHistory(n,o=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(o&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,o){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:o}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=Fe(e)))(i||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),rs=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(rs||{});function RP(t,e){t.events.pipe(ke(r=>r instanceof Dn||r instanceof yn||r instanceof ds||r instanceof jr),N(r=>r instanceof Dn||r instanceof jr?rs.COMPLETE:(r instanceof yn?r.code===ut.Redirect||r.code===ut.SupersededByNewNavigation:!1)?rs.REDIRECTING:rs.FAILED),ke(r=>r!==rs.REDIRECTING),xe(1)).subscribe(()=>{e()})}function PP(t){throw t}var FP={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},LP={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},lc=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=y(Mu),this.stateManager=y(Lw),this.options=y(ip,{optional:!0})||{},this.pendingTasks=y(Hn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=y(TP),this.urlSerializer=y(ep),this.location=y(qi),this.urlHandlingStrategy=y(ap),this._events=new se,this.errorHandler=this.options.errorHandler||PP,this.navigated=!1,this.routeReuseStrategy=y(AP),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=y(sp,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!y(np,{optional:!0}),this.eventsSubscription=new ie,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(o=>{try{let i=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(i!==null&&s!==null){if(this.stateManager.handleRouterEvent(o,s),o instanceof yn&&o.code!==ut.Redirect&&o.code!==ut.SupersededByNewNavigation)this.navigated=!0;else if(o instanceof Dn)this.navigated=!0;else if(o instanceof Lo){let a=o.navigationBehaviorOptions,u=this.urlHandlingStrategy.merge(o.url,i.currentRawUrl),c=D({info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||SP(i.source)},a);this.scheduleNavigation(u,is,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}jP(o)&&this._events.next(o)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),is,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,o)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",o)},0)})}navigateToSyncWithBrowser(n,o,i){let s={replaceUrl:!0},a=i?.navigationId?i:null;if(i){let c=D({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let u=this.parseUrl(n);this.scheduleNavigation(u,o,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(rp),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,o={}){let{relativeTo:i,queryParams:s,fragment:a,queryParamsHandling:u,preserveFragment:c}=o,l=c?this.currentUrlTree.fragment:a,d=null;switch(u){case"merge":d=D(D({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let h=i?i.snapshot:this.routerState.snapshot.root;f=ww(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),f=this.currentUrlTree.root}return bw(f,n,d,l??null)}navigateByUrl(n,o={skipLocationChange:!1}){let i=us(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,is,null,o)}navigate(n,o={skipLocationChange:!1}){return kP(n),this.navigateByUrl(this.createUrlTree(n,o),o)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,o){let i;if(o===!0?i=D({},FP):o===!1?i=D({},LP):i=o,us(n))return nw(this.currentUrlTree,n,i);let s=this.parseUrl(n);return nw(this.currentUrlTree,s,i)}removeEmptyProps(n){return Object.entries(n).reduce((o,[i,s])=>(s!=null&&(o[i]=s),o),{})}scheduleNavigation(n,o,i,s,a){if(this.disposed)return Promise.resolve(!1);let u,c,l;a?(u=a.resolve,c=a.reject,l=a.promise):l=new Promise((f,h)=>{u=f,c=h});let d=this.pendingTasks.add();return RP(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:o,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:u,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function kP(t){for(let e=0;e{let e=class e{constructor(n,o,i,s,a,u){this.router=n,this.route=o,this.tabIndexAttribute=i,this.renderer=s,this.el=a,this.locationStrategy=u,this.href=null,this.commands=null,this.onChanges=new se,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof Dn&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,o,i,s,a){let u=this.urlTree;if(u===null||this.isAnchorElement&&(n!==0||o||i||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(u,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let n=this.urlTree;this.href=n!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(n)):null;let o=this.href===null?null:Jv(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",o)}applyAttributeValue(n,o){let i=this.renderer,s=this.el.nativeElement;o!==null?i.setAttribute(s,n,o):i.removeAttribute(s,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(o){return new(o||e)(w(lc),w(Vr),gf("tabindex"),w(rt),w(_e),w(qn))},e.\u0275dir=H({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(o,i){o&1&&ht("click",function(a){return i.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),o&2&&Rr("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Wn],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Wn],replaceUrl:[2,"replaceUrl","replaceUrl",Wn],routerLink:"routerLink"},standalone:!0,features:[Pf,nt]});let t=e;return t})(),c7=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,o,i,s,a){this.router=n,this.element=o,this.renderer=i,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new G,this.routerEventsSubscription=n.events.subscribe(u=>{u instanceof Dn&&this.update()})}ngAfterContentInit(){I(this.links.changes,I(null)).pipe(An()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(o=>!!o).map(o=>o.onChanges);this.linkInputChangesSubscription=te(n).pipe(An()).subscribe(o=>{this._isActive!==this.isLinkActive(this.router)(o)&&this.update()})}set routerLinkActive(n){let o=Array.isArray(n)?n:n.split(" ");this.classes=o.filter(i=>!!i)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this.classes.forEach(o=>{n?this.renderer.addClass(this.element.nativeElement,o):this.renderer.removeClass(this.element.nativeElement,o)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.isActiveChange.emit(n))})}isLinkActive(n){let o=VP(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let s=i.urlTree;return s?n.isActive(s,o):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(o){return new(o||e)(w(lc),w(_e),w(rt),w(Nt),w(cw,8))},e.\u0275dir=H({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(o,i,s){if(o&1&&sD(s,cw,5),o&2){let a;aD(a=uD())&&(i.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[nt]});let t=e;return t})();function VP(t){return!!t.paths}var UP=new E("");function l7(t,...e){return ji([{provide:sp,multi:!0,useValue:t},[],{provide:Vr,useFactory:BP,deps:[lc]},{provide:Tu,multi:!0,useFactory:HP},e.map(r=>r.\u0275providers)])}function BP(t){return t.routerState.root}function $P(t,e){return{\u0275kind:t,\u0275providers:e}}function HP(){let t=y(rn);return e=>{let r=t.get(Pr);if(e!==r.components[0])return;let n=t.get(lc),o=t.get(zP);t.get(GP)===1&&n.initialNavigation(),t.get(WP,null,j.Optional)?.setUpPreloading(),t.get(UP,null,j.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var zP=new E("",{factory:()=>new se}),GP=new E("",{providedIn:"root",factory:()=>1});var WP=new E("");function d7(){return $P(6,[{provide:qn,useClass:ND}])}function kw(t){let e=t.split(/\D/).map(r=>Number(r));return new Date(e[0],e[1]-1,e[2],e[3],e[4],e[5])}function jw(t){let e=t.split(/\D/).map(r=>Number(r));return new Date(e[0],e[1]-1,e[2])}function Vw(t){return up(t)+`T${ws(t.getHours())}:${ws(t.getMinutes())}:${ws(t.getSeconds())}`}function up(t){return`${t.getFullYear()}-${ws(t.getMonth()+1)}-${ws(t.getDate())}`}function ws(t){return("0"+t).slice(-2)}var qP=function(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n=t}:t;return function(){var n=Array.from(arguments);return r(arguments)?e.apply(this,n):function(o){return e.apply(void 0,qP([o],n,!1))}}};var Bw=function(t){return t._tag==="Left"};var $w=function(t){return{_tag:"Left",left:t}},Hw=function(t){return{_tag:"Right",right:t}};function cp(t){return function(e,r){return t.map(e,function(){return r})}}function zw(t){var e=cp(t);return function(r){return e(r,void 0)}}function Gw(t){return function(e,r){return t.chain(e,function(n){return t.map(r(n),function(){return n})})}}var fc=$w,bs=Hw,Ww=dc(2,function(t,e){return he(t)?t:e(t.right)}),qw=function(t,e){return Xn(t,QP(e))},YP=function(t,e){return Xn(t,XP(e))};var lp="Either";var QP=function(t){return function(e){return he(e)?e:bs(t(e.right))}},Zw={URI:lp,map:qw},R7=dc(2,cp(Zw)),P7=zw(Zw);var JP=function(t){return function(e){return he(e)?e:he(t)?t:bs(e.right(t.right))}},XP=JP;var eF={URI:lp,map:qw,ap:YP,chain:Ww};var tF={URI:lp,fromEither:Uw};var he=Bw;var nF=function(t,e){return function(r){return he(r)?t(r.left):e(r.right)}};var rF=nF,hc=rF;var F7=dc(2,Gw(eF));var L7={fromEither:tF.fromEither};var oF=function(t){return function(e){return he(e)?t(e.left):e}},k7=oF;var dp=Ww;var Q=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Vo=function(){return Vo=Object.assign||function(t){for(var e,r=1,n=arguments.length;r")}function er(t,e,r,n){for(var o=t.length,i=Array(o+1),s=0;s")}function sF(t,e,r,n){n===void 0&&(n="{ [K in ".concat(e.name,"]: ").concat(r.name," }"));for(var o=t.length,i={},s=0;s0?$r(s):Y(c?i:n)}return Jw(e)&&Array.isArray(n)?Y(n):de(n,o)},t.encode===Z&&e.encode===Z?function(n){return Kw(n,t)}:function(n){for(var o={},i=Object.keys(Kw(n,t)),s=i.length,a=0;a")}function lF(t){return t.length>0}var ct={};function rb(t,e){for(var r=[],n=0,o=t;n")),new FF(e,function(r){return Xw.is(r)&&r.every(t.is)},function(r,n){var o=Xw.validate(r,n);if(he(o))return o;for(var i=o.right,s=i.length,a=i,u=[],c=0;c0?$r(u):Y(a)},t.encode===Z?Z:function(r){return r.map(t.encode)},t)}var LF=function(t){Q(e,t);function e(r,n,o,i,s){var a=t.call(this,r,n,o,i)||this;return a.props=s,a._tag="InterfaceType",a}return e}(B);function mt(t,e){e===void 0&&(e=eb(t));var r=Object.keys(t),n=r.map(function(i){return t[i]}),o=r.length;return new LF(e,function(i){if(Pt.is(i)){for(var s=0;s0?$r(l):Y(c)},pc(n)?Z:function(i){for(var s=Vo({},i),a=0;a0?$r(l):Y(c)},pc(n)?Z:function(i){for(var s=Vo({},i),a=0;a0){var n=r[0],o=r[1],i=o.length,s=function(a){for(var u=0;u0?$r(s):Y(Yw(n,i))},t.length===0?Z:function(n){return Yw(n,t.map(function(o){return o.encode(n)}))},t)}var Z7=function(t){Q(e,t);function e(r,n,o,i,s){var a=t.call(this,r,n,o,i)||this;return a.types=s,a._tag="TupleType",a}return e}(B);var VF=function(t){Q(e,t);function e(r,n,o,i,s){var a=t.call(this,r,n,o,i)||this;return a.type=s,a._tag="ReadonlyType",a}return e}(B);function K7(t,e){return e===void 0&&(e="Readonly<".concat(t.name,">")),new VF(e,t.is,t.validate,t.encode,t)}var UF=function(t){Q(e,t);function e(r,n,o,i,s){var a=t.call(this,r,n,o,i)||this;return a.type=s,a._tag="ReadonlyArrayType",a}return e}(B);function db(t,e){e===void 0&&(e="ReadonlyArray<".concat(t.name,">"));var r=Ge(t);return new UF(e,r.is,r.validate,r.encode,t)}var BF=function(t,e){return HF(mt(t),e)},$F=function(t){Q(e,t);function e(r,n,o,i,s){var a=t.call(this,r,n,o,i)||this;return a.type=s,a._tag="ExactType",a}return e}(B);function HF(t,e){e===void 0&&(e=cF(t));var r=pp(t);return new $F(e,t.is,function(n,o){var i=Pt.validate(n,o);if(he(i))return i;var s=t.validate(n,o);return he(s)?s:bs(Qw(s.right,r))},function(n){return t.encode(Qw(n,r))},t)}var zF=function(t){Q(e,t);function e(){var r=t.call(this,"Function",function(n){return typeof n=="function"},function(n,o){return r.is(n)?Y(n):de(n,o)},Z)||this;return r._tag="FunctionType",r}return e}(B);var Y7=new zF,GF=function(t){Q(e,t);function e(){var r=t.call(this,"never",function(n){return!1},function(n,o){return de(n,o)},function(){throw new Error("cannot encode never")})||this;return r._tag="NeverType",r}return e}(B);var Q7=new GF,WF=function(t){Q(e,t);function e(){var r=t.call(this,"any",function(n){return!0},Y,Z)||this;return r._tag="AnyType",r}return e}(B);var J7=new WF;function fb(t,e,r){return r===void 0&&(r="(".concat(t.name," | ").concat(gp(e),")")),new RF(r,function(n){return t.is(n)&&e(n)},function(n,o){var i=t.validate(n,o);if(he(i))return i;var s=i.right;return e(s)?Y(s):de(s,o)},t.encode,t,e)}var X7=fb(ge,Number.isInteger,"Integer"),qF=function(t){Q(e,t);function e(r,n,o,i,s,a){var u=t.call(this,r,n,o,i,s)||this;return u.tag=a,u}return e}(lb);var eZ=function(t){return[{key:"",type:t}]};var ZF=function(t){Q(e,t);function e(){var r=t.call(this,"object",function(n){return n!==null&&typeof n=="object"},function(n,o){return r.is(n)?Y(n):de(n,o)},Z)||this;return r._tag="ObjectType",r}return e}(B);var tZ=new ZF;var nZ=function(t){Q(e,t);function e(r,n,o,i,s){var a=t.call(this,r,n,o,i)||this;return a.props=s,a._tag="StrictType",a}return e}(B);var KF=mp("JsonArray",function(){return db(vp)}),YF=mp("JsonRecord",function(){return Bo(ee,vp)}),vp=Is([ab,ge,ee,Es,KF,YF],"Json"),hb=new B("JsonFromString",vp.is,function(t,e){try{return Y(JSON.parse(t))}catch{return de(t,e)}},function(t){return JSON.stringify(t)});function _s(t){return Is([Es,t])}function uZ(t){return Is([Es,Cs,t])}var cZ=mt({Id:ge,HRef:_s(ee)});var lZ=mt({Id:_s(ge),HRef:_s(ee)});var dZ=ee.pipe(hb,"JsonFromUnknown"),fZ=new B("LocalDateTimeFromString",t=>t instanceof Date,(t,e)=>Xn(ee.validate(t,e),dp(r=>{let n=kw(r);return isNaN(n.getTime())?de(t,e):Y(n)})),t=>Vw(t)),hZ=new B("LocalDateTimeFromString",t=>t instanceof Date,(t,e)=>Xn(ee.validate(t,e),dp(r=>{let n=jw(r);return isNaN(n.getTime())?de(t,e):Y(n)})),t=>up(t));function gZ(t,e){return e.reduce((r,n)=>$(D({},r),{[n]:t[n]}),{})}function pb(t,e){let r=n=>Object.values(e).includes(n);return new B(t,r,(n,o)=>r(n)?Y(n):de(n,o),Z)}var gb=function(t){return t.Crystal="crystal",t.Excel="excel",t}(gb||{}),Hr=mt({type:pb("ReportType",gb),id:ge});var QF=mt({de:mt({label:ee,description:ee}),fr:mt({label:ee,description:ee})}),JF=Bo(ee,QF),XF=mt({roles:Ge(ee),types:Ge(ee)}),e1=mt({substitutionsAdminLink:ee}),bZ=mt({apiUrl:ee,scriptsAndAssetsPath:ee,paginationLimit:ge,absencePresenceTypeId:ge,latePresenceTypeId:ge,dispensationPresenceTypeId:ge,halfDayPresenceTypeId:ge,unconfirmedAbsenceStateId:ge,unexcusedAbsenceStateId:ge,excusedAbsenceStateId:ge,checkableAbsenceStateId:ge,lessonPresencesRefreshTime:ge,unconfirmedAbsencesRefreshTime:_s(ge),personMasterDataReports:Ge(Hr),studentConfirmationReports:Ge(Hr),evaluateAbsencesReports:Ge(Hr),myAbsencesReports:Ge(Hr),testsByCourseReports:Ge(Hr),testsBySubscriptionStudentReports:Ge(Hr),testsBySubscriptionTeacherReports:Ge(Hr),subscriptionDetailGroupId:ge,headerRoleRestriction:Bo(ee,ee),notificationTypes:JF,notificationTypesAssignments:Ge(XF),eventlist:Bo(ee,ee),dashboard:e1,preventStudentAbsenceAfterLessonStart:Ge(ee)});var CZ=new E("Application Settings",{providedIn:"root",factory:()=>window.schulverwaltung.settings});var xb=(()=>{let e=class e{constructor(n,o){this._renderer=n,this._elementRef=o,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(n,o){this._renderer.setProperty(this._elementRef.nativeElement,n,o)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(o){return new(o||e)(w(rt),w(_e))},e.\u0275dir=H({type:e});let t=e;return t})(),qo=(()=>{let e=class e extends xb{};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=Fe(e)))(i||e)}})(),e.\u0275dir=H({type:e,features:[Ie]});let t=e;return t})(),bn=new E(""),t1={provide:bn,useExisting:Re(()=>n1),multi:!0},n1=(()=>{let e=class e extends qo{writeValue(n){this.setProperty("checked",n)}};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=Fe(e)))(i||e)}})(),e.\u0275dir=H({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(o,i){o&1&&ht("change",function(a){return i.onChange(a.target.checked)})("blur",function(){return i.onTouched()})},features:[He([t1]),Ie]});let t=e;return t})(),r1={provide:bn,useExisting:Re(()=>_b),multi:!0};function o1(){let t=mn()?mn().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var i1=new E(""),_b=(()=>{let e=class e extends xb{constructor(n,o,i){super(n,o),this._compositionMode=i,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!o1())}writeValue(n){let o=n??"";this.setProperty("value",o)}_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)}};e.\u0275fac=function(o){return new(o||e)(w(rt),w(_e),w(i1,8))},e.\u0275dir=H({type:e,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(o,i){o&1&&ht("input",function(a){return i._handleInput(a.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(a){return i._compositionEnd(a.target.value)})},features:[He([r1]),Ie]});let t=e;return t})();function tr(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function Mb(t){return t!=null&&typeof t.length=="number"}var rr=new E(""),Rs=new E(""),s1=/^(?=.{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])?)*$/,mb=class{static min(e){return Tb(e)}static max(e){return Sb(e)}static required(e){return Ab(e)}static requiredTrue(e){return a1(e)}static email(e){return u1(e)}static minLength(e){return c1(e)}static maxLength(e){return l1(e)}static pattern(e){return d1(e)}static nullValidator(e){return mc(e)}static compose(e){return Lb(e)}static composeAsync(e){return kb(e)}};function Tb(t){return e=>{if(tr(e.value)||tr(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(tr(e.value)||tr(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>t?{max:{max:t,actual:e.value}}:null}}function Ab(t){return tr(t.value)?{required:!0}:null}function a1(t){return t.value===!0?null:{required:!0}}function u1(t){return tr(t.value)||s1.test(t.value)?null:{email:!0}}function c1(t){return e=>tr(e.value)||!Mb(e.value)?null:e.value.lengthMb(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function d1(t){if(!t)return mc;let e,r;return typeof t=="string"?(r="",t.charAt(0)!=="^"&&(r+="^"),r+=t,t.charAt(t.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=t.toString(),e=t),n=>{if(tr(n.value))return null;let o=n.value;return e.test(o)?null:{pattern:{requiredPattern:r,actualValue:o}}}}function mc(t){return null}function Nb(t){return t!=null}function Ob(t){return Gn(t)?te(t):t}function Rb(t){let e={};return t.forEach(r=>{e=r!=null?D(D({},e),r):e}),Object.keys(e).length===0?null:e}function Pb(t,e){return e.map(r=>r(t))}function f1(t){return!t.validate}function Fb(t){return t.map(e=>f1(e)?e:r=>e.validate(r))}function Lb(t){if(!t)return null;let e=t.filter(Nb);return e.length==0?null:function(r){return Rb(Pb(r,e))}}function Ep(t){return t!=null?Lb(Fb(t)):null}function kb(t){if(!t)return null;let e=t.filter(Nb);return e.length==0?null:function(r){let n=Pb(r,e).map(Ob);return Ci(n).pipe(N(Rb))}}function Ip(t){return t!=null?kb(Fb(t)):null}function vb(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function jb(t){return t._rawValidators}function Vb(t){return t._rawAsyncValidators}function yp(t){return t?Array.isArray(t)?t:[t]:[]}function vc(t,e){return Array.isArray(t)?t.includes(e):t===e}function yb(t,e){let r=yp(e);return yp(t).forEach(o=>{vc(r,o)||r.push(o)}),r}function Db(t,e){return yp(e).filter(r=>!vc(t,r))}var yc=class{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(e){this._rawValidators=e||[],this._composedValidatorFn=Ep(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Ip(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},wn=class extends yc{get formDirective(){return null}get path(){return null}},Zt=class extends yc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Dc=class{constructor(e){this._cd=e}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}},h1={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},VZ=$(D({},h1),{"[class.ng-submitted]":"isSubmitted"}),UZ=(()=>{let e=class e extends Dc{constructor(n){super(n)}};e.\u0275fac=function(o){return new(o||e)(w(Zt,2))},e.\u0275dir=H({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(o,i){o&2&&xu("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[Ie]});let t=e;return t})(),BZ=(()=>{let e=class e extends Dc{constructor(n){super(n)}};e.\u0275fac=function(o){return new(o||e)(w(wn,10))},e.\u0275dir=H({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(o,i){o&2&&xu("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[Ie]});let t=e;return t})();var Ms="VALID",gc="INVALID",$o="PENDING",Ts="DISABLED",nr=class{},wc=class extends nr{constructor(e,r){super(),this.value=e,this.source=r}},As=class extends nr{constructor(e,r){super(),this.pristine=e,this.source=r}},Ns=class extends nr{constructor(e,r){super(),this.touched=e,this.source=r}},Ho=class extends nr{constructor(e,r){super(),this.status=e,this.source=r}},Dp=class extends nr{constructor(e){super(),this.source=e}},wp=class extends nr{constructor(e){super(),this.source=e}};function xp(t){return(Ic(t)?t.validators:t)||null}function p1(t){return Array.isArray(t)?Ep(t):t||null}function _p(t,e){return(Ic(e)?e.asyncValidators:t)||null}function g1(t){return Array.isArray(t)?Ip(t):t||null}function Ic(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function Ub(t,e,r){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new C(1e3,"");if(!n[r])throw new C(1001,"")}function Bb(t,e,r){t._forEachChild((n,o)=>{if(r[o]===void 0)throw new C(1002,"")})}var Go=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._events=new se,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===Ms}get invalid(){return this.status===gc}get pending(){return this.status==$o}get disabled(){return this.status===Ts}get enabled(){return this.status!==Ts}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(yb(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(yb(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Db(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Db(e,this._rawAsyncValidators))}hasValidator(e){return vc(this._rawValidators,e)}hasAsyncValidator(e){return vc(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let r=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched($(D({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new Ns(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(r=>r.markAllAsTouched(e))}markAsUntouched(e={}){let r=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),r&&e.emitEvent!==!1&&this._events.next(new Ns(!1,n))}markAsDirty(e={}){let r=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty($(D({},e),{sourceControl:n})),r&&e.emitEvent!==!1&&this._events.next(new As(!1,n))}markAsPristine(e={}){let r=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),r&&e.emitEvent!==!1&&this._events.next(new As(!0,n))}markAsPending(e={}){this.status=$o;let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Ho(this.status,r)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending($(D({},e),{sourceControl:r}))}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Ts,this.errors=null,this._forEachChild(o=>{o.disable($(D({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new wc(this.value,n)),this._events.next(new Ho(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors($(D({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=Ms,this._forEachChild(n=>{n.enable($(D({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors($(D({},e),{skipPristineCheck:r}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,r){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},r),this._parent._updateTouched({},r))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ms||this.status===$o)&&this._runAsyncValidator(n,e.emitEvent)}let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new wc(this.value,r)),this._events.next(new Ho(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity($(D({},e),{sourceControl:r}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ts:Ms}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,r){if(this.asyncValidator){this.status=$o,this._hasOwnPendingAsyncValidator={emitEvent:r!==!1};let n=Ob(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:r,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1,this,r.shouldHaveEmitted)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((n,o)=>n&&n._find(o),this)}getError(e,r){let n=r?this.get(r):this;return n&&n.errors?n.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,r,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new Ho(this.status,r)),this._parent&&this._parent._updateControlsErrors(e,r,n)}_initObservables(){this.valueChanges=new G,this.statusChanges=new G}_calculateStatus(){return this._allControlsDisabled()?Ts:this.errors?gc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus($o)?$o:this._anyControlsHaveStatus(gc)?gc:Ms}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,r){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),o&&this._events.next(new As(this.pristine,r))}_updateTouched(e={},r){this.touched=this._anyControlsTouched(),this._events.next(new Ns(this.touched,r)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Ic(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=p1(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=g1(this._rawAsyncValidators)}},Wo=class extends Go{constructor(e,r,n){super(xp(r),_p(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,n={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){Bb(this,!0,e),Object.keys(e).forEach(n=>{Ub(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(n=>{let o=this.controls[n];o&&o.patchValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((n,o)=>{n.reset(e?e[o]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,n)=>(e[n]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,n)=>n._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let n=this.controls[r];n&&e(n,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,n]of Object.entries(this.controls))if(this.contains(r)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,n,o)=>((n.enabled||this.disabled)&&(r[o]=n.value),r))}_reduceChildren(e,r){let n=e;return this._forEachChild((o,i)=>{n=r(n,o,i)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var bp=class extends Wo{};var zr=new E("CallSetDisabledState",{providedIn:"root",factory:()=>Ps}),Ps="always";function $b(t,e){return[...e.path,t]}function Os(t,e,r=Ps){Mp(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),v1(t,e),D1(t,e),y1(t,e),m1(t,e)}function bc(t,e,r=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Ec(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Cc(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function m1(t,e){if(e.valueAccessor.setDisabledState){let r=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function Mp(t,e){let r=jb(t);e.validator!==null?t.setValidators(vb(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let n=Vb(t);e.asyncValidator!==null?t.setAsyncValidators(vb(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let o=()=>t.updateValueAndValidity();Cc(e._rawValidators,o),Cc(e._rawAsyncValidators,o)}function Ec(t,e){let r=!1;if(t!==null){if(e.validator!==null){let o=jb(t);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==e.validator);i.length!==o.length&&(r=!0,t.setValidators(i))}}if(e.asyncValidator!==null){let o=Vb(t);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==e.asyncValidator);i.length!==o.length&&(r=!0,t.setAsyncValidators(i))}}}let n=()=>{};return Cc(e._rawValidators,n),Cc(e._rawAsyncValidators,n),r}function v1(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Hb(t,e)})}function y1(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Hb(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Hb(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function D1(t,e){let r=(n,o)=>{e.valueAccessor.writeValue(n),o&&e.viewToModelUpdate(n)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function zb(t,e){t==null,Mp(t,e)}function w1(t,e){return Ec(t,e)}function Tp(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function b1(t){return Object.getPrototypeOf(t.constructor)===qo}function Gb(t,e){t._syncPendingControls(),e.forEach(r=>{let n=r.control;n.updateOn==="submit"&&n._pendingChange&&(r.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function Sp(t,e){if(!e)return null;Array.isArray(e);let r,n,o;return e.forEach(i=>{i.constructor===_b?r=i:b1(i)?n=i:o=i}),o||n||r||null}function C1(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}var E1={provide:wn,useExisting:Re(()=>I1)},Ss=Promise.resolve(),I1=(()=>{let e=class e extends wn{constructor(n,o,i){super(),this.callSetDisabledState=i,this.submitted=!1,this._directives=new Set,this.ngSubmit=new G,this.form=new Wo({},Ep(n),Ip(o))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){Ss.then(()=>{let o=this._findContainer(n.path);n.control=o.registerControl(n.name,n.control),Os(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){Ss.then(()=>{let o=this._findContainer(n.path);o&&o.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){Ss.then(()=>{let o=this._findContainer(n.path),i=new Wo({});zb(i,n),o.registerControl(n.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){Ss.then(()=>{let o=this._findContainer(n.path);o&&o.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,o){Ss.then(()=>{this.form.get(n.path).setValue(o)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,Gb(this.form,this._directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}};e.\u0275fac=function(o){return new(o||e)(w(rr,10),w(Rs,10),w(zr,8))},e.\u0275dir=H({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(o,i){o&1&&ht("submit",function(a){return i.onSubmit(a)})("reset",function(){return i.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[He([E1]),Ie]});let t=e;return t})();function wb(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function bb(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var zo=class extends Go{constructor(e=null,r,n){super(xp(r),_p(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ic(r)&&(r.nonNullable||r.initialValueIsDefault)&&(bb(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){wb(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){wb(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){bb(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}},HZ=zo,x1=t=>t instanceof zo;var _1={provide:Zt,useExisting:Re(()=>M1)},Cb=Promise.resolve(),M1=(()=>{let e=class e extends Zt{constructor(n,o,i,s,a,u){super(),this._changeDetectorRef=a,this.callSetDisabledState=u,this.control=new zo,this._registered=!1,this.name="",this.update=new G,this._parent=n,this._setValidators(o),this._setAsyncValidators(i),this.valueAccessor=Sp(this,s)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let o=n.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),Tp(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&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Os(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()&&this.name}_updateValue(n){Cb.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let o=n.isDisabled.currentValue,i=o!==0&&Wn(o);Cb.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?$b(n,this._parent):[n]}};e.\u0275fac=function(o){return new(o||e)(w(wn,9),w(rr,10),w(Rs,10),w(bn,10),w(Nt,8),w(zr,8))},e.\u0275dir=H({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[He([_1]),Ie,nt]});let t=e;return t})(),zZ=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=H({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})(),T1={provide:bn,useExisting:Re(()=>S1),multi:!0},S1=(()=>{let e=class e extends qo{writeValue(n){let o=n??"";this.setProperty("value",o)}registerOnChange(n){this.onChange=o=>{n(o==""?null:parseFloat(o))}}};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=Fe(e)))(i||e)}})(),e.\u0275dir=H({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(o,i){o&1&&ht("input",function(a){return i.onChange(a.target.value)})("blur",function(){return i.onTouched()})},features:[He([T1]),Ie]});let t=e;return t})(),A1={provide:bn,useExisting:Re(()=>O1),multi:!0};var N1=(()=>{let e=class e{constructor(){this._accessors=[]}add(n,o){this._accessors.push([n,o])}remove(n){for(let o=this._accessors.length-1;o>=0;--o)if(this._accessors[o][1]===n){this._accessors.splice(o,1);return}}select(n){this._accessors.forEach(o=>{this._isSameGroup(o,n)&&o[1]!==n&&o[1].fireUncheck(n.value)})}_isSameGroup(n,o){return n[0].control?n[0]._parent===o._control._parent&&n[1].name===o.name:!1}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),O1=(()=>{let e=class e extends qo{constructor(n,o,i,s){super(n,o),this._registry=i,this._injector=s,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=y(zr,{optional:!0})??Ps}ngOnInit(){this._control=this._injector.get(Zt),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||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",n),this.setDisabledStateFired=!0}fireUncheck(n){this.writeValue(n)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}};e.\u0275fac=function(o){return new(o||e)(w(rt),w(_e),w(N1),w(rn))},e.\u0275dir=H({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(o,i){o&1&&ht("change",function(){return i.onChange()})("blur",function(){return i.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[He([A1]),Ie]});let t=e;return t})();var Ap=new E(""),R1={provide:Zt,useExisting:Re(()=>P1)},P1=(()=>{let e=class e extends Zt{set isDisabled(n){}constructor(n,o,i,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new G,this._ngModelWarningSent=!1,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=Sp(this,i)}ngOnChanges(n){if(this._isControlChanged(n)){let o=n.form.previousValue;o&&bc(o,this,!1),Os(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Tp(n,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&bc(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")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(o){return new(o||e)(w(rr,10),w(Rs,10),w(bn,10),w(Ap,8),w(zr,8))},e.\u0275dir=H({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[He([R1]),Ie,nt]});let t=e;return t})(),F1={provide:wn,useExisting:Re(()=>L1)},L1=(()=>{let e=class e extends wn{constructor(n,o,i){super(),this.callSetDisabledState=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new G,this._setValidators(n),this._setAsyncValidators(o)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ec(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){let o=this.form.get(n.path);return Os(o,n,this.callSetDisabledState),o.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),o}getControl(n){return this.form.get(n.path)}removeControl(n){bc(n.control||null,n,!1),C1(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,o){this.form.get(n.path).setValue(o)}onSubmit(n){return this.submitted=!0,Gb(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new Dp(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1,this.form._events.next(new wp(this.form))}_updateDomValue(){this.directives.forEach(n=>{let o=n.control,i=this.form.get(n.path);o!==i&&(bc(o||null,n),x1(i)&&(Os(i,n,this.callSetDisabledState),n.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let o=this.form.get(n.path);zb(o,n),o.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let o=this.form.get(n.path);o&&w1(o,n)&&o.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Mp(this.form,this),this._oldForm&&Ec(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(o){return new(o||e)(w(rr,10),w(Rs,10),w(zr,8))},e.\u0275dir=H({type:e,selectors:[["","formGroup",""]],hostBindings:function(o,i){o&1&&ht("submit",function(a){return i.onSubmit(a)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[He([F1]),Ie,nt]});let t=e;return t})();var k1={provide:Zt,useExisting:Re(()=>j1)},j1=(()=>{let e=class e extends Zt{set isDisabled(n){}constructor(n,o,i,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new G,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(o),this._setAsyncValidators(i),this.valueAccessor=Sp(this,s)}ngOnChanges(n){this._added||this._setUpControl(),Tp(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 $b(this.name==null?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}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(o){return new(o||e)(w(wn,13),w(rr,10),w(Rs,10),w(bn,10),w(Ap,8))},e.\u0275dir=H({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[He([k1]),Ie,nt]});let t=e;return t})(),V1={provide:bn,useExisting:Re(()=>qb),multi:!0};function Wb(t,e){return t==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function U1(t){return t.split(":")[0]}var qb=(()=>{let e=class e extends qo{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;let o=this._getOptionId(n),i=Wb(o,n);this.setProperty("value",i)}registerOnChange(n){this.onChange=o=>{this.value=this._getOptionValue(o),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let o of this._optionMap.keys())if(this._compareWith(this._optionMap.get(o),n))return o;return null}_getOptionValue(n){let o=U1(n);return this._optionMap.has(o)?this._optionMap.get(o):n}};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=Fe(e)))(i||e)}})(),e.\u0275dir=H({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(o,i){o&1&&ht("change",function(a){return i.onChange(a.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[He([V1]),Ie]});let t=e;return t})(),GZ=(()=>{let e=class e{constructor(n,o,i){this._element=n,this._renderer=o,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(Wb(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))}};e.\u0275fac=function(o){return new(o||e)(w(_e),w(rt),w(qb,9))},e.\u0275dir=H({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})(),B1={provide:bn,useExisting:Re(()=>Zb),multi:!0};function Eb(t,e){return t==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function $1(t){return t.split(":")[0]}var Zb=(()=>{let e=class e extends qo{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;let o;if(Array.isArray(n)){let i=n.map(s=>this._getOptionId(s));o=(s,a)=>{s._setSelected(i.indexOf(a.toString())>-1)}}else o=(i,s)=>{i._setSelected(!1)};this._optionMap.forEach(o)}registerOnChange(n){this.onChange=o=>{let i=[],s=o.selectedOptions;if(s!==void 0){let a=s;for(let u=0;u{let n;return function(i){return(n||(n=Fe(e)))(i||e)}})(),e.\u0275dir=H({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(o,i){o&1&&ht("change",function(a){return i.onChange(a.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},features:[He([B1]),Ie]});let t=e;return t})(),WZ=(()=>{let e=class e{constructor(n,o,i){this._element=n,this._renderer=o,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(Eb(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(Eb(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))}};e.\u0275fac=function(o){return new(o||e)(w(_e),w(rt),w(Zb,9))},e.\u0275dir=H({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})();function Kb(t){return typeof t=="number"?t:parseFloat(t)}var Np=(()=>{let e=class e{constructor(){this._validator=mc}ngOnChanges(n){if(this.inputName in n){let o=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(o),this._validator=this._enabled?this.createValidator(o):mc,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=H({type:e,features:[nt]});let t=e;return t})(),H1={provide:rr,useExisting:Re(()=>z1),multi:!0},z1=(()=>{let e=class e extends Np{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=n=>Kb(n),this.createValidator=n=>Sb(n)}};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=Fe(e)))(i||e)}})(),e.\u0275dir=H({type:e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(o,i){o&2&&Rr("max",i._enabled?i.max:null)},inputs:{max:"max"},features:[He([H1]),Ie]});let t=e;return t})(),G1={provide:rr,useExisting:Re(()=>W1),multi:!0},W1=(()=>{let e=class e extends Np{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=n=>Kb(n),this.createValidator=n=>Tb(n)}};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=Fe(e)))(i||e)}})(),e.\u0275dir=H({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(o,i){o&2&&Rr("min",i._enabled?i.min:null)},inputs:{min:"min"},features:[He([G1]),Ie]});let t=e;return t})(),q1={provide:rr,useExisting:Re(()=>Z1),multi:!0};var Z1=(()=>{let e=class e extends Np{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Wn,this.createValidator=n=>Ab}enabled(n){return n}};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=Fe(e)))(i||e)}})(),e.\u0275dir=H({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(o,i){o&2&&Rr("required",i._enabled?"":null)},inputs:{required:"required"},features:[He([q1]),Ie]});let t=e;return t})();var Yb=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Mt({type:e}),e.\u0275inj=_t({});let t=e;return t})(),Cp=class extends Go{constructor(e,r,n){super(xp(r),_p(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,r={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}insert(e,r,n={}){this.controls.splice(e,0,r),this._registerControl(r),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,r={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:r.emitEvent})}setControl(e,r,n={}){let o=this._adjustIndex(e);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),r&&(this.controls.splice(o,0,r),this._registerControl(r)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,r={}){Bb(this,!1,e),e.forEach((n,o)=>{Ub(this,!1,o),this.at(o).setValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(e.forEach((n,o)=>{this.at(o)&&this.at(o).patchValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e=[],r={}){this._forEachChild((n,o)=>{n.reset(e[o],{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r,this),this._updateTouched(r,this),this.updateValueAndValidity(r)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(r=>r._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((r,n)=>n._syncPendingControls()?!0:r,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((r,n)=>{e(r,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(r=>r.enabled&&e(r))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};function Ib(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var K1=(()=>{let e=class e{constructor(){this.useNonNullable=!1}get nonNullable(){let n=new e;return n.useNonNullable=!0,n}group(n,o=null){let i=this._reduceControls(n),s={};return Ib(o)?s=o:o!==null&&(s.validators=o.validator,s.asyncValidators=o.asyncValidator),new Wo(i,s)}record(n,o=null){let i=this._reduceControls(n);return new bp(i,o)}control(n,o,i){let s={};return this.useNonNullable?(Ib(o)?s=o:(s.validators=o,s.asyncValidators=i),new zo(n,$(D({},s),{nonNullable:!0}))):new zo(n,o,i)}array(n,o,i){let s=n.map(a=>this._createControl(a));return new Cp(s,o,i)}_reduceControls(n){let o={};return Object.keys(n).forEach(i=>{o[i]=this._createControl(n[i])}),o}_createControl(n){if(n instanceof zo)return n;if(n instanceof Go)return n;if(Array.isArray(n)){let o=n[0],i=n.length>1?n[1]:null,s=n.length>2?n[2]:null;return this.control(o,i,s)}else return this.control(n)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var qZ=(()=>{let e=class e extends K1{group(n,o=null){return super.group(n,o)}control(n,o,i){return super.control(n,o,i)}array(n,o,i){return super.array(n,o,i)}};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=Fe(e)))(i||e)}})(),e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var ZZ=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:zr,useValue:n.callSetDisabledState??Ps}]}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Mt({type:e}),e.\u0275inj=_t({imports:[Yb]});let t=e;return t})(),KZ=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Ap,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:zr,useValue:n.callSetDisabledState??Ps}]}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=Mt({type:e}),e.\u0275inj=_t({imports:[Yb]});let t=e;return t})();function Y1(t,e){for(var r=-1,n=e.length,o=t.length;++r0&&r(a)?e>1?oC(a,e-1,r,n,o):Zo(o,a):n||(o[o.length]=a)}return o}var iC=oC;function yL(t){var e=t==null?0:t.length;return e?iC(t,1):[]}var DL=yL;function wL(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var vt=wL;var bL="[object AsyncFunction]",CL="[object Function]",EL="[object GeneratorFunction]",IL="[object Proxy]";function xL(t){if(!vt(t))return!1;var e=Ft(t);return e==CL||e==EL||e==bL||e==IL}var _c=xL;var _L=ye["__core-js_shared__"],Mc=_L;var sC=function(){var t=/[^.]+$/.exec(Mc&&Mc.keys&&Mc.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function ML(t){return!!sC&&sC in t}var aC=ML;var TL=Function.prototype,SL=TL.toString;function AL(t){if(t!=null){try{return SL.call(t)}catch{}try{return t+""}catch{}}return""}var Cn=AL;var NL=/[\\^$.*+?()[\]{}|]/g,OL=/^\[object .+?Constructor\]$/,RL=Function.prototype,PL=Object.prototype,FL=RL.toString,LL=PL.hasOwnProperty,kL=RegExp("^"+FL.call(LL).replace(NL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jL(t){if(!vt(t)||aC(t))return!1;var e=_c(t)?kL:OL;return e.test(Cn(t))}var uC=jL;function VL(t,e){return t?.[e]}var cC=VL;function UL(t,e){var r=cC(t,e);return uC(r)?r:void 0}var et=UL;var BL=et(Object,"create"),En=BL;function $L(){this.__data__=En?En(null):{},this.size=0}var lC=$L;function HL(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var dC=HL;var zL="__lodash_hash_undefined__",GL=Object.prototype,WL=GL.hasOwnProperty;function qL(t){var e=this.__data__;if(En){var r=e[t];return r===zL?void 0:r}return WL.call(e,t)?e[t]:void 0}var fC=qL;var ZL=Object.prototype,KL=ZL.hasOwnProperty;function YL(t){var e=this.__data__;return En?e[t]!==void 0:KL.call(e,t)}var hC=YL;var QL="__lodash_hash_undefined__";function JL(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=En&&e===void 0?QL:e,this}var pC=JL;function Yo(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1}var yC=sk;function ak(t,e){var r=this.__data__,n=or(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var DC=ak;function Jo(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1}var OC=Ek;function Ik(t,e,r){for(var n=-1,o=t==null?0:t.length;++n=Nk){var c=e?null:FC(t);if(c)return ei(c);s=!1,o=Ac,u=new Sc}else u=e?[]:a;e:for(;++n-1&&t%1==0&&t-1&&t%1==0&&t<=Xk}var ri=ej;function tj(t){return t!=null&&ri(t.length)&&!_c(t)}var oi=tj;var nj=Object.prototype;function rj(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||nj;return t===r}var ii=rj;function oj(t,e){for(var r=-1,n=Array(t);++ro?0:o+e),r=r>o?o:r,r<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n=n?t:uE(t,e,r)}var cE=gV;var mV="\\ud800-\\udfff",vV="\\u0300-\\u036f",yV="\\ufe20-\\ufe2f",DV="\\u20d0-\\u20ff",wV=vV+yV+DV,bV="\\ufe0e\\ufe0f",CV="\\u200d",EV=RegExp("["+CV+mV+wV+bV+"]");function IV(t){return EV.test(t)}var Bc=IV;function xV(t){return t.split("")}var lE=xV;var dE="\\ud800-\\udfff",_V="\\u0300-\\u036f",MV="\\ufe20-\\ufe2f",TV="\\u20d0-\\u20ff",SV=_V+MV+TV,AV="\\ufe0e\\ufe0f",NV="["+dE+"]",kp="["+SV+"]",jp="\\ud83c[\\udffb-\\udfff]",OV="(?:"+kp+"|"+jp+")",fE="[^"+dE+"]",hE="(?:\\ud83c[\\udde6-\\uddff]){2}",pE="[\\ud800-\\udbff][\\udc00-\\udfff]",RV="\\u200d",gE=OV+"?",mE="["+AV+"]?",PV="(?:"+RV+"(?:"+[fE,hE,pE].join("|")+")"+mE+gE+")*",FV=mE+gE+PV,LV="(?:"+[fE+kp+"?",kp,hE,pE,NV].join("|")+")",kV=RegExp(jp+"(?="+jp+")|"+LV+FV,"g");function jV(t){return t.match(kV)||[]}var vE=jV;function VV(t){return Bc(t)?vE(t):lE(t)}var yE=VV;function UV(t){return function(e){e=yt(e);var r=Bc(e)?yE(e):void 0,n=r?r[0]:e.charAt(0),o=r?cE(r,1).join(""):e.slice(1);return n[t]()+o}}var DE=UV;var BV=DE("toUpperCase"),wE=BV;function $V(t){return wE(yt(t).toLowerCase())}var bE=$V;function HV(t,e,r,n){var o=-1,i=t==null?0:t.length;for(n&&i&&(r=t[++o]);++oa))return!1;var c=i.get(t),l=i.get(e);if(c&&l)return c==e&&l==t;var d=-1,f=!0,h=r&x2?new Sc:void 0;for(i.set(t,e),i.set(e,t);++d0?"Infinity":"-Infinity":JSON.stringify(t)}function O$(t){return t.map(function(e){var r=e.key,n=e.type;return"".concat(r,": ").concat(n.name)}).join("/")}function R$(t){return t.message!==void 0?t.message:"Invalid value ".concat(N$(t.value)," supplied to ").concat(O$(t.context))}function P$(t){return t.map(R$)}function F$(){return["No errors!"]}var ux={report:hc(P$,F$)};var Bp=class extends Error{constructor(){super(...arguments),this.name="DecodeError"}};function L$(t){return e=>Xn(t.decode(e),hc(r=>Sn(()=>new Bp(ux.report(fc(r)).join(` +`))),r=>I(r)))}function Boe(t){return L$(Ge(t))}var gi=class{},cx=(()=>{class t extends gi{getTranslation(r){return I({})}static \u0275fac=(()=>{let r;return function(o){return(r||(r=Fe(t)))(o||t)}})();static \u0275prov=b({token:t,factory:t.\u0275fac})}return t})(),js=class{},lx=(()=>{class t{handle(r){return r.key}static \u0275fac=function(n){return new(n||t)};static \u0275prov=b({token:t,factory:t.\u0275fac})}return t})();function Xc(t,e){if(t===e)return!0;if(t===null||e===null)return!1;if(t!==t&&e!==e)return!0;let r=typeof t,n=typeof e,o,i,s;if(r==n&&r=="object")if(Array.isArray(t)){if(!Array.isArray(e))return!1;if((o=t.length)==e.length){for(i=0;i{$p(e[n])?n in t?r[n]=hx(t[n],e[n]):Object.assign(r,{[n]:e[n]}):Object.assign(r,{[n]:e[n]})}),r}var mi=class{},dx=(()=>{class t extends mi{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(r,n){let o;return typeof r=="string"?o=this.interpolateString(r,n):typeof r=="function"?o=this.interpolateFunction(r,n):o=r,o}getValue(r,n){let o=typeof n=="string"?n.split("."):[n];n="";do n+=o.shift(),fr(r)&&fr(r[n])&&(typeof r[n]=="object"||!o.length)?(r=r[n],n=""):o.length?n+=".":r=void 0;while(o.length);return r}interpolateFunction(r,n){return r(n)}interpolateString(r,n){return n?r.replace(this.templateMatcher,(o,i)=>{let s=this.getValue(n,i);return fr(s)?s:o}):r}static \u0275fac=(()=>{let r;return function(o){return(r||(r=Fe(t)))(o||t)}})();static \u0275prov=b({token:t,factory:t.\u0275fac})}return t})(),vi=class{},fx=(()=>{class t extends vi{compile(r,n){return r}compileTranslations(r,n){return r}static \u0275fac=(()=>{let r;return function(o){return(r||(r=Fe(t)))(o||t)}})();static \u0275prov=b({token:t,factory:t.\u0275fac})}return t})(),el=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new G;onLangChange=new G;onDefaultLangChange=new G},Hp=new E("USE_STORE"),zp=new E("USE_DEFAULT_LANG"),Gp=new E("DEFAULT_LANGUAGE"),Wp=new E("USE_EXTEND"),qp=(()=>{class t{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new G;_onLangChange=new G;_onDefaultLangChange=new G;_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(r){this.isolate?this._defaultLang=r:this.store.defaultLang=r}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(r){this.isolate?this._currentLang=r:this.store.currentLang=r}get langs(){return this.isolate?this._langs:this.store.langs}set langs(r){this.isolate?this._langs=r:this.store.langs=r}get translations(){return this.isolate?this._translations:this.store.translations}set translations(r){this.isolate?this._translations=r:this.store.translations=r}constructor(r,n,o,i,s,a=!0,u=!1,c=!1,l){this.store=r,this.currentLoader=n,this.compiler=o,this.parser=i,this.missingTranslationHandler=s,this.useDefaultLang=a,this.isolate=u,this.extend=c,l&&this.setDefaultLang(l)}setDefaultLang(r){if(r===this.defaultLang)return;let n=this.retrieveTranslations(r);typeof n<"u"?(this.defaultLang==null&&(this.defaultLang=r),n.pipe(xe(1)).subscribe(o=>{this.changeDefaultLang(r)})):this.changeDefaultLang(r)}getDefaultLang(){return this.defaultLang}use(r){if(r===this.currentLang)return I(this.translations[r]);let n=this.retrieveTranslations(r);return typeof n<"u"?(this.currentLang||(this.currentLang=r),n.pipe(xe(1)).subscribe(o=>{this.changeLang(r)}),n):(this.changeLang(r),I(this.translations[r]))}retrieveTranslations(r){let n;return(typeof this.translations[r]>"u"||this.extend)&&(this._translationRequests[r]=this._translationRequests[r]||this.getTranslation(r),n=this._translationRequests[r]),n}getTranslation(r){this.pending=!0;let n=this.currentLoader.getTranslation(r).pipe(Ii(1),xe(1));return this.loadingTranslations=n.pipe(N(o=>this.compiler.compileTranslations(o,r)),Ii(1),xe(1)),this.loadingTranslations.subscribe({next:o=>{this.translations[r]=this.extend&&this.translations[r]?D(D({},o),this.translations[r]):o,this.updateLangs(),this.pending=!1},error:o=>{this.pending=!1}}),n}setTranslation(r,n,o=!1){n=this.compiler.compileTranslations(n,r),(o||this.extend)&&this.translations[r]?this.translations[r]=hx(this.translations[r],n):this.translations[r]=n,this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}getLangs(){return this.langs}addLangs(r){r.forEach(n=>{this.langs.indexOf(n)===-1&&this.langs.push(n)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(r,n,o){let i;if(n instanceof Array){let s={},a=!1;for(let u of n)s[u]=this.getParsedResult(r,u,o),bt(s[u])&&(a=!0);if(a){let u=n.map(c=>bt(s[c])?s[c]:I(s[c]));return Ci(u).pipe(N(c=>{let l={};return c.forEach((d,f)=>{l[n[f]]=d}),l}))}return s}if(r&&(i=this.parser.interpolate(this.parser.getValue(r,n),o)),typeof i>"u"&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],n),o)),typeof i>"u"){let s={key:n,translateService:this};typeof o<"u"&&(s.interpolateParams=o),i=this.missingTranslationHandler.handle(s)}return typeof i<"u"?i:n}get(r,n){if(!fr(r)||!r.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(kt(o=>(o=this.getParsedResult(o,r,n),bt(o)?o:I(o))));{let o=this.getParsedResult(this.translations[this.currentLang],r,n);return bt(o)?o:I(o)}}getStreamOnTranslationChange(r,n){if(!fr(r)||!r.length)throw new Error('Parameter "key" required');return tt(Xt(()=>this.get(r,n)),this.onTranslationChange.pipe(be(o=>{let i=this.getParsedResult(o.translations,r,n);return typeof i.subscribe=="function"?i:I(i)})))}stream(r,n){if(!fr(r)||!r.length)throw new Error('Parameter "key" required');return tt(Xt(()=>this.get(r,n)),this.onLangChange.pipe(be(o=>{let i=this.getParsedResult(o.translations,r,n);return bt(i)?i:I(i)})))}instant(r,n){if(!fr(r)||!r.length)throw new Error('Parameter "key" required');let o=this.getParsedResult(this.translations[this.currentLang],r,n);if(bt(o)){if(r instanceof Array){let i={};return r.forEach((s,a)=>{i[r[a]]=r[a]}),i}return r}else return o}set(r,n,o=this.currentLang){this.translations[o][r]=this.compiler.compile(n,o),this.updateLangs(),this.onTranslationChange.emit({lang:o,translations:this.translations[o]})}changeLang(r){this.currentLang=r,this.onLangChange.emit({lang:r,translations:this.translations[r]}),this.defaultLang==null&&this.changeDefaultLang(r)}changeDefaultLang(r){this.defaultLang=r,this.onDefaultLangChange.emit({lang:r,translations:this.translations[r]})}reloadLang(r){return this.resetLang(r),this.getTranslation(r)}resetLang(r){this._translationRequests[r]=void 0,this.translations[r]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let r=window.navigator.languages?window.navigator.languages[0]:null;if(r=r||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,!(typeof r>"u"))return r.indexOf("-")!==-1&&(r=r.split("-")[0]),r.indexOf("_")!==-1&&(r=r.split("_")[0]),r}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let r=window.navigator.languages?window.navigator.languages[0]:null;return r=r||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,r}static \u0275fac=function(n){return new(n||t)(x(el),x(gi),x(vi),x(mi),x(js),x(zp),x(Hp),x(Wp),x(Gp))};static \u0275prov=b({token:t,factory:t.\u0275fac})}return t})();var Joe=(()=>{class t{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(r,n){this.translate=r,this._ref=n}updateValue(r,n,o){let i=s=>{this.value=s!==void 0?s:r,this.lastKey=r,this._ref.markForCheck()};if(o){let s=this.translate.getParsedResult(o,r,n);bt(s.subscribe)?s.subscribe(i):i(s)}this.translate.get(r,n).subscribe(i)}transform(r,...n){if(!r||!r.length)return r;if(Xc(r,this.lastKey)&&Xc(n,this.lastParams))return this.value;let o;if(fr(n[0])&&n.length)if(typeof n[0]=="string"&&n[0].length){let i=n[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{o=JSON.parse(i)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${n[0]}`)}}else typeof n[0]=="object"&&!Array.isArray(n[0])&&(o=n[0]);return this.lastKey=r,this.lastParams=n,this.updateValue(r,o),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(i=>{this.lastKey&&i.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(r,o,i.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(i=>{this.lastKey&&(this.lastKey=null,this.updateValue(r,o,i.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(r,o))})),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(n){return new(n||t)(w(qp,16),w(Nt,16))};static \u0275pipe=xo({name:"translate",type:t,pure:!1});static \u0275prov=b({token:t,factory:t.\u0275fac})}return t})(),Xoe=(()=>{class t{static forRoot(r={}){return{ngModule:t,providers:[r.loader||{provide:gi,useClass:cx},r.compiler||{provide:vi,useClass:fx},r.parser||{provide:mi,useClass:dx},r.missingTranslationHandler||{provide:js,useClass:lx},el,{provide:Hp,useValue:r.isolate},{provide:zp,useValue:r.useDefaultLang},{provide:Wp,useValue:r.extend},{provide:Gp,useValue:r.defaultLanguage},qp]}}static forChild(r={}){return{ngModule:t,providers:[r.loader||{provide:gi,useClass:cx},r.compiler||{provide:vi,useClass:fx},r.parser||{provide:mi,useClass:dx},r.missingTranslationHandler||{provide:js,useClass:lx},{provide:Hp,useValue:r.isolate},{provide:zp,useValue:r.useDefaultLang},{provide:Wp,useValue:r.extend},{provide:Gp,useValue:r.defaultLanguage},qp]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=Mt({type:t});static \u0275inj=_t({})}return t})();var k$="uiCulture",j$="CLX.LoginToken",V$="CLX.RefreshToken",U$="CLX.TokenExpire",nie=(()=>{let e=class e{getLanguage(){return this.getValue(k$)}getAccessToken(){let n=this.getValue(j$);return n?n.replace(/^"+|"+$/g,""):null}getRefreshToken(){return this.getValue(V$)}getTokenExpire(){return this.getValue(U$)}getPayload(){let n=this.getAccessToken(),o=n?n.split(".")[1]:null,i=o?o.replace("-","+").replace("_","/"):null,s=JSON.parse(window.atob(i||""));return s.roles="holder_roles"in s?s.holder_roles:s.roles,s}getValue(n){return sessionStorage.getItem(n)||localStorage.getItem(n)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();export{D as a,$ as b,Dx as c,P as d,se as e,Se as f,Di as g,Rx as h,Px as i,Ae as j,I as k,Sn as l,N as m,da as n,le as o,Xt as p,Qx as q,Ci as r,El as s,en as t,o0 as u,i0 as v,ke as w,a0 as x,c0 as y,l0 as z,Nn as A,kt as B,Sg as C,On as D,xe as E,d0 as F,Ng as G,p0 as H,Rn as I,pa as J,Ml as K,Ii as L,g0 as M,ga as N,be as O,m0 as P,ma as Q,Ce as R,v0 as S,y0 as T,C as U,Re as V,b as W,_t as X,E as Y,x as Z,y as _,Um as $,Mt as aa,H as ba,xo as ca,s_ as da,Qe as ea,K6 as fa,nt as ga,Y6 as ha,Q6 as ia,J6 as ja,X6 as ka,Fe as la,gf as ma,rn as na,on as oa,Rv as pa,_e as qa,G as ra,e5 as sa,FM as ta,t5 as ua,w as va,uT as wa,Tr as xa,bo as ya,rt as za,zi as Aa,pe as Ba,dn as Ca,Ie as Da,i5 as Ea,Pf as Fa,zS as Ga,Rr as Ha,sA as Ia,xu as Ja,s5 as Ka,a5 as La,u5 as Ma,c5 as Na,l5 as Oa,d5 as Pa,f5 as Qa,h5 as Ra,Xy as Sa,eD as Ta,Vf as Ua,tD as Va,nD as Wa,CA as Xa,p5 as Ya,IA as Za,ht as _a,g5 as $a,m5 as ab,v5 as bb,PA as cb,iD as db,sD as eb,y5 as fb,aD as gb,uD as hb,D5 as ib,w5 as jb,kA as kb,cD as lb,jA as mb,VA as nb,UA as ob,BA as pb,b5 as qb,$A as rb,He as sb,dD as tb,C5 as ub,E5 as vb,I5 as wb,x5 as xb,_5 as yb,M5 as zb,T5 as Ab,S5 as Bb,A5 as Cb,N5 as Db,O5 as Eb,R5 as Fb,Pr as Gb,Gi as Hb,Nt as Ib,Wn as Jb,pN as Kb,P5 as Lb,Ue as Mb,qi as Nb,SN as Ob,zN as Pb,X5 as Qb,e9 as Rb,t9 as Sb,n9 as Tb,r9 as Ub,o9 as Vb,i9 as Wb,s9 as Xb,a9 as Yb,nO as Zb,iO as _b,vn as $b,Kn as ac,jD as bc,fh as cc,Zn as dc,hO as ec,b9 as fc,C9 as gc,ZD as hc,$9 as ic,YO as jc,L as kc,as as lc,ls as mc,Dn as nc,$h as oc,Vr as pc,_R as qc,lc as rc,cw as sc,c7 as tc,l7 as uc,d7 as vc,k7 as wc,de as xc,Y as yc,B as zc,ee as Ac,ge as Bc,ab as Cc,H7 as Dc,z7 as Ec,Ge as Fc,mt as Gc,W7 as Hc,Is as Ic,q7 as Jc,K7 as Kc,eZ as Lc,jw as Mc,_s as Nc,uZ as Oc,cZ as Pc,lZ as Qc,dZ as Rc,fZ as Sc,hZ as Tc,gZ as Uc,bZ as Vc,CZ as Wc,bn as Xc,n1 as Yc,_b as Zc,rr as _c,mb as $c,UZ as ad,BZ as bd,I1 as cd,HZ as dd,M1 as ed,zZ as fd,S1 as gd,O1 as hd,P1 as id,L1 as jd,j1 as kd,qb as ld,GZ as md,WZ as nd,z1 as od,W1 as pd,Z1 as qd,qZ as rd,ZZ as sd,KZ as td,DL as ud,Vp as vd,RU as wd,C2 as xd,E$ as yd,x$ as zd,Pk as Ad,M$ as Bd,A$ as Cd,L$ as Dd,Boe as Ed,gi as Fd,qp as Gd,Joe as Hd,Xoe as Id,nie as Jd}; diff --git a/public/apps/webapp-schulverwaltung/chunk-TIZKDD7Y.js b/public/apps/webapp-schulverwaltung/chunk-TIZKDD7Y.js new file mode 100644 index 00000000..9d006317 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-TIZKDD7Y.js @@ -0,0 +1,2 @@ +import{a as Kt}from"./chunk-QR6JUXUH.js";import{a as qt,b as Ut}from"./chunk-DXYHDL5D.js";import{a as Gt}from"./chunk-TK3HGFHH.js";import{a as Vt}from"./chunk-TNMAZX5O.js";import{a as Wt}from"./chunk-2IXEFCAH.js";import{c as je,d as Oe}from"./chunk-X2BR3YJG.js";import{b as jt,d as Nt}from"./chunk-LO5XSJLW.js";import"./chunk-DMYOU5OM.js";import"./chunk-RWNJF4OZ.js";import{A as Ce,B as Qe,L as Rt,M as $t,N as Ft,P as fe,T as Y,U as ue,V as Et,W as Pt,X as Bt,Y as Ht,c as Tt,j as Mt,t as Se,u as Lt,x as Be}from"./chunk-GI4AZI25.js";import{a as kt,e as _e}from"./chunk-Q5U6YZUT.js";import{a as Dt,b as Ot}from"./chunk-N6FFLIGM.js";import{a as z,c as wt}from"./chunk-33NXTXD7.js";import{a as gt,b as yt,c as vt,d as ht,e as St,f as Ct,g as It,j as xt,u as te,w as At}from"./chunk-FTRAQKUW.js";import{a as le}from"./chunk-3AROKYRB.js";import{$ as x,$a as y,$c as bt,Ad as de,Bb as a,Cb as m,Da as xe,Db as F,E as B,Fb as he,Ga as b,Gd as me,Hd as D,I as Xe,Ia as l,Id as w,Ja as re,Jd as V,K as Je,L as j,La as it,Mc as Ke,N as Ze,Nb as lt,O as R,Q as et,Rb as Ae,Sa as c,Sb as ae,Ta as d,Tb as K,Ua as S,Va as k,Vc as _t,W as se,Wa as T,Wb as Q,Wc as H,Xb as mt,Ya as X,Z as O,Zc as Me,_a as h,a as qe,ac as ft,ad as Le,bd as Re,e as Ie,f as Ue,fb as st,fd as $e,g as We,gb as rt,ha as E,hb as ot,hd as Fe,ia as P,ib as A,jb as f,jd as Ee,k as q,kb as $,kd as Pe,la as tt,lb as g,m as v,mb as J,n as C,pb as at,pc as ut,qb as ct,qc as ke,ra as nt,rb as pt,rc as ce,rd as pe,sb as oe,sc as Te,sd as De,tb as M,td as we,ua as o,ub as Z,ud as ee,va as _,vb as W,w as U,xb as dt}from"./chunk-T7QWSMKM.js";var He=(()=>{let i=class i{constructor(e,n,s,p,u,L,I,G){this.fb=e,this.router=n,this.toastService=s,this.translate=p,this.presenceTypesService=u,this.updateService=L,this.storageService=I,this.settings=G,this.formGroup=this.createFormGroup(),this.saving$=new Ue(!1),this.submitted$=new Ue(!1),this.absenceTypes$=C([this.getConfirmationTypes(),this.getHalfDayType()]).pipe(v(([ne,ie])=>ie?[...ne,ie]:ne)),this.absenceTypeIdErrors$=kt(q(this.formGroup),this.submitted$,"absenceTypeId"),this.destroy$=new Ie}ngOnInit(){this.selectedLessonIds$.pipe(B(1),U(Pt)).subscribe(()=>this.navigateBack())}ngOnDestroy(){this.destroy$.next()}onSubmit(){if(this.submitted$.next(!0),this.formGroup.valid){let{absenceTypeId:e}=this.formGroup.value;this.save(e)}}cancel(){this.navigateBack()}getSelectedCount(){return this.selectedLessonIds$.pipe(v(e=>e.length))}getConfirmationTypes(){return this.presenceTypesService.confirmationTypes$.pipe(v(e=>e.filter(n=>n.IsAbsence&&n.Id!==this.settings.halfDayPresenceTypeId)))}getHalfDayType(){return q(null)}createFormGroup(){return this.fb.group({absenceTypeId:[null,bt.required]})}save(e){this.saving$.next(!0),this.selectedLessonIds$.pipe(B(1),R(n=>this.updateService.editLessonPresences(n,[Number(this.storageService.getPayload()?.id_person)],e)),Xe(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}onSaveSuccess(){this.toastService.success(this.translate.instant("my-absences.confirm.save-success")),this.navigateBack()}};i.\u0275fac=function(n){return new(n||i)(_(pe),_(ce),_(le),_(me),_(Y),_(ue),_(V),_(_t))},i.\u0275cmp=x({type:i,selectors:[["ng-component"]],decls:0,vars:0,template:function(n,s){},encapsulation:2});let t=i;return t})();var ge=(()=>{let i=class i{constructor(e,n,s){this.settings=e,this.storageService=n,this.studentsService=s,this.studentId$=new We(1),this.lessonAbsences$=this.studentId$.pipe(R(this.loadLessonAbsences.bind(this)),j(1)),this.lessonIncidents$=this.studentId$.pipe(R(this.loadLessonIncidents.bind(this)),j(1)),this.lessonPresences$=this.getLessonPresences(),this.checkableAbsences$=this.getAbsences(this.settings.checkableAbsenceStateId),this.openAbsences$=this.getAbsences(this.settings.unconfirmedAbsenceStateId),this.excusedAbsences$=this.getAbsences(this.settings.excusedAbsenceStateId),this.unexcusedAbsences$=this.getAbsences(this.settings.unexcusedAbsenceStateId),this.incidents$=this.getAbsences(null),this.openLessonAbsences$=C([this.openAbsences$.pipe(U(te)),this.lessonAbsences$]).pipe(v(_e(this.getLessonAbsences.bind(this))),j(1)),this.checkableLessonAbsences$=C([this.checkableAbsences$.pipe(U(te)),this.lessonAbsences$]).pipe(v(_e(this.getLessonAbsences.bind(this))),j(1)),this.excusedLessonAbsences$=C([this.excusedAbsences$.pipe(U(te)),this.lessonAbsences$]).pipe(v(_e(this.getLessonAbsences.bind(this))),j(1)),this.unexcusedLessonAbsences$=C([this.unexcusedAbsences$.pipe(U(te)),this.lessonAbsences$]).pipe(v(_e(this.getLessonAbsences.bind(this))),j(1)),this.incidentsLessonAbsences$=C([this.incidents$.pipe(U(te)),this.lessonIncidents$]).pipe(v(_e(this.getLessonIncidents.bind(this))),j(1)),this.counts$=this.getCounts();let p=this.storageService.getPayload()?.id_person;p&&this.studentId$.next(Number(p))}reset(){this.studentId$.pipe(B(1)).subscribe(e=>this.studentId$.next(e))}getLessonPresences(){return this.getCached(C([this.studentId$,this.lessonAbsences$,this.lessonIncidents$]).pipe(R(([e,n,s])=>this.loadTimetableEntries(e,n,s).pipe(v(p=>this.buildLessonPresences(n,s,p)))),v(Ft)))}getAbsences(e){return this.getCached(this.lessonPresences$.pipe(v(n=>n?.filter(s=>s.ConfirmationStateId===e)||null)))}getLessonAbsences(e,n){let s=e.map(p=>p.LessonRef.Id);return n.filter(p=>s.includes(p.LessonRef.Id))}getLessonIncidents(e,n){let s=e.map(p=>p.LessonRef.Id);return n.filter(p=>s.includes(p.LessonRef.Id))}getCounts(){return C([this.getCount(this.checkableAbsences$),this.getCount(this.openAbsences$),this.getCount(this.excusedAbsences$),this.getCount(this.unexcusedAbsences$),this.getCount(this.incidents$)]).pipe(v(([e,n,s,p,u])=>({checkableAbsences:e,openAbsences:n,excusedAbsences:s,unexcusedAbsences:p,incidents:u,halfDays:null})))}getCached(e){return e.pipe(Ze(null),Je({connector:()=>new We(1)}))}getCount(e){return e.pipe(v(n=>n?.length??null))}loadLessonAbsences(e){return this.studentsService.getLessonAbsences(e)}loadLessonIncidents(e){return this.studentsService.getLessonIncidents(e)}loadTimetableEntries(e,n,s){return this.studentsService.getTimetableEntries(e,{"filter.Id":`;${[...n,...s].map(p=>p.LessonRef.Id).join(";")}`})}buildLessonPresences(e,n,s){return[...e,...n].map(p=>this.buildLessonPresence(p,s)).filter(te)}buildLessonPresence(e,n){let s=n.find(p=>p.Id===e.LessonRef.Id);return s?{Id:"",LessonRef:{Id:e.LessonRef.Id,HRef:e.LessonRef.HRef?e.LessonRef.HRef:null},StudentRef:e.StudentRef,EventRef:{Id:0,HRef:null},TypeRef:e.TypeRef,RegistrationRef:{Id:0,HRef:null},StudyClassRef:{Id:0,HRef:null},ConfirmationStateId:"ConfirmationStateId"in e?e.ConfirmationStateId:null,EventDesignation:s.EventDesignation,HasStudyCourseConfirmationCode:!1,LessonDateTimeFrom:s.From,LessonDateTimeTo:s.To,Comment:null,Date:s.From,Type:e.Type,StudentFullName:e.StudentFullName,StudyClassNumber:"",TeacherInformation:s.EventManagerInformation}:null}};i.\u0275fac=function(n){return new(n||i)(O(H),O(V),O(je))},i.\u0275prov=se({token:i,factory:i.\u0275fac});let t=i;return t})();var fn=t=>({count:t}),un=t=>({"border-top pt-3":t});function _n(t,i){if(t&1&&(c(0,"div",11),f(1),a(2,"translate"),d()),t&2){let r=i.bkdLet;o(),g(" ",F(2,1,r===1?"my-absences.confirm.lesson-selected":"my-absences.confirm.lessons-selected",W(4,fn,r))," ")}}function bn(t,i){if(t&1&&(c(0,"div",17),f(1),a(2,"translate"),d()),t&2){let r=i.$implicit;o(),g(" ",F(2,1,"global.validation-errors."+r.error,r.params)," ")}}function gn(t,i){if(t&1&&(k(0),b(1,bn,3,4,"div",16),a(2,"async"),T()),t&2){let r=y(2);o(),l("ngForOf",m(2,1,r.absenceTypeIdErrors$))}}function yn(t,i){if(t&1&&(c(0,"div",12),S(1,"input",13),a(2,"async"),c(3,"label",14),f(4),d(),b(5,gn,3,3,"ng-container",15),a(6,"async"),d()),t&2){let r,e,n=i.$implicit,s=i.index,p=y();l("ngClass",W(12,un,n.IsHalfDay)),o(),re("is-invalid",((r=(r=m(2,8,p.absenceTypeIdErrors$))==null?null:r.length)!==null&&r!==void 0?r:0)>0),l("id","absence-type-"+s)("value",n.Id),o(2),l("for","absence-type-"+s),o(),g(" ",n.Designation," "),o(),l("ngIf",((e=(e=m(6,10,p.absenceTypes$))==null?null:e.length)!==null&&e!==void 0?e:0)-1===s)}}function vn(t,i){t&1&&(c(0,"div",18)(1,"span",19),f(2,"Loading..."),d()())}var Jt=(()=>{let i=class i extends He{constructor(e,n,s,p,u,L,I,G,ne,ie){super(e,n,s,p,u,L,I,G),this.myAbsencesService=ne,this.selectionService=ie,this.titleKey="my-absences.confirm.title",this.selectedLessonIds$=this.selectionService.selectedIds$.pipe(v(Ve=>de(ee(Ve.map(Ge=>Ge.lessonIds))))),this.confirmationStateId=this.settings.unconfirmedAbsencesRefreshTime}onSaveSuccess(){this.selectionService.clear(),this.myAbsencesService.reset(),super.onSaveSuccess()}navigateBack(){this.router.navigate(["/my-absences"])}};i.\u0275fac=function(n){return new(n||i)(_(pe),_(ce),_(le),_(me),_(Y),_(ue),_(V),_(H),_(ge),_(fe))},i.\u0275cmp=x({type:i,selectors:[["bkd-my-absences-confirm"]],standalone:!0,features:[xe,M],decls:28,vars:35,consts:[[1,"bkd-container","bkd-container-limited"],["class","mb-3 pb-3 border-bottom",4,"bkdLet"],[3,"ngSubmit","formGroup"],[1,"form-group","mb-3","border-bottom"],[1,"form-label"],["class","form-check my-3",3,"ngClass",4,"ngFor","ngForOf"],[1,"remark"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-secondary",3,"click","disabled"],["type","submit",1,"btn","btn-primary","ms-2",3,"disabled"],["class","spinner-border spinner-border-sm align-middle","role","status",4,"ngIf"],[1,"mb-3","pb-3","border-bottom"],[1,"form-check","my-3",3,"ngClass"],["type","radio","formControlName","absenceTypeId",1,"form-check-input",3,"id","value"],[1,"form-check-label",3,"for"],[4,"ngIf"],["class","invalid-feedback mt-4",4,"ngFor","ngForOf"],[1,"invalid-feedback","mt-4"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(n,s){n&1&&(c(0,"div",0)(1,"h1"),f(2),a(3,"translate"),d(),b(4,_n,3,6,"div",1),a(5,"async"),c(6,"form",2),h("ngSubmit",function(){return s.onSubmit()}),c(7,"div",3)(8,"label",4),f(9),a(10,"translate"),a(11,"addSpace"),d(),b(12,yn,7,14,"div",5),a(13,"async"),d(),c(14,"div",6),f(15),a(16,"translate"),d(),c(17,"div",7)(18,"button",8),a(19,"async"),h("click",function(){return s.cancel()}),f(20),a(21,"translate"),d(),c(22,"button",9),a(23,"async"),f(24),a(25,"translate"),b(26,vn,3,0,"div",10),a(27,"async"),d()()()()),n&2&&(o(2),$(m(3,12,s.titleKey)),o(2),l("bkdLet",m(5,14,s.getSelectedCount())),o(2),l("formGroup",s.formGroup),o(3),J("",m(10,16,"my-absences.confirm.choose-presence-type"),"",F(11,18,":",":"),""),o(3),l("ngForOf",m(13,21,s.absenceTypes$)),o(3),g(" ",m(16,23,"my-absences.confirm.remark")," "),o(3),l("disabled",m(19,25,s.saving$)),o(2),g(" ",m(21,27,"my-absences.confirm.cancel")," "),o(2),l("disabled",m(23,29,s.saving$)),o(2),g(" ",m(25,31,"my-absences.confirm.save")," "),o(2),l("ngIf",m(27,33,s.saving$)))},dependencies:[z,De,$e,Me,Fe,Le,Re,we,Ee,Pe,ae,Ae,K,Q,w,D,Oe],changeDetection:0});let t=i;return t})();var ye=(()=>{let i=class i extends Ut{get preventAbsencesAfterStart(){if(this._preventAbsencesAfterStart==null){let e=this.storageService.getPayload()?.instance_id,n=this.settings.preventStudentAbsenceAfterLessonStart;this._preventAbsencesAfterStart=e?n.includes(e):!1}return this._preventAbsencesAfterStart}constructor(e,n,s,p,u,L){super(e,n,L,s,"/my-absences/report"),this.studentsService=p,this.storageService=u}getInitialFilter(){return{dateFrom:null,dateTo:null}}isValidFilter(e){return!!(e.dateFrom||e.dateTo)}loadEntries(e,n,s){let p=this.buildRequestParamsFromFilter(e).set("sort","From.asc");return this.loadingService.load(this.loadTimetableEntries(p).pipe(v(u=>this.filterAbsencesAfterLessonStart(u)),R(u=>C([q(u),this.loadLessonAbsences(u),this.loadLessonDispensations(u)])),v(([u,L,I])=>this.buildLessonPresences(u,L,I)),v(u=>({offset:0,total:u.length,entries:u}))),qt)}filterAbsencesAfterLessonStart(e){return this.preventAbsencesAfterStart?e.filter(n=>n.From.getTime()>=new Date().getTime()):e}buildParamsFromFilter(e){let{dateFrom:n,dateTo:s}=e,p={};return n&&(p.dateFrom=Se(n,"yyyy-MM-dd")),s&&(p.dateTo=Se(s,"yyyy-MM-dd")),p}buildRequestParamsFromFilter(e){let n=new ft;return e.dateFrom&&(n=n.set("filter.From",`>${Se(Lt(e.dateFrom,1),"yyyy-MM-dd")}`)),e.dateTo&&(n=n.set("filter.To",`<${Se(Tt(e.dateTo,1),"yyyy-MM-dd")}`)),n}get studentId(){let e=this.storageService.getPayload()?.id_person;if(e==null)throw new Error("No student id available");return Number(e)}loadTimetableEntries(e){return this.studentsService.getTimetableEntries(this.studentId,e)}loadLessonAbsences(e){return e.length>0?this.studentsService.getLessonAbsences(this.studentId,{"filter.Id":`;${e.map(n=>n.Id).join(";")}`}):q([])}loadLessonDispensations(e){return e.length>0?this.studentsService.getLessonDispensations(this.studentId,{"filter.Id":`;${e.map(n=>n.Id).join(";")}`}):q([])}buildLessonPresences(e,n,s){return e.map(p=>this.buildLessonPresence(p,n,s))}buildLessonPresence(e,n,s){let p=n.find(I=>I.LessonRef.Id===e.Id),u=s.find(I=>I.LessonRef.Id===e.Id),L=this.buildLessonPresenceTypeRef(p,u);return{Id:"",LessonRef:{Id:e.Id,HRef:null},StudentRef:(p||u)?.StudentRef||{Id:this.studentId,HRef:null},EventRef:{Id:0,HRef:null},TypeRef:L,RegistrationRef:{Id:0,HRef:null},StudyClassRef:{Id:0,HRef:null},ConfirmationStateId:p?.ConfirmationStateId||u&&this.settings.excusedAbsenceStateId||null,EventDesignation:e.EventDesignation||"",HasStudyCourseConfirmationCode:!1,LessonDateTimeFrom:e.From||new Date,LessonDateTimeTo:e.To||new Date,Comment:null,Date:e.From||new Date,Type:(p||u)?.Type||null,StudentFullName:(p||u)?.StudentFullName||"",StudyClassNumber:"",TeacherInformation:e.EventManagerInformation}}buildLessonPresenceTypeRef(e,n){return e?qe({},e.TypeRef):n?qe({},n.TypeRef):{Id:null,HRef:null}}};i.\u0275fac=function(n){return new(n||i)(O(lt),O(Ot),O(H),O(je),O(V),O(Wt))},i.\u0275prov=se({token:i,factory:i.\u0275fac});let t=i;return t})();var ve=(()=>{let i=class i extends Rt{constructor(){super(...arguments),this.selectedIds$=this.selection$.pipe(v($t))}};i.\u0275fac=(()=>{let e;return function(s){return(e||(e=tt(i)))(s||i)}})(),i.\u0275prov=se({token:i,factory:i.\u0275fac});let t=i;return t})();var hn=t=>({count:t}),Sn=t=>({"border-top pt-3":t});function Cn(t,i){if(t&1&&(c(0,"div",11),f(1),a(2,"translate"),d()),t&2){let r=i.bkdLet;o(),g(" ",F(2,1,r===1?"my-absences.confirm.lesson-selected":"my-absences.confirm.lessons-selected",W(4,hn,r))," ")}}function In(t,i){if(t&1&&(c(0,"div",17),f(1),a(2,"translate"),d()),t&2){let r=i.$implicit;o(),g(" ",F(2,1,"global.validation-errors."+r.error,r.params)," ")}}function xn(t,i){if(t&1&&(k(0),b(1,In,3,4,"div",16),a(2,"async"),T()),t&2){let r=y(2);o(),l("ngForOf",m(2,1,r.absenceTypeIdErrors$))}}function An(t,i){if(t&1&&(c(0,"div",12),S(1,"input",13),a(2,"async"),c(3,"label",14),f(4),d(),b(5,xn,3,3,"ng-container",15),a(6,"async"),d()),t&2){let r,e,n=i.$implicit,s=i.index,p=y();l("ngClass",W(12,Sn,n.IsHalfDay)),o(),re("is-invalid",((r=(r=m(2,8,p.absenceTypeIdErrors$))==null?null:r.length)!==null&&r!==void 0?r:0)>0),l("id","absence-type-"+s)("value",n.Id),o(2),l("for","absence-type-"+s),o(),g(" ",n.Designation," "),o(),l("ngIf",((e=(e=m(6,10,p.absenceTypes$))==null?null:e.length)!==null&&e!==void 0?e:0)-1===s)}}function kn(t,i){t&1&&(c(0,"div",18)(1,"span",19),f(2,"Loading..."),d()())}var tn=(()=>{let i=class i extends He{constructor(e,n,s,p,u,L,I,G,ne,ie){super(e,n,s,p,u,L,I,G),this.state=ne,this.selectionService=ie,this.titleKey="my-absences.report.title",this.selectedLessonIds$=this.selectionService.selectedIds$.pipe(v(Ve=>de(ee(Ve.map(Ge=>Ge.lessonIds))))),this.confirmationStateId=this.settings.checkableAbsenceStateId}getHalfDayType(){return this.presenceTypesService.getPresenceType(this.settings.halfDayPresenceTypeId).pipe(v(e=>e.Active?e:null))}onSaveSuccess(){this.selectionService.clear(),this.state.resetEntries(),super.onSaveSuccess()}navigateBack(){this.state.queryParams$.pipe(B(1)).subscribe(e=>{this.router.navigate(["/my-absences/report"],{queryParams:e})})}};i.\u0275fac=function(n){return new(n||i)(_(pe),_(ce),_(le),_(me),_(Y),_(ue),_(V),_(H),_(ye),_(ve))},i.\u0275cmp=x({type:i,selectors:[["bkd-my-absences-confirm"]],standalone:!0,features:[xe,M],decls:28,vars:35,consts:[[1,"bkd-container","bkd-container-limited"],["class","mb-3 pb-3 border-bottom",4,"bkdLet"],[3,"ngSubmit","formGroup"],[1,"form-group","mb-3","border-bottom"],[1,"form-label"],["class","form-check my-3",3,"ngClass",4,"ngFor","ngForOf"],[1,"remark"],[1,"d-flex","justify-content-end"],["type","button",1,"btn","btn-outline-secondary",3,"click","disabled"],["type","submit",1,"btn","btn-primary","ms-2",3,"disabled"],["class","spinner-border spinner-border-sm align-middle","role","status",4,"ngIf"],[1,"mb-3","pb-3","border-bottom"],[1,"form-check","my-3",3,"ngClass"],["type","radio","formControlName","absenceTypeId",1,"form-check-input",3,"id","value"],[1,"form-check-label",3,"for"],[4,"ngIf"],["class","invalid-feedback mt-4",4,"ngFor","ngForOf"],[1,"invalid-feedback","mt-4"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(n,s){n&1&&(c(0,"div",0)(1,"h1"),f(2),a(3,"translate"),d(),b(4,Cn,3,6,"div",1),a(5,"async"),c(6,"form",2),h("ngSubmit",function(){return s.onSubmit()}),c(7,"div",3)(8,"label",4),f(9),a(10,"translate"),a(11,"addSpace"),d(),b(12,An,7,14,"div",5),a(13,"async"),d(),c(14,"div",6),f(15),a(16,"translate"),d(),c(17,"div",7)(18,"button",8),a(19,"async"),h("click",function(){return s.cancel()}),f(20),a(21,"translate"),d(),c(22,"button",9),a(23,"async"),f(24),a(25,"translate"),b(26,kn,3,0,"div",10),a(27,"async"),d()()()()),n&2&&(o(2),$(m(3,12,s.titleKey)),o(2),l("bkdLet",m(5,14,s.getSelectedCount())),o(2),l("formGroup",s.formGroup),o(3),J("",m(10,16,"my-absences.confirm.choose-presence-type"),"",F(11,18,":",":"),""),o(3),l("ngForOf",m(13,21,s.absenceTypes$)),o(3),g(" ",m(16,23,"my-absences.confirm.remark")," "),o(3),l("disabled",m(19,25,s.saving$)),o(2),g(" ",m(21,27,"my-absences.confirm.cancel")," "),o(2),l("disabled",m(23,29,s.saving$)),o(2),g(" ",m(25,31,"my-absences.confirm.save")," "),o(2),l("ngIf",m(27,33,s.saving$)))},dependencies:[z,De,$e,Me,Fe,Le,Re,we,Ee,Pe,ae,Ae,K,Q,w,D,Oe],changeDetection:0});let t=i;return t})();var Tn=()=>["/my-absences"],sn=(()=>{let i=class i{constructor(){this.filter={dateFrom:null,dateTo:null},this.filterChange=new nt,this.minDate={year:new Date().getFullYear(),month:new Date().getMonth()+1,day:new Date().getDate()}}updateDateFrom(e){this.filter.dateFrom=e,e&&(this.filter.dateTo=e)}show(){this.filterChange.emit({dateFrom:nn(this.filter.dateFrom),dateTo:nn(this.filter.dateTo)})}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=x({type:i,selectors:[["bkd-my-absences-report-header"]],inputs:{filter:"filter"},outputs:{filterChange:"filterChange"},standalone:!0,features:[oe([{provide:Ct,useClass:xt},{provide:It,useClass:Vt}]),M],decls:19,vars:18,consts:[[3,"link"],[1,"filters"],[1,"form-group"],[1,"form-label"],[3,"valueChange","minDate","value"],[1,"buttons"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(n,s){n&1&&(S(0,"bkd-backlink",0),c(1,"h1"),f(2),a(3,"translate"),d(),c(4,"div",1)(5,"div",2)(6,"label",3),f(7),a(8,"translate"),d(),c(9,"bkd-date-select",4),h("valueChange",function(u){return s.updateDateFrom(u)}),d()(),c(10,"div",2)(11,"label",3),f(12),a(13,"translate"),d(),c(14,"bkd-date-select",4),pt("valueChange",function(u){return ct(s.filter.dateTo,u)||(s.filter.dateTo=u),u}),d()(),c(15,"div",5)(16,"button",6),h("click",function(){return s.show()}),f(17),a(18,"translate"),d()()()),n&2&&(l("link",Z(17,Tn)),o(2),$(m(3,9,"my-absences.report.title")),o(5),$(m(8,11,"my-absences.report.header.date-from")),o(2),l("minDate",s.minDate)("value",s.filter.dateFrom),o(3),$(m(13,13,"my-absences.report.header.date-to")),o(2),l("minDate",s.minDate),at("value",s.filter.dateTo),o(3),g(" ",m(18,15,"my-absences.report.header.show")," "))},dependencies:[Ht,Kt,w,D],styles:["[_nghost-%COMP%]{display:block;padding-bottom:1rem;border-bottom:1px solid #dee2e6}.filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.form-group[_ngcontent-%COMP%]{flex:1;min-width:20rem;max-width:40rem;margin-right:1rem;margin-bottom:.5rem}.buttons[_ngcontent-%COMP%]{flex:none;margin-top:1.625rem;margin-right:0}@media (max-width: 575.98px){[_nghost-%COMP%]{padding-bottom:0}.buttons[_ngcontent-%COMP%]{width:100%;margin-top:1rem;margin-bottom:1rem}}"],changeDetection:0});let t=i;return t})();function nn(t){return t?Mt(t):null}var Mn=(t,i,r)=>({selection:t,entries:i,loadingPage:r});function Ln(t,i){if(t&1){let r=X();c(0,"div",15)(1,"input",16,6),a(3,"async"),h("change",function(){E(r);let n=y(2).$implicit,s=y(6);return P(s.selectionService.toggle(n))}),d()()}if(t&2){let r=y(2).$implicit,e=y(6);o(),l("checked",m(3,1,e.selectionService.isSelected$(r)))}}function Rn(t,i){if(t&1&&(c(0,"div")(1,"i",20),f(2),d()()),t&2){let r=y().bkdLet;it("checkbox presence-category ",r.category,""),o(2),$(r.icon)}}function $n(t,i){if(t&1&&(k(0),b(1,Ln,4,3,"div",29)(2,Rn,3,4,"ng-template",null,5,he),T()),t&2){let r=i.bkdLet,e=A(3);o(),l("ngIf",!r)("ngIfElse",e)}}function Fn(t,i){if(t&1&&(k(0),f(1),T()),t&2){let r=y().$implicit;o(),g(", ",r.StudyClassNumber,"")}}function En(t,i){if(t&1&&(c(0,"div",31),f(1),d()),t&2){let r=y().bkdLet;o(),g(" ",r," ")}}function Pn(t,i){if(t&1&&(k(0),b(1,En,2,1,"div",30),T()),t&2){let r=i.bkdLet;o(),l("ngIf",r)}}function Dn(t,i){if(t&1){let r=X();c(0,"div",22,4),h("click",function(n){E(r);let s=A(1),p=y(6);return P(p.onRowClick(n,s))}),b(2,$n,4,2,"ng-container",7),a(3,"async"),c(4,"div",23),f(5),b(6,Fn,2,1,"ng-container",12),d(),c(7,"div",24),f(8),a(9,"date"),a(10,"date"),d(),c(11,"div",25),f(12),d(),b(13,Pn,2,1,"ng-container",7),a(14,"async"),c(15,"div",26),f(16),a(17,"date"),d(),c(18,"div",27),f(19),a(20,"bkdDaysDifference"),d(),c(21,"div",28),f(22),a(23,"date"),a(24,"bkdDaysDifference"),d()()}if(t&2){let r=i.$implicit,e=y(6);o(2),l("bkdLet",m(3,11,e.getPresenceCategory(r))),o(3),g(" ",r.EventDesignation,""),o(),l("ngIf",r.StudyClassNumber),o(2),J(" ",F(9,13,r.LessonDateTimeFrom,"HH:mm"),"\u2013",F(10,16,r.LessonDateTimeTo,"HH:mm")," "),o(4),g(" ",r.TeacherInformation," "),o(),l("bkdLet",m(14,19,e.getPresenceTypeDesignation(r))),o(3),g(" ",F(17,21,r.LessonDateTimeFrom,"dd.MM.yyyy")," "),o(3),g(" ",m(20,24,r.LessonDateTimeFrom)," "),o(3),J(" ",F(23,26,r.LessonDateTimeFrom,"dd.MM.yyyy"),", ",m(24,29,r.LessonDateTimeFrom)," ")}}function wn(t,i){if(t&1){let r=X();c(0,"div")(1,"div",14,3),h("click",function(n){E(r);let s=A(2),p=y(5);return P(p.onRowClick(n,s))}),c(3,"div",15)(4,"input",16),a(5,"async"),h("change",function(n){E(r);let s=y(5);return P(s.toggleAll(n.target==null?null:n.target.checked))}),d()(),c(6,"div",17),f(7),a(8,"translate"),d(),c(9,"div",18)(10,"a",19),a(11,"async"),c(12,"i",20),f(13,"edit"),d()()()(),b(14,Dn,25,31,"div",21),d()}if(t&2){let r,e=y(4).bkdLet,n=y();o(4),l("checked",m(5,5,n.allSelected$)),o(3),g(" ",m(8,7,"my-absences.report.list.all")," "),o(3),re("disabled",((r=m(11,9,n.selectionService.selection$))==null?null:r.length)===0),o(4),l("ngForOf",e.entries)}}function Bn(t,i){t&1&&S(0,"bkd-spinner",32)}function jn(t,i){if(t&1&&(c(0,"div",11),b(1,wn,15,11,"div",12)(2,Bn,1,0,"bkd-spinner",13),d()),t&2){let r=y(3).bkdLet;o(),l("ngIf",r.entries&&r.entries.length>0),o(),l("ngIf",r.loadingPage)}}function On(t,i){t&1&&(c(0,"p",33),f(1),a(2,"translate"),d()),t&2&&(o(),g(" ",m(2,1,"my-absences.report.no-entries")," "))}function Nn(t,i){if(t&1&&(k(0),b(1,jn,3,2,"div",10)(2,On,3,3,"ng-template",null,2,he),T()),t&2){let r=A(3),e=y(2).bkdLet;o(),l("ngIf",e.entries&&e.entries.length>0||e.loadingPage)("ngIfElse",r)}}function Hn(t,i){t&1&&S(0,"bkd-spinner")}function Vn(t,i){if(t&1&&(k(0),b(1,Nn,4,2,"ng-container",9),a(2,"async"),b(3,Hn,1,0,"ng-template",null,1,he),T()),t&2){let r=A(4),e=y(2);o(),l("ngIf",m(2,2,e.state.loading$)===!1)("ngIfElse",r)}}function Gn(t,i){t&1&&(c(0,"p",33),f(1),a(2,"translate"),d()),t&2&&(o(),$(m(2,1,"my-absences.report.no-filter")))}function qn(t,i){if(t&1){let r=X();k(0),c(1,"bkd-my-absences-report-header",8),a(2,"async"),h("filterChange",function(n){E(r);let s=y();return P(s.state.setFilter(n))}),d(),b(3,Vn,5,4,"ng-container",9),a(4,"async"),b(5,Gn,3,3,"ng-template",null,0,he),T()}if(t&2){let r=A(6),e=y();o(),l("filter",m(2,3,e.filterFromParams$)),o(2),l("ngIf",m(4,5,e.state.isFilterValid$))("ngIfElse",r)}}var rn=(()=>{let i=class i{constructor(e,n,s,p,u,L){this.state=e,this.selectionService=n,this.route=s,this.scrollPosition=p,this.presenceTypesService=u,this.settings=L,this.filterFromParams$=this.route.queryParams.pipe(v(Un)),this.allSelected$=C([this.selectionService.selection$,this.state.entries$.pipe(R(I=>C(I.map(G=>this.getPresenceType(G)))))]).pipe(v(([I,G])=>I.length>0&&I.length===G.filter(At(Be)).length)),this.destroy$=new Ie}ngOnInit(){this.filterFromParams$.pipe(B(1)).subscribe(e=>this.state.setFilter(e)),this.state.validFilter$.pipe(et(this.destroy$)).subscribe(()=>this.selectionService.clear())}ngAfterViewInit(){this.scrollPosition.restore()}ngOnDestroy(){this.destroy$.next()}getPresenceCategory(e){return this.getPresenceType(e).pipe(v(n=>Be(n)?e.ConfirmationStateId===this.settings.checkableAbsenceStateId?{category:Ce.Unapproved,icon:Qe(Ce.Unapproved)}:{category:Ce.Absent,icon:Qe(Ce.Absent)}:null))}getPresenceTypeDesignation(e){return this.presenceTypesService.displayedTypes$.pipe(v(n=>e.TypeRef.Id&&n.find(s=>s.Id===e.TypeRef.Id)?.Designation||null))}toggleAll(e){C([this.state.entries$.pipe(B(1)),this.presenceTypesService.presenceTypes$.pipe(B(1))]).subscribe(([n,s])=>{let p=s.filter(u=>Be(u)).map(u=>u.Id);this.selectionService.clear(e?n.filter(u=>u.TypeRef.Id==null||!p.includes(u.TypeRef.Id)):null)})}onRowClick(e,n){let s=n.querySelector('input[type="checkbox"]');s&&e.target!==s&&!e.target.closest(".buttons")&&s.click()}getPresenceType(e){return this.presenceTypesService.presenceTypes$.pipe(v(n=>e.TypeRef.Id&&n.find(s=>s.Id===e.TypeRef.Id)||null))}};i.\u0275fac=function(n){return new(n||i)(_(ye),_(ve),_(ut),_(Gt),_(Y),_(H))},i.\u0275cmp=x({type:i,selectors:[["bkd-my-absences-report-list"]],standalone:!0,features:[M],decls:4,vars:11,consts:[["noFilter",""],["loading",""],["noEntries",""],["all",""],["row",""],["categoryIcon",""],["checkbox",""],[4,"bkdLet"],[3,"filterChange","filter"],[4,"ngIf","ngIfElse"],["class","py-3",4,"ngIf","ngIfElse"],[1,"py-3"],[4,"ngIf"],["class","inline",4,"ngIf"],[1,"entries-all",3,"click"],[1,"checkbox"],["type","checkbox",1,"form-check-input",3,"change","checked"],[1,"all"],[1,"buttons"],["routerLink","confirm",1,"edit","btn","btn-primary","btn-icon","me-2"],[1,"material-icons"],["class","entry",3,"click",4,"ngFor","ngForOf"],[1,"entry",3,"click"],[1,"lesson-class"],[1,"time","pe-2"],[1,"teacher"],[1,"date"],[1,"days-ago"],[1,"date-days-ago"],["class","checkbox",4,"ngIf","ngIfElse"],["class","presence-type",4,"ngIf"],[1,"presence-type"],[1,"inline"],[1,"mt-3"]],template:function(n,s){n&1&&(b(0,qn,7,7,"ng-container",7),a(1,"async"),a(2,"async"),a(3,"async")),n&2&&l("bkdLet",dt(7,Mn,m(1,1,s.selectionService.selection$),m(2,3,s.state.entries$),m(3,5,s.state.loadingPage$)))},dependencies:[z,sn,K,Te,ae,wt,Q,mt,w,D,Et],styles:['.entries-all[_ngcontent-%COMP%]{padding:0 0 .5rem 1rem;border-bottom:1px solid #dee2e6;display:grid;grid-template-areas:"checkbox all buttons";grid-template-columns:min-content 1fr min-content}.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}.entry[_ngcontent-%COMP%]:first-child{padding-top:0}.entries-all[_ngcontent-%COMP%] + .entry[_ngcontent-%COMP%]{padding-top:1rem}.presence-category.absent[_ngcontent-%COMP%]{color:#ea161f}.presence-category.unapproved[_ngcontent-%COMP%]{color:#ffa814}.checkbox[_ngcontent-%COMP%]{grid-area:checkbox;margin:0;padding:.3rem 1rem 0 0}.presence-category[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{display:block;font-size:16px}.entries-all[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{padding-top:.2rem}.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}.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){.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});let t=i;return t})();function Un(t){return{dateFrom:t.dateFrom?Ke(t.dateFrom):null,dateTo:t.dateTo?Ke(t.dateTo):null}}var on=(()=>{let i=class i{constructor(){}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=x({type:i,selectors:[["bkd-my-absences-report"]],standalone:!0,features:[oe([ye,ve]),M],decls:1,vars:0,template:function(n,s){n&1&&S(0,"router-outlet")},dependencies:[ke],changeDetection:0});let t=i;return t})();var Wn=["link"],Kn=()=>["/my-absences/report"],an=(()=>{let i=class i{onClick(){this.link.nativeElement.click()}constructor(){}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=x({type:i,selectors:[["bkd-my-absences-report-link"]],viewQuery:function(n,s){if(n&1&&st(Wn,5),n&2){let p;rt(p=ot())&&(s.link=p.first)}},hostBindings:function(n,s){n&1&&h("click",function(u){return s.onClick(u)})},standalone:!0,features:[M],decls:8,vars:5,consts:[["link",""],[1,"m-0"],[1,"btn","btn-link","p-0",3,"routerLink"],[1,"d-flex","align-items-center"],[1,"material-icons"]],template:function(n,s){n&1&&(c(0,"h5",1),f(1),a(2,"translate"),d(),c(3,"a",2,0)(5,"div",3)(6,"i",4),f(7,"keyboard_arrow_right"),d()()()),n&2&&(o(),g(" ",m(2,2,"my-absences.report.title"),` +`),o(2),l("routerLink",Z(4,Kn)))},dependencies:[Te,w,D],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;cursor:pointer}.btn[_ngcontent-%COMP%]{color:#000;text-decoration:none}"],changeDetection:0});let t=i;return t})();var Qn=t=>({absenceCounts:t}),cn=()=>[];function zn(t,i){}function Yn(t,i){if(t&1&&(k(0),f(1),T()),t&2){let r=y().bkdLet;o(),g("(",r.absenceCounts.checkableAbsences,") ")}}function Xn(t,i){if(t&1&&S(0,"bkd-student-dossier-absences",17),t&2){let r=y(2);l("absences$",r.myAbsencesService.checkableAbsences$)}}function Jn(t,i){if(t&1&&(k(0),f(1),T()),t&2){let r=y().bkdLet;o(),g("(",r.absenceCounts.openAbsences,") ")}}function Zn(t,i){if(t&1&&(S(0,"bkd-student-dossier-absences",18),a(1,"translate"),a(2,"async")),t&2){let r,e=y(2);l("absences$",e.myAbsencesService.openAbsences$)("selectionService",e.absencesSelectionService)("defaultAbsenceSelectionMessage",m(1,4,"my-absences.show.default-absence-selection-message"))("reports",(r=m(2,6,e.openAbsencesReports$))!==null&&r!==void 0?r:Z(8,cn))}}function ei(t,i){if(t&1&&(k(0),f(1),T()),t&2){let r=y().bkdLet;o(),g("(",r.absenceCounts.excusedAbsences,") ")}}function ti(t,i){if(t&1&&S(0,"bkd-student-dossier-absences",17),t&2){let r=y(2);l("absences$",r.myAbsencesService.excusedAbsences$)}}function ni(t,i){if(t&1&&(k(0),f(1),T()),t&2){let r=y().bkdLet;o(),g("(",r.absenceCounts.unexcusedAbsences,") ")}}function ii(t,i){if(t&1&&S(0,"bkd-student-dossier-absences",19),t&2){let r=y(2);l("absences$",r.myAbsencesService.unexcusedAbsences$)("displayPresenceType",!1)}}function si(t,i){if(t&1&&(k(0),f(1),T()),t&2){let r=y().bkdLet;o(),g("(",r.absenceCounts.incidents,") ")}}function ri(t,i){if(t&1&&S(0,"bkd-student-dossier-absences",17),t&2){let r=y(2);l("absences$",r.myAbsencesService.incidents$)}}function oi(t,i){if(t&1){let r=X();c(0,"div",6)(1,"h1"),f(2),a(3,"translate"),d(),c(4,"div",7)(5,"div"),f(6),a(7,"translate"),d(),c(8,"div",8),S(9,"bkd-reports-link",9),a(10,"async"),d()(),c(11,"div",10)(12,"div",11)(13,"div",12),S(14,"bkd-my-absences-report-link"),d(),c(15,"div",13)(16,"div",14),b(17,zn,0,0,"ng-template"),d()()(),c(18,"div",11,0)(20,"div",12)(21,"bkd-student-dossier-entry-header",15),h("click",function(){E(r);let n=A(19);return P(n.toggle())}),f(22),a(23,"translate"),b(24,Yn,2,1,"ng-container",16),d()(),c(25,"div",13)(26,"div",14),b(27,Xn,1,1,"ng-template"),d()()(),c(28,"div",11,1)(30,"div",12)(31,"bkd-student-dossier-entry-header",15),h("click",function(){E(r);let n=A(29);return P(n.toggle())}),f(32),a(33,"translate"),b(34,Jn,2,1,"ng-container",16),d()(),c(35,"div",13)(36,"div",14),b(37,Zn,3,9,"ng-template"),d()()(),c(38,"div",11,2)(40,"div",12)(41,"bkd-student-dossier-entry-header",15),h("click",function(){E(r);let n=A(39);return P(n.toggle())}),f(42),a(43,"translate"),b(44,ei,2,1,"ng-container",16),d()(),c(45,"div",13)(46,"div",14),b(47,ti,1,1,"ng-template"),d()()(),c(48,"div",11,3)(50,"div",12)(51,"bkd-student-dossier-entry-header",15),h("click",function(){E(r);let n=A(49);return P(n.toggle())}),f(52),a(53,"translate"),b(54,ni,2,1,"ng-container",16),d()(),c(55,"div",13)(56,"div",14),b(57,ii,1,2,"ng-template"),d()()(),c(58,"div",11,4)(60,"div",12)(61,"bkd-student-dossier-entry-header",15),h("click",function(){E(r);let n=A(59);return P(n.toggle())}),f(62),a(63,"translate"),b(64,si,2,1,"ng-container",16),d()(),c(65,"div",13)(66,"div",14),b(67,ri,1,1,"ng-template"),d()()()()()}if(t&2){let r,e=i.bkdLet,n=A(19),s=A(29),p=A(39),u=A(49),L=A(59),I=y();o(2),$(m(3,18,"my-absences.title")),o(4),$(m(7,20,"my-absences.description")),o(3),l("reports",(r=m(10,22,I.allAbsencesReports$))!==null&&r!==void 0?r:Z(34,cn)),o(12),l("opened",!n.collapsed),o(),g(" ",m(23,24,"shared.profile.checkable-absences")," "),o(2),l("ngIf",e.absenceCounts.checkableAbsences!==null),o(7),l("opened",!s.collapsed),o(),g(" ",m(33,26,"shared.profile.open-absences")," "),o(2),l("ngIf",e.absenceCounts.openAbsences!==null),o(7),l("opened",!p.collapsed),o(),g(" ",m(43,28,"shared.profile.excused-absences")," "),o(2),l("ngIf",e.absenceCounts.excusedAbsences!==null),o(7),l("opened",!u.collapsed),o(),g(" ",m(53,30,"shared.profile.unexcused-absences")," "),o(2),l("ngIf",e.absenceCounts.unexcusedAbsences!==null),o(7),l("opened",!L.collapsed),o(),g(" ",m(63,32,"shared.profile.incidents")," "),o(2),l("ngIf",e.absenceCounts.incidents!==null)}}var pn=(()=>{let i=class i{constructor(e,n,s){this.reportsService=e,this.myAbsencesService=n,this.absencesSelectionService=s,this.openAbsencesReports$=this.loadOpenAbsencesReports(),this.allAbsencesReports$=this.loadAllAbsencesReports()}loadOpenAbsencesReports(){return C([this.absencesSelectionService.selectedWithoutPresenceType$,this.absencesSelectionService.selectedIds$]).pipe(R(([e,n])=>e.length===0&&n.length>0?this.getOpenAbsencesRecordIds(de(ee(n.map(s=>s.lessonIds)))):q([])),R(e=>this.reportsService.getStudentConfirmationReports(e)),j(1))}loadAllAbsencesReports(){return C([this.myAbsencesService.openLessonAbsences$,this.myAbsencesService.checkableLessonAbsences$,this.myAbsencesService.excusedLessonAbsences$,this.myAbsencesService.unexcusedLessonAbsences$,this.myAbsencesService.incidentsLessonAbsences$]).pipe(v(e=>this.getAllAbsencesRecordIds(ee(e))),R(e=>this.reportsService.getMyAbsencesReports(e)),j(1))}getAllAbsencesRecordIds(e){return e.map(n=>`${n.LessonRef.Id}_${n.RegistrationId}`)}getOpenAbsencesRecordIds(e){return this.myAbsencesService.openLessonAbsences$.pipe(v(n=>n.filter(s=>e.includes(s.LessonRef.Id)).map(s=>`${s.LessonRef.Id}_${s.RegistrationId}`)))}};i.\u0275fac=function(n){return new(n||i)(_(Nt),_(ge),_(fe))},i.\u0275cmp=x({type:i,selectors:[["bkd-my-absences-show"]],standalone:!0,features:[M],decls:2,vars:5,consts:[["checkableAbsences","ngbAccordionItem"],["openAbsences","ngbAccordionItem"],["excusedAbsences","ngbAccordionItem"],["unexcusedAbsences","ngbAccordionItem"],["incidents","ngbAccordionItem"],["class","bkd-container bkd-container-limited",4,"bkdLet"],[1,"bkd-container","bkd-container-limited"],[1,"d-flex","justify-content-between","border-bottom","header"],[1,"ps-3"],[3,"reports"],["ngbAccordion",""],["ngbAccordionItem",""],["ngbAccordionHeader",""],["ngbAccordionCollapse",""],["ngbAccordionBody",""],[3,"click","opened"],[4,"ngIf"],[3,"absences$"],[3,"absences$","selectionService","defaultAbsenceSelectionMessage","reports"],[3,"absences$","displayPresenceType"]],template:function(n,s){n&1&&(b(0,oi,68,35,"div",5),a(1,"async")),n&2&&l("bkdLet",W(3,Qn,m(1,1,s.myAbsencesService.counts$)))},dependencies:[z,Dt,St,ht,vt,an,yt,gt,jt,K,Bt,Q,w,D],styles:[".header[_ngcontent-%COMP%]{padding-bottom:1rem}"],changeDetection:0});let t=i;return t})();var dn=(()=>{let i=class i{constructor(){}};i.\u0275fac=function(n){return new(n||i)},i.\u0275cmp=x({type:i,selectors:[["bkd-my-absences"]],standalone:!0,features:[oe([ge,fe]),M],decls:1,vars:0,template:function(n,s){n&1&&S(0,"router-outlet")},dependencies:[ke],changeDetection:0});let t=i;return t})();var sr=[{path:"",component:dn,children:[{path:"",component:pn},{path:"confirm",component:Jt},{path:"report",component:on,children:[{path:"",component:rn,data:{restoreScrollPositionFrom:["/my-absences/report/confirm"]}},{path:"confirm",component:tn}]}]}];export{sr as MY_ABSENCES_ROUTES}; diff --git a/public/apps/webapp-schulverwaltung/chunk-TK3HGFHH.js b/public/apps/webapp-schulverwaltung/chunk-TK3HGFHH.js new file mode 100644 index 00000000..8449c797 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-TK3HGFHH.js @@ -0,0 +1 @@ +import{E as n,L as f,O as d,P as g,Q as a,W as S,Z as c,_b as v,e as l,k as u,m as h,mc as m,nc as P,o as p,oc as $,rc as R,w as s}from"./chunk-T7QWSMKM.js";var N=(()=>{let e=class e{constructor(t,i){this.router=t,this.viewportScroller=i,this.scrollPositions={},this.previousRoute=null,this.currentRoute=this.getInitialActivatedRouteSnapshot(),this.currentScrollPosition=[0,0],this.destroy$=new l,this.activationEnd$=this.router.events.pipe(s(y)),this.navigationEnd$=this.router.events.pipe(s(F)),this.navigationStart$=this.router.events.pipe(s(C)),this.scrollPosition$=this.navigationStart$.pipe(h(this.getScrollPosition.bind(this))),this.route$=this.activationEnd$.pipe(n(1)).pipe(p(r=>[u(r),this.navigationEnd$.pipe(d(()=>this.activationEnd$.pipe(n(1))))]),g(),h(r=>r.snapshot),f(1)),this.scrollPosition$.pipe(a(this.destroy$)).subscribe(r=>this.currentScrollPosition=r),this.route$.pipe(a(this.destroy$)).subscribe(r=>{this.previousRoute=this.currentRoute,this.currentRoute=r})}ngOnDestroy(){this.destroy$.next()}restore(){if(!this.currentRoute||!this.requiresStoring(this.currentRoute))return;if(this.previousRoute&&this.shouldStoreFor(this.currentRoute,this.previousRoute)){let i=this.getPath(this.currentRoute);this.scrollToPosition(this.scrollPositions[i]||[0,0])}let t=this.currentRoute;this.route$.pipe(n(1),a(this.destroy$),s(i=>this.shouldStoreFor(t,i))).subscribe(()=>{let i=this.getPath(t);this.scrollPositions[i]=this.currentScrollPosition})}getScrollPosition(){return this.viewportScroller.getScrollPosition()}scrollToPosition(t){this.viewportScroller.scrollToPosition(t)}getPath(t){return t?"/"+t.pathFromRoot.map(i=>i.routeConfig&&i.routeConfig.path).filter(i=>i).join("/"):"/"}requiresStoring(t){return!!(t&&t.routeConfig&&t.routeConfig.data&&Array.isArray(t.routeConfig.data.restoreScrollPositionFrom)&&t.routeConfig.data.restoreScrollPositionFrom.length>0)}shouldStoreFor(t,i){return(t&&t.routeConfig&&t.routeConfig.data&&Array.isArray(t.routeConfig.data.restoreScrollPositionFrom)?t.routeConfig.data.restoreScrollPositionFrom:[]).includes(this.getPath(i))}getInitialActivatedRouteSnapshot(){let t=this.router.routerState.snapshot.root;for(;t.firstChild;)t=t.firstChild;return t}};e.\u0275fac=function(i){return new(i||e)(c(R),c(v))},e.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"});let o=e;return o})();function y(o){return o instanceof $}function C(o){return o instanceof m}function F(o){return o instanceof P}export{N as a}; diff --git a/public/apps/webapp-schulverwaltung/chunk-TNMAZX5O.js b/public/apps/webapp-schulverwaltung/chunk-TNMAZX5O.js new file mode 100644 index 00000000..a4a20394 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-TNMAZX5O.js @@ -0,0 +1 @@ +import{b as l,c as _,d as Mr,e as _r,f as Or,g as O,h as M,i as Y,k as I,l as Yr,m as Ir,n as Er,o as Hr,p as hr,q as qr,r as Lr,s as yr,t as Qr}from"./chunk-GI4AZI25.js";import{d as w}from"./chunk-Q5U6YZUT.js";import{g as Nr}from"./chunk-FTRAQKUW.js";import{W as Tr,la as kr}from"./chunk-T7QWSMKM.js";function vr(){return Object.assign({},O())}function Rr(o){let t=w(o).getDay();return t===0&&(t=7),t}function Fr(o,r){let t=r instanceof Date?l(r,0):new r(0);return t.setFullYear(o.getFullYear(),o.getMonth(),o.getDate()),t.setHours(o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()),t}var Ar=10,E=class{subPriority=0;validate(r,t){return!0}},H=class extends E{constructor(r,t,e,s,i){super(),this.value=r,this.validateValue=t,this.setValue=e,this.priority=s,i&&(this.subPriority=i)}validate(r,t){return this.validateValue(r,this.value,t)}set(r,t,e){return this.setValue(r,t,this.value,e)}},q=class extends E{priority=Ar;subPriority=-1;set(r,t){return t.timestampIsSet?r:l(r,Fr(r,Date))}};var n=class{run(r,t,e,s){let i=this.parse(r,t,e,s);return i?{setter:new H(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(r,t,e){return!0}};var L=class extends n{priority=140;parse(r,t,e){switch(t){case"G":case"GG":case"GGG":return e.era(r,{width:"abbreviated"})||e.era(r,{width:"narrow"});case"GGGGG":return e.era(r,{width:"narrow"});case"GGGG":default:return e.era(r,{width:"wide"})||e.era(r,{width:"abbreviated"})||e.era(r,{width:"narrow"})}}set(r,t,e){return t.era=e,r.setFullYear(e,0,1),r.setHours(0,0,0,0),r}incompatibleTokens=["R","u","t","T"]};var c={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},x={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function p(o,r){return o&&{value:r(o.value),rest:o.rest}}function u(o,r){let t=r.match(o);return t?{value:parseInt(t[0],10),rest:r.slice(t[0].length)}:null}function h(o,r){let t=r.match(o);if(!t)return null;if(t[0]==="Z")return{value:0,rest:r.slice(1)};let e=t[1]==="+"?1:-1,s=t[2]?parseInt(t[2],10):0,i=t[3]?parseInt(t[3],10):0,d=t[5]?parseInt(t[5],10):0;return{value:e*(s*_r+i*Mr+d*Or),rest:r.slice(t[0].length)}}function Q(o){return u(c.anyDigitsSigned,o)}function a(o,r){switch(o){case 1:return u(c.singleDigit,r);case 2:return u(c.twoDigits,r);case 3:return u(c.threeDigits,r);case 4:return u(c.fourDigits,r);default:return u(new RegExp("^\\d{1,"+o+"}"),r)}}function P(o,r){switch(o){case 1:return u(c.singleDigitSigned,r);case 2:return u(c.twoDigitsSigned,r);case 3:return u(c.threeDigitsSigned,r);case 4:return u(c.fourDigitsSigned,r);default:return u(new RegExp("^-?\\d{1,"+o+"}"),r)}}function T(o){switch(o){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function v(o,r){let t=r>0,e=t?r:1-r,s;if(e<=50)s=o||100;else{let i=e+50,d=Math.trunc(i/100)*100,y=o>=i%100;s=o+d-(y?100:0)}return t?s:1-s}function R(o){return o%400===0||o%4===0&&o%100!==0}var F=class extends n{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(r,t,e){let s=i=>({year:i,isTwoDigitYear:t==="yy"});switch(t){case"y":return p(a(4,r),s);case"yo":return p(e.ordinalNumber(r,{unit:"year"}),s);default:return p(a(t.length,r),s)}}validate(r,t){return t.isTwoDigitYear||t.year>0}set(r,t,e){let s=r.getFullYear();if(e.isTwoDigitYear){let d=v(e.year,s);return r.setFullYear(d,0,1),r.setHours(0,0,0,0),r}let i=!("era"in t)||t.era===1?e.year:1-e.year;return r.setFullYear(i,0,1),r.setHours(0,0,0,0),r}};var W=class extends n{priority=130;parse(r,t,e){let s=i=>({year:i,isTwoDigitYear:t==="YY"});switch(t){case"Y":return p(a(4,r),s);case"Yo":return p(e.ordinalNumber(r,{unit:"year"}),s);default:return p(a(t.length,r),s)}}validate(r,t){return t.isTwoDigitYear||t.year>0}set(r,t,e,s){let i=Er(r,s);if(e.isTwoDigitYear){let y=v(e.year,i);return r.setFullYear(y,0,s.firstWeekContainsDate),r.setHours(0,0,0,0),M(r,s)}let d=!("era"in t)||t.era===1?e.year:1-e.year;return r.setFullYear(d,0,s.firstWeekContainsDate),r.setHours(0,0,0,0),M(r,s)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var C=class extends n{priority=130;parse(r,t){return t==="R"?P(4,r):P(t.length,r)}set(r,t,e){let s=l(r,0);return s.setFullYear(e,0,4),s.setHours(0,0,0,0),Y(s)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var B=class extends n{priority=130;parse(r,t){return t==="u"?P(4,r):P(t.length,r)}set(r,t,e){return r.setFullYear(e,0,1),r.setHours(0,0,0,0),r}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var G=class extends n{priority=120;parse(r,t,e){switch(t){case"Q":case"QQ":return a(t.length,r);case"Qo":return e.ordinalNumber(r,{unit:"quarter"});case"QQQ":return e.quarter(r,{width:"abbreviated",context:"formatting"})||e.quarter(r,{width:"narrow",context:"formatting"});case"QQQQQ":return e.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(r,{width:"wide",context:"formatting"})||e.quarter(r,{width:"abbreviated",context:"formatting"})||e.quarter(r,{width:"narrow",context:"formatting"})}}validate(r,t){return t>=1&&t<=4}set(r,t,e){return r.setMonth((e-1)*3,1),r.setHours(0,0,0,0),r}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var X=class extends n{priority=120;parse(r,t,e){switch(t){case"q":case"qq":return a(t.length,r);case"qo":return e.ordinalNumber(r,{unit:"quarter"});case"qqq":return e.quarter(r,{width:"abbreviated",context:"standalone"})||e.quarter(r,{width:"narrow",context:"standalone"});case"qqqqq":return e.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(r,{width:"wide",context:"standalone"})||e.quarter(r,{width:"abbreviated",context:"standalone"})||e.quarter(r,{width:"narrow",context:"standalone"})}}validate(r,t){return t>=1&&t<=4}set(r,t,e){return r.setMonth((e-1)*3,1),r.setHours(0,0,0,0),r}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var z=class extends n{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(r,t,e){let s=i=>i-1;switch(t){case"M":return p(u(c.month,r),s);case"MM":return p(a(2,r),s);case"Mo":return p(e.ordinalNumber(r,{unit:"month"}),s);case"MMM":return e.month(r,{width:"abbreviated",context:"formatting"})||e.month(r,{width:"narrow",context:"formatting"});case"MMMMM":return e.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(r,{width:"wide",context:"formatting"})||e.month(r,{width:"abbreviated",context:"formatting"})||e.month(r,{width:"narrow",context:"formatting"})}}validate(r,t){return t>=0&&t<=11}set(r,t,e){return r.setMonth(e,1),r.setHours(0,0,0,0),r}};var A=class extends n{priority=110;parse(r,t,e){let s=i=>i-1;switch(t){case"L":return p(u(c.month,r),s);case"LL":return p(a(2,r),s);case"Lo":return p(e.ordinalNumber(r,{unit:"month"}),s);case"LLL":return e.month(r,{width:"abbreviated",context:"standalone"})||e.month(r,{width:"narrow",context:"standalone"});case"LLLLL":return e.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(r,{width:"wide",context:"standalone"})||e.month(r,{width:"abbreviated",context:"standalone"})||e.month(r,{width:"narrow",context:"standalone"})}}validate(r,t){return t>=0&&t<=11}set(r,t,e){return r.setMonth(e,1),r.setHours(0,0,0,0),r}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function Wr(o,r,t){let e=w(o),s=Hr(e,t)-r;return e.setDate(e.getDate()-s*7),e}var V=class extends n{priority=100;parse(r,t,e){switch(t){case"w":return u(c.week,r);case"wo":return e.ordinalNumber(r,{unit:"week"});default:return a(t.length,r)}}validate(r,t){return t>=1&&t<=53}set(r,t,e,s){return M(Wr(r,e,s),s)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function Cr(o,r){let t=w(o),e=Ir(t)-r;return t.setDate(t.getDate()-e*7),t}var Z=class extends n{priority=100;parse(r,t,e){switch(t){case"I":return u(c.week,r);case"Io":return e.ordinalNumber(r,{unit:"week"});default:return a(t.length,r)}}validate(r,t){return t>=1&&t<=53}set(r,t,e){return Y(Cr(r,e))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var Vr=[31,28,31,30,31,30,31,31,30,31,30,31],Zr=[31,29,31,30,31,30,31,31,30,31,30,31],K=class extends n{priority=90;subPriority=1;parse(r,t,e){switch(t){case"d":return u(c.date,r);case"do":return e.ordinalNumber(r,{unit:"date"});default:return a(t.length,r)}}validate(r,t){let e=r.getFullYear(),s=R(e),i=r.getMonth();return s?t>=1&&t<=Zr[i]:t>=1&&t<=Vr[i]}set(r,t,e){return r.setDate(e),r.setHours(0,0,0,0),r}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var $=class extends n{priority=90;subpriority=1;parse(r,t,e){switch(t){case"D":case"DD":return u(c.dayOfYear,r);case"Do":return e.ordinalNumber(r,{unit:"date"});default:return a(t.length,r)}}validate(r,t){let e=r.getFullYear();return R(e)?t>=1&&t<=366:t>=1&&t<=365}set(r,t,e){return r.setMonth(0,e),r.setHours(0,0,0,0),r}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function k(o,r,t){let e=O(),s=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,i=w(o),d=i.getDay(),N=(r%7+7)%7,g=7-s,dr=r<0||r>6?r-(d+g)%7:(N+g)%7-(d+g)%7;return _(i,dr)}var j=class extends n{priority=90;parse(r,t,e){switch(t){case"E":case"EE":case"EEE":return e.day(r,{width:"abbreviated",context:"formatting"})||e.day(r,{width:"short",context:"formatting"})||e.day(r,{width:"narrow",context:"formatting"});case"EEEEE":return e.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(r,{width:"short",context:"formatting"})||e.day(r,{width:"narrow",context:"formatting"});case"EEEE":default:return e.day(r,{width:"wide",context:"formatting"})||e.day(r,{width:"abbreviated",context:"formatting"})||e.day(r,{width:"short",context:"formatting"})||e.day(r,{width:"narrow",context:"formatting"})}}validate(r,t){return t>=0&&t<=6}set(r,t,e,s){return r=k(r,e,s),r.setHours(0,0,0,0),r}incompatibleTokens=["D","i","e","c","t","T"]};var U=class extends n{priority=90;parse(r,t,e,s){let i=d=>{let y=Math.floor((d-1)/7)*7;return(d+s.weekStartsOn+6)%7+y};switch(t){case"e":case"ee":return p(a(t.length,r),i);case"eo":return p(e.ordinalNumber(r,{unit:"day"}),i);case"eee":return e.day(r,{width:"abbreviated",context:"formatting"})||e.day(r,{width:"short",context:"formatting"})||e.day(r,{width:"narrow",context:"formatting"});case"eeeee":return e.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(r,{width:"short",context:"formatting"})||e.day(r,{width:"narrow",context:"formatting"});case"eeee":default:return e.day(r,{width:"wide",context:"formatting"})||e.day(r,{width:"abbreviated",context:"formatting"})||e.day(r,{width:"short",context:"formatting"})||e.day(r,{width:"narrow",context:"formatting"})}}validate(r,t){return t>=0&&t<=6}set(r,t,e,s){return r=k(r,e,s),r.setHours(0,0,0,0),r}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var J=class extends n{priority=90;parse(r,t,e,s){let i=d=>{let y=Math.floor((d-1)/7)*7;return(d+s.weekStartsOn+6)%7+y};switch(t){case"c":case"cc":return p(a(t.length,r),i);case"co":return p(e.ordinalNumber(r,{unit:"day"}),i);case"ccc":return e.day(r,{width:"abbreviated",context:"standalone"})||e.day(r,{width:"short",context:"standalone"})||e.day(r,{width:"narrow",context:"standalone"});case"ccccc":return e.day(r,{width:"narrow",context:"standalone"});case"cccccc":return e.day(r,{width:"short",context:"standalone"})||e.day(r,{width:"narrow",context:"standalone"});case"cccc":default:return e.day(r,{width:"wide",context:"standalone"})||e.day(r,{width:"abbreviated",context:"standalone"})||e.day(r,{width:"short",context:"standalone"})||e.day(r,{width:"narrow",context:"standalone"})}}validate(r,t){return t>=0&&t<=6}set(r,t,e,s){return r=k(r,e,s),r.setHours(0,0,0,0),r}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function Br(o,r){let t=w(o),e=Rr(t),s=r-e;return _(t,s)}var S=class extends n{priority=90;parse(r,t,e){let s=i=>i===0?7:i;switch(t){case"i":case"ii":return a(t.length,r);case"io":return e.ordinalNumber(r,{unit:"day"});case"iii":return p(e.day(r,{width:"abbreviated",context:"formatting"})||e.day(r,{width:"short",context:"formatting"})||e.day(r,{width:"narrow",context:"formatting"}),s);case"iiiii":return p(e.day(r,{width:"narrow",context:"formatting"}),s);case"iiiiii":return p(e.day(r,{width:"short",context:"formatting"})||e.day(r,{width:"narrow",context:"formatting"}),s);case"iiii":default:return p(e.day(r,{width:"wide",context:"formatting"})||e.day(r,{width:"abbreviated",context:"formatting"})||e.day(r,{width:"short",context:"formatting"})||e.day(r,{width:"narrow",context:"formatting"}),s)}}validate(r,t){return t>=1&&t<=7}set(r,t,e){return r=Br(r,e),r.setHours(0,0,0,0),r}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var rr=class extends n{priority=80;parse(r,t,e){switch(t){case"a":case"aa":case"aaa":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"})||e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaaa":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})||e.dayPeriod(r,{width:"abbreviated",context:"formatting"})||e.dayPeriod(r,{width:"narrow",context:"formatting"})}}set(r,t,e){return r.setHours(T(e),0,0,0),r}incompatibleTokens=["b","B","H","k","t","T"]};var er=class extends n{priority=80;parse(r,t,e){switch(t){case"b":case"bb":case"bbb":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"})||e.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbbb":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})||e.dayPeriod(r,{width:"abbreviated",context:"formatting"})||e.dayPeriod(r,{width:"narrow",context:"formatting"})}}set(r,t,e){return r.setHours(T(e),0,0,0),r}incompatibleTokens=["a","B","H","k","t","T"]};var tr=class extends n{priority=80;parse(r,t,e){switch(t){case"B":case"BB":case"BBB":return e.dayPeriod(r,{width:"abbreviated",context:"formatting"})||e.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBBB":return e.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(r,{width:"wide",context:"formatting"})||e.dayPeriod(r,{width:"abbreviated",context:"formatting"})||e.dayPeriod(r,{width:"narrow",context:"formatting"})}}set(r,t,e){return r.setHours(T(e),0,0,0),r}incompatibleTokens=["a","b","t","T"]};var or=class extends n{priority=70;parse(r,t,e){switch(t){case"h":return u(c.hour12h,r);case"ho":return e.ordinalNumber(r,{unit:"hour"});default:return a(t.length,r)}}validate(r,t){return t>=1&&t<=12}set(r,t,e){let s=r.getHours()>=12;return s&&e<12?r.setHours(e+12,0,0,0):!s&&e===12?r.setHours(0,0,0,0):r.setHours(e,0,0,0),r}incompatibleTokens=["H","K","k","t","T"]};var sr=class extends n{priority=70;parse(r,t,e){switch(t){case"H":return u(c.hour23h,r);case"Ho":return e.ordinalNumber(r,{unit:"hour"});default:return a(t.length,r)}}validate(r,t){return t>=0&&t<=23}set(r,t,e){return r.setHours(e,0,0,0),r}incompatibleTokens=["a","b","h","K","k","t","T"]};var nr=class extends n{priority=70;parse(r,t,e){switch(t){case"K":return u(c.hour11h,r);case"Ko":return e.ordinalNumber(r,{unit:"hour"});default:return a(t.length,r)}}validate(r,t){return t>=0&&t<=11}set(r,t,e){return r.getHours()>=12&&e<12?r.setHours(e+12,0,0,0):r.setHours(e,0,0,0),r}incompatibleTokens=["h","H","k","t","T"]};var ir=class extends n{priority=70;parse(r,t,e){switch(t){case"k":return u(c.hour24h,r);case"ko":return e.ordinalNumber(r,{unit:"hour"});default:return a(t.length,r)}}validate(r,t){return t>=1&&t<=24}set(r,t,e){let s=e<=24?e%24:e;return r.setHours(s,0,0,0),r}incompatibleTokens=["a","b","h","H","K","t","T"]};var ar=class extends n{priority=60;parse(r,t,e){switch(t){case"m":return u(c.minute,r);case"mo":return e.ordinalNumber(r,{unit:"minute"});default:return a(t.length,r)}}validate(r,t){return t>=0&&t<=59}set(r,t,e){return r.setMinutes(e,0,0),r}incompatibleTokens=["t","T"]};var ur=class extends n{priority=50;parse(r,t,e){switch(t){case"s":return u(c.second,r);case"so":return e.ordinalNumber(r,{unit:"second"});default:return a(t.length,r)}}validate(r,t){return t>=0&&t<=59}set(r,t,e){return r.setSeconds(e,0),r}incompatibleTokens=["t","T"]};var cr=class extends n{priority=30;parse(r,t){let e=s=>Math.trunc(s*Math.pow(10,-t.length+3));return p(a(t.length,r),e)}set(r,t,e){return r.setMilliseconds(e),r}incompatibleTokens=["t","T"]};var mr=class extends n{priority=10;parse(r,t){switch(t){case"X":return h(x.basicOptionalMinutes,r);case"XX":return h(x.basic,r);case"XXXX":return h(x.basicOptionalSeconds,r);case"XXXXX":return h(x.extendedOptionalSeconds,r);case"XXX":default:return h(x.extended,r)}}set(r,t,e){return t.timestampIsSet?r:l(r,r.getTime()-I(r)-e)}incompatibleTokens=["t","T","x"]};var pr=class extends n{priority=10;parse(r,t){switch(t){case"x":return h(x.basicOptionalMinutes,r);case"xx":return h(x.basic,r);case"xxxx":return h(x.basicOptionalSeconds,r);case"xxxxx":return h(x.extendedOptionalSeconds,r);case"xxx":default:return h(x.extended,r)}}set(r,t,e){return t.timestampIsSet?r:l(r,r.getTime()-I(r)-e)}incompatibleTokens=["t","T","X"]};var fr=class extends n{priority=40;parse(r){return Q(r)}set(r,t,e){return[l(r,e*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var lr=class extends n{priority=20;parse(r){return Q(r)}set(r,t,e){return[l(r,e),{timestampIsSet:!0}]}incompatibleTokens="*"};var Gr={G:new L,y:new F,Y:new W,R:new C,u:new B,Q:new G,q:new X,M:new z,L:new A,w:new V,I:new Z,d:new K,D:new $,E:new j,e:new U,c:new J,i:new S,a:new rr,b:new er,B:new tr,h:new or,H:new sr,K:new nr,k:new ir,m:new ar,s:new ur,S:new cr,X:new mr,x:new pr,t:new fr,T:new lr};var Kr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$r=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,jr=/^'([^]*?)'?$/,Ur=/''/g,Jr=/\S/,Sr=/[a-zA-Z]/;function Xr(o,r,t,e){let s=vr(),i=e?.locale??s.locale??Yr,d=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,y=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0;if(r==="")return o===""?w(t):l(t,NaN);let N={firstWeekContainsDate:d,weekStartsOn:y,locale:i},g=[new q],dr=r.match($r).map(m=>{let f=m[0];if(f in hr){let b=hr[f];return b(m,i.formatLong)}return m}).join("").match(Kr),wr=[];for(let m of dr){!e?.useAdditionalWeekYearTokens&&Lr(m)&&yr(m,r,o),!e?.useAdditionalDayOfYearTokens&&qr(m)&&yr(m,r,o);let f=m[0],b=Gr[f];if(b){let{incompatibleTokens:gr}=b;if(Array.isArray(gr)){let Dr=wr.find(Pr=>gr.includes(Pr.token)||Pr.token===f);if(Dr)throw new RangeError(`The format string mustn't contain \`${Dr.fullToken}\` and \`${m}\` at the same time`)}else if(b.incompatibleTokens==="*"&&wr.length>0)throw new RangeError(`The format string mustn't contain \`${m}\` and any other token at the same time`);wr.push({token:f,fullToken:m});let xr=b.run(o,m,i.match,N);if(!xr)return l(t,NaN);g.push(xr.setter),o=xr.rest}else{if(f.match(Sr))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");if(m==="''"?m="'":f==="'"&&(m=re(m)),o.indexOf(m)===0)o=o.slice(m.length);else return l(t,NaN)}}if(o.length>0&&Jr.test(o))return l(t,NaN);let zr=g.map(m=>m.priority).sort((m,f)=>f-m).filter((m,f,b)=>b.indexOf(m)===f).map(m=>g.filter(f=>f.priority===m).sort((f,b)=>b.subPriority-f.subPriority)).map(m=>m[0]),D=w(t);if(isNaN(D.getTime()))return l(t,NaN);let br={};for(let m of zr){if(!m.validate(D,N))return l(t,NaN);let f=m.set(D,br,N);Array.isArray(f)?(D=f[0],Object.assign(br,f[1])):D=f}return l(t,D)}function re(o){return o.match(jr)[1].replace(Ur,"'")}var vs=(()=>{let r=class r extends Nr{parse(e){let s=e?Xr(e,"dd.MM.yyyy",new Date):null;return s?{year:s.getFullYear(),month:s.getMonth(),day:s.getDay()}:null}format(e){return e?Qr(new Date(e.year,e.month-1,e.day),"dd.MM.yyyy"):""}};r.\u0275fac=(()=>{let e;return function(i){return(e||(e=kr(r)))(i||r)}})(),r.\u0275prov=Tr({token:r,factory:r.\u0275fac});let o=r;return o})();export{vs as a}; diff --git a/public/apps/webapp-schulverwaltung/chunk-UMTH7ATO.js b/public/apps/webapp-schulverwaltung/chunk-UMTH7ATO.js new file mode 100644 index 00000000..ab1144b5 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-UMTH7ATO.js @@ -0,0 +1 @@ +import{p as X,r as Z,s as te,t as ie,v as re}from"./chunk-QHPTZGVN.js";import"./chunk-Y4QYVF5K.js";import"./chunk-WN7VWSJW.js";import{d as ee}from"./chunk-LO5XSJLW.js";import{a as K,b as W}from"./chunk-N6FFLIGM.js";import{a as z,c as Q}from"./chunk-33NXTXD7.js";import{A as w,u as _}from"./chunk-FTRAQKUW.js";import{$ as g,$a as O,Bb as d,Cb as p,Ga as j,Hd as k,Ia as f,Id as R,Jd as Y,L as B,O as T,Sa as C,Ta as S,Tb as J,Ua as l,Va as A,W as L,Wa as N,Wb as M,Wc as V,Z as m,g as E,jb as b,kb as $,m as a,n as F,qc as U,r as P,sb as G,tb as h,ua as u,ub as q,va as I,yb as H}from"./chunk-T7QWSMKM.js";var v=(()=>{let e=class e{constructor(n,r,o,y,de,pe,ce){this.storageService=n,this.loadingService=r,this.coursesRestService=o,this.subscriptionRestService=y,this.reportsService=de,this.gradingScalesRestService=pe,this.settings=ce,this.studentId$=new E(1),this.loading$=this.loadingService.loading$,this.studentCourses$=this.loadCourses().pipe(B(1)),this.studentCoursesSorted$=this.studentCourses$.pipe(a(i=>i.slice().sort((s,me)=>s.Designation.localeCompare(me.Designation)))),this.studentCourseIds$=this.studentCourses$.pipe(a(i=>i.flatMap(s=>s.Id))),this.idSubscriptions$=F([this.studentId$,this.studentCourseIds$]).pipe(T(([i,s])=>this.subscriptionRestService.getIdSubscriptionsByStudentAndCourse(i,s))),this.ids$=this.idSubscriptions$.pipe(a(i=>i.map(s=>s.Id))),this.testReports$=this.ids$.pipe(a(i=>this.reportsService.getStudentSubscriptionReports(i))),this.tests$=this.studentCourses$.pipe(a(i=>i.flatMap(s=>s.Tests).filter(_))),this.gradingScaleIdsFromTests$=this.tests$.pipe(a(i=>[...i.map(s=>s.GradingScaleId)].filter(_).filter(w))),this.gradingScaleIdsFromCourses$=this.studentCourses$.pipe(a(i=>i.flatMap(s=>s.GradingScaleId).filter(_).filter(w))),this.gradingScaleIds$=F([this.gradingScaleIdsFromCourses$,this.gradingScaleIdsFromTests$]).pipe(a(([i,s])=>i.concat(s).filter(w))),this.gradingScales$=this.gradingScaleIds$.pipe(T(i=>P(i.map(s=>this.gradingScalesRestService.getGradingScale(s)))));let D=this.storageService.getPayload()?.id_person;D&&this.studentId$.next(Number(D))}loadCourses(){return this.loadingService.load(this.coursesRestService.getExpandedCoursesForStudent())}};e.\u0275fac=function(r){return new(r||e)(m(Y),m(W),m(X),m(Z),m(ee),m(te),m(V))},e.\u0275prov=L({token:e,factory:e.\u0275fac});let t=e;return t})();var ue=()=>[],ne=(()=>{let e=class e{constructor(n){this.myGradesService=n}};e.\u0275fac=function(r){return new(r||e)(I(v))},e.\u0275cmp=g({type:e,selectors:[["bkd-my-grades-header"]],standalone:!0,features:[h],decls:7,vars:7,consts:[[1,"d-flex","justify-content-between","header"],[3,"reports"]],template:function(r,o){if(r&1&&(C(0,"div",0)(1,"div"),b(2),d(3,"translate"),S(),C(4,"div"),l(5,"bkd-reports-link",1),d(6,"async"),S()()),r&2){let y;u(2),$(p(3,2,"my-grades.header")),u(3),f("reports",(y=p(6,4,o.myGradesService.testReports$))!==null&&y!==void 0?y:q(6,ue))}},dependencies:[K,M,R,k],styles:[".header[_ngcontent-%COMP%]{padding-bottom:1rem}.report[_ngcontent-%COMP%]{margin-left:1rem}"]});let t=e;return t})();var fe=(t,e,c,n)=>({loading:t,studentId:e,courses:c,gradingScales:n});function ge(t,e){if(t&1&&l(0,"bkd-dossier-grades-view",4),t&2){let c=O().bkdLet;f("courses",c.courses)("studentId",c.studentId)("gradingScales",c.gradingScales)("isEditable",!1)}}function Se(t,e){t&1&&(A(0),l(1,"bkd-spinner"),N())}function he(t,e){if(t&1&&(C(0,"div",1)(1,"h1"),b(2),d(3,"translate"),S(),l(4,"bkd-my-grades-header"),j(5,ge,1,4,"bkd-dossier-grades-view",2)(6,Se,2,0,"ng-container",3),S()),t&2){let c=e.bkdLet;u(2),$(p(3,3,"my-grades.title")),u(3),f("ngIf",!c.loading),u(),f("ngIf",c.loading)}}var oe=(()=>{let e=class e{constructor(n){this.myGradesService=n}};e.\u0275fac=function(r){return new(r||e)(I(v))},e.\u0275cmp=g({type:e,selectors:[["bkd-my-grades-show"]],standalone:!0,features:[G([ie]),h],decls:5,vars:14,consts:[["class","bkd-container bkd-container-limited",4,"bkdLet"],[1,"bkd-container","bkd-container-limited"],[3,"courses","studentId","gradingScales","isEditable",4,"ngIf"],[4,"ngIf"],[3,"courses","studentId","gradingScales","isEditable"]],template:function(r,o){r&1&&(j(0,he,7,5,"div",0),d(1,"async"),d(2,"async"),d(3,"async"),d(4,"async")),r&2&&f("bkdLet",H(9,fe,p(1,1,o.myGradesService.loading$),p(2,3,o.myGradesService.studentId$),p(3,5,o.myGradesService.studentCoursesSorted$),p(4,7,o.myGradesService.gradingScales$)))},dependencies:[z,ne,J,re,Q,M,R,k]});let t=e;return t})();var ae=(()=>{let e=class e{constructor(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=g({type:e,selectors:[["bkd-my-grades"]],standalone:!0,features:[G([v]),h],decls:1,vars:0,template:function(r,o){r&1&&l(0,"router-outlet")},dependencies:[U]});let t=e;return t})();var Je=[{path:"",component:ae,children:[{path:"",component:oe}]}];export{Je as MY_GRADES_ROUTES}; diff --git a/public/apps/webapp-schulverwaltung/chunk-V34B6ZOV.js b/public/apps/webapp-schulverwaltung/chunk-V34B6ZOV.js new file mode 100644 index 00000000..2207a66f --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-V34B6ZOV.js @@ -0,0 +1 @@ +import{t as A}from"./chunk-GI4AZI25.js";import{b as B}from"./chunk-33NXTXD7.js";import{a as V}from"./chunk-3AROKYRB.js";import{Ac as D,Ba as k,Bc as R,Ed as b,Gc as S,Gd as x,O as m,R as w,S as P,Uc as Y,W as M,Wc as $,Z as d,a as p,b as h,ba as j,ec as z,ga as U,j as O,k as g,m as u,o as K,qa as F,ra as T,s as I,va as y,w as N}from"./chunk-T7QWSMKM.js";function _(t,e,i,o){let n=window&&!!window.document&&window.document.documentElement,r=n&&e?window:i;if(t&&(r=t&&n&&typeof t=="string"?tt(t,i.nativeElement,o):t,!r))throw new Error("ngx-infinite-scroll {resolveContainerElement()}: selector for");return r}function tt(t,e,i){return(i?window.document:e).querySelector(t)}function C(t){return t&&!t.firstChange}function et(){return typeof window<"u"}var ot={clientHeight:"clientHeight",offsetHeight:"offsetHeight",scrollHeight:"scrollHeight",pageYOffset:"pageYOffset",offsetTop:"offsetTop",scrollTop:"scrollTop",top:"top"},it={clientHeight:"clientWidth",offsetHeight:"offsetWidth",scrollHeight:"scrollWidth",pageYOffset:"pageXOffset",offsetTop:"offsetLeft",scrollTop:"scrollLeft",top:"left"},E=class{constructor(e=!0){this.vertical=e,this.propsMap=e?ot:it}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 nt(t,e,i){return!!(t&&e||!i&&e)}function rt({windowElement:t,axis:e}){return lt({axis:e,isWindow:st(t)},t)}function lt(t,e){let i=t.isWindow||e&&!e.nativeElement?e:e.nativeElement;return h(p({},t),{container:i})}function st(t){return["Window","global"].some(i=>Object.prototype.toString.call(t).includes(i))}function W(t,e){return t?e.document.documentElement:null}function G(t,e){let i=ft(e);return e.isWindow?ct(i,t,e):at(i,t,e)}function ct(t,e,i){let{axis:o,container:n,isWindow:r}=i,{offsetHeightKey:l,clientHeightKey:c}=X(o),a=t+q(W(r,n),o,r),s=L(e.nativeElement,r,l,c),f=ut(e.nativeElement,o,r)+s;return{height:t,scrolled:a,totalToScroll:f,isWindow:r}}function at(t,e,i){let{axis:o,container:n}=i,r=n[o.scrollTopKey()],l=n[o.scrollHeightKey()];return{height:t,scrolled:r,totalToScroll:l,isWindow:!1}}function X(t){return{offsetHeightKey:t.offsetHeightKey(),clientHeightKey:t.clientHeightKey()}}function ft({container:t,isWindow:e,axis:i}){let{offsetHeightKey:o,clientHeightKey:n}=X(i);return L(t,e,o,n)}function L(t,e,i,o){if(isNaN(t[i])){let n=W(e,t);return n?n[o]:0}else return t[i]}function ut(t,e,i){let o=e.topKey();if(t.getBoundingClientRect)return t.getBoundingClientRect()[o]+q(t,e,i)}function q(t,e,i){let o=e.pageYOffsetKey(),n=e.scrollTopKey(),r=e.offsetTopKey();return isNaN(window.pageYOffset)?W(i,t)[n]:t.ownerDocument?t.ownerDocument.defaultView[o]:t[r]}function dt(t,e={down:0,up:0},i){let o,n;if(t.totalToScroll<=0)return!1;let r=t.isWindow?t.scrolled:t.height+t.scrolled;if(i)o=(t.totalToScroll-r)/t.totalToScroll,n=(e?.down?e.down:0)/10;else{let c=t.scrolled+(t.totalToScroll-r);o=t.scrolled/c,n=(e?.up?e.up:0)/10}return o<=n}function pt(t,e){return tg(G(o,r))),u(s=>St(l.lastScrollPosition,s,a)),w(({stats:s})=>l.updateScroll(s.scrolled,s.totalToScroll)),N(({fire:s,scrollDown:f,stats:{totalToScroll:J}})=>nt(t.alwaysCallback,s,l.isTriggeredScroll(J,f))),w(({scrollDown:s,stats:{totalToScroll:f}})=>{l.updateTriggeredFlag(f,s)}),u(wt))}function mt(t){let e=I(t.container,"scroll");return t.throttle&&(e=e.pipe(P(t.throttle,void 0,{leading:!0,trailing:!0}))),e}function St(t,e,i){let{scrollDown:o,fire:n}=ht(t,e,i);return{scrollDown:o,fire:n,stats:e}}var v={DOWN:"[NGX_ISE] DOWN",UP:"[NGX_ISE] UP"};function wt(t){let{scrollDown:e,stats:{scrolled:i}}=t;return{type:e?v.DOWN:v.UP,payload:{currentScrollPosition:i}}}var Nt=(()=>{let e=class e{constructor(o,n){this.element=o,this.zone=n,this.scrolled=new T,this.scrolledUp=new T,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:o,infiniteScrollDisabled:n,infiniteScrollDistance:r}){let l=C(o),c=C(n),a=C(r),s=!c&&!this.infiniteScrollDisabled||c&&!n.currentValue||a;(l||c||a)&&(this.destroyScroller(),s&&this.setup())}ngOnDestroy(){this.destroyScroller()}setup(){et()&&this.zone.runOutsideAngular(()=>{this.disposeScroller=gt({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(o=>this.handleOnScroll(o))})}handleOnScroll({type:o,payload:n}){let r=o===v.DOWN?this.scrolled:this.scrolledUp;Tt(r)&&this.zone.run(()=>r.emit(n))}destroyScroller(){this.disposeScroller&&this.disposeScroller.unsubscribe()}};e.\u0275fac=function(n){return new(n||e)(y(F),y(k))},e.\u0275dir=j({type:e,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"},standalone:!0,features:[U]});let t=e;return t})();function Tt(t){return t.observed??t.observers.length>0}function Ut(t){return Object.keys(t).reduce((e,i)=>{let o=yt(t[i]);return o?h(p({},e),{[i]:o}):e},{})}function yt(t){return t?t instanceof Date?A(t,"yyyy-MM-dd"):String(t):null}var Z=S({Id:R,Designation:D,Number:D});var qt=(()=>{let e=class e extends B{constructor(o,n,r,l){super(o,n,Z,"EducationalEvents"),this.translate=r,this.toastService=l,this.typeaheadCodec=S(Y(this.codec.props,["Id","Designation","Number"]))}getTypeaheadItems(o){return this.http.get(`${this.baseUrl}/CurrentSemester`,{params:{fields:["Id","Designation","Number"].join(","),"filter.Designation":`~*${o}*`}}).pipe(m(b(this.typeaheadCodec)),u(n=>n.map(r=>({Key:r.Id,Value:`${r.Designation} (${r.Number})`}))))}getTypeaheadItemByKey(o){return this.http.get(`${this.baseUrl}/CurrentSemester`,{params:{fields:["Id","Designation","Number"].join(","),"filter.Id":`=${o}`}}).pipe(m(b(this.typeaheadCodec)),m(n=>n.length===0?(this.toastService.error(this.translate.instant("global.rest-errors.notfound-message"),this.translate.instant("global.rest-errors.notfound-title")),O):g({Key:n[0].Id,Value:`${n[0].Designation} (${n[0].Number})`})))}};e.\u0275fac=function(n){return new(n||e)(d(z),d($),d(x),d(V))},e.\u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();export{Ut as a,Nt as b,qt as c}; diff --git a/public/apps/webapp-schulverwaltung/chunk-VFMGCCGG.js b/public/apps/webapp-schulverwaltung/chunk-VFMGCCGG.js new file mode 100644 index 00000000..2293c252 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-VFMGCCGG.js @@ -0,0 +1 @@ +import{n as e}from"./chunk-QHPTZGVN.js";import{b as l}from"./chunk-X2BR3YJG.js";import{Ed as a,O as s,W as n,Wc as p,Z as o,ec as m}from"./chunk-T7QWSMKM.js";var R=(()=>{let t=class t extends l{constructor(c,i){super(c,i,e,"StudyClasses","Number")}getActive(){return this.http.get(`${this.baseUrl}/?filter.IsActive==true`,{headers:{"X-Role-Restriction":"ClassTeacherRole"}}).pipe(s(a(e)))}getActiveFormativeAssessments(){return this.http.get(`${this.baseUrl}/FormativeAssessments?filter.IsActive==true`,{headers:{"X-Role-Restriction":"ClassTeacherRole"}}).pipe(s(a(e)))}};t.\u0275fac=function(i){return new(i||t)(o(m),o(p))},t.\u0275prov=n({token:t,factory:t.\u0275fac,providedIn:"root"});let r=t;return r})();export{R as a}; diff --git a/public/apps/webapp-schulverwaltung/chunk-VSATLVUN.js b/public/apps/webapp-schulverwaltung/chunk-VSATLVUN.js new file mode 100644 index 00000000..1faa069d --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-VSATLVUN.js @@ -0,0 +1 @@ +import{a as si}from"./chunk-3V5HHMRH.js";import{a as oi,b as li}from"./chunk-ZK2M6PDV.js";import{a as ci}from"./chunk-VFMGCCGG.js";import{a as ai}from"./chunk-RC3HL7KB.js";import"./chunk-KLXFX6SJ.js";import{a as et,b as Wt,c as zt,d as Kt,e as Yt,f as Ue,g as qe,h as Jt,i as Qt,j as Xt,k as Zt,l as ei,m as ye,o as ti,p as pe,s as ni,u as We}from"./chunk-QHPTZGVN.js";import"./chunk-HHGALFFJ.js";import"./chunk-2FIH3FGB.js";import"./chunk-MVTCHCDH.js";import{a as Ht}from"./chunk-Y4QYVF5K.js";import"./chunk-WN7VWSJW.js";import{a as di}from"./chunk-TNMAZX5O.js";import{a as pi}from"./chunk-2IXEFCAH.js";import"./chunk-X2BR3YJG.js";import{a as qt,d as ii}from"./chunk-LO5XSJLW.js";import"./chunk-DMYOU5OM.js";import"./chunk-RWNJF4OZ.js";import{P as Vt,Y as ri,t as At}from"./chunk-GI4AZI25.js";import{a as xe,c as Lt,e as be}from"./chunk-Q5U6YZUT.js";import{a as Ut,b as He}from"./chunk-N6FFLIGM.js";import{a as Z,b as Nt,c as Ce}from"./chunk-33NXTXD7.js";import{f as Gt,g as Ot,i as $t,j as Ft,p as Ae,u as Ne}from"./chunk-FTRAQKUW.js";import{a as Ve}from"./chunk-3AROKYRB.js";import{$ as C,$a as u,$c as _e,A as ot,Ab as xt,Ad as Rt,B as dt,Bb as l,C as lt,Cb as p,Cd as Dt,Db as G,E as ee,Fb as re,G as W,Ga as f,Gd as X,Hb as bt,Hd as P,I as Ge,Ia as c,Id as w,J as pt,Ja as se,Jd as jt,L as z,N as ct,O as D,Q as ce,Rb as le,Sa as o,Sb as ge,Ta as d,Tb as B,Ua as E,Va as K,W as me,Wa as Y,Wb as V,Wc as he,Xb as Oe,Ya as O,Z as A,Zc as Be,_a as _,a as R,ab as gt,ad as Re,b as j,bb as ft,bd as yt,ca as mt,cb as oe,e as te,ec as Ct,ed as St,f as L,fd as It,g as Xe,ga as ue,gd as De,ha as S,hd as Tt,ia as I,ib as q,jb as m,jd as Et,k as U,ka as ut,kb as x,kd as kt,l as st,lb as h,m as b,mb as Ze,n as ie,od as je,pc as fe,pd as Le,qc as $e,qd as Pt,ra as ne,rc as Fe,rd as wt,sb as de,sc as ae,sd as ve,ta as ke,tb as y,td as Mt,ua as s,ub as ht,v as Me,va as v,vb as M,w as Ee,wb as Pe,xb as _t,zb as vt,zd as Bt}from"./chunk-T7QWSMKM.js";var qi=t=>[t,"tests"];function Wi(t,n){if(t&1&&(o(0,"span"),m(1),l(2,"date"),E(3,"wbr"),m(4),l(5,"date"),d()),t&2){let r=u();s(),h("",G(2,2,r.event.dateFrom,"dd.MM.yyyy"),"\u2013"),s(3),x(G(5,5,r.event.dateTo,"dd.MM.yyyy"))}}function zi(t,n){if(t&1&&(o(0,"a",10)(1,"i",11),m(2,"arrow_right_alt"),d(),o(3,"span",12),m(4),d()()),t&2){let r=u(2);c("routerLink",M(2,qi,r.event.id)),s(4),x(r.event.evaluationText)}}function Ki(t,n){if(t&1&&(o(0,"a",13)(1,"i",11),m(2,"arrow_right_alt"),d(),o(3,"span",12),m(4),d()()),t&2){let r=u(2);c("href",r.event.evaluationLink,ke),s(4),h("",r.event.evaluationText," ")}}function Yi(t,n){if(t&1&&(o(0,"div",7),f(1,zi,5,4,"a",8)(2,Ki,5,2,"a",9),d()),t&2){let r=u();s(),c("ngIf",!r.event.evaluationLink),s(),c("ngIf",r.event.evaluationLink)}}var mi=(()=>{let n=class n{constructor(){this.withRatings=!0}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=C({type:n,selectors:[["bkd-events-list-entry"]],inputs:{event:"event",withRatings:"withRatings"},standalone:!0,features:[y],decls:11,vars:8,consts:[[1,"designation"],[3,"href"],[1,"date"],[4,"ngIf"],[1,"registrations"],[1,"registrations-label"],["class","rating",4,"ngIf"],[1,"rating"],["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"]],template:function(i,a){i&1&&(o(0,"div",0)(1,"a",1),m(2),d()(),o(3,"div",2),f(4,Wi,6,8,"span",3),d(),o(5,"div",4),m(6),o(7,"span",5),m(8),l(9,"translate"),d()(),f(10,Yi,3,2,"div",6)),i&2&&(s(),c("href",a.event.detailLink,ke),s(),x(a.event.designation),s(2),c("ngIf",a.event.dateFrom&&a.event.dateTo),s(2),h(" ",a.event.studentCount," "),s(2),x(p(9,6,a.event.studentCount===1?"events.registration":"events.registrations")),s(2),c("ngIf",a.withRatings&&a.event.evaluationText))},dependencies:[B,ae,Oe,w,P],styles:['[_nghost-%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){.registrations-label[_ngcontent-%COMP%]{display:inline}.designation[_ngcontent-%COMP%], .date[_ngcontent-%COMP%], .registrations[_ngcontent-%COMP%]{padding-right:0}[_nghost-%COMP%]{grid-template-areas:"designation" "date" "registrations" "rating";grid-template-columns:1fr}}']});let t=n;return t})();var Ji=10300,Qi=10260,Xi=10250,Zi=14030,en=10350;function ze(t){let{HasEvaluationStarted:n,EvaluationUntil:r,HasTestGrading:e}=t.EvaluationStatusRef;if(n===!0&&(t.StatusId===Zi||t.StatusId===en))return{value:Q.Rating};if(n===!0&&e===!1){if(r)return{value:Q.RatingUntil};if(t.StatusId===Ji)return{value:Q.IntermediateRating}}return n===!1&&e===!0&&t.StatusId!==Qi&&t.StatusId!==Xi?{value:Q.Tests}:n===!0&&e===!0?r?{value:Q.Tests,label:Q.RatingUntil}:{value:Q.Tests,label:Q.IntermediateRating}:null}function ui(t){return t.EvaluationStatusRef.HasEvaluationStarted===!0}function gi(t){return t.EvaluationStatusRef.HasReviewOfEvaluationStarted===!0&&!!t.FinalGrades?.length}function Ke(t){let n=t.Classes?t.Classes.map(r=>r.Number).join(", "):null;return n?t.Designation+", "+n:t.Designation}var Q=function(t){return t.Rating="rating",t.RatingUntil="rating-until",t.IntermediateRating="intermediate-rating",t.Tests="add-tests",t}(Q||{}),Se=(()=>{let n=class n{constructor(e,i,a,g,k,T){this.coursesRestService=e,this.eventsRestService=i,this.studyClassRestService=a,this.loadingService=g,this.translate=k,this.settings=T,this.loading$=this.loadingService.loading$,this.searchSubject$=new L(""),this.search$=this.searchSubject$.asObservable(),this.roles$=new L(null),this.isClassTeacher$=this.roles$.pipe(b(F=>Ht(F,"ClassTeacherRole")),z(1)),this.withStudyCourses$=new L(!1),this.unratedCourses$=this.roles$.pipe(D(this.loadUnratedCourses.bind(this)),z(1)),this.studyCourses$=this.withStudyCourses$.pipe(D(this.loadStudyCourses.bind(this)),z(1)),this.formativeAssessments$=this.isClassTeacher$.pipe(D(this.loadFormativeAssessments.bind(this)),z(1)),this.studyClasses$=this.isClassTeacher$.pipe(D(this.loadStudyClasses.bind(this)),z(1)),this.events$=this.getEvents().pipe(z(1)),this.filteredEvents$=ie([this.events$,this.search$]).pipe(b(be(oi)))}setSearch(e){this.searchSubject$.next(e)}setRoles(e){this.roles$.next(e)}setWithStudyCourses(e){this.withStudyCourses$.next(e)}getEntries(e=!1){return this.filteredEvents$.pipe(b(i=>e?i.filter(a=>a.evaluationText):i))}getEvents(){return this.loadingService.load(ie([this.unratedCourses$,this.studyCourses$,this.formativeAssessments$,this.studyClasses$]),{stopOnFirstValue:!0}).pipe(b(be(this.createAndSortEvents.bind(this))))}loadUnratedCourses(e){return this.coursesRestService.getExpandedCourses(e).pipe(b(i=>i.filter(a=>!gi(a))))}loadStudyCourses(e){return e?this.eventsRestService.getStudyCourseEvents():U([])}loadFormativeAssessments(e){return e?this.studyClassRestService.getActiveFormativeAssessments():U([])}loadStudyClasses(e){return e?this.studyClassRestService.getActive():U([])}createAndSortEvents(e,i,a,g){let k=g.filter(T=>!a.map(F=>F.Id).includes(T.Id));return[...this.createFromCourses(e),...this.createFromStudyCourses(i),...this.createFromAssessments(a),...this.createFromStudyClasses(k)].sort((T,F)=>T.designation.localeCompare(F.designation))}createFromCourses(e){return e.map(i=>{let a=ze(i);return{id:i.Id,designation:Ke(i),detailLink:this.buildLink(i.Id,"eventdetail"),studentCount:i.AttendanceRef.StudentCount||0,dateFrom:i.DateFrom,dateTo:i.DateTo,state:a?.value||null,evaluationText:this.getEvaluationText(a,i.EvaluationStatusRef.EvaluationUntil),evaluationLink:this.getEvaluationLink(a?.value,i)}})}createFromStudyCourses(e){return e.map(i=>({id:i.Id,designation:i.Designation,detailLink:this.buildLink(i.Id,"eventdetail"),studentCount:i.StudentCount,state:null}))}createFromAssessments(e){return this.createFromStudyClasses(e).map(a=>j(R({},a),{state:Q.Rating,evaluationText:this.translate.instant("events.state.rating"),evaluationLink:this.buildLink(a.id,"evaluation")}))}createFromStudyClasses(e){return e.map(i=>({id:i.Id,designation:i.Number,detailLink:this.buildLink(i.Id,"eventdetail"),studentCount:i.StudentCount,state:null}))}getEvaluationText(e,i){let a=e?.label||e?.value;return a?this.translate.instant(`events.state.${a}`)+(a===Q.RatingUntil?` ${i?At(i,"dd.MM.yyyy"):""}`:""):""}getEvaluationLink(e,i){return e&&e!==Q.Tests?this.buildLink(i.Id,"evaluation"):null}buildLink(e,i){return(this.settings.eventlist[i]??"").replace(":id",String(e))}};n.\u0275fac=function(i){return new(i||n)(A(pe),A(si),A(ci),A(He),A(X),A(he))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var rn=t=>({events:t});function an(t,n){t&1&&(o(0,"div",12),m(1),l(2,"translate"),d()),t&2&&(s(),h(" ",p(2,1,"events.rating")," "))}function sn(t,n){if(t&1&&E(0,"bkd-events-list-entry",13),t&2){let r=n.$implicit,e=u(4);c("event",r)("withRatings",e.withRatings)}}function on(t,n){if(t&1&&(K(0),o(1,"div",6)(2,"div",7),m(3),l(4,"translate"),d(),o(5,"div",8),m(6),l(7,"translate"),d(),o(8,"div",9),m(9),l(10,"translate"),d(),f(11,an,3,3,"div",10),d(),f(12,sn,1,2,"bkd-events-list-entry",11),Y()),t&2){let r=u(2).bkdLet,e=u();s(3),x(p(4,5,"events.designation")),s(3),x(p(7,7,"events.date")),s(3),h(" ",p(10,9,"events.registrations")," "),s(2),c("ngIf",e.withRatings),s(),c("ngForOf",r.events)}}function dn(t,n){t&1&&(o(0,"p",14),m(1),l(2,"translate"),d()),t&2&&(s(),x(p(2,1,"events.no-events")))}function ln(t,n){if(t&1&&(K(0),f(1,on,13,11,"ng-container",5)(2,dn,3,3,"ng-template",null,1,re),Y()),t&2){let r=q(3),e=u().bkdLet;s(),c("ngIf",(e.events==null?null:e.events.length)>0)("ngIfElse",r)}}function pn(t,n){t&1&&E(0,"bkd-spinner")}function cn(t,n){if(t&1){let r=O();o(0,"div",3)(1,"bkd-resettable-input",4),l(2,"async"),l(3,"translate"),l(4,"translate"),_("valueChange",function(i){S(r);let a=u();return I(a.state.setSearch(i))}),d(),f(5,ln,4,2,"ng-container",5),l(6,"async"),f(7,pn,1,0,"ng-template",null,0,re),d()}if(t&2){let r=n.bkdLet,e=q(8),i=u();s(),c("value",p(2,6,i.state.search$))("placeholder",p(3,8,"events.search-by"))("label",p(4,10,"events.search"))("disabled",!r.events),s(4),c("ngIf",p(6,12,i.state.loading$)===!1)("ngIfElse",e)}}var Ye=(()=>{let n=class n{constructor(e,i){this.state=e,this.storage=i,this.withStudyCourses=!1,this.withRatings=!0,this.state.setRoles(this.storage.getPayload()?.roles??null)}ngOnChanges(e){e.withStudyCourses&&this.state.setWithStudyCourses(e.withStudyCourses.currentValue)}};n.\u0275fac=function(i){return new(i||n)(v(Se),v(jt))},n.\u0275cmp=C({type:n,selectors:[["bkd-events-list"]],inputs:{withStudyCourses:"withStudyCourses",withRatings:"withRatings"},standalone:!0,features:[ue,y],decls:2,vars:5,consts:[["loading",""],["noEvents",""],["class","bkd-container",4,"bkdLet"],[1,"bkd-container"],[1,"d-flex","search",3,"valueChange","value","placeholder","label","disabled"],[4,"ngIf","ngIfElse"],[1,"event-header"],[1,"designation"],[1,"date"],[1,"registrations"],["class","rating",4,"ngIf"],[3,"event","withRatings",4,"ngFor","ngForOf"],[1,"rating"],[3,"event","withRatings"],[1,"mt-3"]],template:function(i,a){i&1&&(f(0,cn,9,14,"div",2),l(1,"async")),i&2&&c("bkdLet",M(3,rn,p(1,1,a.state.getEntries(a.withRatings))))},dependencies:[Z,li,B,ge,Ce,V,w,P,mi],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}@media (max-width: 575.98px){.event-header[_ngcontent-%COMP%]{display:none}}']});let t=n;return t})();var fi=(()=>{let n=class n{constructor(){}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=C({type:n,selectors:[["bkd-events-current"]],standalone:!0,features:[y],decls:4,vars:5,consts:[[3,"withStudyCourses","withRatings"]],template:function(i,a){i&1&&(o(0,"h1"),m(1),l(2,"translate"),d(),E(3,"bkd-events-list",0)),i&2&&(s(),x(p(2,3,"events.current.title")),s(2),c("withStudyCourses",!0)("withRatings",!1))},dependencies:[Ye,w,P]});let t=n;return t})();var hi=(()=>{let n=class n{constructor(){}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=C({type:n,selectors:[["bkd-events-tests"]],standalone:!0,features:[y],decls:4,vars:4,consts:[[3,"withRatings"]],template:function(i,a){i&1&&(o(0,"h1"),m(1),l(2,"translate"),d(),E(3,"bkd-events-list",0)),i&2&&(s(),x(p(2,2,"events.title")),s(2),c("withRatings",!0))},dependencies:[Ye,w,P]});let t=n;return t})();var _i=(()=>{let n=class n{constructor(){}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=C({type:n,selectors:[["bkd-events"]],standalone:!0,features:[de([Se,Vt]),y],decls:1,vars:0,template:function(i,a){i&1&&E(0,"router-outlet")},dependencies:[$e]});let t=n;return t})();function vi(t){return n=>{let r=Number(n.value);return r<=t?{greaterThan:{value:r,greaterThanValue:t}}:null}}function it(t){return t.map(({finalGrade:n})=>n).filter(mn)}function mn(t){return t!==null}function Ci(t,n,r,e){return t?.map(i=>({student:i,finalGrade:gn(i,r,e),grades:un(i,n)}))}function un(t,n){return n.map(r=>{if(r.Results===void 0||r.Results?.length===0)return{kind:"no-result",test:r};let e=r.Results?.find(i=>i.StudentId===t.Id);return e!==void 0?{kind:"grade",result:e,test:r}:{kind:"no-result",test:r}})}function gn(t,n,r){let e=n.find(a=>a.StudentId===t.Id),i=r.find(a=>a.StudentId===t.Id);return e?{id:e.Id,average:fn(e),finalGradeId:e.GradeId,freeHandGrade:i?Number(i.Grade):null,canGrade:e.CanGrade}:null}function fn(t){return t.AverageTestResult===0?null:t.AverageTestResult}var yi=({key:t,ascending:n})=>(r,e)=>{let i=n?1:-1;switch(t){case"FullName":return i*r.student.FullName.localeCompare(e.student.FullName);case"FinalGrade":return!r.finalGrade?.finalGradeId||!e.finalGrade?.finalGradeId?i*-1:i*xi(r.finalGrade.finalGradeId,e.finalGrade.finalGradeId);case"TestsMean":return!r.finalGrade?.average||!e.finalGrade?.average?i*-1:i*xi(r.finalGrade.average,e.finalGrade.average)}return i*hn(t,r,e)},hn=(t,n,r)=>{let e=n.grades.filter(bi).find(a=>a.test.Id===t.Id),i=r.grades.filter(bi).find(a=>a.test.Id===t.Id);return t.IsPointGrading&&e?.result.GradeId===i?.result.GradeId?(e?.result.Points??0)-(i?.result.Points??0):((e?.result.GradeId??Number.POSITIVE_INFINITY)-(i?.result.GradeId??Number.POSITIVE_INFINITY))*-1};function xi(t,n){return t===n?0:tr.average).filter(r=>r!=null&&r!==0).map(Number);return et(n)}function Ti(t,n){let r=t.map(i=>i.freeHandGrade).filter(i=>!!i),e=t.map(i=>i.finalGradeId).filter(i=>i!==null).map(i=>n.find(a=>a.Key===i)).filter(i=>i!==void 0).map(i=>i?.Value).filter(i=>i!==void 0).map(Number).filter(i=>!isNaN(i));return et([...e,...r])}function nt(t,n){return[...n.filter(r=>r.Id!==t?.Id),t].filter(r=>r!=null)}function Ei({id:t,selectedGradeId:n},r){return r.map(e=>e.Id!==t?e:j(R({},e),{GradeId:n}))}function ki(t,n){switch(n.type){case"reset":return n.payload;case"updateResult":return t?j(R({},t),{Tests:zt(n.payload.testResult,t.Tests||[],n.payload.ignore),Gradings:n.payload.grading?nt(n.payload.grading,t.Gradings||[]):t.Gradings}):null;case"deleteResult":return t?j(R({},t),{Tests:Kt(n.payload.testId,n.payload.studentId,t.Tests||[]),Gradings:n.payload.grading?nt(n.payload.grading,t.Gradings||[]):t.Gradings||[]}):null;case"toggle-test-state":return t?j(R({},t),{Tests:Yt(n.payload,t.Tests||[])}):null;case"final-grade-overwritten":return t?j(R({},t),{Gradings:Ei({id:n.payload.id,selectedGradeId:n.payload.selectedGradeId},t.Gradings||[])}):null;case"replace-grades":return t?j(R({},t),{Gradings:n.payload}):null;case"delete-test":return t?j(R({},t),{Tests:Jt(n.payload,t.Tests||[])}):null;default:return t}}var Pi=(()=>{let n=class n extends Nt{constructor(e,i){super(e,i,ti,"Gradings")}updateGrade(e,i){return this.http.put(`${this.baseUrl}/${e}`,{GradeId:i}).pipe(b(()=>e))}};n.\u0275fac=function(i){return new(i||n)(A(Ct),A(he))},n.\u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"});let t=n;return t})();var rt={onlyMine:!1,hidePublished:!1},J=(()=>{let n=class n{constructor(e,i,a,g,k){this.coursesRestService=e,this.gradingScalesRestService=i,this.gradingsRestService=a,this.loadingService=g,this.sortService=k,this.action$=new Xe(1),this.loading$=this.loadingService.loading$,this._courseId$=new Xe(1),this.courseId$=this._courseId$.asObservable(),this.fetchedCourse$=this._courseId$.pipe(D(T=>this.loadingService.load(this.coursesRestService.getExpandedCourse(T))),z(1)),this.course$=Me(this.action$,this.fetchedCourse$.pipe(Ee(Ne),b(T=>({type:"reset",payload:T})))).pipe(pt(ki,null),Ee(Ne),z(1)),this.tests$=this.course$.pipe(b(T=>T.Tests||[]),b(Qt)),this.hasTests$=this.tests$.pipe(b(T=>T.length>0)),this.filterSubject$=new L(rt),this.filter$=this.filterSubject$.asObservable(),this.expandedHeader$=new L(!1),this.filteredTests$=ie([this.tests$,this.filter$]).pipe(b(([T,F])=>T.filter(H=>(!F.onlyMine||H.IsOwner)&&(!F.hidePublished||!H.IsPublished)))),this.sorting$=this.sortService.sorting$,this.studentGrades$=ie([this.course$,this.filteredTests$,this.sorting$]).pipe(b(be(this.toStudentGrades.bind(this)))),this.canSetFinalGrade$=this.course$.pipe(b(ui)),this.gradingScaleIds$=this.course$.pipe(b(T=>Rt([...(T.Tests??[]).map(F=>F.GradingScaleId),T.GradingScaleId]).filter(Ne)),W(Bt),z(1)),this.gradingScales$=this.gradingScaleIds$.pipe(D(T=>this.gradingScalesRestService.getGradingScales(T)),z(1)),this.UNDEFINED_GRADINGSCALE_ID=-1,this.gradingScalesOptions$=this.gradingScales$.pipe(b(T=>T.map(F=>{let H=F?.Id||this.UNDEFINED_GRADINGSCALE_ID,Te=F?.Grades.map(we=>({Key:we.Id,Value:we.Designation}))||[];return{id:H,options:Te}}).reduce((F,H)=>j(R({},F),{[H.id]:H.options}),{})),z(1)),this.meanOfStudentGradesForCourse$=this.studentGrades$.pipe(b(T=>Ii(it(T)))),this.meanOfFinalGradesForCourse$=ie([this.gradingScalesOptions$,this.studentGrades$]).pipe(D(be(this.meanOfOverwrittenGradesForCourse.bind(this))))}setCourseId(e){this._courseId$.next(e)}setFilter(e){this.filterSubject$.next(e)}gradingOptionsForTest$(e){return this.gradingOptions$(e.GradingScaleId)}gradingOptionsForCourse$(){return this.course$.pipe(D(e=>this.gradingOptions$(e.GradingScaleId)))}toStudentGrades(e,i=[],a){return Ci(e.ParticipatingStudents??[],i,e.Gradings??[],e.FinalGrades??[]).sort(yi(a))}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)}optimisticallyUpdateGrade(e){return this.course$.pipe(ee(1),b(i=>{let{originalResult:a,updatedResult:g}=this.buildOptimisticResultUpdate(i,e);return this.updateTestResult(g,null),a}))}saveGrade(e,i){this.course$.pipe(ee(1),D(a=>this.coursesRestService.updateTestResult(a.Id,e).pipe(ot(g=>(i&&this.updateTestResult(R({},i),null),st(()=>g)))))).subscribe(({testResult:a,grading:g})=>this.updateOrDeleteTestResult(e.testId,e.studentId,a,g,"gradeId"in e?"grade":"points"))}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:i}){this.gradingsRestService.updateGrade(e,i).subscribe(()=>{this.action$.next({type:"final-grade-overwritten",payload:{id:e,selectedGradeId:i}})})}setAveragesAsFinalGrades(e){this.coursesRestService.setAverageAsFinalGrade(e).subscribe(i=>this.action$.next({type:"replace-grades",payload:i.Gradings}))}buildOptimisticResultUpdate(e,i){let a=Wt(e,i.testId,i.studentId),g=a?R({},a):{Id:"",TestId:i.testId,StudentId:i.studentId,CourseRegistrationId:0,GradeId:null,GradeValue:null,GradeDesignation:null,Points:null};return g.GradeId="gradeId"in i?i.gradeId:a?.GradeId??null,g.Points="points"in i?i.points:a?.Points??null,{originalResult:a,updatedResult:g}}updateOrDeleteTestResult(e,i,a,g,k){a?this.updateTestResult(a,g,k):this.deleteTestResult(e,i,g)}updateTestResult(e,i,a){this.action$.next({type:"updateResult",payload:{testResult:e,grading:i??null,ignore:a}})}deleteTestResult(e,i,a){this.action$.next({type:"deleteResult",payload:{testId:e,studentId:i,grading:a}})}toggleTestPublishedState(e){this.action$.next({type:"toggle-test-state",payload:e})}gradingOptions$(e){return e===null?U(null):this.gradingScalesOptions$.pipe(b(i=>i[e]),z(1))}meanOfOverwrittenGradesForCourse(e,i){return this.course$.pipe(b(a=>{if(a.GradingScaleId===null||e[a.GradingScaleId]===void 0)return null;let g=e[a.GradingScaleId];return Ti(it(i),g)}))}};n.\u0275fac=function(i){return new(i||n)(A(pe),A(ni),A(Pi),A(He),A(pi))},n.\u0275prov=me({token:n,factory:n.\u0275fac});let t=n;return t})();var xn=t=>({formGroup:t}),bn=t=>["/events",t,"tests"];function Cn(t,n){if(t&1&&(o(0,"div",31),m(1),l(2,"translate"),d()),t&2){let r=n.$implicit;s(),h(" ",G(2,1,"global.validation-errors."+r.error,r.params)," ")}}function yn(t,n){if(t&1&&(o(0,"div",31),m(1),l(2,"translate"),d()),t&2){let r=n.$implicit;s(),h(" ",G(2,1,"global.validation-errors."+r.error,r.params)," ")}}function Sn(t,n){if(t&1&&(o(0,"div",31),m(1),l(2,"translate"),d()),t&2){let r=n.$implicit;s(),h(" ",G(2,1,"global.validation-errors."+r.error,r.params)," ")}}function In(t,n){if(t&1&&(o(0,"div",31),m(1),l(2,"translate"),d()),t&2){let r=n.$implicit;s(),h(" ",G(2,1,"global.validation-errors."+r.error,r.params)," ")}}function Tn(t,n){if(t&1&&(o(0,"div",31),m(1),l(2,"translate"),d()),t&2){let r=n.$implicit;s(),h(" ",G(2,1,"global.validation-errors."+r.error,r.params)," ")}}function En(t,n){if(t&1&&(K(0),o(1,"div",32)(2,"div",33)(3,"div",17)(4,"label",34),m(5),l(6,"translate"),d(),o(7,"div",35),E(8,"input",36),l(9,"async"),f(10,In,3,4,"div",8),l(11,"async"),d()()(),o(12,"div",33)(13,"div",17)(14,"label",37),m(15),l(16,"translate"),d(),o(17,"div",35),E(18,"input",38),l(19,"async"),f(20,Tn,3,4,"div",8),l(21,"async"),d()()()(),o(22,"div",39),ut(),o(23,"math")(24,"mi"),m(25),l(26,"translate"),d(),o(27,"mo"),m(28,"="),d(),o(29,"mfrac")(30,"mrow")(31,"mi"),m(32),l(33,"translate"),d(),o(34,"mo"),m(35,"\xD7"),d(),o(36,"mn"),m(37,"5"),d()(),o(38,"mi"),m(39),l(40,"translate"),d()(),o(41,"mo"),m(42,"+"),d(),o(43,"mn"),m(44,"1"),d()()(),Y()),t&2){let r,e,i=u(3);s(5),x(p(6,11,"tests.form.max-points")),s(3),se("is-invalid",((r=p(9,13,i.maxPointsErrors$))==null?null:r.length)||!1),s(2),c("ngForOf",p(11,15,i.maxPointsErrors$)),s(5),x(p(16,17,"tests.form.max-points-adjusted")),s(3),se("is-invalid",((e=p(19,19,i.maxPointsAdjustedErrors$))==null?null:e.length)||!1),s(2),c("ngForOf",p(21,21,i.maxPointsAdjustedErrors$)),s(5),h(" ",p(26,23,"tests.form.math.grade")," "),s(7),h(" ",p(33,25,"tests.form.math.points")," "),s(7),x(p(40,27,"tests.form.math.max-points"))}}function kn(t,n){t&1&&(o(0,"div",40)(1,"span",41),m(2,"Loading..."),d()())}function Pn(t,n){if(t&1){let r=O();o(0,"form",3),_("ngSubmit",function(){S(r);let i=u(2);return I(i.onSubmit())}),o(1,"div",4)(2,"div",5)(3,"label",6),m(4),l(5,"translate"),d(),E(6,"input",7),l(7,"async"),l(8,"translate"),f(9,Cn,3,4,"div",8),l(10,"async"),d(),o(11,"div",9)(12,"label",10),m(13),l(14,"translate"),d(),o(15,"div",11)(16,"span",12)(17,"i",13),m(18,"calendar_today"),d()(),o(19,"input",14,0),l(21,"async"),l(22,"translate"),_("click",function(){S(r);let i=q(20);return I(i.toggle())}),d(),f(23,yn,3,4,"div",8),l(24,"async"),d()()(),o(25,"div",15)(26,"label",16),m(27),l(28,"translate"),d(),o(29,"div",5)(30,"div",17)(31,"label",18),m(32),l(33,"translate"),d(),o(34,"div",19),E(35,"input",20),l(36,"async"),f(37,Sn,3,4,"div",8),l(38,"async"),d()()()(),o(39,"div")(40,"label",16),m(41),l(42,"translate"),d(),o(43,"div",21),E(44,"input",22),o(45,"label",23),m(46),l(47,"translate"),d()(),o(48,"div",21),E(49,"input",24),o(50,"label",25),m(51),l(52,"translate"),d()(),f(53,En,45,29,"ng-container",26),d(),o(54,"div",27)(55,"button",28),l(56,"async"),m(57),l(58,"translate"),d(),o(59,"button",29),m(60),l(61,"translate"),f(62,kn,3,0,"div",30),d()()()}if(t&2){let r,e,i,a=u().bkdLet,g=u();c("formGroup",a.formGroup),s(4),x(p(5,29,"tests.form.designation")),s(2),se("is-invalid",((r=p(7,31,g.designationErrors$))==null?null:r.length)||!1),c("placeholder",p(8,33,"tests.form.designation-placeholder")),s(3),c("ngForOf",p(10,35,g.designationErrors$)),s(4),x(p(14,37,"tests.form.date")),s(3),c("id",g.componentId),s(3),se("is-invalid",((e=p(21,39,g.dateErrors$))==null?null:e.length)||!1),c("placeholder",p(22,41,"shared.date-select.default-placeholder")),s(4),c("ngForOf",p(24,43,g.dateErrors$)),s(4),x(p(28,45,"tests.form.weight")),s(5),x(p(33,47,"tests.form.factor")),s(3),se("is-invalid",((i=p(36,49,g.weightErrors$))==null?null:i.length)||!1),s(2),c("ngForOf",p(38,51,g.weightErrors$)),s(4),x(p(42,53,"tests.form.grading-type")),s(3),c("value",!1),s(2),x(p(47,55,"tests.form.grades")),s(3),c("value",!0),s(2),x(p(52,57,"tests.form.points")),s(2),c("ngIf",a.formGroup.get("isPointGrading").value),s(2),c("disabled",g.saving)("routerLink",M(65,bn,p(56,59,g.courseId$))),s(2),h(" ",p(58,61,"tests.form.cancel")," "),s(2),c("disabled",g.saving),s(),h(" ",p(61,63,"tests.form.save")," "),s(2),c("ngIf",g.saving)}}function wn(t,n){if(t&1&&(K(0),f(1,Pn,63,67,"form",2),Y()),t&2){let r=n.bkdLet;s(),c("ngIf",r.formGroup)}}var Je=(()=>{let n=class n{constructor(e,i,a){this.fb=e,this.translate=i,this.testStateService=a,this.test=null,this.saving=!1,this.save=new ne,this.componentId=Dt("bkd-tests-edit-form"),this.formGroup=this.createFormGroup(),this.submitted$=new L(!1),this.destroy$=new te,this.designationErrors$=xe(U(this.formGroup),this.submitted$,"designation"),this.dateErrors$=xe(U(this.formGroup),this.submitted$,"date"),this.maxPointsErrors$=xe(U(this.formGroup),this.submitted$,"maxPoints"),this.maxPointsAdjustedErrors$=xe(U(this.formGroup),this.submitted$,"maxPointsAdjusted"),this.weightErrors$=xe(U(this.formGroup),this.submitted$,"weight"),this.courseId$=this.testStateService.courseId$}ngOnInit(){this.test&&this.setInitialValues(this.test),Lt(U(this.formGroup),"isPointGrading").pipe(ce(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:["",_e.required],date:[null,_e.required],weight:[1,_e.compose([_e.required,vi(0)])],isPointGrading:[!1],maxPoints:[{value:null,disabled:!0},_e.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(){let e=this.formGroup.get("maxPoints"),i=this.formGroup.get("maxPointsAdjusted");this.formGroup.get("isPointGrading")?.value?(e?.enable(),i?.enable()):(e?.reset({value:this.test?.MaxPoints,disabled:!0}),i?.reset({value:this.test?.MaxPointsAdjusted,disabled:!0}))}};n.\u0275fac=function(i){return new(i||n)(v(wt),v(X),v(J))},n.\u0275cmp=C({type:n,selectors:[["bkd-tests-edit-form"]],inputs:{test:"test",saving:"saving"},outputs:{save:"save"},standalone:!0,features:[de([{provide:Gt,useClass:Ft},{provide:Ot,useClass:di}]),y],decls:1,vars:3,consts:[["dp","ngbDatepicker"],[4,"bkdLet"],[3,"formGroup","ngSubmit",4,"ngIf"],[3,"ngSubmit","formGroup"],[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,"click","placeholder"],[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(i,a){i&1&&f(0,wn,2,1,"ng-container",1),i&2&&c("bkdLet",M(1,xn,a.formGroup))},dependencies:[Z,B,ve,It,Be,De,Tt,Re,yt,Pt,Le,je,Mt,Et,kt,ge,$t,ae,V,w,P],styles:["#factor[_ngcontent-%COMP%], #max-points[_ngcontent-%COMP%], #max-points-adjusted[_ngcontent-%COMP%]{width:5em}"]});let t=n;return t})();var Gn=(t,n)=>({courseId:t,saving:n});function On(t,n){if(t&1){let r=O();o(0,"div",1)(1,"bkd-tests-edit-form",2),_("save",function(i){S(r);let a=u();return I(a.save(i))}),d()()}if(t&2){let r=n.bkdLet;s(),c("saving",r.saving)}}var Mi=(()=>{let n=class n{constructor(e,i,a,g,k){this.route=e,this.courseService=i,this.toastService=a,this.translate=g,this.router=k,this.saving$=new L(!1),this.courseId$=this.route.paramMap.pipe(b(T=>Number(T.get("id"))),W())}save(e){this.saving$.next(!0);let{designation:i,date:a,weight:g,isPointGrading:k,maxPoints:T,maxPointsAdjusted:F}=e;this.courseId$.pipe(D(H=>this.courseService.add(H,a,i,g,k,T,F)),Ge(()=>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"]))}};n.\u0275fac=function(i){return new(i||n)(v(fe),v(pe),v(Ve),v(X),v(Fe))},n.\u0275cmp=C({type:n,selectors:[["bkd-tests-add"]],standalone:!0,features:[y],decls:6,vars:11,consts:[["class","bkd-container bkd-container-limited",4,"bkdLet"],[1,"bkd-container","bkd-container-limited"],[3,"save","saving"]],template:function(i,a){i&1&&(o(0,"h1"),m(1),l(2,"translate"),d(),f(3,On,2,1,"div",0),l(4,"async"),l(5,"async")),i&2&&(s(),x(p(2,2,"tests.add-title")),s(2),c("bkdLet",Pe(8,Gn,p(4,4,a.courseId$),p(5,6,a.saving$))))},dependencies:[Z,Je,V,w,P]});let t=n;return t})();var Gi=(()=>{let n=class n{constructor(e){this.activeModal=e}get canDeleteTest(){return(this.test?.Results?.filter(i=>i.GradeId!==null||i.GradeValue!==null||i.Points!==null)||[]).length===0}};n.\u0275fac=function(i){return new(i||n)(v(Ae))},n.\u0275cmp=C({type:n,selectors:[["bkd-tests-delete"]],inputs:{test:"test"},standalone:!0,features:[y],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,"click","hidden"],[1,"px-2"],["data-testid","confirm-button","type","button",1,"btn","btn-primary",3,"click"],[1,"px-3"]],template:function(i,a){i&1&&(o(0,"div",0)(1,"p",1),m(2),l(3,"translate"),d()(),o(4,"div",2)(5,"button",3),_("click",function(){return a.activeModal.dismiss()}),o(6,"span",4),m(7),l(8,"translate"),d()(),o(9,"button",5),_("click",function(){return a.activeModal.close(a.canDeleteTest?a.test:null)}),o(10,"span",6),m(11),l(12,"translate"),d()()()),i&2&&(s(2),h(" ",p(3,4,a.canDeleteTest?"tests.form.confirm":"tests.form.delete-not-allowed")," "),s(3),c("hidden",!a.canDeleteTest),s(2),h(" ",p(8,6,"tests.dialog.no")," "),s(4),h(" ",p(12,8,a.canDeleteTest?"tests.dialog.yes":"tests.dialog.ok")," "))},dependencies:[w,P]});let t=n;return t})();var Bn=(t,n,r)=>({courseId:t,test:n,saving:r}),Rn=t=>({test:t});function Dn(t,n){if(t&1){let r=O();K(0),o(1,"div",4)(2,"h1"),m(3),l(4,"translate"),d(),o(5,"button",5),_("click",function(){S(r);let i=u().bkdLet,a=u();return I(a.openDeleteModal(i.test))}),o(6,"i",6),m(7,"delete"),d()()(),o(8,"bkd-tests-edit-form",7),_("save",function(i){S(r);let a=u(2);return I(a.save(i))}),d(),Y()}if(t&2){let r=u().bkdLet;s(3),h(" ",G(4,3,"tests.edit-title",M(6,Rn,r.test.Designation))," "),s(5),c("test",r.test)("saving",r.saving)}}function jn(t,n){t&1&&E(0,"bkd-spinner")}function Ln(t,n){if(t&1&&(o(0,"div",2),f(1,Dn,9,8,"ng-container",3),l(2,"async"),f(3,jn,1,0,"ng-template",null,0,re),d()),t&2){let r=q(4),e=u();s(),c("ngIf",p(2,2,e.state.loading$)===!1)("ngIfElse",r)}}var Oi=(()=>{let n=class n{constructor(e,i,a,g,k,T,F){this.state=e,this.courseService=i,this.route=a,this.toastService=g,this.translate=k,this.router=T,this.modalService=F,this.saving$=new L(!1),this.testId$=this.route.paramMap.pipe(b(H=>Number(H.get("testId"))),W()),this.test$=ie([this.state.tests$,this.testId$]).pipe(b(([H,Te])=>H.find(we=>we.Id===Te)))}openDeleteModal(e){let i=this.modalService.open(Gi);i.componentInstance.test=e,i.result.then(a=>{a&&this.courseService.delete(e.CourseId,e.Id).subscribe(this.onDeleteSuccess.bind(this))},()=>{})}save(e){this.saving$.next(!0);let{designation:i,date:a,weight:g,isPointGrading:k,maxPoints:T,maxPointsAdjusted:F}=e;ie([this.state.courseId$,this.testId$]).pipe(ee(1),D(([H,Te])=>this.courseService.update(H,Te,i,a,g,k,T,F)),Ge(()=>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(ee(1)).subscribe(e=>this.router.navigate(["events",e,"tests"]))}};n.\u0275fac=function(i){return new(i||n)(v(J),v(pe),v(fe),v(Ve),v(X),v(Fe),v(We))},n.\u0275cmp=C({type:n,selectors:[["bkd-tests-edit"]],standalone:!0,features:[y],decls:4,vars:11,consts:[["loading",""],["class","bkd-container bkd-container-limited",4,"bkdLet"],[1,"bkd-container","bkd-container-limited"],[4,"ngIf","ngIfElse"],[1,"d-flex","justify-content-between","align-items-center"],["type","button",1,"btn","btn-primary","btn-icon",3,"click"],[1,"material-icons"],[3,"save","test","saving"]],template:function(i,a){i&1&&(f(0,Ln,5,4,"div",1),l(1,"async"),l(2,"async"),l(3,"async")),i&2&&c("bkdLet",_t(7,Bn,p(1,1,a.state.courseId$),p(2,3,a.test$),p(3,5,a.saving$)))},dependencies:[Z,B,Je,Ce,V,w,P]});let t=n;return t})();var An=t=>({designation:t}),$i=(()=>{let n=class n{constructor(e){this.activeModal=e}};n.\u0275fac=function(i){return new(i||n)(v(Ae))},n.\u0275cmp=C({type:n,selectors:[["bkd-publish-test"]],inputs:{test:"test"},standalone:!0,features:[y],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(i,a){i&1&&(o(0,"div",0)(1,"p",1),m(2),l(3,"translate"),d()(),o(4,"div",2)(5,"button",3),_("click",function(){return a.activeModal.dismiss()}),m(6),l(7,"translate"),d(),o(8,"button",4),_("click",function(){return a.activeModal.close(!0)}),m(9),l(10,"translate"),d()()),i&2&&(s(2),h(" ",G(3,3,a.test.IsPublished?"tests.publishing.unpublish":"tests.publishing.publish",M(10,An,a.test.Designation))," "),s(4),h(" ",p(7,6,"tests.publishing.cancel")," "),s(3),h(" ",p(10,8,"tests.publishing.confirm")," "))},dependencies:[w,P],encapsulation:2});let t=n;return t})();var Vn=t=>({maxPoints:t});function Nn(t,n){if(t&1&&(o(0,"div",8),m(1),l(2,"translate"),d()),t&2){let r=u(2);s(),h(" ",G(2,1,"global.validation-errors.invalidPoints",M(4,Vn,r.maxPoints))," ")}}function Hn(t,n){if(t&1){let r=O();o(0,"div",5)(1,"input",6,0),_("ngModelChange",function(){S(r);let i=q(2),a=u();return I(a.onPointsChange(i.value))}),d(),f(3,Nn,3,6,"div",7),d()}if(t&2){let r=q(2),e=u();s(),se("is-invalid",r.errors),oe("max",e.maxPoints),oe("tabindex",e.tabIndex),c("disabled",e.grade.test.IsPublished)("ngModel",e.grade.kind==="grade"?e.grade.result.Points:null),s(2),c("ngIf",r.errors)}}var Un=1250,Fi=(()=>{let n=class n{constructor(e){this.state=e,this.maxPoints=0,this.pointsSubject$=new te,this.gradeSubject$=new te,this.gradingScaleDisabledSubject$=new L(!0),this.gradingScaleDisabled$=this.gradingScaleDisabledSubject$.asObservable(),this.destroy$=new te}ngOnInit(){this.gradingScaleDisabledSubject$.next(this.disableGradingScale()),this.maxPoints=Si(this.grade),this.initSave(this.pointsSubject$.pipe(Ee(this.isValid.bind(this)),b(e=>({studentId:this.student.Id,testId:this.grade.test.Id,points:e?Number(e):null})))),this.initSave(this.gradeSubject$.pipe(b(e=>({studentId:this.student.Id,testId:this.grade.test.Id,gradeId:e}))))}ngOnChanges(){this.gradingScaleDisabledSubject$.next(this.disableGradingScale())}ngOnDestroy(){this.destroy$.next()}onPointsChange(e){this.pointsSubject$.next(e),this.gradingScaleDisabledSubject$.next(!(e===null||e===""))}onGradeChange(e){this.gradeSubject$.next(e)}isValid(e){return e===""||e===null?!0:isNaN(Number(e))?!1:!(Number(e)<0||Number(e)>this.maxPoints)}initSave(e){e.pipe(dt(i=>this.state.optimisticallyUpdateGrade(i).pipe(b(a=>({params:i,originalResult:a})))),lt(Un),ce(this.destroy$)).subscribe(({params:i,originalResult:a})=>this.state.saveGrade(i,a))}disableGradingScale(){return this.grade.test.IsPublished?!0:this.grade.kind==="no-result"?!1:this.grade.result.Points!=null&&this.grade.test.IsPointGrading}};n.\u0275fac=function(i){return new(i||n)(v(J))},n.\u0275cmp=C({type:n,selectors:[["bkd-grade"]],inputs:{grade:"grade",student:"student",tabIndex:"tabIndex",gradeOptions:"gradeOptions"},standalone:!0,features:[ue,y],decls:5,vars:8,consts:[["points","ngModel"],[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,"valueChange","options","allowEmpty","value","disabled","tabindex"],[1,"point-input-container","me-2","me-md-3"],["type","number","step","0.01","min","0","data-testid","point-input",1,"form-control",3,"ngModelChange","max","disabled","tabindex","ngModel"],["class","invalid-feedback","data-testid","validation-error-message",4,"ngIf"],["data-testid","validation-error-message",1,"invalid-feedback"]],template:function(i,a){i&1&&(o(0,"div",1)(1,"div",2),f(2,Hn,4,7,"div",3),o(3,"bkd-select",4),l(4,"async"),_("valueChange",function(k){return a.onGradeChange(k)}),d()()()),i&2&&(s(2),c("ngIf",a.grade.test.IsPointGrading),s(),c("options",a.gradeOptions)("allowEmpty",!0)("value",a.grade.kind==="grade"?a.grade.result.GradeId:null)("disabled",p(4,6,a.gradingScaleDisabled$))("tabindex",a.tabIndex))},dependencies:[B,ve,Be,De,Re,Le,je,St,ye,V,w,P],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}}"]});let t=n;return t})();function qn(t,n){if(t&1&&(o(0,"span",3),m(1),d()),t&2){let r=u();s(),x(r.calculatePointsAverage(r.test))}}var Bi=(()=>{let n=class n{constructor(e){this.locale=e}calculatePointsAverage(e){return this.safeAverage(e,2,Ue)}calculateGradeAverage(e){return this.safeAverage(e,3,qe)}safeAverage(e,i,a){try{return ei(a(e),this.locale,i)}catch{return Xt}}};n.\u0275fac=function(i){return new(i||n)(v(bt))},n.\u0275cmp=C({type:n,selectors:[["bkd-average-grades"]],inputs:{test:"test"},standalone:!0,features:[y],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(i,a){i&1&&(o(0,"div",0),f(1,qn,2,1,"span",1),o(2,"span",2),m(3),d()()),i&2&&(s(),c("ngIf",a.test.IsPointGrading),s(2),x(a.calculateGradeAverage(a.test)))},dependencies:[B],styles:[".average-points[_ngcontent-%COMP%]{min-width:4.5em}@media (min-width: 576px){.average-points[_ngcontent-%COMP%]{min-width:6em}}"]});let t=n;return t})();var Ri=(()=>{let n=class n{constructor(){this.disabled=!1,this.gradeIdSelected=new ne}onGradeChange(e){this.gradeId?.valueOf()!==void 0&&this.gradeIdSelected.emit({id:this.gradeId?.valueOf(),selectedGradeId:e})}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=C({type:n,selectors:[["bkd-grade-select"]],inputs:{options:"options",valueId:"valueId",gradeId:"gradeId",disabled:"disabled"},outputs:{gradeIdSelected:"gradeIdSelected"},standalone:!0,features:[y],decls:1,vars:4,consts:[["data-testid","grade-select",3,"valueChange","options","allowEmpty","value","disabled"]],template:function(i,a){i&1&&(o(0,"bkd-select",0),_("valueChange",function(k){return a.onGradeChange(k)}),d()),i&2&&c("options",a.options)("allowEmpty",!0)("value",a.valueId)("disabled",a.disabled)},dependencies:[ye],styles:["[_nghost-%COMP%] select{min-width:13ch}"]});let t=n;return t})();var Di=(t,n)=>({"btn-primary":t,"btn-outline-secondary":n}),ji=(()=>{let n=class n{constructor(){this.filter=rt,this.filterChange=new ne}showOnlyMine(){this.filterChange.next(j(R({},this.filter),{onlyMine:!0}))}showAll(){this.filterChange.next(j(R({},this.filter),{onlyMine:!1}))}onHidePublishedChange(e){let i=(e.target&&e.target instanceof HTMLInputElement&&e.target?.checked)??!1;this.filterChange.next(j(R({},this.filter),{hidePublished:i}))}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=C({type:n,selectors:[["bkd-test-table-filter"]],inputs:{filter:"filter"},outputs:{filterChange:"filterChange"},standalone:!0,features:[y],decls:13,vars:18,consts:[[1,"only-mine-buttons"],["type","button",1,"btn","desktop",3,"click","ngClass"],["type","button",1,"btn","ms-2","desktop",3,"click","ngClass"],[1,"hide-published"],[1,"form-check"],["id","hide-published","type","checkbox",1,"form-check-input",3,"change","checked"],["for","hide-published",1,"form-check-label"]],template:function(i,a){i&1&&(o(0,"div",0)(1,"button",1),_("click",function(){return a.showAll()}),m(2),l(3,"translate"),d(),o(4,"button",2),_("click",function(){return a.showOnlyMine()}),m(5),l(6,"translate"),d()(),o(7,"div",3)(8,"div",4)(9,"input",5),_("change",function(k){return a.onHidePublishedChange(k)}),d(),o(10,"label",6),m(11),l(12,"translate"),d()()()),i&2&&(s(),c("ngClass",Pe(12,Di,!a.filter.onlyMine,a.filter.onlyMine)),s(),h(" ",p(3,6,"tests.all-tests")," "),s(2),c("ngClass",Pe(15,Di,a.filter.onlyMine,!a.filter.onlyMine)),s(),h(" ",p(6,8,"tests.owned-tests")," "),s(4),c("checked",a.filter.hidePublished),s(2),h(" ",p(12,10,"tests.hide-published")," "))},dependencies:[le,ve,w,P],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;height:100%}.only-mine-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;height:3.625rem}.hide-published[_ngcontent-%COMP%]{display:flex;align-items:center;height:2.375rem;margin-bottom:1rem}.hide-published[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-weight:300}.hide-published[_ngcontent-%COMP%] .form-check[_ngcontent-%COMP%]{margin-bottom:0}"]});let t=n;return t})();var Wn=["*"],Li=(()=>{let n=class n{};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=C({type:n,selectors:[["bkd-preserve-line-height"]],standalone:!0,features:[y],ngContentSelectors:Wn,decls:3,vars:0,template:function(i,a){i&1&&(gt(),o(0,"div"),ft(1),m(2,"\xA0"),d())},encapsulation:2});let t=n;return t})();var Ai=(()=>{let n=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")}`:""}};n.\u0275fac=function(i){return new(i||n)(v(X,16))},n.\u0275pipe=mt({name:"testSummaryShort",type:n,pure:!0,standalone:!0});let t=n;return t})();var zn=t=>[t,"edit"];function Kn(t,n){t&1&&(o(0,"i",12),m(1,"edit"),d())}function Yn(t,n){if(t&1&&(o(0,"div",8)(1,"div",9)(2,"bkd-preserve-line-height"),m(3),l(4,"date"),d(),o(5,"a",10),f(6,Kn,2,0,"i",11),d()(),o(7,"bkd-preserve-line-height"),m(8),l(9,"testSummaryShort"),d(),o(10,"bkd-preserve-line-height"),m(11),d()()),t&2){let r=u();s(3),x(G(4,5,r.test.Date,"dd.MM.yyyy")),s(2),c("routerLink",M(10,zn,r.test.Id)),s(),c("ngIf",r.test.IsOwner&&r.test.IsPublished===!1),s(2),h(" ",p(9,8,r.test)," "),s(3),x(r.test.Owner)}}function Jn(t,n){if(t&1){let r=O();o(0,"div",13)(1,"a",14),l(2,"translate"),_("click",function(){S(r);let i=u();return I(i.unpublishTest())}),o(3,"i",15),m(4,"lock"),d(),o(5,"span"),m(6),l(7,"translate"),d()(),o(8,"bkd-caret",16),_("click",function(){S(r);let i=u();return I(i.toggleHeader())}),d()()}if(t&2){let r=u();s(),oe("title",p(2,3,"tests.edit")),s(5),x(p(7,5,"tests.published")),s(2),c("expanded",r.expanded)}}function Qn(t,n){if(t&1){let r=O();o(0,"div",13)(1,"a",17),l(2,"translate"),_("click",function(){S(r);let i=u();return I(i.publishTest())}),o(3,"i",15),m(4,"lock_open"),d(),o(5,"span"),m(6),l(7,"translate"),d()(),o(8,"bkd-caret",16),_("click",function(){S(r);let i=u();return I(i.toggleHeader())}),d()()}if(t&2){let r=u();s(),oe("title",p(2,3,"tests.publish")),s(5),x(p(7,5,"tests.not-published")),s(2),c("expanded",r.expanded)}}var Vi=(()=>{let n=class n{constructor(){this.toggle=new ne,this.publish=new ne,this.unpublish=new ne}toggleHeader(){this.toggle.emit(!this.expanded)}publishTest(){this.publish.emit(this.test)}unpublishTest(){this.unpublish.emit(this.test)}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=C({type:n,selectors:[["bkd-test-table-header"]],inputs:{test:"test",expanded:"expanded"},outputs:{toggle:"toggle",publish:"publish",unpublish:"unpublish"},standalone:!0,features:[y],decls:10,vars:6,consts:[["notPublished",""],[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"],[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,"click","title"],[1,"material-icons","me-1"],[1,"expand-mobile",3,"click","expanded"],[1,"d-flex","btn","btn-link","ps-0",3,"click","title"]],template:function(i,a){if(i&1){let g=O();o(0,"div",1)(1,"div",2),_("click",function(){return S(g),I(a.toggleHeader())}),o(2,"div",3),m(3),d(),E(4,"bkd-caret",4),d(),o(5,"div",5),f(6,Yn,12,12,"div",6)(7,Jn,9,7,"div",7)(8,Qn,9,7,"ng-template",null,0,re),d()()}if(i&2){let g=q(9);s(2),c("ngClass",a.expanded?"expanded":"collapsed"),s(),h(" ",a.test.Designation," "),s(),c("expanded",a.expanded),s(2),c("ngIf",a.expanded),s(),c("ngIf",a.test.IsPublished)("ngIfElse",g)}},dependencies:[le,qt,B,Li,ae,Oe,w,P,Ai],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}}"]});let t=n;return t})();var Xn=(t,n,r,e,i)=>({tests:t,hasTests:n,studentGrades:r,filter:e,expanded:i}),at=t=>({selected:t}),Zn=t=>["student",t,"grades"],er=t=>({"visible-on-mobile":t});function tr(t,n){if(t&1){let r=O();o(0,"th",24)(1,"bkd-test-table-header",25),_("toggle",function(i){S(r);let a=u(2);return I(a.state.toggleHeader(i))})("publish",function(i){S(r);let a=u(2);return I(a.publish(i))})("unpublish",function(i){S(r);let a=u(2);return I(a.unpublish(i))}),d()()}if(t&2){let r=n.$implicit,e=u().bkdLet,i=u();c("ngClass",r.Id===(i.selectedTest==null?null:i.selectedTest.Id)?"selected":""),s(),c("test",r)("expanded",e.expanded)}}function ir(t,n){if(t&1){let r=O();o(0,"th",26)(1,"bkd-test-table-header",25),_("toggle",function(i){S(r);let a=u(2);return I(a.state.toggleHeader(i))})("publish",function(i){S(r);let a=u(2);return I(a.publish(i))})("unpublish",function(i){S(r);let a=u(2);return I(a.unpublish(i))}),d()()}if(t&2){let r=n.$implicit,e=u().bkdLet,i=u();c("ngClass",r.Id===(i.selectedTest==null?null:i.selectedTest.Id)?"selected":""),s(),c("test",r)("expanded",e.expanded)}}function nr(t,n){if(t&1){let r=O();o(0,"div",30)(1,"span",29),_("click",function(){S(r);let i=u().$implicit,a=u(2);return I(a.state.sortBy(i))}),m(2),l(3,"translate"),d()()}t&2&&(s(2),h("",p(3,1,"tests.points")," "))}function rr(t,n){if(t&1){let r=O();o(0,"th",27)(1,"div",10),f(2,nr,4,3,"div",28),o(3,"div",11)(4,"span",29),_("click",function(){let i=S(r).$implicit,a=u(2);return I(a.state.sortBy(i))}),m(5),l(6,"translate"),d()(),o(7,"div",12),m(8),l(9,"async"),d()()()}if(t&2){let r=n.$implicit,e=u(2);c("ngClass",r.Id===(e.selectedTest==null?null:e.selectedTest.Id)?"selected":""),s(2),c("ngIf",r.IsPointGrading),s(3),x(p(6,4,"tests.grade")),s(3),h(" ",p(9,6,e.state.getSortingChar$(r))," ")}}function ar(t,n){if(t&1){let r=O();o(0,"bkd-grade-select",38),l(1,"async"),l(2,"async"),_("gradeIdSelected",function(i){S(r);let a=u(3);return I(a.state.overwriteFinalGrade(i))}),d()}if(t&2){let r=u().$implicit,e=u(2);c("options",p(1,4,e.state.gradingOptionsForCourse$()))("valueId",r.finalGrade.finalGradeId)("gradeId",r.finalGrade.id)("disabled",p(2,6,e.isEditFinalGradesAllowed(r))===!1)}}function sr(t,n){if(t&1&&(o(0,"div"),m(1),d()),t&2){let r=u().$implicit;s(),h(" ",r.finalGrade.freeHandGrade," ")}}function or(t,n){if(t&1&&(o(0,"td",39),E(1,"bkd-grade",40),l(2,"async"),d()),t&2){let r=n.$implicit,e=n.index,i=u(),a=i.$implicit,g=i.index,k=u(2);c("ngClass",k.selectedTest!==void 0&&r.test.Id===k.selectedTest.Id?"selected":""),s(),c("grade",r)("gradeOptions",p(2,5,k.state.gradingOptionsForTest$(r.test)))("student",a.student)("tabIndex",(1+e)*1e3+g)}}function dr(t,n){if(t&1&&(o(0,"tr")(1,"td",31)(2,"a",32)(3,"span"),m(4),d(),o(5,"span",19),m(6),l(7,"translate"),l(8,"decimalOrDash"),d()()(),o(9,"td",33),f(10,ar,3,8,"bkd-grade-select",34)(11,sr,2,1,"div",35),d(),o(12,"td",36),m(13),l(14,"decimalOrDash"),d(),f(15,or,3,7,"td",37),d()),t&2){let r=n.$implicit,e=u(2);s(2),c("routerLink",M(18,Zn,r.student.Id)),s(2),x(r.student.FullName),s(2),Ze(" ",p(7,10,"tests.mean"),": ",G(8,12,r.finalGrade==null?null:r.finalGrade.average,"1-3")," "),s(3),c("ngClass",M(20,at,e.selectedTest===void 0)),s(),c("ngIf",r.finalGrade&&!r.finalGrade.freeHandGrade),s(),c("ngIf",r.finalGrade&&r.finalGrade.freeHandGrade),s(2),h(" ",G(14,15,r.finalGrade==null?null:r.finalGrade.average,"1-3")," "),s(2),c("ngForOf",r.grades)("ngForTrackBy",e.trackGradeOf(r.student))}}function lr(t,n){if(t&1&&(o(0,"td",39),E(1,"bkd-average-grades",41),d()),t&2){let r=n.$implicit,e=u(2);c("ngClass",r.Id===(e.selectedTest==null?null:e.selectedTest.Id)||r.Id===(e.selectedTest==null?null:e.selectedTest.Id)?"selected":""),s(),c("test",r)}}function pr(t,n){if(t&1){let r=O();o(0,"button",42),_("click",function(){S(r);let i=u(2);return I(i.setAverageAsFinalGrade())}),m(1),l(2,"translate"),d()}if(t&2){let r=u().bkdLet,e=u();c("ngClass",M(4,er,!r.hasTests||!e.selectedTest)),s(),h(" ",p(2,2,"tests.set-final-grade")," ")}}function cr(t,n){if(t&1){let r=O();K(0),o(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr",4)(5,"th",5)(6,"bkd-test-table-filter",6),_("filterChange",function(i){S(r);let a=u();return I(a.state.setFilter(i))}),d()(),f(7,tr,2,3,"th",7)(8,ir,2,3,"th",8),d(),o(9,"tr")(10,"th",9),_("click",function(){S(r);let i=u();return I(i.state.sortBy("FullName"))}),o(11,"div",10)(12,"div",11),m(13),l(14,"translate"),d(),o(15,"div",12),m(16),l(17,"async"),d()()(),o(18,"th",13),_("click",function(){S(r);let i=u();return I(i.state.sortBy("FinalGrade"))}),o(19,"div",10)(20,"div",11),m(21),l(22,"translate"),d(),o(23,"div",12),m(24),l(25,"async"),d()()(),o(26,"th",14),_("click",function(){S(r);let i=u();return I(i.state.sortBy("TestsMean"))}),o(27,"div",10)(28,"div",11),m(29),l(30,"translate"),d(),o(31,"div",12),m(32),l(33,"async"),d()()(),f(34,rr,10,8,"th",15),d()(),o(35,"tbody"),f(36,dr,16,22,"tr",16),o(37,"tr")(38,"td",17)(39,"div",18)(40,"div"),m(41),l(42,"translate"),d(),o(43,"div",19),m(44),l(45,"translate"),l(46,"async"),l(47,"decimalOrDash"),d()()(),o(48,"td",20),m(49),l(50,"async"),l(51,"decimalOrDash"),d(),o(52,"td",21),m(53),l(54,"async"),l(55,"decimalOrDash"),d(),f(56,lr,2,2,"td",22),d()()(),f(57,pr,3,6,"button",23),l(58,"async"),d(),Y()}if(t&2){let r=n.bkdLet,e=u();s(6),c("filter",r.filter),s(),c("ngForOf",r.tests),s(),c("ngForOf",r.tests),s(5),h(" ",p(14,21,"tests.student.name")," "),s(3),h(" ",p(17,23,e.state.getSortingChar$("FullName"))," "),s(2),c("ngClass",M(54,at,e.selectedTest===void 0)),s(3),h(" ",p(22,25,"tests.grade")," "),s(3),h(" ",p(25,27,e.state.getSortingChar$("FinalGrade"))," "),s(5),h(" ",p(30,29,"tests.mean")," "),s(3),h(" ",p(33,31,e.state.getSortingChar$("TestsMean"))," "),s(2),c("ngForOf",r.tests),s(2),c("ngForOf",r.studentGrades)("ngForTrackBy",e.trackStudentGrade),s(5),x(p(42,33,"tests.average")),s(3),Ze(" ",p(45,35,"tests.mean"),": ",G(47,39,p(46,37,e.state.meanOfStudentGradesForCourse$),"1-3")," "),s(4),c("ngClass",M(56,at,e.selectedTest===void 0)),s(),h(" ",G(51,44,p(50,42,e.state.meanOfFinalGradesForCourse$),"1-3")," "),s(4),h(" ",G(55,49,p(54,47,e.state.meanOfStudentGradesForCourse$),"1-3")," "),s(3),c("ngForOf",r.tests),s(),c("ngIf",p(58,52,e.state.canSetFinalGrade$))}}var Ni=(()=>{let n=class n{constructor(e,i){this.state=e,this.modalService=i}ngOnInit(){this.state.setSorting({key:"FullName",ascending:!0})}setAverageAsFinalGrade(){this.state.course$.pipe(ee(1)).subscribe(e=>this.state.setAveragesAsFinalGrades({CourseIds:[e.Id]}))}isEditFinalGradesAllowed(e){return this.state.course$.pipe(b(i=>!!(ze(i)?.value&&e.finalGrade?.canGrade)))}publish(e){let i=this.openModal(e);this.onCloseModal(i,()=>this.state.publish(e))}unpublish(e){let i=this.openModal(e);this.onCloseModal(i,()=>this.state.unpublish(e))}trackStudentGrade(e){return e}trackGradeOf(e){return function(i,a){return`${e.Id}_${a.test.Id}`}}calculatePointsAverage(e){return this.safeAverage(e,Ue)}calculateGradeAverage(e){return this.safeAverage(e,qe)}safeAverage(e,i){try{return i(e).toString()}catch{return"\u2013"}}openModal(e){let i=this.modalService.open($i);return i.componentInstance.test=e,i}onCloseModal(e,i){e.result.then(a=>{a&&i()},()=>{})}};n.\u0275fac=function(i){return new(i||n)(v(J),v(We))},n.\u0275cmp=C({type:n,selectors:[["bkd-test-edit-grades"]],inputs:{selectedTest:"selectedTest"},standalone:!0,features:[de([Se]),y],decls:6,vars:17,consts:[[4,"bkdLet"],[1,"table-responsive-wrapper"],[1,"table","table-hover","h-100"],[1,"h-100"],[1,"h-100","header-collapsible"],["colspan","3",1,"desktop","sticky"],[3,"filterChange","filter"],["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,"click","ngClass"],[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","apply-average-button btn btn-primary m-3","type","button",3,"ngClass","click",4,"ngIf"],["container","body",1,"grade","h-100","test-info-desktop",3,"ngClass"],[3,"toggle","publish","unpublish","test","expanded"],["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,"gradeIdSelected","options","valueId","gradeId","disabled"],[1,"grade",3,"ngClass"],[3,"grade","gradeOptions","student","tabIndex"],[3,"test"],["data-testId","apply-average-button","type","button",1,"apply-average-button","btn","btn-primary","m-3",3,"click","ngClass"]],template:function(i,a){i&1&&(f(0,cr,59,58,"ng-container",0),l(1,"async"),l(2,"async"),l(3,"async"),l(4,"async"),l(5,"async")),i&2&&c("bkdLet",vt(11,Xn,p(1,1,a.state.filteredTests$),p(2,3,a.state.hasTests$),p(3,5,a.state.studentGrades$),p(4,7,a.state.filter$),p(5,9,a.state.expandedHeader$)))},dependencies:[Z,le,ge,ji,Vi,B,ae,Ri,Fi,Bi,V,w,P,Zt],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}}@media (max-width: 575.98px){.apply-average-button[_ngcontent-%COMP%]:not(.visible-on-mobile){display:none!important}}"]});let t=n;return t})();var mr=()=>["/events"],ur=t=>({count:t});function gr(t,n){if(t&1&&(o(0,"div",8),m(1),l(2,"translate"),d()),t&2){let r=u();s(),h(" ",G(2,1,r.course.ParticipatingStudents.length===1?"courses.registration":"courses.registrations",M(4,ur,r.course.ParticipatingStudents.length))," ")}}var Hi=(()=>{let n=class n{constructor(e){this.reportsService=e,this.course$=new L(null),this.reports$=this.course$.pipe(b(i=>i?.Id),W(),D(i=>i?this.reportsService.getCourseReports(i):U([])),ct([]))}ngOnChanges(e){e.course&&this.course$.next(e.course.currentValue)}getDesignation(){return Ke(this.course)}};n.\u0275fac=function(i){return new(i||n)(v(ii))},n.\u0275cmp=C({type:n,selectors:[["bkd-tests-header"]],inputs:{course:"course"},standalone:!0,features:[ue,y],decls:12,vars:7,consts:[[3,"link"],[1,"d-flex"],["routerLink","add",1,"edit","btn","btn-primary","btn-icon","ms-2"],[1,"material-icons"],[1,"ms-2",3,"reports"],["id","excel-import"],[1,"d-flex","flex-column","header"],["class","additional-info",4,"ngIf"],[1,"additional-info"]],template:function(i,a){i&1&&(o(0,"bkd-backlink",0)(1,"div",1)(2,"a",2)(3,"i",3),m(4,"add"),d()(),E(5,"bkd-reports-link",4),l(6,"async"),E(7,"div",5),d()(),o(8,"div",6)(9,"h1"),m(10),d(),f(11,gr,3,6,"div",7),d()),i&2&&(c("link",ht(6,mr)),s(5),c("reports",p(6,4,a.reports$)),s(5),x(a.getDesignation()),s(),c("ngIf",a.course.ParticipatingStudents))},dependencies:[ri,ae,Ut,B,V,w,P],styles:[".header[_ngcontent-%COMP%]{padding-bottom:1rem;border-bottom:1px solid #dee2e6}h1[_ngcontent-%COMP%]{margin-bottom:0}.additional-info[_ngcontent-%COMP%]{color:#adb5bd}"]});let t=n;return t})();var fr=(t,n,r,e,i,a)=>({course:t,tests:n,hasTests:r,testOptions:e,selectedTestId:i,selectedTest:a}),hr=t=>({"visible-on-mobile":t});function _r(t,n){if(t&1){let r=O();K(0),o(1,"bkd-select",7),_("valueChange",function(i){S(r);let a=u(3);return I(i&&a.testSelected(i))}),d(),E(2,"bkd-test-edit-grades",8),Y()}if(t&2){let r=u(2).bkdLet;s(),c("options",r.testOptions)("value",r.selectedTestId)("allowEmpty",!1),s(),c("selectedTest",r.selectedTest)}}function vr(t,n){if(t&1&&(o(0,"a",9),l(1,"async"),o(2,"i",10),m(3,"arrow_right_alt"),d(),o(4,"span",11),m(5),l(6,"translate"),d()()),t&2){let r=u(2).bkdLet,e=u();oe("href",p(1,3,e.buildLinkToRatingOverview()),ke),c("ngClass",M(7,hr,!r.hasTests||!r.selectedTest)),s(5),x(p(6,5,"tests.link-to-rating-overview"))}}function xr(t,n){if(t&1&&(K(0),E(1,"bkd-tests-header",5),f(2,_r,3,4,"ng-container",4)(3,vr,7,9,"a",6),l(4,"async"),Y()),t&2){let r=u().bkdLet,e=u(),i=q(9);s(),c("course",r.course),s(),c("ngIf",r.tests.length>0)("ngIfElse",i),s(),c("ngIf",p(4,4,e.state.canSetFinalGrade$))}}function br(t,n){if(t&1&&(K(0),f(1,xr,5,6,"ng-container",4),l(2,"async"),Y()),t&2){let r=u(),e=q(11);s(),c("ngIf",p(2,2,r.state.loading$)===!1)("ngIfElse",e)}}function Cr(t,n){t&1&&(o(0,"p",12),m(1),l(2,"translate"),d()),t&2&&(s(),x(p(2,1,"tests.no-tests")))}function yr(t,n){t&1&&E(0,"bkd-spinner")}var Ui=(()=>{let n=class n{constructor(e,i,a){this.settings=e,this.state=i,this.translate=a,this.selectTest$=new te,this.testOptions$=this.state.tests$.pipe(b(g=>[{Key:-1,Value:this.translate.instant("tests.grade")},...g.map(k=>({Key:k.Id,Value:k.Designation}))]),W()),this.selectedTestId$=Me(this.selectTest$,this.state.tests$.pipe(ee(1),b(g=>g[0]?.Id))).pipe(W()),this.selectedTest$=this.selectedTestId$.pipe(D(g=>this.state.tests$.pipe(b(k=>k.find(T=>T.Id===g)))),W())}testSelected(e){this.selectTest$.next(e)}buildLinkToRatingOverview(){return this.state.course$.pipe(ee(1),b(e=>this.settings.eventlist.evaluation.replace(":id",String(e.Id))))}};n.\u0275fac=function(i){return new(i||n)(v(he),v(J),v(X))},n.\u0275cmp=C({type:n,selectors:[["bkd-tests-list"]],standalone:!0,features:[y],decls:12,vars:20,consts:[["noTests",""],["loading",""],[1,"bkd-container"],[4,"bkdLet"],[4,"ngIf","ngIfElse"],[3,"course"],["class","rating-overview d-flex justify-content-end pe-3 border-top pt-3",3,"ngClass","href",4,"ngIf"],[1,"tests-dropdown",3,"valueChange","options","value","allowEmpty"],[3,"selectedTest"],[1,"rating-overview","d-flex","justify-content-end","pe-3","border-top","pt-3",3,"ngClass","href"],[1,"material-icons","fw-bold"],[1,"ps-1"],[1,"mt-3","px-3"]],template:function(i,a){i&1&&(o(0,"div",2),f(1,br,3,4,"ng-container",3),l(2,"async"),l(3,"async"),l(4,"async"),l(5,"async"),l(6,"async"),l(7,"async"),f(8,Cr,3,3,"ng-template",null,0,re)(10,yr,1,0,"ng-template",null,1,re),d()),i&2&&(s(),c("bkdLet",xt(13,fr,p(2,1,a.state.course$),p(3,3,a.state.tests$),p(4,5,a.state.hasTests$),p(5,7,a.testOptions$),p(6,9,a.selectedTestId$),p(7,11,a.selectedTest$))))},dependencies:[Z,B,Hi,ye,Ni,le,Ce,V,w,P],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}@media (max-width: 575.98px){a.rating-overview[_ngcontent-%COMP%]:not(.visible-on-mobile){display:none!important}}"]});let t=n;return t})();var Qe=(()=>{let n=class n{constructor(e,i){this.state=e,this.route=i,this.courseId$=this.route.paramMap.pipe(b(a=>Number(a.get("id"))),W()),this.destroy$=new te}ngOnInit(){this.courseId$.pipe(ce(this.destroy$)).subscribe(e=>this.state.setCourseId(e))}ngOnDestroy(){this.destroy$.next()}};n.\u0275fac=function(i){return new(i||n)(v(J),v(fe))},n.\u0275cmp=C({type:n,selectors:[["bkd-tests"]],standalone:!0,features:[de([J]),y],decls:1,vars:0,template:function(i,a){i&1&&E(0,"router-outlet")},dependencies:[$e]});let t=n;return t})();var Xo=[{path:"",component:_i,children:[{path:"",component:hi},{path:"current",component:fi},{path:":id",component:Qe,children:[{path:"tests",component:Ui}]},{path:":id/tests/:testId/edit",component:Qe,children:[{path:"",component:Oi}]},{path:":id/tests/add",component:Qe,children:[{path:"",component:Mi}]},{path:":id/tests",children:[ai]}]}];export{Xo as EVENTS_ROUTES}; diff --git a/public/apps/webapp-schulverwaltung/chunk-VTGXNMZL.js b/public/apps/webapp-schulverwaltung/chunk-VTGXNMZL.js new file mode 100644 index 00000000..299099e3 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-VTGXNMZL.js @@ -0,0 +1 @@ +import{t as B,x as z}from"./chunk-FTRAQKUW.js";import{$ as I,$a as $,Bb as s,C as v,Cb as d,Cd as D,G as g,Ga as y,Ha as E,Hd as H,I as f,Ia as p,Id as K,O as _,Sa as r,Ta as o,Tb as P,Wb as k,Ya as O,Zc as F,_a as b,ad as w,ed as N,f as m,ga as T,ha as M,ia as S,jb as c,m as h,sd as V,tb as x,ua as l,w as C}from"./chunk-T7QWSMKM.js";function A(n,i){if(n&1){let u=O();r(0,"button",6),b("click",function(a){M(u);let t=$();return S(t.modelChange(a))}),r(1,"i",2),c(2,"clear"),o()()}}function j(n,i){n&1&&(r(0,"div",7)(1,"div",8)(2,"span",9),c(3,"Loading..."),o()()())}var q=300,U=3,oe=(()=>{let i=class i{constructor(){this.selectedItem$=new m(null),this.placeholder="shared.typeahead.default-placeholder",this.valueChange=this.selectedItem$.pipe(h(e=>e?e.Key:null),g()),this.componentId=D("bkd-typeahead-"),this.loading$=new m(!1),this.search=e=>e.pipe(G(U,q),_(this.fetchItems.bind(this)))}ngOnChanges(e){e.value&&e.value.currentValue&&e.value.currentValue!==this.selectedItemKey&&this.fetchItem(e.value.currentValue).subscribe(a=>{this.modelChange(a)})}format(e){return e.Value}modelChange(e){this.selectedItem$.next(e instanceof Object?e:null)}get selectedItemKey(){return this.selectedItem$.value?this.selectedItem$.value.Key:null}fetchItems(e){return this.loading$.next(!0),this.typeaheadService.getTypeaheadItems(e,this.additionalHttpParams).pipe(f(()=>this.loading$.next(!1)))}fetchItem(e){return this.loading$.next(!0),this.typeaheadService.getTypeaheadItemByKey(e).pipe(f(()=>this.loading$.next(!1)))}};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=I({type:i,selectors:[["bkd-typeahead"]],inputs:{typeaheadService:"typeaheadService",placeholder:"placeholder",value:"value",additionalHttpParams:"additionalHttpParams"},outputs:{valueChange:"valueChange"},standalone:!0,features:[T,x],decls:11,vars:18,consts:[[1,"input-group"],[1,"input-group-text",3,"id"],[1,"material-icons"],["type","text",1,"form-control",3,"ngModelChange","ngbTypeahead","inputFormatter","resultFormatter","ngModel"],["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(a,t){a&1&&(r(0,"div",0)(1,"span",1)(2,"i",2),c(3,"search"),o()(),r(4,"input",3),s(5,"async"),s(6,"translate"),s(7,"translate"),b("ngModelChange",function(L){return t.modelChange(L)}),o(),y(8,A,3,0,"button",4),o(),y(9,j,4,0,"div",5),s(10,"async")),a&2&&(l(),p("id",t.componentId),l(3),p("ngbTypeahead",t.search)("inputFormatter",t.format)("resultFormatter",t.format)("ngModel",d(5,10,t.selectedItem$)),E("placeholder",d(6,12,t.placeholder))("aria-label",d(7,14,t.placeholder))("aria-describedby",t.componentId),l(4),p("ngIf",t.value),l(),p("ngIf",d(10,16,t.loading$)))},dependencies:[B,V,F,w,N,P,k,K,H],styles:["[_nghost-%COMP%]{display:block;position:relative;background:#fff}.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});let n=i;return n})();function G(n,i){return u=>u.pipe(v(i),h(R),g(),C(z(n)))}function R(n){return n.trim().toLowerCase()}export{oe as a}; diff --git a/public/apps/webapp-schulverwaltung/chunk-WGARCXGP.js b/public/apps/webapp-schulverwaltung/chunk-WGARCXGP.js new file mode 100644 index 00000000..1382d164 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-WGARCXGP.js @@ -0,0 +1,2 @@ +import{c as Ue}from"./chunk-JX2LWS6H.js";import{b as J}from"./chunk-67IXHFR4.js";import{a as ze}from"./chunk-VTGXNMZL.js";import{a as Ne}from"./chunk-RC3HL7KB.js";import"./chunk-KLXFX6SJ.js";import{p as Fe}from"./chunk-QHPTZGVN.js";import"./chunk-HHGALFFJ.js";import{e as Y}from"./chunk-2FIH3FGB.js";import{b as we}from"./chunk-MVTCHCDH.js";import"./chunk-Y4QYVF5K.js";import"./chunk-WN7VWSJW.js";import{c as U,d as je}from"./chunk-X2BR3YJG.js";import"./chunk-LO5XSJLW.js";import"./chunk-DMYOU5OM.js";import"./chunk-RWNJF4OZ.js";import{P as Le,c as Re,j as re,t as Ae,u as Oe}from"./chunk-GI4AZI25.js";import"./chunk-Q5U6YZUT.js";import"./chunk-N6FFLIGM.js";import{a as W,b as Be,c as Z}from"./chunk-33NXTXD7.js";import{u as Ee}from"./chunk-FTRAQKUW.js";import"./chunk-3AROKYRB.js";import{$ as y,$a as b,Ac as ke,Bb as r,Bc as De,Cb as c,Db as O,Fb as L,Ga as m,Gc as $e,Ha as te,Hd as D,Ia as s,Id as $,Ja as he,Jd as Me,L as x,N as de,O as I,R as pe,Sa as l,Sb as ve,Ta as d,Tb as k,Ua as f,Va as ie,Vb as Se,W as V,Wa as ne,Wb as B,Wc as w,Xa as ae,Xb as K,Ya as be,Z as P,_a as z,ab as ue,bb as fe,ca as le,ec as Ce,f as ee,g as ce,ha as G,ia as q,ib as A,ja as me,jb as h,jc as xe,k as j,kb as T,lb as S,m as u,mb as oe,n as H,nb as ge,qc as Te,rc as Ie,sb as _e,sc as Pe,ta as F,tb as v,ua as o,ub as N,va as _,yb as ye}from"./chunk-T7QWSMKM.js";var at=["*"];function ot(e,t){e&1&&ae(0)}function rt(e,t){if(e&1&&(l(0,"a",4),m(1,ot,1,0,"ng-container",5),d()),e&2){let a=b(),i=A(3);s("routerLink",a.link)("queryParams",a.linkParams),o(),s("ngTemplateOutlet",i)}}function st(e,t){e&1&&ae(0)}function ct(e,t){if(e&1&&(l(0,"a",6),m(1,st,1,0,"ng-container",5),d()),e&2){let a=b(),i=A(3);s("href",a.externalLink,F),o(),s("ngTemplateOutlet",i)}}function dt(e,t){if(e&1&&(l(0,"span",9),h(1),d()),e&2){let a=b(2);o(),T(a.count)}}function pt(e,t){e&1&&(me(),l(0,"svg",10),f(1,"path",11),d())}function lt(e,t){if(e&1&&(l(0,"span",7),h(1),r(2,"translate"),d(),l(3,"div"),fe(4),m(5,dt,2,1,"span",8)(6,pt,2,0,"ng-template",null,1,L),d()),e&2){let a=A(7),i=b();o(),T(c(2,3,i.label)),o(4),s("ngIf",i.hasCount(i.count))("ngIfElse",a)}}var He=(()=>{let t=class t{constructor(){}hasCount(i){return typeof i=="number"&&i>=0}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=y({type:t,selectors:[["bkd-dashboard-action"]],inputs:{label:"label",count:"count",link:"link",linkParams:"linkParams",externalLink:"externalLink"},standalone:!0,features:[v],ngContentSelectors:at,decls:4,vars:2,consts:[["actionContent",""],["icon",""],[3,"routerLink","queryParams",4,"ngIf"],[3,"href",4,"ngIf"],[3,"routerLink","queryParams"],[4,"ngTemplateOutlet"],[3,"href"],[1,"label"],["class","count",4,"ngIf","ngIfElse"],[1,"count"],["xmlns","http://www.w3.org/2000/svg","width","24","height","24","fill","none"],["fill","currentColor","d","m12 20-1.425-1.4 5.6-5.6H4v-2h12.175l-5.6-5.6L12 4l8 8-8 8Z"]],template:function(n,p){n&1&&(ue(),m(0,rt,2,3,"a",2)(1,ct,2,2,"a",3)(2,lt,8,5,"ng-template",null,0,L)),n&2&&(s("ngIf",!p.externalLink),o(),s("ngIf",p.externalLink))},dependencies:[k,Pe,Se,$,D],styles:["a[_ngcontent-%COMP%]{display:flex;gap:1rem;justify-content:space-between;align-items:center;padding:1rem 1.5rem;background:#f7e9d2;text-decoration:none;line-height:1}a[_ngcontent-%COMP%]:hover{background:#f2e0c3}a[_ngcontent-%COMP%]:focus-visible{outline-width:2px;outline-offset:-2px}div[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:1rem}.label[_ngcontent-%COMP%]{font-weight:400}.count[_ngcontent-%COMP%]{font-size:1.5rem}"]});let e=t;return e})();var Ve=(()=>{let t=class t{constructor(){}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=y({type:t,selectors:[["bkd-dashboard-deadline"]],inputs:{count:"count"},standalone:!0,features:[v],decls:3,vars:8,template:function(n,p){n&1&&(h(0),r(1,"translate"),r(2,"addSpace")),n&2&&ge("",c(1,3,"dashboard.actions.deadline"),"",O(2,5,": ",":"),"",p.count,` +`)},dependencies:[$,D,je],styles:["[_nghost-%COMP%]{background:#ea161f;color:#fff;white-space:nowrap;font-weight:500;font-size:.875rem;min-height:1.5rem;display:flex;padding:.375rem .5rem;align-items:center;border-radius:2.5rem}"]});let e=t;return e})();var Ge=$e({Id:De,Holder:ke});var qe=(()=>{let t=class t extends Be{constructor(i,n){super(i,n,Ge,"TeacherSubstitutions")}getTeacherSubstitution(i){return this.getList({params:{"filter.Id":`=${i}`}}).pipe(u(n=>n[0]||null))}};t.\u0275fac=function(n){return new(n||t)(P(Ce),P(w))},t.\u0275prov=V({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var ut=["LessonTeacherRole","ClassTeacherRole","TeacherRole","AbsenceAdministratorRole"],ft=["LessonTeacherRole","TeacherRole","StudentRole","SubstituteAdministratorRole"],gt=["LessonTeacherRole","StudentRole"],E=(()=>{let t=class t{constructor(i,n,p,C,R,tt,it,nt){this.settingsService=i,this.lessonPresencesService=n,this.studentsService=p,this.courseService=C,this.teacherSubstitutionService=R,this.personService=tt,this.storageService=it,this.settings=nt,this.rolesAndPermissions$=this.settingsService.getRolesAndPermissions(),this.studentId$=new ce(1),this.lessonAbsences$=this.studentId$.pipe(I(g=>this.studentsService.getLessonAbsences(g)),x(1)),this.lessonIncidents$=this.studentId$.pipe(I(g=>this.studentsService.getLessonIncidents(g)),x(1)),this.loading$=this.rolesAndPermissions$.pipe(u(g=>g==null)),this.hasSearch$=this.rolesAndPermissions$.pipe(u(this.hasRoles(ut))),this.hasActions$=this.rolesAndPermissions$.pipe(u(this.hasRoles(ft))),this.hasTimetable$=this.rolesAndPermissions$.pipe(u(this.hasRoles(gt))),this.hasLessonTeacherRole$=this.rolesAndPermissions$.pipe(u(this.hasRoles(["LessonTeacherRole"])),x(1)),this.hasTeacherRole$=this.rolesAndPermissions$.pipe(u(this.hasRoles(["TeacherRole"])),x(1)),this.hasStudentRole$=this.rolesAndPermissions$.pipe(u(this.hasRoles(["StudentRole"])),x(1)),this.hasSubstituteAdministratorRole$=this.rolesAndPermissions$.pipe(u(this.hasRoles(["SubstituteAdministratorRole"])),x(1)),this.editAbsencesCount$=this.hasLessonTeacherRole$.pipe(I(g=>g?this.lessonPresencesService.checkableAbsencesCount():j(!1)),x(1)),this.openAbsencesCount$=this.rolesAndPermissions$.pipe(u(this.hasRoles(["LessonTeacherRole","ClassTeacherRole"])),I(g=>g?this.lessonPresencesService.getListOfUnconfirmed():j([])),u(g=>g.length),x(1)),this.myAbsencesCount$=this.hasStudentRole$.pipe(I(g=>g?this.getMyAbsences():j([])),u(this.getMyAbsencesCount.bind(this)),x(1)),this.coursesToRateCount$=this.courseService.getNumberOfCoursesForRating().pipe(de(0),x(1)),this.hasPresenceControl$=this.hasLessonTeacherRole$.pipe(I(g=>g?this.lessonPresencesService.hasLessonsLessonTeacher():j(!1)),x(1)),this.hasOpenAbsences$=this.openAbsencesCount$.pipe(u(g=>g>0),x(1)),this.editAbsencesParams$=this.getFullName().pipe(u(g=>({confirmationStates:this.settings.checkableAbsenceStateId,teacher:g})),x(1));let se=this.storageService.getPayload()?.id_person;se&&this.studentId$.next(Number(se))}hasRoles(i){return n=>(n??[]).some(p=>i.includes(p))}getMyAbsences(){return H([this.studentId$,this.lessonAbsences$,this.lessonIncidents$]).pipe(I(([i,n,p])=>this.loadTimetableEntries(i,n,p).pipe(u(C=>[...n,...p].map(R=>this.withTimetableEntry(R,C)).filter(Ee)))))}getMyAbsencesCount(i){return i?.filter(n=>("ConfirmationStateId"in n?n.ConfirmationStateId:null)===this.settings.unconfirmedAbsenceStateId).length||0}getFullName(){let i=Number(this.storageService.getPayload()?.substitution_id)||null;return i?this.teacherSubstitutionService.getTeacherSubstitution(i).pipe(u(n=>n?.Holder)):this.personService.getMyself().pipe(u(n=>n.FullName))}withTimetableEntry(i,n){return n.find(p=>p.Id===i.LessonRef.Id)?i:null}loadTimetableEntries(i,n,p){return this.studentsService.getTimetableEntries(i,{"filter.Id":`;${[...n,...p].map(C=>C.LessonRef.Id).join(";")}`})}};t.\u0275fac=function(n){return new(n||t)(P(J),P(Y),P(U),P(Fe),P(qe),P(we),P(Me),P(w))},t.\u0275prov=V({token:t,factory:t.\u0275fac});let e=t;return e})();var _t=()=>["/presence-control"],yt=()=>["/edit-absences"],vt=()=>["/open-absences"],St=()=>["/events"],Ct=()=>["/my-absences","report"],xt=()=>["/my-absences"];function Tt(e,t){e&1&&f(0,"bkd-dashboard-action",4),e&2&&s("label","dashboard.actions.presence-control")("link",N(2,_t))}function It(e,t){if(e&1&&(f(0,"bkd-dashboard-action",5),r(1,"async"),r(2,"async")),e&2){let a=b();s("label","dashboard.actions.edit-absences")("link",N(8,yt))("linkParams",c(1,4,a.dashboardService.editAbsencesParams$))("count",c(2,6,a.dashboardService.editAbsencesCount$))}}function Pt(e,t){if(e&1&&(f(0,"bkd-dashboard-action",6),r(1,"async")),e&2){let a=b();s("label","dashboard.actions.open-absences")("link",N(5,vt))("count",c(1,3,a.dashboardService.openAbsencesCount$))}}function kt(e,t){if(e&1&&(f(0,"bkd-dashboard-deadline",8),r(1,"async")),e&2){let a=b(2);s("count",c(1,1,a.dashboardService.coursesToRateCount$))}}function Dt(e,t){if(e&1&&(l(0,"bkd-dashboard-action",4),m(1,kt,2,3,"bkd-dashboard-deadline",7),r(2,"async"),d()),e&2){let a,i=b();s("label","dashboard.actions.tests")("link",N(5,St)),o(),s("ngIf",(a=c(2,3,i.dashboardService.coursesToRateCount$))!==null&&a!==void 0?a:!1)}}function $t(e,t){e&1&&f(0,"bkd-dashboard-action",4),e&2&&s("label","dashboard.actions.my-absences-report")("link",N(2,Ct))}function Mt(e,t){if(e&1&&(f(0,"bkd-dashboard-action",6),r(1,"async")),e&2){let a=b();s("label","dashboard.actions.my-absences")("link",N(5,xt))("count",c(1,3,a.dashboardService.myAbsencesCount$))}}function Et(e,t){if(e&1&&f(0,"bkd-dashboard-action",9),e&2){let a=b();s("label","dashboard.actions.substitutions")("externalLink",a.substitutionsAdminLink)}}var We=(()=>{let t=class t{constructor(i,n){this.dashboardService=i,this.settings=n}get substitutionsAdminLink(){return this.settings.dashboard.substitutionsAdminLink}};t.\u0275fac=function(n){return new(n||t)(_(E),_(w))},t.\u0275cmp=y({type:t,selectors:[["bkd-dashboard-actions"]],standalone:!0,features:[v],decls:15,vars:23,consts:[[3,"label","link",4,"ngIf"],[3,"label","link","linkParams","count",4,"ngIf"],[3,"label","link","count",4,"ngIf"],[3,"label","externalLink",4,"ngIf"],[3,"label","link"],[3,"label","link","linkParams","count"],[3,"label","link","count"],[3,"count",4,"ngIf"],[3,"count"],[3,"label","externalLink"]],template:function(n,p){n&1&&(m(0,Tt,1,3,"bkd-dashboard-action",0),r(1,"async"),m(2,It,3,9,"bkd-dashboard-action",1),r(3,"async"),r(4,"async"),m(5,Pt,2,6,"bkd-dashboard-action",2),r(6,"async"),m(7,Dt,3,6,"bkd-dashboard-action",0),r(8,"async"),m(9,$t,1,3,"bkd-dashboard-action",0),r(10,"async"),m(11,Mt,2,6,"bkd-dashboard-action",2),r(12,"async"),m(13,Et,1,2,"bkd-dashboard-action",3),r(14,"async")),n&2&&(s("ngIf",c(1,7,p.dashboardService.hasPresenceControl$)),o(2),s("ngIf",c(3,9,p.dashboardService.hasLessonTeacherRole$)&&c(4,11,p.dashboardService.editAbsencesParams$)),o(3),s("ngIf",c(6,13,p.dashboardService.hasOpenAbsences$)),o(2),s("ngIf",c(8,15,p.dashboardService.hasTeacherRole$)),o(2),s("ngIf",c(10,17,p.dashboardService.hasStudentRole$)),o(2),s("ngIf",c(12,19,p.dashboardService.hasStudentRole$)),o(2),s("ngIf",c(14,21,p.dashboardService.hasSubstituteAdministratorRole$)))},dependencies:[k,He,Ve,B],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:.5rem}"]});let e=t;return e})();var Ye=(()=>{let t=class t{constructor(i,n){this.studentsRestService=i,this.router=n}navigateToDossier(i){let n=Number(i);this.router.navigate(["dashboard","student",n,"addresses"])}};t.\u0275fac=function(n){return new(n||t)(_(U),_(Ie))},t.\u0275cmp=y({type:t,selectors:[["bkd-dashboard-search"]],standalone:!0,features:[v],decls:1,vars:2,consts:[[3,"valueChange","typeaheadService","placeholder"]],template:function(n,p){n&1&&(l(0,"bkd-typeahead",0),z("valueChange",function(R){return R&&p.navigateToDossier(R)}),d()),n&2&&s("typeaheadService",p.studentsRestService)("placeholder","dashboard.search.placeholder")},dependencies:[ze],styles:["[_nghost-%COMP%]{display:block;padding:.75rem;background:#f7e9d2}"]});let e=t;return e})();var Ze=(()=>{let t=class t{constructor(i){this.sanitizer=i}transform(i,n){switch(n){case"html":return this.sanitizer.bypassSecurityTrustHtml(i);case"style":return this.sanitizer.bypassSecurityTrustStyle(i);case"script":return this.sanitizer.bypassSecurityTrustScript(i);case"url":return this.sanitizer.bypassSecurityTrustUrl(i);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(i);default:throw new Error(`Invalid safe type specified: ${n}`)}}};t.\u0275fac=function(n){return new(n||t)(_(xe,16))},t.\u0275pipe=le({name:"safe",type:t,pure:!0,standalone:!0});let e=t;return e})();function Rt(e,t){e&1&&(l(0,"th"),h(1),r(2,"translate"),d()),e&2&&(o(),S(" ",c(2,1,"dashboard.timetable.table.teacher")," "))}function At(e,t){e&1&&(l(0,"th"),h(1),r(2,"translate"),d()),e&2&&(o(),S(" ",c(2,1,"dashboard.timetable.table.room")," "))}function Ot(e,t){if(e&1&&(l(0,"a",12),h(1),l(2,"span",13),h(3),d()()),e&2){let a=b().$implicit,i=b(2);s("href",i.buildLink(a.eventId),F),o(),S(" ",a.subject,""),o(2),S(", ",a.studyClass,"")}}function Lt(e,t){if(e&1&&h(0),e&2){let a=b().$implicit;S(" ",a.subject," ")}}function Bt(e,t){if(e&1&&(l(0,"td",14),h(1),r(2,"translate"),d()),e&2){let a=b().$implicit;o(),oe(" ",c(2,2,"dashboard.timetable.table.study-class"),": ",a.studyClass," ")}}function wt(e,t){if(e&1&&(l(0,"td",15),h(1),d()),e&2){let a=b().$implicit;o(),S(" ",a.teacher," ")}}function jt(e,t){e&1&&(l(0,"span",18),h(1),r(2,"translate"),d()),e&2&&(o(),T(c(2,1,"dashboard.timetable.table.room")))}function Ft(e,t){if(e&1&&(l(0,"td",16),m(1,jt,3,3,"span",17),h(2),d()),e&2){let a=b().$implicit;o(),s("ngIf",a.room),o(),S(" ",a.room," ")}}function Nt(e,t){if(e&1&&(l(0,"tr")(1,"td",6),h(2),r(3,"date"),r(4,"date"),d(),l(5,"td",7),m(6,Ot,4,3,"a",8),r(7,"async"),m(8,Lt,1,1,"ng-template",null,1,L),d(),m(10,Bt,3,4,"td",9),r(11,"async"),m(12,wt,2,1,"td",10),r(13,"async"),m(14,Ft,3,2,"td",11),r(15,"async"),d()),e&2){let a=t.$implicit,i=A(9),n=b(2);o(2),oe(" ",O(3,7,a.from,"HH:mm"),"\u2013",O(4,10,a.until,"HH:mm")," "),o(4),s("ngIf",c(7,13,n.isTeacher$))("ngIfElse",i),o(4),s("ngIf",c(11,15,n.isTeacher$)),o(2),s("ngIf",c(13,17,n.isStudent$)),o(2),s("ngIf",c(15,19,n.isStudent$))}}function zt(e,t){if(e&1&&(l(0,"table",3)(1,"thead")(2,"tr")(3,"th"),h(4),r(5,"translate"),d(),l(6,"th"),h(7),r(8,"translate"),d(),m(9,Rt,3,3,"th",4),r(10,"async"),m(11,At,3,3,"th",4),r(12,"async"),d()(),l(13,"tbody"),m(14,Nt,16,21,"tr",5),d()()),e&2){let a=b();o(4),T(c(5,5,"dashboard.timetable.table.time")),o(3),T(c(8,7,"dashboard.timetable.table.subject")),o(2),s("ngIf",c(10,9,a.isStudent$)),o(2),s("ngIf",c(12,11,a.isStudent$)),o(3),s("ngForOf",a.entries)}}function Ut(e,t){e&1&&(l(0,"p"),h(1),r(2,"translate"),d()),e&2&&(o(),T(c(2,1,"dashboard.timetable.no-entries")))}var Je=(()=>{let t=class t{constructor(i,n){this.dashboardService=i,this.settings=n,this.entries=[],this.isStudent$=this.dashboardService.hasStudentRole$,this.isTeacher$=this.dashboardService.hasLessonTeacherRole$}buildLink(i){return this.settings.eventlist.eventdetail.replace(":id",String(i))}};t.\u0275fac=function(n){return new(n||t)(_(E),_(w))},t.\u0275cmp=y({type:t,selectors:[["bkd-dashboard-timetable-table"]],inputs:{entries:"entries"},standalone:!0,features:[v],decls:3,vars:2,consts:[["noEntries",""],["noLink",""],["class","table",4,"ngIf","ngIfElse"],[1,"table"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"time"],[1,"subject"],["target","_parent",3,"href",4,"ngIf","ngIfElse"],["class","study-class",4,"ngIf"],["class","teacher",4,"ngIf"],["class","room",4,"ngIf"],["target","_parent",3,"href"],[1,"subject-study-class"],[1,"study-class"],[1,"teacher"],[1,"room"],["class","room-label",4,"ngIf"],[1,"room-label"]],template:function(n,p){if(n&1&&m(0,zt,15,13,"table",2)(1,Ut,3,3,"ng-template",null,0,L),n&2){let C=A(2);s("ngIf",p.entries.length>0)("ngIfElse",C)}},dependencies:[k,ve,B,K,$,D],styles:['td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:1rem 1.75rem}.room-label[_ngcontent-%COMP%], td.study-class[_ngcontent-%COMP%]{display:none}@media (max-width: 767.98px){table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{display:none}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{border-top:1px solid var(--bs-border-color)}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;grid-template-areas:"time room" "subject subject" "study-class study-class" "teacher teacher";gap:.5rem;padding:1rem;border-bottom:1px solid var(--bs-border-color)}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:0;padding:0}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td.time[_ngcontent-%COMP%]{grid-area:time;font-size:.875rem;line-height:1.125rem;font-weight:300}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td.subject[_ngcontent-%COMP%]{grid-area:subject;font-size:1rem;line-height:1.25rem;font-weight:400}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td.teacher[_ngcontent-%COMP%]{grid-area:teacher;font-size:.8125rem;line-height:1.0625rem;font-weight:300}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td.room[_ngcontent-%COMP%]{grid-area:room;text-align:right;font-size:.875rem;line-height:1.125rem;font-weight:300}table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td.study-class[_ngcontent-%COMP%]{grid-area:study-class;font-size:.8125rem;line-height:1.0625rem;font-weight:300}td.study-class[_ngcontent-%COMP%]{display:block}.subject-study-class[_ngcontent-%COMP%]{display:none}.room-label[_ngcontent-%COMP%]{display:inline}}']});let e=t;return e})();function Ht(e,t){if(e&1&&(l(0,"a",9),r(1,"safe"),h(2),r(3,"translate"),d()),e&2){let a=t.ngIf;s("href",O(1,2,a,"url"),F),o(2),S(" ",c(3,5,"dashboard.timetable.subscribe-calendar")," ")}}function Vt(e,t){if(e&1&&(l(0,"a",13),r(1,"safe"),h(2),r(3,"translate"),d()),e&2){let a=t.ngIf;s("href",O(1,2,a,"url"),F),o(2),S(" ",c(3,5,"dashboard.timetable.subscribe-calendar")," ")}}function Gt(e,t){if(e&1&&(ie(0),f(1,"bkd-dashboard-timetable-table",11),m(2,Vt,4,7,"a",12),r(3,"async"),ne()),e&2){let a=b().bkdLet,i=b();o(),s("entries",a),o(),s("ngIf",c(3,2,i.getSubscribeCalendarUrl()))}}function qt(e,t){if(e&1&&(ie(0),m(1,Gt,4,4,"ng-container",10),r(2,"async"),ne()),e&2){let a=b(),i=A(21);o(),s("ngIf",c(2,2,a.loading$)===!1)("ngIfElse",i)}}function Kt(e,t){e&1&&f(0,"bkd-spinner")}var Wt="cal",Qe=(()=>{let t=class t{constructor(i,n,p,C){this.studentsService=i,this.lessonPresencesService=n,this.userSettings=p,this.dashboardService=C,this.studentId$=this.dashboardService.studentId$,this.isTeacher$=this.dashboardService.hasLessonTeacherRole$,this.isStudent$=this.dashboardService.hasStudentRole$,this.date$=new ee(re(new Date)),this.loading$=new ee(!0),this.timetableEntries$=this.loadTimetableEntries()}gotoToday(){this.loading$.next(!0),this.date$.next(re(new Date))}gotoPreviousDay(){this.loading$.next(!0),this.date$.next(Oe(this.date$.getValue(),1))}gotoNextDay(){this.loading$.next(!0),this.date$.next(Re(this.date$.getValue(),1))}getSubscribeCalendarUrl(){return this.userSettings.getSetting(Wt)}loadTimetableEntries(){return H([this.isTeacher$,this.isStudent$]).pipe(I(([i,n])=>i?this.loadTeacherTimetableEntries():n?this.loadStudentTimetableEntries():j([])),pe(()=>this.loading$.next(!1)))}loadTeacherTimetableEntries(){return this.date$.pipe(I(i=>this.lessonPresencesService.getLessonsByDate(i)),u(Ue),u(i=>i.map(this.convertLesson.bind(this))))}loadStudentTimetableEntries(){return H([this.studentId$,this.date$]).pipe(I(([i,n])=>this.studentsService.getTimetableEntries(i,{"filter.From":`=${Ae(n,"yyyy-MM-dd")}`,sort:"From,To"})),u(i=>i.map(this.convertTimetableEntry.bind(this))))}convertLesson(i){return{id:i.LessonRef.Id,from:i.LessonDateTimeFrom,until:i.LessonDateTimeTo,eventId:i.EventRef.Id,subject:i.EventDesignation,studyClass:i.StudyClassNumber}}convertTimetableEntry(i){return{id:i.Id,from:i.From,until:i.To,eventId:i.EventId,subject:i.EventDesignation,room:i.EventLocation||void 0,teacher:i.EventManagerInformation||void 0}}};t.\u0275fac=function(n){return new(n||t)(_(U),_(Y),_(J),_(E))},t.\u0275cmp=y({type:t,selectors:[["bkd-dashboard-timetable"]],standalone:!0,features:[v],decls:22,vars:21,consts:[["loading",""],[1,"header"],["type","button",1,"btn","btn-primary","today",3,"click"],["type","button",1,"btn","btn-secondary","previous-day",3,"click"],[1,"material-icons"],["type","button",1,"btn","btn-secondary","next-day",3,"click"],[1,"date"],["target","_parent","class","btn btn-secondary subscribe-calendar-header",3,"href",4,"ngIf"],[4,"bkdLet"],["target","_parent",1,"btn","btn-secondary","subscribe-calendar-header",3,"href"],[4,"ngIf","ngIfElse"],[3,"entries"],["target","_parent","class","btn btn-secondary subscribe-calendar-bottom",3,"href",4,"ngIf"],["target","_parent",1,"btn","btn-secondary","subscribe-calendar-bottom",3,"href"]],template:function(n,p){if(n&1){let C=be();l(0,"div",1)(1,"button",2),z("click",function(){return G(C),q(p.gotoToday())}),h(2),r(3,"translate"),d(),l(4,"button",3),r(5,"translate"),z("click",function(){return G(C),q(p.gotoPreviousDay())}),l(6,"span",4),h(7,"chevron_left"),d()(),l(8,"button",5),r(9,"translate"),z("click",function(){return G(C),q(p.gotoNextDay())}),l(10,"span",4),h(11,"chevron_right"),d()(),l(12,"div",6),h(13),r(14,"async"),r(15,"date"),d(),m(16,Ht,4,7,"a",7),r(17,"async"),d(),m(18,qt,3,4,"ng-container",8),r(19,"async"),m(20,Kt,1,0,"ng-template",null,0,L)}n&2&&(o(2),S(" ",c(3,6,"dashboard.timetable.today")," "),o(2),te("aria-label",c(5,8,"dashboard.timetable.previousDay")),o(4),te("aria-label",c(9,10,"dashboard.timetable.nextDay")),o(5),T(O(15,14,c(14,12,p.date$),"E, dd. MMMM yyyy")),o(3),s("ngIf",c(17,17,p.getSubscribeCalendarUrl())),o(2),s("bkdLet",c(19,19,p.timetableEntries$)))},dependencies:[k,W,Je,Z,B,K,$,D,Ze],styles:["[_nghost-%COMP%]{display:block;margin-bottom:1rem}.header[_ngcontent-%COMP%]{margin-top:1rem;margin-bottom:2rem;display:flex;align-items:center;gap:1rem}.previous-day[_ngcontent-%COMP%], .next-day[_ngcontent-%COMP%]{padding-left:.375rem;padding-right:.375rem}.date[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600}.subscribe-calendar-header[_ngcontent-%COMP%]{margin-left:auto}.subscribe-calendar-bottom[_ngcontent-%COMP%]{display:none}a.btn[_ngcontent-%COMP%]{text-decoration:none}@media (max-width: 767.98px){.subscribe-calendar-header[_ngcontent-%COMP%]{display:none}.subscribe-calendar-bottom[_ngcontent-%COMP%]{display:block;margin-top:2rem}}@media (max-width: 767.98px) and (max-width: 575.98px){.header[_ngcontent-%COMP%]{flex-wrap:wrap-reverse}.header[_ngcontent-%COMP%] .date[_ngcontent-%COMP%]{width:100%}}"]});let e=t;return e})();var Yt=(e,t,a,i)=>({loading:e,hasSearch:t,hasActions:a,hasTimetable:i});function Zt(e,t){e&1&&f(0,"bkd-spinner")}function Jt(e,t){e&1&&(l(0,"p"),h(1),r(2,"translate"),d()),e&2&&(o(),S(" ",c(2,1,"dashboard.no-access")," "))}function Qt(e,t){e&1&&(l(0,"div")(1,"h2"),h(2),r(3,"translate"),d(),f(4,"bkd-dashboard-search"),d()),e&2&&(o(2),T(c(3,1,"dashboard.search.title")))}function Xt(e,t){e&1&&(l(0,"div")(1,"h2"),h(2),r(3,"translate"),d(),f(4,"bkd-dashboard-actions"),d()),e&2&&(o(2),T(c(3,1,"dashboard.actions.title")))}function ei(e,t){if(e&1&&(l(0,"div",5),m(1,Qt,5,3,"div",1)(2,Xt,5,3,"div",1),d()),e&2){let a=b().bkdLet;o(),s("ngIf",a.hasSearch),o(),s("ngIf",a.hasActions)}}function ti(e,t){e&1&&(l(0,"div",6)(1,"h2"),h(2),r(3,"translate"),d(),f(4,"bkd-dashboard-timetable"),d()),e&2&&(o(2),T(c(3,1,"dashboard.timetable.title")))}function ii(e,t){if(e&1&&(l(0,"div")(1,"h1"),h(2),r(3,"translate"),d(),m(4,Zt,1,0,"bkd-spinner",1)(5,Jt,3,3,"p",1),l(6,"div",2),m(7,ei,3,2,"div",3)(8,ti,5,3,"div",4),d()()),e&2){let a=t.bkdLet;o(),he("visually-hidden",a.loading||a.hasSearch||a.hasActions||a.hasTimetable),o(),S(" ",c(3,7,"dashboard.heading")," "),o(2),s("ngIf",a.loading),o(),s("ngIf",!a.loading&&!a.hasSearch&&!a.hasActions&&!a.hasTimetable),o(2),s("ngIf",a.hasSearch||a.hasActions),o(),s("ngIf",a.hasTimetable)}}var Xe=(()=>{let t=class t{constructor(i){this.dashboardService=i}};t.\u0275fac=function(n){return new(n||t)(_(E))},t.\u0275cmp=y({type:t,selectors:[["bkd-dashboard-layout"]],standalone:!0,features:[v],decls:5,vars:14,consts:[[4,"bkdLet"],[4,"ngIf"],[1,"columns"],["class","search-actions-column",4,"ngIf"],["class","timetable-column",4,"ngIf"],[1,"search-actions-column"],[1,"timetable-column"]],template:function(n,p){n&1&&(m(0,ii,9,9,"div",0),r(1,"async"),r(2,"async"),r(3,"async"),r(4,"async")),n&2&&s("bkdLet",ye(9,Yt,c(1,1,p.dashboardService.loading$),c(2,3,p.dashboardService.hasSearch$),c(3,5,p.dashboardService.hasActions$),c(4,7,p.dashboardService.hasTimetable$)))},dependencies:[W,k,Z,Ye,We,Qe,B,$,D],styles:[".columns[_ngcontent-%COMP%]{display:flex;flex-direction:column}.columns[_ngcontent-%COMP%], .search-actions-column[_ngcontent-%COMP%]{gap:3rem}.search-actions-column[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;max-width:40rem}.timetable-column[_ngcontent-%COMP%]{flex:2}@media (min-width: 992px){.columns[_ngcontent-%COMP%]{flex-direction:row;gap:1.5rem}.search-actions-column[_ngcontent-%COMP%]{max-width:33%}}"],changeDetection:0});let e=t;return e})();var et=(()=>{let t=class t{constructor(){}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=y({type:t,selectors:[["bkd-dashboard"]],standalone:!0,features:[_e([E,Le]),v],decls:1,vars:0,template:function(n,p){n&1&&f(0,"router-outlet")},dependencies:[Te],changeDetection:0});let e=t;return e})();var dn=[{path:"",component:et,children:[{path:"",component:Xe},Ne]}];export{dn as DASHBOARD_ROUTES}; diff --git a/public/apps/webapp-schulverwaltung/chunk-WN7VWSJW.js b/public/apps/webapp-schulverwaltung/chunk-WN7VWSJW.js new file mode 100644 index 00000000..af7b11cf --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-WN7VWSJW.js @@ -0,0 +1 @@ +import{Ac as t,Bc as n,Gc as o,Ic as r}from"./chunk-T7QWSMKM.js";var i=o({Key:r([n,t]),Value:t});export{i as a}; diff --git a/public/apps/webapp-schulverwaltung/chunk-X2BR3YJG.js b/public/apps/webapp-schulverwaltung/chunk-X2BR3YJG.js new file mode 100644 index 00000000..d73784a3 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-X2BR3YJG.js @@ -0,0 +1 @@ +import{c as H}from"./chunk-LO5XSJLW.js";import{b as F}from"./chunk-RWNJF4OZ.js";import{b as j}from"./chunk-33NXTXD7.js";import{Ac as r,Bc as s,Cc as E,Dd as D,Ed as f,Gc as o,Hc as R,Jc as $,Nc as i,O as m,Pc as a,Sc as c,Uc as S,W as A,Wc as x,Z as I,a as b,ac as L,ca as T,ec as C,m as y,va as v}from"./chunk-T7QWSMKM.js";var z=(()=>{let n=class n{constructor(t){this.i18n=t}transform(t,e){switch(this.i18n.detectLanguage()){case"fr-CH":return Array.from(e).map(d=>t=t.replace(d," ".concat(d))),t;default:return t}}};n.\u0275fac=function(e){return new(e||n)(v(F,16))},n.\u0275pipe=T({name:"addSpace",type:n,pure:!0,standalone:!0});let g=n;return g})();var k=o({Id:s,JobTrainer:i(s),ApprenticeshipManagerId:s,ContractDateFrom:i(c),ContractDateTo:i(c)});var N=o({Id:s,RepresentativeId:s,RepresentativeAfterMajority:E});var V=o({Id:s}),B=R({HRef:i(r)}),G=R({From:c,To:c,EventNumber:r,EventDesignation:r,Designation:i(r)}),J=$([V,B,G]),U=o({Id:r,LessonRef:J,StudentRef:a,TypeRef:a,Type:i(r),ConfirmationState:i(r),ConfirmationStateId:s,Comment:i(r),StudentFullName:r,RegistrationId:s,HRef:r});var w=o({Id:r,LessonRef:a,StudentRef:a,TypeRef:a,Type:i(r),Comment:i(r),StudentFullName:r,HRef:r});var M=o({LessonRef:a,StudentRef:a,TypeRef:a,Comment:i(r),StudentFullName:r,Type:i(r),RegistrationId:s,HRef:r});var O=o({Id:s,From:c,To:c,EventId:s,EventNumber:r,EventDesignation:r,EventLocation:i(r),EventManagerInformation:i(r)});var u=class extends j{constructor(n,p,t,e,h,d="Id"){super(n,p,t,e),this.labelAttr=h,this.keyAttr=d,this.typeaheadCodec=o(S(this.codec.props,[this.keyAttr,this.labelAttr]))}getTypeaheadItems(n,p){let t={params:{fields:[this.keyAttr,this.labelAttr].join(","),[`filter.${this.labelAttr}`]:`~*${n}*`}};return this.http.get(`${this.baseUrl}/`,p?this.mergeHttpParams(t,p):t).pipe(m(f(this.typeaheadCodec)),y(e=>e.map(h=>({Key:h[this.keyAttr],Value:h[this.labelAttr]}))))}getTypeaheadItemByKey(n){return this.http.get(`${this.baseUrl}/${n}`,{params:{fields:[this.keyAttr,this.labelAttr].join(",")}}).pipe(m(D(this.typeaheadCodec)),y(p=>({Key:p[this.keyAttr],Value:p[this.labelAttr]})))}mergeHttpParams(n,p){let t={params:b(b({},n.params),p.params)};return p.params.fields&&(t.params.fields=n.params.fields.concat(",",p.params.fields)),t}};var vt=(()=>{let n=class n extends u{constructor(t,e){super(t,e,H,"Students","FullName")}getLegalRepresentatives(t,e){return this.http.get(`${this.baseUrl}/${t}/LegalRepresentatives`,{params:e}).pipe(m(f(N)))}getCurrentApprenticeshipContracts(t,e){return this.http.get(`${this.baseUrl}/${t}/ApprenticeshipContracts/Current`,e).pipe(m(f(k)))}getLessonAbsences(t,e){return this.http.get(`${this.baseUrl}/${t}/LessonAbsences`,{params:e}).pipe(m(f(U)))}getLessonIncidents(t,e){return this.http.get(`${this.baseUrl}/${t}/LessonIncidents`,{params:e}).pipe(m(f(M)))}getLessonDispensations(t,e){return this.http.get(`${this.baseUrl}/${t}/LessonDispensations`,{params:e}).pipe(m(f(w)))}getTimetableEntries(t,e={}){return e instanceof L||(e=new L({fromObject:e})),e=e.set("fields","Id,From,To,EventId,EventNumber,EventDesignation,EventLocation,EventManagerInformation"),this.http.get(`${this.baseUrl}/${t}/TimetableEntries/CurrentSemester`,{params:e}).pipe(m(f(O)))}};n.\u0275fac=function(e){return new(e||n)(I(C),I(x))},n.\u0275prov=A({token:n,factory:n.\u0275fac,providedIn:"root"});let g=n;return g})();export{U as a,u as b,vt as c,z as d}; diff --git a/public/apps/webapp-schulverwaltung/chunk-Y4QYVF5K.js b/public/apps/webapp-schulverwaltung/chunk-Y4QYVF5K.js new file mode 100644 index 00000000..347a5673 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-Y4QYVF5K.js @@ -0,0 +1 @@ +function r(e,t){return n(e).includes(t)}function n(e){return e?e.split(";"):[]}export{r as a,n as b}; diff --git a/public/apps/webapp-schulverwaltung/chunk-ZK2M6PDV.js b/public/apps/webapp-schulverwaltung/chunk-ZK2M6PDV.js new file mode 100644 index 00000000..61548f7e --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-ZK2M6PDV.js @@ -0,0 +1 @@ +import{$ as b,$a as k,Ga as v,Ha as _,Ia as s,Ja as C,Sa as l,Ta as r,Tb as E,Ya as y,_a as p,ha as f,ia as g,jb as c,ra as h,tb as x,ua as u,vd as I}from"./chunk-T7QWSMKM.js";function F(t,e){return e?t.filter(S(e)):t}function S(t){let e=w(t);return i=>o(i.studentFullName,e)||o(i.studyClassNumber,e)||o(i.designation,e)||o(i.evaluationText,e)}function o(t,e){return t?w(t).includes(e):!1}function w(t){return I(t.toLowerCase())}function T(t,e){if(t&1){let i=y();l(0,"button",5),p("click",function(){f(i);let a=k();return g(a.valueChange.emit(""))}),l(1,"i",2),c(2,"clear"),r()()}}var j=(()=>{let e=class e{constructor(){this.value="",this.disabled=!1,this.valueChange=new h}};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=b({type:e,selectors:[["bkd-resettable-input"]],inputs:{value:"value",disabled:"disabled",placeholder:"placeholder",label:"label"},outputs:{valueChange:"valueChange"},standalone:!0,features:[x],decls:6,vars:7,consts:[[1,"input-group"],["id","resettable-input",1,"input-group-text"],[1,"material-icons"],["type","text","aria-describedby","resettable-input",1,"form-control",3,"keyup","value","disabled"],["class","clear btn btn-link text-decoration-none","type","button",3,"click",4,"ngIf"],["type","button",1,"clear","btn","btn-link","text-decoration-none",3,"click"]],template:function(a,n){a&1&&(l(0,"div",0)(1,"span",1)(2,"i",2),c(3,"search"),r()(),l(4,"input",3),p("keyup",function(m){return n.valueChange.emit(m.target==null?null:m.target.value)}),r(),v(5,T,3,0,"button",4),r()),a&2&&(u(4),C("has-value",n.value),s("value",n.value)("disabled",n.disabled),_("placeholder",n.placeholder)("aria-label",n.label),u(),s("ngIf",n.value))},dependencies:[E],styles:["input.has-value[_ngcontent-%COMP%]{padding-right:2.5em}.btn.clear[_ngcontent-%COMP%]{position:absolute;right:0;z-index:5;padding-left:.5rem;padding-right:.5rem}"]});let t=e;return t})();export{F as a,j as b}; diff --git a/public/apps/webapp-schulverwaltung/common.js b/public/apps/webapp-schulverwaltung/common.js deleted file mode 100644 index f6dabf2a..00000000 --- a/public/apps/webapp-schulverwaltung/common.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[76],{1037:(b,v,e)=>{e.d(v,{m2:()=>S,XB:()=>h,t1:()=>I});var t=e(5818),n=e(4273);function C(i,s){return+(0,n.a)(i)<+(0,n.a)(s)}function l(i,s){const f=+(0,n.a)(i),[a,m]=[+(0,n.a)(s.start),+(0,n.a)(s.end)].sort((E,D)=>E-D);return f>=a&&f<=m}var o=e(7233);class g{constructor(s,f,a){this.TeacherInformation=s,this.LessonDateTimeFrom=f,this.LessonDateTimeTo=a,this.lessons=[]}addLesson(s){this.lessons.some(f=>(0,o.ib)(f,s))||(this.lessons.push(s),this.updateId(),this.updateStudyClassNumbers(),this.updateEventDesignations())}getIds(){return[...new Set(this.lessons.map(s=>s.LessonRef.Id))]}getEventIds(){return[...new Set(this.lessons.map(s=>s.EventRef.Id))]}updateId(){this.id=[...new Set(this.lessons.map(s=>s.LessonRef.Id).sort())].join("-")}updateStudyClassNumbers(){this.studyClassNumbers=[...new Set(this.lessons.map(s=>s.StudyClassNumber).sort((s,f)=>s.localeCompare(f)))].join(", ")}updateEventDesignations(){this.eventDesignations=[...new Set(this.lessons.map(s=>s.EventDesignation).sort())].join(", ")}}function h(i){return I(i).reduce((s,f)=>{const a=s.find(E=>function r(i,s){return null===i&&null===s||null!==i&&null!==s&&i.TeacherInformation===s.TeacherInformation&&i.LessonDateTimeFrom.getTime()===s.LessonDateTimeFrom.getTime()&&i.LessonDateTimeTo.getTime()===s.LessonDateTimeTo.getTime()}(E,f));if(a)return a.addLesson(f),s;const m=function c(i){const s=new g(i.TeacherInformation,i.LessonDateTimeFrom,i.LessonDateTimeTo);return s.addLesson(i),s}(f);return[...s,m]},[]).sort(o.qZ)}function S(i){if(0===i.length)return null;const s=new Date;if(i=[...i].sort(o.qZ),(0,t.r)(s,i[0].LessonDateTimeFrom)){for(const f of i)if(C(s,f.LessonDateTimeFrom)||l(s,{start:f.LessonDateTimeFrom,end:f.LessonDateTimeTo}))return f;return i[i.length-1]}return i[0]}function I(i){return i.reduce((s,f)=>s.some(a=>(0,o.ib)(a,f))?s:[...s,f],[])}},181:(b,v,e)=>{e.d(v,{m:()=>p});var t=e(4438),n=e(9417),C=e(1324),u=e(3955),l=e(1195);let p=(()=>{class o{constructor(){this.value=null,this.placeholder="shared.date-select.default-placeholder",this.minDate=null,this.valueChange=new t.bkB,this.componentId=(0,l.A)("bkd-date-select-")}static#t=this.\u0275fac=function(g){return new(g||o)};static#e=this.\u0275cmp=t.VBU({type:o,selectors:[["bkd-date-select"]],inputs:{value:"value",placeholder:"placeholder",minDate:"minDate"},outputs:{valueChange:"valueChange"},standalone:!0,features:[t.aNF],decls:8,vars:10,consts:[["dp","ngbDatepicker"],[1,"input-group"],[1,"input-group-text",3,"id"],[1,"material-icons"],["type","text","ngbDatepicker","",1,"form-control",3,"click","ngModelChange","minDate","ngModel"]],template:function(g,h){if(1&g){const S=t.RV6();t.j41(0,"div",1)(1,"span",2)(2,"i",3),t.EFF(3,"calendar_today"),t.k0s()(),t.j41(4,"input",4,0),t.nI1(6,"translate"),t.nI1(7,"translate"),t.bIt("click",function(){t.eBV(S);const i=t.sdS(5);return t.Njj(i.toggle())})("ngModelChange",function(i){return t.eBV(S),t.Njj(h.valueChange.emit(i))}),t.k0s()()}2&g&&(t.R7$(),t.Y8G("id",h.componentId),t.R7$(3),t.Y8G("minDate",h.minDate)("ngModel",h.value),t.BMQ("placeholder",t.bMT(6,6,h.placeholder))("aria-label",t.bMT(7,8,h.placeholder))("aria-describedby",h.componentId))},dependencies:[C.cw,n.YN,n.me,n.BC,n.vS,u.h,u.D9]})}return o})()},2239:(b,v,e)=>{e.d(v,{B:()=>u});var t=e(177),n=e(4438);function C(l,p){if(1&l){const o=n.RV6();n.j41(0,"button",5),n.bIt("click",function(){n.eBV(o);const c=n.XpG();return n.Njj(c.valueChange.emit(""))}),n.j41(1,"i",2),n.EFF(2,"clear"),n.k0s()()}}let u=(()=>{class l{constructor(){this.value="",this.disabled=!1,this.valueChange=new n.bkB}static#t=this.\u0275fac=function(r){return new(r||l)};static#e=this.\u0275cmp=n.VBU({type:l,selectors:[["bkd-resettable-input"]],inputs:{value:"value",disabled:"disabled",placeholder:"placeholder",label:"label"},outputs:{valueChange:"valueChange"},standalone:!0,features:[n.aNF],decls:6,vars:7,consts:[[1,"input-group"],["id","resettable-input",1,"input-group-text"],[1,"material-icons"],["type","text","aria-describedby","resettable-input",1,"form-control",3,"keyup","value","disabled"],["class","clear btn btn-link text-decoration-none","type","button",3,"click",4,"ngIf"],["type","button",1,"clear","btn","btn-link","text-decoration-none",3,"click"]],template:function(r,c){1&r&&(n.j41(0,"div",0)(1,"span",1)(2,"i",2),n.EFF(3,"search"),n.k0s()(),n.j41(4,"input",3),n.bIt("keyup",function(h){return c.valueChange.emit(null==h.target?null:h.target.value)}),n.k0s(),n.DNE(5,C,3,0,"button",4),n.k0s()),2&r&&(n.R7$(4),n.AVh("has-value",c.value),n.Y8G("value",c.value)("disabled",c.disabled),n.BMQ("placeholder",c.placeholder)("aria-label",c.label),n.R7$(),n.Y8G("ngIf",c.value))},dependencies:[t.bT],styles:["input.has-value[_ngcontent-%COMP%]{padding-right:2.5em}.btn.clear[_ngcontent-%COMP%]{position:absolute;right:0;z-index:5;padding-left:.5rem;padding-right:.5rem}"]})}return l})()},6914:(b,v,e)=>{e.d(v,{RJ:()=>f,I4:()=>g,aZ:()=>h,$1:()=>s,H_:()=>S,u8:()=>I,tl:()=>c});var t=e(5783);var u=e(3813);function l(a,m,E){return void 0===E&&(E="withFallback("+a.name+")"),function C(a,m,E){void 0===E&&(E=a.name);var D=function n(a){var m=Object.create(Object.getPrototypeOf(a));return Object.assign(m,a),m}(a);return D.validate=m,D.decode=function(O){return m(O,t.TY(D))},D.name=E,D}(a,function(D,O){return(0,u.NW)(function(){return t.kX(m)})(a.validate(D,O))},E)}var p=e(5306),o=e(5666);const r=t.NW({Key:t.Yj,Value:t.Yj}),c=t.NW({Id:t.Yj,Settings:t.tB(t.YO(r))}),g=p.js.pipe(t.NW({mail:l(t.zM,!1),gui:l(t.zM,!1),phoneMobile:l(t.zM,!1)})),h=new t.ZU("NotificationTypesInactive",a=>Array.isArray(a)&&a.every(m=>"string"==typeof m),(a,m)=>"string"==typeof a?t.kX(a.split(";").filter(Boolean)):t.V2(a,m),a=>a.join(";"));var S=function(a){return a.Grid="grid",a.List="list",a}(S||{});const I=p.js.pipe(t.NW({presenceControl:t.ZE({grid:null,list:null})})),i=t.NW({eventId:(0,p.c$)(t.ai),group:(0,p.c$)(o.H.props.Key)}),s=p.js.pipe(t.tB(t.YO(i))),f=t.NW({AccessInfo:t.NW({Roles:t.YO(t.Yj),Permissions:t.YO(t.Yj)})})},5400:(b,v,e)=>{e.d(v,{z:()=>g});var t=e(1626),n=e(5558),C=e(2809),u=e(5783);const l=u.NW({Id:u.ai,Designation:u.Yj,StudentCount:u.ai});var p=e(1015),o=e(785),r=e(6952),c=e(4438);let g=(()=>{class h extends r.G{constructor(I,i){super(I,i,l,"Events")}getStudyCourseEvents(){const I=(new t.Nl).set("filter.EventTypeId=","1");return this.getList({params:I})}getSubscriptionDetailsDefinitions(I){return this.http.get(`${this.baseUrl}/${I}/SubscriptionDetails`).pipe((0,n.n)((0,o.k$)(p.t)))}static#t=this.\u0275fac=function(i){return new(i||h)(c.KVO(t.Qq),c.KVO(C.yy))};static#e=this.\u0275prov=c.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})()},3515:(b,v,e)=>{e.d(v,{A:()=>O});var t=e(1413),n=e(9172),C=e(152),u=e(5558),l=e(6354),p=e(4668),o=e(8141),r=e(6914),c=e(785),g=e(172),h=e(4438),S=e(2809),I=e(6952),i=e(1626);let s=(()=>{class y extends I.G{constructor(d,T){super(d,T,r.tl,"UserSettings")}getUserSettingsCst(d){return this.http.get(`${this.baseUrl}/Cst`,{params:d}).pipe((0,u.n)((0,c.D4)(this.codec)))}updateUserSettingsCst(d){return this.http.patch(`${this.baseUrl}/Cst`,d)}getAccessInfo(){return this.http.get(`${this.baseUrl}/?expand=AccessInfo`).pipe((0,u.n)((0,c.D4)(r.RJ)),(0,l.T)(({AccessInfo:d})=>d))}static#t=this.\u0275fac=function(T){return new(T||y)(h.KVO(i.Qq),h.KVO(S.yy))};static#e=this.\u0275prov=h.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})();const a="presenceControlViewMode",m="presenceControlGroupView",E="notification",D="notificationTypesInactive";let O=(()=>{class y{constructor(d){this.settingsRestService=d,this.refetch$=new t.B,this.settings$=this.refetch$.pipe((0,n.Z)(null),(0,C.B)(100),(0,u.n)(()=>this.settingsRestService.getUserSettingsCst()),(0,l.T)(T=>T.Settings),(0,p.t)(1)),this.accessInfo$=this.settingsRestService.getAccessInfo().pipe((0,p.t)(1))}refetch(){this.refetch$.next()}getSetting(d){return this.settings$.pipe((0,l.T)(T=>T.find(N=>N.Key===d)?.Value??null))}saveSetting(d,T){return this.settingsRestService.updateUserSettingsCst(this.buildSettings(d,T)).pipe((0,o.M)(()=>this.refetch$.next()))}getPresenceControlViewMode(){return this.getSetting(a).pipe((0,g.Jh)('{"presenceControl":"grid"}'),(0,u.n)((0,c.D4)(r.u8)),(0,l.T)(({presenceControl:d})=>d))}savePresenceControlViewMode(d){return this.saveSetting(a,r.u8.encode({presenceControl:d}))}getPresenceControlGroupView(){return this.getSetting(m).pipe((0,g.Jh)("[]"),(0,u.n)((0,c.D4)(r.$1)))}savePresenceControlGroupView(d){return this.saveSetting(m,r.$1.encode(d))}getNotificationChannels(){return this.getSetting(E).pipe((0,g.Jh)("{}"),(0,u.n)((0,c.D4)(r.I4)))}saveNotificationChannels(d){return this.saveSetting(E,r.I4.encode(d))}getNotificationTypesInactive(){return this.getSetting(D).pipe((0,g.Jh)(""),(0,u.n)((0,c.D4)(r.aZ)))}saveNotificationTypesInactive(d){return this.saveSetting(D,r.aZ.encode(d))}getRolesAndPermissions(){return this.accessInfo$.pipe((0,l.T)(({Roles:d,Permissions:T})=>[...d,...T]),(0,n.Z)(null))}buildSettings(d,T){return{Id:"Cst",Settings:[{Key:d,Value:T}]}}static#t=this.\u0275fac=function(T){return new(T||y)(h.KVO(s))};static#e=this.\u0275prov=h.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})()},2930:(b,v,e)=>{e.d(v,{F:()=>n,r:()=>C});var t=e(5314);function n(u,l,p){return u.map(o=>{let c,r=null;return o.TypeRef.Id&&(r=l.find(g=>g.Id===o.TypeRef.Id)||null),o.ConfirmationStateId&&(c=p.find(g=>g.Key===o.ConfirmationStateId)),new t.Jt(o,r,null,c)})}function C(u,l,p){return u?l.filter(o=>p.find(r=>r===o.lessonPresence.StudentRef.Id)):l}},8358:(b,v,e)=>{e.d(v,{x:()=>n});var t=e(8116);function n(p,o){return o?p.filter(function C(p){const o=l(p);return r=>u(r.studentFullName,o)||u(r.studyClassNumber,o)||u(r.designation,o)||u(r.evaluationText,o)}(o)):p}function u(p,o){return!!p&&l(p).includes(o)}function l(p){return(0,t.A)(p.toLowerCase())}}}]); \ No newline at end of file diff --git a/public/apps/webapp-schulverwaltung/index.html b/public/apps/webapp-schulverwaltung/index.html index 2d085b1f..99e391d8 100644 --- a/public/apps/webapp-schulverwaltung/index.html +++ b/public/apps/webapp-schulverwaltung/index.html @@ -4,7 +4,7 @@ webapp-schulverwaltung - + diff --git a/public/apps/webapp-schulverwaltung/main.js b/public/apps/webapp-schulverwaltung/main.js index 808ec338..4daae9e2 100644 --- a/public/apps/webapp-schulverwaltung/main.js +++ b/public/apps/webapp-schulverwaltung/main.js @@ -1 +1 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[792],{2809:(qe,ie,D)=>{D.d(ie,{wB:()=>ae,yy:()=>me});var i=D(4438),P=D(5783),H=D(5306),G=D(5437),V=function(Ce){return Ce.Crystal="crystal",Ce.Excel="excel",Ce}(V||{});const J=P.NW({type:(0,G.o)("ReportType",V),id:P.ai}),W=P.NW({de:P.NW({label:P.Yj,description:P.Yj}),fr:P.NW({label:P.Yj,description:P.Yj})}),k=P.g1(P.Yj,W),Z=P.NW({roles:P.YO(P.Yj),types:P.YO(P.Yj)}),oe=P.NW({substitutionsAdminLink:P.Yj}),ae=P.NW({apiUrl:P.Yj,scriptsAndAssetsPath:P.Yj,paginationLimit:P.ai,absencePresenceTypeId:P.ai,latePresenceTypeId:P.ai,dispensationPresenceTypeId:P.ai,halfDayPresenceTypeId:P.ai,unconfirmedAbsenceStateId:P.ai,unexcusedAbsenceStateId:P.ai,excusedAbsenceStateId:P.ai,checkableAbsenceStateId:P.ai,lessonPresencesRefreshTime:P.ai,unconfirmedAbsencesRefreshTime:(0,H.c$)(P.ai),personMasterDataReports:P.YO(J),studentConfirmationReports:P.YO(J),evaluateAbsencesReports:P.YO(J),myAbsencesReports:P.YO(J),testsByCourseReports:P.YO(J),testsBySubscriptionStudentReports:P.YO(J),testsBySubscriptionTeacherReports:P.YO(J),subscriptionDetailGroupId:P.ai,headerRoleRestriction:P.g1(P.Yj,P.Yj),notificationTypes:k,notificationTypesAssignments:P.YO(Z),eventlist:P.g1(P.Yj,P.Yj),dashboard:oe,preventStudentAbsenceAfterLessonStart:P.YO(P.Yj)}),me=new i.nKC("Application Settings",{providedIn:"root",factory:()=>window.schulverwaltung.settings})},1803:(qe,ie,D)=>{D.d(ie,{Q:()=>oe,U:()=>ae});var i=D(1626),P=D(4438),H=D(5539),G=D(3955),V=D(983),J=D(8810),W=D(9437),k=D(5889),Z=D(9728);const oe=new i.rx(()=>({disableErrorHandling:!1,disableErrorHandlingForStatus:[]}));function ae(){return(Ce,Se)=>{const De=Ce.context.get(oe);return Se(Ce).pipe((0,W.W)(function me(Ce){const Se=(0,P.WQX)(H.Ix),De=(0,P.WQX)(k.f),Ue=(0,P.WQX)(G.c$);return ut=>{if(ut instanceof i.yz&&!Ce.disableErrorHandling&&(!Ce.disableErrorHandlingForStatus||!Ce.disableErrorHandlingForStatus.includes(ut.status)))switch(ut.status){case 401:return Re("noaccess"),Se.navigate(["/unauthenticated"]),V.w;case 403:return Re("noaccess"),Se.navigate(["/dashboard"]),V.w;case 404:return Re("notfound"),V.w;case 0:case 503:case 504:return Re("unavailable"),V.w;case 409:return function rt(ut){const Qe=Ue.instant("global.rest-errors.conflict-message"),He=function _t(ut){return Array.isArray(ut.error?.Issues)?ut.error.Issues.map(Qe=>Qe?.Message).filter(Z.y0):[]}(ut);De.error(He.length>0?He.join("\n"):Qe,Ue.instant("global.rest-errors.conflict-title"))}(ut),V.w;default:return Re("server"),V.w}return(0,J.$)(()=>ut)};function Re(ut){De.error(Ue.instant(`global.rest-errors.${ut}-message`),Ue.instant(`global.rest-errors.${ut}-title`))}}(De)))}}},5306:(qe,ie,D)=>{D.d(ie,{js:()=>Ce,DR:()=>De,iC:()=>Se,bW:()=>oe,c$:()=>Z,cO:()=>me,Or:()=>ae});var i=D(3813),P=D(8633),H=D(5783),G=H.FX("JsonArray",function(){return H.QZ(J)}),V=H.FX("JsonRecord",function(){return H.g1(H.Yj,J)}),J=H.KC([H.zM,H.ai,H.Yj,H.ch,G,V],"Json"),W=new H.ZU("JsonFromString",J.is,function(Ue,Re){try{return H.kX(JSON.parse(Ue))}catch{return H.V2(Ue,Re)}},function(Ue){return JSON.stringify(Ue)}),k=D(6834);function Z(Ue){return H.KC([H.ch,Ue])}function oe(Ue){return H.KC([H.ch,H.Vx,Ue])}const ae=H.NW({Id:H.ai,HRef:Z(H.Yj)}),me=H.NW({Id:Z(H.ai),HRef:Z(H.Yj)}),Ce=H.Yj.pipe(W,"JsonFromUnknown"),Se=new H.ZU("LocalDateTimeFromString",Ue=>Ue instanceof Date,(Ue,Re)=>(0,P.Fs)(H.Yj.validate(Ue,Re),(0,i.cy)(rt=>{const _t=(0,k.RG)(rt);return isNaN(_t.getTime())?H.V2(Ue,Re):H.kX(_t)})),Ue=>(0,k.bo)(Ue)),De=new H.ZU("LocalDateTimeFromString",Ue=>Ue instanceof Date,(Ue,Re)=>(0,P.Fs)(H.Yj.validate(Ue,Re),(0,i.cy)(rt=>{const _t=(0,k.cv)(rt);return isNaN(_t.getTime())?H.V2(Ue,Re):H.kX(_t)})),Ue=>(0,k.Wp)(Ue))},3422:(qe,ie,D)=>{D.d(ie,{O:()=>J,W:()=>W});var i=D(4438),P=D(3955),H=D(4599);const G=["de-CH","fr-CH"],V=G[0];function J(){return[{provide:i.xe9,useFactory:k=>k.detectLanguage(),deps:[W]}]}let W=(()=>{class k{constructor(oe,ae){this.translate=oe,this.storage=ae}initialize(){this.translate.setDefaultLang(V),this.translate.use(this.detectLanguage())}detectLanguage(){return this.detectedLanguage||(this.detectedLanguage=this.getDocumentLanguage()||this.getStoredLanguage()||this.getBrowserLanguage()||V),this.detectedLanguage}getLocalizedLanguage(oe){return(oe=G.find(ae=>ae===`${(oe||"").toLowerCase()}-CH`))||V}getDocumentLanguage(){const oe=document.querySelector("[lang]");return this.normalizeLanguage(oe&&oe.lang)}getStoredLanguage(){return this.normalizeLanguage(this.storage.getLanguage())}getBrowserLanguage(){return this.normalizeLanguage(this.translate.getBrowserLang())}normalizeLanguage(oe){return(oe=(oe||"").split("-")[0])&&G.find(ae=>oe===ae.split("-")[0])||null}static#e=this.\u0275fac=function(ae){return new(ae||k)(i.KVO(P.c$),i.KVO(H.n))};static#t=this.\u0275prov=i.jDH({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})()},4599:(qe,ie,D)=>{D.d(ie,{n:()=>J});var i=D(4438);let J=(()=>{class W{getLanguage(){return this.getValue("uiCulture")}getAccessToken(){const Z=this.getValue("CLX.LoginToken");return Z?Z.replace(/^"+|"+$/g,""):null}getRefreshToken(){return this.getValue("CLX.RefreshToken")}getTokenExpire(){return this.getValue("CLX.TokenExpire")}getPayload(){const Z=this.getAccessToken(),oe=Z?Z.split(".")[1]:null,ae=oe?oe.replace("-","+").replace("_","/"):null,me=JSON.parse(window.atob(ae||""));return me.roles="holder_roles"in me?me.holder_roles:me.roles,me}getValue(Z){return sessionStorage.getItem(Z)||localStorage.getItem(Z)}static#e=this.\u0275fac=function(oe){return new(oe||W)};static#t=this.\u0275prov=i.jDH({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})()},5889:(qe,ie,D)=>{D.d(ie,{f:()=>V});var i=D(977),P=D(4412),H=D(6697),G=D(4438);let V=(()=>{class J{constructor(){this.toastsSubject=new P.t([]),this.toasts$=this.toastsSubject.asObservable()}success(k,Z){this.addUnique({message:k,header:Z,classname:"bg-success text-light",icon:"check_circle"})}warning(k,Z){this.addUnique({message:k,header:Z,classname:"bg-warning",icon:"help"})}error(k,Z){this.addUnique({message:k,header:Z,classname:"bg-danger text-light",icon:"cancel"})}remove(k){this.updateToasts(Z=>Z.filter(oe=>!(0,i.A)(oe,k)))}addUnique(k){this.updateToasts(Z=>{if(!this.exists(Z,k))return[...Z,k]})}exists(k,Z){return!!k.find(oe=>oe.message===Z.message&&oe.header===Z.header)}updateToasts(k){this.toasts$.pipe((0,H.s)(1)).subscribe(Z=>{const oe=k(Z);oe&&this.toastsSubject.next(oe)})}static#e=this.\u0275fac=function(Z){return new(Z||J)};static#t=this.\u0275prov=G.jDH({token:J,factory:J.\u0275fac,providedIn:"root"})}return J})()},6834:(qe,ie,D)=>{function i(J){const W=J.split(/\D/).map(k=>Number(k));return new Date(W[0],W[1]-1,W[2],W[3],W[4],W[5])}function P(J){const W=J.split(/\D/).map(k=>Number(k));return new Date(W[0],W[1]-1,W[2])}function H(J){return G(J)+`T${V(J.getHours())}:${V(J.getMinutes())}:${V(J.getSeconds())}`}function G(J){return`${J.getFullYear()}-${V(J.getMonth()+1)}-${V(J.getDate())}`}function V(J){return("0"+J).slice(-2)}D.d(ie,{RG:()=>i,Wp:()=>G,bo:()=>H,cv:()=>P})},785:(qe,ie,D)=>{D.d(ie,{D4:()=>Ce,k$:()=>Se});var i=D(3813),P=D(8633),H=D(5783);function J(De){return void 0!==De.message?De.message:"Invalid value ".concat(function G(De){return"function"==typeof De?(0,H.qQ)(De):"number"!=typeof De||isFinite(De)?JSON.stringify(De):isNaN(De)?"NaN":De>0?"Infinity":"-Infinity"}(De.value)," supplied to ").concat(function V(De){return De.map(function(Ue){var rt=Ue.type;return"".concat(Ue.key,": ").concat(rt.name)}).join("/")}(De.context))}var Z={report:(0,i.AU)(function W(De){return De.map(J)},function k(){return["No errors!"]})},oe=D(8810),ae=D(7673);class me extends Error{constructor(){super(...arguments),this.name="DecodeError"}}function Ce(De){return Ue=>(0,P.Fs)(De.decode(Ue),(0,i.AU)(Re=>(0,oe.$)(()=>new me(Z.report((0,i.kb)(Re)).join("\n"))),Re=>(0,ae.of)(Re)))}function Se(De){return Ce(H.YO(De))}},9728:(qe,ie,D)=>{function P(Z){return null!==Z}function H(Z){return"string"==typeof Z&&Z.length>0}function G(Z){return oe=>!Z(oe)}function V(Z){return oe=>oe.length>=Z}function J(Z){return!!Z}function W(Z){return oe=>oe instanceof Z}function k(Z,oe,ae){return ae.indexOf(Z)===oe}D.d(ie,{AU:()=>G,Am:()=>k,NT:()=>V,TM:()=>P,tH:()=>W,y0:()=>H,zz:()=>J})},5437:(qe,ie,D)=>{D.d(ie,{U:()=>P,o:()=>H});var i=D(5783);function P(G,V){return V.reduce((J,W)=>({...J,[W]:G[W]}),{})}function H(G,V){const J=W=>Object.values(V).includes(W);return new i.ZU(G,J,(W,k)=>J(W)?i.kX(W):i.V2(W,k),i.D_)}},7721:(qe,ie,D)=>{D.d(ie,{A$:()=>G,JO:()=>P,hD:()=>H});var i=D(5539);function P(V){return String(V||"").split("&").reduce((J,W)=>{const[k,Z]=W.split("=");return{...J,[k]:Z}},{})}function H(V){return Object.keys(V).reduce((J,W)=>{const k=V[W];return[...J,null==k?W:`${W}=${k}`]},[]).join("&")}function G(V){const Z=(new i.nU).parse(V)?.root.children[i.Xk]?.segments;return Z?Z[0].path:null}},5609:(qe,ie,D)=>{var i=D(177);const P=void 0,G=["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 H(A){const g=Math.floor(Math.abs(A)),T=A.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===T?1:5}],V=void 0,W=["fr-CH",[["AM","PM"],V,V],V,[["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"]],V,[["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"]],V,[["av. J.-C.","ap. J.-C."],V,["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}",V],[",","\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:[V,"\u0440."],BZD:["$BZ","$"],CAD:["$CA","$"],CLP:["$CL","$"],CNY:[V,"\xa5"],COP:["$CO","$"],CYP:["\xa3CY"],EGP:[V,"\xa3E"],FJD:["$FJ","$"],FKP:["\xa3FK","\xa3"],FRF:["F"],GBP:["\xa3GB","\xa3"],GIP:["\xa3GI","\xa3"],HKD:[V,"$"],IEP:["\xa3IE"],ILP:["\xa3IL"],ITL:["\u20a4IT"],JPY:[V,"\xa5"],KMF:[V,"FC"],LBP:["\xa3LB","\xa3L"],MTP:["\xa3MT"],MXN:["$MX","$"],NAD:["$NA","$"],NIO:[V,"$C"],NZD:["$NZ","$"],PHP:[V,"\u20b1"],RHD:["$RH"],RON:[V,"L"],RWF:[V,"FR"],SBD:["$SB","$"],SGD:["$SG","$"],SRD:["$SR","$"],TOP:[V,"$T"],TTD:["$TT","$"],TWD:[V,"NT$"],USD:["$US","$"],UYU:["$UY","$"],WST:["$WS"],XCD:[V,"$"],XPF:["FCFP"],ZMW:[V,"Kw"]},"ltr",function J(A){const g=Math.floor(Math.abs(A)),T=A.toString().replace(/^[^.]*\.?/,"").length,F=parseInt(A.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return 0===g||1===g?1:0===F&&0!==g&&g%1e6==0&&0===T||!(F>=0&&F<=5)?4:5}];var k=D(4438),Z=D(345),oe=D(5539),ae=D(983),me=D(9437),Ce=D(2809),Se=D(1324),De=D(5889);function Ue(A,d){if(1&A&&(k.j41(0,"i",4),k.EFF(1),k.k0s()),2&A){const g=k.XpG().$implicit;k.R7$(),k.JRh(g.icon)}}function Re(A,d){if(1&A){const g=k.RV6();k.j41(0,"ngb-toast",1),k.bIt("hidden",function(){const F=k.eBV(g).$implicit,Q=k.XpG();return k.Njj(Q.toastService.remove(F))}),k.j41(1,"div",2),k.DNE(2,Ue,2,1,"i",3),k.j41(3,"span"),k.EFF(4),k.k0s()()()}if(2&A){const g=d.$implicit;k.HbH(g.classname),k.Y8G("header",g.header||"")("autohide",!0),k.R7$(2),k.Y8G("ngIf",g.icon),k.R7$(2),k.JRh(g.message)}}let rt=(()=>{class A{constructor(g){this.toastService=g}static#e=this.\u0275fac=function(T){return new(T||A)(k.rXU(De.f))};static#t=this.\u0275cmp=k.VBU({type:A,selectors:[["bkd-toast"]],standalone:!0,features:[k.aNF],decls:2,vars:3,consts:[[3,"header","class","autohide","hidden",4,"ngFor","ngForOf"],[3,"hidden","header","autohide"],[1,"d-flex","gap-2"],["class","material-icons",4,"ngIf"],[1,"material-icons"]],template:function(T,F){1&T&&(k.DNE(0,Re,5,6,"ngb-toast",0),k.nI1(1,"async")),2&T&&k.Y8G("ngForOf",k.bMT(1,1,F.toastService.toasts$))},dependencies:[i.pM,Se.Nb,i.bT,i.Jj],styles:["[_nghost-%COMP%]{position:fixed;top:0;right:0;margin:.5em;z-index:1200}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{font-size:medium}"]})}return A})();const _t=new k.nKC("Navigator API",{providedIn:"root",factory:()=>navigator});var ut=D(785),Qe=D(3422);let He=(()=>{class A{constructor(g,T,F,Q){this.toastService=T,this.settings=F,this.navigator=Q,g.initialize(),this.checkSettings()}checkSettings(){(0,ut.D4)(Ce.wB)(this.settings).pipe((0,me.W)(g=>(console.error(String(g)),this.toastService.error("Please check the contents of the settings.js file (see Console output for more details).","Invalid Settings"),ae.w))).subscribe()}static#e=this.\u0275fac=function(T){return new(T||A)(k.rXU(Qe.W),k.rXU(De.f),k.rXU(Ce.yy),k.rXU(_t))};static#t=this.\u0275cmp=k.VBU({type:A,selectors:[["bkd-app"]],standalone:!0,features:[k.aNF],decls:2,vars:0,consts:[["aria-live","polite","aria-atomic","true"]],template:function(T,F){1&T&&k.nrm(0,"bkd-toast",0)(1,"router-outlet")},dependencies:[rt,oe.n3],styles:["[_nghost-%COMP%]{width:100%}"],changeDetection:0})}return A})();var at=D(1626),et=function(A){return A[A.State=0]="State",A[A.Transition=1]="Transition",A[A.Sequence=2]="Sequence",A[A.Group=3]="Group",A[A.Animate=4]="Animate",A[A.Keyframes=5]="Keyframes",A[A.Style=6]="Style",A[A.Trigger=7]="Trigger",A[A.Reference=8]="Reference",A[A.AnimateChild=9]="AnimateChild",A[A.AnimateRef=10]="AnimateRef",A[A.Query=11]="Query",A[A.Stagger=12]="Stagger",A}(et||{});const ft="*";function dt(A){return{type:et.Style,styles:A,offset:null}}class Cn{constructor(d=0,g=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=d+g}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(d=>d()),this._onDoneFns=[])}onStart(d){this._originalOnStartFns.push(d),this._onStartFns.push(d)}onDone(d){this._originalOnDoneFns.push(d),this._onDoneFns.push(d)}onDestroy(d){this._onDestroyFns.push(d)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(d=>d()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(d=>d()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(d){this._position=this.totalTime?d*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(d){const g="start"==d?this._onStartFns:this._onDoneFns;g.forEach(T=>T()),g.length=0}}class sn{constructor(d){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=d;let g=0,T=0,F=0;const Q=this.players.length;0==Q?queueMicrotask(()=>this._onFinish()):this.players.forEach(he=>{he.onDone(()=>{++g==Q&&this._onFinish()}),he.onDestroy(()=>{++T==Q&&this._onDestroy()}),he.onStart(()=>{++F==Q&&this._onStart()})}),this.totalTime=this.players.reduce((he,ye)=>Math.max(he,ye.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(d=>d()),this._onDoneFns=[])}init(){this.players.forEach(d=>d.init())}onStart(d){this._onStartFns.push(d)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(d=>d()),this._onStartFns=[])}onDone(d){this._onDoneFns.push(d)}onDestroy(d){this._onDestroyFns.push(d)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(d=>d.play())}pause(){this.players.forEach(d=>d.pause())}restart(){this.players.forEach(d=>d.restart())}finish(){this._onFinish(),this.players.forEach(d=>d.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(d=>d.destroy()),this._onDestroyFns.forEach(d=>d()),this._onDestroyFns=[])}reset(){this.players.forEach(d=>d.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(d){const g=d*this.totalTime;this.players.forEach(T=>{const F=T.totalTime?Math.min(1,g/T.totalTime):1;T.setPosition(F)})}getPosition(){const d=this.players.reduce((g,T)=>null===g||T.totalTime>g.totalTime?T:g,null);return null!=d?d.getPosition():0}beforeDestroy(){this.players.forEach(d=>{d.beforeDestroy&&d.beforeDestroy()})}triggerCallback(d){const g="start"==d?this._onStartFns:this._onDoneFns;g.forEach(T=>T()),g.length=0}}function On(A){return new k.wOt(3e3,!1)}function ar(A){switch(A.length){case 0:return new Cn;case 1:return A[0];default:return new sn(A)}}function br(A,d,g=new Map,T=new Map){const F=[],Q=[];let he=-1,ye=null;if(d.forEach(je=>{const Oe=je.get("offset"),Gt=Oe==he,Qt=Gt&&ye||new Map;je.forEach((or,Ln)=>{let fn=Ln,nn=or;if("offset"!==Ln)switch(fn=A.normalizePropertyName(fn,F),nn){case"!":nn=g.get(Ln);break;case ft:nn=T.get(Ln);break;default:nn=A.normalizeStyleValue(Ln,fn,nn,F)}Qt.set(fn,nn)}),Gt||Q.push(Qt),ye=Qt,he=Oe}),F.length)throw function kn(A){return new k.wOt(3502,!1)}();return Q}function fr(A,d,g,T){switch(d){case"start":A.onStart(()=>T(g&&hr(g,"start",A)));break;case"done":A.onDone(()=>T(g&&hr(g,"done",A)));break;case"destroy":A.onDestroy(()=>T(g&&hr(g,"destroy",A)))}}function hr(A,d,g){const Q=gi(A.element,A.triggerName,A.fromState,A.toState,d||A.phaseName,g.totalTime??A.totalTime,!!g.disabled),he=A._data;return null!=he&&(Q._data=he),Q}function gi(A,d,g,T,F="",Q=0,he){return{element:A,triggerName:d,fromState:g,toState:T,phaseName:F,totalTime:Q,disabled:!!he}}function Dr(A,d,g){let T=A.get(d);return T||A.set(d,T=g),T}function kt(A){const d=A.indexOf(":");return[A.substring(1,d),A.slice(d+1)]}const Bt=typeof document>"u"?null:document.documentElement;function li(A){const d=A.parentNode||A.host||null;return d===Bt?null:d}let Jr=null,mi=!1;function ci(A,d){for(;d;){if(d===A)return!0;d=li(d)}return!1}function Ri(A,d,g){if(g)return Array.from(A.querySelectorAll(d));const T=A.querySelector(d);return T?[T]:[]}let Ur=(()=>{class A{validateStyleProperty(g){return function Ci(A){Jr||(Jr=function yo(){return typeof document<"u"?document.body:null}()||{},mi=!!Jr.style&&"WebkitAppearance"in Jr.style);let d=!0;return Jr.style&&!function Ii(A){return"ebkit"==A.substring(1,6)}(A)&&(d=A in Jr.style,!d&&mi&&(d="Webkit"+A.charAt(0).toUpperCase()+A.slice(1)in Jr.style)),d}(g)}matchesElement(g,T){return!1}containsElement(g,T){return ci(g,T)}getParentElement(g){return li(g)}query(g,T,F){return Ri(g,T,F)}computeStyle(g,T,F){return F||""}animate(g,T,F,Q,he,ye=[],je){return new Cn(F,Q)}static#e=this.\u0275fac=function(T){return new(T||A)};static#t=this.\u0275prov=k.jDH({token:A,factory:A.\u0275fac})}return A})();class Pi{static#e=this.NOOP=new Ur}class Wi{}const le=1e3,We="ng-enter",Dt="ng-leave",Et="ng-trigger",U=".ng-trigger",X="ng-animating",ee=".ng-animating";function q(A){if("number"==typeof A)return A;const d=A.match(/^(-?[\.\d]+)(m?s)/);return!d||d.length<2?0:Ae(parseFloat(d[1]),d[2])}function Ae(A,d){return"s"===d?A*le:A}function Pe(A,d,g){return A.hasOwnProperty("duration")?A:function Xe(A,d,g){let F,Q=0,he="";if("string"==typeof A){const ye=A.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===ye)return d.push(On()),{duration:0,delay:0,easing:""};F=Ae(parseFloat(ye[1]),ye[2]);const je=ye[3];null!=je&&(Q=Ae(parseFloat(je),ye[4]));const Oe=ye[5];Oe&&(he=Oe)}else F=A;if(!g){let ye=!1,je=d.length;F<0&&(d.push(function Kt(){return new k.wOt(3100,!1)}()),ye=!0),Q<0&&(d.push(function Un(){return new k.wOt(3101,!1)}()),ye=!0),ye&&d.splice(je,0,On())}return{duration:F,delay:Q,easing:he}}(A,d,g)}function ct(A,d,g){d.forEach((T,F)=>{const Q=Sn(F);g&&!g.has(F)&&g.set(F,A.style[Q]),A.style[Q]=T})}function Lt(A,d){d.forEach((g,T)=>{const F=Sn(T);A.style[F]=""})}function qt(A){return Array.isArray(A)?1==A.length?A[0]:function Mt(A,d=null){return{type:et.Sequence,steps:A,options:d}}(A):A}const Bn=new RegExp("{{\\s*(.+?)\\s*}}","g");function pr(A){let d=[];if("string"==typeof A){let g;for(;g=Bn.exec(A);)d.push(g[1]);Bn.lastIndex=0}return d}function Yn(A,d,g){const T=`${A}`,F=T.replace(Bn,(Q,he)=>{let ye=d[he];return null==ye&&(g.push(function Tt(A){return new k.wOt(3003,!1)}()),ye=""),ye.toString()});return F==T?A:F}const $t=/-+([a-z0-9])/g;function Sn(A){return A.replace($t,(...d)=>d[1].toUpperCase())}function ui(A,d,g){switch(d.type){case et.Trigger:return A.visitTrigger(d,g);case et.State:return A.visitState(d,g);case et.Transition:return A.visitTransition(d,g);case et.Sequence:return A.visitSequence(d,g);case et.Group:return A.visitGroup(d,g);case et.Animate:return A.visitAnimate(d,g);case et.Keyframes:return A.visitKeyframes(d,g);case et.Style:return A.visitStyle(d,g);case et.Reference:return A.visitReference(d,g);case et.AnimateChild:return A.visitAnimateChild(d,g);case et.AnimateRef:return A.visitAnimateRef(d,g);case et.Query:return A.visitQuery(d,g);case et.Stagger:return A.visitStagger(d,g);default:throw function on(A){return new k.wOt(3004,!1)}()}}function Xs(A,d){return window.getComputedStyle(A)[d]}const Zi=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 yn extends Wi{normalizePropertyName(d,g){return Sn(d)}normalizeStyleValue(d,g,T,F){let Q="";const he=T.toString().trim();if(Zi.has(g)&&0!==T&&"0"!==T)if("number"==typeof T)Q="px";else{const ye=T.match(/^[+-]?[\d\.]+([a-z]*)$/);ye&&0==ye[1].length&&F.push(function Dn(A,d){return new k.wOt(3005,!1)}())}return he+Q}}const Tr="*";const bo=new Set(["true","1"]),wi=new Set(["false","0"]);function Do(A,d){const g=bo.has(A)||wi.has(A),T=bo.has(d)||wi.has(d);return(F,Q)=>{let he=A==Tr||A==F,ye=d==Tr||d==Q;return!he&&g&&"boolean"==typeof F&&(he=F?bo.has(A):wi.has(A)),!ye&&T&&"boolean"==typeof Q&&(ye=Q?bo.has(d):wi.has(d)),he&&ye}}const Xo=new RegExp("s*:selfs*,?","g");function ri(A,d,g,T){return new Ir(A).build(d,g,T)}class Ir{constructor(d){this._driver=d}build(d,g,T){const F=new Ge(g);return this._resetContextStyleTimingState(F),ui(this,qt(d),F)}_resetContextStyleTimingState(d){d.currentQuerySelector="",d.collectedStyles=new Map,d.collectedStyles.set("",new Map),d.currentTime=0}visitTrigger(d,g){let T=g.queryCount=0,F=g.depCount=0;const Q=[],he=[];return"@"==d.name.charAt(0)&&g.errors.push(function Kn(){return new k.wOt(3006,!1)}()),d.definitions.forEach(ye=>{if(this._resetContextStyleTimingState(g),ye.type==et.State){const je=ye,Oe=je.name;Oe.toString().split(/\s*,\s*/).forEach(Gt=>{je.name=Gt,Q.push(this.visitState(je,g))}),je.name=Oe}else if(ye.type==et.Transition){const je=this.visitTransition(ye,g);T+=je.queryCount,F+=je.depCount,he.push(je)}else g.errors.push(function pn(){return new k.wOt(3007,!1)}())}),{type:et.Trigger,name:d.name,states:Q,transitions:he,queryCount:T,depCount:F,options:null}}visitState(d,g){const T=this.visitStyle(d.styles,g),F=d.options&&d.options.params||null;if(T.containsDynamicStyles){const Q=new Set,he=F||{};T.styles.forEach(ye=>{ye instanceof Map&&ye.forEach(je=>{pr(je).forEach(Oe=>{he.hasOwnProperty(Oe)||Q.add(Oe)})})}),Q.size&&g.errors.push(function Xn(A,d){return new k.wOt(3008,!1)}(0,Q.values()))}return{type:et.State,name:d.name,style:T,options:F?{params:F}:null}}visitTransition(d,g){g.queryCount=0,g.depCount=0;const T=ui(this,qt(d.animation),g),F=function xi(A,d){const g=[];return"string"==typeof A?A.split(/\s*,\s*/).forEach(T=>function ao(A,d,g){if(":"==A[0]){const je=function gs(A,d){switch(A){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(g,T)=>parseFloat(T)>parseFloat(g);case":decrement":return(g,T)=>parseFloat(T) *"}}(A,g);if("function"==typeof je)return void d.push(je);A=je}const T=A.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==T||T.length<4)return g.push(function ur(A){return new k.wOt(3015,!1)}()),d;const F=T[1],Q=T[2],he=T[3];d.push(Do(F,he)),"<"==Q[0]&&(F!=Tr||he!=Tr)&&d.push(Do(he,F))}(T,g,d)):g.push(A),g}(d.expr,g.errors);return{type:et.Transition,matchers:F,animation:T,queryCount:g.queryCount,depCount:g.depCount,options:Vn(d.options)}}visitSequence(d,g){return{type:et.Sequence,steps:d.steps.map(T=>ui(this,T,g)),options:Vn(d.options)}}visitGroup(d,g){const T=g.currentTime;let F=0;const Q=d.steps.map(he=>{g.currentTime=T;const ye=ui(this,he,g);return F=Math.max(F,g.currentTime),ye});return g.currentTime=F,{type:et.Group,steps:Q,options:Vn(d.options)}}visitAnimate(d,g){const T=function en(A,d){if(A.hasOwnProperty("duration"))return A;if("number"==typeof A)return Gi(Pe(A,d).duration,0,"");const g=A;if(g.split(/\s+/).some(Q=>"{"==Q.charAt(0)&&"{"==Q.charAt(1))){const Q=Gi(0,0,"");return Q.dynamic=!0,Q.strValue=g,Q}const F=Pe(g,d);return Gi(F.duration,F.delay,F.easing)}(d.timings,g.errors);g.currentAnimateTimings=T;let F,Q=d.styles?d.styles:dt({});if(Q.type==et.Keyframes)F=this.visitKeyframes(Q,g);else{let he=d.styles,ye=!1;if(!he){ye=!0;const Oe={};T.easing&&(Oe.easing=T.easing),he=dt(Oe)}g.currentTime+=T.duration+T.delay;const je=this.visitStyle(he,g);je.isEmptyStep=ye,F=je}return g.currentAnimateTimings=null,{type:et.Animate,timings:T,style:F,options:null}}visitStyle(d,g){const T=this._makeStyleAst(d,g);return this._validateStyleAst(T,g),T}_makeStyleAst(d,g){const T=[],F=Array.isArray(d.styles)?d.styles:[d.styles];for(let ye of F)"string"==typeof ye?ye===ft?T.push(ye):g.errors.push(new k.wOt(3002,!1)):T.push(new Map(Object.entries(ye)));let Q=!1,he=null;return T.forEach(ye=>{if(ye instanceof Map&&(ye.has("easing")&&(he=ye.get("easing"),ye.delete("easing")),!Q))for(let je of ye.values())if(je.toString().indexOf("{{")>=0){Q=!0;break}}),{type:et.Style,styles:T,easing:he,offset:d.offset,containsDynamicStyles:Q,options:null}}_validateStyleAst(d,g){const T=g.currentAnimateTimings;let F=g.currentTime,Q=g.currentTime;T&&Q>0&&(Q-=T.duration+T.delay),d.styles.forEach(he=>{"string"!=typeof he&&he.forEach((ye,je)=>{const Oe=g.collectedStyles.get(g.currentQuerySelector),Gt=Oe.get(je);let Qt=!0;Gt&&(Q!=F&&Q>=Gt.startTime&&F<=Gt.endTime&&(g.errors.push(function Zn(A,d,g,T,F){return new k.wOt(3010,!1)}()),Qt=!1),Q=Gt.startTime),Qt&&Oe.set(je,{startTime:Q,endTime:F}),g.options&&function tn(A,d,g){const T=d.params||{},F=pr(A);F.length&&F.forEach(Q=>{T.hasOwnProperty(Q)||g.push(function Fe(A){return new k.wOt(3001,!1)}())})}(ye,g.options,g.errors)})})}visitKeyframes(d,g){const T={type:et.Keyframes,styles:[],options:null};if(!g.currentAnimateTimings)return g.errors.push(function jn(){return new k.wOt(3011,!1)}()),T;let Q=0;const he=[];let ye=!1,je=!1,Oe=0;const Gt=d.steps.map(ai=>{const Di=this._makeStyleAst(ai,g);let Bi=null!=Di.offset?Di.offset:function xt(A){if("string"==typeof A)return null;let d=null;if(Array.isArray(A))A.forEach(g=>{if(g instanceof Map&&g.has("offset")){const T=g;d=parseFloat(T.get("offset")),T.delete("offset")}});else if(A instanceof Map&&A.has("offset")){const g=A;d=parseFloat(g.get("offset")),g.delete("offset")}return d}(Di.styles),Vi=0;return null!=Bi&&(Q++,Vi=Di.offset=Bi),je=je||Vi<0||Vi>1,ye=ye||Vi0&&Q{const Bi=or>0?Di==Ln?1:or*Di:he[Di],Vi=Bi*hn;g.currentTime=fn+nn.delay+Vi,nn.duration=Vi,this._validateStyleAst(ai,g),ai.offset=Bi,T.styles.push(ai)}),T}visitReference(d,g){return{type:et.Reference,animation:ui(this,qt(d.animation),g),options:Vn(d.options)}}visitAnimateChild(d,g){return g.depCount++,{type:et.AnimateChild,options:Vn(d.options)}}visitAnimateRef(d,g){return{type:et.AnimateRef,animation:this.visitReference(d.animation,g),options:Vn(d.options)}}visitQuery(d,g){const T=g.currentQuerySelector,F=d.options||{};g.queryCount++,g.currentQuery=d;const[Q,he]=function Te(A){const d=!!A.split(/\s*,\s*/).find(g=>":self"==g);return d&&(A=A.replace(Xo,"")),A=A.replace(/@\*/g,U).replace(/@\w+/g,g=>U+"-"+g.slice(1)).replace(/:animating/g,ee),[A,d]}(d.selector);g.currentQuerySelector=T.length?T+" "+Q:Q,Dr(g.collectedStyles,g.currentQuerySelector,new Map);const ye=ui(this,qt(d.animation),g);return g.currentQuery=null,g.currentQuerySelector=T,{type:et.Query,selector:Q,limit:F.limit||0,optional:!!F.optional,includeSelf:he,animation:ye,originalSelector:d.selector,options:Vn(d.options)}}visitStagger(d,g){g.currentQuery||g.errors.push(function nr(){return new k.wOt(3013,!1)}());const T="full"===d.timings?{duration:0,delay:0,easing:"full"}:Pe(d.timings,g.errors,!0);return{type:et.Stagger,animation:ui(this,qt(d.animation),g),timings:T,options:null}}}class Ge{constructor(d){this.errors=d,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 Vn(A){return A?(A={...A}).params&&(A.params=function de(A){return A?{...A}:null}(A.params)):A={},A}function Gi(A,d,g){return{duration:A,delay:d,easing:g}}function rr(A,d,g,T,F,Q,he=null,ye=!1){return{type:1,element:A,keyframes:d,preStyleProps:g,postStyleProps:T,duration:F,delay:Q,totalTime:F+Q,easing:he,subTimeline:ye}}class vi{constructor(){this._map=new Map}get(d){return this._map.get(d)||[]}append(d,g){let T=this._map.get(d);T||this._map.set(d,T=[]),T.push(...g)}has(d){return this._map.has(d)}clear(){this._map.clear()}}const Po=new RegExp(":enter","g"),lo=new RegExp(":leave","g");function Qo(A,d,g,T,F,Q=new Map,he=new Map,ye,je,Oe=[]){return(new ii).buildKeyframes(A,d,g,T,F,Q,he,ye,je,Oe)}class ii{buildKeyframes(d,g,T,F,Q,he,ye,je,Oe,Gt=[]){Oe=Oe||new vi;const Qt=new Yo(d,g,Oe,F,Q,Gt,[]);Qt.options=je;const or=je.delay?q(je.delay):0;Qt.currentTimeline.delayNextStep(or),Qt.currentTimeline.setStyles([he],null,Qt.errors,je),ui(this,T,Qt);const Ln=Qt.timelines.filter(fn=>fn.containsAnimation());if(Ln.length&&ye.size){let fn;for(let nn=Ln.length-1;nn>=0;nn--){const hn=Ln[nn];if(hn.element===g){fn=hn;break}}fn&&!fn.allowOnlyTimelineStyles()&&fn.setStyles([ye],null,Qt.errors,je)}return Ln.length?Ln.map(fn=>fn.buildKeyframes()):[rr(g,[],[],[],0,or,"",!1)]}visitTrigger(d,g){}visitState(d,g){}visitTransition(d,g){}visitAnimateChild(d,g){const T=g.subInstructions.get(g.element);if(T){const F=g.createSubContext(d.options),Q=g.currentTimeline.currentTime,he=this._visitSubInstructions(T,F,F.options);Q!=he&&g.transformIntoNewTimeline(he)}g.previousNode=d}visitAnimateRef(d,g){const T=g.createSubContext(d.options);T.transformIntoNewTimeline(),this._applyAnimationRefDelays([d.options,d.animation.options],g,T),this.visitReference(d.animation,T),g.transformIntoNewTimeline(T.currentTimeline.currentTime),g.previousNode=d}_applyAnimationRefDelays(d,g,T){for(const F of d){const Q=F?.delay;if(Q){const he="number"==typeof Q?Q:q(Yn(Q,F?.params??{},g.errors));T.delayNextStep(he)}}}_visitSubInstructions(d,g,T){let Q=g.currentTimeline.currentTime;const he=null!=T.duration?q(T.duration):null,ye=null!=T.delay?q(T.delay):null;return 0!==he&&d.forEach(je=>{const Oe=g.appendInstructionToTimeline(je,he,ye);Q=Math.max(Q,Oe.duration+Oe.delay)}),Q}visitReference(d,g){g.updateOptions(d.options,!0),ui(this,d.animation,g),g.previousNode=d}visitSequence(d,g){const T=g.subContextCount;let F=g;const Q=d.options;if(Q&&(Q.params||Q.delay)&&(F=g.createSubContext(Q),F.transformIntoNewTimeline(),null!=Q.delay)){F.previousNode.type==et.Style&&(F.currentTimeline.snapshotCurrentStyles(),F.previousNode=Mi);const he=q(Q.delay);F.delayNextStep(he)}d.steps.length&&(d.steps.forEach(he=>ui(this,he,F)),F.currentTimeline.applyStylesToKeyframe(),F.subContextCount>T&&F.transformIntoNewTimeline()),g.previousNode=d}visitGroup(d,g){const T=[];let F=g.currentTimeline.currentTime;const Q=d.options&&d.options.delay?q(d.options.delay):0;d.steps.forEach(he=>{const ye=g.createSubContext(d.options);Q&&ye.delayNextStep(Q),ui(this,he,ye),F=Math.max(F,ye.currentTimeline.currentTime),T.push(ye.currentTimeline)}),T.forEach(he=>g.currentTimeline.mergeTimelineCollectedStyles(he)),g.transformIntoNewTimeline(F),g.previousNode=d}_visitTiming(d,g){if(d.dynamic){const T=d.strValue;return Pe(g.params?Yn(T,g.params,g.errors):T,g.errors)}return{duration:d.duration,delay:d.delay,easing:d.easing}}visitAnimate(d,g){const T=g.currentAnimateTimings=this._visitTiming(d.timings,g),F=g.currentTimeline;T.delay&&(g.incrementTime(T.delay),F.snapshotCurrentStyles());const Q=d.style;Q.type==et.Keyframes?this.visitKeyframes(Q,g):(g.incrementTime(T.duration),this.visitStyle(Q,g),F.applyStylesToKeyframe()),g.currentAnimateTimings=null,g.previousNode=d}visitStyle(d,g){const T=g.currentTimeline,F=g.currentAnimateTimings;!F&&T.hasCurrentStyleProperties()&&T.forwardFrame();const Q=F&&F.easing||d.easing;d.isEmptyStep?T.applyEmptyStep(Q):T.setStyles(d.styles,Q,g.errors,g.options),g.previousNode=d}visitKeyframes(d,g){const T=g.currentAnimateTimings,F=g.currentTimeline.duration,Q=T.duration,ye=g.createSubContext().currentTimeline;ye.easing=T.easing,d.styles.forEach(je=>{ye.forwardTime((je.offset||0)*Q),ye.setStyles(je.styles,je.easing,g.errors,g.options),ye.applyStylesToKeyframe()}),g.currentTimeline.mergeTimelineCollectedStyles(ye),g.transformIntoNewTimeline(F+Q),g.previousNode=d}visitQuery(d,g){const T=g.currentTimeline.currentTime,F=d.options||{},Q=F.delay?q(F.delay):0;Q&&(g.previousNode.type===et.Style||0==T&&g.currentTimeline.hasCurrentStyleProperties())&&(g.currentTimeline.snapshotCurrentStyles(),g.previousNode=Mi);let he=T;const ye=g.invokeQuery(d.selector,d.originalSelector,d.limit,d.includeSelf,!!F.optional,g.errors);g.currentQueryTotal=ye.length;let je=null;ye.forEach((Oe,Gt)=>{g.currentQueryIndex=Gt;const Qt=g.createSubContext(d.options,Oe);Q&&Qt.delayNextStep(Q),Oe===g.element&&(je=Qt.currentTimeline),ui(this,d.animation,Qt),Qt.currentTimeline.applyStylesToKeyframe(),he=Math.max(he,Qt.currentTimeline.currentTime)}),g.currentQueryIndex=0,g.currentQueryTotal=0,g.transformIntoNewTimeline(he),je&&(g.currentTimeline.mergeTimelineCollectedStyles(je),g.currentTimeline.snapshotCurrentStyles()),g.previousNode=d}visitStagger(d,g){const T=g.parentContext,F=g.currentTimeline,Q=d.timings,he=Math.abs(Q.duration),ye=he*(g.currentQueryTotal-1);let je=he*g.currentQueryIndex;switch(Q.duration<0?"reverse":Q.easing){case"reverse":je=ye-je;break;case"full":je=T.currentStaggerTime}const Gt=g.currentTimeline;je&&Gt.delayNextStep(je);const Qt=Gt.currentTime;ui(this,d.animation,g),g.previousNode=d,T.currentStaggerTime=F.currentTime-Qt+(F.startTime-T.currentTimeline.startTime)}}const Mi={};class Yo{constructor(d,g,T,F,Q,he,ye,je){this._driver=d,this.element=g,this.subInstructions=T,this._enterClassName=F,this._leaveClassName=Q,this.errors=he,this.timelines=ye,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Mi,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=je||new Co(this._driver,g,0),ye.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(d,g){if(!d)return;const T=d;let F=this.options;null!=T.duration&&(F.duration=q(T.duration)),null!=T.delay&&(F.delay=q(T.delay));const Q=T.params;if(Q){let he=F.params;he||(he=this.options.params={}),Object.keys(Q).forEach(ye=>{(!g||!he.hasOwnProperty(ye))&&(he[ye]=Yn(Q[ye],he,this.errors))})}}_copyOptions(){const d={};if(this.options){const g=this.options.params;if(g){const T=d.params={};Object.keys(g).forEach(F=>{T[F]=g[F]})}}return d}createSubContext(d=null,g,T){const F=g||this.element,Q=new Yo(this._driver,F,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(F,T||0));return Q.previousNode=this.previousNode,Q.currentAnimateTimings=this.currentAnimateTimings,Q.options=this._copyOptions(),Q.updateOptions(d),Q.currentQueryIndex=this.currentQueryIndex,Q.currentQueryTotal=this.currentQueryTotal,Q.parentContext=this,this.subContextCount++,Q}transformIntoNewTimeline(d){return this.previousNode=Mi,this.currentTimeline=this.currentTimeline.fork(this.element,d),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(d,g,T){const F={duration:g??d.duration,delay:this.currentTimeline.currentTime+(T??0)+d.delay,easing:""},Q=new ho(this._driver,d.element,d.keyframes,d.preStyleProps,d.postStyleProps,F,d.stretchStartingKeyframe);return this.timelines.push(Q),F}incrementTime(d){this.currentTimeline.forwardTime(this.currentTimeline.duration+d)}delayNextStep(d){d>0&&this.currentTimeline.delayNextStep(d)}invokeQuery(d,g,T,F,Q,he){let ye=[];if(F&&ye.push(this.element),d.length>0){d=(d=d.replace(Po,"."+this._enterClassName)).replace(lo,"."+this._leaveClassName);let Oe=this._driver.query(this.element,d,1!=T);0!==T&&(Oe=T<0?Oe.slice(Oe.length+T,Oe.length):Oe.slice(0,T)),ye.push(...Oe)}return!Q&&0==ye.length&&he.push(function Xt(A){return new k.wOt(3014,!1)}()),ye}}class Co{constructor(d,g,T,F){this._driver=d,this.element=g,this.startTime=T,this._elementTimelineStylesLookup=F,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(g),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(g,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(d){const g=1===this._keyframes.size&&this._pendingStyles.size;this.duration||g?(this.forwardTime(this.currentTime+d),g&&this.snapshotCurrentStyles()):this.startTime+=d}fork(d,g){return this.applyStylesToKeyframe(),new Co(this._driver,d,g||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(d){this.applyStylesToKeyframe(),this.duration=d,this._loadKeyframe()}_updateStyle(d,g){this._localTimelineStyles.set(d,g),this._globalTimelineStyles.set(d,g),this._styleSummary.set(d,{time:this.currentTime,value:g})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(d){d&&this._previousKeyframe.set("easing",d);for(let[g,T]of this._globalTimelineStyles)this._backFill.set(g,T||ft),this._currentKeyframe.set(g,ft);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(d,g,T,F){g&&this._previousKeyframe.set("easing",g);const Q=F&&F.params||{},he=function Jo(A,d){const g=new Map;let T;return A.forEach(F=>{if("*"===F){T??=d.keys();for(let Q of T)g.set(Q,ft)}else for(let[Q,he]of F)g.set(Q,he)}),g}(d,this._globalTimelineStyles);for(let[ye,je]of he){const Oe=Yn(je,Q,T);this._pendingStyles.set(ye,Oe),this._localTimelineStyles.has(ye)||this._backFill.set(ye,this._globalTimelineStyles.get(ye)??ft),this._updateStyle(ye,Oe)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((d,g)=>{this._currentKeyframe.set(g,d)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((d,g)=>{this._currentKeyframe.has(g)||this._currentKeyframe.set(g,d)}))}snapshotCurrentStyles(){for(let[d,g]of this._localTimelineStyles)this._pendingStyles.set(d,g),this._updateStyle(d,g)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const d=[];for(let g in this._currentKeyframe)d.push(g);return d}mergeTimelineCollectedStyles(d){d._styleSummary.forEach((g,T)=>{const F=this._styleSummary.get(T);(!F||g.time>F.time)&&this._updateStyle(T,g.value)})}buildKeyframes(){this.applyStylesToKeyframe();const d=new Set,g=new Set,T=1===this._keyframes.size&&0===this.duration;let F=[];this._keyframes.forEach((ye,je)=>{const Oe=new Map([...this._backFill,...ye]);Oe.forEach((Gt,Qt)=>{"!"===Gt?d.add(Qt):Gt===ft&&g.add(Qt)}),T||Oe.set("offset",je/this.duration),F.push(Oe)});const Q=[...d.values()],he=[...g.values()];if(T){const ye=F[0],je=new Map(ye);ye.set("offset",0),je.set("offset",1),F=[ye,je]}return rr(this.element,F,Q,he,this.duration,this.startTime,this.easing,!1)}}class ho extends Co{constructor(d,g,T,F,Q,he,ye=!1){super(d,g,he.delay),this.keyframes=T,this.preStyleProps=F,this.postStyleProps=Q,this._stretchStartingKeyframe=ye,this.timings={duration:he.duration,delay:he.delay,easing:he.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let d=this.keyframes,{delay:g,duration:T,easing:F}=this.timings;if(this._stretchStartingKeyframe&&g){const Q=[],he=T+g,ye=g/he,je=new Map(d[0]);je.set("offset",0),Q.push(je);const Oe=new Map(d[0]);Oe.set("offset",Os(ye)),Q.push(Oe);const Gt=d.length-1;for(let Qt=1;Qt<=Gt;Qt++){let or=new Map(d[Qt]);const Ln=or.get("offset");or.set("offset",Os((g+Ln*T)/he)),Q.push(or)}T=he,g=0,F="",d=Q}return rr(this.element,d,this.preStyleProps,this.postStyleProps,T,g,F,!0)}}function Os(A,d=3){const g=Math.pow(10,d-1);return Math.round(A*g)/g}function Ys(A,d,g,T,F,Q,he,ye,je,Oe,Gt,Qt,or){return{type:0,element:A,triggerName:d,isRemovalTransition:F,fromState:g,fromStyles:Q,toState:T,toStyles:he,timelines:ye,queriedElements:je,preStyleProps:Oe,postStyleProps:Gt,totalTime:Qt,errors:or}}const Zo={};class di{constructor(d,g,T){this._triggerName=d,this.ast=g,this._stateStyles=T}match(d,g,T,F){return function jr(A,d,g,T,F){return A.some(Q=>Q(d,g,T,F))}(this.ast.matchers,d,g,T,F)}buildStyles(d,g,T){let F=this._stateStyles.get("*");return void 0!==d&&(F=this._stateStyles.get(d?.toString())||F),F?F.buildStyles(g,T):new Map}build(d,g,T,F,Q,he,ye,je,Oe,Gt){const Qt=[],or=this.ast.options&&this.ast.options.params||Zo,fn=this.buildStyles(T,ye&&ye.params||Zo,Qt),nn=je&&je.params||Zo,hn=this.buildStyles(F,nn,Qt),ai=new Set,Di=new Map,Bi=new Map,Vi="void"===F,Na={params:Js(nn,or),delay:this.ast.options?.delay},Ze=Gt?[]:Qo(d,g,this.ast.animation,Q,he,fn,hn,Na,Oe,Qt);let mn=0;return Ze.forEach(Ei=>{mn=Math.max(Ei.duration+Ei.delay,mn)}),Qt.length?Ys(g,this._triggerName,T,F,Vi,fn,hn,[],[],Di,Bi,mn,Qt):(Ze.forEach(Ei=>{const jo=Ei.element,sr=Dr(Di,jo,new Set);Ei.preStyleProps.forEach(Ho=>sr.add(Ho));const Wl=Dr(Bi,jo,new Set);Ei.postStyleProps.forEach(Ho=>Wl.add(Ho)),jo!==g&&ai.add(jo)}),Ys(g,this._triggerName,T,F,Vi,fn,hn,Ze,[...ai.values()],Di,Bi,mn))}}function Js(A,d){const g={...d};return Object.entries(A).forEach(([T,F])=>{null!=F&&(g[T]=F)}),g}class qo{constructor(d,g,T){this.styles=d,this.defaultParams=g,this.normalizer=T}buildStyles(d,g){const T=new Map,F=Js(d,this.defaultParams);return this.styles.styles.forEach(Q=>{"string"!=typeof Q&&Q.forEach((he,ye)=>{he&&(he=Yn(he,F,g));const je=this.normalizer.normalizePropertyName(ye,g);he=this.normalizer.normalizeStyleValue(ye,je,he,g),T.set(ye,he)})}),T}}class Hn{constructor(d,g,T){this.name=d,this.ast=g,this._normalizer=T,this.transitionFactories=[],this.states=new Map,g.states.forEach(F=>{this.states.set(F.name,new qo(F.style,F.options&&F.options.params||{},T))}),Is(this.states,"true","1"),Is(this.states,"false","0"),g.transitions.forEach(F=>{this.transitionFactories.push(new di(d,F,this.states))}),this.fallbackTransition=function xo(A,d,g){return new di(A,{type:et.Transition,animation:{type:et.Sequence,steps:[],options:null},matchers:[(he,ye)=>!0],options:null,queryCount:0,depCount:0},d)}(d,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(d,g,T,F){return this.transitionFactories.find(he=>he.match(d,g,T,F))||null}matchStyles(d,g,T){return this.fallbackTransition.buildStyles(d,g,T)}}function Is(A,d,g){A.has(d)?A.has(g)||A.set(g,A.get(d)):A.has(g)&&A.set(d,A.get(g))}const po=new vi;class es{constructor(d,g,T){this.bodyNode=d,this._driver=g,this._normalizer=T,this._animations=new Map,this._playersById=new Map,this.players=[]}register(d,g){const T=[],Q=ri(this._driver,g,T,[]);if(T.length)throw function Vr(A){return new k.wOt(3503,!1)}();this._animations.set(d,Q)}_buildPlayer(d,g,T){const F=d.element,Q=br(this._normalizer,d.keyframes,g,T);return this._driver.animate(F,Q,d.duration,d.delay,d.easing,[],!0)}create(d,g,T={}){const F=[],Q=this._animations.get(d);let he;const ye=new Map;if(Q?(he=Qo(this._driver,g,Q,We,Dt,new Map,new Map,T,po,F),he.forEach(Gt=>{const Qt=Dr(ye,Gt.element,new Map);Gt.postStyleProps.forEach(or=>Qt.set(or,null))})):(F.push(function Nr(){return new k.wOt(3300,!1)}()),he=[]),F.length)throw function wr(A){return new k.wOt(3504,!1)}();ye.forEach((Gt,Qt)=>{Gt.forEach((or,Ln)=>{Gt.set(Ln,this._driver.computeStyle(Qt,Ln,ft))})});const Oe=ar(he.map(Gt=>{const Qt=ye.get(Gt.element);return this._buildPlayer(Gt,new Map,Qt)}));return this._playersById.set(d,Oe),Oe.onDestroy(()=>this.destroy(d)),this.players.push(Oe),Oe}destroy(d){const g=this._getPlayer(d);g.destroy(),this._playersById.delete(d);const T=this.players.indexOf(g);T>=0&&this.players.splice(T,1)}_getPlayer(d){const g=this._playersById.get(d);if(!g)throw function Ee(A){return new k.wOt(3301,!1)}();return g}listen(d,g,T,F){const Q=gi(g,"","","");return fr(this._getPlayer(d),T,Q,F),()=>{}}command(d,g,T,F){if("register"==T)return void this.register(d,F[0]);if("create"==T)return void this.create(d,g,F[0]||{});const Q=this._getPlayer(d);switch(T){case"play":Q.play();break;case"pause":Q.pause();break;case"reset":Q.reset();break;case"restart":Q.restart();break;case"finish":Q.finish();break;case"init":Q.init();break;case"setPosition":Q.setPosition(parseFloat(F[0]));break;case"destroy":this.destroy(d)}}}const ts="ng-animate-queued",Ai="ng-animate-disabled",x=[],w={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},$={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ce="__ng_removed";class Vt{get params(){return this.options.params}constructor(d,g=""){this.namespaceId=g;const T=d&&d.hasOwnProperty("value");if(this.value=function pa(A){return A??null}(T?d.value:d),T){const{value:Q,...he}=d;this.options=he}else this.options={};this.options.params||(this.options.params={})}absorbOptions(d){const g=d.params;if(g){const T=this.options.params;Object.keys(g).forEach(F=>{null==T[F]&&(T[F]=g[F])})}}}const gn="void",Ki=new Vt(gn);class Fo{constructor(d,g,T){this.id=d,this.hostElement=g,this._engine=T,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+d,qi(g,this._hostClassName)}listen(d,g,T,F){if(!this._triggers.has(g))throw function Ne(A,d){return new k.wOt(3302,!1)}();if(null==T||0==T.length)throw function ne(A){return new k.wOt(3303,!1)}();if(!function gr(A){return"start"==A||"done"==A}(T))throw function be(A,d){return new k.wOt(3400,!1)}();const Q=Dr(this._elementListeners,d,[]),he={name:g,phase:T,callback:F};Q.push(he);const ye=Dr(this._engine.statesByElement,d,new Map);return ye.has(g)||(qi(d,Et),qi(d,Et+"-"+g),ye.set(g,Ki)),()=>{this._engine.afterFlush(()=>{const je=Q.indexOf(he);je>=0&&Q.splice(je,1),this._triggers.has(g)||ye.delete(g)})}}register(d,g){return!this._triggers.has(d)&&(this._triggers.set(d,g),!0)}_getTrigger(d){const g=this._triggers.get(d);if(!g)throw function ot(A){return new k.wOt(3401,!1)}();return g}trigger(d,g,T,F=!0){const Q=this._getTrigger(g),he=new To(this.id,g,d);let ye=this._engine.statesByElement.get(d);ye||(qi(d,Et),qi(d,Et+"-"+g),this._engine.statesByElement.set(d,ye=new Map));let je=ye.get(g);const Oe=new Vt(T,this.id);if(!(T&&T.hasOwnProperty("value"))&&je&&Oe.absorbOptions(je.options),ye.set(g,Oe),je||(je=Ki),Oe.value!==gn&&je.value===Oe.value){if(!function xs(A,d){const g=Object.keys(A),T=Object.keys(d);if(g.length!=T.length)return!1;for(let F=0;F{Lt(d,hn),ct(d,ai)})}return}const or=Dr(this._engine.playersByElement,d,[]);or.forEach(nn=>{nn.namespaceId==this.id&&nn.triggerName==g&&nn.queued&&nn.destroy()});let Ln=Q.matchTransition(je.value,Oe.value,d,Oe.params),fn=!1;if(!Ln){if(!F)return;Ln=Q.fallbackTransition,fn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:d,triggerName:g,transition:Ln,fromState:je,toState:Oe,player:he,isFallbackTransition:fn}),fn||(qi(d,ts),he.onStart(()=>{_s(d,ts)})),he.onDone(()=>{let nn=this.players.indexOf(he);nn>=0&&this.players.splice(nn,1);const hn=this._engine.playersByElement.get(d);if(hn){let ai=hn.indexOf(he);ai>=0&&hn.splice(ai,1)}}),this.players.push(he),or.push(he),he}deregister(d){this._triggers.delete(d),this._engine.statesByElement.forEach(g=>g.delete(d)),this._elementListeners.forEach((g,T)=>{this._elementListeners.set(T,g.filter(F=>F.name!=d))})}clearElementCache(d){this._engine.statesByElement.delete(d),this._elementListeners.delete(d);const g=this._engine.playersByElement.get(d);g&&(g.forEach(T=>T.destroy()),this._engine.playersByElement.delete(d))}_signalRemovalForInnerTriggers(d,g){const T=this._engine.driver.query(d,U,!0);T.forEach(F=>{if(F[ce])return;const Q=this._engine.fetchNamespacesByElement(F);Q.size?Q.forEach(he=>he.triggerLeaveAnimation(F,g,!1,!0)):this.clearElementCache(F)}),this._engine.afterFlushAnimationsDone(()=>T.forEach(F=>this.clearElementCache(F)))}triggerLeaveAnimation(d,g,T,F){const Q=this._engine.statesByElement.get(d),he=new Map;if(Q){const ye=[];if(Q.forEach((je,Oe)=>{if(he.set(Oe,je.value),this._triggers.has(Oe)){const Gt=this.trigger(d,Oe,gn,F);Gt&&ye.push(Gt)}}),ye.length)return this._engine.markElementAsRemoved(this.id,d,!0,g,he),T&&ar(ye).onDone(()=>this._engine.processLeaveNode(d)),!0}return!1}prepareLeaveAnimationListeners(d){const g=this._elementListeners.get(d),T=this._engine.statesByElement.get(d);if(g&&T){const F=new Set;g.forEach(Q=>{const he=Q.name;if(F.has(he))return;F.add(he);const je=this._triggers.get(he).fallbackTransition,Oe=T.get(he)||Ki,Gt=new Vt(gn),Qt=new To(this.id,he,d);this._engine.totalQueuedPlayers++,this._queue.push({element:d,triggerName:he,transition:je,fromState:Oe,toState:Gt,player:Qt,isFallbackTransition:!0})})}}removeNode(d,g){const T=this._engine;if(d.childElementCount&&this._signalRemovalForInnerTriggers(d,g),this.triggerLeaveAnimation(d,g,!0))return;let F=!1;if(T.totalAnimations){const Q=T.players.length?T.playersByQueriedElement.get(d):[];if(Q&&Q.length)F=!0;else{let he=d;for(;he=he.parentNode;)if(T.statesByElement.get(he)){F=!0;break}}}if(this.prepareLeaveAnimationListeners(d),F)T.markElementAsRemoved(this.id,d,!1,g);else{const Q=d[ce];(!Q||Q===w)&&(T.afterFlush(()=>this.clearElementCache(d)),T.destroyInnerAnimations(d),T._onRemovalComplete(d,g))}}insertNode(d,g){qi(d,this._hostClassName)}drainQueuedTransitions(d){const g=[];return this._queue.forEach(T=>{const F=T.player;if(F.destroyed)return;const Q=T.element,he=this._elementListeners.get(Q);he&&he.forEach(ye=>{if(ye.name==T.triggerName){const je=gi(Q,T.triggerName,T.fromState.value,T.toState.value);je._data=d,fr(T.player,ye.phase,je,ye.callback)}}),F.markedForDestroy?this._engine.afterFlush(()=>{F.destroy()}):g.push(T)}),this._queue=[],g.sort((T,F)=>{const Q=T.transition.ast.depCount,he=F.transition.ast.depCount;return 0==Q||0==he?Q-he:this._engine.driver.containsElement(T.element,F.element)?1:-1})}destroy(d){this.players.forEach(g=>g.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,d)}}class qr{_onRemovalComplete(d,g){this.onRemovalComplete(d,g)}constructor(d,g,T,F){this.bodyNode=d,this.driver=g,this._normalizer=T,this.scheduler=F,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=(Q,he)=>{}}get queuedPlayers(){const d=[];return this._namespaceList.forEach(g=>{g.players.forEach(T=>{T.queued&&d.push(T)})}),d}createNamespace(d,g){const T=new Fo(d,g,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,g)?this._balanceNamespaceList(T,g):(this.newHostElements.set(g,T),this.collectEnterElement(g)),this._namespaceLookup[d]=T}_balanceNamespaceList(d,g){const T=this._namespaceList,F=this.namespacesByHostElement;if(T.length-1>=0){let he=!1,ye=this.driver.getParentElement(g);for(;ye;){const je=F.get(ye);if(je){const Oe=T.indexOf(je);T.splice(Oe+1,0,d),he=!0;break}ye=this.driver.getParentElement(ye)}he||T.unshift(d)}else T.push(d);return F.set(g,d),d}register(d,g){let T=this._namespaceLookup[d];return T||(T=this.createNamespace(d,g)),T}registerTrigger(d,g,T){let F=this._namespaceLookup[d];F&&F.register(g,T)&&this.totalAnimations++}destroy(d,g){d&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const T=this._fetchNamespace(d);this.namespacesByHostElement.delete(T.hostElement);const F=this._namespaceList.indexOf(T);F>=0&&this._namespaceList.splice(F,1),T.destroy(g),delete this._namespaceLookup[d]}))}_fetchNamespace(d){return this._namespaceLookup[d]}fetchNamespacesByElement(d){const g=new Set,T=this.statesByElement.get(d);if(T)for(let F of T.values())if(F.namespaceId){const Q=this._fetchNamespace(F.namespaceId);Q&&g.add(Q)}return g}trigger(d,g,T,F){if(Rs(g)){const Q=this._fetchNamespace(d);if(Q)return Q.trigger(g,T,F),!0}return!1}insertNode(d,g,T,F){if(!Rs(g))return;const Q=g[ce];if(Q&&Q.setForRemoval){Q.setForRemoval=!1,Q.setForMove=!0;const he=this.collectedLeaveElements.indexOf(g);he>=0&&this.collectedLeaveElements.splice(he,1)}if(d){const he=this._fetchNamespace(d);he&&he.insertNode(g,T)}F&&this.collectEnterElement(g)}collectEnterElement(d){this.collectedEnterElements.push(d)}markElementAsDisabled(d,g){g?this.disabledNodes.has(d)||(this.disabledNodes.add(d),qi(d,Ai)):this.disabledNodes.has(d)&&(this.disabledNodes.delete(d),_s(d,Ai))}removeNode(d,g,T){if(Rs(g)){this.scheduler?.notify();const F=d?this._fetchNamespace(d):null;F?F.removeNode(g,T):this.markElementAsRemoved(d,g,!1,T);const Q=this.namespacesByHostElement.get(g);Q&&Q.id!==d&&Q.removeNode(g,T)}else this._onRemovalComplete(g,T)}markElementAsRemoved(d,g,T,F,Q){this.collectedLeaveElements.push(g),g[ce]={namespaceId:d,setForRemoval:F,hasAnimation:T,removedBeforeQueried:!1,previousTriggersValues:Q}}listen(d,g,T,F,Q){return Rs(g)?this._fetchNamespace(d).listen(g,T,F,Q):()=>{}}_buildInstruction(d,g,T,F,Q){return d.transition.build(this.driver,d.element,d.fromState.value,d.toState.value,T,F,d.fromState.options,d.toState.options,g,Q)}destroyInnerAnimations(d){let g=this.driver.query(d,U,!0);g.forEach(T=>this.destroyActiveAnimationsForElement(T)),0!=this.playersByQueriedElement.size&&(g=this.driver.query(d,ee,!0),g.forEach(T=>this.finishActiveQueriedAnimationOnElement(T)))}destroyActiveAnimationsForElement(d){const g=this.playersByElement.get(d);g&&g.forEach(T=>{T.queued?T.markedForDestroy=!0:T.destroy()})}finishActiveQueriedAnimationOnElement(d){const g=this.playersByQueriedElement.get(d);g&&g.forEach(T=>T.finish())}whenRenderingDone(){return new Promise(d=>{if(this.players.length)return ar(this.players).onDone(()=>d());d()})}processLeaveNode(d){const g=d[ce];if(g&&g.setForRemoval){if(d[ce]=w,g.namespaceId){this.destroyInnerAnimations(d);const T=this._fetchNamespace(g.namespaceId);T&&T.clearElementCache(d)}this._onRemovalComplete(d,g.setForRemoval)}d.classList?.contains(Ai)&&this.markElementAsDisabled(d,!1),this.driver.query(d,".ng-animate-disabled",!0).forEach(T=>{this.markElementAsDisabled(T,!1)})}flush(d=-1){let g=[];if(this.newHostElements.size&&(this.newHostElements.forEach((T,F)=>this._balanceNamespaceList(T,F)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let T=0;TT()),this._flushFns=[],this._whenQuietFns.length){const T=this._whenQuietFns;this._whenQuietFns=[],g.length?ar(g).onDone(()=>{T.forEach(F=>F())}):T.forEach(F=>F())}}reportError(d){throw function St(A){return new k.wOt(3402,!1)}()}_flushAnimations(d,g){const T=new vi,F=[],Q=new Map,he=[],ye=new Map,je=new Map,Oe=new Map,Gt=new Set;this.disabledNodes.forEach(zt=>{Gt.add(zt);const rn=this.driver.query(zt,".ng-animate-queued",!0);for(let cn=0;cn{const cn=We+nn++;fn.set(rn,cn),zt.forEach(En=>qi(En,cn))});const hn=[],ai=new Set,Di=new Set;for(let zt=0;ztai.add(En)):Di.add(rn))}const Bi=new Map,Vi=Ha(or,Array.from(ai));Vi.forEach((zt,rn)=>{const cn=Dt+nn++;Bi.set(rn,cn),zt.forEach(En=>qi(En,cn))}),d.push(()=>{Ln.forEach((zt,rn)=>{const cn=fn.get(rn);zt.forEach(En=>_s(En,cn))}),Vi.forEach((zt,rn)=>{const cn=Bi.get(rn);zt.forEach(En=>_s(En,cn))}),hn.forEach(zt=>{this.processLeaveNode(zt)})});const Na=[],Ze=[];for(let zt=this._namespaceList.length-1;zt>=0;zt--)this._namespaceList[zt].drainQueuedTransitions(g).forEach(cn=>{const En=cn.player,Er=cn.element;if(Na.push(En),this.collectedEnterElements.length){const to=Er[ce];if(to&&to.setForMove){if(to.previousTriggersValues&&to.previousTriggersValues.has(cn.triggerName)){const Hs=to.previousTriggersValues.get(cn.triggerName),mo=this.statesByElement.get(cn.element);if(mo&&mo.has(cn.triggerName)){const tl=mo.get(cn.triggerName);tl.value=Hs,mo.set(cn.triggerName,tl)}}return void En.destroy()}}const Ui=!Qt||!this.driver.containsElement(Qt,Er),Wr=Bi.get(Er),eo=fn.get(Er),ni=this._buildInstruction(cn,T,eo,Wr,Ui);if(ni.errors&&ni.errors.length)return void Ze.push(ni);if(Ui)return En.onStart(()=>Lt(Er,ni.fromStyles)),En.onDestroy(()=>ct(Er,ni.toStyles)),void F.push(En);if(cn.isFallbackTransition)return En.onStart(()=>Lt(Er,ni.fromStyles)),En.onDestroy(()=>ct(Er,ni.toStyles)),void F.push(En);const vc=[];ni.timelines.forEach(to=>{to.stretchStartingKeyframe=!0,this.disabledNodes.has(to.element)||vc.push(to)}),ni.timelines=vc,T.append(Er,ni.timelines),he.push({instruction:ni,player:En,element:Er}),ni.queriedElements.forEach(to=>Dr(ye,to,[]).push(En)),ni.preStyleProps.forEach((to,Hs)=>{if(to.size){let mo=je.get(Hs);mo||je.set(Hs,mo=new Set),to.forEach((tl,nl)=>mo.add(nl))}}),ni.postStyleProps.forEach((to,Hs)=>{let mo=Oe.get(Hs);mo||Oe.set(Hs,mo=new Set),to.forEach((tl,nl)=>mo.add(nl))})});if(Ze.length){const zt=[];Ze.forEach(rn=>{zt.push(function Wn(A,d){return new k.wOt(3505,!1)}())}),Na.forEach(rn=>rn.destroy()),this.reportError(zt)}const mn=new Map,Ei=new Map;he.forEach(zt=>{const rn=zt.element;T.has(rn)&&(Ei.set(rn,rn),this._beforeAnimationBuild(zt.player.namespaceId,zt.instruction,mn))}),F.forEach(zt=>{const rn=zt.element;this._getPreviousPlayers(rn,!1,zt.namespaceId,zt.triggerName,null).forEach(En=>{Dr(mn,rn,[]).push(En),En.destroy()})});const jo=hn.filter(zt=>Lo(zt,je,Oe)),sr=new Map;ga(sr,this.driver,Di,Oe,ft).forEach(zt=>{Lo(zt,je,Oe)&&jo.push(zt)});const Ho=new Map;Ln.forEach((zt,rn)=>{ga(Ho,this.driver,new Set(zt),je,"!")}),jo.forEach(zt=>{const rn=sr.get(zt),cn=Ho.get(zt);sr.set(zt,new Map([...rn?.entries()??[],...cn?.entries()??[]]))});const Oo=[],yl=[],ws={};he.forEach(zt=>{const{element:rn,player:cn,instruction:En}=zt;if(T.has(rn)){if(Gt.has(rn))return cn.onDestroy(()=>ct(rn,En.toStyles)),cn.disabled=!0,cn.overrideTotalTime(En.totalTime),void F.push(cn);let Er=ws;if(Ei.size>1){let Wr=rn;const eo=[];for(;Wr=Wr.parentNode;){const ni=Ei.get(Wr);if(ni){Er=ni;break}eo.push(Wr)}eo.forEach(ni=>Ei.set(ni,Er))}const Ui=this._buildAnimation(cn.namespaceId,En,mn,Q,Ho,sr);if(cn.setRealPlayer(Ui),Er===ws)Oo.push(cn);else{const Wr=this.playersByElement.get(Er);Wr&&Wr.length&&(cn.parentPlayer=ar(Wr)),F.push(cn)}}else Lt(rn,En.fromStyles),cn.onDestroy(()=>ct(rn,En.toStyles)),yl.push(cn),Gt.has(rn)&&F.push(cn)}),yl.forEach(zt=>{const rn=Q.get(zt.element);if(rn&&rn.length){const cn=ar(rn);zt.setRealPlayer(cn)}}),F.forEach(zt=>{zt.parentPlayer?zt.syncPlayerEvents(zt.parentPlayer):zt.destroy()});for(let zt=0;zt!Ui.destroyed);Er.length?ma(this,rn,Er):this.processLeaveNode(rn)}return hn.length=0,Oo.forEach(zt=>{this.players.push(zt),zt.onDone(()=>{zt.destroy();const rn=this.players.indexOf(zt);this.players.splice(rn,1)}),zt.play()}),Oo}afterFlush(d){this._flushFns.push(d)}afterFlushAnimationsDone(d){this._whenQuietFns.push(d)}_getPreviousPlayers(d,g,T,F,Q){let he=[];if(g){const ye=this.playersByQueriedElement.get(d);ye&&(he=ye)}else{const ye=this.playersByElement.get(d);if(ye){const je=!Q||Q==gn;ye.forEach(Oe=>{Oe.queued||!je&&Oe.triggerName!=F||he.push(Oe)})}}return(T||F)&&(he=he.filter(ye=>!(T&&T!=ye.namespaceId||F&&F!=ye.triggerName))),he}_beforeAnimationBuild(d,g,T){const Q=g.element,he=g.isRemovalTransition?void 0:d,ye=g.isRemovalTransition?void 0:g.triggerName;for(const je of g.timelines){const Oe=je.element,Gt=Oe!==Q,Qt=Dr(T,Oe,[]);this._getPreviousPlayers(Oe,Gt,he,ye,g.toState).forEach(Ln=>{const fn=Ln.getRealPlayer();fn.beforeDestroy&&fn.beforeDestroy(),Ln.destroy(),Qt.push(Ln)})}Lt(Q,g.fromStyles)}_buildAnimation(d,g,T,F,Q,he){const ye=g.triggerName,je=g.element,Oe=[],Gt=new Set,Qt=new Set,or=g.timelines.map(fn=>{const nn=fn.element;Gt.add(nn);const hn=nn[ce];if(hn&&hn.removedBeforeQueried)return new Cn(fn.duration,fn.delay);const ai=nn!==je,Di=function dl(A){const d=[];return Ps(A,d),d}((T.get(nn)||x).map(mn=>mn.getRealPlayer())).filter(mn=>!!mn.element&&mn.element===nn),Bi=Q.get(nn),Vi=he.get(nn),Na=br(this._normalizer,fn.keyframes,Bi,Vi),Ze=this._buildPlayer(fn,Na,Di);if(fn.subTimeline&&F&&Qt.add(nn),ai){const mn=new To(d,ye,nn);mn.setRealPlayer(Ze),Oe.push(mn)}return Ze});Oe.forEach(fn=>{Dr(this.playersByQueriedElement,fn.element,[]).push(fn),fn.onDone(()=>function Ua(A,d,g){let T=A.get(d);if(T){if(T.length){const F=T.indexOf(g);T.splice(F,1)}0==T.length&&A.delete(d)}return T}(this.playersByQueriedElement,fn.element,fn))}),Gt.forEach(fn=>qi(fn,X));const Ln=ar(or);return Ln.onDestroy(()=>{Gt.forEach(fn=>_s(fn,X)),ct(je,g.toStyles)}),Qt.forEach(fn=>{Dr(F,fn,[]).push(Ln)}),Ln}_buildPlayer(d,g,T){return g.length>0?this.driver.animate(d.element,g,d.duration,d.delay,d.easing,T):new Cn(d.duration,d.delay)}}class To{constructor(d,g,T){this.namespaceId=d,this.triggerName=g,this.element=T,this._player=new Cn,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(d){this._containsRealPlayer||(this._player=d,this._queuedCallbacks.forEach((g,T)=>{g.forEach(F=>fr(d,T,void 0,F))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(d.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(d){this.totalTime=d}syncPlayerEvents(d){const g=this._player;g.triggerCallback&&d.onStart(()=>g.triggerCallback("start")),d.onDone(()=>this.finish()),d.onDestroy(()=>this.destroy())}_queueEvent(d,g){Dr(this._queuedCallbacks,d,[]).push(g)}onDone(d){this.queued&&this._queueEvent("done",d),this._player.onDone(d)}onStart(d){this.queued&&this._queueEvent("start",d),this._player.onStart(d)}onDestroy(d){this.queued&&this._queueEvent("destroy",d),this._player.onDestroy(d)}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(d){this.queued||this._player.setPosition(d)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(d){const g=this._player;g.triggerCallback&&g.triggerCallback(d)}}function Rs(A){return A&&1===A.nodeType}function ja(A,d){const g=A.style.display;return A.style.display=d??"none",g}function ga(A,d,g,T,F){const Q=[];g.forEach(je=>Q.push(ja(je)));const he=[];T.forEach((je,Oe)=>{const Gt=new Map;je.forEach(Qt=>{const or=d.computeStyle(Oe,Qt,F);Gt.set(Qt,or),(!or||0==or.length)&&(Oe[ce]=$,he.push(Oe))}),A.set(Oe,Gt)});let ye=0;return g.forEach(je=>ja(je,Q[ye++])),he}function Ha(A,d){const g=new Map;if(A.forEach(ye=>g.set(ye,[])),0==d.length)return g;const F=new Set(d),Q=new Map;function he(ye){if(!ye)return 1;let je=Q.get(ye);if(je)return je;const Oe=ye.parentNode;return je=g.has(Oe)?Oe:F.has(Oe)?1:he(Oe),Q.set(ye,je),je}return d.forEach(ye=>{const je=he(ye);1!==je&&g.get(je).push(ye)}),g}function qi(A,d){A.classList?.add(d)}function _s(A,d){A.classList?.remove(d)}function ma(A,d,g){ar(g).onDone(()=>A.processLeaveNode(d))}function Ps(A,d){for(let g=0;gF.add(Q)):d.set(A,T),g.delete(A),!0}class Fs{constructor(d,g,T,F){this._driver=g,this._normalizer=T,this._triggerCache={},this.onRemovalComplete=(Q,he)=>{},this._transitionEngine=new qr(d.body,g,T,F),this._timelineEngine=new es(d.body,g,T),this._transitionEngine.onRemovalComplete=(Q,he)=>this.onRemovalComplete(Q,he)}registerTrigger(d,g,T,F,Q){const he=d+"-"+F;let ye=this._triggerCache[he];if(!ye){const je=[],Gt=ri(this._driver,Q,je,[]);if(je.length)throw function wn(A,d){return new k.wOt(3404,!1)}();ye=function zi(A,d,g){return new Hn(A,d,g)}(F,Gt,this._normalizer),this._triggerCache[he]=ye}this._transitionEngine.registerTrigger(g,F,ye)}register(d,g){this._transitionEngine.register(d,g)}destroy(d,g){this._transitionEngine.destroy(d,g)}onInsert(d,g,T,F){this._transitionEngine.insertNode(d,g,T,F)}onRemove(d,g,T){this._transitionEngine.removeNode(d,g,T)}disableAnimations(d,g){this._transitionEngine.markElementAsDisabled(d,g)}process(d,g,T,F){if("@"==T.charAt(0)){const[Q,he]=kt(T);this._timelineEngine.command(Q,g,he,F)}else this._transitionEngine.trigger(d,g,T,F)}listen(d,g,T,F,Q){if("@"==T.charAt(0)){const[he,ye]=kt(T);return this._timelineEngine.listen(he,g,ye,Q)}return this._transitionEngine.listen(d,g,T,F,Q)}flush(d=-1){this._transitionEngine.flush(d)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(d){this._transitionEngine.afterFlushAnimationsDone(d)}}class An{static#e=this.initialStylesByElement=new WeakMap;constructor(d,g,T){this._element=d,this._startStyles=g,this._endStyles=T,this._state=0;let F=An.initialStylesByElement.get(d);F||An.initialStylesByElement.set(d,F=new Map),this._initialStyles=F}start(){this._state<1&&(this._startStyles&&ct(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ct(this._element,this._initialStyles),this._endStyles&&(ct(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(An.initialStylesByElement.delete(this._element),this._startStyles&&(Lt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Lt(this._element,this._endStyles),this._endStyles=null),ct(this._element,this._initialStyles),this._state=3)}}function Hr(A){let d=null;return A.forEach((g,T)=>{(function Lr(A){return"display"===A||"position"===A})(T)&&(d=d||new Map,d.set(T,g))}),d}class Xi{constructor(d,g,T,F){this.element=d,this.keyframes=g,this.options=T,this._specialStyles=F,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=T.duration,this._delay=T.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(d=>d()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const d=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,d,this.options),this._finalKeyframe=d.length?d[d.length-1]:new Map;const g=()=>this._onFinish();this.domPlayer.addEventListener("finish",g),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",g)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(d){const g=[];return d.forEach(T=>{g.push(Object.fromEntries(T))}),g}_triggerWebAnimation(d,g,T){return d.animate(this._convertKeyframesToObject(g),T)}onStart(d){this._originalOnStartFns.push(d),this._onStartFns.push(d)}onDone(d){this._originalOnDoneFns.push(d),this._onDoneFns.push(d)}onDestroy(d){this._onDestroyFns.push(d)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(d=>d()),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(d=>d()),this._onDestroyFns=[])}setPosition(d){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=d*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const d=new Map;this.hasStarted()&&this._finalKeyframe.forEach((T,F)=>{"offset"!==F&&d.set(F,this._finished?T:Xs(this.element,F))}),this.currentSnapshot=d}triggerCallback(d){const g="start"===d?this._onStartFns:this._onDoneFns;g.forEach(T=>T()),g.length=0}}class oi{validateStyleProperty(d){return!0}validateAnimatableStyleProperty(d){return!0}matchesElement(d,g){return!1}containsElement(d,g){return ci(d,g)}getParentElement(d){return li(d)}query(d,g,T){return Ri(d,g,T)}computeStyle(d,g,T){return Xs(d,g)}animate(d,g,T,F,Q,he=[]){const je={duration:T,delay:F,fill:0==F?"both":"forwards"};Q&&(je.easing=Q);const Oe=new Map,Gt=he.filter(Ln=>Ln instanceof Xi);(function _i(A,d){return 0===A||0===d})(T,F)&&Gt.forEach(Ln=>{Ln.currentSnapshot.forEach((fn,nn)=>Oe.set(nn,fn))});let Qt=function Be(A){return A.length?A[0]instanceof Map?A:A.map(d=>new Map(Object.entries(d))):[]}(g).map(Ln=>new Map(Ln));Qt=function Ro(A,d,g){if(g.size&&d.length){let T=d[0],F=[];if(g.forEach((Q,he)=>{T.has(he)||F.push(he),T.set(he,Q)}),F.length)for(let Q=1;Qhe.set(ye,Xs(A,ye)))}}return d}(d,Qt,Oe);const or=function _a(A,d){let g=null,T=null;return Array.isArray(d)&&d.length?(g=Hr(d[0]),d.length>1&&(T=Hr(d[d.length-1]))):d instanceof Map&&(g=Hr(d)),g||T?new An(A,g,T):null}(d,Qt);return new Xi(d,Qt,je,or)}}const $a="@.disabled";class Wa{constructor(d,g,T,F){this.namespaceId=d,this.delegate=g,this.engine=T,this._onDestroy=F,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(d){this.delegate.destroyNode?.(d)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(d,g){return this.delegate.createElement(d,g)}createComment(d){return this.delegate.createComment(d)}createText(d){return this.delegate.createText(d)}appendChild(d,g){this.delegate.appendChild(d,g),this.engine.onInsert(this.namespaceId,g,d,!1)}insertBefore(d,g,T,F=!0){this.delegate.insertBefore(d,g,T),this.engine.onInsert(this.namespaceId,g,d,F)}removeChild(d,g,T){this.engine.onRemove(this.namespaceId,g,this.delegate)}selectRootElement(d,g){return this.delegate.selectRootElement(d,g)}parentNode(d){return this.delegate.parentNode(d)}nextSibling(d){return this.delegate.nextSibling(d)}setAttribute(d,g,T,F){this.delegate.setAttribute(d,g,T,F)}removeAttribute(d,g,T){this.delegate.removeAttribute(d,g,T)}addClass(d,g){this.delegate.addClass(d,g)}removeClass(d,g){this.delegate.removeClass(d,g)}setStyle(d,g,T,F){this.delegate.setStyle(d,g,T,F)}removeStyle(d,g,T){this.delegate.removeStyle(d,g,T)}setProperty(d,g,T){"@"==g.charAt(0)&&g==$a?this.disableAnimations(d,!!T):this.delegate.setProperty(d,g,T)}setValue(d,g){this.delegate.setValue(d,g)}listen(d,g,T){return this.delegate.listen(d,g,T)}disableAnimations(d,g){this.engine.disableAnimations(d,g)}}class qs extends Wa{constructor(d,g,T,F,Q){super(g,T,F,Q),this.factory=d,this.namespaceId=g}setProperty(d,g,T){"@"==g.charAt(0)?"."==g.charAt(1)&&g==$a?this.disableAnimations(d,T=void 0===T||!!T):this.engine.process(this.namespaceId,d,g.slice(1),T):this.delegate.setProperty(d,g,T)}listen(d,g,T){if("@"==g.charAt(0)){const F=function ns(A){switch(A){case"body":return document.body;case"document":return document;case"window":return window;default:return A}}(d);let Q=g.slice(1),he="";return"@"!=Q.charAt(0)&&([Q,he]=function Ls(A){const d=A.indexOf(".");return[A.substring(0,d),A.slice(d+1)]}(Q)),this.engine.listen(this.namespaceId,F,Q,he,ye=>{this.factory.scheduleListenerCallback(ye._data||-1,T,ye)})}return this.delegate.listen(d,g,T)}}class Ga{constructor(d,g,T){this.delegate=d,this.engine=g,this._zone=T,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,g.onRemovalComplete=(F,Q)=>{const he=Q?.parentNode(F);he&&Q.removeChild(he,F)}}createRenderer(d,g){const F=this.delegate.createRenderer(d,g);if(!d||!g?.data?.animation){const Oe=this._rendererCache;let Gt=Oe.get(F);return Gt||(Gt=new Wa("",F,this.engine,()=>Oe.delete(F)),Oe.set(F,Gt)),Gt}const Q=g.id,he=g.id+"-"+this._currentId;this._currentId++,this.engine.register(he,d);const ye=Oe=>{Array.isArray(Oe)?Oe.forEach(ye):this.engine.registerTrigger(Q,he,d,Oe.name,Oe)};return g.data.animation.forEach(ye),new qs(this,he,F,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(d,g,T){if(d>=0&&dg(T));const F=this._animationCallbacksBuffer;0==F.length&&queueMicrotask(()=>{this._zone.run(()=>{F.forEach(Q=>{const[he,ye]=Q;he(ye)}),this._animationCallbacksBuffer=[]})}),F.push([g,T])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}const za=[{provide:Wi,useFactory:function kl(){return new yn}},{provide:Fs,useClass:(()=>{class A extends Fs{constructor(g,T,F){super(g,T,F,(0,k.WQX)(k.An2,{optional:!0}))}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(T){return new(T||A)(k.KVO(i.qQ),k.KVO(Pi),k.KVO(Wi))};static#t=this.\u0275prov=k.jDH({token:A,factory:A.\u0275fac})}return A})()},{provide:k._9s,useFactory:function ya(A,d,g){return new Ga(A,d,g)},deps:[Z.B7,Fs,k.SKi]}],ba=[{provide:Pi,useFactory:()=>new oi},{provide:k.bc$,useValue:"BrowserAnimations"},...za];var co=D(3955);class is{http;prefix;suffix;constructor(d,g="/assets/i18n/",T=".json"){this.http=d,this.prefix=g,this.suffix=T}getTranslation(d){return this.http.get(`${this.prefix}${d}${this.suffix}`)}}function ta(A,d){if(1&A&&(k.j41(0,"li")(1,"h2")(2,"a",2),k.EFF(3),k.nI1(4,"translate"),k.k0s()()()),2&A){let g;const T=d.$implicit;k.R7$(2),k.Y8G("routerLink","/"+T.path),k.R7$(),k.SpI(" ",k.bMT(4,2,(null!==(g=T.name)&&void 0!==g?g:T.path)+".title")," ")}}let ks=(()=>{class A{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(T){return new(T||A)};static#t=this.\u0275cmp=k.VBU({type:A,selectors:[["bkd-home"]],standalone:!0,features:[k.aNF],decls:2,vars:1,consts:[[1,"mt-3"],[4,"ngFor","ngForOf"],[3,"routerLink"]],template:function(T,F){1&T&&(k.j41(0,"ul",0),k.DNE(1,ta,5,4,"li",1),k.k0s()),2&T&&(k.R7$(),k.Y8G("ngForOf",F.sections))},dependencies:[i.pM,oe.Wk,co.h,co.D9],changeDetection:0})}return A})(),Mr=(()=>{class A{constructor(){}static#e=this.\u0275fac=function(T){return new(T||A)};static#t=this.\u0275cmp=k.VBU({type:A,selectors:[["bkd-unauthenticated"]],standalone:!0,features:[k.aNF],decls:4,vars:3,consts:[[1,"bkd-container"],[1,"alert","alert-danger","my-3"]],template:function(T,F){1&T&&(k.j41(0,"div",0)(1,"div",1),k.EFF(2),k.nI1(3,"translate"),k.k0s()()),2&T&&(k.R7$(2),k.SpI(" ",k.bMT(3,1,"unauthenticated.message")," "))},dependencies:[co.h,co.D9],encapsulation:2})}return A})();var go=D(4599);let vs=(()=>{class A{constructor(g){this.storage=g}get isAuthenticated(){return!!this.accessToken}get accessToken(){return this.storage.getAccessToken()}static#e=this.\u0275fac=function(T){return new(T||A)(k.KVO(go.n))};static#t=this.\u0275prov=k.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();function fi(){return()=>{const A=(0,k.WQX)(vs),d=(0,k.WQX)(oe.Ix);return!!A.isAuthenticated||(d.navigate(["/unauthenticated"]),!1)}}const hi=[{path:"dashboard",canActivate:[fi()],loadChildren:()=>Promise.all([D.e(165),D.e(390),D.e(467),D.e(14),D.e(765),D.e(911),D.e(407),D.e(76),D.e(240)]).then(D.bind(D,9240)).then(A=>A.DASHBOARD_ROUTES)},{path:"presence-control",canActivate:[fi()],loadChildren:()=>Promise.all([D.e(165),D.e(390),D.e(467),D.e(14),D.e(765),D.e(911),D.e(407),D.e(811),D.e(76),D.e(891)]).then(D.bind(D,7891)).then(A=>A.PRESENCE_CONTROL_ROUTES)},{path:"open-absences",canActivate:[fi()],loadChildren:()=>Promise.all([D.e(165),D.e(467),D.e(911),D.e(76),D.e(872)]).then(D.bind(D,2357)).then(A=>A.OPEN_ABSENCES_ROUTES)},{path:"edit-absences",canActivate:[fi()],loadChildren:()=>Promise.all([D.e(165),D.e(390),D.e(467),D.e(14),D.e(765),D.e(911),D.e(407),D.e(811),D.e(656),D.e(201),D.e(76),D.e(421)]).then(D.bind(D,4421)).then(A=>A.EDIT_ABSENCES_ROUTES)},{path:"evaluate-absences",canActivate:[fi()],loadChildren:()=>Promise.all([D.e(165),D.e(390),D.e(467),D.e(14),D.e(765),D.e(911),D.e(407),D.e(656),D.e(201),D.e(769)]).then(D.bind(D,4150)).then(A=>A.EVALUATE_ABSENCES_ROUTES)},{path:"events",canActivate:[fi()],loadChildren:()=>Promise.all([D.e(165),D.e(390),D.e(467),D.e(14),D.e(765),D.e(911),D.e(407),D.e(811),D.e(76),D.e(0)]).then(D.bind(D,2e3)).then(A=>A.EVENTS_ROUTES)},{path:"my-absences",canActivate:[fi()],loadChildren:()=>Promise.all([D.e(165),D.e(390),D.e(467),D.e(811),D.e(656),D.e(76),D.e(778)]).then(D.bind(D,1419)).then(A=>A.MY_ABSENCES_ROUTES)},{path:"my-profile",canActivate:[fi()],loadChildren:()=>Promise.all([D.e(165),D.e(390),D.e(765),D.e(438)]).then(D.bind(D,9260)).then(A=>A.MY_PROFILE_ROUTES)},{path:"my-grades",canActivate:[fi()],loadChildren:()=>Promise.all([D.e(165),D.e(390),D.e(14),D.e(290)]).then(D.bind(D,2290)).then(A=>A.MY_GRADES_ROUTES)},{path:"my-settings",canActivate:[fi()],loadChildren:()=>Promise.all([D.e(76),D.e(243)]).then(D.bind(D,8319)).then(A=>A.MY_SETTINGS_ROUTES)},{path:"unauthenticated",component:Mr},{path:"",component:ks,pathMatch:"full"}];var yi=D(1803),Bs=D(5402);const Fi=function na(A,d,g){var T=A.length;return g=void 0===g?T:g,!d&&g>=T?A:function Qa(A,d,g){var T=-1,F=A.length;d<0&&(d=-d>F?0:F+d),(g=g>F?F:g)<0&&(g+=F),F=d>g?0:g-d>>>0,d>>>=0;for(var Q=Array(F);++T{class A{constructor(g,T,F){this.ngZone=g,this.translate=T,this.toastService=F}handleError(g){console.error(String(g)),g instanceof at.yz||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(T){return new(T||A)(k.KVO(k.SKi),k.KVO(co.c$),k.KVO(De.f))};static#t=this.\u0275prov=k.jDH({token:A,factory:A.\u0275fac})}return A})();const Rd={providers:[(0,oe.lh)(hi,(0,oe.GB)()),(0,at.$R)((0,at.b$)([(0,yi.U)(),function kr(){return(A,d)=>{const g=(0,k.WQX)(vs),T=(0,k.WQX)(Ce.yy);if(A.url.startsWith(T.apiUrl)&&g.accessToken){const F=A.headers.set("Authorization",`Bearer ${g.accessToken}`);return d(A.clone({headers:F}))}return d(A)}}(),function vl(){return(A,d)=>{const g=(0,k.WQX)(Ce.yy);if(!A.headers.has("X-Role-Restriction")&&g.headerRoleRestriction){const T=function el(){const A=(0,k.WQX)(oe.Ix),d=A.url?(0,mc.A$)(A.url):null;return d?Ni(d):null}();if(T&&g.headerRoleRestriction[T]){const F=A.headers.set("X-Role-Restriction",g.headerRoleRestriction[T]);return d(A.clone({headers:F}))}}return d(A)}}()])),function rs(){return(0,k.ngT)("NgEagerAnimations"),[...ba]}(),function No(){return[{provide:k.zcH,useClass:Id}]}(),(0,k.oKB)(co.h.forRoot({loader:{provide:co.Wr,useFactory:function _c(A,d){return new is(A,`${d.scriptsAndAssetsPath}/assets/locales/`,".json")},deps:[at.Qq,Ce.yy]}})),(0,Qe.O)()]};D.p=window.schulverwaltung.settings.scriptsAndAssetsPath+"/",(0,k.SmG)(),(0,i.EO)(G),(0,i.EO)(W),(0,Z.B8)(He,Rd).catch(A=>console.error(A))},3813:(qe,ie,D)=>{D.d(ie,{cy:()=>xi,AU:()=>mi,OC:()=>kt,kb:()=>ve,NW:()=>nt,pG:()=>we});var V=D(8633);function ae(Te){return function(de,Ge){return Te.map(de,function(){return Ge})}}var ve=function(Te){return{_tag:"Left",left:Te}},we=function(Te){return{_tag:"Right",right:Te}},Le=(0,V.XY)(2,function(Te,de){return kt(Te)?Te:de(Te.right)}),xe=function(Te,de){return(0,V.Fs)(Te,jt(de))},jt=function(Te){return function(de){return kt(de)?de:we(Te(de.right))}},Jt={URI:"Either",map:xe},nr=((0,V.XY)(2,ae(Jt)),function me(Te){var de=ae(Te)}(Jt),function(Te){return function(de){return kt(de)?de:kt(Te)?Te:we(de.right(Te.right))}}),kt=function(Te){return"Left"===Te._tag},mi=function(Te,de){return function(Ge){return kt(Ge)?Te(Ge.left):de(Ge.right)}},nt=(function P(Te){return function(de,Ge){return Te.chain(de,function(xt){return Te.map(Ge(xt),function(){return xt})})}}({URI:"Either",map:xe,ap:function(Te,de){return(0,V.Fs)(Te,nr(de))},chain:Le}),function(Te){return function(de){return kt(de)?Te(de.left):de}}),xi=Le},8633:(qe,ie,D)=>{function k(dt){return dt}function Re(dt,ht,Pt,$e,wt,se,te,pe,ve){switch(arguments.length){case 1:return dt;case 2:return function(){return ht(dt.apply(this,arguments))};case 3:return function(){return Pt(ht(dt.apply(this,arguments)))};case 4:return function(){return $e(Pt(ht(dt.apply(this,arguments))))};case 5:return function(){return wt($e(Pt(ht(dt.apply(this,arguments)))))};case 6:return function(){return se(wt($e(Pt(ht(dt.apply(this,arguments))))))};case 7:return function(){return te(se(wt($e(Pt(ht(dt.apply(this,arguments)))))))};case 8:return function(){return pe(te(se(wt($e(Pt(ht(dt.apply(this,arguments))))))))};case 9:return function(){return ve(pe(te(se(wt($e(Pt(ht(dt.apply(this,arguments)))))))))}}}function et(dt,ht,Pt,$e,wt,se,te,pe,ve){switch(arguments.length){case 1:return dt;case 2:return ht(dt);case 3:return Pt(ht(dt));case 4:return $e(Pt(ht(dt)));case 5:return wt($e(Pt(ht(dt))));case 6:return se(wt($e(Pt(ht(dt)))));case 7:return te(se(wt($e(Pt(ht(dt))))));case 8:return pe(te(se(wt($e(Pt(ht(dt)))))));case 9:return ve(pe(te(se(wt($e(Pt(ht(dt))))))));default:for(var we=arguments[0],Le=1;Lek,Fs:()=>et,L3:()=>Re,XY:()=>Mt});var Mt=function(dt,ht){var Pt="number"==typeof dt?function($e){return $e.length>=dt}:dt;return function(){var $e=Array.from(arguments);return Pt(arguments)?ht.apply(this,$e):function(wt){return ht.apply(void 0,function(dt,ht,Pt){if(Pt||2===arguments.length)for(var se,$e=0,wt=ht.length;$e{D.d(ie,{D_:()=>Z,E$:()=>lr,FX:()=>kn,KC:()=>Zt,NW:()=>Ee,OH:()=>ne,QZ:()=>Dr,TY:()=>Wi,V2:()=>J,Vx:()=>_n,YO:()=>Nr,Yj:()=>on,ZE:()=>ur,ZU:()=>k,ai:()=>Kn,ch:()=>sn,eu:()=>nr,g1:()=>ot,kX:()=>W,qQ:()=>oe,tB:()=>hr,zM:()=>Jt});var i=D(3813),P=function(){var U=function(X,ee){return(U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,Ae){q.__proto__=Ae}||function(q,Ae){for(var Pe in Ae)Object.prototype.hasOwnProperty.call(Ae,Pe)&&(q[Pe]=Ae[Pe])})(X,ee)};return function(X,ee){if("function"!=typeof ee&&null!==ee)throw new TypeError("Class extends value "+String(ee)+" is not a constructor or null");function q(){this.constructor=X}U(X,ee),X.prototype=null===ee?Object.create(ee):(q.prototype=ee.prototype,new q)}}(),H=function(){return H=Object.assign||function(U){for(var X,ee=1,q=arguments.length;ee")}function me(U,X,ee,q){for(var Ae=U.length,Pe=Array(Ae+1),Xe=0;Xe")}function ut(U){var X;if(wt(U)){var ee=U.value;if(on.is(ee))return(X={})[ee]=null,X}else{if(function se(U){return"KeyofType"===U._tag}(U))return U.keys;if(bt(U)){var q=U.types.map(function(Ae){return ut(Ae)});return q.some(_n.is)?void 0:Object.assign.apply(Object,G([{}],q,!1))}}}function Qe(U,X){for(var ee=Object.keys(U),q=ee.length,Ae=!1,Pe={},Xe=0;Xe0}var Mt={};function dt(U,X){for(var ee=[],q=0,Ae=U;q")),new Vr(X,function(ee){return jn.is(ee)&&ee.every(U.is)},function(ee,q){var Ae=jn.validate(ee,q);if((0,i.OC)(Ae))return Ae;for(var Pe=Ae.right,Xe=Pe.length,Be=Pe,nt=[],ct=0;ct0?V(nt):W(Be)},U.encode===Z?Z:function(ee){return ee.map(U.encode)},U)}var wr=function(U){function X(ee,q,Ae,Pe,Xe){var Be=U.call(this,ee,q,Ae,Pe)||this;return Be.props=Xe,Be._tag="InterfaceType",Be}return P(X,U),X}(k);function Ee(U,X){void 0===X&&(X=Re(U));var ee=Object.keys(U),q=ee.map(function(Pe){return U[Pe]}),Ae=ee.length;return new wr(X,function(Pe){if(vn.is(Pe)){for(var Xe=0;Xe0?V(Lt):W(ct)},Ue(q)?Z:function(Pe){for(var Xe=H({},Pe),Be=0;Be0?V(Lt):W(ct)},Ue(q)?Z:function(Pe){for(var Xe=H({},Pe),Be=0;Be0?V(Xe):W(ct?Pe:q)}return $e(X)&&Array.isArray(q)?W(q):J(q,Ae)},U.encode===Z&&X.encode===Z?function(q){return Qe(q,U)}:function(q){for(var Ae={},Pe=Object.keys(Qe(q,U)),Xe=Pe.length,Be=0;Be0){var q=ee[0],Ae=ee[1],Pe=Ae.length,Xe=function(Be){for(var nt=0;nt0?V(Xe):W(et(q,Pe))},0===U.length?Z:function(q){return et(q,U.map(function(Ae){return Ae.encode(q)}))},U)}P(function X(ee,q,Ae,Pe,Xe){var Be=U.call(this,ee,q,Ae,Pe)||this;return Be.types=Xe,Be._tag="TupleType",Be},U=k);var fr=function(U){function X(ee,q,Ae,Pe,Xe){var Be=U.call(this,ee,q,Ae,Pe)||this;return Be.type=Xe,Be._tag="ReadonlyType",Be}return P(X,U),X}(k);function hr(U,X){return void 0===X&&(X="Readonly<".concat(U.name,">")),new fr(X,U.is,U.validate,U.encode,U)}var gi=function(U){function X(ee,q,Ae,Pe,Xe){var Be=U.call(this,ee,q,Ae,Pe)||this;return Be.type=Xe,Be._tag="ReadonlyArrayType",Be}return P(X,U),X}(k);function Dr(U,X){void 0===X&&(X="ReadonlyArray<".concat(U.name,">"));var ee=Nr(U);return new gi(X,ee.is,ee.validate,ee.encode,U)}var kt=function(U,X){return function li(U,X){void 0===X&&(X=function yt(U){return te(U)?"{| ".concat(De(U.props)," |}"):function pe(U){return"PartialType"===U._tag}(U)?rt("{| ".concat(De(U.props)," |}")):"Exact<".concat(U.name,">")}(U));var ee=ft(U);return new Bt(X,U.is,function(q,Ae){var Pe=vn.validate(q,Ae);if((0,i.OC)(Pe))return Pe;var Xe=U.validate(q,Ae);return(0,i.OC)(Xe)?Xe:(0,i.pG)(mt(Xe.right,ee))},function(q){return U.encode(mt(q,ee))},U)}(Ee(U),X)},Bt=function(U){function X(ee,q,Ae,Pe,Xe){var Be=U.call(this,ee,q,Ae,Pe)||this;return Be.type=Xe,Be._tag="ExactType",Be}return P(X,U),X}(k);function ci(U,X,ee){return void 0===ee&&(ee="(".concat(U.name," | ").concat(oe(X),")")),new un(ee,function(q){return U.is(q)&&X(q)},function(q,Ae){var Pe=U.validate(q,Ae);if((0,i.OC)(Pe))return Pe;var Xe=Pe.right;return X(Xe)?W(Xe):J(Xe,Ae)},U.encode,U,X)}new(function(U){function X(){var ee=U.call(this,"Function",function(q){return"function"==typeof q},function(q,Ae){return ee.is(q)?W(q):J(q,Ae)},Z)||this;return ee._tag="FunctionType",ee}return P(X,U),X}(k)),new(function(U){function X(){var ee=U.call(this,"never",function(q){return!1},function(q,Ae){return J(q,Ae)},function(){throw new Error("cannot encode never")})||this;return ee._tag="NeverType",ee}return P(X,U),X}(k)),new(function(U){function X(){var ee=U.call(this,"any",function(q){return!0},W,Z)||this;return ee._tag="AnyType",ee}return P(X,U),X}(k)),ci(Kn,Number.isInteger,"Integer");var so=function(U){function X(ee,q,Ae,Pe,Xe,Be){var nt=U.call(this,ee,q,Ae,Pe,Xe)||this;return nt.tag=Be,nt}return P(X,U),X}(St),Wi=function(U){return[{key:"",type:U}]};new(function(U){function X(){var ee=U.call(this,"object",function(q){return null!==q&&"object"==typeof q},function(q,Ae){return ee.is(q)?W(q):J(q,Ae)},Z)||this;return ee._tag="ObjectType",ee}return P(X,U),X}(k)),function(U){P(function X(ee,q,Ae,Pe,Xe){var Be=U.call(this,ee,q,Ae,Pe)||this;return Be.props=Xe,Be._tag="StrictType",Be},U)}(k)},4412:(qe,ie,D)=>{D.d(ie,{t:()=>P});var i=D(1413);class P extends i.B{constructor(G){super(),this._value=G}get value(){return this.getValue()}_subscribe(G){const V=super._subscribe(G);return!V.closed&&G.next(this._value),V}getValue(){const{hasError:G,thrownError:V,_value:J}=this;if(G)throw V;return this._throwIfClosed(),J}next(G){super.next(this._value=G)}}},1985:(qe,ie,D)=>{D.d(ie,{c:()=>k});var i=D(7707),P=D(8359),H=D(3494),G=D(1203),V=D(1026),J=D(8071),W=D(9786);let k=(()=>{class me{constructor(Se){Se&&(this._subscribe=Se)}lift(Se){const De=new me;return De.source=this,De.operator=Se,De}subscribe(Se,De,Ue){const Re=function ae(me){return me&&me instanceof i.vU||function oe(me){return me&&(0,J.T)(me.next)&&(0,J.T)(me.error)&&(0,J.T)(me.complete)}(me)&&(0,P.Uv)(me)}(Se)?Se:new i.Ms(Se,De,Ue);return(0,W.Y)(()=>{const{operator:rt,source:_t}=this;Re.add(rt?rt.call(Re,_t):_t?this._subscribe(Re):this._trySubscribe(Re))}),Re}_trySubscribe(Se){try{return this._subscribe(Se)}catch(De){Se.error(De)}}forEach(Se,De){return new(De=Z(De))((Ue,Re)=>{const rt=new i.Ms({next:_t=>{try{Se(_t)}catch(ut){Re(ut),rt.unsubscribe()}},error:Re,complete:Ue});this.subscribe(rt)})}_subscribe(Se){var De;return null===(De=this.source)||void 0===De?void 0:De.subscribe(Se)}[H.s](){return this}pipe(...Se){return(0,G.m)(Se)(this)}toPromise(Se){return new(Se=Z(Se))((De,Ue)=>{let Re;this.subscribe(rt=>Re=rt,rt=>Ue(rt),()=>De(Re))})}}return me.create=Ce=>new me(Ce),me})();function Z(me){var Ce;return null!==(Ce=me??V.$.Promise)&&void 0!==Ce?Ce:Promise}},2771:(qe,ie,D)=>{D.d(ie,{m:()=>H});var i=D(1413),P=D(6129);class H extends i.B{constructor(V=1/0,J=1/0,W=P.U){super(),this._bufferSize=V,this._windowTime=J,this._timestampProvider=W,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=J===1/0,this._bufferSize=Math.max(1,V),this._windowTime=Math.max(1,J)}next(V){const{isStopped:J,_buffer:W,_infiniteTimeWindow:k,_timestampProvider:Z,_windowTime:oe}=this;J||(W.push(V),!k&&W.push(Z.now()+oe)),this._trimBuffer(),super.next(V)}_subscribe(V){this._throwIfClosed(),this._trimBuffer();const J=this._innerSubscribe(V),{_infiniteTimeWindow:W,_buffer:k}=this,Z=k.slice();for(let oe=0;oe{D.d(ie,{B:()=>W});var i=D(1985),P=D(8359);const G=(0,D(1853).L)(Z=>function(){Z(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var V=D(7908),J=D(9786);let W=(()=>{class Z extends i.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(ae){const me=new k(this,this);return me.operator=ae,me}_throwIfClosed(){if(this.closed)throw new G}next(ae){(0,J.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const me of this.currentObservers)me.next(ae)}})}error(ae){(0,J.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=ae;const{observers:me}=this;for(;me.length;)me.shift().error(ae)}})}complete(){(0,J.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:ae}=this;for(;ae.length;)ae.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var ae;return(null===(ae=this.observers)||void 0===ae?void 0:ae.length)>0}_trySubscribe(ae){return this._throwIfClosed(),super._trySubscribe(ae)}_subscribe(ae){return this._throwIfClosed(),this._checkFinalizedStatuses(ae),this._innerSubscribe(ae)}_innerSubscribe(ae){const{hasError:me,isStopped:Ce,observers:Se}=this;return me||Ce?P.Kn:(this.currentObservers=null,Se.push(ae),new P.yU(()=>{this.currentObservers=null,(0,V.o)(Se,ae)}))}_checkFinalizedStatuses(ae){const{hasError:me,thrownError:Ce,isStopped:Se}=this;me?ae.error(Ce):Se&&ae.complete()}asObservable(){const ae=new i.c;return ae.source=this,ae}}return Z.create=(oe,ae)=>new k(oe,ae),Z})();class k extends W{constructor(oe,ae){super(),this.destination=oe,this.source=ae}next(oe){var ae,me;null===(me=null===(ae=this.destination)||void 0===ae?void 0:ae.next)||void 0===me||me.call(ae,oe)}error(oe){var ae,me;null===(me=null===(ae=this.destination)||void 0===ae?void 0:ae.error)||void 0===me||me.call(ae,oe)}complete(){var oe,ae;null===(ae=null===(oe=this.destination)||void 0===oe?void 0:oe.complete)||void 0===ae||ae.call(oe)}_subscribe(oe){var ae,me;return null!==(me=null===(ae=this.source)||void 0===ae?void 0:ae.subscribe(oe))&&void 0!==me?me:P.Kn}}},7707:(qe,ie,D)=>{D.d(ie,{Ms:()=>Ue,vU:()=>me});var i=D(8071),P=D(8359),H=D(1026),G=D(5334),V=D(5343);const J=Z("C",void 0,void 0);function Z(Qe,He,at){return{kind:Qe,value:He,error:at}}var oe=D(9270),ae=D(9786);class me extends P.yU{constructor(He){super(),this.isStopped=!1,He?(this.destination=He,(0,P.Uv)(He)&&He.add(this)):this.destination=ut}static create(He,at,et){return new Ue(He,at,et)}next(He){this.isStopped?_t(function k(Qe){return Z("N",Qe,void 0)}(He),this):this._next(He)}error(He){this.isStopped?_t(function W(Qe){return Z("E",void 0,Qe)}(He),this):(this.isStopped=!0,this._error(He))}complete(){this.isStopped?_t(J,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(He){this.destination.next(He)}_error(He){try{this.destination.error(He)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Ce=Function.prototype.bind;function Se(Qe,He){return Ce.call(Qe,He)}class De{constructor(He){this.partialObserver=He}next(He){const{partialObserver:at}=this;if(at.next)try{at.next(He)}catch(et){Re(et)}}error(He){const{partialObserver:at}=this;if(at.error)try{at.error(He)}catch(et){Re(et)}else Re(He)}complete(){const{partialObserver:He}=this;if(He.complete)try{He.complete()}catch(at){Re(at)}}}class Ue extends me{constructor(He,at,et){let ft;if(super(),(0,i.T)(He)||!He)ft={next:He??void 0,error:at??void 0,complete:et??void 0};else{let mt;this&&H.$.useDeprecatedNextContext?(mt=Object.create(He),mt.unsubscribe=()=>this.unsubscribe(),ft={next:He.next&&Se(He.next,mt),error:He.error&&Se(He.error,mt),complete:He.complete&&Se(He.complete,mt)}):ft=He}this.destination=new De(ft)}}function Re(Qe){H.$.useDeprecatedSynchronousErrorHandling?(0,ae.l)(Qe):(0,G.m)(Qe)}function _t(Qe,He){const{onStoppedNotification:at}=H.$;at&&oe.f.setTimeout(()=>at(Qe,He))}const ut={closed:!0,next:V.l,error:function rt(Qe){throw Qe},complete:V.l}},8359:(qe,ie,D)=>{D.d(ie,{Kn:()=>J,yU:()=>V,Uv:()=>W});var i=D(8071);const H=(0,D(1853).L)(Z=>function(ae){Z(this),this.message=ae?`${ae.length} errors occurred during unsubscription:\n${ae.map((me,Ce)=>`${Ce+1}) ${me.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=ae});var G=D(7908);class V{constructor(oe){this.initialTeardown=oe,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let oe;if(!this.closed){this.closed=!0;const{_parentage:ae}=this;if(ae)if(this._parentage=null,Array.isArray(ae))for(const Se of ae)Se.remove(this);else ae.remove(this);const{initialTeardown:me}=this;if((0,i.T)(me))try{me()}catch(Se){oe=Se instanceof H?Se.errors:[Se]}const{_finalizers:Ce}=this;if(Ce){this._finalizers=null;for(const Se of Ce)try{k(Se)}catch(De){oe=oe??[],De instanceof H?oe=[...oe,...De.errors]:oe.push(De)}}if(oe)throw new H(oe)}}add(oe){var ae;if(oe&&oe!==this)if(this.closed)k(oe);else{if(oe instanceof V){if(oe.closed||oe._hasParent(this))return;oe._addParent(this)}(this._finalizers=null!==(ae=this._finalizers)&&void 0!==ae?ae:[]).push(oe)}}_hasParent(oe){const{_parentage:ae}=this;return ae===oe||Array.isArray(ae)&&ae.includes(oe)}_addParent(oe){const{_parentage:ae}=this;this._parentage=Array.isArray(ae)?(ae.push(oe),ae):ae?[ae,oe]:oe}_removeParent(oe){const{_parentage:ae}=this;ae===oe?this._parentage=null:Array.isArray(ae)&&(0,G.o)(ae,oe)}remove(oe){const{_finalizers:ae}=this;ae&&(0,G.o)(ae,oe),oe instanceof V&&oe._removeParent(this)}}V.EMPTY=(()=>{const Z=new V;return Z.closed=!0,Z})();const J=V.EMPTY;function W(Z){return Z instanceof V||Z&&"closed"in Z&&(0,i.T)(Z.remove)&&(0,i.T)(Z.add)&&(0,i.T)(Z.unsubscribe)}function k(Z){(0,i.T)(Z)?Z():Z.unsubscribe()}},1026:(qe,ie,D)=>{D.d(ie,{$:()=>i});const i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4572:(qe,ie,D)=>{D.d(ie,{z:()=>oe});var i=D(1985),P=D(3073),H=D(6648),G=D(3669),V=D(6450),J=D(9326),W=D(8496),k=D(4360),Z=D(5225);function oe(...Ce){const Se=(0,J.lI)(Ce),De=(0,J.ms)(Ce),{args:Ue,keys:Re}=(0,P.D)(Ce);if(0===Ue.length)return(0,H.H)([],Se);const rt=new i.c(function ae(Ce,Se,De=G.D){return Ue=>{me(Se,()=>{const{length:Re}=Ce,rt=new Array(Re);let _t=Re,ut=Re;for(let Qe=0;Qe{const He=(0,H.H)(Ce[Qe],Se);let at=!1;He.subscribe((0,k._)(Ue,et=>{rt[Qe]=et,at||(at=!0,ut--),ut||Ue.next(De(rt.slice()))},()=>{--_t||Ue.complete()}))},Ue)},Ue)}}(Ue,Se,Re?_t=>(0,W.e)(Re,_t):G.D));return De?rt.pipe((0,V.I)(De)):rt}function me(Ce,Se,De){Ce?(0,Z.N)(De,Ce,Se):Se()}},8793:(qe,ie,D)=>{D.d(ie,{x:()=>V});var i=D(6365),H=D(9326),G=D(6648);function V(...J){return function P(){return(0,i.U)(1)}()((0,G.H)(J,(0,H.lI)(J)))}},9030:(qe,ie,D)=>{D.d(ie,{v:()=>H});var i=D(1985),P=D(8750);function H(G){return new i.c(V=>{(0,P.Tg)(G()).subscribe(V)})}},983:(qe,ie,D)=>{D.d(ie,{w:()=>P});const P=new(D(1985).c)(V=>V.complete())},7468:(qe,ie,D)=>{D.d(ie,{p:()=>k});var i=D(1985),P=D(3073),H=D(8750),G=D(9326),V=D(4360),J=D(6450),W=D(8496);function k(...Z){const oe=(0,G.ms)(Z),{args:ae,keys:me}=(0,P.D)(Z),Ce=new i.c(Se=>{const{length:De}=ae;if(!De)return void Se.complete();const Ue=new Array(De);let Re=De,rt=De;for(let _t=0;_t{ut||(ut=!0,rt--),Ue[_t]=Qe},()=>Re--,void 0,()=>{(!Re||!ut)&&(rt||Se.next(me?(0,W.e)(me,Ue):Ue),Se.complete())}))}});return oe?Ce.pipe((0,J.I)(oe)):Ce}},6648:(qe,ie,D)=>{D.d(ie,{H:()=>et});var i=D(8750),P=D(5225),H=D(9974),G=D(4360);function V(ft,mt=0){return(0,H.N)((yt,vt)=>{yt.subscribe((0,G._)(vt,Mt=>(0,P.N)(vt,ft,()=>vt.next(Mt),mt),()=>(0,P.N)(vt,ft,()=>vt.complete(),mt),Mt=>(0,P.N)(vt,ft,()=>vt.error(Mt),mt)))})}function J(ft,mt=0){return(0,H.N)((yt,vt)=>{vt.add(ft.schedule(()=>yt.subscribe(vt),mt))})}var Z=D(1985),ae=D(4761),me=D(8071);function Se(ft,mt){if(!ft)throw new Error("Iterable cannot be null");return new Z.c(yt=>{(0,P.N)(yt,mt,()=>{const vt=ft[Symbol.asyncIterator]();(0,P.N)(yt,mt,()=>{vt.next().then(Mt=>{Mt.done?yt.complete():yt.next(Mt.value)})},0,!0)})})}var De=D(5055),Ue=D(9858),Re=D(7441),rt=D(5397),_t=D(7953),ut=D(591),Qe=D(5196);function et(ft,mt){return mt?function at(ft,mt){if(null!=ft){if((0,De.l)(ft))return function W(ft,mt){return(0,i.Tg)(ft).pipe(J(mt),V(mt))}(ft,mt);if((0,Re.X)(ft))return function oe(ft,mt){return new Z.c(yt=>{let vt=0;return mt.schedule(function(){vt===ft.length?yt.complete():(yt.next(ft[vt++]),yt.closed||this.schedule())})})}(ft,mt);if((0,Ue.y)(ft))return function k(ft,mt){return(0,i.Tg)(ft).pipe(J(mt),V(mt))}(ft,mt);if((0,_t.T)(ft))return Se(ft,mt);if((0,rt.x)(ft))return function Ce(ft,mt){return new Z.c(yt=>{let vt;return(0,P.N)(yt,mt,()=>{vt=ft[ae.l](),(0,P.N)(yt,mt,()=>{let Mt,dt;try{({value:Mt,done:dt}=vt.next())}catch(ht){return void yt.error(ht)}dt?yt.complete():yt.next(Mt)},0,!0)}),()=>(0,me.T)(vt?.return)&&vt.return()})}(ft,mt);if((0,Qe.U)(ft))return function He(ft,mt){return Se((0,Qe.C)(ft),mt)}(ft,mt)}throw(0,ut.L)(ft)}(ft,mt):(0,i.Tg)(ft)}},3726:(qe,ie,D)=>{D.d(ie,{R:()=>oe});var i=D(8750),P=D(1985),H=D(1397),G=D(7441),V=D(8071),J=D(6450);const W=["addListener","removeListener"],k=["addEventListener","removeEventListener"],Z=["on","off"];function oe(De,Ue,Re,rt){if((0,V.T)(Re)&&(rt=Re,Re=void 0),rt)return oe(De,Ue,Re).pipe((0,J.I)(rt));const[_t,ut]=function Se(De){return(0,V.T)(De.addEventListener)&&(0,V.T)(De.removeEventListener)}(De)?k.map(Qe=>He=>De[Qe](Ue,He,Re)):function me(De){return(0,V.T)(De.addListener)&&(0,V.T)(De.removeListener)}(De)?W.map(ae(De,Ue)):function Ce(De){return(0,V.T)(De.on)&&(0,V.T)(De.off)}(De)?Z.map(ae(De,Ue)):[];if(!_t&&(0,G.X)(De))return(0,H.Z)(Qe=>oe(Qe,Ue,Re))((0,i.Tg)(De));if(!_t)throw new TypeError("Invalid event target");return new P.c(Qe=>{const He=(...at)=>Qe.next(1ut(He)})}function ae(De,Ue){return Re=>rt=>De[Re](Ue,rt)}},8750:(qe,ie,D)=>{D.d(ie,{Tg:()=>Ce});var i=D(1635),P=D(7441),H=D(9858),G=D(1985),V=D(5055),J=D(7953),W=D(591),k=D(5397),Z=D(5196),oe=D(8071),ae=D(5334),me=D(3494);function Ce(Qe){if(Qe instanceof G.c)return Qe;if(null!=Qe){if((0,V.l)(Qe))return function Se(Qe){return new G.c(He=>{const at=Qe[me.s]();if((0,oe.T)(at.subscribe))return at.subscribe(He);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Qe);if((0,P.X)(Qe))return function De(Qe){return new G.c(He=>{for(let at=0;at{Qe.then(at=>{He.closed||(He.next(at),He.complete())},at=>He.error(at)).then(null,ae.m)})}(Qe);if((0,J.T)(Qe))return rt(Qe);if((0,k.x)(Qe))return function Re(Qe){return new G.c(He=>{for(const at of Qe)if(He.next(at),He.closed)return;He.complete()})}(Qe);if((0,Z.U)(Qe))return function _t(Qe){return rt((0,Z.C)(Qe))}(Qe)}throw(0,W.L)(Qe)}function rt(Qe){return new G.c(He=>{(function ut(Qe,He){var at,et,ft,mt;return(0,i.sH)(this,void 0,void 0,function*(){try{for(at=(0,i.xN)(Qe);!(et=yield at.next()).done;)if(He.next(et.value),He.closed)return}catch(yt){ft={error:yt}}finally{try{et&&!et.done&&(mt=at.return)&&(yield mt.call(at))}finally{if(ft)throw ft.error}}He.complete()})})(Qe,He).catch(at=>He.error(at))})}},7786:(qe,ie,D)=>{D.d(ie,{h:()=>J});var i=D(6365),P=D(8750),H=D(983),G=D(9326),V=D(6648);function J(...W){const k=(0,G.lI)(W),Z=(0,G.R0)(W,1/0),oe=W;return oe.length?1===oe.length?(0,P.Tg)(oe[0]):(0,i.U)(Z)((0,V.H)(oe,k)):H.w}},7673:(qe,ie,D)=>{D.d(ie,{of:()=>H});var i=D(9326),P=D(6648);function H(...G){const V=(0,i.lI)(G);return(0,P.H)(G,V)}},8810:(qe,ie,D)=>{D.d(ie,{$:()=>H});var i=D(1985),P=D(8071);function H(G,V){const J=(0,P.T)(G)?G:()=>G,W=k=>k.error(J());return new i.c(V?k=>V.schedule(W,0,k):W)}},1584:(qe,ie,D)=>{D.d(ie,{O:()=>V});var i=D(1985),P=D(3236),H=D(9470);function V(J=0,W,k=P.b){let Z=-1;return null!=W&&((0,H.m)(W)?k=W:Z=W),new i.c(oe=>{let ae=function G(J){return J instanceof Date&&!isNaN(J)}(J)?+J-k.now():J;ae<0&&(ae=0);let me=0;return k.schedule(function(){oe.closed||(oe.next(me++),0<=Z?this.schedule(void 0,Z):oe.complete())},ae)})}},4360:(qe,ie,D)=>{D.d(ie,{_:()=>P});var i=D(7707);function P(G,V,J,W,k){return new H(G,V,J,W,k)}class H extends i.vU{constructor(V,J,W,k,Z,oe){super(V),this.onFinalize=Z,this.shouldUnsubscribe=oe,this._next=J?function(ae){try{J(ae)}catch(me){V.error(me)}}:super._next,this._error=k?function(ae){try{k(ae)}catch(me){V.error(me)}finally{this.unsubscribe()}}:super._error,this._complete=W?function(){try{W()}catch(ae){V.error(ae)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var V;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:J}=this;super.unsubscribe(),!J&&(null===(V=this.onFinalize)||void 0===V||V.call(this))}}}},9437:(qe,ie,D)=>{D.d(ie,{W:()=>G});var i=D(8750),P=D(4360),H=D(9974);function G(V){return(0,H.N)((J,W)=>{let oe,k=null,Z=!1;k=J.subscribe((0,P._)(W,void 0,void 0,ae=>{oe=(0,i.Tg)(V(ae,G(V)(J))),k?(k.unsubscribe(),k=null,oe.subscribe(W)):Z=!0})),Z&&(k.unsubscribe(),k=null,oe.subscribe(W))})}},274:(qe,ie,D)=>{D.d(ie,{H:()=>H});var i=D(1397),P=D(8071);function H(G,V){return(0,P.T)(V)?(0,i.Z)(G,V,1):(0,i.Z)(G,1)}},9901:(qe,ie,D)=>{D.d(ie,{U:()=>H});var i=D(9974),P=D(4360);function H(G){return(0,i.N)((V,J)=>{let W=!1;V.subscribe((0,P._)(J,k=>{W=!0,J.next(k)},()=>{W||J.next(G),J.complete()}))})}},3294:(qe,ie,D)=>{D.d(ie,{F:()=>G});var i=D(3669),P=D(9974),H=D(4360);function G(J,W=i.D){return J=J??V,(0,P.N)((k,Z)=>{let oe,ae=!0;k.subscribe((0,H._)(Z,me=>{const Ce=W(me);(ae||!J(oe,Ce))&&(ae=!1,oe=Ce,Z.next(me))}))})}function V(J,W){return J===W}},5964:(qe,ie,D)=>{D.d(ie,{p:()=>H});var i=D(9974),P=D(4360);function H(G,V){return(0,i.N)((J,W)=>{let k=0;J.subscribe((0,P._)(W,Z=>G.call(V,Z,k++)&&W.next(Z)))})}},980:(qe,ie,D)=>{D.d(ie,{j:()=>P});var i=D(9974);function P(H){return(0,i.N)((G,V)=>{try{G.subscribe(V)}finally{V.add(H)}})}},6354:(qe,ie,D)=>{D.d(ie,{T:()=>H});var i=D(9974),P=D(4360);function H(G,V){return(0,i.N)((J,W)=>{let k=0;J.subscribe((0,P._)(W,Z=>{W.next(G.call(V,Z,k++))}))})}},3703:(qe,ie,D)=>{D.d(ie,{u:()=>P});var i=D(6354);function P(H){return(0,i.T)(()=>H)}},6365:(qe,ie,D)=>{D.d(ie,{U:()=>H});var i=D(1397),P=D(3669);function H(G=1/0){return(0,i.Z)(P.D,G)}},1397:(qe,ie,D)=>{D.d(ie,{Z:()=>k});var i=D(6354),P=D(8750),H=D(9974),G=D(5225),V=D(4360),W=D(8071);function k(Z,oe,ae=1/0){return(0,W.T)(oe)?k((me,Ce)=>(0,i.T)((Se,De)=>oe(me,Se,Ce,De))((0,P.Tg)(Z(me,Ce))),ae):("number"==typeof oe&&(ae=oe),(0,H.N)((me,Ce)=>function J(Z,oe,ae,me,Ce,Se,De,Ue){const Re=[];let rt=0,_t=0,ut=!1;const Qe=()=>{ut&&!Re.length&&!rt&&oe.complete()},He=et=>rt{Se&&oe.next(et),rt++;let ft=!1;(0,P.Tg)(ae(et,_t++)).subscribe((0,V._)(oe,mt=>{Ce?.(mt),Se?He(mt):oe.next(mt)},()=>{ft=!0},void 0,()=>{if(ft)try{for(rt--;Re.length&&rtat(mt)):at(mt)}Qe()}catch(mt){oe.error(mt)}}))};return Z.subscribe((0,V._)(oe,He,()=>{ut=!0,Qe()})),()=>{Ue?.()}}(me,Ce,Z,ae)))}},2816:(qe,ie,D)=>{D.d(ie,{S:()=>G});var i=D(9974),P=D(4360);function G(V,J){return(0,i.N)(function H(V,J,W,k,Z){return(oe,ae)=>{let me=W,Ce=J,Se=0;oe.subscribe((0,P._)(ae,De=>{const Ue=Se++;Ce=me?V(Ce,De,Ue):(me=!0,De),k&&ae.next(Ce)},Z&&(()=>{me&&ae.next(Ce),ae.complete()})))}}(V,J,arguments.length>=2,!0))}},7647:(qe,ie,D)=>{D.d(ie,{u:()=>V});var i=D(8750),P=D(1413),H=D(7707),G=D(9974);function V(W={}){const{connector:k=(()=>new P.B),resetOnError:Z=!0,resetOnComplete:oe=!0,resetOnRefCountZero:ae=!0}=W;return me=>{let Ce,Se,De,Ue=0,Re=!1,rt=!1;const _t=()=>{Se?.unsubscribe(),Se=void 0},ut=()=>{_t(),Ce=De=void 0,Re=rt=!1},Qe=()=>{const He=Ce;ut(),He?.unsubscribe()};return(0,G.N)((He,at)=>{Ue++,!rt&&!Re&&_t();const et=De=De??k();at.add(()=>{Ue--,0===Ue&&!rt&&!Re&&(Se=J(Qe,ae))}),et.subscribe(at),!Ce&&Ue>0&&(Ce=new H.Ms({next:ft=>et.next(ft),error:ft=>{rt=!0,_t(),Se=J(ut,Z,ft),et.error(ft)},complete:()=>{Re=!0,_t(),Se=J(ut,oe),et.complete()}}),(0,i.Tg)(He).subscribe(Ce))})(me)}}function J(W,k,...Z){if(!0===k)return void W();if(!1===k)return;const oe=new H.Ms({next:()=>{oe.unsubscribe(),W()}});return(0,i.Tg)(k(...Z)).subscribe(oe)}},4668:(qe,ie,D)=>{D.d(ie,{t:()=>H});var i=D(2771),P=D(7647);function H(G,V,J){let W,k=!1;return G&&"object"==typeof G?({bufferSize:W=1/0,windowTime:V=1/0,refCount:k=!1,scheduler:J}=G):W=G??1/0,(0,P.u)({connector:()=>new i.m(W,V,J),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:k})}},5245:(qe,ie,D)=>{D.d(ie,{i:()=>P});var i=D(5964);function P(H){return(0,i.p)((G,V)=>H<=V)}},9172:(qe,ie,D)=>{D.d(ie,{Z:()=>G});var i=D(8793),P=D(9326),H=D(9974);function G(...V){const J=(0,P.lI)(V);return(0,H.N)((W,k)=>{(J?(0,i.x)(V,W,J):(0,i.x)(V,W)).subscribe(k)})}},5558:(qe,ie,D)=>{D.d(ie,{n:()=>G});var i=D(8750),P=D(9974),H=D(4360);function G(V,J){return(0,P.N)((W,k)=>{let Z=null,oe=0,ae=!1;const me=()=>ae&&!Z&&k.complete();W.subscribe((0,H._)(k,Ce=>{Z?.unsubscribe();let Se=0;const De=oe++;(0,i.Tg)(V(Ce,De)).subscribe(Z=(0,H._)(k,Ue=>k.next(J?J(Ce,Ue,De,Se++):Ue),()=>{Z=null,me()}))},()=>{ae=!0,me()}))})}},6697:(qe,ie,D)=>{D.d(ie,{s:()=>G});var i=D(983),P=D(9974),H=D(4360);function G(V){return V<=0?()=>i.w:(0,P.N)((J,W)=>{let k=0;J.subscribe((0,H._)(W,Z=>{++k<=V&&(W.next(Z),V<=k&&W.complete())}))})}},6977:(qe,ie,D)=>{D.d(ie,{Q:()=>V});var i=D(9974),P=D(4360),H=D(8750),G=D(5343);function V(J){return(0,i.N)((W,k)=>{(0,H.Tg)(J).subscribe((0,P._)(k,()=>k.complete(),G.l)),!k.closed&&W.subscribe(k)})}},8141:(qe,ie,D)=>{D.d(ie,{M:()=>V});var i=D(8071),P=D(9974),H=D(4360),G=D(3669);function V(J,W,k){const Z=(0,i.T)(J)||W||k?{next:J,error:W,complete:k}:J;return Z?(0,P.N)((oe,ae)=>{var me;null===(me=Z.subscribe)||void 0===me||me.call(Z);let Ce=!0;oe.subscribe((0,H._)(ae,Se=>{var De;null===(De=Z.next)||void 0===De||De.call(Z,Se),ae.next(Se)},()=>{var Se;Ce=!1,null===(Se=Z.complete)||void 0===Se||Se.call(Z),ae.complete()},Se=>{var De;Ce=!1,null===(De=Z.error)||void 0===De||De.call(Z,Se),ae.error(Se)},()=>{var Se,De;Ce&&(null===(Se=Z.unsubscribe)||void 0===Se||Se.call(Z)),null===(De=Z.finalize)||void 0===De||De.call(Z)}))}):G.D}},3993:(qe,ie,D)=>{D.d(ie,{E:()=>W});var i=D(9974),P=D(4360),H=D(8750),G=D(3669),V=D(5343),J=D(9326);function W(...k){const Z=(0,J.ms)(k);return(0,i.N)((oe,ae)=>{const me=k.length,Ce=new Array(me);let Se=k.map(()=>!1),De=!1;for(let Ue=0;Ue{Ce[Ue]=Re,!De&&!Se[Ue]&&(Se[Ue]=!0,(De=Se.every(G.D))&&(Se=null))},V.l));oe.subscribe((0,P._)(ae,Ue=>{if(De){const Re=[Ue,...Ce];ae.next(Z?Z(...Re):Re)}}))})}},6780:(qe,ie,D)=>{D.d(ie,{R:()=>V});var i=D(8359);class P extends i.yU{constructor(W,k){super()}schedule(W,k=0){return this}}const H={setInterval(J,W,...k){const{delegate:Z}=H;return Z?.setInterval?Z.setInterval(J,W,...k):setInterval(J,W,...k)},clearInterval(J){const{delegate:W}=H;return(W?.clearInterval||clearInterval)(J)},delegate:void 0};var G=D(7908);class V extends P{constructor(W,k){super(W,k),this.scheduler=W,this.work=k,this.pending=!1}schedule(W,k=0){var Z;if(this.closed)return this;this.state=W;const oe=this.id,ae=this.scheduler;return null!=oe&&(this.id=this.recycleAsyncId(ae,oe,k)),this.pending=!0,this.delay=k,this.id=null!==(Z=this.id)&&void 0!==Z?Z:this.requestAsyncId(ae,this.id,k),this}requestAsyncId(W,k,Z=0){return H.setInterval(W.flush.bind(W,this),Z)}recycleAsyncId(W,k,Z=0){if(null!=Z&&this.delay===Z&&!1===this.pending)return k;null!=k&&H.clearInterval(k)}execute(W,k){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Z=this._execute(W,k);if(Z)return Z;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(W,k){let oe,Z=!1;try{this.work(W)}catch(ae){Z=!0,oe=ae||new Error("Scheduled action threw falsy error")}if(Z)return this.unsubscribe(),oe}unsubscribe(){if(!this.closed){const{id:W,scheduler:k}=this,{actions:Z}=k;this.work=this.state=this.scheduler=null,this.pending=!1,(0,G.o)(Z,this),null!=W&&(this.id=this.recycleAsyncId(k,W,null)),this.delay=null,super.unsubscribe()}}}},9687:(qe,ie,D)=>{D.d(ie,{q:()=>H});var i=D(6129);class P{constructor(V,J=P.now){this.schedulerActionCtor=V,this.now=J}schedule(V,J=0,W){return new this.schedulerActionCtor(this,V).schedule(W,J)}}P.now=i.U.now;class H extends P{constructor(V,J=P.now){super(V,J),this.actions=[],this._active=!1}flush(V){const{actions:J}=this;if(this._active)return void J.push(V);let W;this._active=!0;do{if(W=V.execute(V.state,V.delay))break}while(V=J.shift());if(this._active=!1,W){for(;V=J.shift();)V.unsubscribe();throw W}}}},3236:(qe,ie,D)=>{D.d(ie,{E:()=>H,b:()=>G});var i=D(6780);const H=new(D(9687).q)(i.R),G=H},6129:(qe,ie,D)=>{D.d(ie,{U:()=>i});const i={now:()=>(i.delegate||Date).now(),delegate:void 0}},9270:(qe,ie,D)=>{D.d(ie,{f:()=>i});const i={setTimeout(P,H,...G){const{delegate:V}=i;return V?.setTimeout?V.setTimeout(P,H,...G):setTimeout(P,H,...G)},clearTimeout(P){const{delegate:H}=i;return(H?.clearTimeout||clearTimeout)(P)},delegate:void 0}},4761:(qe,ie,D)=>{D.d(ie,{l:()=>P});const P=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(qe,ie,D)=>{D.d(ie,{s:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9326:(qe,ie,D)=>{D.d(ie,{R0:()=>J,lI:()=>V,ms:()=>G});var i=D(8071),P=D(9470);function H(W){return W[W.length-1]}function G(W){return(0,i.T)(H(W))?W.pop():void 0}function V(W){return(0,P.m)(H(W))?W.pop():void 0}function J(W,k){return"number"==typeof H(W)?W.pop():k}},3073:(qe,ie,D)=>{D.d(ie,{D:()=>V});const{isArray:i}=Array,{getPrototypeOf:P,prototype:H,keys:G}=Object;function V(W){if(1===W.length){const k=W[0];if(i(k))return{args:k,keys:null};if(function J(W){return W&&"object"==typeof W&&P(W)===H}(k)){const Z=G(k);return{args:Z.map(oe=>k[oe]),keys:Z}}}return{args:W,keys:null}}},7908:(qe,ie,D)=>{function i(P,H){if(P){const G=P.indexOf(H);0<=G&&P.splice(G,1)}}D.d(ie,{o:()=>i})},1853:(qe,ie,D)=>{function i(P){const G=P(V=>{Error.call(V),V.stack=(new Error).stack});return G.prototype=Object.create(Error.prototype),G.prototype.constructor=G,G}D.d(ie,{L:()=>i})},8496:(qe,ie,D)=>{function i(P,H){return P.reduce((G,V,J)=>(G[V]=H[J],G),{})}D.d(ie,{e:()=>i})},9786:(qe,ie,D)=>{D.d(ie,{Y:()=>H,l:()=>G});var i=D(1026);let P=null;function H(V){if(i.$.useDeprecatedSynchronousErrorHandling){const J=!P;if(J&&(P={errorThrown:!1,error:null}),V(),J){const{errorThrown:W,error:k}=P;if(P=null,W)throw k}}else V()}function G(V){i.$.useDeprecatedSynchronousErrorHandling&&P&&(P.errorThrown=!0,P.error=V)}},5225:(qe,ie,D)=>{function i(P,H,G,V=0,J=!1){const W=H.schedule(function(){G(),J?P.add(this.schedule(null,V)):this.unsubscribe()},V);if(P.add(W),!J)return W}D.d(ie,{N:()=>i})},3669:(qe,ie,D)=>{function i(P){return P}D.d(ie,{D:()=>i})},7441:(qe,ie,D)=>{D.d(ie,{X:()=>i});const i=P=>P&&"number"==typeof P.length&&"function"!=typeof P},7953:(qe,ie,D)=>{D.d(ie,{T:()=>P});var i=D(8071);function P(H){return Symbol.asyncIterator&&(0,i.T)(H?.[Symbol.asyncIterator])}},8071:(qe,ie,D)=>{function i(P){return"function"==typeof P}D.d(ie,{T:()=>i})},5055:(qe,ie,D)=>{D.d(ie,{l:()=>H});var i=D(3494),P=D(8071);function H(G){return(0,P.T)(G[i.s])}},5397:(qe,ie,D)=>{D.d(ie,{x:()=>H});var i=D(4761),P=D(8071);function H(G){return(0,P.T)(G?.[i.l])}},4402:(qe,ie,D)=>{D.d(ie,{A:()=>H});var i=D(1985),P=D(8071);function H(G){return!!G&&(G instanceof i.c||(0,P.T)(G.lift)&&(0,P.T)(G.subscribe))}},9858:(qe,ie,D)=>{D.d(ie,{y:()=>P});var i=D(8071);function P(H){return(0,i.T)(H?.then)}},5196:(qe,ie,D)=>{D.d(ie,{C:()=>H,U:()=>G});var i=D(1635),P=D(8071);function H(V){return(0,i.AQ)(this,arguments,function*(){const W=V.getReader();try{for(;;){const{value:k,done:Z}=yield(0,i.N3)(W.read());if(Z)return yield(0,i.N3)(void 0);yield yield(0,i.N3)(k)}}finally{W.releaseLock()}})}function G(V){return(0,P.T)(V?.getReader)}},9470:(qe,ie,D)=>{D.d(ie,{m:()=>P});var i=D(8071);function P(H){return H&&(0,i.T)(H.schedule)}},9974:(qe,ie,D)=>{D.d(ie,{N:()=>H,S:()=>P});var i=D(8071);function P(G){return(0,i.T)(G?.lift)}function H(G){return V=>{if(P(V))return V.lift(function(J){try{return G(J,this)}catch(W){this.error(W)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(qe,ie,D)=>{D.d(ie,{I:()=>G});var i=D(6354);const{isArray:P}=Array;function G(V){return(0,i.T)(J=>function H(V,J){return P(J)?V(...J):V(J)}(V,J))}},5343:(qe,ie,D)=>{function i(){}D.d(ie,{l:()=>i})},1203:(qe,ie,D)=>{D.d(ie,{F:()=>P,m:()=>H});var i=D(3669);function P(...G){return H(G)}function H(G){return 0===G.length?i.D:1===G.length?G[0]:function(J){return G.reduce((W,k)=>k(W),J)}}},5334:(qe,ie,D)=>{D.d(ie,{m:()=>H});var i=D(1026),P=D(9270);function H(G){P.f.setTimeout(()=>{const{onUnhandledError:V}=i.$;if(!V)throw G;V(G)})}},591:(qe,ie,D)=>{function i(P){return new TypeError(`You provided ${null!==P&&"object"==typeof P?"an invalid object":`'${P}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}D.d(ie,{L:()=>i})},177:(qe,ie,D)=>{D.d(ie,{AJ:()=>Vn,B3:()=>$t,EO:()=>Y,Jj:()=>yn,MD:()=>en,N0:()=>Co,QT:()=>H,QX:()=>ri,Sq:()=>X,T3:()=>Sn,VF:()=>V,Vy:()=>Ns,XO:()=>$e,Xr:()=>Qo,YU:()=>We,Yq:()=>Zn,ZD:()=>G,ZV:()=>Ci,_b:()=>le,aZ:()=>rt,bT:()=>Ae,cH:()=>yt,fw:()=>Re,hb:()=>Se,oV:()=>mt,pM:()=>X,qQ:()=>W,tL:()=>wt,vh:()=>xi});var i=D(4438);let P=null;function H(){return P}function G(b){P??=b}class V{}const W=new i.nKC("");let k=(()=>{class b{historyGo(M){throw new Error("")}static#e=this.\u0275fac=function(I){return new(I||b)};static#t=this.\u0275prov=i.jDH({token:b,factory:()=>(0,i.WQX)(oe),providedIn:"platform"})}return b})(),oe=(()=>{class b extends k{constructor(){super(),this._doc=(0,i.WQX)(W),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return H().getBaseHref(this._doc)}onPopState(M){const I=H().getGlobalEventTarget(this._doc,"window");return I.addEventListener("popstate",M,!1),()=>I.removeEventListener("popstate",M)}onHashChange(M){const I=H().getGlobalEventTarget(this._doc,"window");return I.addEventListener("hashchange",M,!1),()=>I.removeEventListener("hashchange",M)}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(M){this._location.pathname=M}pushState(M,I,re){this._history.pushState(M,I,re)}replaceState(M,I,re){this._history.replaceState(M,I,re)}forward(){this._history.forward()}back(){this._history.back()}historyGo(M=0){this._history.go(M)}getState(){return this._history.state}static#e=this.\u0275fac=function(I){return new(I||b)};static#t=this.\u0275prov=i.jDH({token:b,factory:()=>new b,providedIn:"platform"})}return b})();function ae(b,B){if(0==b.length)return B;if(0==B.length)return b;let M=0;return b.endsWith("/")&&M++,B.startsWith("/")&&M++,2==M?b+B.substring(1):1==M?b+B:b+"/"+B}function me(b){const B=b.match(/#|\?|$/),M=B&&B.index||b.length;return b.slice(0,M-("/"===b[M-1]?1:0))+b.slice(M)}function Ce(b){return b&&"?"!==b[0]?"?"+b:b}let Se=(()=>{class b{historyGo(M){throw new Error("")}static#e=this.\u0275fac=function(I){return new(I||b)};static#t=this.\u0275prov=i.jDH({token:b,factory:()=>(0,i.WQX)(Ue),providedIn:"root"})}return b})();const De=new i.nKC("");let Ue=(()=>{class b extends Se{constructor(M,I){super(),this._platformLocation=M,this._removeListenerFns=[],this._baseHref=I??this._platformLocation.getBaseHrefFromDOM()??(0,i.WQX)(W).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(M){this._removeListenerFns.push(this._platformLocation.onPopState(M),this._platformLocation.onHashChange(M))}getBaseHref(){return this._baseHref}prepareExternalUrl(M){return ae(this._baseHref,M)}path(M=!1){const I=this._platformLocation.pathname+Ce(this._platformLocation.search),re=this._platformLocation.hash;return re&&M?`${I}${re}`:I}pushState(M,I,re,ze){const st=this.prepareExternalUrl(re+Ce(ze));this._platformLocation.pushState(M,I,st)}replaceState(M,I,re,ze){const st=this.prepareExternalUrl(re+Ce(ze));this._platformLocation.replaceState(M,I,st)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(M=0){this._platformLocation.historyGo?.(M)}static#e=this.\u0275fac=function(I){return new(I||b)(i.KVO(k),i.KVO(De,8))};static#t=this.\u0275prov=i.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})}return b})(),Re=(()=>{class b extends Se{constructor(M,I){super(),this._platformLocation=M,this._baseHref="",this._removeListenerFns=[],null!=I&&(this._baseHref=I)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(M){this._removeListenerFns.push(this._platformLocation.onPopState(M),this._platformLocation.onHashChange(M))}getBaseHref(){return this._baseHref}path(M=!1){const I=this._platformLocation.hash??"#";return I.length>0?I.substring(1):I}prepareExternalUrl(M){const I=ae(this._baseHref,M);return I.length>0?"#"+I:I}pushState(M,I,re,ze){let st=this.prepareExternalUrl(re+Ce(ze));0==st.length&&(st=this._platformLocation.pathname),this._platformLocation.pushState(M,I,st)}replaceState(M,I,re,ze){let st=this.prepareExternalUrl(re+Ce(ze));0==st.length&&(st=this._platformLocation.pathname),this._platformLocation.replaceState(M,I,st)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(M=0){this._platformLocation.historyGo?.(M)}static#e=this.\u0275fac=function(I){return new(I||b)(i.KVO(k),i.KVO(De,8))};static#t=this.\u0275prov=i.jDH({token:b,factory:b.\u0275fac})}return b})(),rt=(()=>{class b{constructor(M){this._subject=new i.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=M;const I=this._locationStrategy.getBaseHref();this._basePath=function He(b){if(new RegExp("^(https?:)?//").test(b)){const[,M]=b.split(/\/\/[^\/]+/);return M}return b}(me(Qe(I))),this._locationStrategy.onPopState(re=>{this._subject.emit({url:this.path(!0),pop:!0,state:re.state,type:re.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(M=!1){return this.normalize(this._locationStrategy.path(M))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(M,I=""){return this.path()==this.normalize(M+Ce(I))}normalize(M){return b.stripTrailingSlash(function ut(b,B){if(!b||!B.startsWith(b))return B;const M=B.substring(b.length);return""===M||["/",";","?","#"].includes(M[0])?M:B}(this._basePath,Qe(M)))}prepareExternalUrl(M){return M&&"/"!==M[0]&&(M="/"+M),this._locationStrategy.prepareExternalUrl(M)}go(M,I="",re=null){this._locationStrategy.pushState(re,"",M,I),this._notifyUrlChangeListeners(this.prepareExternalUrl(M+Ce(I)),re)}replaceState(M,I="",re=null){this._locationStrategy.replaceState(re,"",M,I),this._notifyUrlChangeListeners(this.prepareExternalUrl(M+Ce(I)),re)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(M=0){this._locationStrategy.historyGo?.(M)}onUrlChange(M){return this._urlChangeListeners.push(M),this._urlChangeSubscription??=this.subscribe(I=>{this._notifyUrlChangeListeners(I.url,I.state)}),()=>{const I=this._urlChangeListeners.indexOf(M);this._urlChangeListeners.splice(I,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(M="",I){this._urlChangeListeners.forEach(re=>re(M,I))}subscribe(M,I,re){return this._subject.subscribe({next:M,error:I,complete:re})}static#e=this.normalizeQueryParams=Ce;static#t=this.joinWithSlash=ae;static#n=this.stripTrailingSlash=me;static#r=this.\u0275fac=function(I){return new(I||b)(i.KVO(Se))};static#i=this.\u0275prov=i.jDH({token:b,factory:()=>function _t(){return new rt((0,i.KVO)(Se))}(),providedIn:"root"})}return b})();function Qe(b){return b.replace(/\/index.html$/,"")}var et=function(b){return b[b.Decimal=0]="Decimal",b[b.Percent=1]="Percent",b[b.Currency=2]="Currency",b[b.Scientific=3]="Scientific",b}(et||{}),mt=function(b){return b[b.Format=0]="Format",b[b.Standalone=1]="Standalone",b}(mt||{}),yt=function(b){return b[b.Narrow=0]="Narrow",b[b.Abbreviated=1]="Abbreviated",b[b.Wide=2]="Wide",b[b.Short=3]="Short",b}(yt||{}),vt=function(b){return b[b.Short=0]="Short",b[b.Medium=1]="Medium",b[b.Long=2]="Long",b[b.Full=3]="Full",b}(vt||{});const Mt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function $e(b,B,M){const I=(0,i.H5H)(b),ze=Kt([I[i.KH2.DaysFormat],I[i.KH2.DaysStandalone]],B);return Kt(ze,M)}function wt(b,B,M){const I=(0,i.H5H)(b),ze=Kt([I[i.KH2.MonthsFormat],I[i.KH2.MonthsStandalone]],B);return Kt(ze,M)}function ve(b,B){return Kt((0,i.H5H)(b)[i.KH2.DateFormat],B)}function we(b,B){return Kt((0,i.H5H)(b)[i.KH2.TimeFormat],B)}function Le(b,B){return Kt((0,i.H5H)(b)[i.KH2.DateTimeFormat],B)}function xe(b,B){const M=(0,i.H5H)(b),I=M[i.KH2.NumberSymbols][B];if(typeof I>"u"){if(B===Mt.CurrencyDecimal)return M[i.KH2.NumberSymbols][Mt.Decimal];if(B===Mt.CurrencyGroup)return M[i.KH2.NumberSymbols][Mt.Group]}return I}function sn(b){if(!b[i.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${b[i.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Kt(b,B){for(let M=B;M>-1;M--)if(typeof b[M]<"u")return b[M];throw new Error("Locale data API: locale data undefined")}function Un(b){const[B,M]=b.split(":");return{hours:+B,minutes:+M}}const Dn=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Kn={},pn=/((?:[^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 Xn=function(b){return b[b.Short=0]="Short",b[b.ShortGMT=1]="ShortGMT",b[b.Long=2]="Long",b[b.Extended=3]="Extended",b}(Xn||{}),jt=function(b){return b[b.FullYear=0]="FullYear",b[b.Month=1]="Month",b[b.Date=2]="Date",b[b.Hours=3]="Hours",b[b.Minutes=4]="Minutes",b[b.Seconds=5]="Seconds",b[b.FractionalSeconds=6]="FractionalSeconds",b[b.Day=7]="Day",b}(jt||{}),Jt=function(b){return b[b.DayPeriods=0]="DayPeriods",b[b.Days=1]="Days",b[b.Months=2]="Months",b[b.Eras=3]="Eras",b}(Jt||{});function Zn(b,B,M,I){let re=function Zt(b){if(lr(b))return b;if("number"==typeof b&&!isNaN(b))return new Date(b);if("string"==typeof b){if(b=b.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(b)){const[re,ze=1,st=1]=b.split("-").map(Ut=>+Ut);return jn(re,ze-1,st)}const M=parseFloat(b);if(!isNaN(b-M))return new Date(M);let I;if(I=b.match(Dn))return function Wn(b){const B=new Date(0);let M=0,I=0;const re=b[8]?B.setUTCFullYear:B.setFullYear,ze=b[8]?B.setUTCHours:B.setHours;b[9]&&(M=Number(b[9]+b[10]),I=Number(b[9]+b[11])),re.call(B,Number(b[1]),Number(b[2])-1,Number(b[3]));const st=Number(b[4]||0)-M,Ut=Number(b[5]||0)-I,mr=Number(b[6]||0),cr=Math.floor(1e3*parseFloat("0."+(b[7]||0)));return ze.call(B,st,Ut,mr,cr),B}(I)}const B=new Date(b);if(!lr(B))throw new Error(`Unable to convert "${b}" into a date`);return B}(b);B=Ht(M,B)||B;let Ut,st=[];for(;B;){if(Ut=pn.exec(B),!Ut){st.push(B);break}{st=st.concat(Ut.slice(1));const qn=st.pop();if(!qn)break;B=qn}}let mr=re.getTimezoneOffset();I&&(mr=be(I,mr),re=function St(b,B,M){const I=M?-1:1,re=b.getTimezoneOffset();return function ot(b,B){return(b=new Date(b.getTime())).setMinutes(b.getMinutes()+B),b}(b,I*(be(B,re)-re))}(re,I,!0));let cr="";return st.forEach(qn=>{const Pn=function ne(b){if(Ne[b])return Ne[b];let B;switch(b){case"G":case"GG":case"GGG":B=un(Jt.Eras,yt.Abbreviated);break;case"GGGG":B=un(Jt.Eras,yt.Wide);break;case"GGGGG":B=un(Jt.Eras,yt.Narrow);break;case"y":B=Xt(jt.FullYear,1,0,!1,!0);break;case"yy":B=Xt(jt.FullYear,2,0,!0,!0);break;case"yyy":B=Xt(jt.FullYear,3,0,!1,!0);break;case"yyyy":B=Xt(jt.FullYear,4,0,!1,!0);break;case"Y":B=Ee(1);break;case"YY":B=Ee(2,!0);break;case"YYY":B=Ee(3);break;case"YYYY":B=Ee(4);break;case"M":case"L":B=Xt(jt.Month,1,1);break;case"MM":case"LL":B=Xt(jt.Month,2,1);break;case"MMM":B=un(Jt.Months,yt.Abbreviated);break;case"MMMM":B=un(Jt.Months,yt.Wide);break;case"MMMMM":B=un(Jt.Months,yt.Narrow);break;case"LLL":B=un(Jt.Months,yt.Abbreviated,mt.Standalone);break;case"LLLL":B=un(Jt.Months,yt.Wide,mt.Standalone);break;case"LLLLL":B=un(Jt.Months,yt.Narrow,mt.Standalone);break;case"w":B=wr(1);break;case"ww":B=wr(2);break;case"W":B=wr(1,!0);break;case"d":B=Xt(jt.Date,1);break;case"dd":B=Xt(jt.Date,2);break;case"c":case"cc":B=Xt(jt.Day,1);break;case"ccc":B=un(Jt.Days,yt.Abbreviated,mt.Standalone);break;case"cccc":B=un(Jt.Days,yt.Wide,mt.Standalone);break;case"ccccc":B=un(Jt.Days,yt.Narrow,mt.Standalone);break;case"cccccc":B=un(Jt.Days,yt.Short,mt.Standalone);break;case"E":case"EE":case"EEE":B=un(Jt.Days,yt.Abbreviated);break;case"EEEE":B=un(Jt.Days,yt.Wide);break;case"EEEEE":B=un(Jt.Days,yt.Narrow);break;case"EEEEEE":B=un(Jt.Days,yt.Short);break;case"a":case"aa":case"aaa":B=un(Jt.DayPeriods,yt.Abbreviated);break;case"aaaa":B=un(Jt.DayPeriods,yt.Wide);break;case"aaaaa":B=un(Jt.DayPeriods,yt.Narrow);break;case"b":case"bb":case"bbb":B=un(Jt.DayPeriods,yt.Abbreviated,mt.Standalone,!0);break;case"bbbb":B=un(Jt.DayPeriods,yt.Wide,mt.Standalone,!0);break;case"bbbbb":B=un(Jt.DayPeriods,yt.Narrow,mt.Standalone,!0);break;case"B":case"BB":case"BBB":B=un(Jt.DayPeriods,yt.Abbreviated,mt.Format,!0);break;case"BBBB":B=un(Jt.DayPeriods,yt.Wide,mt.Format,!0);break;case"BBBBB":B=un(Jt.DayPeriods,yt.Narrow,mt.Format,!0);break;case"h":B=Xt(jt.Hours,1,-12);break;case"hh":B=Xt(jt.Hours,2,-12);break;case"H":B=Xt(jt.Hours,1);break;case"HH":B=Xt(jt.Hours,2);break;case"m":B=Xt(jt.Minutes,1);break;case"mm":B=Xt(jt.Minutes,2);break;case"s":B=Xt(jt.Seconds,1);break;case"ss":B=Xt(jt.Seconds,2);break;case"S":B=Xt(jt.FractionalSeconds,1);break;case"SS":B=Xt(jt.FractionalSeconds,2);break;case"SSS":B=Xt(jt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":B=xr(Xn.Short);break;case"ZZZZZ":B=xr(Xn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":B=xr(Xn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":B=xr(Xn.Long);break;default:return null}return Ne[b]=B,B}(qn);cr+=Pn?Pn(re,M,mr):"''"===qn?"'":qn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),cr}function jn(b,B,M){const I=new Date(0);return I.setFullYear(b,B,M),I.setHours(0,0,0),I}function Ht(b,B){const M=function ht(b){return(0,i.H5H)(b)[i.KH2.LocaleId]}(b);if(Kn[M]??={},Kn[M][B])return Kn[M][B];let I="";switch(B){case"shortDate":I=ve(b,vt.Short);break;case"mediumDate":I=ve(b,vt.Medium);break;case"longDate":I=ve(b,vt.Long);break;case"fullDate":I=ve(b,vt.Full);break;case"shortTime":I=we(b,vt.Short);break;case"mediumTime":I=we(b,vt.Medium);break;case"longTime":I=we(b,vt.Long);break;case"fullTime":I=we(b,vt.Full);break;case"short":const re=Ht(b,"shortTime"),ze=Ht(b,"shortDate");I=vn(Le(b,vt.Short),[re,ze]);break;case"medium":const st=Ht(b,"mediumTime"),Ut=Ht(b,"mediumDate");I=vn(Le(b,vt.Medium),[st,Ut]);break;case"long":const mr=Ht(b,"longTime"),cr=Ht(b,"longDate");I=vn(Le(b,vt.Long),[mr,cr]);break;case"full":const qn=Ht(b,"fullTime"),Pn=Ht(b,"fullDate");I=vn(Le(b,vt.Full),[qn,Pn])}return I&&(Kn[M][B]=I),I}function vn(b,B){return B&&(b=b.replace(/\{([^}]+)}/g,function(M,I){return null!=B&&I in B?B[I]:M})),b}function Qn(b,B,M="-",I,re){let ze="";(b<0||re&&b<=0)&&(re?b=1-b:(b=-b,ze=M));let st=String(b);for(;st.length0||Ut>-M)&&(Ut+=M),b===jt.Hours)0===Ut&&-12===M&&(Ut=12);else if(b===jt.FractionalSeconds)return function nr(b,B){return Qn(b,3).substring(0,B)}(Ut,B);const mr=xe(st,Mt.MinusSign);return Qn(Ut,B,mr,I,re)}}function un(b,B,M=mt.Format,I=!1){return function(re,ze){return function ln(b,B,M,I,re,ze){switch(M){case Jt.Months:return wt(B,re,I)[b.getMonth()];case Jt.Days:return $e(B,re,I)[b.getDay()];case Jt.DayPeriods:const st=b.getHours(),Ut=b.getMinutes();if(ze){const cr=function an(b){const B=(0,i.H5H)(b);return sn(B),(B[i.KH2.ExtraData][2]||[]).map(I=>"string"==typeof I?Un(I):[Un(I[0]),Un(I[1])])}(B),qn=function _n(b,B,M){const I=(0,i.H5H)(b);sn(I);const ze=Kt([I[i.KH2.ExtraData][0],I[i.KH2.ExtraData][1]],B)||[];return Kt(ze,M)||[]}(B,re,I),Pn=cr.findIndex(Sr=>{if(Array.isArray(Sr)){const[ir,Br]=Sr,Rn=st>=ir.hours&&Ut>=ir.minutes,gt=st0?Math.floor(re/60):Math.ceil(re/60);switch(b){case Xn.Short:return(re>=0?"+":"")+Qn(st,2,ze)+Qn(Math.abs(re%60),2,ze);case Xn.ShortGMT:return"GMT"+(re>=0?"+":"")+Qn(st,1,ze);case Xn.Long:return"GMT"+(re>=0?"+":"")+Qn(st,2,ze)+":"+Qn(Math.abs(re%60),2,ze);case Xn.Extended:return 0===I?"Z":(re>=0?"+":"")+Qn(st,2,ze)+":"+Qn(Math.abs(re%60),2,ze);default:throw new Error(`Unknown zone width "${b}"`)}}}const wn=0,kn=4;function Nr(b){const B=b.getDay(),M=0===B?-3:kn-B;return jn(b.getFullYear(),b.getMonth(),b.getDate()+M)}function wr(b,B=!1){return function(M,I){let re;if(B){const ze=new Date(M.getFullYear(),M.getMonth(),1).getDay()-1,st=M.getDate();re=1+Math.floor((st+ze)/7)}else{const ze=Nr(M),st=function Vr(b){const B=jn(b,wn,1).getDay();return jn(b,0,1+(B<=kn?kn:kn+7)-B)}(ze.getFullYear()),Ut=ze.getTime()-st.getTime();re=1+Math.round(Ut/6048e5)}return Qn(re,b,xe(I,Mt.MinusSign))}}function Ee(b,B=!1){return function(M,I){return Qn(Nr(M).getFullYear(),b,xe(I,Mt.MinusSign),B)}}const Ne={};function be(b,B){b=b.replace(/:/g,"");const M=Date.parse("Jan 01, 1970 00:00:00 "+b)/6e4;return isNaN(M)?B:M}function lr(b){return b instanceof Date&&!isNaN(b.valueOf())}const ar=/^(\d+)?\.((\d+)(-(\d+))?)?$/,br=22,fr=".",hr="0",gi=";",Dr=",",kt="#";function Ci(b,B,M){return function Ii(b,B,M,I,re,ze,st=!1){let Ut="",mr=!1;if(isFinite(b)){let cr=function ci(b){let I,re,ze,st,Ut,B=Math.abs(b)+"",M=0;for((re=B.indexOf(fr))>-1&&(B=B.replace(fr,"")),(ze=B.search(/e/i))>0?(re<0&&(re=ze),re+=+B.slice(ze+1),B=B.substring(0,ze)):re<0&&(re=B.length),ze=0;B.charAt(ze)===hr;ze++);if(ze===(Ut=B.length))I=[0],re=1;else{for(Ut--;B.charAt(Ut)===hr;)Ut--;for(re-=ze,I=[],st=0;ze<=Ut;ze++,st++)I[st]=Number(B.charAt(ze))}return re>br&&(I=I.splice(0,br-1),M=re-1,re=1),{digits:I,exponent:M,integerLen:re}}(b);st&&(cr=function yo(b){if(0===b.digits[0])return b;const B=b.digits.length-b.integerLen;return b.exponent?b.exponent+=2:(0===B?b.digits.push(0,0):1===B&&b.digits.push(0),b.integerLen+=2),b}(cr));let qn=B.minInt,Pn=B.minFrac,Sr=B.maxFrac;if(ze){const er=ze.match(ar);if(null===er)throw new Error(`${ze} is not a valid digit info`);const ei=er[1],Rr=er[3],ti=er[5];null!=ei&&(qn=so(ei)),null!=Rr&&(Pn=so(Rr)),null!=ti?Sr=so(ti):null!=Rr&&Pn>Sr&&(Sr=Pn)}!function Ri(b,B,M){if(B>M)throw new Error(`The minimum number of digits after fraction (${B}) is higher than the maximum (${M}).`);let I=b.digits,re=I.length-b.integerLen;const ze=Math.min(Math.max(B,re),M);let st=ze+b.integerLen,Ut=I[st];if(st>0){I.splice(Math.max(b.integerLen,st));for(let Pn=st;Pn=5)if(st-1<0){for(let Pn=0;Pn>st;Pn--)I.unshift(0),b.integerLen++;I.unshift(1),b.integerLen++}else I[st-1]++;for(;re=cr?Br.pop():mr=!1),Sr>=10?1:0},0);qn&&(I.unshift(qn),b.integerLen++)}(cr,Pn,Sr);let ir=cr.digits,Br=cr.integerLen;const Rn=cr.exponent;let gt=[];for(mr=ir.every(er=>!er);Br0?gt=ir.splice(Br,ir.length):(gt=ir,ir=[0]);const Wt=[];for(ir.length>=B.lgSize&&Wt.unshift(ir.splice(-B.lgSize,ir.length).join(""));ir.length>B.gSize;)Wt.unshift(ir.splice(-B.gSize,ir.length).join(""));ir.length&&Wt.unshift(ir.join("")),Ut=Wt.join(xe(M,I)),gt.length&&(Ut+=xe(M,re)+gt.join("")),Rn&&(Ut+=xe(M,Mt.Exponential)+"+"+Rn)}else Ut=xe(M,Mt.Infinity);return Ut=b<0&&!mr?B.negPre+Ut+B.negSuf:B.posPre+Ut+B.posSuf,Ut}(b,function In(b,B="-"){const M={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},I=b.split(gi),re=I[0],ze=I[1],st=-1!==re.indexOf(fr)?re.split(fr):[re.substring(0,re.lastIndexOf(hr)+1),re.substring(re.lastIndexOf(hr)+1)],Ut=st[0],mr=st[1]||"";M.posPre=Ut.substring(0,Ut.indexOf(kt));for(let qn=0;qn{class b{constructor(M,I){this._ngEl=M,this._renderer=I,this.initialClasses=Je,this.stateMap=new Map}set klass(M){this.initialClasses=null!=M?M.trim().split(ue):Je}set ngClass(M){this.rawClass="string"==typeof M?M.trim().split(ue):M}ngDoCheck(){for(const I of this.initialClasses)this._updateState(I,!0);const M=this.rawClass;if(Array.isArray(M)||M instanceof Set)for(const I of M)this._updateState(I,!0);else if(null!=M)for(const I of Object.keys(M))this._updateState(I,!!M[I]);this._applyStateDiff()}_updateState(M,I){const re=this.stateMap.get(M);void 0!==re?(re.enabled!==I&&(re.changed=!0,re.enabled=I),re.touched=!0):this.stateMap.set(M,{enabled:I,changed:!0,touched:!0})}_applyStateDiff(){for(const M of this.stateMap){const I=M[0],re=M[1];re.changed?(this._toggleClass(I,re.enabled),re.changed=!1):re.touched||(re.enabled&&this._toggleClass(I,!1),this.stateMap.delete(I)),re.touched=!1}}_toggleClass(M,I){(M=M.trim()).length>0&&M.split(ue).forEach(re=>{I?this._renderer.addClass(this._ngEl.nativeElement,re):this._renderer.removeClass(this._ngEl.nativeElement,re)})}static#e=this.\u0275fac=function(I){return new(I||b)(i.rXU(i.aKT),i.rXU(i.sFG))};static#t=this.\u0275dir=i.FsC({type:b,selectors:[["","ngClass",""]],inputs:{klass:[i.Mj6.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}return b})();class U{constructor(B,M,I,re){this.$implicit=B,this.ngForOf=M,this.index=I,this.count=re}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 X=(()=>{class b{set ngForOf(M){this._ngForOf=M,this._ngForOfDirty=!0}set ngForTrackBy(M){this._trackByFn=M}get ngForTrackBy(){return this._trackByFn}constructor(M,I,re){this._viewContainer=M,this._template=I,this._differs=re,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(M){M&&(this._template=M)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const M=this._ngForOf;!this._differ&&M&&(this._differ=this._differs.find(M).create(this.ngForTrackBy))}if(this._differ){const M=this._differ.diff(this._ngForOf);M&&this._applyChanges(M)}}_applyChanges(M){const I=this._viewContainer;M.forEachOperation((re,ze,st)=>{if(null==re.previousIndex)I.createEmbeddedView(this._template,new U(re.item,this._ngForOf,-1,-1),null===st?void 0:st);else if(null==st)I.remove(null===ze?void 0:ze);else if(null!==ze){const Ut=I.get(ze);I.move(Ut,st),ee(Ut,re)}});for(let re=0,ze=I.length;re{ee(I.get(re.currentIndex),re)})}static ngTemplateContextGuard(M,I){return!0}static#e=this.\u0275fac=function(I){return new(I||b)(i.rXU(i.c1b),i.rXU(i.C4Q),i.rXU(i._q3))};static#t=this.\u0275dir=i.FsC({type:b,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return b})();function ee(b,B){b.context.$implicit=B.item}let Ae=(()=>{class b{constructor(M,I){this._viewContainer=M,this._context=new Pe,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=I}set ngIf(M){this._context.$implicit=this._context.ngIf=M,this._updateView()}set ngIfThen(M){Xe("ngIfThen",M),this._thenTemplateRef=M,this._thenViewRef=null,this._updateView()}set ngIfElse(M){Xe("ngIfElse",M),this._elseTemplateRef=M,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(M,I){return!0}static#e=this.\u0275fac=function(I){return new(I||b)(i.rXU(i.c1b),i.rXU(i.C4Q))};static#t=this.\u0275dir=i.FsC({type:b,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return b})();class Pe{constructor(){this.$implicit=null,this.ngIf=null}}function Xe(b,B){if(B&&!B.createEmbeddedView)throw new Error(`${b} must be a TemplateRef, but received '${(0,i.Tbb)(B)}'.`)}let $t=(()=>{class b{constructor(M,I,re){this._ngEl=M,this._differs=I,this._renderer=re,this._ngStyle=null,this._differ=null}set ngStyle(M){this._ngStyle=M,!this._differ&&M&&(this._differ=this._differs.find(M).create())}ngDoCheck(){if(this._differ){const M=this._differ.diff(this._ngStyle);M&&this._applyChanges(M)}}_setStyle(M,I){const[re,ze]=M.split("."),st=-1===re.indexOf("-")?void 0:i.czy.DashCase;null!=I?this._renderer.setStyle(this._ngEl.nativeElement,re,ze?`${I}${ze}`:I,st):this._renderer.removeStyle(this._ngEl.nativeElement,re,st)}_applyChanges(M){M.forEachRemovedItem(I=>this._setStyle(I.key,null)),M.forEachAddedItem(I=>this._setStyle(I.key,I.currentValue)),M.forEachChangedItem(I=>this._setStyle(I.key,I.currentValue))}static#e=this.\u0275fac=function(I){return new(I||b)(i.rXU(i.aKT),i.rXU(i.MKu),i.rXU(i.sFG))};static#t=this.\u0275dir=i.FsC({type:b,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return b})(),Sn=(()=>{class b{constructor(M){this._viewContainerRef=M,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(M){if(this._shouldRecreateView(M)){const I=this._viewContainerRef;if(this._viewRef&&I.remove(I.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const re=this._createContextForwardProxy();this._viewRef=I.createEmbeddedView(this.ngTemplateOutlet,re,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(M){return!!M.ngTemplateOutlet||!!M.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(M,I,re)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,I,re),get:(M,I,re)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,I,re)}})}static#e=this.\u0275fac=function(I){return new(I||b)(i.rXU(i.c1b))};static#t=this.\u0275dir=i.FsC({type:b,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[i.OA$]})}return b})();function _i(b,B){return new i.wOt(2100,!1)}class Ro{createSubscription(B,M){return(0,i.O8t)(()=>B.subscribe({next:M,error:I=>{throw I}}))}dispose(B){(0,i.O8t)(()=>B.unsubscribe())}}class ui{createSubscription(B,M){return B.then(M,I=>{throw I})}dispose(B){}}const Xs=new ui,Zi=new Ro;let yn=(()=>{class b{constructor(M){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=M}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(M){if(!this._obj){if(M)try{this.markForCheckOnValueUpdate=!1,this._subscribe(M)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return M!==this._obj?(this._dispose(),this.transform(M)):this._latestValue}_subscribe(M){this._obj=M,this._strategy=this._selectStrategy(M),this._subscription=this._strategy.createSubscription(M,I=>this._updateLatestValue(M,I))}_selectStrategy(M){if((0,i.jNT)(M))return Xs;if((0,i.zjR)(M))return Zi;throw _i()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(M,I){M===this._obj&&(this._latestValue=I,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static#e=this.\u0275fac=function(I){return new(I||b)(i.rXU(i.gRc,16))};static#t=this.\u0275pipe=i.EJ8({name:"async",type:b,pure:!1,standalone:!0})}return b})();const ps=new i.nKC(""),Tr=new i.nKC("");let xi=(()=>{class b{constructor(M,I,re){this.locale=M,this.defaultTimezone=I,this.defaultOptions=re}transform(M,I,re,ze){if(null==M||""===M||M!=M)return null;try{return Zn(M,I??this.defaultOptions?.dateFormat??"mediumDate",ze||this.locale,re??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(st){throw _i()}}static#e=this.\u0275fac=function(I){return new(I||b)(i.rXU(i.xe9,16),i.rXU(ps,24),i.rXU(Tr,24))};static#t=this.\u0275pipe=i.EJ8({name:"date",type:b,pure:!0,standalone:!0})}return b})(),ri=(()=>{class b{constructor(M){this._locale=M}transform(M,I,re){if(!function Te(b){return!(null==b||""===b||b!=b)}(M))return null;re||=this._locale;try{return Ci(function de(b){if("string"==typeof b&&!isNaN(Number(b)-parseFloat(b)))return Number(b);if("number"!=typeof b)throw new Error(`${b} is not a number`);return b}(M),re,I)}catch(ze){throw _i()}}static#e=this.\u0275fac=function(I){return new(I||b)(i.rXU(i.xe9,16))};static#t=this.\u0275pipe=i.EJ8({name:"number",type:b,pure:!0,standalone:!0})}return b})();let en=(()=>{class b{static#e=this.\u0275fac=function(I){return new(I||b)};static#t=this.\u0275mod=i.$C({type:b});static#n=this.\u0275inj=i.G2t({})}return b})();const Vn="browser",Gi="server";function Ns(b){return b===Gi}let Qo=(()=>{class b{static#e=this.\u0275prov=(0,i.jDH)({token:b,providedIn:"root",factory:()=>function Zr(b){return b===Vn}((0,i.WQX)(i.Agw))?new ii((0,i.WQX)(W),window):new Yo})}return b})();class ii{constructor(B,M){this.document=B,this.window=M,this.offset=()=>[0,0]}setOffset(B){this.offset=Array.isArray(B)?()=>B:B}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(B){this.window.scrollTo(B[0],B[1])}scrollToAnchor(B){const M=function Mi(b,B){const M=b.getElementById(B)||b.getElementsByName(B)[0];if(M)return M;if("function"==typeof b.createTreeWalker&&b.body&&"function"==typeof b.body.attachShadow){const I=b.createTreeWalker(b.body,NodeFilter.SHOW_ELEMENT);let re=I.currentNode;for(;re;){const ze=re.shadowRoot;if(ze){const st=ze.getElementById(B)||ze.querySelector(`[name="${B}"]`);if(st)return st}re=I.nextNode()}}return null}(this.document,B);M&&(this.scrollToElement(M),M.focus())}setHistoryScrollRestoration(B){this.window.history.scrollRestoration=B}scrollToElement(B){const M=B.getBoundingClientRect(),I=M.left+this.window.pageXOffset,re=M.top+this.window.pageYOffset,ze=this.offset();this.window.scrollTo(I-ze[0],re-ze[1])}}class Yo{setOffset(B){}getScrollPosition(){return[0,0]}scrollToPosition(B){}scrollToAnchor(B){}setHistoryScrollRestoration(B){}}class Co{}},1626:(qe,ie,D)=>{D.d(ie,{$R:()=>be,Lr:()=>Se,Nl:()=>He,Qq:()=>ve,_y:()=>et,b$:()=>ot,rx:()=>at,yz:()=>se}),D(467);var P=D(4438),H=D(7673),G=D(1985),V=D(6648),J=D(274),W=D(5964),k=D(6354),Z=D(980),oe=D(5558),ae=D(177);class me{}class Ce{}class Se{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 Je=ue.indexOf(":");if(Je>0){const We=ue.slice(0,Je),Dt=We.toLowerCase(),Et=ue.slice(Je+1).trim();this.maybeSetNormalizedName(We,Dt),this.headers.has(Dt)?this.headers.get(Dt).push(Et):this.headers.set(Dt,[Et])}})}:typeof Headers<"u"&&le instanceof Headers?(this.headers=new Map,le.forEach((ue,Je)=>{this.setHeaderEntries(Je,ue)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(le).forEach(([ue,Je])=>{this.setHeaderEntries(ue,Je)})}: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 Se?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 Se;return ue.lazyInit=this.lazyInit&&this.lazyInit instanceof Se?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 Je=le.value;if("string"==typeof Je&&(Je=[Je]),0===Je.length)return;this.maybeSetNormalizedName(le.name,ue);const We=("a"===le.op?this.headers.get(ue):void 0)||[];We.push(...Je),this.headers.set(ue,We);break;case"d":const Dt=le.value;if(Dt){let Et=this.headers.get(ue);if(!Et)return;Et=Et.filter(U=>-1===Dt.indexOf(U)),0===Et.length?(this.headers.delete(ue),this.normalizedNames.delete(ue)):this.headers.set(ue,Et)}else this.headers.delete(ue),this.normalizedNames.delete(ue)}}setHeaderEntries(le,ue){const Je=(Array.isArray(ue)?ue:[ue]).map(Dt=>Dt.toString()),We=le.toLowerCase();this.headers.set(We,Je),this.maybeSetNormalizedName(le,We)}forEach(le){this.init(),Array.from(this.normalizedNames.keys()).forEach(ue=>le(this.normalizedNames.get(ue),this.headers.get(ue)))}}class Ue{encodeKey(le){return ut(le)}encodeValue(le){return ut(le)}decodeKey(le){return decodeURIComponent(le)}decodeValue(le){return decodeURIComponent(le)}}const rt=/%(\d[a-f0-9])/gi,_t={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ut(Y){return encodeURIComponent(Y).replace(rt,(le,ue)=>_t[ue]??le)}function Qe(Y){return`${Y}`}class He{constructor(le={}){if(this.updates=null,this.cloneFrom=null,this.encoder=le.encoder||new Ue,le.fromString){if(le.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Re(Y,le){const ue=new Map;return Y.length>0&&Y.replace(/^\?/,"").split("&").forEach(We=>{const Dt=We.indexOf("="),[Et,U]=-1==Dt?[le.decodeKey(We),""]:[le.decodeKey(We.slice(0,Dt)),le.decodeValue(We.slice(Dt+1))],X=ue.get(Et)||[];X.push(U),ue.set(Et,X)}),ue}(le.fromString,this.encoder)}else le.fromObject?(this.map=new Map,Object.keys(le.fromObject).forEach(ue=>{const Je=le.fromObject[ue],We=Array.isArray(Je)?Je.map(Qe):[Qe(Je)];this.map.set(ue,We)})):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(Je=>{const We=le[Je];Array.isArray(We)?We.forEach(Dt=>{ue.push({param:Je,value:Dt,op:"a"})}):ue.push({param:Je,value:We,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(Je=>ue+"="+this.encoder.encodeValue(Je)).join("&")}).filter(le=>""!==le).join("&")}clone(le){const ue=new He({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(Qe(le.value)),this.map.set(le.param,ue);break;case"d":if(void 0===le.value){this.map.delete(le.param);break}{let Je=this.map.get(le.param)||[];const We=Je.indexOf(Qe(le.value));-1!==We&&Je.splice(We,1),Je.length>0?this.map.set(le.param,Je):this.map.delete(le.param)}}}),this.cloneFrom=this.updates=null)}}class at{constructor(le){this.defaultValue=le}}class et{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 mt(Y){return typeof ArrayBuffer<"u"&&Y instanceof ArrayBuffer}function yt(Y){return typeof Blob<"u"&&Y instanceof Blob}function vt(Y){return typeof FormData<"u"&&Y instanceof FormData}class dt{constructor(le,ue,Je,We){let Dt;if(this.url=ue,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=le.toUpperCase(),function ft(Y){switch(Y){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||We?(this.body=void 0!==Je?Je:null,Dt=We):Dt=Je,Dt&&(this.reportProgress=!!Dt.reportProgress,this.withCredentials=!!Dt.withCredentials,Dt.responseType&&(this.responseType=Dt.responseType),Dt.headers&&(this.headers=Dt.headers),Dt.context&&(this.context=Dt.context),Dt.params&&(this.params=Dt.params),this.transferCache=Dt.transferCache),this.headers??=new Se,this.context??=new et,this.params){const Et=this.params.toString();if(0===Et.length)this.urlWithParams=ue;else{const U=ue.indexOf("?");this.urlWithParams=ue+(-1===U?"?":UPe.set(Xe,le.setHeaders[Xe]),ee)),le.setParams&&(q=Object.keys(le.setParams).reduce((Pe,Xe)=>Pe.set(Xe,le.setParams[Xe]),q)),new dt(ue,Je,Et,{params:q,headers:ee,context:Ae,reportProgress:X,responseType:We,withCredentials:U,transferCache:Dt})}}var ht=function(Y){return Y[Y.Sent=0]="Sent",Y[Y.UploadProgress=1]="UploadProgress",Y[Y.ResponseHeader=2]="ResponseHeader",Y[Y.DownloadProgress=3]="DownloadProgress",Y[Y.Response=4]="Response",Y[Y.User=5]="User",Y}(ht||{});class Pt{constructor(le,ue=te.Ok,Je="OK"){this.headers=le.headers||new Se,this.status=void 0!==le.status?le.status:ue,this.statusText=le.statusText||Je,this.url=le.url||null,this.ok=this.status>=200&&this.status<300}}class $e extends Pt{constructor(le={}){super(le),this.type=ht.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 wt extends Pt{constructor(le={}){super(le),this.type=ht.Response,this.body=void 0!==le.body?le.body:null}clone(le={}){return new wt({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 se extends Pt{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}}var te=function(Y){return Y[Y.Continue=100]="Continue",Y[Y.SwitchingProtocols=101]="SwitchingProtocols",Y[Y.Processing=102]="Processing",Y[Y.EarlyHints=103]="EarlyHints",Y[Y.Ok=200]="Ok",Y[Y.Created=201]="Created",Y[Y.Accepted=202]="Accepted",Y[Y.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",Y[Y.NoContent=204]="NoContent",Y[Y.ResetContent=205]="ResetContent",Y[Y.PartialContent=206]="PartialContent",Y[Y.MultiStatus=207]="MultiStatus",Y[Y.AlreadyReported=208]="AlreadyReported",Y[Y.ImUsed=226]="ImUsed",Y[Y.MultipleChoices=300]="MultipleChoices",Y[Y.MovedPermanently=301]="MovedPermanently",Y[Y.Found=302]="Found",Y[Y.SeeOther=303]="SeeOther",Y[Y.NotModified=304]="NotModified",Y[Y.UseProxy=305]="UseProxy",Y[Y.Unused=306]="Unused",Y[Y.TemporaryRedirect=307]="TemporaryRedirect",Y[Y.PermanentRedirect=308]="PermanentRedirect",Y[Y.BadRequest=400]="BadRequest",Y[Y.Unauthorized=401]="Unauthorized",Y[Y.PaymentRequired=402]="PaymentRequired",Y[Y.Forbidden=403]="Forbidden",Y[Y.NotFound=404]="NotFound",Y[Y.MethodNotAllowed=405]="MethodNotAllowed",Y[Y.NotAcceptable=406]="NotAcceptable",Y[Y.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",Y[Y.RequestTimeout=408]="RequestTimeout",Y[Y.Conflict=409]="Conflict",Y[Y.Gone=410]="Gone",Y[Y.LengthRequired=411]="LengthRequired",Y[Y.PreconditionFailed=412]="PreconditionFailed",Y[Y.PayloadTooLarge=413]="PayloadTooLarge",Y[Y.UriTooLong=414]="UriTooLong",Y[Y.UnsupportedMediaType=415]="UnsupportedMediaType",Y[Y.RangeNotSatisfiable=416]="RangeNotSatisfiable",Y[Y.ExpectationFailed=417]="ExpectationFailed",Y[Y.ImATeapot=418]="ImATeapot",Y[Y.MisdirectedRequest=421]="MisdirectedRequest",Y[Y.UnprocessableEntity=422]="UnprocessableEntity",Y[Y.Locked=423]="Locked",Y[Y.FailedDependency=424]="FailedDependency",Y[Y.TooEarly=425]="TooEarly",Y[Y.UpgradeRequired=426]="UpgradeRequired",Y[Y.PreconditionRequired=428]="PreconditionRequired",Y[Y.TooManyRequests=429]="TooManyRequests",Y[Y.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",Y[Y.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",Y[Y.InternalServerError=500]="InternalServerError",Y[Y.NotImplemented=501]="NotImplemented",Y[Y.BadGateway=502]="BadGateway",Y[Y.ServiceUnavailable=503]="ServiceUnavailable",Y[Y.GatewayTimeout=504]="GatewayTimeout",Y[Y.HttpVersionNotSupported=505]="HttpVersionNotSupported",Y[Y.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",Y[Y.InsufficientStorage=507]="InsufficientStorage",Y[Y.LoopDetected=508]="LoopDetected",Y[Y.NotExtended=510]="NotExtended",Y[Y.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",Y}(te||{});function pe(Y,le){return{body:le,headers:Y.headers,context:Y.context,observe:Y.observe,params:Y.params,reportProgress:Y.reportProgress,responseType:Y.responseType,withCredentials:Y.withCredentials,transferCache:Y.transferCache}}let ve=(()=>{class Y{constructor(ue){this.handler=ue}request(ue,Je,We={}){let Dt;if(ue instanceof dt)Dt=ue;else{let X,ee;X=We.headers instanceof Se?We.headers:new Se(We.headers),We.params&&(ee=We.params instanceof He?We.params:new He({fromObject:We.params})),Dt=new dt(ue,Je,void 0!==We.body?We.body:null,{headers:X,context:We.context,params:ee,reportProgress:We.reportProgress,responseType:We.responseType||"json",withCredentials:We.withCredentials,transferCache:We.transferCache})}const Et=(0,H.of)(Dt).pipe((0,J.H)(X=>this.handler.handle(X)));if(ue instanceof dt||"events"===We.observe)return Et;const U=Et.pipe((0,W.p)(X=>X instanceof wt));switch(We.observe||"body"){case"body":switch(Dt.responseType){case"arraybuffer":return U.pipe((0,k.T)(X=>{if(null!==X.body&&!(X.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return X.body}));case"blob":return U.pipe((0,k.T)(X=>{if(null!==X.body&&!(X.body instanceof Blob))throw new Error("Response is not a Blob.");return X.body}));case"text":return U.pipe((0,k.T)(X=>{if(null!==X.body&&"string"!=typeof X.body)throw new Error("Response is not a string.");return X.body}));default:return U.pipe((0,k.T)(X=>X.body))}case"response":return U;default:throw new Error(`Unreachable: unhandled observe type ${We.observe}}`)}}delete(ue,Je={}){return this.request("DELETE",ue,Je)}get(ue,Je={}){return this.request("GET",ue,Je)}head(ue,Je={}){return this.request("HEAD",ue,Je)}jsonp(ue,Je){return this.request("JSONP",ue,{params:(new He).append(Je,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ue,Je={}){return this.request("OPTIONS",ue,Je)}patch(ue,Je,We={}){return this.request("PATCH",ue,pe(We,Je))}post(ue,Je,We={}){return this.request("POST",ue,pe(We,Je))}put(ue,Je,We={}){return this.request("PUT",ue,pe(We,Je))}static#e=this.\u0275fac=function(Je){return new(Je||Y)(P.KVO(me))};static#t=this.\u0275prov=P.jDH({token:Y,factory:Y.\u0275fac})}return Y})();function Nn(Y,le){return le(Y)}const _n=new P.nKC(""),On=new P.nKC(""),Kt=new P.nKC("");let on=(()=>{class Y extends me{constructor(ue,Je){super(),this.backend=ue,this.injector=Je,this.chain=null,this.pendingTasks=(0,P.WQX)(P.TgB);const We=(0,P.WQX)(Kt,{optional:!0});this.backend=We??ue}handle(ue){if(null===this.chain){const We=Array.from(new Set([...this.injector.get(_n),...this.injector.get(On,[])]));this.chain=We.reduceRight((Dt,Et)=>function sn(Y,le,ue){return(Je,We)=>(0,P.N4e)(ue,()=>le(Je,Dt=>Y(Dt,We)))}(Dt,Et,this.injector),Nn)}const Je=this.pendingTasks.add();return this.chain(ue,We=>this.backend.handle(We)).pipe((0,Z.j)(()=>this.pendingTasks.remove(Je)))}static#e=this.\u0275fac=function(Je){return new(Je||Y)(P.KVO(Ce),P.KVO(P.uvJ))};static#t=this.\u0275prov=P.jDH({token:Y,factory:Y.\u0275fac})}return Y})();const nr=/^\)\]\}',?\n/;let ur=(()=>{class Y{constructor(ue){this.xhrFactory=ue}handle(ue){if("JSONP"===ue.method)throw new P.wOt(-2800,!1);const Je=this.xhrFactory;return(Je.\u0275loadImpl?(0,V.H)(Je.\u0275loadImpl()):(0,H.of)(null)).pipe((0,oe.n)(()=>new G.c(Dt=>{const Et=Je.build();if(Et.open(ue.method,ue.urlWithParams),ue.withCredentials&&(Et.withCredentials=!0),ue.headers.forEach((nt,ct)=>Et.setRequestHeader(nt,ct.join(","))),ue.headers.has("Accept")||Et.setRequestHeader("Accept","application/json, text/plain, */*"),!ue.headers.has("Content-Type")){const nt=ue.detectContentTypeHeader();null!==nt&&Et.setRequestHeader("Content-Type",nt)}if(ue.responseType){const nt=ue.responseType.toLowerCase();Et.responseType="json"!==nt?nt:"text"}const U=ue.serializeBody();let X=null;const ee=()=>{if(null!==X)return X;const nt=Et.statusText||"OK",ct=new Se(Et.getAllResponseHeaders()),Lt=function Xt(Y){return"responseURL"in Y&&Y.responseURL?Y.responseURL:/^X-Request-URL:/m.test(Y.getAllResponseHeaders())?Y.getResponseHeader("X-Request-URL"):null}(Et)||ue.url;return X=new $e({headers:ct,status:Et.status,statusText:nt,url:Lt}),X},q=()=>{let{headers:nt,status:ct,statusText:Lt,url:qt}=ee(),tn=null;ct!==te.NoContent&&(tn=typeof Et.response>"u"?Et.responseText:Et.response),0===ct&&(ct=tn?te.Ok:0);let Bn=ct>=200&&ct<300;if("json"===ue.responseType&&"string"==typeof tn){const pr=tn;tn=tn.replace(nr,"");try{tn=""!==tn?JSON.parse(tn):null}catch(Yn){tn=pr,Bn&&(Bn=!1,tn={error:Yn,text:tn})}}Bn?(Dt.next(new wt({body:tn,headers:nt,status:ct,statusText:Lt,url:qt||void 0})),Dt.complete()):Dt.error(new se({error:tn,headers:nt,status:ct,statusText:Lt,url:qt||void 0}))},Ae=nt=>{const{url:ct}=ee(),Lt=new se({error:nt,status:Et.status||0,statusText:Et.statusText||"Unknown Error",url:ct||void 0});Dt.error(Lt)};let Pe=!1;const Xe=nt=>{Pe||(Dt.next(ee()),Pe=!0);let ct={type:ht.DownloadProgress,loaded:nt.loaded};nt.lengthComputable&&(ct.total=nt.total),"text"===ue.responseType&&Et.responseText&&(ct.partialText=Et.responseText),Dt.next(ct)},Be=nt=>{let ct={type:ht.UploadProgress,loaded:nt.loaded};nt.lengthComputable&&(ct.total=nt.total),Dt.next(ct)};return Et.addEventListener("load",q),Et.addEventListener("error",Ae),Et.addEventListener("timeout",Ae),Et.addEventListener("abort",Ae),ue.reportProgress&&(Et.addEventListener("progress",Xe),null!==U&&Et.upload&&Et.upload.addEventListener("progress",Be)),Et.send(U),Dt.next({type:ht.Sent}),()=>{Et.removeEventListener("error",Ae),Et.removeEventListener("abort",Ae),Et.removeEventListener("load",q),Et.removeEventListener("timeout",Ae),ue.reportProgress&&(Et.removeEventListener("progress",Xe),null!==U&&Et.upload&&Et.upload.removeEventListener("progress",Be)),Et.readyState!==Et.DONE&&Et.abort()}})))}static#e=this.\u0275fac=function(Je){return new(Je||Y)(P.KVO(ae.N0))};static#t=this.\u0275prov=P.jDH({token:Y,factory:Y.\u0275fac})}return Y})();const un=new P.nKC(""),xr=new P.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),kn=new P.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Vr{}let Nr=(()=>{class Y{constructor(ue,Je,We){this.doc=ue,this.platform=Je,this.cookieName=We,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,ae._b)(ue,this.cookieName),this.lastCookieString=ue),this.lastToken}static#e=this.\u0275fac=function(Je){return new(Je||Y)(P.KVO(ae.qQ),P.KVO(P.Agw),P.KVO(xr))};static#t=this.\u0275prov=P.jDH({token:Y,factory:Y.\u0275fac})}return Y})();function wr(Y,le){const ue=Y.url.toLowerCase();if(!(0,P.WQX)(un)||"GET"===Y.method||"HEAD"===Y.method||ue.startsWith("http://")||ue.startsWith("https://"))return le(Y);const Je=(0,P.WQX)(Vr).getToken(),We=(0,P.WQX)(kn);return null!=Je&&!Y.headers.has(We)&&(Y=Y.clone({headers:Y.headers.set(We,Je)})),le(Y)}var Ne=function(Y){return Y[Y.Interceptors=0]="Interceptors",Y[Y.LegacyInterceptors=1]="LegacyInterceptors",Y[Y.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Y[Y.NoXsrfProtection=3]="NoXsrfProtection",Y[Y.JsonpSupport=4]="JsonpSupport",Y[Y.RequestsMadeViaParent=5]="RequestsMadeViaParent",Y[Y.Fetch=6]="Fetch",Y}(Ne||{});function be(...Y){const le=[ve,ur,on,{provide:me,useExisting:on},{provide:Ce,useExisting:ur},{provide:_n,useValue:wr,multi:!0},{provide:un,useValue:!0},{provide:Vr,useClass:Nr}];for(const ue of Y)le.push(...ue.\u0275providers);return(0,P.EmA)(le)}function ot(Y){return function ne(Y,le){return{\u0275kind:Y,\u0275providers:le}}(Ne.Interceptors,Y.map(le=>({provide:_n,useValue:le,multi:!0})))}},4438:(qe,ie,D)=>{D.d(ie,{bc$:()=>Wo,iLQ:()=>om,sZ2:()=>no,o8S:()=>xl,BIS:()=>Ms,gRc:()=>dD,Ql9:()=>_A,Ocv:()=>TA,abz:()=>wl,Z63:()=>xo,aKT:()=>Mc,uvJ:()=>Mr,zcH:()=>Ra,bkB:()=>Ws,$GK:()=>yn,nKC:()=>We,zZn:()=>$o,_q3:()=>hm,MKu:()=>pm,xe9:()=>bh,Co$:()=>$v,Vns:()=>rc,SKi:()=>Ji,Agw:()=>la,PLl:()=>fo,sFG:()=>h1,_9s:()=>Z_,czy:()=>Mf,WPN:()=>ec,C4Q:()=>nd,NYb:()=>cA,giA:()=>Zb,RxE:()=>Wb,c1b:()=>zf,gXe:()=>Si,Af3:()=>os,L39:()=>yN,a0P:()=>SN,Ol2:()=>cg,w6W:()=>fw,SmG:()=>OA,Rfq:()=>wr,oKB:()=>ns,WQX:()=>de,QuC:()=>Xi,EmA:()=>qs,N4e:()=>Fi,O8t:()=>DN,An2:()=>jf,H3F:()=>Gb,H8p:()=>Da,KH2:()=>hu,TgB:()=>Xc,wOt:()=>Fe,WHO:()=>Yb,e01:()=>Jb,lNU:()=>Un,h9k:()=>Ym,$MX:()=>Ef,ZF7:()=>Uc,Kcf:()=>sE,e5t:()=>uE,UyX:()=>lE,cWb:()=>aE,osQ:()=>cE,H5H:()=>Fg,Zy3:()=>Tt,mq5:()=>Yy,JZv:()=>Xt,TL3:()=>iN,LfX:()=>so,plB:()=>Ol,jNT:()=>rm,zjR:()=>qb,ngT:()=>ua,XSP:()=>GT,TL$:()=>Yi,Tbb:()=>wn,rcV:()=>ll,nM4:()=>Bv,Vt3:()=>sg,Mj6:()=>Ai,GFd:()=>Hv,OA$:()=>Es,Jv_:()=>cb,aNF:()=>ub,R7$:()=>D_,BMQ:()=>bg,HbH:()=>Iy,ZvI:()=>By,AVh:()=>Mg,vxM:()=>Hy,wni:()=>U0,VBU:()=>ma,FsC:()=>Fs,jDH:()=>In,G2t:()=>ci,$C:()=>xs,EJ8:()=>_a,rXU:()=>$c,nrm:()=>Rg,eu8:()=>Pg,bVm:()=>lh,qex:()=>ah,k0s:()=>sh,j41:()=>oh,RV6:()=>Xy,xGo:()=>Ru,Mr5:()=>xg,pXf:()=>w0,KVO:()=>Ir,kS0:()=>Pu,QTQ:()=>C_,bIt:()=>Bg,lsd:()=>$0,By9:()=>Cu,qSk:()=>Oh,XpG:()=>N0,nI1:()=>wb,bMT:()=>Tb,i5U:()=>Mb,ii3:()=>Sb,SdG:()=>I0,NAR:()=>O0,Y8G:()=>wg,FS9:()=>Ug,Mz_:()=>hh,lJ4:()=>fb,eq3:()=>hb,l_i:()=>pb,sMw:()=>gb,ziG:()=>mb,s1E:()=>_b,l4e:()=>vb,mGM:()=>H0,sdS:()=>W0,Dyx:()=>Gy,Z7z:()=>Wy,fX1:()=>$y,Njj:()=>jo,eBV:()=>Ei,B4B:()=>hp,n$t:()=>Zm,DNE:()=>Qc,C5r:()=>Ab,EFF:()=>eb,JRh:()=>jg,SpI:()=>ph,Lme:()=>Hg,E5c:()=>$g,SjE:()=>Wg,DH7:()=>ab,mxI:()=>zg,R50:()=>Gg,GBs:()=>j0}),D(467);let H=null,V=1;const J=Symbol("SIGNAL");function W(e){const t=H;return H=e,t}function Se(e){if((!et(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==V)){if(!e.producerMustRecompute(e)&&!ut(e))return e.dirty=!1,void(e.lastCleanEpoch=V);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=V}}function ut(e){ft(e);for(let t=0;t0}function ft(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let $e=null;var sn=D(1413),an=D(8359),_n=D(4412),On=D(6354);const Un="https://g.co/ng/security#xss";class Fe extends Error{constructor(t,n){super(Tt(t,n)),this.code=t}}function Tt(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function jt(e){return{toString:e}.toString()}const Zn="__parameters__";function Qn(e,t,n){return jt(()=>{const r=function vn(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...a){if(this instanceof o)return r.apply(this,a),this;const u=new o(...a);return f.annotation=u,f;function f(y,S,L){const K=y.hasOwnProperty(Zn)?y[Zn]:Object.defineProperty(y,Zn,{value:[]})[Zn];for(;K.length<=L;)K.push(null);return(K[L]=K[L]||[]).push(u),y}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}const Xt=globalThis;function ln(e){for(let t in e)if(e[t]===ln)return t;throw Error("Could not find renamed property on target object.")}function xr(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function wn(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(wn).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function kn(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Nr=ln({__forward_ref__:ln});function wr(e){return e.__forward_ref__=wr,e.toString=function(){return wn(this())},e}function Ee(e){return Ne(e)?e():e}function Ne(e){return"function"==typeof e&&e.hasOwnProperty(Nr)&&e.__forward_ref__===wr}function Zt(e,t,n){e!=t&&function Bt(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(n,e,t,"==")}function In(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ci(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ri(e){return Ur(e,Y)||Ur(e,ue)}function so(e){return null!==Ri(e)}function Ur(e,t){return e.hasOwnProperty(t)?e[t]:null}function Wi(e){return e&&(e.hasOwnProperty(le)||e.hasOwnProperty(Je))?e[le]:null}const Y=ln({\u0275prov:ln}),le=ln({\u0275inj:ln}),ue=ln({ngInjectableDef:ln}),Je=ln({ngInjectorDef:ln});class We{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=In({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function nt(e){return e&&!!e.\u0275providers}const ct=ln({\u0275cmp:ln}),Lt=ln({\u0275dir:ln}),qt=ln({\u0275pipe:ln}),tn=ln({\u0275mod:ln}),Bn=ln({\u0275fac:ln}),pr=ln({__NG_ELEMENT_ID__:ln}),Yn=ln({__NG_ENV_ID__:ln});function $t(e){return"string"==typeof e?e:null==e?"":String(e)}function Zi(e,t){throw new Fe(-201,!1)}var yn=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}(yn||{});let fs;function zo(){return fs}function Or(e){const t=fs;return fs=e,t}function hs(e,t,n){const r=Ri(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&yn.Optional?null:void 0!==t?t:void Zi()}const Tr={},xi="__NG_DI_FLAG__",ao="ngTempTokenPath",bo=/\n/gm,Do="__source";let Ti;function ri(e){const t=Ti;return Ti=e,t}function Eo(e,t=yn.Default){if(void 0===Ti)throw new Fe(-203,!1);return null===Ti?hs(e,void 0,t):Ti.get(e,t&yn.Optional?null:void 0,t)}function Ir(e,t=yn.Default){return(zo()||Eo)(Ee(e),t)}function de(e,t=yn.Default){return Ir(e,Ge(t))}function Ge(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function xt(e){const t=[];for(let n=0;nArray.isArray(n)?Mi(n,t):t(n))}function Yo(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Co(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function di(e,t,n){let r=jr(e,t);return r>=0?e[1|r]=n:(r=~r,function Ys(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function wo(e,t){const n=jr(e,t);if(n>=0)return e[1|n]}function jr(e,t){return function qo(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const a=r+(o-r>>1),u=e[a<t?o=a:r=a+1}return~(o<t){u=a-1;break}}}for(;a-1){let a;for(;++oa?"":o[L+1].toLowerCase(),2&r&&S!==K){if(qr(r))return!1;u=!0}}}}else{if(!u&&!qr(r)&&!qr(y))return!1;if(u&&qr(y))continue;u=!1,r=y|1&r}}return qr(r)||u}function qr(e){return!(1&e)}function To(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let a=!1;for(;o-1)for(n++;n0?'="'+f+'"':"")+"]"}else 8&r?o+="."+u:4&r&&(o+=" "+u);else""!==o&&!qr(u)&&(t+=ga(a,o),o=""),r=u,a=a||!qr(r);n++}return""!==o&&(t+=ga(a,o)),t}function ma(e){return jt(()=>{const t=Ll(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ts.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Si.Emulated,styles:e.styles||Hn,_:null,schemas:e.schemas||null,tView:null,id:""};va(n);const r=e.dependencies;return n.directiveDefs=ko(r,!1),n.pipeDefs=ko(r,!0),n.id=function Wa(e){let t=0;const n=[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 n)t=Math.imul(31,t)+o.charCodeAt(0)|0;return t+=2147483648,"c"+t}(n),n})}function dl(e){return An(e)||Hr(e)}function Ps(e){return null!==e}function xs(e){return jt(()=>({type:e.type,bootstrap:e.bootstrap||Hn,declarations:e.declarations||Hn,imports:e.imports||Hn,exports:e.exports||Hn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Lo(e,t){if(null==e)return zi;const n={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r];let a,u,f=Ai.None;Array.isArray(o)?(f=o[0],a=o[1],u=o[2]??a):(a=o,u=o),t?(n[a]=f!==Ai.None?[r,f]:r,t[a]=u):n[a]=r}return n}function Fs(e){return jt(()=>{const t=Ll(e);return va(t),t})}function _a(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 An(e){return e[ct]||null}function Hr(e){return e[Lt]||null}function Lr(e){return e[qt]||null}function Xi(e){const t=An(e)||Hr(e)||Lr(e);return null!==t&&t.standalone}function oi(e,t){const n=e[tn]||null;if(!n&&!0===t)throw new Error(`Type ${wn(e)} does not have '\u0275mod' property.`);return n}function Ll(e){const t={};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:t,inputTransforms:null,inputConfig:e.inputs||zi,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Hn,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Lo(e.inputs,t),outputs:Lo(e.outputs),debugInfo:null}}function va(e){e.features?.forEach(t=>t(e))}function ko(e,t){if(!e)return null;const n=t?Lr:dl;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(Ps)}function qs(e){return{\u0275providers:e}}function ns(...e){return{\u0275providers:Ls(0,e),\u0275fromNgModule:!0}}function Ls(e,...t){const n=[],r=new Set;let o;const a=u=>{n.push(u)};return Mi(t,u=>{const f=u;ea(f,a,[],r)&&(o||=[],o.push(f))}),void 0!==o&&Ga(o,a),n}function Ga(e,t){for(let n=0;n{t(a,r)})}}function ea(e,t,n,r){if(!(e=Ee(e)))return!1;let o=null,a=Wi(e);const u=!a&&An(e);if(a||u){if(u&&!u.standalone)return!1;o=e}else{const y=e.ngModule;if(a=Wi(y),!a)return!1;o=y}const f=r.has(o);if(u){if(f)return!1;if(r.add(o),u.dependencies){const y="function"==typeof u.dependencies?u.dependencies():u.dependencies;for(const S of y)ea(S,t,n,r)}}else{if(!a)return!1;{if(null!=a.imports&&!f){let S;r.add(o);try{Mi(a.imports,L=>{ea(L,t,n,r)&&(S||=[],S.push(L))})}finally{}void 0!==S&&Ga(S,t)}if(!f){const S=lo(o)||(()=>new o);t({provide:o,useFactory:S,deps:Hn},o),t({provide:po,useValue:o,multi:!0},o),t({provide:xo,useValue:()=>Ir(o),multi:!0},o)}const y=a.providers;if(null!=y&&!f){const S=e;ya(y,L=>{t(L,S)})}}}return o!==e&&void 0!==e.providers}function ya(e,t){for(let n of e)nt(n)&&(n=n.\u0275providers),Array.isArray(n)?ya(n,t):t(n)}const za=ln({provide:String,useValue:ln});function ba(e){return null!==e&&"object"==typeof e&&za in e}function rs(e){return"function"==typeof e}const Da=new We(""),co={},is={};let ta;function ks(){return void 0===ta&&(ta=new es),ta}class Mr{}class go extends Mr{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,na(t,u=>this.processProvider(u)),this.records.set(Is,yi(void 0,this)),o.has("environment")&&this.records.set(Mr,yi(void 0,this));const a=this.records.get(Da);null!=a&&"string"==typeof a.value&&this.scopes.add(a.value),this.injectorDefTypes=new Set(this.get(po,Hn,yn.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=W(null);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(),W(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=ri(this),r=Or(void 0);try{return t()}finally{ri(n),Or(r)}}get(t,n=Tr,r=yn.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Yn))return t[Yn](this);r=Ge(r);const a=ri(this),u=Or(void 0);try{if(!(r&yn.SkipSelf)){let y=this.records.get(t);if(void 0===y){const S=function hl(e){return"function"==typeof e||"object"==typeof e&&e instanceof We}(t)&&Ri(t);y=S&&this.injectableDefInScope(S)?yi(vs(t),co):null,this.records.set(t,y)}if(null!=y)return this.hydrate(t,y)}return(r&yn.Self?ks():this.parent).get(t,n=r&yn.Optional&&n===Tr?null:n)}catch(f){if("NullInjectorError"===f.name){if((f[ao]=f[ao]||[]).unshift(wn(t)),a)throw f;return function Gi(e,t,n,r){const o=e[ao];throw t[Do]&&o.unshift(t[Do]),e.message=function rr(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=wn(t);if(Array.isArray(t))o=t.map(wn).join(" -> ");else if("object"==typeof t){let a=[];for(let u in t)if(t.hasOwnProperty(u)){let f=t[u];a.push(u+":"+("string"==typeof f?JSON.stringify(f):wn(f)))}o=`{${a.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(bo,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[ao]=null,e}(f,t,"R3InjectorError",this.source)}throw f}finally{Or(u),ri(a)}}resolveInjectorInitializers(){const t=W(null),n=ri(this),r=Or(void 0);try{const a=this.get(xo,Hn,yn.Self);for(const u of a)u()}finally{ri(n),Or(r),W(t)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(wn(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Fe(205,!1)}processProvider(t){let n=rs(t=Ee(t))?t:Ee(t&&t.provide);const r=function hi(e){return ba(e)?yi(void 0,e.useValue):yi(kr(e),co)}(t);if(!rs(t)&&!0===t.multi){let o=this.records.get(n);o||(o=yi(void 0,co,!0),o.factory=()=>xt(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){const r=W(null);try{return n.value===co&&(n.value=is,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Qa(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{W(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=Ee(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function vs(e){const t=Ri(e),n=null!==t?t.factory:lo(e);if(null!==n)return n;if(e instanceof We)throw new Fe(204,!1);if(e instanceof Function)return function fi(e){if(e.length>0)throw new Fe(204,!1);const n=function Pi(e){return e&&(e[Y]||e[ue])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Fe(204,!1)}function kr(e,t,n){let r;if(rs(e)){const o=Ee(e);return lo(o)||vs(o)}if(ba(e))r=()=>Ee(e.useValue);else if(function Xa(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...xt(e.deps||[]));else if(function Ka(e){return!(!e||!e.useExisting)}(e))r=()=>Ir(Ee(e.useExisting));else{const o=Ee(e&&(e.useClass||e.provide));if(!function Bs(e){return!!e.deps}(e))return lo(o)||vs(o);r=()=>new o(...xt(e.deps))}return r}function yi(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function na(e,t){for(const n of e)Array.isArray(n)?na(n,t):n&&nt(n)?na(n.\u0275providers,t):t(n)}function Fi(e,t){e instanceof go&&e.assertNotDestroyed();const r=ri(e),o=Or(void 0);try{return t()}finally{ri(r),Or(o)}}function Ya(){return void 0!==zo()||null!=function Xo(){return Ti}()}function os(e){if(!Ya())throw new Fe(-203,!1)}const Rn=0,gt=1,Wt=2,er=3,ei=4,Rr=5,ti=6,Bo=7,Pr=8,bi=9,Li=10,dn=11,Vo=12,Vs=13,Qi=14,$r=15,Ja=16,Ea=17,ys=18,ra=19,pl=20,Mo=21,Ca=22,Ar=23,Tn=25,bs=1,uo=7,So=9,Xr=10;var gl=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(gl||{});function ki(e){return Array.isArray(e)&&"object"==typeof e[bs]}function pi(e){return Array.isArray(e)&&!0===e[bs]}function ia(e){return!!(4&e.flags)}function Us(e){return e.componentOffset>-1}function Za(e){return!(1&~e.flags)}function Ao(e){return!!e.template}function ml(e){return!!(512&e[Wt])}class js{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function as(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}function Es(){return Uo}function Uo(e){return e.type.prototype.ngOnChanges&&(e.setInput=yu),dc}function dc(){const e=hc(this),t=e?.current;if(t){const n=e.previous;if(n===zi)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function yu(e,t,n,r,o){const a=this.declaredInputs[r],u=hc(e)||function bu(e,t){return e[fc]=t}(e,{previous:zi,current:null}),f=u.current||(u.current={}),y=u.previous,S=y[a];f[a]=new js(S&&S.currentValue,n,y===zi),as(e,t,o,n)}Es.ngInherit=!0;const fc="__ngSimpleChanges__";function hc(e){return e[fc]||null}const ls=function(e,t,n){},pc="svg",Hl="math";let $l=!1;function _r(e){for(;Array.isArray(e);)e=e[Rn];return e}function oa(e,t){return _r(t[e])}function Ni(e,t){return _r(t[e.index])}function vl(e,t){return e.data[t]}function el(e,t){return e[t]}function No(e,t){const n=t[e];return ki(n)?n:n[Rn]}function _c(e){return!(128&~e[Wt])}function Cs(e,t){return null==t?null:e[t]}function A(e){e[Ea]=0}function d(e){1024&e[Wt]||(e[Wt]|=1024,_c(e)&&Q(e))}function T(e){return!!(9216&e[Wt]||e[Ar]?.dirty)}function F(e){e[Li].changeDetectionScheduler?.notify(1),T(e)?Q(e):64&e[Wt]&&(function _l(){return $l}()?(e[Wt]|=1024,Q(e)):e[Li].changeDetectionScheduler?.notify())}function Q(e){e[Li].changeDetectionScheduler?.notify();let t=je(e);for(;null!==t&&!(8192&t[Wt])&&(t[Wt]|=8192,_c(t));)t=je(t)}function he(e,t){if(!(256&~e[Wt]))throw new Fe(911,!1);null===e[Mo]&&(e[Mo]=[]),e[Mo].push(t)}function je(e){const t=e[er];return pi(t)?t[er]:t}const Oe={lFrame:Eu(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function nn(){return Oe.bindingsEnabled}function hn(){return null!==Oe.skipHydrationRootTNode}function Ze(){return Oe.lFrame.lView}function mn(){return Oe.lFrame.tView}function Ei(e){return Oe.lFrame.contextLView=e,e[Pr]}function jo(e){return Oe.lFrame.contextLView=null,e}function sr(){let e=Wl();for(;null!==e&&64===e.type;)e=e.parent;return e}function Wl(){return Oe.lFrame.currentTNode}function Ho(){const e=Oe.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Oo(e,t){const n=Oe.lFrame;n.currentTNode=e,n.isParent=t}function yl(){return Oe.lFrame.isParent}function ws(){Oe.lFrame.isParent=!1}function En(){const e=Oe.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Er(){return Oe.lFrame.bindingIndex}function Wr(){return Oe.lFrame.bindingIndex++}function eo(e){const t=Oe.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function vc(e){Oe.lFrame.inI18n=e}function Pd(e,t){const n=Oe.lFrame;n.bindingIndex=n.bindingRootIndex=e,Hs(t)}function Hs(e){Oe.lFrame.currentDirectiveIndex=e}function tl(){return Oe.lFrame.currentQueryIndex}function nl(e){Oe.lFrame.currentQueryIndex=e}function _m(e){const t=e[gt];return 2===t.type?t.declTNode:1===t.type?e[Rr]:null}function Ah(e,t,n){if(n&yn.SkipSelf){let o=t,a=e;for(;!(o=o.parent,null!==o||n&yn.Host||(o=_m(a),null===o||(a=a[Qi],10&o.type))););if(null===o)return!1;t=o,e=a}const r=Oe.lFrame=Nh();return r.currentTNode=t,r.lView=e,!0}function xd(e){const t=Nh(),n=e[gt];Oe.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Nh(){const e=Oe.lFrame,t=null===e?null:e.child;return null===t?Eu(e):t}function Eu(e){const t={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=t),t}function Fd(){const e=Oe.lFrame;return Oe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Ld=Fd;function kd(){const e=Fd();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 _o(){return Oe.lFrame.selectedIndex}function sa(e){Oe.lFrame.selectedIndex=e}function Qr(){const e=Oe.lFrame;return vl(e.tView,e.selectedIndex)}function Oh(){Oe.lFrame.currentNamespace=pc}function Cu(){Oe.lFrame.currentNamespace=Hl}let Ph=!0;function yc(){return Ph}function aa(e){Ph=e}function bc(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[y]<0&&(e[Ea]+=65536),(f>14>16&&(3&e[Wt])===t&&(e[Wt]+=16384,Gl(f,a)):Gl(f,a)}const Oa=-1;class Ia{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Su(e){return e!==Oa}function zl(e){return 32767&e}function Kl(e,t){let n=function Au(e){return e>>16}(e),r=t;for(;n>0;)r=r[Qi],n--;return r}let Nu=!0;function Dc(e){const t=Nu;return Nu=e,t}const Wd=255,Gd=5;let zd=0;const $s={};function Xl(e,t){const n=Iu(e,t);if(-1!==n)return n;const r=t[gt];r.firstCreatePass&&(e.injectorIndex=t.length,Ou(r.data,e),Ou(t,null),Ou(r.blueprint,null));const o=Ec(e,t),a=e.injectorIndex;if(Su(o)){const u=zl(o),f=Kl(o,t),y=f[gt].data;for(let S=0;S<8;S++)t[a+S]=f[u+S]|y[u+S]}return t[a+8]=o,a}function Ou(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Iu(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Ec(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=Vh(o),null===r)return Oa;if(n++,o=o[Qi],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Oa}function Ql(e,t,n){!function kh(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(pr)&&(r=n[pr]),null==r&&(r=n[pr]=zd++);const o=r&Wd;t.data[e+(o>>Gd)]|=1<=0?t&Wd:Zd:t}(n);if("function"==typeof a){if(!Ah(t,e,r))return r&yn.Host?Yl(o,0,r):Kd(t,n,r,o);try{let u;if(u=a(r),null!=u||r&yn.Optional)return u;Zi()}finally{Ld()}}else if("number"==typeof a){let u=null,f=Iu(e,t),y=Oa,S=r&yn.Host?t[$r][Rr]:null;for((-1===f||r&yn.SkipSelf)&&(y=-1===f?Ec(e,t):t[f+8],y!==Oa&&Jd(r,!1)?(u=t[gt],f=zl(y),t=Kl(y,t)):f=-1);-1!==f;){const L=t[gt];if(Yd(a,f,L.data)){const K=Bh(f,t,n,u,r,S);if(K!==$s)return K}y=t[f+8],y!==Oa&&Jd(r,t[gt].data[f+8]===S)&&Yd(a,f,t)?(u=L,f=zl(y),t=Kl(y,t)):f=-1}}return o}function Bh(e,t,n,r,o,a){const u=t[gt],f=u.data[e+8],L=El(f,u,n,null==r?Us(f)&&Nu:r!=u&&!!(3&f.type),o&yn.Host&&a===f);return null!==L?Cl(t,u,L,f):$s}function El(e,t,n,r,o){const a=e.providerIndexes,u=t.data,f=1048575&a,y=e.directiveStart,L=a>>20,ge=o?f+L:e.directiveEnd;for(let Me=r?f:f+L;Me=y&&ke.type===n)return Me}if(o){const Me=u[y];if(Me&&Ao(Me)&&Me.type===n)return y}return null}function Cl(e,t,n,r){let o=e[n];const a=t.data;if(function Hd(e){return e instanceof Ia}(o)){const u=o;u.resolving&&function Ro(e,t){throw t&&t.join(" > "),new Fe(-200,e)}(function Sn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():$t(e)}(a[n]));const f=Dc(u.canSeeViewProviders);u.resolving=!0;const S=u.injectImpl?Or(u.injectImpl):null;Ah(e,r,yn.Default);try{o=e[n]=u.factory(void 0,a,e,r),t.firstCreatePass&&n>=r.directiveStart&&function vm(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:a}=t.type.prototype;if(r){const u=Uo(t);(n.preOrderHooks??=[]).push(e,u),(n.preOrderCheckHooks??=[]).push(e,u)}o&&(n.preOrderHooks??=[]).push(0-e,o),a&&((n.preOrderHooks??=[]).push(e,a),(n.preOrderCheckHooks??=[]).push(e,a))}(n,a[n],t)}finally{null!==S&&Or(S),Dc(f),u.resolving=!1,Ld()}}return o}function Yd(e,t,n){return!!(n[t+(e>>Gd)]&1<{const t=e.prototype.constructor,n=t[Bn]||wc(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const a=o[Bn]||wc(o);if(a&&a!==n)return a;o=Object.getPrototypeOf(o)}return a=>new a})}function wc(e){return Ne(e)?()=>{const t=wc(Ee(e));return t&&t()}:lo(e)}function Vh(e){const t=e[gt],n=t.type;return 2===n?t.declTNode:1===n?e[Rr]:null}function Pu(e){return function Cc(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o{class e{static#e=this.THROW_IF_NOT_FOUND=Tr;static#t=this.NULL=new es;static create(n,r){if(Array.isArray(n))return Wh({name:""},r,n,"");{const o=n.name??"";return Wh({name:o},n.parent,n.providers,o)}}static#n=this.\u0275prov=In({token:e,providedIn:"any",factory:()=>Ir(Is)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function rf(e){return e.ngOriginalError}class Ra{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&rf(t);for(;n&&rf(n);)n=rf(n);return n||null}}const zh=new We("",{providedIn:"root",factory:()=>de(Ra).handleError.bind(void 0)});let wl=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=Am;static#t=this.__NG_ENV_ID__=n=>n}return e})();class Sm extends wl{constructor(t){super(),this._lView=t}onDestroy(t){return he(this._lView,t),()=>function ye(e,t){if(null===e[Mo])return;const n=e[Mo].indexOf(t);-1!==n&&e[Mo].splice(n,1)}(this._lView,t)}}function Am(){return new Sm(Ze())}function Om(){return Jl(sr(),Ze())}function Jl(e,t){return new Mc(Ni(e,t))}let Mc=(()=>{class e{constructor(n){this.nativeElement=n}static#e=this.__NG_ELEMENT_ID__=Om}return e})();function Kh(e){return e instanceof Mc?e.nativeElement:e}function Fu(e){return t=>{setTimeout(e,void 0,t)}}const Ws=class Xh extends sn.B{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,Ya()&&(this.destroyRef=de(wl,{optional:!0})??void 0)}emit(t){const n=W(null);try{super.next(t)}finally{W(n)}}subscribe(t,n,r){let o=t,a=n||(()=>null),u=r;if(t&&"object"==typeof t){const y=t;o=y.next?.bind(y),a=y.error?.bind(y),u=y.complete?.bind(y)}this.__isAsync&&(a=Fu(a),o&&(o=Fu(o)),u&&(u=Fu(u)));const f=super.subscribe({next:o,error:a,complete:u});return t instanceof an.yU&&t.add(f),f}};function Qh(){return this._results[Symbol.iterator]()}class Lu{static#e=Symbol.iterator;get changes(){return this._changes??=new Ws}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const n=Lu.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=Qh)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;const r=function ii(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Qo(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rTs}),Ts="ng",fo=new We(""),la=new We("",{providedIn:"platform",factory:()=>"unknown"}),Wo=new We(""),Ms=new We("",{providedIn:"root",factory:()=>zr().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let gf=()=>null;function kc(e,t,n=!1){return gf(e,t,n)}const km=new We("",{providedIn:"root",factory:()=>!1});let bf,Df;function Vc(e){return function lp(){if(void 0===bf&&(bf=null,Xt.trustedTypes))try{bf=Xt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return bf}()?.createHTML(e)||e}function jm(e){return function cp(){if(void 0===Df&&(Df=null,Xt.trustedTypes))try{Df=Xt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Df}()?.createScriptURL(e)||e}class ql{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Un})`}}class eE extends ql{getTypeName(){return"HTML"}}class tE extends ql{getTypeName(){return"Style"}}class nE extends ql{getTypeName(){return"Script"}}class rE extends ql{getTypeName(){return"URL"}}class iE extends ql{getTypeName(){return"ResourceURL"}}function ll(e){return e instanceof ql?e.changingThisBreaksApplicationSecurity:e}function Uc(e,t){const n=function oE(e){return e instanceof ql&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Un})`)}return n===t}function sE(e){return new eE(e)}function aE(e){return new tE(e)}function lE(e){return new nE(e)}function cE(e){return new rE(e)}function uE(e){return new iE(e)}function Hm(e){const t=new fE(e);return function hE(){try{return!!(new window.DOMParser).parseFromString(Vc(""),"text/html")}catch{return!1}}()?new dE(t):t}class dE{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const n=(new window.DOMParser).parseFromString(Vc(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class fE{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=Vc(t),n}}const pE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ef(e){return(e=String(e)).match(pE)?e:"unsafe:"+e}function cl(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Gu(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const $m=cl("area,br,col,hr,img,wbr"),Wm=cl("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Gm=cl("rp,rt"),up=Gu($m,Gu(Wm,cl("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")),Gu(Gm,cl("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")),Gu(Gm,Wm)),dp=cl("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),zm=Gu(dp,cl("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"),cl("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")),gE=cl("script,style,template");class mE{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)o.push(n),n=yE(n);else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let a=vE(n);if(a){n=a;break}n=o.pop()}return this.buf.join("")}startElement(t){const n=Km(t).toLowerCase();if(!up.hasOwnProperty(n))return this.sanitizedSomething=!0,!gE.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let o=0;o"),!0}endElement(t){const n=Km(t).toLowerCase();up.hasOwnProperty(n)&&!$m.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Qm(t))}}function vE(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw Xm(t);return t}function yE(e){const t=e.firstChild;if(t&&function _E(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw Xm(t);return t}function Km(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function Xm(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const bE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,DE=/([^\#-~ |!])/g;function Qm(e){return e.replace(/&/g,"&").replace(bE,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(DE,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let Cf;function Ym(e,t){let n=null;try{Cf=Cf||Hm(e);let r=t?String(t):"";n=Cf.getInertBodyElement(r);let o=5,a=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=a,a=n.innerHTML,n=Cf.getInertBodyElement(r)}while(r!==a);return Vc((new mE).sanitizeChildren(fp(n)||n))}finally{if(n){const r=fp(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function fp(e){return"content"in e&&function EE(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ec=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}(ec||{});function hp(e){const t=zu();return t?t.sanitize(ec.URL,e)||"":Uc(e,"URL")?ll(e):Ef($t(e))}function Jm(e){const t=zu();if(t)return jm(t.sanitize(ec.RESOURCE_URL,e)||"");if(Uc(e,"ResourceURL"))return jm(ll(e));throw new Fe(904,!1)}function Zm(e,t,n){return function AE(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Jm:hp}(t,n)(e)}function zu(){const e=Ze();return e&&e[Li].sanitizer}const NE=/^>|^->||--!>|)/g,IE="\u200b$1\u200b";function Ss(e){return e instanceof Function?e():e}var Mf=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Mf||{});let _p;function vp(e,t){return _p(e,t)}function Hc(e,t,n,r,o){if(null!=r){let a,u=!1;pi(r)?a=r:ki(r)&&(u=!0,r=r[Rn]);const f=_r(r);0===e&&null!==n?null==o?u_(t,n,f):tc(t,n,f,o||null,!0):1===e&&null!==n?tc(t,n,f,o||null,!0):2===e?function Qu(e,t,n){const r=Nf(e,t);r&&function YE(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,f,u):3===e&&t.destroyNode(f),null!=a&&function qE(e,t,n,r,o){const a=n[uo];a!==_r(n)&&Hc(t,e,r,a,o);for(let f=Xr;ft.replace(OE,IE))}(t))}function Sf(e,t,n){return e.createElement(t,n)}function a_(e,t){t[Li].changeDetectionScheduler?.notify(1),If(e,t,t[dn],2,null,null)}function l_(e,t){const n=e[So],r=n.indexOf(t);n.splice(r,1)}function Ku(e,t){if(e.length<=Xr)return;const n=Xr+t,r=e[n];if(r){const o=r[Ja];null!==o&&o!==e&&l_(o,r),t>0&&(e[n-1][ei]=r[ei]);const a=Co(e,Xr+t);!function $E(e,t){a_(e,t),t[Rn]=null,t[Rr]=null}(r[gt],r);const u=a[ys];null!==u&&u.detachView(a[gt]),r[er]=null,r[ei]=null,r[Wt]&=-129}return r}function Af(e,t){if(!(256&t[Wt])){const n=t[dn];n.destroyNode&&If(e,t,n,3,null,null),function GE(e){let t=e[Vo];if(!t)return Dp(e[gt],e);for(;t;){let n=null;if(ki(t))n=t[Vo];else{const r=t[Xr];r&&(n=r)}if(!n){for(;t&&!t[ei]&&t!==e;)ki(t)&&Dp(t[gt],t),t=t[er];null===t&&(t=e),ki(t)&&Dp(t[gt],t),n=t&&t[ei]}t=n}}(t)}}function Dp(e,t){if(256&t[Wt])return;const n=W(null);try{t[Wt]&=-129,t[Wt]|=256,t[Ar]&&function Qe(e){if(ft(e),et(e))for(let t=0;t=0?r[u]():r[-u].unsubscribe(),a+=2}else n[a].call(r[n[a+1]]);null!==r&&(t[Bo]=null);const o=t[Mo];if(null!==o){t[Mo]=null;for(let a=0;a-1){const{encapsulation:a}=e.data[r.directiveStart+o];if(a===Si.None||a===Si.Emulated)return null}return Ni(r,n)}}function tc(e,t,n,r,o){e.insertBefore(t,n,r,o)}function u_(e,t,n){e.appendChild(t,n)}function d_(e,t,n,r,o){null!==r?tc(e,t,n,r,o):u_(e,t,n)}function Nf(e,t){return e.parentNode(t)}function f_(e,t,n){return p_(e,t,n)}function h_(e,t,n){return 40&e.type?Ni(e,n):null}let Cp,p_=h_;function g_(e,t){p_=e,Cp=t}function Of(e,t,n,r){const o=Ep(e,r,t),a=t[dn],f=f_(r.parent||t[Rr],r,t);if(null!=o)if(Array.isArray(n))for(let y=0;yTn&&E_(e,t,Tn,!1),ls(u?2:0,o),n(r,o)}finally{sa(a),ls(u?3:1,o)}}function Sp(e,t,n){if(ia(t)){const r=W(null);try{const a=t.directiveEnd;for(let u=t.directiveStart;unull;function A_(e,t,n,r,o){for(let a in t){if(!t.hasOwnProperty(a))continue;const u=t[a];if(void 0===u)continue;r??={};let f,y=Ai.None;Array.isArray(u)?(f=u[0],y=u[1]):f=u;let S=a;if(null!==o){if(!o.hasOwnProperty(a))continue;S=o[a]}0===e?N_(r,n,S,f,y):N_(r,n,S,f)}return r}function N_(e,t,n,r,o){let a;e.hasOwnProperty(n)?(a=e[n]).push(t,r):a=e[n]=[t,r],void 0!==o&&a.push(o)}function cs(e,t,n,r,o,a,u,f){const y=Ni(t,n);let L,S=t.inputs;!f&&null!=S&&(L=S[r])?(Fp(e,n,L,r,o),Us(t)&&function fC(e,t){const n=No(t,e);16&n[Wt]||(n[Wt]|=64)}(n,t.index)):3&t.type&&(r=function dC(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=u?u(o,t.value||"",r):o,a.setProperty(y,r,o))}function Ip(e,t,n,r){if(nn()){const o=null===r?null:{"":-1},a=function vC(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let a=0;a0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(u)!=f&&u.push(f),u.push(n,r,a)}}(e,t,r,Yu(e,n,o.hostVars,$n),o)}function La(e,t,n,r,o,a){const u=Ni(e,t);!function Pp(e,t,n,r,o,a,u){if(null==a)e.removeAttribute(t,o,n);else{const f=null==u?$t(a):u(a,r||"",o);e.setAttribute(t,o,f,n)}}(t[dn],u,a,e.value,n,r,o)}function wC(e,t,n,r,o,a){const u=a[t];if(null!==u)for(let f=0;f0&&(n[o-1][ei]=t),r!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{Q(e.lView)},consumerOnSignalRead(){this.lView[Ar]=this}},U_=100;function Ff(e,t=!0,n=0){const r=e[Li],o=r.rendererFactory;o.begin?.();try{!function PC(e,t){Bp(e,t);let n=0;for(;T(e);){if(n===U_)throw new Fe(103,!1);n++,Bp(e,1)}}(e,n)}catch(u){throw t&&xf(e,u),u}finally{o.end?.(),r.inlineEffectRunner?.flush()}}function xC(e,t,n,r){const o=t[Wt];if(!(256&~o))return;t[Li].inlineEffectRunner?.flush(),xd(t);let u=null,f=null;(function FC(e){return 2!==e.type})(e)&&(f=function NC(e){return e[Ar]??function OC(e){const t=V_.pop()??Object.create(RC);return t.lView=e,t}(e)}(t),u=function rt(e){return e&&(e.nextProducerIndex=0),W(e)}(f));try{A(t),function Ui(e){return Oe.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&T_(e,t,n,2,r);const y=!(3&~o);if(y){const K=e.preOrderCheckHooks;null!==K&&wu(t,K,null)}else{const K=e.preOrderHooks;null!==K&&Tu(t,K,0,null),Mu(t,0)}if(function LC(e){for(let t=h(e);null!==t;t=N(t)){if(!(t[Wt]&gl.HasTransplantedViews))continue;const n=t[So];for(let r=0;re.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(f,u),function IC(e){e.lView[Ar]!==e&&(e.lView=null,V_.push(e))}(f)),kd()}}function j_(e,t){for(let n=h(e);null!==n;n=N(n))for(let r=Xr;r-1&&(Ku(t,r),Co(n,r))}this._attachedToViewContainer=!1}Af(this._lView[gt],this._lView)}onDestroy(t){he(this._lView,t)}markForCheck(){ed(this._cdRefInjectingView||this._lView)}detach(){this._lView[Wt]&=-129}reattach(){F(this._lView),this._lView[Wt]|=128}detectChanges(){this._lView[Wt]|=1024,Ff(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Fe(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,a_(this._lView[gt],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Fe(902,!1);this._appRef=t,F(this._lView)}}let nd=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=UC}return e})();const BC=nd,VC=class extends BC{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const o=Ju(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new td(o)}};function UC(){return Lf(sr(),Ze())}function Lf(e,t){return 4&e.type?new VC(t,e,Jl(e,t)):null}let Q_=()=>null;function zc(e,t){return Q_(e,t)}class jf{}class u1{}class Y_{}class f1{resolveComponentFactory(t){throw function d1(e){const t=Error(`No component factory found for ${wn(e)}.`);return t.ngComponent=e,t}(t)}}let Hf=(()=>{class e{static#e=this.NULL=new f1}return e})();class Z_{}let h1=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function p1(){const e=Ze(),n=No(sr().index,e);return(ki(n)?n:e)[dn]}()}return e})(),g1=(()=>{class e{static#e=this.\u0275prov=In({token:e,providedIn:"root",factory:()=>null})}return e})();const Wp={},q_=new Set;function ua(e){q_.has(e)||(q_.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function ev(...e){}class Ji{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ws(!1),this.onMicrotaskEmpty=new Ws(!1),this.onStable=new Ws(!1),this.onError=new Ws(!1),typeof Zone>"u")throw new Fe(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)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function m1(){const e="function"==typeof Xt.requestAnimationFrame;let t=Xt[e?"requestAnimationFrame":"setTimeout"],n=Xt[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function y1(e){const t=()=>{!function v1(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Xt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,zp(e),e.isCheckStableRunning=!0,Gp(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),zp(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,a,u,f)=>{if(function b1(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(f))return n.invokeTask(o,a,u,f);try{return tv(e),n.invokeTask(o,a,u,f)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),nv(e)}},onInvoke:(n,r,o,a,u,f,y)=>{try{return tv(e),n.invoke(o,a,u,f,y)}finally{e.shouldCoalesceRunChangeDetection&&t(),nv(e)}},onHasTask:(n,r,o,a)=>{n.hasTask(o,a),r===o&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,zp(e),Gp(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,r,o,a)=>(n.handleError(o,a),e.runOutsideAngular(()=>e.onError.emit(a)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ji.isInAngularZone())throw new Fe(909,!1)}static assertNotInAngularZone(){if(Ji.isInAngularZone())throw new Fe(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const a=this._inner,u=a.scheduleEventTask("NgZoneEvent: "+o,t,_1,ev,ev);try{return a.runTask(u,n,r)}finally{a.cancelTask(u)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const _1={};function Gp(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 zp(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function tv(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function nv(e){e._nesting--,Gp(e)}let ad=(()=>{class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const r of n)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=In({token:e,providedIn:"root",factory:()=>new e})}return e})();function Ol(e){return!!oi(e)}function Wf(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,a=0;if(null!==t)for(let u=0;u0&&y_(e,n,a.join(" "))}}(Me,oo,it,r),void 0!==n&&function P1(e,t,n){const r=e.projection=[];for(let o=0;o{class e{static#e=this.__NG_ELEMENT_ID__=F1}return e})();function F1(){return hv(sr(),Ze())}const L1=zf,dv=class extends L1{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Jl(this._hostTNode,this._hostLView)}get injector(){return new Oi(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ec(this._hostTNode,this._hostLView);if(Su(t)){const n=Kl(t,this._hostLView),r=zl(t);return new Oi(n[gt].data[r+8],n)}return new Oi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=fv(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Xr}createEmbeddedView(t,n,r){let o,a;"number"==typeof r?o=r:null!=r&&(o=r.index,a=r.injector);const u=zc(this._lContainer,t.ssrId),f=t.createEmbeddedViewImpl(n||{},a,u);return this.insertImpl(f,o,Gc(this._hostTNode,u)),f}createComponent(t,n,r,o,a){const u=t&&!function st(e){return"function"==typeof e}(t);let f;if(u)f=n;else{const ke=n||{};f=ke.index,r=ke.injector,o=ke.projectableNodes,a=ke.environmentInjector||ke.ngModuleRef}const y=u?t:new ud(An(t)),S=r||this.parentInjector;if(!a&&null==y.ngModule){const it=(u?S:this.parentInjector).get(Mr,null);it&&(a=it)}const L=An(y.componentType??{}),K=zc(this._lContainer,L?.id??null),Me=y.create(S,o,K?.firstChild??null,a);return this.insertImpl(Me.hostView,f,Gc(this._hostTNode,K)),Me}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){const o=t._lView;if(function Rd(e){return pi(e[er])}(o)){const f=this.indexOf(t);if(-1!==f)this.detach(f);else{const y=o[er],S=new dv(y,y[Rr],y[er]);S.detach(S.indexOf(t))}}const a=this._adjustIndex(n),u=this._lContainer;return Zu(u,o,a,r),t.attachToViewContainerRef(),Yo(Yp(u),a,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=fv(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Ku(this._lContainer,n);r&&(Co(Yp(this._lContainer),n),Af(r[gt],r))}detach(t){const n=this._adjustIndex(t,-1),r=Ku(this._lContainer,n);return r&&null!=Co(Yp(this._lContainer),n)?new td(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function fv(e){return e[8]}function Yp(e){return e[8]||(e[8]=[])}function hv(e,t){let n;const r=t[e.index];return pi(r)?n=r:(n=R_(r,t,null,e),t[e.index]=n,Pf(t,n)),pv(n,t,e,r),new dv(n,e,t)}let pv=function mv(e,t,n,r){if(e[uo])return;let o;o=8&n.type?_r(r):function k1(e,t){const n=e[dn],r=n.createComment(""),o=Ni(t,e);return tc(n,Nf(n,o),r,function JE(e,t){return e.nextSibling(t)}(n,o),!1),r}(t,n),e[uo]=o},Jp=()=>!1;class Zp{constructor(t){this.queryList=t,this.matches=null}clone(){return new Zp(this.queryList)}setDirty(){this.queryList.setDirty()}}class qp{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[];for(let a=0;at.trim())}(t):t}}class eg{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r0)r.push(u[f/2]);else{const S=a[f+1],L=t[-y];for(let K=Xr;K=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=w(o.hostAttrs,n=w(n,o.hostAttrs))}}(r)}function rw(e,t){for(const n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;const r=t.inputs[n];if(void 0!==r&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n],null!==t.inputTransforms)){const o=Array.isArray(r)?r[0]:r;if(!t.inputTransforms.hasOwnProperty(o))continue;e.inputTransforms??={},e.inputTransforms[o]=t.inputTransforms[o]}}}function Xf(e){return e===zi?{}:e===Hn?[]:e}function ow(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function sw(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,a)=>{t(r,o,a),n(r,o,a)}:t}function aw(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function Bv(e){const t=n=>{const r=(Array.isArray(e)?e:e()).map(o=>"function"==typeof o?{directive:Ee(o),inputs:zi,outputs:zi}:{directive:Ee(o.directive),inputs:Uv(o.inputs),outputs:Uv(o.outputs)});null===n.hostDirectives?(n.findHostDirectiveDefs=Vv,n.hostDirectives=r):n.hostDirectives.unshift(...r)};return t.ngInherit=!0,t}function Vv(e,t,n){if(null!==e.hostDirectives)for(const r of e.hostDirectives){const o=Hr(r.directive);dw(o.declaredInputs,r.inputs),Vv(o,t,n),n.set(o,r),t.push(o)}}function Uv(e){if(void 0===e||0===e.length)return zi;const t={};for(let n=0;nn()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class lg extends $v{constructor(t){super(),this.moduleType=t}create(t){return new ag(this.moduleType,t,[])}}class Wv extends rc{constructor(t){super(),this.componentFactoryResolver=new cv(this),this.instance=null;const n=new go([...t.providers,{provide:rc,useValue:this},{provide:Hf,useValue:this.componentFactoryResolver}],t.parent||ks(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function cg(e,t,n=null){return new Wv({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let Xc=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new _n.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=In({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Yf(e){return!!ug(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function ug(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function ka(e,t,n){return e[t]=n}function fd(e,t){return e[t]}function ji(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function ic(e,t,n,r){const o=ji(e,t,n);return ji(e,t+1,r)||o}function Jf(e,t,n,r,o){const a=ic(e,t,n,r);return ji(e,t+2,o)||a}function Ks(e,t,n,r,o,a){const u=ic(e,t,n,r);return ic(e,t+2,o,a)||u}function Qc(e,t,n,r,o,a,u,f){const y=Ze(),S=mn(),L=e+Tn,K=S.firstCreatePass?function yw(e,t,n,r,o,a,u,f,y){const S=t.consts,L=Wc(t,e,4,u||null,Cs(S,f));Ip(t,n,L,Cs(S,y)),bc(t,L);const K=L.tView=Op(2,L,r,o,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,S,null);return null!==t.queries&&(t.queries.template(t,L),K.queries=t.queries.embeddedTView(L)),L}(L,S,y,t,n,r,o,a,u):S.data[L];Oo(K,!1);const ge=Gv(S,y,K,e);yc()&&Of(S,y,ge,K),vo(ge,y);const Me=R_(ge,y,ge,K);return y[L]=Me,Pf(y,Me),function gv(e,t,n){return Jp(e,t,n)}(Me,K,y),Za(K)&&Ap(S,y,K),null!=u&&Np(y,K,f),Qc}let Gv=function zv(e,t,n,r){return aa(!0),t[dn].createComment("")};function bg(e,t,n,r){const o=Ze();return ji(o,Wr(),t)&&(mn(),La(Qr(),o,e,t,n,r)),bg}function ru(e,t,n,r){return ji(e,Wr(),n)?t+$t(n)+r:$n}function rh(e,t){return e<<17|t<<2}function Pl(e){return e>>17&32767}function Dg(e){return 2|e}function sc(e){return(131068&e)>>2}function Eg(e,t){return-131069&e|t<<2}function Cg(e){return 1|e}function Cy(e,t,n,r){const o=e[n+1],a=null===t;let u=r?Pl(o):sc(o),f=!1;for(;0!==u&&(!1===f||a);){const S=e[u+1];iT(e[u],t)&&(f=!0,e[u+1]=r?Cg(S):Dg(S)),u=r?Pl(S):sc(S)}f&&(e[n+1]=r?Dg(o):Cg(o))}function iT(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&jr(e,t)>=0}const ro={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function wy(e){return e.substring(ro.key,ro.keyEnd)}function Ty(e,t){const n=ro.textEnd;return n===t?-1:(t=ro.keyEnd=function lT(e,t,n){for(;t32;)t++;return t}(e,ro.key=t,n),du(e,t,n))}function du(e,t,n){for(;t=0;n=Ty(t,n))di(e,wy(t),!0)}function fa(e,t,n,r){const o=mn(),a=eo(2);o.firstUpdatePass&&Py(o,null,a,r);const u=Ze();if(n!==$n&&ji(u,a,n)){const f=o.data[_o()];if(ky(f,r)&&!Ry(o,a)){let y=r?f.classesWithoutHost:f.stylesWithoutHost;null!==y&&(n=kn(y,n||"")),Tg(o,f,u,n,r)}else!function vT(e,t,n,r,o,a,u,f){o===$n&&(o=Hn);let y=0,S=0,L=0=e.expandoStartIndex}function Py(e,t,n,r){const o=e.data;if(null===o[n+1]){const a=o[_o()],u=Ry(e,n);ky(a,r)&&null===t&&!u&&(t=!1),t=function fT(e,t,n,r){const o=function mo(e){const t=Oe.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let a=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=_d(n=Sg(null,e,t,n,r),t.attrs,r),a=null);else{const u=t.directiveStylingLast;if(-1===u||e[u]!==o)if(n=Sg(o,e,t,n,r),null===a){let y=function hT(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==sc(r))return e[Pl(r)]}(e,t,r);void 0!==y&&Array.isArray(y)&&(y=Sg(null,e,t,y[1],r),y=_d(y,t.attrs,r),function pT(e,t,n,r){e[Pl(n?t.classBindings:t.styleBindings)]=r}(e,t,r,y))}else a=function gT(e,t,n){let r;const o=t.directiveEnd;for(let a=1+t.directiveStylingLast;a0)&&(S=!0)):L=n,o)if(0!==y){const ge=Pl(e[f+1]);e[r+1]=rh(ge,f),0!==ge&&(e[ge+1]=Eg(e[ge+1],r)),e[f+1]=function eT(e,t){return 131071&e|t<<17}(e[f+1],r)}else e[r+1]=rh(f,0),0!==f&&(e[f+1]=Eg(e[f+1],r)),f=r;else e[r+1]=rh(y,0),0===f?f=r:e[y+1]=Eg(e[y+1],r),y=r;S&&(e[r+1]=Dg(e[r+1])),Cy(e,L,r,!0),Cy(e,L,r,!1),function rT(e,t,n,r,o){const a=o?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&jr(a,t)>=0&&(n[r+1]=Cg(n[r+1]))}(t,L,e,r,a),u=rh(f,y),a?t.classBindings=u:t.styleBindings=u}(o,a,t,n,u,r)}}function Sg(e,t,n,r,o){let a=null;const u=n.directiveEnd;let f=n.directiveStylingLast;for(-1===f?f=n.directiveStart:f++;f0;){const y=e[o],S=Array.isArray(y),L=S?y[1]:y,K=null===L;let ge=n[o+1];ge===$n&&(ge=K?Hn:void 0);let Me=K?wo(ge,r):L===r?ge:void 0;if(S&&!ih(Me)&&(Me=wo(y,r)),ih(Me)&&(f=Me,u))return f;const ke=e[o+1];o=u?Pl(ke):sc(ke)}if(null!==t){let y=a?t.residualClasses:t.residualStyles;null!=y&&(f=wo(y,r))}return f}function ih(e){return void 0!==e}function ky(e,t){return!!(e.flags&(t?8:16))}function By(e,t,n){fa(di,Va,ru(Ze(),e,t,n),!0)}class NT{destroy(t){}updateValue(t,n){}swap(t,n){const r=Math.min(t,n),o=Math.max(t,n),a=this.detach(o);if(o-r>1){const u=this.detach(r);this.attach(r,a),this.attach(o,u)}else this.attach(r,a)}move(t,n){this.attach(n,this.detach(t))}}function Ag(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function Ng(e,t,n,r){return!(void 0===t||!t.has(r)||(e.attach(n,t.get(r)),t.delete(r),0))}function Vy(e,t,n,r,o){if(Ng(e,t,r,n(r,o)))e.updateValue(r,o);else{const a=e.create(r,o);e.attach(r,a)}}function Uy(e,t,n,r){const o=new Set;for(let a=t;a<=n;a++)o.add(r(a,e.at(a)));return o}class jy{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const n=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),void 0!==this._vMap){const o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}}function Hy(e,t,n){ua("NgControlFlow");const r=Ze(),o=Wr(),a=Og(r,Tn+e);if(ji(r,o,t)){const f=W(null);try{if(kp(a,0),-1!==t){const y=Ig(r[gt],Tn+t),S=zc(a,y.tView.ssrId);Zu(a,Ju(r,y,n,{dehydratedView:S}),0,Gc(y,S))}}finally{W(f)}}else{const f=k_(a,0);void 0!==f&&(f[Pr]=n)}}class IT{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-Xr}}function $y(e,t){return t}class PT{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}}function Wy(e,t,n,r,o,a,u,f,y,S,L,K,ge){ua("NgControlFlow");const Me=void 0!==y,ke=Ze(),it=f?u.bind(ke[$r][Pr]):u,Ct=new PT(Me,it);ke[Tn+e]=Ct,Qc(e+1,t,n,r,o,a),Me&&Qc(e+2,y,S,L,K,ge)}class xT extends NT{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Xr}at(t){return this.getLView(t)[Pr].$implicit}attach(t,n){const r=n[ti];this.needsIndexUpdate||=t!==this.length,Zu(this.lContainer,n,t,Gc(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function FT(e,t){return Ku(e,t)}(this.lContainer,t)}create(t,n){const r=zc(this.lContainer,this.templateTNode.tView.ssrId);return Ju(this.hostLView,this.templateTNode,new IT(this.lContainer,n,t),{dehydratedView:r})}destroy(t){Af(t[gt],t)}updateValue(t,n){this.getLView(t)[Pr].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(f)})}(u,e,a.trackByFn),u.updateIndexes(),a.hasEmptyBlock){const f=Wr(),y=0===u.length;if(ji(r,f,y)){const S=n+2,L=Og(r,S);if(y){const K=Ig(o,S),ge=zc(L,K.tView.ssrId);Zu(L,Ju(r,K,void 0,{dehydratedView:ge}),0,Gc(K,ge))}else kp(L,0)}}}finally{W(t)}}function Og(e,t){return e[t]}function Ig(e,t){return vl(e,t)}function oh(e,t,n,r){const o=Ze(),a=mn(),u=Tn+e,f=o[dn],y=a.firstCreatePass?function kT(e,t,n,r,o,a){const u=t.consts,y=Wc(t,e,2,r,Cs(u,o));return Ip(t,n,y,Cs(u,a)),null!==y.attrs&&Wf(y,y.attrs,!1),null!==y.mergedAttrs&&Wf(y,y.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,y),y}(u,a,o,t,n,r):a.data[u],S=zy(a,o,y,f,t,e);o[u]=S;const L=Za(y);return Oo(y,!0),b_(f,S,y),!function hd(e){return!(32&~e.flags)}(y)&&yc()&&Of(a,o,S,y),0===function or(){return Oe.lFrame.elementDepthCount}()&&vo(S,o),function Ln(){Oe.lFrame.elementDepthCount++}(),L&&(Ap(a,o,y),Sp(a,y,o)),null!==r&&Np(o,y),oh}function sh(){let e=sr();yl()?ws():(e=e.parent,Oo(e,!1));const t=e;(function ai(e){return Oe.skipHydrationRootTNode===e})(t)&&function Na(){Oe.skipHydrationRootTNode=null}(),function fn(){Oe.lFrame.elementDepthCount--}();const n=mn();return n.firstCreatePass&&(bc(n,e),ia(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function xh(e){return!!(8&e.flags)}(t)&&Tg(n,t,Ze(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Fh(e){return!!(16&e.flags)}(t)&&Tg(n,t,Ze(),t.stylesWithoutHost,!1),sh}function Rg(e,t,n,r){return oh(e,t,n,r),sh(),Rg}let zy=(e,t,n,r,o,a)=>(aa(!0),Sf(r,o,function Vd(){return Oe.lFrame.currentNamespace}()));function ah(e,t,n){const r=Ze(),o=mn(),a=e+Tn,u=o.firstCreatePass?function UT(e,t,n,r,o){const a=t.consts,u=Cs(a,r),f=Wc(t,e,8,"ng-container",u);return null!==u&&Wf(f,u,!0),Ip(t,n,f,Cs(a,o)),null!==t.queries&&t.queries.elementStart(t,f),f}(a,o,r,t,n):o.data[a];Oo(u,!0);const f=Ky(o,r,u,e);return r[a]=f,yc()&&Of(o,r,f,u),vo(f,r),Za(u)&&(Ap(o,r,u),Sp(o,u,r)),null!=n&&Np(r,u),ah}function lh(){let e=sr();const t=mn();return yl()?ws():(e=e.parent,Oo(e,!1)),t.firstCreatePass&&(bc(t,e),ia(e)&&t.queries.elementEnd(e)),lh}function Pg(e,t,n){return ah(e,t,n),lh(),Pg}let Ky=(e,t,n,r)=>(aa(!0),bp(t[dn],""));function Xy(){return Ze()}function xg(e,t,n){const r=Ze();return ji(r,Wr(),t)&&cs(mn(),Qr(),r,e,t,r[dn],n,!0),xg}const ac=void 0;var WT=["en",[["a","p"],["AM","PM"],ac],[["AM","PM"],ac,ac],[["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"]],ac,[["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"]],ac,[["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}",ac,"{1} 'at' {0}",ac],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function $T(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let fu={};function GT(e,t,n){"string"!=typeof t&&(n=t,t=e[hu.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),fu[t]=e,n&&(fu[t][hu.ExtraData]=n)}function Fg(e){const t=function zT(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Jy(t);if(n)return n;const r=t.split("-")[0];if(n=Jy(r),n)return n;if("en"===r)return WT;throw new Fe(701,!1)}function Yy(e){return Fg(e)[hu.PluralCase]}function Jy(e){return e in fu||(fu[e]=Xt.ng&&Xt.ng.common&&Xt.ng.common.locales&&Xt.ng.common.locales[e]),fu[e]}var hu=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}(hu||{});const pu="en-US",ch={marker:"element"},uh={marker:"ICU"};var us=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}(us||{});let Zy=pu;function e0(e,t,n){const r=t.insertBeforeIndex,o=Array.isArray(r)?r[0]:r;return null===o?h_(e,0,n):_r(n[o])}function t0(e,t,n,r,o){const a=t.insertBeforeIndex;if(Array.isArray(a)){let u=r,f=null;if(3&t.type||(f=u,u=o),null!==u&&-1===t.componentOffset)for(let y=1;y1)for(let n=e.length-2;n>=0;n--){const r=e[n];r0(r)||JT(r,t)&&null===ZT(r)&&qT(r,t.index)}}function r0(e){return!(64&e.type)}function JT(e,t){return r0(t)||e.index>t.index}function ZT(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function qT(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(g_(e0,t0),e.insertBeforeIndex=t)}function nM(e,t,n){const r=Mp(e,n,64,null,null);return n0(t,r),r}let Dd=(e,t,n,r)=>(aa(!0),function l0(e,t,n){const r=e[dn];switch(n){case Node.COMMENT_NODE:return bp(r,t);case Node.TEXT_NODE:return yp(r,t);case Node.ELEMENT_NODE:return Sf(r,t,null)}}(e,n,r));function dM(){const e=[];let n,r,t=-1;function a(f,y){t=0;const S=function dh(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}(f,y);r=null!==S?f.remove[S]:Hn}function u(){if(t0?n[f]:(e.push(t,r),a(n[gt].data[~f],n),u())}return 0===e.length?null:(r=e.pop(),t=e.pop(),u())}return function o(f,y){for(n=y;e.length;)e.pop();return a(f.value,y),u}}const fh=/\ufffd(\d+):?\d*\ufffd/gi,hM=/\ufffd(\d+)\ufffd/,p0=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Ed="\ufffd",pM=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,gM=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,mM=/\uE500/g;function g0(e,t,n,r,o,a,u){const f=Yu(e,r,1,null);let y=f<n.length&&n.push(y)}return{type:r,mainBinding:o,cases:t,values:n}}function Lg(e){if(!e)return[];let t=0;const n=[],r=[],o=/[{}]/g;let a;for(o.lastIndex=0;a=o.exec(e);){const f=a.index;if("}"==a[0]){if(n.pop(),0==n.length){const y=e.substring(t,f);p0.test(y)?r.push(wM(y)):r.push(y),t=f+1}}else{if(0==n.length){const y=e.substring(t,f);r.push(y),t=f+1}n.push("{")}}const u=e.substring(t);return r.push(u),r}function TM(e,t,n,r,o,a,u,f,y){const S=[],L=[],K=[];n.cases.push(u),n.create.push(S),n.remove.push(L),n.update.push(K);const Me=Hm(zr()).getInertBodyElement(f),ke=fp(Me)||Me;return ke?y0(e,t,n,r,o,S,L,K,ke,a,y,0):0}function y0(e,t,n,r,o,a,u,f,y,S,L,K){let ge=0,Me=y.firstChild;for(;Me;){const ke=Yu(t,r,1,null);switch(Me.nodeType){case Node.ELEMENT_NODE:const it=Me,Ct=it.tagName.toLowerCase();if(up.hasOwnProperty(Ct)){kg(a,ch,Ct,S,ke),t.data[ke]=Ct;const yr=it.attributes;for(let oo=0;oo>>us.SHIFT;let K=e[L],ge=!1;null===K&&(K=e[L]=Dd(e,L,t[a],(u&us.COMMENT)===us.COMMENT?Node.COMMENT_NODE:Node.TEXT_NODE),ge=yc()),S&&null!==n&&ge&&tc(o,n,K,r,!1)}})(o,y.create,L,f&&8&f.type?o[f.index]:null),vc(!0)}function w0(e,t,n){E0(e,t,n),function C0(){vc(!1)}()}function Bg(e,t,n,r){const o=Ze(),a=mn(),u=sr();return Vg(a,o,o[dn],u,e,t,r),Bg}function Vg(e,t,n,r,o,a,u){const f=Za(r),S=e.firstCreatePass&&F_(e),L=t[Pr],K=x_(t);let ge=!0;if(3&r.type||u){const it=Ni(r,t),Ct=u?u(it):it,Rt=K.length,pt=u?yr=>u(_r(yr[r.index])):r.index;let Mn=null;if(!u&&f&&(Mn=function jM(e,t,n,r){const o=e.cleanup;if(null!=o)for(let a=0;ay?f[y]:null}"string"==typeof u&&(a+=2)}return null}(e,t,o,r.index)),null!==Mn)(Mn.__ngLastListenerFn__||Mn).__ngNextListenerFn__=a,Mn.__ngLastListenerFn__=a,ge=!1;else{a=A0(r,t,L,a,!1);const yr=n.listen(Ct,o,a);K.push(a,yr),S&&S.push(o,pt,Rt,Rt+1)}}else a=A0(r,t,L,a,!1);const Me=r.outputs;let ke;if(ge&&null!==Me&&(ke=Me[o])){const it=ke.length;if(it)for(let Ct=0;Ct-1?No(e.index,t):t);let y=S0(t,n,r,u),S=a.__ngNextListenerFn__;for(;S;)y=S0(t,n,S,u)&&y,S=S.__ngNextListenerFn__;return o&&!1===y&&u.preventDefault(),y}}function N0(e=1){return function Bd(e){return(Oe.lFrame.contextLView=function g(e,t){for(;e>0;)t=t[Qi],e--;return t}(e,Oe.lFrame.contextLView))[Pr]}(e)}function HM(e,t){let n=null;const r=function pa(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let o=0;o(aa(!0),yp(t[dn],r));function jg(e){return ph("",e,""),jg}function ph(e,t,n){const r=Ze(),o=ru(r,e,t,n);return o!==$n&&ul(r,_o(),o),ph}function Hg(e,t,n,r,o){const a=Ze(),u=function iu(e,t,n,r,o,a){const f=ic(e,Er(),n,o);return eo(2),f?t+$t(n)+r+$t(o)+a:$n}(a,e,t,n,r,o);return u!==$n&&ul(a,_o(),u),Hg}function $g(e,t,n,r,o,a,u){const f=Ze(),y=function ou(e,t,n,r,o,a,u,f){const S=Jf(e,Er(),n,o,u);return eo(3),S?t+$t(n)+r+$t(o)+a+$t(u)+f:$n}(f,e,t,n,r,o,a,u);return y!==$n&&ul(f,_o(),y),$g}function Wg(e,t,n,r,o,a,u,f,y,S,L){const K=Ze(),ge=function au(e,t,n,r,o,a,u,f,y,S,L,K){const ge=Er();let Me=Ks(e,ge,n,o,u,y);return Me=ji(e,ge+4,L)||Me,eo(5),Me?t+$t(n)+r+$t(o)+a+$t(u)+f+$t(y)+S+$t(L)+K:$n}(K,e,t,n,r,o,a,u,f,y,S,L);return ge!==$n&&ul(K,_o(),ge),Wg}function Gg(e,t,n){Mv(t)&&(t=t());const r=Ze();return ji(r,Wr(),t)&&cs(mn(),Qr(),r,e,t,r[dn],n,!1),Gg}function ab(e,t){const n=Mv(e);return n&&e.set(t),n}function zg(e,t){const n=Ze(),r=mn(),o=sr();return Vg(r,n,n[dn],o,e,t),zg}function Kg(e,t,n,r,o){if(e=Ee(e),Array.isArray(e))for(let a=0;a>20;if(rs(e)||!e.multi){const Me=new Ia(S,o,$c),ke=Qg(y,t,o?L:L+ge,K);-1===ke?(Ql(Xl(f,u),a,y),Xg(a,e,t.length),t.push(y),f.directiveStart++,f.directiveEnd++,o&&(f.providerIndexes+=1048576),n.push(Me),u.push(Me)):(n[ke]=Me,u[ke]=Me)}else{const Me=Qg(y,t,L+ge,K),ke=Qg(y,t,L,L+ge),Ct=ke>=0&&n[ke];if(o&&!Ct||!o&&!(Me>=0&&n[Me])){Ql(Xl(f,u),a,y);const Rt=function aS(e,t,n,r,o){const a=new Ia(e,n,$c);return a.multi=[],a.index=t,a.componentProviders=0,lb(a,o,r&&!n),a}(o?sS:oS,n.length,o,r,S);!o&&Ct&&(n[ke].providerFactory=Rt),Xg(a,e,t.length,0),t.push(y),f.directiveStart++,f.directiveEnd++,o&&(f.providerIndexes+=1048576),n.push(Rt),u.push(Rt)}else Xg(a,e,Me>-1?Me:ke,lb(n[o?ke:Me],S,!o&&r));!o&&r&&Ct&&n[ke].componentProviders++}}}function Xg(e,t,n,r){const o=rs(t),a=function fl(e){return!!e.useClass}(t);if(o||a){const y=(a?Ee(t.useClass):t).prototype.ngOnDestroy;if(y){const S=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const L=S.indexOf(n);-1===L?S.push(n,[r,y]):S[L+1].push(r,y)}else S.push(n,y)}}}function lb(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Qg(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function iS(e,t,n){const r=mn();if(r.firstCreatePass){const o=Ao(e);Kg(n,r.data,r.blueprint,o,!0),Kg(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}let lS=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=Ls(0,n.type),o=r.length>0?cg([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=In({token:e,providedIn:"environment",factory:()=>new e(Ir(Mr))})}return e})();function ub(e){ua("NgStandalone"),e.getStandaloneInjector=t=>t.get(lS).getOrCreateStandaloneInjector(e)}function fb(e,t,n){const r=En()+e,o=Ze();return o[r]===$n?ka(o,r,n?t.call(n):t()):fd(o,r)}function hb(e,t,n,r){return yb(Ze(),En(),e,t,n,r)}function pb(e,t,n,r,o){return bb(Ze(),En(),e,t,n,r,o)}function gb(e,t,n,r,o,a){return function Db(e,t,n,r,o,a,u,f){const y=t+n;return Jf(e,y,o,a,u)?ka(e,y+3,f?r.call(f,o,a,u):r(o,a,u)):wd(e,y+3)}(Ze(),En(),e,t,n,r,o,a)}function mb(e,t,n,r,o,a,u){return Eb(Ze(),En(),e,t,n,r,o,a,u)}function _b(e,t,n,r,o,a,u,f){const y=En()+e,S=Ze(),L=Ks(S,y,n,r,o,a);return ji(S,y+4,u)||L?ka(S,y+5,f?t.call(f,n,r,o,a,u):t(n,r,o,a,u)):fd(S,y+5)}function vb(e,t,n,r,o,a,u,f,y){const S=En()+e,L=Ze(),K=Ks(L,S,n,r,o,a);return ic(L,S+4,u,f)||K?ka(L,S+6,y?t.call(y,n,r,o,a,u,f):t(n,r,o,a,u,f)):fd(L,S+6)}function wd(e,t){const n=e[t];return n===$n?void 0:n}function yb(e,t,n,r,o,a){const u=t+n;return ji(e,u,o)?ka(e,u+1,a?r.call(a,o):r(o)):wd(e,u+1)}function bb(e,t,n,r,o,a,u){const f=t+n;return ic(e,f,o,a)?ka(e,f+2,u?r.call(u,o,a):r(o,a)):wd(e,f+2)}function Eb(e,t,n,r,o,a,u,f,y){const S=t+n;return Ks(e,S,o,a,u,f)?ka(e,S+4,y?r.call(y,o,a,u,f):r(o,a,u,f)):wd(e,S+4)}function wb(e,t){const n=mn();let r;const o=e+Tn;n.firstCreatePass?(r=function pS(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];const a=r.factory||(r.factory=lo(r.type)),f=Or($c);try{const y=Dc(!1),S=a();return Dc(y),function zM(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,Ze(),o,S),S}finally{Or(f)}}function Tb(e,t,n){const r=e+Tn,o=Ze(),a=el(o,r);return Td(o,r)?yb(o,En(),t,a.transform,n,a):a.transform(n)}function Mb(e,t,n,r){const o=e+Tn,a=Ze(),u=el(a,o);return Td(a,o)?bb(a,En(),t,u.transform,n,r,u):u.transform(n,r)}function Sb(e,t,n,r,o,a){const u=e+Tn,f=Ze(),y=el(f,u);return Td(f,u)?Eb(f,En(),t,y.transform,n,r,o,a,y):y.transform(n,r,o,a)}function Td(e,t){return e[gt].data[t].pure}function Ab(e,t){return Lf(e,t)}class Wb{constructor(t){this.full=t;const n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}}let Gb=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=In({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const Yb=new We(""),Jb=new We("");let nm,cA=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,nm||(function uA(e){nm=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ji.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let a=-1;r&&r>0&&(a=setTimeout(()=>{this._callbacks=this._callbacks.filter(u=>u.timeoutId!==a),n()},r)),this._callbacks.push({doneCb:n,timeoutId:a,updateCb:o})}whenStable(n,r,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(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(Ir(Ji),Ir(Zb),Ir(Jb))};static#t=this.\u0275prov=In({token:e,factory:e.\u0275fac})}return e})(),Zb=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return nm?.findTestabilityInTree(this,n,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=In({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function rm(e){return!!e&&"function"==typeof e.then}function qb(e){return!!e&&"function"==typeof e.subscribe}const dA=new We("");let im=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=de(dA,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const a=o();if(rm(a))n.push(a);else if(qb(a)){const u=new Promise((f,y)=>{a.subscribe({complete:f,error:y})});n.push(u)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=In({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const om=new We("");let xl=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=de(zh),this.afterRenderEffectManager=de(ad),this.externalTestViews=new Set,this.beforeRender=new sn.B,this.afterTick=new sn.B,this.componentTypes=[],this.components=[],this.isStable=de(Xc).hasPendingTasks.pipe((0,On.T)(n=>!n)),this._injector=de(Mr)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof Y_;if(!this._injector.get(im).done)throw!o&&Xi(n),new Fe(405,!1);let u;u=o?n:this._injector.get(Hf).resolveComponentFactory(n),this.componentTypes.push(u.componentType);const f=function fA(e){return e.isBoundToModule}(u)?void 0:this._injector.get(rc),S=u.create($o.NULL,[],r||u.selector,f),L=S.location.nativeElement,K=S.injector.get(Yb,null);return K?.registerApplication(L),S.onDestroy(()=>{this.detachView(S.hostView),vh(this.components,S),K?.unregisterApplication(L)}),this._loadComponent(S),S}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new Fe(101,!1);const r=W(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,W(r)}}detectChangesInAttachedViews(n){let r=0;const o=this.afterRenderEffectManager;for(;;){if(r===U_)throw new Fe(103,!1);if(n){const a=0===r;this.beforeRender.next(a);for(let{_lView:u,notifyErrorHandler:f}of this._views)pA(u,a,f)}if(r++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:a})=>sm(a))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:a})=>sm(a))))break}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;vh(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(om,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>vh(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new Fe(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=In({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function vh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function pA(e,t,n){!t&&!sm(e)||function gA(e,t,n){let r;n?(r=0,e[Wt]|=1024):r=64&e[Wt]?0:1,Ff(e,t,r)}(e,n,t)}function sm(e){return T(e)}class mA{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let _A=(()=>{class e{compileModuleSync(n){return new lg(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),a=Ss(oi(n).declarations).reduce((u,f)=>{const y=An(f);return y&&u.push(new ud(y)),u},[]);return new mA(r,a)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=In({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),bA=(()=>{class e{constructor(){this.zone=de(Ji),this.applicationRef=de(xl)}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(r){return new(r||e)};static#t=this.\u0275prov=In({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function iD(e){return[{provide:Ji,useFactory:e},{provide:xo,multi:!0,useFactory:()=>{const t=de(bA,{optional:!0});return()=>t.initialize()}},{provide:xo,multi:!0,useFactory:()=>{const t=de(CA);return()=>{t.initialize()}}},{provide:zh,useFactory:DA}]}function DA(){const e=de(Ji),t=de(Ra);return n=>e.runOutsideAngular(()=>t.handleError(n))}function EA(e){return qs([[],iD(()=>new Ji(function oD(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}(e)))])}let CA=(()=>{class e{constructor(){this.subscription=new an.yU,this.initialized=!1,this.zone=de(Ji),this.pendingTasks=de(Xc)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ji.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ji.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=In({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const bh=new We("",{providedIn:"root",factory:()=>de(bh,yn.Optional|yn.SkipSelf)||function wA(){return typeof $localize<"u"&&$localize.locale||pu}()}),TA=new We("",{providedIn:"root",factory:()=>"USD"}),am=new We("");let Fl=null;function OA(){}let dD=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=IA}return e})();function IA(e){return function RA(e,t,n){if(Us(e)&&!n){const r=No(e.index,t);return new td(r,r)}return 47&e.type?new td(t[$r],t):null}(sr(),Ze(),!(16&~e))}class gD{constructor(){}supports(t){return Yf(t)}create(t){return new kA(t)}}const LA=(e,t)=>t;class kA{constructor(t){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=t||LA}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,a=null;for(;n||r;){const u=!r||n&&n.currentIndex<_D(r,o,a)?n:r,f=_D(u,o,a),y=u.currentIndex;if(u===r)o--,r=r._nextRemoved;else if(n=n._next,null==u.previousIndex)o++;else{a||(a=[]);const S=f-o,L=y-o;if(S!=L){for(let ge=0;ge{u=this._trackByFn(o,f),null!==n&&Object.is(n.trackById,u)?(r&&(n=this._verifyReinsertion(n,f,u,o)),Object.is(n.item,f)||this._addIdentityChange(n,f)):(n=this._mismatch(n,f,u,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let a;return null===t?a=this._itTail:(a=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,a,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,a,o)):t=this._addAfter(new BA(n,r),a,o),t}_verifyReinsertion(t,n,r,o){let a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==a?t=this._reinsertAfter(a,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}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(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,a=t._nextRemoved;return null===o?this._removalsHead=a:o._nextRemoved=a,null===a?this._removalsTail=o:a._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new mD),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new mD),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class BA{constructor(t,n){this.item=t,this.trackById=n,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 VA{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class mD{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new VA,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function _D(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const a=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,a)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const a=o._prev,u=o._next;return a&&(a._next=u),u&&(u._prev=a),o._next=null,o._prev=null,o}const r=new jA(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class jA{constructor(t){this.key=t,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 yD(){return new hm([new gD])}let hm=(()=>{class e{static#e=this.\u0275prov=In({token:e,providedIn:"root",factory:yD});constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||yD()),deps:[[e,new Po,new Zr]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new Fe(901,!1)}}return e})();function bD(){return new pm([new vD])}let pm=(()=>{class e{static#e=this.\u0275prov=In({token:e,providedIn:"root",factory:bD});constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||bD()),deps:[[e,new Po,new Zr]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new Fe(901,!1)}}return e})();function iN(e){try{const{rootComponent:t,appProviders:n,platformProviders:r}=e,o=function NA(e=[]){if(Fl)return Fl;const t=function lD(e=[],t){return $o.create({name:t,providers:[{provide:Da,useValue:"platform"},{provide:am,useValue:new Set([()=>Fl=null])},...e]})}(e);return Fl=t,function eD(){!function se(e){$e=e}(()=>{throw new Fe(600,!1)})}(),function cD(e){e.get(fo,null)?.forEach(n=>n())}(t),t}(r),a=[EA(),...n||[]],f=new Wv({providers:a,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,y=f.get(Ji);return y.run(()=>{f.resolveInjectorInitializers();const S=f.get(Ra,null);let L;y.runOutsideAngular(()=>{L=y.onError.subscribe({next:Me=>{S.handleError(Me)}})});const K=()=>f.destroy(),ge=o.get(am);return ge.add(K),f.onDestroy(()=>{L.unsubscribe(),ge.delete(K)}),function tD(e,t,n){try{const r=n();return rm(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(S,y,()=>{const Me=f.get(im);return Me.runInitializers(),Me.donePromise.then(()=>{!function qy(e){"string"==typeof e&&(Zy=e.toLowerCase().replace(/_/g,"-"))}(f.get(bh,pu)||pu);const it=f.get(xl);return void 0!==t&&it.bootstrap(t),it})})})}catch(t){return Promise.reject(t)}}function yN(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function DN(e){const t=W(null);try{return e()}finally{W(t)}}function SN(e,t){const n=An(e),r=t.elementInjector||ks();return new ud(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector)}},9417:(qe,ie,D)=>{D.d(ie,{BC:()=>Un,Fm:()=>yn,JD:()=>Ti,Q0:()=>Ro,VZ:()=>lo,X1:()=>ms,YN:()=>Zs,YS:()=>Mi,Zm:()=>oe,cV:()=>ee,cb:()=>Fe,cz:()=>Re,hs:()=>Xe,j4:()=>Tr,k0:()=>ut,kq:()=>k,l_:()=>Ko,me:()=>Se,qT:()=>ha,vS:()=>Sn,wz:()=>Ir,xH:()=>Te,y7:()=>Gi,zX:()=>Po,ze:()=>Si});var i=D(4438),P=D(177),H=D(6648),G=D(7468),V=D(6354);let J=(()=>{class O{constructor(w,$){this._renderer=w,this._elementRef=$,this.onChange=ce=>{},this.onTouched=()=>{}}setProperty(w,$){this._renderer.setProperty(this._elementRef.nativeElement,w,$)}registerOnTouched(w){this.onTouched=w}registerOnChange(w){this.onChange=w}setDisabledState(w){this.setProperty("disabled",w)}static#e=this.\u0275fac=function($){return new($||O)(i.rXU(i.sFG),i.rXU(i.aKT))};static#t=this.\u0275dir=i.FsC({type:O})}return O})(),W=(()=>{class O extends J{static#e=this.\u0275fac=(()=>{let w;return function(ce){return(w||(w=i.xGo(O)))(ce||O)}})();static#t=this.\u0275dir=i.FsC({type:O,features:[i.Vt3]})}return O})();const k=new i.nKC(""),Z={provide:k,useExisting:(0,i.Rfq)(()=>oe),multi:!0};let oe=(()=>{class O extends W{writeValue(w){this.setProperty("checked",w)}static#e=this.\u0275fac=(()=>{let w;return function(ce){return(w||(w=i.xGo(O)))(ce||O)}})();static#t=this.\u0275dir=i.FsC({type:O,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function($,ce){1&$&&i.bIt("change",function(gn){return ce.onChange(gn.target.checked)})("blur",function(){return ce.onTouched()})},features:[i.Jv_([Z]),i.Vt3]})}return O})();const ae={provide:k,useExisting:(0,i.Rfq)(()=>Se),multi:!0},Ce=new i.nKC("");let Se=(()=>{class O extends J{constructor(w,$,ce){super(w,$),this._compositionMode=ce,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function me(){const O=(0,P.QT)()?(0,P.QT)().getUserAgent():"";return/android (\d+)/.test(O.toLowerCase())}())}writeValue(w){this.setProperty("value",w??"")}_handleInput(w){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(w)}_compositionStart(){this._composing=!0}_compositionEnd(w){this._composing=!1,this._compositionMode&&this.onChange(w)}static#e=this.\u0275fac=function($){return new($||O)(i.rXU(i.sFG),i.rXU(i.aKT),i.rXU(Ce,8))};static#t=this.\u0275dir=i.FsC({type:O,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($,ce){1&$&&i.bIt("input",function(gn){return ce._handleInput(gn.target.value)})("blur",function(){return ce.onTouched()})("compositionstart",function(){return ce._compositionStart()})("compositionend",function(gn){return ce._compositionEnd(gn.target.value)})},features:[i.Jv_([ae]),i.Vt3]})}return O})();function De(O){return null==O||("string"==typeof O||Array.isArray(O))&&0===O.length}function Ue(O){return null!=O&&"number"==typeof O.length}const Re=new i.nKC(""),rt=new i.nKC(""),_t=/^(?=.{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 ut{static min(x){return Qe(x)}static max(x){return He(x)}static required(x){return at(x)}static requiredTrue(x){return function et(O){return!0===O.value?null:{required:!0}}(x)}static email(x){return function ft(O){return De(O.value)||_t.test(O.value)?null:{email:!0}}(x)}static minLength(x){return function mt(O){return x=>De(x.value)||!Ue(x.value)?null:x.value.lengthUe(x.value)&&x.value.length>O?{maxlength:{requiredLength:O,actualLength:x.value.length}}:null}(x)}static pattern(x){return function vt(O){if(!O)return Mt;let x,w;return"string"==typeof O?(w="","^"!==O.charAt(0)&&(w+="^"),w+=O,"$"!==O.charAt(O.length-1)&&(w+="$"),x=new RegExp(w)):(w=O.toString(),x=O),$=>{if(De($.value))return null;const ce=$.value;return x.test(ce)?null:{pattern:{requiredPattern:w,actualValue:ce}}}}(x)}static nullValidator(x){return null}static compose(x){return te(x)}static composeAsync(x){return ve(x)}}function Qe(O){return x=>{if(De(x.value)||De(O))return null;const w=parseFloat(x.value);return!isNaN(w)&&w{if(De(x.value)||De(O))return null;const w=parseFloat(x.value);return!isNaN(w)&&w>O?{max:{max:O,actual:x.value}}:null}}function at(O){return De(O.value)?{required:!0}:null}function Mt(O){return null}function dt(O){return null!=O}function ht(O){return(0,i.jNT)(O)?(0,H.H)(O):O}function Pt(O){let x={};return O.forEach(w=>{x=null!=w?{...x,...w}:x}),0===Object.keys(x).length?null:x}function $e(O,x){return x.map(w=>w(O))}function se(O){return O.map(x=>function wt(O){return!O.validate}(x)?x:w=>x.validate(w))}function te(O){if(!O)return null;const x=O.filter(dt);return 0==x.length?null:function(w){return Pt($e(w,x))}}function pe(O){return null!=O?te(se(O)):null}function ve(O){if(!O)return null;const x=O.filter(dt);return 0==x.length?null:function(w){const $=$e(w,x).map(ht);return(0,G.p)($).pipe((0,V.T)(Pt))}}function we(O){return null!=O?ve(se(O)):null}function Le(O,x){return null===O?[x]:Array.isArray(O)?[...O,x]:[O,x]}function xe(O){return O._rawValidators}function bt(O){return O._rawAsyncValidators}function Yt(O){return O?Array.isArray(O)?O:[O]:[]}function lt(O,x){return Array.isArray(O)?O.includes(x):O===x}function Nt(O,x){const w=Yt(x);return Yt(O).forEach(ce=>{lt(w,ce)||w.push(ce)}),w}function Nn(O,x){return Yt(x).filter(w=>!lt(O,w))}class Cn{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(x){this._rawValidators=x||[],this._composedValidatorFn=pe(this._rawValidators)}_setAsyncValidators(x){this._rawAsyncValidators=x||[],this._composedAsyncValidatorFn=we(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(x){this._onDestroyCallbacks.push(x)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(x=>x()),this._onDestroyCallbacks=[]}reset(x=void 0){this.control&&this.control.reset(x)}hasError(x,w){return!!this.control&&this.control.hasError(x,w)}getError(x,w){return this.control?this.control.getError(x,w):null}}class sn extends Cn{get formDirective(){return null}get path(){return null}}class an extends Cn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class _n{constructor(x){this._cd=x}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 Un=(()=>{class O extends _n{constructor(w){super(w)}static#e=this.\u0275fac=function($){return new($||O)(i.rXU(an,2))};static#t=this.\u0275dir=i.FsC({type:O,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function($,ce){2&$&&i.AVh("ng-untouched",ce.isUntouched)("ng-touched",ce.isTouched)("ng-pristine",ce.isPristine)("ng-dirty",ce.isDirty)("ng-valid",ce.isValid)("ng-invalid",ce.isInvalid)("ng-pending",ce.isPending)},features:[i.Vt3]})}return O})(),Fe=(()=>{class O extends _n{constructor(w){super(w)}static#e=this.\u0275fac=function($){return new($||O)(i.rXU(sn,10))};static#t=this.\u0275dir=i.FsC({type:O,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function($,ce){2&$&&i.AVh("ng-untouched",ce.isUntouched)("ng-touched",ce.isTouched)("ng-pristine",ce.isPristine)("ng-dirty",ce.isDirty)("ng-valid",ce.isValid)("ng-invalid",ce.isInvalid)("ng-pending",ce.isPending)("ng-submitted",ce.isSubmitted)},features:[i.Vt3]})}return O})();const ln="VALID",xr="INVALID",wn="PENDING",kn="DISABLED";function Vr(O){return(Ne(O)?O.validators:O)||null}function wr(O,x){return(Ne(x)?x.asyncValidators:O)||null}function Ne(O){return null!=O&&!Array.isArray(O)&&"object"==typeof O}function ne(O,x,w){const $=O.controls;if(!(x?Object.keys($):$).length)throw new i.wOt(1e3,"");if(!$[w])throw new i.wOt(1001,"")}function be(O,x,w){O._forEachChild(($,ce)=>{if(void 0===w[ce])throw new i.wOt(1002,"")})}class ot{constructor(x,w){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(x),this._assignAsyncValidators(w)}get validator(){return this._composedValidatorFn}set validator(x){this._rawValidators=this._composedValidatorFn=x}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(x){this._rawAsyncValidators=this._composedAsyncValidatorFn=x}get parent(){return this._parent}get valid(){return this.status===ln}get invalid(){return this.status===xr}get pending(){return this.status==wn}get disabled(){return this.status===kn}get enabled(){return this.status!==kn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(x){this._assignValidators(x)}setAsyncValidators(x){this._assignAsyncValidators(x)}addValidators(x){this.setValidators(Nt(x,this._rawValidators))}addAsyncValidators(x){this.setAsyncValidators(Nt(x,this._rawAsyncValidators))}removeValidators(x){this.setValidators(Nn(x,this._rawValidators))}removeAsyncValidators(x){this.setAsyncValidators(Nn(x,this._rawAsyncValidators))}hasValidator(x){return lt(this._rawValidators,x)}hasAsyncValidator(x){return lt(this._rawAsyncValidators,x)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(x={}){this.touched=!0,this._parent&&!x.onlySelf&&this._parent.markAsTouched(x)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(x=>x.markAllAsTouched())}markAsUntouched(x={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(w=>{w.markAsUntouched({onlySelf:!0})}),this._parent&&!x.onlySelf&&this._parent._updateTouched(x)}markAsDirty(x={}){this.pristine=!1,this._parent&&!x.onlySelf&&this._parent.markAsDirty(x)}markAsPristine(x={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(w=>{w.markAsPristine({onlySelf:!0})}),this._parent&&!x.onlySelf&&this._parent._updatePristine(x)}markAsPending(x={}){this.status=wn,!1!==x.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!x.onlySelf&&this._parent.markAsPending(x)}disable(x={}){const w=this._parentMarkedDirty(x.onlySelf);this.status=kn,this.errors=null,this._forEachChild($=>{$.disable({...x,onlySelf:!0})}),this._updateValue(),!1!==x.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...x,skipPristineCheck:w}),this._onDisabledChange.forEach($=>$(!0))}enable(x={}){const w=this._parentMarkedDirty(x.onlySelf);this.status=ln,this._forEachChild($=>{$.enable({...x,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:x.emitEvent}),this._updateAncestors({...x,skipPristineCheck:w}),this._onDisabledChange.forEach($=>$(!1))}_updateAncestors(x){this._parent&&!x.onlySelf&&(this._parent.updateValueAndValidity(x),x.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(x){this._parent=x}getRawValue(){return this.value}updateValueAndValidity(x={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ln||this.status===wn)&&this._runAsyncValidator(x.emitEvent)),!1!==x.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!x.onlySelf&&this._parent.updateValueAndValidity(x)}_updateTreeValidity(x={emitEvent:!0}){this._forEachChild(w=>w._updateTreeValidity(x)),this.updateValueAndValidity({onlySelf:!0,emitEvent:x.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?kn:ln}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(x){if(this.asyncValidator){this.status=wn,this._hasOwnPendingAsyncValidator=!0;const w=ht(this.asyncValidator(this));this._asyncValidationSubscription=w.subscribe($=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors($,{emitEvent:x})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(x,w={}){this.errors=x,this._updateControlsErrors(!1!==w.emitEvent)}get(x){let w=x;return null==w||(Array.isArray(w)||(w=w.split(".")),0===w.length)?null:w.reduce(($,ce)=>$&&$._find(ce),this)}getError(x,w){const $=w?this.get(w):this;return $&&$.errors?$.errors[x]:null}hasError(x,w){return!!this.getError(x,w)}get root(){let x=this;for(;x._parent;)x=x._parent;return x}_updateControlsErrors(x){this.status=this._calculateStatus(),x&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(x)}_initObservables(){this.valueChanges=new i.bkB,this.statusChanges=new i.bkB}_calculateStatus(){return this._allControlsDisabled()?kn:this.errors?xr:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(wn)?wn:this._anyControlsHaveStatus(xr)?xr:ln}_anyControlsHaveStatus(x){return this._anyControls(w=>w.status===x)}_anyControlsDirty(){return this._anyControls(x=>x.dirty)}_anyControlsTouched(){return this._anyControls(x=>x.touched)}_updatePristine(x={}){this.pristine=!this._anyControlsDirty(),this._parent&&!x.onlySelf&&this._parent._updatePristine(x)}_updateTouched(x={}){this.touched=this._anyControlsTouched(),this._parent&&!x.onlySelf&&this._parent._updateTouched(x)}_registerOnCollectionChange(x){this._onCollectionChange=x}_setUpdateStrategy(x){Ne(x)&&null!=x.updateOn&&(this._updateOn=x.updateOn)}_parentMarkedDirty(x){return!x&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(x){return null}_assignValidators(x){this._rawValidators=Array.isArray(x)?x.slice():x,this._composedValidatorFn=function Nr(O){return Array.isArray(O)?pe(O):O||null}(this._rawValidators)}_assignAsyncValidators(x){this._rawAsyncValidators=Array.isArray(x)?x.slice():x,this._composedAsyncValidatorFn=function Ee(O){return Array.isArray(O)?we(O):O||null}(this._rawAsyncValidators)}}class St extends ot{constructor(x,w,$){super(Vr(w),wr($,w)),this.controls=x,this._initObservables(),this._setUpdateStrategy(w),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(x,w){return this.controls[x]?this.controls[x]:(this.controls[x]=w,w.setParent(this),w._registerOnCollectionChange(this._onCollectionChange),w)}addControl(x,w,$={}){this.registerControl(x,w),this.updateValueAndValidity({emitEvent:$.emitEvent}),this._onCollectionChange()}removeControl(x,w={}){this.controls[x]&&this.controls[x]._registerOnCollectionChange(()=>{}),delete this.controls[x],this.updateValueAndValidity({emitEvent:w.emitEvent}),this._onCollectionChange()}setControl(x,w,$={}){this.controls[x]&&this.controls[x]._registerOnCollectionChange(()=>{}),delete this.controls[x],w&&this.registerControl(x,w),this.updateValueAndValidity({emitEvent:$.emitEvent}),this._onCollectionChange()}contains(x){return this.controls.hasOwnProperty(x)&&this.controls[x].enabled}setValue(x,w={}){be(this,0,x),Object.keys(x).forEach($=>{ne(this,!0,$),this.controls[$].setValue(x[$],{onlySelf:!0,emitEvent:w.emitEvent})}),this.updateValueAndValidity(w)}patchValue(x,w={}){null!=x&&(Object.keys(x).forEach($=>{const ce=this.controls[$];ce&&ce.patchValue(x[$],{onlySelf:!0,emitEvent:w.emitEvent})}),this.updateValueAndValidity(w))}reset(x={},w={}){this._forEachChild(($,ce)=>{$.reset(x?x[ce]:null,{onlySelf:!0,emitEvent:w.emitEvent})}),this._updatePristine(w),this._updateTouched(w),this.updateValueAndValidity(w)}getRawValue(){return this._reduceChildren({},(x,w,$)=>(x[$]=w.getRawValue(),x))}_syncPendingControls(){let x=this._reduceChildren(!1,(w,$)=>!!$._syncPendingControls()||w);return x&&this.updateValueAndValidity({onlySelf:!0}),x}_forEachChild(x){Object.keys(this.controls).forEach(w=>{const $=this.controls[w];$&&x($,w)})}_setUpControls(){this._forEachChild(x=>{x.setParent(this),x._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(x){for(const[w,$]of Object.entries(this.controls))if(this.contains(w)&&x($))return!0;return!1}_reduceValue(){return this._reduceChildren({},(w,$,ce)=>(($.enabled||this.disabled)&&(w[ce]=$.value),w))}_reduceChildren(x,w){let $=x;return this._forEachChild((ce,Vt)=>{$=w($,ce,Vt)}),$}_allControlsDisabled(){for(const x of Object.keys(this.controls))if(this.controls[x].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(x){return this.controls.hasOwnProperty(x)?this.controls[x]:null}}class ar extends St{}const fr=new i.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>hr}),hr="always";function gi(O,x){return[...x.path,O]}function Dr(O,x,w=hr){Ii(O,x),x.valueAccessor.writeValue(O.value),(O.disabled||"always"===w)&&x.valueAccessor.setDisabledState?.(O.disabled),function mi(O,x){x.valueAccessor.registerOnChange(w=>{O._pendingValue=w,O._pendingChange=!0,O._pendingDirty=!0,"change"===O.updateOn&&In(O,x)})}(O,x),function yo(O,x){const w=($,ce)=>{x.valueAccessor.writeValue($),ce&&x.viewToModelUpdate($)};O.registerOnChange(w),x._registerOnDestroy(()=>{O._unregisterOnChange(w)})}(O,x),function Ci(O,x){x.valueAccessor.registerOnTouched(()=>{O._pendingTouched=!0,"blur"===O.updateOn&&O._pendingChange&&In(O,x),"submit"!==O.updateOn&&O.markAsTouched()})}(O,x),function li(O,x){if(x.valueAccessor.setDisabledState){const w=$=>{x.valueAccessor.setDisabledState($)};O.registerOnDisabledChange(w),x._registerOnDestroy(()=>{O._unregisterOnDisabledChange(w)})}}(O,x)}function kt(O,x,w=!0){const $=()=>{};x.valueAccessor&&(x.valueAccessor.registerOnChange($),x.valueAccessor.registerOnTouched($)),Jr(O,x),O&&(x._invokeOnDestroyCallbacks(),O._registerOnCollectionChange(()=>{}))}function Bt(O,x){O.forEach(w=>{w.registerOnValidatorChange&&w.registerOnValidatorChange(x)})}function Ii(O,x){const w=xe(O);null!==x.validator?O.setValidators(Le(w,x.validator)):"function"==typeof w&&O.setValidators([w]);const $=bt(O);null!==x.asyncValidator?O.setAsyncValidators(Le($,x.asyncValidator)):"function"==typeof $&&O.setAsyncValidators([$]);const ce=()=>O.updateValueAndValidity();Bt(x._rawValidators,ce),Bt(x._rawAsyncValidators,ce)}function Jr(O,x){let w=!1;if(null!==O){if(null!==x.validator){const ce=xe(O);if(Array.isArray(ce)&&ce.length>0){const Vt=ce.filter(gn=>gn!==x.validator);Vt.length!==ce.length&&(w=!0,O.setValidators(Vt))}}if(null!==x.asyncValidator){const ce=bt(O);if(Array.isArray(ce)&&ce.length>0){const Vt=ce.filter(gn=>gn!==x.asyncValidator);Vt.length!==ce.length&&(w=!0,O.setAsyncValidators(Vt))}}}const $=()=>{};return Bt(x._rawValidators,$),Bt(x._rawAsyncValidators,$),w}function In(O,x){O._pendingDirty&&O.markAsDirty(),O.setValue(O._pendingValue,{emitModelToViewChange:!1}),x.viewToModelUpdate(O._pendingValue),O._pendingChange=!1}function ci(O,x){Ii(O,x)}function le(O,x){if(!O.hasOwnProperty("model"))return!1;const w=O.model;return!!w.isFirstChange()||!Object.is(x,w.currentValue)}function Je(O,x){O._syncPendingControls(),x.forEach(w=>{const $=w.control;"submit"===$.updateOn&&$._pendingChange&&(w.viewToModelUpdate($._pendingValue),$._pendingChange=!1)})}function We(O,x){if(!x)return null;let w,$,ce;return Array.isArray(x),x.forEach(Vt=>{Vt.constructor===Se?w=Vt:function ue(O){return Object.getPrototypeOf(O.constructor)===W}(Vt)?$=Vt:ce=Vt}),ce||$||w||null}const U={provide:sn,useExisting:(0,i.Rfq)(()=>ee)},X=Promise.resolve();let ee=(()=>{class O extends sn{constructor(w,$,ce){super(),this.callSetDisabledState=ce,this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.bkB,this.form=new St({},pe(w),we($))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(w){X.then(()=>{const $=this._findContainer(w.path);w.control=$.registerControl(w.name,w.control),Dr(w.control,w,this.callSetDisabledState),w.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(w)})}getControl(w){return this.form.get(w.path)}removeControl(w){X.then(()=>{const $=this._findContainer(w.path);$&&$.removeControl(w.name),this._directives.delete(w)})}addFormGroup(w){X.then(()=>{const $=this._findContainer(w.path),ce=new St({});ci(ce,w),$.registerControl(w.name,ce),ce.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(w){X.then(()=>{const $=this._findContainer(w.path);$&&$.removeControl(w.name)})}getFormGroup(w){return this.form.get(w.path)}updateModel(w,$){X.then(()=>{this.form.get(w.path).setValue($)})}setValue(w){this.control.setValue(w)}onSubmit(w){return this.submitted=!0,Je(this.form,this._directives),this.ngSubmit.emit(w),"dialog"===w?.target?.method}onReset(){this.resetForm()}resetForm(w=void 0){this.form.reset(w),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(w){return w.pop(),w.length?this.form.get(w):this.form}static#e=this.\u0275fac=function($){return new($||O)(i.rXU(Re,10),i.rXU(rt,10),i.rXU(fr,8))};static#t=this.\u0275dir=i.FsC({type:O,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function($,ce){1&$&&i.bIt("submit",function(gn){return ce.onSubmit(gn)})("reset",function(){return ce.onReset()})},inputs:{options:[i.Mj6.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Jv_([U]),i.Vt3]})}return O})();function q(O,x){const w=O.indexOf(x);w>-1&&O.splice(w,1)}function Ae(O){return"object"==typeof O&&null!==O&&2===Object.keys(O).length&&"value"in O&&"disabled"in O}const Pe=class extends ot{constructor(x=null,w,$){super(Vr(w),wr($,w)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(x),this._setUpdateStrategy(w),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ne(w)&&(w.nonNullable||w.initialValueIsDefault)&&(this.defaultValue=Ae(x)?x.value:x)}setValue(x,w={}){this.value=this._pendingValue=x,this._onChange.length&&!1!==w.emitModelToViewChange&&this._onChange.forEach($=>$(this.value,!1!==w.emitViewToModelChange)),this.updateValueAndValidity(w)}patchValue(x,w={}){this.setValue(x,w)}reset(x=this.defaultValue,w={}){this._applyFormState(x),this.markAsPristine(w),this.markAsUntouched(w),this.setValue(this.value,w),this._pendingChange=!1}_updateValue(){}_anyControls(x){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(x){this._onChange.push(x)}_unregisterOnChange(x){q(this._onChange,x)}registerOnDisabledChange(x){this._onDisabledChange.push(x)}_unregisterOnDisabledChange(x){q(this._onDisabledChange,x)}_forEachChild(x){}_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(x){Ae(x)?(this.value=this._pendingValue=x.value,x.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=x}},Xe=Pe,Yn={provide:an,useExisting:(0,i.Rfq)(()=>Sn)},$t=Promise.resolve();let Sn=(()=>{class O extends an{constructor(w,$,ce,Vt,gn,Ki){super(),this._changeDetectorRef=gn,this.callSetDisabledState=Ki,this.control=new Pe,this._registered=!1,this.name="",this.update=new i.bkB,this._parent=w,this._setValidators($),this._setAsyncValidators(ce),this.valueAccessor=We(0,Vt)}ngOnChanges(w){if(this._checkForErrors(),!this._registered||"name"in w){if(this._registered&&(this._checkName(),this.formDirective)){const $=w.name.previousValue;this.formDirective.removeControl({name:$,path:this._getPath($)})}this._setUpControl()}"isDisabled"in w&&this._updateDisabled(w),le(w,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(w){this.viewModel=w,this.update.emit(w)}_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(){Dr(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(w){$t.then(()=>{this.control.setValue(w,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(w){const $=w.isDisabled.currentValue,ce=0!==$&&(0,i.L39)($);$t.then(()=>{ce&&!this.control.disabled?this.control.disable():!ce&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(w){return this._parent?gi(w,this._parent):[w]}static#e=this.\u0275fac=function($){return new($||O)(i.rXU(sn,9),i.rXU(Re,10),i.rXU(rt,10),i.rXU(k,10),i.rXU(i.gRc,8),i.rXU(fr,8))};static#t=this.\u0275dir=i.FsC({type:O,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[i.Mj6.None,"disabled","isDisabled"],model:[i.Mj6.None,"ngModel","model"],options:[i.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i.Jv_([Yn]),i.Vt3,i.OA$]})}return O})(),ha=(()=>{class O{static#e=this.\u0275fac=function($){return new($||O)};static#t=this.\u0275dir=i.FsC({type:O,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return O})();const _i={provide:k,useExisting:(0,i.Rfq)(()=>Ro),multi:!0};let Ro=(()=>{class O extends W{writeValue(w){this.setProperty("value",w??"")}registerOnChange(w){this.onChange=$=>{w(""==$?null:parseFloat($))}}static#e=this.\u0275fac=(()=>{let w;return function(ce){return(w||(w=i.xGo(O)))(ce||O)}})();static#t=this.\u0275dir=i.FsC({type:O,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function($,ce){1&$&&i.bIt("input",function(gn){return ce.onChange(gn.target.value)})("blur",function(){return ce.onTouched()})},features:[i.Jv_([_i]),i.Vt3]})}return O})();const ui={provide:k,useExisting:(0,i.Rfq)(()=>yn),multi:!0};let Zi=(()=>{class O{constructor(){this._accessors=[]}add(w,$){this._accessors.push([w,$])}remove(w){for(let $=this._accessors.length-1;$>=0;--$)if(this._accessors[$][1]===w)return void this._accessors.splice($,1)}select(w){this._accessors.forEach($=>{this._isSameGroup($,w)&&$[1]!==w&&$[1].fireUncheck(w.value)})}_isSameGroup(w,$){return!!w[0].control&&w[0]._parent===$._control._parent&&w[1].name===$.name}static#e=this.\u0275fac=function($){return new($||O)};static#t=this.\u0275prov=i.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}return O})(),yn=(()=>{class O extends W{constructor(w,$,ce,Vt){super(w,$),this._registry=ce,this._injector=Vt,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,i.WQX)(fr,{optional:!0})??hr}ngOnInit(){this._control=this._injector.get(an),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(w){this._state=w===this.value,this.setProperty("checked",this._state)}registerOnChange(w){this._fn=w,this.onChange=()=>{w(this.value),this._registry.select(this)}}setDisabledState(w){(this.setDisabledStateFired||w||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",w),this.setDisabledStateFired=!0}fireUncheck(w){this.writeValue(w)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static#e=this.\u0275fac=function($){return new($||O)(i.rXU(i.sFG),i.rXU(i.aKT),i.rXU(Zi),i.rXU(i.zZn))};static#t=this.\u0275dir=i.FsC({type:O,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function($,ce){1&$&&i.bIt("change",function(){return ce.onChange()})("blur",function(){return ce.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.Jv_([ui]),i.Vt3]})}return O})();const Or=new i.nKC(""),hs={provide:an,useExisting:(0,i.Rfq)(()=>Ko)};let Ko=(()=>{class O extends an{set isDisabled(w){}static#e=this._ngModelWarningSentOnce=!1;constructor(w,$,ce,Vt,gn){super(),this._ngModelWarningConfig=Vt,this.callSetDisabledState=gn,this.update=new i.bkB,this._ngModelWarningSent=!1,this._setValidators(w),this._setAsyncValidators($),this.valueAccessor=We(0,ce)}ngOnChanges(w){if(this._isControlChanged(w)){const $=w.form.previousValue;$&&kt($,this,!1),Dr(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}le(w,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&kt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(w){this.viewModel=w,this.update.emit(w)}_isControlChanged(w){return w.hasOwnProperty("form")}static#t=this.\u0275fac=function($){return new($||O)(i.rXU(Re,10),i.rXU(rt,10),i.rXU(k,10),i.rXU(Or,8),i.rXU(fr,8))};static#n=this.\u0275dir=i.FsC({type:O,selectors:[["","formControl",""]],inputs:{form:[i.Mj6.None,"formControl","form"],isDisabled:[i.Mj6.None,"disabled","isDisabled"],model:[i.Mj6.None,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i.Jv_([hs]),i.Vt3,i.OA$]})}return O})();const ps={provide:sn,useExisting:(0,i.Rfq)(()=>Tr)};let Tr=(()=>{class O extends sn{constructor(w,$,ce){super(),this.callSetDisabledState=ce,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.bkB,this._setValidators(w),this._setAsyncValidators($)}ngOnChanges(w){this._checkFormPresent(),w.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Jr(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(w){const $=this.form.get(w.path);return Dr($,w,this.callSetDisabledState),$.updateValueAndValidity({emitEvent:!1}),this.directives.push(w),$}getControl(w){return this.form.get(w.path)}removeControl(w){kt(w.control||null,w,!1),function Dt(O,x){const w=O.indexOf(x);w>-1&&O.splice(w,1)}(this.directives,w)}addFormGroup(w){this._setUpFormContainer(w)}removeFormGroup(w){this._cleanUpFormContainer(w)}getFormGroup(w){return this.form.get(w.path)}addFormArray(w){this._setUpFormContainer(w)}removeFormArray(w){this._cleanUpFormContainer(w)}getFormArray(w){return this.form.get(w.path)}updateModel(w,$){this.form.get(w.path).setValue($)}onSubmit(w){return this.submitted=!0,Je(this.form,this.directives),this.ngSubmit.emit(w),"dialog"===w?.target?.method}onReset(){this.resetForm()}resetForm(w=void 0){this.form.reset(w),this.submitted=!1}_updateDomValue(){this.directives.forEach(w=>{const $=w.control,ce=this.form.get(w.path);$!==ce&&(kt($||null,w),(O=>O instanceof Pe)(ce)&&(Dr(ce,w,this.callSetDisabledState),w.control=ce))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(w){const $=this.form.get(w.path);ci($,w),$.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(w){if(this.form){const $=this.form.get(w.path);$&&function Ri(O,x){return Jr(O,x)}($,w)&&$.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ii(this.form,this),this._oldForm&&Jr(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function($){return new($||O)(i.rXU(Re,10),i.rXU(rt,10),i.rXU(fr,8))};static#t=this.\u0275dir=i.FsC({type:O,selectors:[["","formGroup",""]],hostBindings:function($,ce){1&$&&i.bIt("submit",function(gn){return ce.onSubmit(gn)})("reset",function(){return ce.onReset()})},inputs:{form:[i.Mj6.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Jv_([ps]),i.Vt3,i.OA$]})}return O})();const Do={provide:an,useExisting:(0,i.Rfq)(()=>Ti)};let Ti=(()=>{class O extends an{set isDisabled(w){}static#e=this._ngModelWarningSentOnce=!1;constructor(w,$,ce,Vt,gn){super(),this._ngModelWarningConfig=gn,this._added=!1,this.name=null,this.update=new i.bkB,this._ngModelWarningSent=!1,this._parent=w,this._setValidators($),this._setAsyncValidators(ce),this.valueAccessor=We(0,Vt)}ngOnChanges(w){this._added||this._setUpControl(),le(w,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(w){this.viewModel=w,this.update.emit(w)}get path(){return gi(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($){return new($||O)(i.rXU(sn,13),i.rXU(Re,10),i.rXU(rt,10),i.rXU(k,10),i.rXU(Or,8))};static#n=this.\u0275dir=i.FsC({type:O,selectors:[["","formControlName",""]],inputs:{name:[i.Mj6.None,"formControlName","name"],isDisabled:[i.Mj6.None,"disabled","isDisabled"],model:[i.Mj6.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.Jv_([Do]),i.Vt3,i.OA$]})}return O})();const Xo={provide:k,useExisting:(0,i.Rfq)(()=>Ir),multi:!0};function ri(O,x){return null==O?`${x}`:(x&&"object"==typeof x&&(x="Object"),`${O}: ${x}`.slice(0,50))}let Ir=(()=>{class O extends W{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(w){this._compareWith=w}writeValue(w){this.value=w;const ce=ri(this._getOptionId(w),w);this.setProperty("value",ce)}registerOnChange(w){this.onChange=$=>{this.value=this._getOptionValue($),w(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(w){for(const $ of this._optionMap.keys())if(this._compareWith(this._optionMap.get($),w))return $;return null}_getOptionValue(w){const $=function Eo(O){return O.split(":")[0]}(w);return this._optionMap.has($)?this._optionMap.get($):w}static#e=this.\u0275fac=(()=>{let w;return function(ce){return(w||(w=i.xGo(O)))(ce||O)}})();static#t=this.\u0275dir=i.FsC({type:O,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function($,ce){1&$&&i.bIt("change",function(gn){return ce.onChange(gn.target.value)})("blur",function(){return ce.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.Jv_([Xo]),i.Vt3]})}return O})(),Te=(()=>{class O{constructor(w,$,ce){this._element=w,this._renderer=$,this._select=ce,this._select&&(this.id=this._select._registerOption())}set ngValue(w){null!=this._select&&(this._select._optionMap.set(this.id,w),this._setElementValue(ri(this.id,w)),this._select.writeValue(this._select.value))}set value(w){this._setElementValue(w),this._select&&this._select.writeValue(this._select.value)}_setElementValue(w){this._renderer.setProperty(this._element.nativeElement,"value",w)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function($){return new($||O)(i.rXU(i.aKT),i.rXU(i.sFG),i.rXU(Ir,9))};static#t=this.\u0275dir=i.FsC({type:O,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return O})();const de={provide:k,useExisting:(0,i.Rfq)(()=>Vn),multi:!0};function Ge(O,x){return null==O?`${x}`:("string"==typeof x&&(x=`'${x}'`),x&&"object"==typeof x&&(x="Object"),`${O}: ${x}`.slice(0,50))}let Vn=(()=>{class O extends W{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(w){this._compareWith=w}writeValue(w){let $;if(this.value=w,Array.isArray(w)){const ce=w.map(Vt=>this._getOptionId(Vt));$=(Vt,gn)=>{Vt._setSelected(ce.indexOf(gn.toString())>-1)}}else $=(ce,Vt)=>{ce._setSelected(!1)};this._optionMap.forEach($)}registerOnChange(w){this.onChange=$=>{const ce=[],Vt=$.selectedOptions;if(void 0!==Vt){const gn=Vt;for(let Ki=0;Ki{let w;return function(ce){return(w||(w=i.xGo(O)))(ce||O)}})();static#t=this.\u0275dir=i.FsC({type:O,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function($,ce){1&$&&i.bIt("change",function(gn){return ce.onChange(gn.target)})("blur",function(){return ce.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.Jv_([de]),i.Vt3]})}return O})(),Gi=(()=>{class O{constructor(w,$,ce){this._element=w,this._renderer=$,this._select=ce,this._select&&(this.id=this._select._registerOption(this))}set ngValue(w){null!=this._select&&(this._value=w,this._setElementValue(Ge(this.id,w)),this._select.writeValue(this._select.value))}set value(w){this._select?(this._value=w,this._setElementValue(Ge(this.id,w)),this._select.writeValue(this._select.value)):this._setElementValue(w)}_setElementValue(w){this._renderer.setProperty(this._element.nativeElement,"value",w)}_setSelected(w){this._renderer.setProperty(this._element.nativeElement,"selected",w)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function($){return new($||O)(i.rXU(i.aKT),i.rXU(i.sFG),i.rXU(Vn,9))};static#t=this.\u0275dir=i.FsC({type:O,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return O})();function vi(O){return"number"==typeof O?O:parseFloat(O)}let Zr=(()=>{class O{constructor(){this._validator=Mt}ngOnChanges(w){if(this.inputName in w){const $=this.normalizeInput(w[this.inputName].currentValue);this._enabled=this.enabled($),this._validator=this._enabled?this.createValidator($):Mt,this._onChange&&this._onChange()}}validate(w){return this._validator(w)}registerOnValidatorChange(w){this._onChange=w}enabled(w){return null!=w}static#e=this.\u0275fac=function($){return new($||O)};static#t=this.\u0275dir=i.FsC({type:O,features:[i.OA$]})}return O})();const Ns={provide:Re,useExisting:(0,i.Rfq)(()=>Po),multi:!0};let Po=(()=>{class O extends Zr{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=w=>vi(w),this.createValidator=w=>He(w)}static#e=this.\u0275fac=(()=>{let w;return function(ce){return(w||(w=i.xGo(O)))(ce||O)}})();static#t=this.\u0275dir=i.FsC({type:O,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function($,ce){2&$&&i.BMQ("max",ce._enabled?ce.max:null)},inputs:{max:"max"},features:[i.Jv_([Ns]),i.Vt3]})}return O})();const Qs={provide:Re,useExisting:(0,i.Rfq)(()=>lo),multi:!0};let lo=(()=>{class O extends Zr{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=w=>vi(w),this.createValidator=w=>Qe(w)}static#e=this.\u0275fac=(()=>{let w;return function(ce){return(w||(w=i.xGo(O)))(ce||O)}})();static#t=this.\u0275dir=i.FsC({type:O,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function($,ce){2&$&&i.BMQ("min",ce._enabled?ce.min:null)},inputs:{min:"min"},features:[i.Jv_([Qs]),i.Vt3]})}return O})();const Qo={provide:Re,useExisting:(0,i.Rfq)(()=>Mi),multi:!0};let Mi=(()=>{class O extends Zr{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=i.L39,this.createValidator=w=>at}enabled(w){return w}static#e=this.\u0275fac=(()=>{let w;return function(ce){return(w||(w=i.xGo(O)))(ce||O)}})();static#t=this.\u0275dir=i.FsC({type:O,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function($,ce){2&$&&i.BMQ("required",ce._enabled?"":null)},inputs:{required:"required"},features:[i.Jv_([Qo]),i.Vt3]})}return O})(),zi=(()=>{class O{static#e=this.\u0275fac=function($){return new($||O)};static#t=this.\u0275mod=i.$C({type:O});static#n=this.\u0275inj=i.G2t({})}return O})();class Hn extends ot{constructor(x,w,$){super(Vr(w),wr($,w)),this.controls=x,this._initObservables(),this._setUpdateStrategy(w),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(x){return this.controls[this._adjustIndex(x)]}push(x,w={}){this.controls.push(x),this._registerControl(x),this.updateValueAndValidity({emitEvent:w.emitEvent}),this._onCollectionChange()}insert(x,w,$={}){this.controls.splice(x,0,w),this._registerControl(w),this.updateValueAndValidity({emitEvent:$.emitEvent})}removeAt(x,w={}){let $=this._adjustIndex(x);$<0&&($=0),this.controls[$]&&this.controls[$]._registerOnCollectionChange(()=>{}),this.controls.splice($,1),this.updateValueAndValidity({emitEvent:w.emitEvent})}setControl(x,w,$={}){let ce=this._adjustIndex(x);ce<0&&(ce=0),this.controls[ce]&&this.controls[ce]._registerOnCollectionChange(()=>{}),this.controls.splice(ce,1),w&&(this.controls.splice(ce,0,w),this._registerControl(w)),this.updateValueAndValidity({emitEvent:$.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(x,w={}){be(this,0,x),x.forEach(($,ce)=>{ne(this,!1,ce),this.at(ce).setValue($,{onlySelf:!0,emitEvent:w.emitEvent})}),this.updateValueAndValidity(w)}patchValue(x,w={}){null!=x&&(x.forEach(($,ce)=>{this.at(ce)&&this.at(ce).patchValue($,{onlySelf:!0,emitEvent:w.emitEvent})}),this.updateValueAndValidity(w))}reset(x=[],w={}){this._forEachChild(($,ce)=>{$.reset(x[ce],{onlySelf:!0,emitEvent:w.emitEvent})}),this._updatePristine(w),this._updateTouched(w),this.updateValueAndValidity(w)}getRawValue(){return this.controls.map(x=>x.getRawValue())}clear(x={}){this.controls.length<1||(this._forEachChild(w=>w._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:x.emitEvent}))}_adjustIndex(x){return x<0?x+this.length:x}_syncPendingControls(){let x=this.controls.reduce((w,$)=>!!$._syncPendingControls()||w,!1);return x&&this.updateValueAndValidity({onlySelf:!0}),x}_forEachChild(x){this.controls.forEach((w,$)=>{x(w,$)})}_updateValue(){this.value=this.controls.filter(x=>x.enabled||this.disabled).map(x=>x.value)}_anyControls(x){return this.controls.some(w=>w.enabled&&x(w))}_setUpControls(){this._forEachChild(x=>this._registerControl(x))}_allControlsDisabled(){for(const x of this.controls)if(x.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(x){x.setParent(this),x._registerOnCollectionChange(this._onCollectionChange)}_find(x){return this.at(x)??null}}function po(O){return!!O&&(void 0!==O.asyncValidators||void 0!==O.validators||void 0!==O.updateOn)}let es=(()=>{class O{constructor(){this.useNonNullable=!1}get nonNullable(){const w=new O;return w.useNonNullable=!0,w}group(w,$=null){const ce=this._reduceControls(w);let Vt={};return po($)?Vt=$:null!==$&&(Vt.validators=$.validator,Vt.asyncValidators=$.asyncValidator),new St(ce,Vt)}record(w,$=null){const ce=this._reduceControls(w);return new ar(ce,$)}control(w,$,ce){let Vt={};return this.useNonNullable?(po($)?Vt=$:(Vt.validators=$,Vt.asyncValidators=ce),new Pe(w,{...Vt,nonNullable:!0})):new Pe(w,$,ce)}array(w,$,ce){const Vt=w.map(gn=>this._createControl(gn));return new Hn(Vt,$,ce)}_reduceControls(w){const $={};return Object.keys(w).forEach(ce=>{$[ce]=this._createControl(w[ce])}),$}_createControl(w){return w instanceof Pe||w instanceof ot?w:Array.isArray(w)?this.control(w[0],w.length>1?w[1]:null,w.length>2?w[2]:null):this.control(w)}static#e=this.\u0275fac=function($){return new($||O)};static#t=this.\u0275prov=i.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}return O})(),Si=(()=>{class O extends es{group(w,$=null){return super.group(w,$)}control(w,$,ce){return super.control(w,$,ce)}array(w,$,ce){return super.array(w,$,ce)}static#e=this.\u0275fac=(()=>{let w;return function(ce){return(w||(w=i.xGo(O)))(ce||O)}})();static#t=this.\u0275prov=i.jDH({token:O,factory:O.\u0275fac,providedIn:"root"})}return O})(),Zs=(()=>{class O{static withConfig(w){return{ngModule:O,providers:[{provide:fr,useValue:w.callSetDisabledState??hr}]}}static#e=this.\u0275fac=function($){return new($||O)};static#t=this.\u0275mod=i.$C({type:O});static#n=this.\u0275inj=i.G2t({imports:[zi]})}return O})(),ms=(()=>{class O{static withConfig(w){return{ngModule:O,providers:[{provide:Or,useValue:w.warnOnNgModelWithFormControl??"always"},{provide:fr,useValue:w.callSetDisabledState??hr}]}}static#e=this.\u0275fac=function($){return new($||O)};static#t=this.\u0275mod=i.$C({type:O});static#n=this.\u0275inj=i.G2t({imports:[zi]})}return O})()},345:(qe,ie,D)=>{D.d(ie,{B7:()=>ft,B8:()=>ve,hE:()=>Un,up:()=>nr});var i=D(4438),P=D(177);class H extends P.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class G extends H{static makeCurrent(){(0,P.ZD)(new G)}onAndCancel(Ne,ne,be){return Ne.addEventListener(ne,be),()=>{Ne.removeEventListener(ne,be)}}dispatchEvent(Ne,ne){Ne.dispatchEvent(ne)}remove(Ne){Ne.parentNode&&Ne.parentNode.removeChild(Ne)}createElement(Ne,ne){return(ne=ne||this.getDefaultDocument()).createElement(Ne)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ne){return Ne.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ne){return Ne instanceof DocumentFragment}getGlobalEventTarget(Ne,ne){return"window"===ne?window:"document"===ne?Ne:"body"===ne?Ne.body:null}getBaseHref(Ne){const ne=function J(){return V=V||document.querySelector("base"),V?V.getAttribute("href"):null}();return null==ne?null:function W(Ee){return new URL(Ee,document.baseURI).pathname}(ne)}resetBaseElement(){V=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ne){return(0,P._b)(document.cookie,Ne)}}let V=null,Z=(()=>{class Ee{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(be){return new(be||Ee)};static#t=this.\u0275prov=i.jDH({token:Ee,factory:Ee.\u0275fac})}return Ee})();const oe=new i.nKC("");let ae=(()=>{class Ee{constructor(ne,be){this._zone=be,this._eventNameToPlugin=new Map,ne.forEach(ot=>{ot.manager=this}),this._plugins=ne.slice().reverse()}addEventListener(ne,be,ot){return this._findPluginFor(be).addEventListener(ne,be,ot)}getZone(){return this._zone}_findPluginFor(ne){let be=this._eventNameToPlugin.get(ne);if(be)return be;if(be=this._plugins.find(St=>St.supports(ne)),!be)throw new i.wOt(5101,!1);return this._eventNameToPlugin.set(ne,be),be}static#e=this.\u0275fac=function(be){return new(be||Ee)(i.KVO(oe),i.KVO(i.SKi))};static#t=this.\u0275prov=i.jDH({token:Ee,factory:Ee.\u0275fac})}return Ee})();class me{constructor(Ne){this._doc=Ne}}const Ce="ng-app-id";let Se=(()=>{class Ee{constructor(ne,be,ot,St={}){this.doc=ne,this.appId=be,this.nonce=ot,this.platformId=St,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,P.Vy)(St),this.resetHostNodes()}addStyles(ne){for(const be of ne)1===this.changeUsageCount(be,1)&&this.onStyleAdded(be)}removeStyles(ne){for(const be of ne)this.changeUsageCount(be,-1)<=0&&this.onStyleRemoved(be)}ngOnDestroy(){const ne=this.styleNodesInDOM;ne&&(ne.forEach(be=>be.remove()),ne.clear());for(const be of this.getAllStyles())this.onStyleRemoved(be);this.resetHostNodes()}addHost(ne){this.hostNodes.add(ne);for(const be of this.getAllStyles())this.addStyleToHost(ne,be)}removeHost(ne){this.hostNodes.delete(ne)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(ne){for(const be of this.hostNodes)this.addStyleToHost(be,ne)}onStyleRemoved(ne){const be=this.styleRef;be.get(ne)?.elements?.forEach(ot=>ot.remove()),be.delete(ne)}collectServerRenderedStyles(){const ne=this.doc.head?.querySelectorAll(`style[${Ce}="${this.appId}"]`);if(ne?.length){const be=new Map;return ne.forEach(ot=>{null!=ot.textContent&&be.set(ot.textContent,ot)}),be}return null}changeUsageCount(ne,be){const ot=this.styleRef;if(ot.has(ne)){const St=ot.get(ne);return St.usage+=be,St.usage}return ot.set(ne,{usage:be,elements:[]}),be}getStyleElement(ne,be){const ot=this.styleNodesInDOM,St=ot?.get(be);if(St?.parentNode===ne)return ot.delete(be),St.removeAttribute(Ce),St;{const Zt=this.doc.createElement("style");return this.nonce&&Zt.setAttribute("nonce",this.nonce),Zt.textContent=be,this.platformIsServer&&Zt.setAttribute(Ce,this.appId),ne.appendChild(Zt),Zt}}addStyleToHost(ne,be){const ot=this.getStyleElement(ne,be),St=this.styleRef,Zt=St.get(be)?.elements;Zt?Zt.push(ot):St.set(be,{elements:[ot],usage:1})}resetHostNodes(){const ne=this.hostNodes;ne.clear(),ne.add(this.doc.head)}static#e=this.\u0275fac=function(be){return new(be||Ee)(i.KVO(P.qQ),i.KVO(i.sZ2),i.KVO(i.BIS,8),i.KVO(i.Agw))};static#t=this.\u0275prov=i.jDH({token:Ee,factory:Ee.\u0275fac})}return Ee})();const De={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/"},Ue=/%COMP%/g,Qe=new i.nKC("",{providedIn:"root",factory:()=>!0});function et(Ee,Ne){return Ne.map(ne=>ne.replace(Ue,Ee))}let ft=(()=>{class Ee{constructor(ne,be,ot,St,Zt,Wn,lr,ar=null){this.eventManager=ne,this.sharedStylesHost=be,this.appId=ot,this.removeStylesOnCompDestroy=St,this.doc=Zt,this.platformId=Wn,this.ngZone=lr,this.nonce=ar,this.rendererByCompId=new Map,this.platformIsServer=(0,P.Vy)(Wn),this.defaultRenderer=new mt(ne,Zt,lr,this.platformIsServer)}createRenderer(ne,be){if(!ne||!be)return this.defaultRenderer;this.platformIsServer&&be.encapsulation===i.gXe.ShadowDom&&(be={...be,encapsulation:i.gXe.Emulated});const ot=this.getOrCreateRenderer(ne,be);return ot instanceof Pt?ot.applyToHost(ne):ot instanceof ht&&ot.applyStyles(),ot}getOrCreateRenderer(ne,be){const ot=this.rendererByCompId;let St=ot.get(be.id);if(!St){const Zt=this.doc,Wn=this.ngZone,lr=this.eventManager,ar=this.sharedStylesHost,br=this.removeStylesOnCompDestroy,fr=this.platformIsServer;switch(be.encapsulation){case i.gXe.Emulated:St=new Pt(lr,ar,be,this.appId,br,Zt,Wn,fr);break;case i.gXe.ShadowDom:return new dt(lr,ar,ne,be,Zt,Wn,this.nonce,fr);default:St=new ht(lr,ar,be,br,Zt,Wn,fr)}ot.set(be.id,St)}return St}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(be){return new(be||Ee)(i.KVO(ae),i.KVO(Se),i.KVO(i.sZ2),i.KVO(Qe),i.KVO(P.qQ),i.KVO(i.Agw),i.KVO(i.SKi),i.KVO(i.BIS))};static#t=this.\u0275prov=i.jDH({token:Ee,factory:Ee.\u0275fac})}return Ee})();class mt{constructor(Ne,ne,be,ot){this.eventManager=Ne,this.doc=ne,this.ngZone=be,this.platformIsServer=ot,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(Ne,ne){return ne?this.doc.createElementNS(De[ne]||ne,Ne):this.doc.createElement(Ne)}createComment(Ne){return this.doc.createComment(Ne)}createText(Ne){return this.doc.createTextNode(Ne)}appendChild(Ne,ne){(Mt(Ne)?Ne.content:Ne).appendChild(ne)}insertBefore(Ne,ne,be){Ne&&(Mt(Ne)?Ne.content:Ne).insertBefore(ne,be)}removeChild(Ne,ne){Ne&&Ne.removeChild(ne)}selectRootElement(Ne,ne){let be="string"==typeof Ne?this.doc.querySelector(Ne):Ne;if(!be)throw new i.wOt(-5104,!1);return ne||(be.textContent=""),be}parentNode(Ne){return Ne.parentNode}nextSibling(Ne){return Ne.nextSibling}setAttribute(Ne,ne,be,ot){if(ot){ne=ot+":"+ne;const St=De[ot];St?Ne.setAttributeNS(St,ne,be):Ne.setAttribute(ne,be)}else Ne.setAttribute(ne,be)}removeAttribute(Ne,ne,be){if(be){const ot=De[be];ot?Ne.removeAttributeNS(ot,ne):Ne.removeAttribute(`${be}:${ne}`)}else Ne.removeAttribute(ne)}addClass(Ne,ne){Ne.classList.add(ne)}removeClass(Ne,ne){Ne.classList.remove(ne)}setStyle(Ne,ne,be,ot){ot&(i.czy.DashCase|i.czy.Important)?Ne.style.setProperty(ne,be,ot&i.czy.Important?"important":""):Ne.style[ne]=be}removeStyle(Ne,ne,be){be&i.czy.DashCase?Ne.style.removeProperty(ne):Ne.style[ne]=""}setProperty(Ne,ne,be){null!=Ne&&(Ne[ne]=be)}setValue(Ne,ne){Ne.nodeValue=ne}listen(Ne,ne,be){if("string"==typeof Ne&&!(Ne=(0,P.QT)().getGlobalEventTarget(this.doc,Ne)))throw new Error(`Unsupported event target ${Ne} for event ${ne}`);return this.eventManager.addEventListener(Ne,ne,this.decoratePreventDefault(be))}decoratePreventDefault(Ne){return ne=>{if("__ngUnwrap__"===ne)return Ne;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>Ne(ne)):Ne(ne))&&ne.preventDefault()}}}function Mt(Ee){return"TEMPLATE"===Ee.tagName&&void 0!==Ee.content}class dt extends mt{constructor(Ne,ne,be,ot,St,Zt,Wn,lr){super(Ne,St,Zt,lr),this.sharedStylesHost=ne,this.hostEl=be,this.shadowRoot=be.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ar=et(ot.id,ot.styles);for(const br of ar){const fr=document.createElement("style");Wn&&fr.setAttribute("nonce",Wn),fr.textContent=br,this.shadowRoot.appendChild(fr)}}nodeOrShadowRoot(Ne){return Ne===this.hostEl?this.shadowRoot:Ne}appendChild(Ne,ne){return super.appendChild(this.nodeOrShadowRoot(Ne),ne)}insertBefore(Ne,ne,be){return super.insertBefore(this.nodeOrShadowRoot(Ne),ne,be)}removeChild(Ne,ne){return super.removeChild(this.nodeOrShadowRoot(Ne),ne)}parentNode(Ne){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ne)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class ht extends mt{constructor(Ne,ne,be,ot,St,Zt,Wn,lr){super(Ne,St,Zt,Wn),this.sharedStylesHost=ne,this.removeStylesOnCompDestroy=ot,this.styles=lr?et(lr,be.styles):be.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Pt extends ht{constructor(Ne,ne,be,ot,St,Zt,Wn,lr){const ar=ot+"-"+be.id;super(Ne,ne,be,St,Zt,Wn,lr,ar),this.contentAttr=function He(Ee){return"_ngcontent-%COMP%".replace(Ue,Ee)}(ar),this.hostAttr=function at(Ee){return"_nghost-%COMP%".replace(Ue,Ee)}(ar)}applyToHost(Ne){this.applyStyles(),this.setAttribute(Ne,this.hostAttr,"")}createElement(Ne,ne){const be=super.createElement(Ne,ne);return super.setAttribute(be,this.contentAttr,""),be}}let $e=(()=>{class Ee extends me{constructor(ne){super(ne)}supports(ne){return!0}addEventListener(ne,be,ot){return ne.addEventListener(be,ot,!1),()=>this.removeEventListener(ne,be,ot)}removeEventListener(ne,be,ot){return ne.removeEventListener(be,ot)}static#e=this.\u0275fac=function(be){return new(be||Ee)(i.KVO(P.qQ))};static#t=this.\u0275prov=i.jDH({token:Ee,factory:Ee.\u0275fac})}return Ee})();const wt=["alt","control","meta","shift"],se={"\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"},te={alt:Ee=>Ee.altKey,control:Ee=>Ee.ctrlKey,meta:Ee=>Ee.metaKey,shift:Ee=>Ee.shiftKey};let pe=(()=>{class Ee extends me{constructor(ne){super(ne)}supports(ne){return null!=Ee.parseEventName(ne)}addEventListener(ne,be,ot){const St=Ee.parseEventName(be),Zt=Ee.eventCallback(St.fullKey,ot,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,P.QT)().onAndCancel(ne,St.domEventName,Zt))}static parseEventName(ne){const be=ne.toLowerCase().split("."),ot=be.shift();if(0===be.length||"keydown"!==ot&&"keyup"!==ot)return null;const St=Ee._normalizeKey(be.pop());let Zt="",Wn=be.indexOf("code");if(Wn>-1&&(be.splice(Wn,1),Zt="code."),wt.forEach(ar=>{const br=be.indexOf(ar);br>-1&&(be.splice(br,1),Zt+=ar+".")}),Zt+=St,0!=be.length||0===St.length)return null;const lr={};return lr.domEventName=ot,lr.fullKey=Zt,lr}static matchEventFullKeyCode(ne,be){let ot=se[ne.key]||ne.key,St="";return be.indexOf("code.")>-1&&(ot=ne.code,St="code."),!(null==ot||!ot)&&(ot=ot.toLowerCase()," "===ot?ot="space":"."===ot&&(ot="dot"),wt.forEach(Zt=>{Zt!==ot&&(0,te[Zt])(ne)&&(St+=Zt+".")}),St+=ot,St===be)}static eventCallback(ne,be,ot){return St=>{Ee.matchEventFullKeyCode(St,ne)&&ot.runGuarded(()=>be(St))}}static _normalizeKey(ne){return"esc"===ne?"escape":ne}static#e=this.\u0275fac=function(be){return new(be||Ee)(i.KVO(P.qQ))};static#t=this.\u0275prov=i.jDH({token:Ee,factory:Ee.\u0275fac})}return Ee})();function ve(Ee,Ne){return(0,i.TL3)({rootComponent:Ee,...Le(Ne)})}function Le(Ee){return{appProviders:[...an,...Ee?.providers??[]],platformProviders:Nt}}const Nt=[{provide:i.Agw,useValue:P.AJ},{provide:i.PLl,useValue:function bt(){G.makeCurrent()},multi:!0},{provide:P.qQ,useFactory:function lt(){return(0,i.TL$)(document),document},deps:[]}],an=[{provide:i.H8p,useValue:"root"},{provide:i.zcH,useFactory:function Yt(){return new i.zcH},deps:[]},{provide:oe,useClass:$e,multi:!0,deps:[P.qQ,i.SKi,i.Agw]},{provide:oe,useClass:pe,multi:!0,deps:[P.qQ]},ft,Se,ae,{provide:i._9s,useExisting:ft},{provide:P.N0,useClass:Z,deps:[]},[]];let Un=(()=>{class Ee{constructor(ne){this._doc=ne}getTitle(){return this._doc.title}setTitle(ne){this._doc.title=ne||""}static#e=this.\u0275fac=function(be){return new(be||Ee)(i.KVO(P.qQ))};static#t=this.\u0275prov=i.jDH({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})(),nr=(()=>{class Ee{static#e=this.\u0275fac=function(be){return new(be||Ee)};static#t=this.\u0275prov=i.jDH({token:Ee,factory:function(be){let ot=null;return ot=be?new(be||Ee):i.KVO(Xt),ot},providedIn:"root"})}return Ee})(),Xt=(()=>{class Ee extends nr{constructor(ne){super(),this._doc=ne}sanitize(ne,be){if(null==be)return null;switch(ne){case i.WPN.NONE:return be;case i.WPN.HTML:return(0,i.ZF7)(be,"HTML")?(0,i.rcV)(be):(0,i.h9k)(this._doc,String(be)).toString();case i.WPN.STYLE:return(0,i.ZF7)(be,"Style")?(0,i.rcV)(be):be;case i.WPN.SCRIPT:if((0,i.ZF7)(be,"Script"))return(0,i.rcV)(be);throw new i.wOt(5200,!1);case i.WPN.URL:return(0,i.ZF7)(be,"URL")?(0,i.rcV)(be):(0,i.$MX)(String(be));case i.WPN.RESOURCE_URL:if((0,i.ZF7)(be,"ResourceURL"))return(0,i.rcV)(be);throw new i.wOt(5201,!1);default:throw new i.wOt(5202,!1)}}bypassSecurityTrustHtml(ne){return(0,i.Kcf)(ne)}bypassSecurityTrustStyle(ne){return(0,i.cWb)(ne)}bypassSecurityTrustScript(ne){return(0,i.UyX)(ne)}bypassSecurityTrustUrl(ne){return(0,i.osQ)(ne)}bypassSecurityTrustResourceUrl(ne){return(0,i.e5t)(ne)}static#e=this.\u0275fac=function(be){return new(be||Ee)(i.KVO(P.qQ))};static#t=this.\u0275prov=i.jDH({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})()},5539:(qe,ie,D)=>{D.d(ie,{nX:()=>wi,_d:()=>ui,nU:()=>un,wF:()=>Pe,Z:()=>Ae,Xk:()=>lt,Ix:()=>Rn,Wk:()=>er,wQ:()=>ei,n3:()=>Ge,lh:()=>Vo,GB:()=>Ta});var i=D(4438),P=D(4402),H=D(6648),G=D(7673),V=D(4412);const W=(0,D(1853).L)(p=>function(){p(this),this.name="EmptyError",this.message="no elements in sequence"});var k=D(4572),Z=D(8793),oe=D(9030),ae=D(1203),me=D(8810),Ce=D(983),Se=D(1985),De=D(8359),Ue=D(9974),Re=D(4360);function rt(){return(0,Ue.N)((p,E)=>{let v=null;p._refCount++;const C=(0,Re._)(E,void 0,void 0,void 0,()=>{if(!p||p._refCount<=0||0<--p._refCount)return void(v=null);const R=p._connection,z=v;v=null,R&&(!z||R===z)&&R.unsubscribe(),E.unsubscribe()});p.subscribe(C),C.closed||(v=p.connect())})}class _t extends Se.c{constructor(E,v){super(),this.source=E,this.subjectFactory=v,this._subject=null,this._refCount=0,this._connection=null,(0,Ue.S)(E)&&(this.lift=E.lift)}_subscribe(E){return this.getSubject().subscribe(E)}getSubject(){const E=this._subject;return(!E||E.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:E}=this;this._subject=this._connection=null,E?.unsubscribe()}connect(){let E=this._connection;if(!E){E=this._connection=new De.yU;const v=this.getSubject();E.add(this.source.subscribe((0,Re._)(v,void 0,()=>{this._teardown(),v.complete()},C=>{this._teardown(),v.error(C)},()=>this._teardown()))),E.closed&&(this._connection=null,E=De.yU.EMPTY)}return E}refCount(){return rt()(this)}}var ut=D(1413),Qe=D(177),He=D(6354),at=D(5558),et=D(6697),ft=D(9172),mt=D(5964),yt=D(1397),vt=D(9901);function Mt(p=dt){return(0,Ue.N)((E,v)=>{let C=!1;E.subscribe((0,Re._)(v,R=>{C=!0,v.next(R)},()=>C?v.complete():v.error(p())))})}function dt(){return new W}var ht=D(3669);function Pt(p,E){const v=arguments.length>=2;return C=>C.pipe(p?(0,mt.p)((R,z)=>p(R,z,C)):ht.D,(0,et.s)(1),v?(0,vt.U)(E):Mt(()=>new W))}var $e=D(274),wt=D(8141),se=D(9437),te=D(2816);function pe(p){return p<=0?()=>Ce.w:(0,Ue.N)((E,v)=>{let C=[];E.subscribe((0,Re._)(v,R=>{C.push(R),p{for(const R of C)v.next(R);v.complete()},void 0,()=>{C=null}))})}var we=D(3703),Le=D(980),xe=D(6977),bt=D(6365),Yt=D(345);const lt="primary",Nt=Symbol("RouteTitle");class Nn{constructor(E){this.params=E||{}}has(E){return Object.prototype.hasOwnProperty.call(this.params,E)}get(E){if(this.has(E)){const v=this.params[E];return Array.isArray(v)?v[0]:v}return null}getAll(E){if(this.has(E)){const v=this.params[E];return Array.isArray(v)?v:[v]}return[]}get keys(){return Object.keys(this.params)}}function Cn(p){return new Nn(p)}function sn(p,E,v){const C=v.path.split("/");if(C.length>p.length||"full"===v.pathMatch&&(E.hasChildren()||C.lengthC[z]===R)}return p===E}function Un(p){return p.length>0?p[p.length-1]:null}function Fe(p){return(0,P.A)(p)?p:(0,i.jNT)(p)?(0,H.H)(Promise.resolve(p)):(0,G.of)(p)}const Tt={exact:function pn(p,E,v){if(!nr(p.segments,E.segments)||!Zn(p.segments,E.segments,v)||p.numberOfChildren!==E.numberOfChildren)return!1;for(const C in E.children)if(!p.children[C]||!pn(p.children[C],E.children[C],v))return!1;return!0},subset:jt},on={exact:function Kn(p,E){return _n(p,E)},subset:function Xn(p,E){return Object.keys(E).length<=Object.keys(p).length&&Object.keys(E).every(v=>Kt(p[v],E[v]))},ignored:()=>!0};function Dn(p,E,v){return Tt[v.paths](p.root,E.root,v.matrixParams)&&on[v.queryParams](p.queryParams,E.queryParams)&&!("exact"===v.fragment&&p.fragment!==E.fragment)}function jt(p,E,v){return Jt(p,E,E.segments,v)}function Jt(p,E,v,C){if(p.segments.length>v.length){const R=p.segments.slice(0,v.length);return!(!nr(R,v)||E.hasChildren()||!Zn(R,v,C))}if(p.segments.length===v.length){if(!nr(p.segments,v)||!Zn(p.segments,v,C))return!1;for(const R in E.children)if(!p.children[R]||!jt(p.children[R],E.children[R],C))return!1;return!0}{const R=v.slice(0,p.segments.length),z=v.slice(p.segments.length);return!!(nr(p.segments,R)&&Zn(p.segments,R,C)&&p.children[lt])&&Jt(p.children[lt],E,z,C)}}function Zn(p,E,v){return E.every((C,R)=>on[v](p[R].parameters,C.parameters))}class jn{constructor(E=new Ht([],{}),v={},C=null){this.root=E,this.queryParams=v,this.fragment=C}get queryParamMap(){return this._queryParamMap??=Cn(this.queryParams),this._queryParamMap}toString(){return ln.serialize(this)}}class Ht{constructor(E,v){this.segments=E,this.children=v,this.parent=null,Object.values(v).forEach(C=>C.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return xr(this)}}class vn{constructor(E,v){this.path=E,this.parameters=v}get parameterMap(){return this._parameterMap??=Cn(this.parameters),this._parameterMap}toString(){return ne(this)}}function nr(p,E){return p.length===E.length&&p.every((v,C)=>v.path===E[C].path)}let ur=(()=>{class p{static#e=this.\u0275fac=function(C){return new(C||p)};static#t=this.\u0275prov=i.jDH({token:p,factory:()=>new un,providedIn:"root"})}return p})();class un{parse(E){const v=new gi(E);return new jn(v.parseRootSegment(),v.parseQueryParams(),v.parseFragment())}serialize(E){const v=`/${wn(E.root,!0)}`,C=function ot(p){const E=Object.entries(p).map(([v,C])=>Array.isArray(C)?C.map(R=>`${Vr(v)}=${Vr(R)}`).join("&"):`${Vr(v)}=${Vr(C)}`).filter(v=>v);return E.length?`?${E.join("&")}`:""}(E.queryParams);return`${v}${C}${"string"==typeof E.fragment?`#${function Nr(p){return encodeURI(p)}(E.fragment)}`:""}`}}const ln=new un;function xr(p){return p.segments.map(E=>ne(E)).join("/")}function wn(p,E){if(!p.hasChildren())return xr(p);if(E){const v=p.children[lt]?wn(p.children[lt],!1):"",C=[];return Object.entries(p.children).forEach(([R,z])=>{R!==lt&&C.push(`${R}:${wn(z,!1)}`)}),C.length>0?`${v}(${C.join("//")})`:v}{const v=function Xt(p,E){let v=[];return Object.entries(p.children).forEach(([C,R])=>{C===lt&&(v=v.concat(E(R,C)))}),Object.entries(p.children).forEach(([C,R])=>{C!==lt&&(v=v.concat(E(R,C)))}),v}(p,(C,R)=>R===lt?[wn(p.children[lt],!1)]:[`${R}:${wn(C,!1)}`]);return 1===Object.keys(p.children).length&&null!=p.children[lt]?`${xr(p)}/${v[0]}`:`${xr(p)}/(${v.join("//")})`}}function kn(p){return encodeURIComponent(p).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Vr(p){return kn(p).replace(/%3B/gi,";")}function wr(p){return kn(p).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ee(p){return decodeURIComponent(p)}function Ne(p){return Ee(p.replace(/\+/g,"%20"))}function ne(p){return`${wr(p.path)}${function be(p){return Object.entries(p).map(([E,v])=>`;${wr(E)}=${wr(v)}`).join("")}(p.parameters)}`}const St=/^[^\/()?;#]+/;function Zt(p){const E=p.match(St);return E?E[0]:""}const Wn=/^[^\/()?;=#]+/,ar=/^[^=?&#]+/,fr=/^[^&#]+/;class gi{constructor(E){this.url=E,this.remaining=E}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ht([],{}):new Ht([],this.parseChildren())}parseQueryParams(){const E={};if(this.consumeOptional("?"))do{this.parseQueryParam(E)}while(this.consumeOptional("&"));return E}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const E=[];for(this.peekStartsWith("(")||E.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),E.push(this.parseSegment());let v={};this.peekStartsWith("/(")&&(this.capture("/"),v=this.parseParens(!0));let C={};return this.peekStartsWith("(")&&(C=this.parseParens(!1)),(E.length>0||Object.keys(v).length>0)&&(C[lt]=new Ht(E,v)),C}parseSegment(){const E=Zt(this.remaining);if(""===E&&this.peekStartsWith(";"))throw new i.wOt(4009,!1);return this.capture(E),new vn(Ee(E),this.parseMatrixParams())}parseMatrixParams(){const E={};for(;this.consumeOptional(";");)this.parseParam(E);return E}parseParam(E){const v=function lr(p){const E=p.match(Wn);return E?E[0]:""}(this.remaining);if(!v)return;this.capture(v);let C="";if(this.consumeOptional("=")){const R=Zt(this.remaining);R&&(C=R,this.capture(C))}E[Ee(v)]=Ee(C)}parseQueryParam(E){const v=function br(p){const E=p.match(ar);return E?E[0]:""}(this.remaining);if(!v)return;this.capture(v);let C="";if(this.consumeOptional("=")){const fe=function hr(p){const E=p.match(fr);return E?E[0]:""}(this.remaining);fe&&(C=fe,this.capture(C))}const R=Ne(v),z=Ne(C);if(E.hasOwnProperty(R)){let fe=E[R];Array.isArray(fe)||(fe=[fe],E[R]=fe),fe.push(z)}else E[R]=z}parseParens(E){const v={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const C=Zt(this.remaining),R=this.remaining[C.length];if("/"!==R&&")"!==R&&";"!==R)throw new i.wOt(4010,!1);let z;C.indexOf(":")>-1?(z=C.slice(0,C.indexOf(":")),this.capture(z),this.capture(":")):E&&(z=lt);const fe=this.parseChildren();v[z]=1===Object.keys(fe).length?fe[lt]:new Ht([],fe),this.consumeOptional("//")}return v}peekStartsWith(E){return this.remaining.startsWith(E)}consumeOptional(E){return!!this.peekStartsWith(E)&&(this.remaining=this.remaining.substring(E.length),!0)}capture(E){if(!this.consumeOptional(E))throw new i.wOt(4011,!1)}}function Dr(p){return p.segments.length>0?new Ht([],{[lt]:p}):p}function kt(p){const E={};for(const[C,R]of Object.entries(p.children)){const z=kt(R);if(C===lt&&0===z.segments.length&&z.hasChildren())for(const[fe,Ye]of Object.entries(z.children))E[fe]=Ye;else(z.segments.length>0||z.hasChildren())&&(E[C]=z)}return function Bt(p){if(1===p.numberOfChildren&&p.children[lt]){const E=p.children[lt];return new Ht(p.segments.concat(E.segments),E.children)}return p}(new Ht(p.segments,E))}function li(p){return p instanceof jn}function Jr(p){let E;const R=Dr(function v(z){const fe={};for(const Ve of z.children){const It=v(Ve);fe[Ve.outlet]=It}const Ye=new Ht(z.url,fe);return z===p&&(E=Ye),Ye}(p.root));return E??R}function mi(p,E,v,C){let R=p;for(;R.parent;)R=R.parent;if(0===E.length)return yo(R,R,R,v,C);const z=function so(p){if("string"==typeof p[0]&&1===p.length&&"/"===p[0])return new Ri(!0,0,p);let E=0,v=!1;const C=p.reduce((R,z,fe)=>{if("object"==typeof z&&null!=z){if(z.outlets){const Ye={};return Object.entries(z.outlets).forEach(([Ve,It])=>{Ye[Ve]="string"==typeof It?It.split("/"):It}),[...R,{outlets:Ye}]}if(z.segmentPath)return[...R,z.segmentPath]}return"string"!=typeof z?[...R,z]:0===fe?(z.split("/").forEach((Ye,Ve)=>{0==Ve&&"."===Ye||(0==Ve&&""===Ye?v=!0:".."===Ye?E++:""!=Ye&&R.push(Ye))}),R):[...R,z]},[]);return new Ri(v,E,C)}(E);if(z.toRoot())return yo(R,R,new Ht([],{}),v,C);const fe=function Pi(p,E,v){if(p.isAbsolute)return new Ur(E,!0,0);if(!v)return new Ur(E,!1,NaN);if(null===v.parent)return new Ur(v,!0,0);const C=Ci(p.commands[0])?0:1;return function Wi(p,E,v){let C=p,R=E,z=v;for(;z>R;){if(z-=R,C=C.parent,!C)throw new i.wOt(4005,!1);R=C.segments.length}return new Ur(C,!1,R-z)}(v,v.segments.length-1+C,p.numberOfDoubleDots)}(z,R,p),Ye=fe.processChildren?ue(fe.segmentGroup,fe.index,z.commands):le(fe.segmentGroup,fe.index,z.commands);return yo(R,fe.segmentGroup,Ye,v,C)}function Ci(p){return"object"==typeof p&&null!=p&&!p.outlets&&!p.segmentPath}function In(p){return"object"==typeof p&&null!=p&&p.outlets}function yo(p,E,v,C,R){let fe,z={};C&&Object.entries(C).forEach(([Ve,It])=>{z[Ve]=Array.isArray(It)?It.map(Fn=>`${Fn}`):`${It}`}),fe=p===E?v:ci(p,E,v);const Ye=Dr(kt(fe));return new jn(Ye,z,R)}function ci(p,E,v){const C={};return Object.entries(p.children).forEach(([R,z])=>{C[R]=z===E?v:ci(z,E,v)}),new Ht(p.segments,C)}class Ri{constructor(E,v,C){if(this.isAbsolute=E,this.numberOfDoubleDots=v,this.commands=C,E&&C.length>0&&Ci(C[0]))throw new i.wOt(4003,!1);const R=C.find(In);if(R&&R!==Un(C))throw new i.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ur{constructor(E,v,C){this.segmentGroup=E,this.processChildren=v,this.index=C}}function le(p,E,v){if(p??=new Ht([],{}),0===p.segments.length&&p.hasChildren())return ue(p,E,v);const C=function Je(p,E,v){let C=0,R=E;const z={match:!1,pathIndex:0,commandIndex:0};for(;R=v.length)return z;const fe=p.segments[R],Ye=v[C];if(In(Ye))break;const Ve=`${Ye}`,It=C0&&void 0===Ve)break;if(Ve&&It&&"object"==typeof It&&void 0===It.outlets){if(!U(Ve,It,fe))return z;C+=2}else{if(!U(Ve,{},fe))return z;C++}R++}return{match:!0,pathIndex:R,commandIndex:C}}(p,E,v),R=v.slice(C.commandIndex);if(C.match&&C.pathIndexz!==lt)&&p.children[lt]&&1===p.numberOfChildren&&0===p.children[lt].segments.length){const z=ue(p.children[lt],E,v);return new Ht(p.segments,z.children)}return Object.entries(C).forEach(([z,fe])=>{"string"==typeof fe&&(fe=[fe]),null!==fe&&(R[z]=le(p.children[z],E,fe))}),Object.entries(p.children).forEach(([z,fe])=>{void 0===C[z]&&(R[z]=fe)}),new Ht(p.segments,R)}}function We(p,E,v){const C=p.segments.slice(0,E);let R=0;for(;R{"string"==typeof C&&(C=[C]),null!==C&&(E[v]=We(new Ht([],{}),0,C))}),E}function Et(p){const E={};return Object.entries(p).forEach(([v,C])=>E[v]=`${C}`),E}function U(p,E,v){return p==v.path&&_n(E,v.parameters)}const X="imperative";var ee=function(p){return p[p.NavigationStart=0]="NavigationStart",p[p.NavigationEnd=1]="NavigationEnd",p[p.NavigationCancel=2]="NavigationCancel",p[p.NavigationError=3]="NavigationError",p[p.RoutesRecognized=4]="RoutesRecognized",p[p.ResolveStart=5]="ResolveStart",p[p.ResolveEnd=6]="ResolveEnd",p[p.GuardsCheckStart=7]="GuardsCheckStart",p[p.GuardsCheckEnd=8]="GuardsCheckEnd",p[p.RouteConfigLoadStart=9]="RouteConfigLoadStart",p[p.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",p[p.ChildActivationStart=11]="ChildActivationStart",p[p.ChildActivationEnd=12]="ChildActivationEnd",p[p.ActivationStart=13]="ActivationStart",p[p.ActivationEnd=14]="ActivationEnd",p[p.Scroll=15]="Scroll",p[p.NavigationSkipped=16]="NavigationSkipped",p}(ee||{});class q{constructor(E,v){this.id=E,this.url=v}}class Ae extends q{constructor(E,v,C="imperative",R=null){super(E,v),this.type=ee.NavigationStart,this.navigationTrigger=C,this.restoredState=R}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Pe extends q{constructor(E,v,C){super(E,v),this.urlAfterRedirects=C,this.type=ee.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Xe=function(p){return p[p.Redirect=0]="Redirect",p[p.SupersededByNewNavigation=1]="SupersededByNewNavigation",p[p.NoDataFromResolver=2]="NoDataFromResolver",p[p.GuardRejected=3]="GuardRejected",p}(Xe||{}),Be=function(p){return p[p.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",p[p.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",p}(Be||{});class nt extends q{constructor(E,v,C,R){super(E,v),this.reason=C,this.code=R,this.type=ee.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ct extends q{constructor(E,v,C,R){super(E,v),this.reason=C,this.code=R,this.type=ee.NavigationSkipped}}class Lt extends q{constructor(E,v,C,R){super(E,v),this.error=C,this.target=R,this.type=ee.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class qt extends q{constructor(E,v,C,R){super(E,v),this.urlAfterRedirects=C,this.state=R,this.type=ee.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tn extends q{constructor(E,v,C,R){super(E,v),this.urlAfterRedirects=C,this.state=R,this.type=ee.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Bn extends q{constructor(E,v,C,R,z){super(E,v),this.urlAfterRedirects=C,this.state=R,this.shouldActivate=z,this.type=ee.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class pr extends q{constructor(E,v,C,R){super(E,v),this.urlAfterRedirects=C,this.state=R,this.type=ee.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Yn extends q{constructor(E,v,C,R){super(E,v),this.urlAfterRedirects=C,this.state=R,this.type=ee.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $t{constructor(E){this.route=E,this.type=ee.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Sn{constructor(E){this.route=E,this.type=ee.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ha{constructor(E){this.snapshot=E,this.type=ee.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _i{constructor(E){this.snapshot=E,this.type=ee.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ro{constructor(E){this.snapshot=E,this.type=ee.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ui{constructor(E){this.snapshot=E,this.type=ee.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zi{}class yn{constructor(E){this.url=E}}class zo{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Or,this.attachRef=null}}let Or=(()=>{class p{constructor(){this.contexts=new Map}onChildOutletCreated(v,C){const R=this.getOrCreateContext(v);R.outlet=C,this.contexts.set(v,R)}onChildOutletDestroyed(v){const C=this.getContext(v);C&&(C.outlet=null,C.attachRef=null)}onOutletDeactivated(){const v=this.contexts;return this.contexts=new Map,v}onOutletReAttached(v){this.contexts=v}getOrCreateContext(v){let C=this.getContext(v);return C||(C=new zo,this.contexts.set(v,C)),C}getContext(v){return this.contexts.get(v)||null}static#e=this.\u0275fac=function(C){return new(C||p)};static#t=this.\u0275prov=i.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})();class hs{constructor(E){this._root=E}get root(){return this._root.value}parent(E){const v=this.pathFromRoot(E);return v.length>1?v[v.length-2]:null}children(E){const v=Ko(E,this._root);return v?v.children.map(C=>C.value):[]}firstChild(E){const v=Ko(E,this._root);return v&&v.children.length>0?v.children[0].value:null}siblings(E){const v=ps(E,this._root);return v.length<2?[]:v[v.length-2].children.map(R=>R.value).filter(R=>R!==E)}pathFromRoot(E){return ps(E,this._root).map(v=>v.value)}}function Ko(p,E){if(p===E.value)return E;for(const v of E.children){const C=Ko(p,v);if(C)return C}return null}function ps(p,E){if(p===E.value)return[E];for(const v of E.children){const C=ps(p,v);if(C.length)return C.unshift(E),C}return[]}class Tr{constructor(E,v){this.value=E,this.children=v}toString(){return`TreeNode(${this.value})`}}function xi(p){const E={};return p&&p.children.forEach(v=>E[v.value.outlet]=v),E}class ao extends hs{constructor(E,v){super(E),this.snapshot=v,ri(this,E)}toString(){return this.snapshot.toString()}}function gs(p){const E=function bo(p){const z=new Ti([],{},{},"",{},lt,p,null,{});return new Xo("",new Tr(z,[]))}(p),v=new V.t([new vn("",{})]),C=new V.t({}),R=new V.t({}),z=new V.t({}),fe=new V.t(""),Ye=new wi(v,C,z,fe,R,lt,p,E.root);return Ye.snapshot=E.root,new ao(new Tr(Ye,[]),E)}class wi{constructor(E,v,C,R,z,fe,Ye,Ve){this.urlSubject=E,this.paramsSubject=v,this.queryParamsSubject=C,this.fragmentSubject=R,this.dataSubject=z,this.outlet=fe,this.component=Ye,this._futureSnapshot=Ve,this.title=this.dataSubject?.pipe((0,He.T)(It=>It[Nt]))??(0,G.of)(void 0),this.url=E,this.params=v,this.queryParams=C,this.fragment=R,this.data=z}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,He.T)(E=>Cn(E))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,He.T)(E=>Cn(E))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Do(p,E,v="emptyOnly"){let C;const{routeConfig:R}=p;return C=null===E||"always"!==v&&""!==R?.path&&(E.component||E.routeConfig?.loadComponent)?{params:{...p.params},data:{...p.data},resolve:{...p.data,...p._resolvedData??{}}}:{params:{...E.params,...p.params},data:{...E.data,...p.data},resolve:{...p.data,...E.data,...R?.data,...p._resolvedData}},R&&de(R)&&(C.resolve[Nt]=R.title),C}class Ti{get title(){return this.data?.[Nt]}constructor(E,v,C,R,z,fe,Ye,Ve,It){this.url=E,this.params=v,this.queryParams=C,this.fragment=R,this.data=z,this.outlet=fe,this.component=Ye,this.routeConfig=Ve,this._resolve=It}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??=Cn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Cn(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(C=>C.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Xo extends hs{constructor(E,v){super(v),this.url=E,ri(this,v)}toString(){return Eo(this._root)}}function ri(p,E){E.value._routerState=p,E.children.forEach(v=>ri(p,v))}function Eo(p){const E=p.children.length>0?` { ${p.children.map(Eo).join(", ")} } `:"";return`${p.value}${E}`}function Ir(p){if(p.snapshot){const E=p.snapshot,v=p._futureSnapshot;p.snapshot=v,_n(E.queryParams,v.queryParams)||p.queryParamsSubject.next(v.queryParams),E.fragment!==v.fragment&&p.fragmentSubject.next(v.fragment),_n(E.params,v.params)||p.paramsSubject.next(v.params),function an(p,E){if(p.length!==E.length)return!1;for(let v=0;v_n(v.parameters,E[C].parameters))}(p.url,E.url);return v&&!(!p.parent!=!E.parent)&&(!p.parent||Te(p.parent,E.parent))}function de(p){return"string"==typeof p.title||null===p.title}let Ge=(()=>{class p{constructor(){this.activated=null,this._activatedRoute=null,this.name=lt,this.activateEvents=new i.bkB,this.deactivateEvents=new i.bkB,this.attachEvents=new i.bkB,this.detachEvents=new i.bkB,this.parentContexts=(0,i.WQX)(Or),this.location=(0,i.WQX)(i.c1b),this.changeDetector=(0,i.WQX)(i.gRc),this.environmentInjector=(0,i.WQX)(i.uvJ),this.inputBinder=(0,i.WQX)(en,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(v){if(v.name){const{firstChange:C,previousValue:R}=v.name;if(C)return;this.isTrackedInParentContexts(R)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(R)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(v){return this.parentContexts.getContext(v)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const v=this.parentContexts.getContext(this.name);v?.route&&(v.attachRef?this.attach(v.attachRef,v.route):this.activateWith(v.route,v.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.wOt(4012,!1);this.location.detach();const v=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(v.instance),v}attach(v,C){this.activated=v,this._activatedRoute=C,this.location.insert(v.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(v.instance)}deactivate(){if(this.activated){const v=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(v)}}activateWith(v,C){if(this.isActivated)throw new i.wOt(4013,!1);this._activatedRoute=v;const R=this.location,fe=v.snapshot.component,Ye=this.parentContexts.getOrCreateContext(this.name).children,Ve=new xt(v,Ye,R.injector);this.activated=R.createComponent(fe,{index:R.length,injector:Ve,environmentInjector:C??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(C){return new(C||p)};static#t=this.\u0275dir=i.FsC({type:p,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[i.OA$]})}return p})();class xt{constructor(E,v,C){this.route=E,this.childContexts=v,this.parent=C,this.__ngOutletInjector=!0}get(E,v){return E===wi?this.route:E===Or?this.childContexts:this.parent.get(E,v)}}const en=new i.nKC("");function rr(p,E,v){if(v&&p.shouldReuseRoute(E.value,v.value.snapshot)){const C=v.value;C._futureSnapshot=E.value;const R=function vi(p,E,v){return E.children.map(C=>{for(const R of v.children)if(p.shouldReuseRoute(C.value,R.value.snapshot))return rr(p,C,R);return rr(p,C)})}(p,E,v);return new Tr(C,R)}{if(p.shouldAttach(E.value)){const z=p.retrieve(E.value);if(null!==z){const fe=z.route;return fe.value._futureSnapshot=E.value,fe.children=E.children.map(Ye=>rr(p,Ye)),fe}}const C=function Zr(p){return new wi(new V.t(p.url),new V.t(p.params),new V.t(p.queryParams),new V.t(p.fragment),new V.t(p.data),p.outlet,p.component,p)}(E.value),R=E.children.map(z=>rr(p,z));return new Tr(C,R)}}const Ns="ngNavigationCancelingError";function Po(p,E){const{redirectTo:v,navigationBehaviorOptions:C}=li(E)?{redirectTo:E,navigationBehaviorOptions:void 0}:E,R=Qs(!1,Xe.Redirect);return R.url=v,R.navigationBehaviorOptions=C,R}function Qs(p,E){const v=new Error(`NavigationCancelingError: ${p||""}`);return v[Ns]=!0,v.cancellationCode=E,v}function Qo(p){return!!p&&p[Ns]}let ii=(()=>{class p{static#e=this.\u0275fac=function(C){return new(C||p)};static#t=this.\u0275cmp=i.VBU({type:p,selectors:[["ng-component"]],standalone:!0,features:[i.aNF],decls:1,vars:0,template:function(C,R){1&C&&i.nrm(0,"router-outlet")},dependencies:[Ge],encapsulation:2})}return p})();function wo(p){const E=p.children&&p.children.map(wo),v=E?{...p,children:E}:{...p};return!v.component&&!v.loadComponent&&(E||v.loadChildren)&&v.outlet&&v.outlet!==lt&&(v.component=ii),v}function jr(p){return p.outlet||lt}function qo(p){if(!p)return null;if(p.routeConfig?._injector)return p.routeConfig._injector;for(let E=p.parent;E;E=E.parent){const v=E.routeConfig;if(v?._loadedInjector)return v._loadedInjector;if(v?._injector)return v._injector}return null}class xo{constructor(E,v,C,R,z){this.routeReuseStrategy=E,this.futureState=v,this.currState=C,this.forwardEvent=R,this.inputBindingEnabled=z}activate(E){const v=this.futureState._root,C=this.currState?this.currState._root:null;this.deactivateChildRoutes(v,C,E),Ir(this.futureState.root),this.activateChildRoutes(v,C,E)}deactivateChildRoutes(E,v,C){const R=xi(v);E.children.forEach(z=>{const fe=z.value.outlet;this.deactivateRoutes(z,R[fe],C),delete R[fe]}),Object.values(R).forEach(z=>{this.deactivateRouteAndItsChildren(z,C)})}deactivateRoutes(E,v,C){const R=E.value,z=v?v.value:null;if(R===z)if(R.component){const fe=C.getContext(R.outlet);fe&&this.deactivateChildRoutes(E,v,fe.children)}else this.deactivateChildRoutes(E,v,C);else z&&this.deactivateRouteAndItsChildren(v,C)}deactivateRouteAndItsChildren(E,v){E.value.component&&this.routeReuseStrategy.shouldDetach(E.value.snapshot)?this.detachAndStoreRouteSubtree(E,v):this.deactivateRouteAndOutlet(E,v)}detachAndStoreRouteSubtree(E,v){const C=v.getContext(E.value.outlet),R=C&&E.value.component?C.children:v,z=xi(E);for(const fe of Object.values(z))this.deactivateRouteAndItsChildren(fe,R);if(C&&C.outlet){const fe=C.outlet.detach(),Ye=C.children.onOutletDeactivated();this.routeReuseStrategy.store(E.value.snapshot,{componentRef:fe,route:E,contexts:Ye})}}deactivateRouteAndOutlet(E,v){const C=v.getContext(E.value.outlet),R=C&&E.value.component?C.children:v,z=xi(E);for(const fe of Object.values(z))this.deactivateRouteAndItsChildren(fe,R);C&&(C.outlet&&(C.outlet.deactivate(),C.children.onOutletDeactivated()),C.attachRef=null,C.route=null)}activateChildRoutes(E,v,C){const R=xi(v);E.children.forEach(z=>{this.activateRoutes(z,R[z.value.outlet],C),this.forwardEvent(new ui(z.value.snapshot))}),E.children.length&&this.forwardEvent(new _i(E.value.snapshot))}activateRoutes(E,v,C){const R=E.value,z=v?v.value:null;if(Ir(R),R===z)if(R.component){const fe=C.getOrCreateContext(R.outlet);this.activateChildRoutes(E,v,fe.children)}else this.activateChildRoutes(E,v,C);else if(R.component){const fe=C.getOrCreateContext(R.outlet);if(this.routeReuseStrategy.shouldAttach(R.snapshot)){const Ye=this.routeReuseStrategy.retrieve(R.snapshot);this.routeReuseStrategy.store(R.snapshot,null),fe.children.onOutletReAttached(Ye.contexts),fe.attachRef=Ye.componentRef,fe.route=Ye.route.value,fe.outlet&&fe.outlet.attach(Ye.componentRef,Ye.route.value),Ir(Ye.route.value),this.activateChildRoutes(E,null,fe.children)}else{const Ye=qo(R.snapshot);fe.attachRef=null,fe.route=R,fe.injector=Ye,fe.outlet&&fe.outlet.activateWith(R,fe.injector),this.activateChildRoutes(E,null,fe.children)}}else this.activateChildRoutes(E,null,C)}}class Is{constructor(E){this.path=E,this.route=this.path[this.path.length-1]}}class po{constructor(E,v){this.component=E,this.route=v}}function es(p,E,v){const C=p._root;return Ai(C,E?E._root:null,v,[C.value])}function Si(p,E){const v=Symbol(),C=E.get(p,v);return C===v?"function"!=typeof p||(0,i.LfX)(p)?E.get(p):p:C}function Ai(p,E,v,C,R={canDeactivateChecks:[],canActivateChecks:[]}){const z=xi(E);return p.children.forEach(fe=>{(function Zs(p,E,v,C,R={canDeactivateChecks:[],canActivateChecks:[]}){const z=p.value,fe=E?E.value:null,Ye=v?v.getContext(p.value.outlet):null;if(fe&&z.routeConfig===fe.routeConfig){const Ve=function ms(p,E,v){if("function"==typeof v)return v(p,E);switch(v){case"pathParamsChange":return!nr(p.url,E.url);case"pathParamsOrQueryParamsChange":return!nr(p.url,E.url)||!_n(p.queryParams,E.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Te(p,E)||!_n(p.queryParams,E.queryParams);default:return!Te(p,E)}}(fe,z,z.routeConfig.runGuardsAndResolvers);Ve?R.canActivateChecks.push(new Is(C)):(z.data=fe.data,z._resolvedData=fe._resolvedData),Ai(p,E,z.component?Ye?Ye.children:null:v,C,R),Ve&&Ye&&Ye.outlet&&Ye.outlet.isActivated&&R.canDeactivateChecks.push(new po(Ye.outlet.component,fe))}else fe&&O(E,Ye,R),R.canActivateChecks.push(new Is(C)),Ai(p,null,z.component?Ye?Ye.children:null:v,C,R)})(fe,z[fe.value.outlet],v,C.concat([fe.value]),R),delete z[fe.value.outlet]}),Object.entries(z).forEach(([fe,Ye])=>O(Ye,v.getContext(fe),R)),R}function O(p,E,v){const C=xi(p),R=p.value;Object.entries(C).forEach(([z,fe])=>{O(fe,R.component?E?E.children.getContext(z):null:E,v)}),v.canDeactivateChecks.push(new po(R.component&&E&&E.outlet&&E.outlet.isActivated?E.outlet.component:null,R))}function x(p){return"function"==typeof p}function Fo(p){return p instanceof W||"EmptyError"===p?.name}const qr=Symbol("INITIAL_VALUE");function To(){return(0,at.n)(p=>(0,k.z)(p.map(E=>E.pipe((0,et.s)(1),(0,ft.Z)(qr)))).pipe((0,He.T)(E=>{for(const v of E)if(!0!==v){if(v===qr)return qr;if(!1===v||v instanceof jn)return v}return!0}),(0,mt.p)(E=>E!==qr),(0,et.s)(1)))}function ma(p){return(0,ae.F)((0,wt.M)(E=>{if(li(E))throw Po(0,E)}),(0,He.T)(E=>!0===E))}class Ps{constructor(E){this.segmentGroup=E||null}}class xs extends Error{constructor(E){super(),this.urlTree=E}}function Lo(p){return(0,me.$)(new Ps(p))}class Hr{constructor(E,v){this.urlSerializer=E,this.urlTree=v}lineralizeSegments(E,v){let C=[],R=v.root;for(;;){if(C=C.concat(R.segments),0===R.numberOfChildren)return(0,G.of)(C);if(R.numberOfChildren>1||!R.children[lt])return(0,me.$)(new i.wOt(4e3,!1));R=R.children[lt]}}applyRedirectCommands(E,v,C){const R=this.applyRedirectCreateUrlTree(v,this.urlSerializer.parse(v),E,C);if(v.startsWith("/"))throw new xs(R);return R}applyRedirectCreateUrlTree(E,v,C,R){const z=this.createSegmentGroup(E,v.root,C,R);return new jn(z,this.createQueryParams(v.queryParams,this.urlTree.queryParams),v.fragment)}createQueryParams(E,v){const C={};return Object.entries(E).forEach(([R,z])=>{if("string"==typeof z&&z.startsWith(":")){const Ye=z.substring(1);C[R]=v[Ye]}else C[R]=z}),C}createSegmentGroup(E,v,C,R){const z=this.createSegments(E,v.segments,C,R);let fe={};return Object.entries(v.children).forEach(([Ye,Ve])=>{fe[Ye]=this.createSegmentGroup(E,Ve,C,R)}),new Ht(z,fe)}createSegments(E,v,C,R){return v.map(z=>z.path.startsWith(":")?this.findPosParam(E,z,R):this.findOrReturn(z,C))}findPosParam(E,v,C){const R=C[v.path.substring(1)];if(!R)throw new i.wOt(4001,!1);return R}findOrReturn(E,v){let C=0;for(const R of v){if(R.path===E.path)return v.splice(C),R;C++}return E}}const Lr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Xi(p,E,v,C,R){const z=oi(p,E,v);return z.matched?(C=function Mi(p,E){return p.providers&&!p._injector&&(p._injector=(0,i.Ol2)(p.providers,E,`Route: ${p.path}`)),p._injector??E}(E,C),function dl(p,E,v,C){const R=E.canMatch;if(!R||0===R.length)return(0,G.of)(!0);const z=R.map(fe=>{const Ye=Si(fe,p);return Fe(function Ki(p){return p&&x(p.canMatch)}(Ye)?Ye.canMatch(E,v):(0,i.N4e)(p,()=>Ye(E,v)))});return(0,G.of)(z).pipe(To(),ma())}(C,E,v).pipe((0,He.T)(fe=>!0===fe?z:{...Lr}))):(0,G.of)(z)}function oi(p,E,v){if("**"===E.path)return function Ll(p){return{matched:!0,parameters:p.length>0?Un(p).parameters:{},consumedSegments:p,remainingSegments:[],positionalParamSegments:{}}}(v);if(""===E.path)return"full"===E.pathMatch&&(p.hasChildren()||v.length>0)?{...Lr}:{matched:!0,consumedSegments:[],remainingSegments:v,parameters:{},positionalParamSegments:{}};const R=(E.matcher||sn)(v,p,E);if(!R)return{...Lr};const z={};Object.entries(R.posParams??{}).forEach(([Ye,Ve])=>{z[Ye]=Ve.path});const fe=R.consumed.length>0?{...z,...R.consumed[R.consumed.length-1].parameters}:z;return{matched:!0,consumedSegments:R.consumed,remainingSegments:v.slice(R.consumed.length),parameters:fe,positionalParamSegments:R.posParams??{}}}function va(p,E,v,C){return v.length>0&&function Wa(p,E,v){return v.some(C=>ns(p,E,C)&&jr(C)!==lt)}(p,v,C)?{segmentGroup:new Ht(E,$a(C,new Ht(v,p.children))),slicedSegments:[]}:0===v.length&&function qs(p,E,v){return v.some(C=>ns(p,E,C))}(p,v,C)?{segmentGroup:new Ht(p.segments,ko(p,v,C,p.children)),slicedSegments:v}:{segmentGroup:new Ht(p.segments,p.children),slicedSegments:v}}function ko(p,E,v,C){const R={};for(const z of v)if(ns(p,E,z)&&!C[jr(z)]){const fe=new Ht([],{});R[jr(z)]=fe}return{...C,...R}}function $a(p,E){const v={};v[lt]=E;for(const C of p)if(""===C.path&&jr(C)!==lt){const R=new Ht([],{});v[jr(C)]=R}return v}function ns(p,E,v){return(!(p.hasChildren()||E.length>0)||"full"!==v.pathMatch)&&""===v.path}class ea{}class za{constructor(E,v,C,R,z,fe,Ye){this.injector=E,this.configLoader=v,this.rootComponentType=C,this.config=R,this.urlTree=z,this.paramsInheritanceStrategy=fe,this.urlSerializer=Ye,this.applyRedirects=new Hr(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(E){return new i.wOt(4002,`'${E.segmentGroup}'`)}recognize(){const E=va(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(E).pipe((0,He.T)(v=>{const C=new Ti([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},lt,this.rootComponentType,null,{}),R=new Tr(C,v),z=new Xo("",R),fe=function Ii(p,E,v=null,C=null){return mi(Jr(p),E,v,C)}(C,[],this.urlTree.queryParams,this.urlTree.fragment);return fe.queryParams=this.urlTree.queryParams,z.url=this.urlSerializer.serialize(fe),this.inheritParamsAndData(z._root,null),{state:z,tree:fe}}))}match(E){return this.processSegmentGroup(this.injector,this.config,E,lt).pipe((0,se.W)(C=>{if(C instanceof xs)return this.urlTree=C.urlTree,this.match(C.urlTree.root);throw C instanceof Ps?this.noMatchError(C):C}))}inheritParamsAndData(E,v){const C=E.value,R=Do(C,v,this.paramsInheritanceStrategy);C.params=Object.freeze(R.params),C.data=Object.freeze(R.data),E.children.forEach(z=>this.inheritParamsAndData(z,C))}processSegmentGroup(E,v,C,R){return 0===C.segments.length&&C.hasChildren()?this.processChildren(E,v,C):this.processSegment(E,v,C,C.segments,R,!0).pipe((0,He.T)(z=>z instanceof Tr?[z]:[]))}processChildren(E,v,C){const R=[];for(const z of Object.keys(C.children))"primary"===z?R.unshift(z):R.push(z);return(0,H.H)(R).pipe((0,$e.H)(z=>{const fe=C.children[z],Ye=function Js(p,E){const v=p.filter(C=>jr(C)===E);return v.push(...p.filter(C=>jr(C)!==E)),v}(v,z);return this.processSegmentGroup(E,Ye,fe,z)}),(0,te.S)((z,fe)=>(z.push(...fe),z)),(0,vt.U)(null),function ve(p,E){const v=arguments.length>=2;return C=>C.pipe(p?(0,mt.p)((R,z)=>p(R,z,C)):ht.D,pe(1),v?(0,vt.U)(E):Mt(()=>new W))}(),(0,yt.Z)(z=>{if(null===z)return Lo(C);const fe=Xa(z);return function ba(p){p.sort((E,v)=>E.value.outlet===lt?-1:v.value.outlet===lt?1:E.value.outlet.localeCompare(v.value.outlet))}(fe),(0,G.of)(fe)}))}processSegment(E,v,C,R,z,fe){return(0,H.H)(v).pipe((0,$e.H)(Ye=>this.processSegmentAgainstRoute(Ye._injector??E,v,Ye,C,R,z,fe).pipe((0,se.W)(Ve=>{if(Ve instanceof Ps)return(0,G.of)(null);throw Ve}))),Pt(Ye=>!!Ye),(0,se.W)(Ye=>{if(Fo(Ye))return function Ga(p,E,v){return 0===E.length&&!p.children[v]}(C,R,z)?(0,G.of)(new ea):Lo(C);throw Ye}))}processSegmentAgainstRoute(E,v,C,R,z,fe,Ye){return function Ls(p,E,v,C){return!!(jr(p)===C||C!==lt&&ns(E,v,p))&&oi(E,p,v).matched}(C,R,z,fe)?void 0===C.redirectTo?this.matchSegmentAgainstRoute(E,R,C,z,fe):this.allowRedirects&&Ye?this.expandSegmentAgainstRouteUsingRedirect(E,R,v,C,z,fe):Lo(R):Lo(R)}expandSegmentAgainstRouteUsingRedirect(E,v,C,R,z,fe){const{matched:Ye,consumedSegments:Ve,positionalParamSegments:It,remainingSegments:Fn}=oi(v,R,z);if(!Ye)return Lo(v);R.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const xn=this.applyRedirects.applyRedirectCommands(Ve,R.redirectTo,It);return this.applyRedirects.lineralizeSegments(R,xn).pipe((0,yt.Z)(si=>this.processSegment(E,C,v,si.concat(Fn),fe,!1)))}matchSegmentAgainstRoute(E,v,C,R,z){const fe=Xi(v,C,R,E);return"**"===C.path&&(v.children={}),fe.pipe((0,at.n)(Ye=>Ye.matched?this.getChildConfig(E=C._injector??E,C,R).pipe((0,at.n)(({routes:Ve})=>{const It=C._loadedInjector??E,{consumedSegments:Fn,remainingSegments:xn,parameters:si}=Ye,ss=new Ti(Fn,si,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function fl(p){return p.data||{}}(C),jr(C),C.component??C._loadedComponent??null,C,function Da(p){return p.resolve||{}}(C)),{segmentGroup:js,slicedSegments:as}=va(v,Fn,xn,Ve);if(0===as.length&&js.hasChildren())return this.processChildren(It,Ve,js).pipe((0,He.T)(Uo=>null===Uo?null:new Tr(ss,Uo)));if(0===Ve.length&&0===as.length)return(0,G.of)(new Tr(ss,[]));const Es=jr(C)===z;return this.processSegment(It,Ve,js,as,Es?lt:z,!0).pipe((0,He.T)(Uo=>new Tr(ss,Uo instanceof Tr?[Uo]:[])))})):Lo(v)))}getChildConfig(E,v,C){return v.children?(0,G.of)({routes:v.children,injector:E}):v.loadChildren?void 0!==v._loadedRoutes?(0,G.of)({routes:v._loadedRoutes,injector:v._loadedInjector}):function _s(p,E,v,C){const R=E.canLoad;if(void 0===R||0===R.length)return(0,G.of)(!0);const z=R.map(fe=>{const Ye=Si(fe,p);return Fe(function $(p){return p&&x(p.canLoad)}(Ye)?Ye.canLoad(E,v):(0,i.N4e)(p,()=>Ye(E,v)))});return(0,G.of)(z).pipe(To(),ma())}(E,v,C).pipe((0,yt.Z)(R=>R?this.configLoader.loadChildren(E,v).pipe((0,wt.M)(z=>{v._loadedRoutes=z.routes,v._loadedInjector=z.injector})):function An(p){return(0,me.$)(Qs(!1,Xe.GuardRejected))}())):(0,G.of)({routes:[],injector:E})}}function Ka(p){const E=p.value.routeConfig;return E&&""===E.path}function Xa(p){const E=[],v=new Set;for(const C of p){if(!Ka(C)){E.push(C);continue}const R=E.find(z=>C.value.routeConfig===z.value.routeConfig);void 0!==R?(R.children.push(...C.children),v.add(R)):E.push(C)}for(const C of v){const R=Xa(C.children);E.push(new Tr(C.value,R))}return E.filter(C=>!v.has(C))}function ta(p){const E=p.children.map(v=>ta(v)).flat();return[p,...E]}function vs(p){return(0,at.n)(E=>{const v=p(E);return v?(0,H.H)(v).pipe((0,He.T)(()=>E)):(0,G.of)(E)})}let fi=(()=>{class p{buildTitle(v){let C,R=v.root;for(;void 0!==R;)C=this.getResolvedTitleForRoute(R)??C,R=R.children.find(z=>z.outlet===lt);return C}getResolvedTitleForRoute(v){return v.data[Nt]}static#e=this.\u0275fac=function(C){return new(C||p)};static#t=this.\u0275prov=i.jDH({token:p,factory:()=>(0,i.WQX)(hi),providedIn:"root"})}return p})(),hi=(()=>{class p extends fi{constructor(v){super(),this.title=v}updateTitle(v){const C=this.buildTitle(v);void 0!==C&&this.title.setTitle(C)}static#e=this.\u0275fac=function(C){return new(C||p)(i.KVO(Yt.hE))};static#t=this.\u0275prov=i.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})();const kr=new i.nKC("",{providedIn:"root",factory:()=>({})}),yi=new i.nKC("");let Bs=(()=>{class p{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,i.WQX)(i.Ql9)}loadComponent(v){if(this.componentLoaders.get(v))return this.componentLoaders.get(v);if(v._loadedComponent)return(0,G.of)(v._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(v);const C=Fe(v.loadComponent()).pipe((0,He.T)(na),(0,wt.M)(z=>{this.onLoadEndListener&&this.onLoadEndListener(v),v._loadedComponent=z}),(0,Le.j)(()=>{this.componentLoaders.delete(v)})),R=new _t(C,()=>new ut.B).pipe(rt());return this.componentLoaders.set(v,R),R}loadChildren(v,C){if(this.childrenLoaders.get(C))return this.childrenLoaders.get(C);if(C._loadedRoutes)return(0,G.of)({routes:C._loadedRoutes,injector:C._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(C);const z=function Qa(p,E,v,C){return Fe(p.loadChildren()).pipe((0,He.T)(na),(0,yt.Z)(R=>R instanceof i.Co$||Array.isArray(R)?(0,G.of)(R):(0,H.H)(E.compileModuleAsync(R))),(0,He.T)(R=>{C&&C(p);let z,fe,Ye=!1;return Array.isArray(R)?(fe=R,!0):(z=R.create(v).injector,fe=z.get(yi,[],{optional:!0,self:!0}).flat()),{routes:fe.map(wo),injector:z}}))}(C,this.compiler,v,this.onLoadEndListener).pipe((0,Le.j)(()=>{this.childrenLoaders.delete(C)})),fe=new _t(z,()=>new ut.B).pipe(rt());return this.childrenLoaders.set(C,fe),fe}static#e=this.\u0275fac=function(C){return new(C||p)};static#t=this.\u0275prov=i.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})();function na(p){return function hl(p){return p&&"object"==typeof p&&"default"in p}(p)?p.default:p}let Fi=(()=>{class p{static#e=this.\u0275fac=function(C){return new(C||p)};static#t=this.\u0275prov=i.jDH({token:p,factory:()=>(0,i.WQX)(Ya),providedIn:"root"})}return p})(),Ya=(()=>{class p{shouldProcessUrl(v){return!0}extract(v){return v}merge(v,C){return v}static#e=this.\u0275fac=function(C){return new(C||p)};static#t=this.\u0275prov=i.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})();const os=new i.nKC("");let I=(()=>{class p{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ut.B,this.transitionAbortSubject=new ut.B,this.configLoader=(0,i.WQX)(Bs),this.environmentInjector=(0,i.WQX)(i.uvJ),this.urlSerializer=(0,i.WQX)(ur),this.rootContexts=(0,i.WQX)(Or),this.location=(0,i.WQX)(Qe.aZ),this.inputBindingEnabled=null!==(0,i.WQX)(en,{optional:!0}),this.titleStrategy=(0,i.WQX)(fi),this.options=(0,i.WQX)(kr,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,i.WQX)(Fi),this.createViewTransition=(0,i.WQX)(os,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,G.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=R=>this.events.next(new Sn(R)),this.configLoader.onLoadStartListener=R=>this.events.next(new $t(R))}complete(){this.transitions?.complete()}handleNavigationRequest(v){const C=++this.navigationId;this.transitions?.next({...this.transitions.value,...v,id:C})}setupNavigations(v,C,R){return this.transitions=new V.t({id:0,currentUrlTree:C,currentRawUrl:C,extractedUrl:this.urlHandlingStrategy.extract(C),urlAfterRedirects:this.urlHandlingStrategy.extract(C),rawUrl:C,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:X,restoredState:null,currentSnapshot:R.snapshot,targetSnapshot:null,currentRouterState:R,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,mt.p)(z=>0!==z.id),(0,He.T)(z=>({...z,extractedUrl:this.urlHandlingStrategy.extract(z.rawUrl)})),(0,at.n)(z=>{let fe=!1,Ye=!1;return(0,G.of)(z).pipe((0,at.n)(Ve=>{if(this.navigationId>z.id)return this.cancelNavigationTransition(z,"",Xe.SupersededByNewNavigation),Ce.w;this.currentTransition=z,this.currentNavigation={id:Ve.id,initialUrl:Ve.rawUrl,extractedUrl:Ve.extractedUrl,trigger:Ve.source,extras:Ve.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const It=!v.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!It&&"reload"!==(Ve.extras.onSameUrlNavigation??v.onSameUrlNavigation)){const xn="";return this.events.next(new ct(Ve.id,this.urlSerializer.serialize(Ve.rawUrl),xn,Be.IgnoredSameUrlNavigation)),Ve.resolve(null),Ce.w}if(this.urlHandlingStrategy.shouldProcessUrl(Ve.rawUrl))return(0,G.of)(Ve).pipe((0,at.n)(xn=>{const si=this.transitions?.getValue();return this.events.next(new Ae(xn.id,this.urlSerializer.serialize(xn.extractedUrl),xn.source,xn.restoredState)),si!==this.transitions?.getValue()?Ce.w:Promise.resolve(xn)}),function co(p,E,v,C,R,z){return(0,yt.Z)(fe=>function kl(p,E,v,C,R,z,fe="emptyOnly"){return new za(p,E,v,C,R,fe,z).recognize()}(p,E,v,C,fe.extractedUrl,R,z).pipe((0,He.T)(({state:Ye,tree:Ve})=>({...fe,targetSnapshot:Ye,urlAfterRedirects:Ve}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,v.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,wt.M)(xn=>{z.targetSnapshot=xn.targetSnapshot,z.urlAfterRedirects=xn.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:xn.urlAfterRedirects};const si=new qt(xn.id,this.urlSerializer.serialize(xn.extractedUrl),this.urlSerializer.serialize(xn.urlAfterRedirects),xn.targetSnapshot);this.events.next(si)}));if(It&&this.urlHandlingStrategy.shouldProcessUrl(Ve.currentRawUrl)){const{id:xn,extractedUrl:si,source:ss,restoredState:js,extras:as}=Ve,Es=new Ae(xn,this.urlSerializer.serialize(si),ss,js);this.events.next(Es);const Uo=gs(this.rootComponentType).snapshot;return this.currentTransition=z={...Ve,targetSnapshot:Uo,urlAfterRedirects:si,extras:{...as,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=si,(0,G.of)(z)}{const xn="";return this.events.next(new ct(Ve.id,this.urlSerializer.serialize(Ve.extractedUrl),xn,Be.IgnoredByUrlHandlingStrategy)),Ve.resolve(null),Ce.w}}),(0,wt.M)(Ve=>{const It=new tn(Ve.id,this.urlSerializer.serialize(Ve.extractedUrl),this.urlSerializer.serialize(Ve.urlAfterRedirects),Ve.targetSnapshot);this.events.next(It)}),(0,He.T)(Ve=>(this.currentTransition=z={...Ve,guards:es(Ve.targetSnapshot,Ve.currentSnapshot,this.rootContexts)},z)),function Ua(p,E){return(0,yt.Z)(v=>{const{targetSnapshot:C,currentSnapshot:R,guards:{canActivateChecks:z,canDeactivateChecks:fe}}=v;return 0===fe.length&&0===z.length?(0,G.of)({...v,guardsResult:!0}):function pa(p,E,v,C){return(0,H.H)(p).pipe((0,yt.Z)(R=>function qi(p,E,v,C,R){const z=E&&E.routeConfig?E.routeConfig.canDeactivate:null;if(!z||0===z.length)return(0,G.of)(!0);const fe=z.map(Ye=>{const Ve=qo(E)??R,It=Si(Ye,Ve);return Fe(function gn(p){return p&&x(p.canDeactivate)}(It)?It.canDeactivate(p,E,v,C):(0,i.N4e)(Ve,()=>It(p,E,v,C))).pipe(Pt())});return(0,G.of)(fe).pipe(To())}(R.component,R.route,v,E,C)),Pt(R=>!0!==R,!0))}(fe,C,R,p).pipe((0,yt.Z)(Ye=>Ye&&function w(p){return"boolean"==typeof p}(Ye)?function Rs(p,E,v,C){return(0,H.H)(E).pipe((0,$e.H)(R=>(0,Z.x)(function ja(p,E){return null!==p&&E&&E(new ha(p)),(0,G.of)(!0)}(R.route.parent,C),function gr(p,E){return null!==p&&E&&E(new Ro(p)),(0,G.of)(!0)}(R.route,C),function Ha(p,E,v){const C=E[E.length-1],z=E.slice(0,E.length-1).reverse().map(fe=>function ts(p){const E=p.routeConfig?p.routeConfig.canActivateChild:null;return E&&0!==E.length?{node:p,guards:E}:null}(fe)).filter(fe=>null!==fe).map(fe=>(0,oe.v)(()=>{const Ye=fe.guards.map(Ve=>{const It=qo(fe.node)??v,Fn=Si(Ve,It);return Fe(function Vt(p){return p&&x(p.canActivateChild)}(Fn)?Fn.canActivateChild(C,p):(0,i.N4e)(It,()=>Fn(C,p))).pipe(Pt())});return(0,G.of)(Ye).pipe(To())}));return(0,G.of)(z).pipe(To())}(p,R.path,v),function ga(p,E,v){const C=E.routeConfig?E.routeConfig.canActivate:null;if(!C||0===C.length)return(0,G.of)(!0);const R=C.map(z=>(0,oe.v)(()=>{const fe=qo(E)??v,Ye=Si(z,fe);return Fe(function ce(p){return p&&x(p.canActivate)}(Ye)?Ye.canActivate(E,p):(0,i.N4e)(fe,()=>Ye(E,p))).pipe(Pt())}));return(0,G.of)(R).pipe(To())}(p,R.route,v))),Pt(R=>!0!==R,!0))}(C,z,p,E):(0,G.of)(Ye)),(0,He.T)(Ye=>({...v,guardsResult:Ye})))})}(this.environmentInjector,Ve=>this.events.next(Ve)),(0,wt.M)(Ve=>{if(z.guardsResult=Ve.guardsResult,li(Ve.guardsResult))throw Po(0,Ve.guardsResult);const It=new Bn(Ve.id,this.urlSerializer.serialize(Ve.extractedUrl),this.urlSerializer.serialize(Ve.urlAfterRedirects),Ve.targetSnapshot,!!Ve.guardsResult);this.events.next(It)}),(0,mt.p)(Ve=>!!Ve.guardsResult||(this.cancelNavigationTransition(Ve,"",Xe.GuardRejected),!1)),vs(Ve=>{if(Ve.guards.canActivateChecks.length)return(0,G.of)(Ve).pipe((0,wt.M)(It=>{const Fn=new pr(It.id,this.urlSerializer.serialize(It.extractedUrl),this.urlSerializer.serialize(It.urlAfterRedirects),It.targetSnapshot);this.events.next(Fn)}),(0,at.n)(It=>{let Fn=!1;return(0,G.of)(It).pipe(function is(p,E){return(0,yt.Z)(v=>{const{targetSnapshot:C,guards:{canActivateChecks:R}}=v;if(!R.length)return(0,G.of)(v);const z=new Set(R.map(Ve=>Ve.route)),fe=new Set;for(const Ve of z)if(!fe.has(Ve))for(const It of ta(Ve))fe.add(It);let Ye=0;return(0,H.H)(fe).pipe((0,$e.H)(Ve=>z.has(Ve)?function ks(p,E,v,C){const R=p.routeConfig,z=p._resolve;return void 0!==R?.title&&!de(R)&&(z[Nt]=R.title),function Mr(p,E,v,C){const R=On(p);if(0===R.length)return(0,G.of)({});const z={};return(0,H.H)(R).pipe((0,yt.Z)(fe=>function go(p,E,v,C){const R=qo(E)??C,z=Si(p,R);return Fe(z.resolve?z.resolve(E,v):(0,i.N4e)(R,()=>z(E,v)))}(p[fe],E,v,C).pipe(Pt(),(0,wt.M)(Ye=>{z[fe]=Ye}))),pe(1),(0,we.u)(z),(0,se.W)(fe=>Fo(fe)?Ce.w:(0,me.$)(fe)))}(z,p,E,C).pipe((0,He.T)(fe=>(p._resolvedData=fe,p.data=Do(p,p.parent,v).resolve,null)))}(Ve,C,p,E):(Ve.data=Do(Ve,Ve.parent,p).resolve,(0,G.of)(void 0))),(0,wt.M)(()=>Ye++),pe(1),(0,yt.Z)(Ve=>Ye===fe.size?(0,G.of)(v):Ce.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,wt.M)({next:()=>Fn=!0,complete:()=>{Fn||this.cancelNavigationTransition(It,"",Xe.NoDataFromResolver)}}))}),(0,wt.M)(It=>{const Fn=new Yn(It.id,this.urlSerializer.serialize(It.extractedUrl),this.urlSerializer.serialize(It.urlAfterRedirects),It.targetSnapshot);this.events.next(Fn)}))}),vs(Ve=>{const It=Fn=>{const xn=[];Fn.routeConfig?.loadComponent&&!Fn.routeConfig._loadedComponent&&xn.push(this.configLoader.loadComponent(Fn.routeConfig).pipe((0,wt.M)(si=>{Fn.component=si}),(0,He.T)(()=>{})));for(const si of Fn.children)xn.push(...It(si));return xn};return(0,k.z)(It(Ve.targetSnapshot.root)).pipe((0,vt.U)(null),(0,et.s)(1))}),vs(()=>this.afterPreactivation()),(0,at.n)(()=>{const{currentSnapshot:Ve,targetSnapshot:It}=z,Fn=this.createViewTransition?.(this.environmentInjector,Ve.root,It.root);return Fn?(0,H.H)(Fn).pipe((0,He.T)(()=>z)):(0,G.of)(z)}),(0,He.T)(Ve=>{const It=function Gi(p,E,v){const C=rr(p,E._root,v?v._root:void 0);return new ao(C,E)}(v.routeReuseStrategy,Ve.targetSnapshot,Ve.currentRouterState);return this.currentTransition=z={...Ve,targetRouterState:It},this.currentNavigation.targetRouterState=It,z}),(0,wt.M)(()=>{this.events.next(new Zi)}),((p,E,v,C)=>(0,He.T)(R=>(new xo(E,R.targetRouterState,R.currentRouterState,v,C).activate(p),R)))(this.rootContexts,v.routeReuseStrategy,Ve=>this.events.next(Ve),this.inputBindingEnabled),(0,et.s)(1),(0,wt.M)({next:Ve=>{fe=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Pe(Ve.id,this.urlSerializer.serialize(Ve.extractedUrl),this.urlSerializer.serialize(Ve.urlAfterRedirects))),this.titleStrategy?.updateTitle(Ve.targetRouterState.snapshot),Ve.resolve(!0)},complete:()=>{fe=!0}}),(0,xe.Q)(this.transitionAbortSubject.pipe((0,wt.M)(Ve=>{throw Ve}))),(0,Le.j)(()=>{!fe&&!Ye&&this.cancelNavigationTransition(z,"",Xe.SupersededByNewNavigation),this.currentTransition?.id===z.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,se.W)(Ve=>{if(Ye=!0,Qo(Ve))this.events.next(new nt(z.id,this.urlSerializer.serialize(z.extractedUrl),Ve.message,Ve.cancellationCode)),function lo(p){return Qo(p)&&li(p.url)}(Ve)?this.events.next(new yn(Ve.url)):z.resolve(!1);else{this.events.next(new Lt(z.id,this.urlSerializer.serialize(z.extractedUrl),Ve,z.targetSnapshot??void 0));try{z.resolve(v.errorHandler(Ve))}catch(It){this.options.resolveNavigationPromiseOnError?z.resolve(!1):z.reject(It)}}return Ce.w}))}))}cancelNavigationTransition(v,C,R){const z=new nt(v.id,this.urlSerializer.serialize(v.extractedUrl),C,R);this.events.next(z),v.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function(C){return new(C||p)};static#t=this.\u0275prov=i.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})();function re(p){return p!==X}let ze=(()=>{class p{static#e=this.\u0275fac=function(C){return new(C||p)};static#t=this.\u0275prov=i.jDH({token:p,factory:()=>(0,i.WQX)(Ut),providedIn:"root"})}return p})();class st{shouldDetach(E){return!1}store(E,v){}shouldAttach(E){return!1}retrieve(E){return null}shouldReuseRoute(E,v){return E.routeConfig===v.routeConfig}}let Ut=(()=>{class p extends st{static#e=this.\u0275fac=(()=>{let v;return function(R){return(v||(v=i.xGo(p)))(R||p)}})();static#t=this.\u0275prov=i.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})(),mr=(()=>{class p{static#e=this.\u0275fac=function(C){return new(C||p)};static#t=this.\u0275prov=i.jDH({token:p,factory:()=>(0,i.WQX)(cr),providedIn:"root"})}return p})(),cr=(()=>{class p extends mr{constructor(){super(...arguments),this.location=(0,i.WQX)(Qe.aZ),this.urlSerializer=(0,i.WQX)(ur),this.options=(0,i.WQX)(kr,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,i.WQX)(Fi),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new jn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=gs(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(v){return this.location.subscribe(C=>{"popstate"===C.type&&v(C.url,C.state)})}handleRouterEvent(v,C){if(v instanceof Ae)this.stateMemento=this.createStateMemento();else if(v instanceof ct)this.rawUrlTree=C.initialUrl;else if(v instanceof qt){if("eager"===this.urlUpdateStrategy&&!C.extras.skipLocationChange){const R=this.urlHandlingStrategy.merge(C.finalUrl,C.initialUrl);this.setBrowserUrl(R,C)}}else v instanceof Zi?(this.currentUrlTree=C.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(C.finalUrl,C.initialUrl),this.routerState=C.targetRouterState,"deferred"===this.urlUpdateStrategy&&(C.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,C))):v instanceof nt&&(v.code===Xe.GuardRejected||v.code===Xe.NoDataFromResolver)?this.restoreHistory(C):v instanceof Lt?this.restoreHistory(C,!0):v instanceof Pe&&(this.lastSuccessfulId=v.id,this.currentPageId=this.browserPageId)}setBrowserUrl(v,C){const R=this.urlSerializer.serialize(v);if(this.location.isCurrentPathEqualTo(R)||C.extras.replaceUrl){const fe={...C.extras.state,...this.generateNgRouterState(C.id,this.browserPageId)};this.location.replaceState(R,"",fe)}else{const z={...C.extras.state,...this.generateNgRouterState(C.id,this.browserPageId+1)};this.location.go(R,"",z)}}restoreHistory(v,C=!1){if("computed"===this.canceledNavigationResolution){const z=this.currentPageId-this.browserPageId;0!==z?this.location.historyGo(z):this.currentUrlTree===v.finalUrl&&0===z&&(this.resetState(v),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(C&&this.resetState(v),this.resetUrlToCurrentUrlTree())}resetState(v){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,v.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(v,C){return"computed"===this.canceledNavigationResolution?{navigationId:v,\u0275routerPageId:C}:{navigationId:v}}static#e=this.\u0275fac=(()=>{let v;return function(R){return(v||(v=i.xGo(p)))(R||p)}})();static#t=this.\u0275prov=i.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})();var qn=function(p){return p[p.COMPLETE=0]="COMPLETE",p[p.FAILED=1]="FAILED",p[p.REDIRECTING=2]="REDIRECTING",p}(qn||{});function Sr(p){throw p}const ir={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Br={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Rn=(()=>{class p{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,i.WQX)(i.H3F),this.stateManager=(0,i.WQX)(mr),this.options=(0,i.WQX)(kr,{optional:!0})||{},this.pendingTasks=(0,i.WQX)(i.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,i.WQX)(I),this.urlSerializer=(0,i.WQX)(ur),this.location=(0,i.WQX)(Qe.aZ),this.urlHandlingStrategy=(0,i.WQX)(Fi),this._events=new ut.B,this.errorHandler=this.options.errorHandler||Sr,this.navigated=!1,this.routeReuseStrategy=(0,i.WQX)(ze),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,i.WQX)(yi,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,i.WQX)(en,{optional:!0}),this.eventsSubscription=new De.yU,this.isNgZoneEnabled=(0,i.WQX)(i.SKi)instanceof i.SKi&&i.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:v=>{this.console.warn(v)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const v=this.navigationTransitions.events.subscribe(C=>{try{const R=this.navigationTransitions.currentTransition,z=this.navigationTransitions.currentNavigation;if(null!==R&&null!==z)if(this.stateManager.handleRouterEvent(C,z),C instanceof nt&&C.code!==Xe.Redirect&&C.code!==Xe.SupersededByNewNavigation)this.navigated=!0;else if(C instanceof Pe)this.navigated=!0;else if(C instanceof yn){const fe=this.urlHandlingStrategy.merge(C.url,R.currentRawUrl),Ye={info:R.extras.info,skipLocationChange:R.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||re(R.source)};this.scheduleNavigation(fe,X,null,Ye,{resolve:R.resolve,reject:R.reject,promise:R.promise})}(function Wt(p){return!(p instanceof Zi||p instanceof yn)})(C)&&this._events.next(C)}catch(R){this.navigationTransitions.transitionAbortSubject.next(R)}});this.eventsSubscription.add(v)}resetRootComponentType(v){this.routerState.root.component=v,this.navigationTransitions.rootComponentType=v}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),X,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((v,C)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(v,"popstate",C)},0)})}navigateToSyncWithBrowser(v,C,R){const z={replaceUrl:!0},fe=R?.navigationId?R:null;if(R){const Ve={...R};delete Ve.navigationId,delete Ve.\u0275routerPageId,0!==Object.keys(Ve).length&&(z.state=Ve)}const Ye=this.parseUrl(v);this.scheduleNavigation(Ye,C,fe,z)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(v){this.config=v.map(wo),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(v,C={}){const{relativeTo:R,queryParams:z,fragment:fe,queryParamsHandling:Ye,preserveFragment:Ve}=C,It=Ve?this.currentUrlTree.fragment:fe;let xn,Fn=null;switch(Ye){case"merge":Fn={...this.currentUrlTree.queryParams,...z};break;case"preserve":Fn=this.currentUrlTree.queryParams;break;default:Fn=z||null}null!==Fn&&(Fn=this.removeEmptyProps(Fn));try{xn=Jr(R?R.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof v[0]||!v[0].startsWith("/"))&&(v=[]),xn=this.currentUrlTree.root}return mi(xn,v,Fn,It??null)}navigateByUrl(v,C={skipLocationChange:!1}){const R=li(v)?v:this.parseUrl(v),z=this.urlHandlingStrategy.merge(R,this.rawUrlTree);return this.scheduleNavigation(z,X,null,C)}navigate(v,C={skipLocationChange:!1}){return function gt(p){for(let E=0;E(null!=z&&(C[R]=z),C),{})}scheduleNavigation(v,C,R,z,fe){if(this.disposed)return Promise.resolve(!1);let Ye,Ve,It;fe?(Ye=fe.resolve,Ve=fe.reject,It=fe.promise):It=new Promise((xn,si)=>{Ye=xn,Ve=si});const Fn=this.pendingTasks.add();return function Pn(p,E){p.events.pipe((0,mt.p)(v=>v instanceof Pe||v instanceof nt||v instanceof Lt||v instanceof ct),(0,He.T)(v=>v instanceof Pe||v instanceof ct?qn.COMPLETE:v instanceof nt&&(v.code===Xe.Redirect||v.code===Xe.SupersededByNewNavigation)?qn.REDIRECTING:qn.FAILED),(0,mt.p)(v=>v!==qn.REDIRECTING),(0,et.s)(1)).subscribe(()=>{E()})}(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Fn))}),this.navigationTransitions.handleNavigationRequest({source:C,restoredState:R,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:v,extras:z,resolve:Ye,reject:Ve,promise:It,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),It.catch(xn=>Promise.reject(xn))}static#e=this.\u0275fac=function(C){return new(C||p)};static#t=this.\u0275prov=i.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})(),er=(()=>{class p{constructor(v,C,R,z,fe,Ye){this.router=v,this.route=C,this.tabIndexAttribute=R,this.renderer=z,this.el=fe,this.locationStrategy=Ye,this.href=null,this.commands=null,this.onChanges=new ut.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Ve=fe.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===Ve||"area"===Ve,this.isAnchorElement?this.subscription=v.events.subscribe(It=>{It instanceof Pe&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(v){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",v)}ngOnChanges(v){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(v){null!=v?(this.commands=Array.isArray(v)?v:[v],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(v,C,R,z,fe){const Ye=this.urlTree;return!!(null===Ye||this.isAnchorElement&&(0!==v||C||R||z||fe||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(Ye,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const v=this.urlTree;this.href=null!==v&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(v)):null;const C=null===this.href?null:(0,i.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",C)}applyAttributeValue(v,C){const R=this.renderer,z=this.el.nativeElement;null!==C?R.setAttribute(z,v,C):R.removeAttribute(z,v)}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(C){return new(C||p)(i.rXU(Rn),i.rXU(wi),i.kS0("tabindex"),i.rXU(i.sFG),i.rXU(i.aKT),i.rXU(Qe.hb))};static#t=this.\u0275dir=i.FsC({type:p,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(C,R){1&C&&i.bIt("click",function(fe){return R.onClick(fe.button,fe.ctrlKey,fe.shiftKey,fe.altKey,fe.metaKey)}),2&C&&i.BMQ("target",R.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[i.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",i.L39],skipLocationChange:[i.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",i.L39],replaceUrl:[i.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",i.L39],routerLink:"routerLink"},standalone:!0,features:[i.GFd,i.OA$]})}return p})(),ei=(()=>{class p{get isActive(){return this._isActive}constructor(v,C,R,z,fe){this.router=v,this.element=C,this.renderer=R,this.cdr=z,this.link=fe,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new i.bkB,this.routerEventsSubscription=v.events.subscribe(Ye=>{Ye instanceof Pe&&this.update()})}ngAfterContentInit(){(0,G.of)(this.links.changes,(0,G.of)(null)).pipe((0,bt.U)()).subscribe(v=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const v=[...this.links.toArray(),this.link].filter(C=>!!C).map(C=>C.onChanges);this.linkInputChangesSubscription=(0,H.H)(v).pipe((0,bt.U)()).subscribe(C=>{this._isActive!==this.isLinkActive(this.router)(C)&&this.update()})}set routerLinkActive(v){const C=Array.isArray(v)?v:v.split(" ");this.classes=C.filter(R=>!!R)}ngOnChanges(v){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const v=this.hasActiveLinks();this.classes.forEach(C=>{v?this.renderer.addClass(this.element.nativeElement,C):this.renderer.removeClass(this.element.nativeElement,C)}),v&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==v&&(this._isActive=v,this.cdr.markForCheck(),this.isActiveChange.emit(v))})}isLinkActive(v){const C=function Rr(p){return!!p.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return R=>{const z=R.urlTree;return!!z&&v.isActive(z,C)}}hasActiveLinks(){const v=this.isLinkActive(this.router);return this.link&&v(this.link)||this.links.some(v)}static#e=this.\u0275fac=function(C){return new(C||p)(i.rXU(Rn),i.rXU(i.aKT),i.rXU(i.sFG),i.rXU(i.gRc),i.rXU(er,8))};static#t=this.\u0275dir=i.FsC({type:p,selectors:[["","routerLinkActive",""]],contentQueries:function(C,R,z){if(1&C&&i.wni(z,er,5),2&C){let fe;i.mGM(fe=i.lsd())&&(R.links=fe)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[i.OA$]})}return p})();const Li=new i.nKC("");function Vo(p,...E){return(0,i.EmA)([{provide:yi,multi:!0,useValue:p},[],{provide:wi,useFactory:Vs,deps:[Rn]},{provide:i.iLQ,multi:!0,useFactory:ra},E.map(v=>v.\u0275providers)])}function Vs(p){return p.routerState.root}function ra(){const p=(0,i.WQX)(i.zZn);return E=>{const v=p.get(i.o8S);if(E!==v.components[0])return;const C=p.get(Rn),R=p.get(pl);1===p.get(Mo)&&C.initialNavigation(),p.get(bs,null,i.$GK.Optional)?.setUpPreloading(),p.get(Li,null,i.$GK.Optional)?.init(),C.resetRootComponentType(v.componentTypes[0]),R.closed||(R.next(),R.complete(),R.unsubscribe())}}const pl=new i.nKC("",{factory:()=>new ut.B}),Mo=new i.nKC("",{providedIn:"root",factory:()=>1}),bs=new i.nKC("");function Ta(){return function Qi(p,E){return{\u0275kind:p,\u0275providers:E}}(6,[{provide:Qe.hb,useClass:Qe.fw}])}},1324:(qe,ie,D)=>{D.d(ie,{UA:()=>Pn,$R:()=>Sr,r6:()=>Wt,x7:()=>Rn,tW:()=>gt,Lw:()=>Au,dn:()=>Aa,Ae:()=>bc,tN:()=>_r,tg:()=>bl,Eu:()=>jd,_H:()=>Gl,U0:()=>Oa,do:()=>Hd,cw:()=>mc,YB:()=>oa,Bq:()=>zd,Nb:()=>Zl,md:()=>Ac,$n:()=>Bu});var i=D(4438),P=D(1985),H=D(6977);function G(l){l||((0,i.Af3)(G),l=(0,i.WQX)(i.abz));const m=new P.c(s=>l.onDestroy(s.next.bind(s)));return s=>s.pipe((0,H.Q)(m))}var oe=D(983),ae=D(7673),me=D(1413),Ce=D(3726),Se=D(1584),De=D(8750);const{isArray:Ue}=Array;function Re(l){return 1===l.length&&Ue(l[0])?l[0]:l}var rt=D(4360);function _t(...l){return 1===(l=Re(l)).length?(0,De.Tg)(l[0]):new P.c(function ut(l){return m=>{let s=[];for(let c=0;s&&!m.closed&&c{if(s){for(let N=0;N{let h=s.map(()=>[]),N=s.map(()=>!1);c.add(()=>{h=N=null});for(let j=0;!c.closed&&j{if(h[j].push(_e),h.every(Ie=>Ie.length)){const Ie=h.map(Ke=>Ke.shift());c.next(m?m(...Ie):Ie),h.some((Ke,tt)=>!Ke.length&&N[tt])&&c.complete()}},()=>{N[j]=!0,!h[j].length&&c.complete()}));return()=>{h=N=null}}):oe.w}var et=D(4412),ft=D(8793),yt=D(5964),vt=D(6697),Mt=D(8141),dt=D(6354),ht=D(3993),Pt=D(3236),$e=D(9974),wt=D(5343),te=D(3703),pe=D(1397);function ve(l,m){return m?s=>(0,ft.x)(m.pipe((0,vt.s)(1),function se(){return(0,$e.N)((l,m)=>{l.subscribe((0,rt._)(m,wt.l))})}()),s.pipe(ve(l))):(0,pe.Z)((s,c)=>(0,De.Tg)(l(s,c)).pipe((0,vt.s)(1),(0,te.u)(s)))}var Le=D(5558),lt=(D(9172),D(3294),D(5245),D(177)),Nt=D(9417),Nn={left:"right",right:"left",bottom:"top",top:"bottom"};function Cn(l){return l.replace(/left|right|bottom|top/g,function(m){return Nn[m]})}function sn(l){return l.split("-")[0]}var an={start:"end",end:"start"};function _n(l){return l.replace(/start|end/g,function(m){return an[m]})}var On="top",Kt="bottom",Un="right",Fe="left",Tt="auto",on=[On,Kt,Un,Fe],Dn="start",Kn="end",Xn="viewport",jt="popper",Zn=on.reduce(function(l,m){return l.concat([m+"-"+Dn,m+"-"+Kn])},[]),jn=[].concat(on,[Tt]).reduce(function(l,m){return l.concat([m,m+"-"+Dn,m+"-"+Kn])},[]),wn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function kn(l){if(null==l)return window;if("[object Window]"!==l.toString()){var m=l.ownerDocument;return m&&m.defaultView||window}return l}function Vr(l){return l instanceof kn(l).Element||l instanceof Element}function Nr(l){return l instanceof kn(l).HTMLElement||l instanceof HTMLElement}function wr(l){return!(typeof ShadowRoot>"u")&&(l instanceof kn(l).ShadowRoot||l instanceof ShadowRoot)}function Ee(l){return((Vr(l)?l.ownerDocument:l.document)||window.document).documentElement}var Ne=Math.max,ne=Math.min,be=Math.round;function ot(){var l=navigator.userAgentData;return null!=l&&l.brands&&Array.isArray(l.brands)?l.brands.map(function(m){return m.brand+"/"+m.version}).join(" "):navigator.userAgent}function St(){return!/^((?!chrome|android).)*safari/i.test(ot())}function Zt(l,m,s){void 0===m&&(m=!1),void 0===s&&(s=!1);var c=l.getBoundingClientRect(),h=1,N=1;m&&Nr(l)&&(h=l.offsetWidth>0&&be(c.width)/l.offsetWidth||1,N=l.offsetHeight>0&&be(c.height)/l.offsetHeight||1);var _e=(Vr(l)?kn(l):window).visualViewport,Ie=!St()&&s,Ke=(c.left+(Ie&&_e?_e.offsetLeft:0))/h,tt=(c.top+(Ie&&_e?_e.offsetTop:0))/N,Ot=c.width/h,At=c.height/N;return{width:Ot,height:At,top:tt,right:Ke+Ot,bottom:tt+At,left:Ke,x:Ke,y:tt}}function Wn(l){var m=kn(l);return{scrollLeft:m.pageXOffset,scrollTop:m.pageYOffset}}function lr(l){return Zt(Ee(l)).left+Wn(l).scrollLeft}function br(l){return kn(l).getComputedStyle(l)}function hr(l){return l?(l.nodeName||"").toLowerCase():null}function gi(l){return"html"===hr(l)?l:l.assignedSlot||l.parentNode||(wr(l)?l.host:null)||Ee(l)}function Dr(l){var m=br(l);return/auto|scroll|overlay|hidden/.test(m.overflow+m.overflowY+m.overflowX)}function kt(l){return["html","body","#document"].indexOf(hr(l))>=0?l.ownerDocument.body:Nr(l)&&Dr(l)?l:kt(gi(l))}function Bt(l,m){var s;void 0===m&&(m=[]);var c=kt(l),h=c===(null==(s=l.ownerDocument)?void 0:s.body),N=kn(c),j=h?[N].concat(N.visualViewport||[],Dr(c)?c:[]):c,_e=m.concat(j);return h?_e:_e.concat(Bt(gi(j)))}function li(l){return["table","td","th"].indexOf(hr(l))>=0}function Ii(l){return Nr(l)&&"fixed"!==br(l).position?l.offsetParent:null}function mi(l){for(var m=kn(l),s=Ii(l);s&&li(s)&&"static"===br(s).position;)s=Ii(s);return s&&("html"===hr(s)||"body"===hr(s)&&"static"===br(s).position)?m:s||function Jr(l){var m=/firefox/i.test(ot());if(/Trident/i.test(ot())&&Nr(l)&&"fixed"===br(l).position)return null;var h=gi(l);for(wr(h)&&(h=h.host);Nr(h)&&["html","body"].indexOf(hr(h))<0;){var N=br(h);if("none"!==N.transform||"none"!==N.perspective||"paint"===N.contain||-1!==["transform","perspective"].indexOf(N.willChange)||m&&"filter"===N.willChange||m&&N.filter&&"none"!==N.filter)return h;h=h.parentNode}return null}(l)||m}function Ci(l,m){var s=m.getRootNode&&m.getRootNode();if(l.contains(m))return!0;if(s&&wr(s)){var c=m;do{if(c&&l.isSameNode(c))return!0;c=c.parentNode||c.host}while(c)}return!1}function In(l){return Object.assign({},l,{left:l.x,top:l.y,right:l.x+l.width,bottom:l.y+l.height})}function ci(l,m,s){return m===Xn?In(function ar(l,m){var s=kn(l),c=Ee(l),h=s.visualViewport,N=c.clientWidth,j=c.clientHeight,_e=0,Ie=0;if(h){N=h.width,j=h.height;var Ke=St();(Ke||!Ke&&"fixed"===m)&&(_e=h.offsetLeft,Ie=h.offsetTop)}return{width:N,height:j,x:_e+lr(l),y:Ie}}(l,s)):Vr(m)?function yo(l,m){var s=Zt(l,!1,"fixed"===m);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}(m,s):In(function fr(l){var m,s=Ee(l),c=Wn(l),h=null==(m=l.ownerDocument)?void 0:m.body,N=Ne(s.scrollWidth,s.clientWidth,h?h.scrollWidth:0,h?h.clientWidth:0),j=Ne(s.scrollHeight,s.clientHeight,h?h.scrollHeight:0,h?h.clientHeight:0),_e=-c.scrollLeft+lr(l),Ie=-c.scrollTop;return"rtl"===br(h||s).direction&&(_e+=Ne(s.clientWidth,h?h.clientWidth:0)-N),{width:N,height:j,x:_e,y:Ie}}(Ee(l)))}function Ur(l){return l.split("-")[1]}function Pi(l){return["top","bottom"].indexOf(l)>=0?"x":"y"}function Wi(l){var Ie,m=l.reference,s=l.element,c=l.placement,h=c?sn(c):null,N=c?Ur(c):null,j=m.x+m.width/2-s.width/2,_e=m.y+m.height/2-s.height/2;switch(h){case On:Ie={x:j,y:m.y-s.height};break;case Kt:Ie={x:j,y:m.y+m.height};break;case Un:Ie={x:m.x+m.width,y:_e};break;case Fe:Ie={x:m.x-s.width,y:_e};break;default:Ie={x:m.x,y:m.y}}var Ke=h?Pi(h):null;if(null!=Ke){var tt="y"===Ke?"height":"width";switch(N){case Dn:Ie[Ke]=Ie[Ke]-(m[tt]/2-s[tt]/2);break;case Kn:Ie[Ke]=Ie[Ke]+(m[tt]/2-s[tt]/2)}}return Ie}function le(l){return Object.assign({},{top:0,right:0,bottom:0,left:0},l)}function ue(l,m){return m.reduce(function(s,c){return s[c]=l,s},{})}function Je(l,m){void 0===m&&(m={});var c=m.placement,h=void 0===c?l.placement:c,N=m.strategy,j=void 0===N?l.strategy:N,_e=m.boundary,Ie=void 0===_e?"clippingParents":_e,Ke=m.rootBoundary,tt=void 0===Ke?Xn:Ke,Ot=m.elementContext,At=void 0===Ot?jt:Ot,Ft=m.altBoundary,Gn=void 0!==Ft&&Ft,bn=m.padding,zn=void 0===bn?0:bn,dr=le("number"!=typeof zn?zn:ue(zn,on)),Yr=l.rects.popper,Jn=l.elements[Gn?At===jt?"reference":jt:At],vr=function so(l,m,s,c){var h="clippingParents"===m?function Ri(l){var m=Bt(gi(l)),c=["absolute","fixed"].indexOf(br(l).position)>=0&&Nr(l)?mi(l):l;return Vr(c)?m.filter(function(h){return Vr(h)&&Ci(h,c)&&"body"!==hr(h)}):[]}(l):[].concat(m),N=[].concat(h,[s]),_e=N.reduce(function(Ie,Ke){var tt=ci(l,Ke,c);return Ie.top=Ne(tt.top,Ie.top),Ie.right=ne(tt.right,Ie.right),Ie.bottom=ne(tt.bottom,Ie.bottom),Ie.left=Ne(tt.left,Ie.left),Ie},ci(l,N[0],c));return _e.width=_e.right-_e.left,_e.height=_e.bottom-_e.top,_e.x=_e.left,_e.y=_e.top,_e}(Vr(Jn)?Jn:Jn.contextElement||Ee(l.elements.popper),Ie,tt,j),Cr=Zt(l.elements.reference),Gr=Wi({reference:Cr,element:Yr,strategy:"absolute",placement:h}),Fr=In(Object.assign({},Yr,Gr)),Yi=At===jt?Fr:Cr,zr={top:vr.top-Yi.top+dr.top,bottom:Yi.bottom-vr.bottom+dr.bottom,left:vr.left-Yi.left+dr.left,right:Yi.right-vr.right+dr.right},no=l.modifiersData.offset;if(At===jt&&no){var Ts=no[h];Object.keys(zr).forEach(function(fo){var la=[Un,Kt].indexOf(fo)>=0?1:-1,Tl=[On,Kt].indexOf(fo)>=0?"y":"x";zr[fo]+=Ts[Tl]*la})}return zr}const U={name:"flip",enabled:!0,phase:"main",fn:function Et(l){var m=l.state,s=l.options,c=l.name;if(!m.modifiersData[c]._skip){for(var h=s.mainAxis,N=void 0===h||h,j=s.altAxis,_e=void 0===j||j,Ie=s.fallbackPlacements,Ke=s.padding,tt=s.boundary,Ot=s.rootBoundary,At=s.altBoundary,Ft=s.flipVariations,Gn=void 0===Ft||Ft,bn=s.allowedAutoPlacements,zn=m.options.placement,dr=sn(zn),Yr=Ie||(dr!==zn&&Gn?function Dt(l){if(sn(l)===Tt)return[];var m=Cn(l);return[_n(l),m,_n(m)]}(zn):[Cn(zn)]),Jn=[zn].concat(Yr).reduce(function(xa,Gs){return xa.concat(sn(Gs)===Tt?function We(l,m){void 0===m&&(m={});var h=m.boundary,N=m.rootBoundary,j=m.padding,_e=m.flipVariations,Ie=m.allowedAutoPlacements,Ke=void 0===Ie?jn:Ie,tt=Ur(m.placement),Ot=tt?_e?Zn:Zn.filter(function(Gn){return Ur(Gn)===tt}):on,At=Ot.filter(function(Gn){return Ke.indexOf(Gn)>=0});0===At.length&&(At=Ot);var Ft=At.reduce(function(Gn,bn){return Gn[bn]=Je(l,{placement:bn,boundary:h,rootBoundary:N,padding:j})[sn(bn)],Gn},{});return Object.keys(Ft).sort(function(Gn,bn){return Ft[Gn]-Ft[bn]})}(m,{placement:Gs,boundary:tt,rootBoundary:Ot,padding:Ke,flipVariations:Gn,allowedAutoPlacements:bn}):Gs)},[]),vr=m.rects.reference,Cr=m.rects.popper,Gr=new Map,Fr=!0,Yi=Jn[0],zr=0;zr=0,Tl=la?"width":"height",Wo=Je(m,{placement:no,boundary:tt,rootBoundary:Ot,altBoundary:At,padding:Ke}),Ms=la?fo?Un:Fe:fo?Kt:On;vr[Tl]>Cr[Tl]&&(Ms=Cn(Ms));var Oc=Cn(Ms),ol=[];if(N&&ol.push(Wo[Ts]<=0),_e&&ol.push(Wo[Ms]<=0,Wo[Oc]<=0),ol.every(function(xa){return xa})){Yi=no,Fr=!1;break}Gr.set(no,ol)}if(Fr)for(var pf=function(Gs){var zs=Jn.find(function(Ml){var ca=Gr.get(Ml);if(ca)return ca.slice(0,Gs).every(function(sl){return sl})});if(zs)return Yi=zs,"break"},Pa=Gn?3:1;Pa>0&&"break"!==pf(Pa);Pa--);m.placement!==Yi&&(m.modifiersData[c]._skip=!0,m.placement=Yi,m.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ee(l,m,s){return Ne(l,ne(m,s))}function Ae(l){var m=Zt(l),s=l.offsetWidth,c=l.offsetHeight;return Math.abs(m.width-s)<=1&&(s=m.width),Math.abs(m.height-c)<=1&&(c=m.height),{x:l.offsetLeft,y:l.offsetTop,width:s,height:c}}const Xe={name:"preventOverflow",enabled:!0,phase:"main",fn:function Pe(l){var m=l.state,s=l.options,c=l.name,h=s.mainAxis,N=void 0===h||h,j=s.altAxis,_e=void 0!==j&&j,At=s.tether,Ft=void 0===At||At,Gn=s.tetherOffset,bn=void 0===Gn?0:Gn,zn=Je(m,{boundary:s.boundary,rootBoundary:s.rootBoundary,padding:s.padding,altBoundary:s.altBoundary}),dr=sn(m.placement),tr=Ur(m.placement),Yr=!tr,Jn=Pi(dr),vr=function X(l){return"x"===l?"y":"x"}(Jn),Cr=m.modifiersData.popperOffsets,Gr=m.rects.reference,Fr=m.rects.popper,Yi="function"==typeof bn?bn(Object.assign({},m.rects,{placement:m.placement})):bn,zr="number"==typeof Yi?{mainAxis:Yi,altAxis:Yi}:Object.assign({mainAxis:0,altAxis:0},Yi),no=m.modifiersData.offset?m.modifiersData.offset[m.placement]:null,Ts={x:0,y:0};if(Cr){if(N){var fo,la="y"===Jn?On:Fe,Tl="y"===Jn?Kt:Un,Wo="y"===Jn?"height":"width",Ms=Cr[Jn],Oc=Ms+zn[la],ol=Ms-zn[Tl],Vu=Ft?-Fr[Wo]/2:0,pf=tr===Dn?Gr[Wo]:Fr[Wo],Pa=tr===Dn?-Fr[Wo]:-Gr[Wo],Ic=m.elements.arrow,xa=Ft&&Ic?Ae(Ic):{width:0,height:0},Gs=m.modifiersData["arrow#persistent"]?m.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},zs=Gs[la],Ml=Gs[Tl],ca=ee(0,Gr[Wo],xa[Wo]),sl=Yr?Gr[Wo]/2-Vu-ca-zs-zr.mainAxis:pf-ca-zs-zr.mainAxis,Rc=Yr?-Gr[Wo]/2+Vu+ca+Ml+zr.mainAxis:Pa+ca+Ml+zr.mainAxis,Fa=m.elements.arrow&&mi(m.elements.arrow),Uu=Fa?"y"===Jn?Fa.clientTop||0:Fa.clientLeft||0:0,Pc=null!=(fo=no?.[Jn])?fo:0,xm=Ms+Rc-Pc,Fc=ee(Ft?ne(Oc,Ms+sl-Pc-Uu):Oc,Ms,Ft?Ne(ol,xm):ol);Cr[Jn]=Fc,Ts[Jn]=Fc-Ms}if(_e){var Sl,al=Cr[vr],Lc="y"===vr?"height":"width",kc=al+zn["x"===Jn?On:Fe],ju=al-zn["x"===Jn?Kt:Un],Hu=-1!==[On,Fe].indexOf(dr),mf=null!=(Sl=no?.[vr])?Sl:0,Al=Hu?kc:al-Gr[Lc]-Fr[Lc]-mf+zr.altAxis,$u=Hu?al+Gr[Lc]+Fr[Lc]-mf-zr.altAxis:ju,Bc=Ft&&Hu?function q(l,m,s){var c=ee(l,m,s);return c>s?s:c}(Al,al,$u):ee(Ft?Al:kc,al,Ft?$u:ju);Cr[vr]=Bc,Ts[vr]=Bc-al}m.modifiersData[c]=Ts}},requiresIfExists:["offset"]},Lt={name:"arrow",enabled:!0,phase:"main",fn:function nt(l){var m,s=l.state,c=l.name,h=l.options,N=s.elements.arrow,j=s.modifiersData.popperOffsets,_e=sn(s.placement),Ie=Pi(_e),tt=[Fe,Un].indexOf(_e)>=0?"height":"width";if(N&&j){var Ot=function(m,s){return le("number"!=typeof(m="function"==typeof m?m(Object.assign({},s.rects,{placement:s.placement})):m)?m:ue(m,on))}(h.padding,s),At=Ae(N),Ft="y"===Ie?On:Fe,Gn="y"===Ie?Kt:Un,bn=s.rects.reference[tt]+s.rects.reference[Ie]-j[Ie]-s.rects.popper[tt],zn=j[Ie]-s.rects.reference[Ie],dr=mi(N),tr=dr?"y"===Ie?dr.clientHeight||0:dr.clientWidth||0:0,Cr=tr/2-At[tt]/2+(bn/2-zn/2),Gr=ee(Ot[Ft],Cr,tr-At[tt]-Ot[Gn]);s.modifiersData[c]=((m={})[Ie]=Gr,m.centerOffset=Gr-Cr,m)}},effect:function ct(l){var m=l.state,c=l.options.element,h=void 0===c?"[data-popper-arrow]":c;null!=h&&("string"==typeof h&&!(h=m.elements.popper.querySelector(h))||Ci(m.elements.popper,h)&&(m.elements.arrow=h))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pr(l,m,s){void 0===s&&(s=!1);var c=Nr(m),h=Nr(m)&&function Bn(l){var m=l.getBoundingClientRect(),s=be(m.width)/l.offsetWidth||1,c=be(m.height)/l.offsetHeight||1;return 1!==s||1!==c}(m),N=Ee(m),j=Zt(l,h,s),_e={scrollLeft:0,scrollTop:0},Ie={x:0,y:0};return(c||!c&&!s)&&(("body"!==hr(m)||Dr(N))&&(_e=function tn(l){return l!==kn(l)&&Nr(l)?function qt(l){return{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}}(l):Wn(l)}(m)),Nr(m)?((Ie=Zt(m,!0)).x+=m.clientLeft,Ie.y+=m.clientTop):N&&(Ie.x=lr(N))),{x:j.left+_e.scrollLeft-Ie.x,y:j.top+_e.scrollTop-Ie.y,width:j.width,height:j.height}}function Yn(l){var m=new Map,s=new Set,c=[];function h(N){s.add(N.name),[].concat(N.requires||[],N.requiresIfExists||[]).forEach(function(_e){if(!s.has(_e)){var Ie=m.get(_e);Ie&&h(Ie)}}),c.push(N)}return l.forEach(function(N){m.set(N.name,N)}),l.forEach(function(N){s.has(N.name)||h(N)}),c}function Sn(l){var m;return function(){return m||(m=new Promise(function(s){Promise.resolve().then(function(){m=void 0,s(l())})})),m}}var _i={placement:"bottom",modifiers:[],strategy:"absolute"};function Ro(){for(var l=arguments.length,m=new Array(l),s=0;s=0?-1:1,N="function"==typeof s?s(Object.assign({},m,{placement:l})):s,j=N[0],_e=N[1];return j=j||0,_e=(_e||0)*h,[Fe,Un].indexOf(c)>=0?{x:_e,y:j}:{x:j,y:_e}}(Ot,m.rects,N),tt},{}),_e=j[m.placement],Ke=_e.y;null!=m.modifiersData.popperOffsets&&(m.modifiersData.popperOffsets.x+=_e.x,m.modifiersData.popperOffsets.y+=Ke),m.modifiersData[c]=j}},Eo=["*"],en=["ngbDatepickerDayView",""],Vn=["month"],Gi=["year"];function rr(l,m){if(1&l&&(i.j41(0,"option",3),i.EFF(1),i.k0s()),2&l){const s=m.$implicit,c=i.XpG();i.Y8G("value",s),i.BMQ("aria-label",c.i18n.getMonthFullName(s,c.date.year)),i.R7$(),i.JRh(c.i18n.getMonthShortName(s,c.date.year))}}function vi(l,m){if(1&l&&(i.j41(0,"option",3),i.EFF(1),i.k0s()),2&l){const s=m.$implicit,c=i.XpG();i.Y8G("value",s),i.R7$(),i.JRh(c.i18n.getYearNumerals(s))}}function Zr(l,m){if(1&l){const s=i.RV6();i.j41(0,"ngb-datepicker-navigation-select",6),i.bIt("select",function(h){i.eBV(s);const N=i.XpG();return i.Njj(N.select.emit(h))}),i.k0s()}if(2&l){const s=i.XpG();i.Y8G("date",s.date)("disabled",s.disabled)("months",s.selectBoxes.months)("years",s.selectBoxes.years)}}function Ns(l,m){1&l&&i.nrm(0,"div",7)}function Po(l,m){1&l&&i.nrm(0,"div",7)}function Qs(l,m){if(1&l&&(i.DNE(0,Ns,1,0,"div",7),i.j41(1,"div",8),i.EFF(2),i.k0s(),i.DNE(3,Po,1,0,"div",7)),2&l){const s=m.$implicit,c=m.$index,h=i.XpG(2);i.vxM(0,c>0?0:-1),i.R7$(2),i.SpI(" ",h.i18n.getMonthLabel(s.firstDate)," "),i.R7$(),i.vxM(3,c!==h.months.length-1?3:-1)}}function lo(l,m){if(1&l&&i.Z7z(0,Qs,4,3,null,null,i.fX1),2&l){const s=i.XpG();i.Dyx(s.months)}}function Qo(l,m){if(1&l&&(i.j41(0,"div",1),i.EFF(1),i.k0s()),2&l){const s=i.XpG(2);i.R7$(),i.JRh(s.i18n.getWeekLabel())}}function ii(l,m){if(1&l&&(i.j41(0,"div",2),i.EFF(1),i.k0s()),2&l){const s=m.$implicit;i.R7$(),i.JRh(s)}}function Mi(l,m){if(1&l&&(i.j41(0,"div",0),i.DNE(1,Qo,2,1,"div",1),i.Z7z(2,ii,2,1,"div",2,i.fX1),i.k0s()),2&l){const s=i.XpG();i.R7$(),i.vxM(1,s.datepicker.showWeekNumbers?1:-1),i.R7$(),i.Dyx(s.viewModel.weekdays)}}function Yo(l,m){if(1&l&&(i.j41(0,"div",4),i.EFF(1),i.k0s()),2&l){const s=i.XpG(2).$implicit,c=i.XpG();i.R7$(),i.JRh(c.i18n.getWeekNumerals(s.number))}}function Co(l,m){}function ho(l,m){if(1&l&&i.DNE(0,Co,0,0,"ng-template",7),2&l){const s=i.XpG().$implicit,c=i.XpG(3);i.Y8G("ngTemplateOutlet",c.datepicker.dayTemplate)("ngTemplateOutletContext",s.context)}}function Os(l,m){if(1&l){const s=i.RV6();i.j41(0,"div",6),i.bIt("click",function(h){const N=i.eBV(s).$implicit;return i.XpG(3).doSelect(N),i.Njj(h.preventDefault())}),i.DNE(1,ho,1,2,null,7),i.k0s()}if(2&l){const s=m.$implicit;i.AVh("disabled",s.context.disabled)("hidden",s.hidden)("ngb-dp-today",s.context.today),i.Y8G("tabindex",s.tabindex),i.BMQ("aria-label",s.ariaLabel),i.R7$(),i.vxM(1,s.hidden?-1:1)}}function Jo(l,m){if(1&l&&(i.j41(0,"div",3),i.DNE(1,Yo,2,1,"div",4),i.Z7z(2,Os,2,9,"div",5,i.fX1),i.k0s()),2&l){const s=i.XpG().$implicit,c=i.XpG();i.R7$(),i.vxM(1,c.datepicker.showWeekNumbers?1:-1),i.R7$(),i.Dyx(s.days)}}function Ys(l,m){1&l&&i.DNE(0,Jo,4,1,"div",3),2&l&&i.vxM(0,m.$implicit.collapsed?-1:0)}const Zo=["defaultDayTemplate"],di=["content"],wo=l=>({$implicit:l});function jr(l,m){if(1&l&&i.nrm(0,"div",8),2&l){const c=m.currentMonth,h=m.selected,N=m.disabled,j=m.focused;i.Y8G("date",m.date)("currentMonth",c)("selected",h)("disabled",N)("focused",j)}}function Js(l,m){if(1&l&&(i.j41(0,"div",10),i.EFF(1),i.k0s()),2&l){const s=i.XpG().$implicit,c=i.XpG(2);i.R7$(),i.SpI(" ",c.i18n.getMonthLabel(s.firstDate)," ")}}function qo(l,m){if(1&l&&(i.j41(0,"div",9),i.DNE(1,Js,2,1,"div",10),i.nrm(2,"ngb-datepicker-month",11),i.k0s()),2&l){const s=m.$implicit,c=i.XpG(2);i.R7$(),i.vxM(1,"none"===c.navigation||c.displayMonths>1&&"select"===c.navigation?1:-1),i.R7$(),i.Y8G("month",s.firstDate)}}function zi(l,m){if(1&l&&i.Z7z(0,qo,3,2,"div",9,i.fX1),2&l){const s=i.XpG();i.Dyx(s.model.months)}}function Hn(l,m){if(1&l){const s=i.RV6();i.j41(0,"ngb-datepicker-navigation",12),i.bIt("navigate",function(h){i.eBV(s);const N=i.XpG();return i.Njj(N.onNavigateEvent(h))})("select",function(h){i.eBV(s);const N=i.XpG();return i.Njj(N.onNavigateDateSelect(h))}),i.k0s()}if(2&l){const s=i.XpG();i.Y8G("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 xo(l,m){}function Is(l,m){}const po=["dialog"];function ea(l,m){if(1&l&&(i.j41(0,"strong",3),i.EFF(1),i.k0s()),2&l){const s=i.XpG();i.R7$(),i.JRh(s.header)}}function kl(l,m){}function ya(l,m){if(1&l){const s=i.RV6();i.j41(0,"div",1),i.DNE(1,kl,0,0,"ng-template",4),i.j41(2,"button",5),i.bIt("click",function(){i.eBV(s);const h=i.XpG();return i.Njj(h.hide())}),i.k0s()()}if(2&l){const s=i.XpG(),c=i.sdS(1);i.R7$(),i.Y8G("ngTemplateOutlet",s.contentHeaderTpl||c)}}function za(l,m){if(1&l&&(i.j41(0,"span"),i.EFF(1),i.k0s()),2&l){const s=i.XpG().$implicit,c=i.XpG();i.HbH(c.highlightClass),i.R7$(),i.JRh(s)}}function ba(l,m){if(1&l&&(i.qex(0),i.EFF(1),i.bVm()),2&l){const s=i.XpG().$implicit;i.R7$(),i.JRh(s)}}function Ka(l,m){1&l&&i.DNE(0,za,2,4,"span",0)(1,ba,2,1),2&l&&i.vxM(0,m.$index%2!=0?0:1)}const Xa=(l,m,s)=>({result:l,term:m,formatter:s});function rs(l,m){if(1&l&&i.nrm(0,"ngb-highlight",2),2&l){const c=m.term;i.Y8G("result",(0,m.formatter)(m.result))("term",c)}}function fl(l,m){}function Da(l,m){if(1&l){const s=i.RV6();i.j41(0,"button",3),i.bIt("mouseenter",function(){const h=i.eBV(s).$index,N=i.XpG();return i.Njj(N.markActive(h))})("click",function(){const h=i.eBV(s).$implicit,N=i.XpG();return i.Njj(N.select(h))}),i.DNE(1,fl,0,0,"ng-template",4),i.k0s()}if(2&l){const s=m.$implicit,c=m.$index,h=i.XpG(),N=i.sdS(1);i.AVh("active",c===h.activeIdx),i.Y8G("id",h.id+"-"+c),i.R7$(),i.Y8G("ngTemplateOutlet",h.resultTemplate||N)("ngTemplateOutletContext",i.sMw(5,Xa,s,h.term,h.formatter))}}const co={animation:!0,transitionTimerDelayMs:5};let is=(()=>{class l{constructor(){this.animation=co.animation}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=i.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),ta=(()=>{class l{constructor(){this._ngbConfig=(0,i.WQX)(is),this.closeOthers=!1,this.destroyOnHide=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=i.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();function Mr(l){return parseInt(`${l}`,10)}function go(l){return null!=l?`${l}`:""}function fi(l){return"string"==typeof l}function hi(l){return!isNaN(Mr(l))}function kr(l){return"number"==typeof l&&isFinite(l)&&Math.floor(l)===l}function yi(l){return null!=l}function Qa(l){return hi(l)?`0${l}`.slice(-2):""}function Fi(l){return(l||document.body).getBoundingClientRect()}function os(l){return l.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function b(l=document){const m=l?.activeElement;return m?m.shadowRoot?b(m.shadowRoot):m:null}const B=()=>{},{transitionTimerDelayMs:M}=co,I=new Map,re=(l,m,s,c)=>{let h=c.context||{};const N=I.get(m);if(N)switch(c.runningTransition){case"continue":return oe.w;case"stop":l.run(()=>N.transition$.complete()),h=Object.assign(N.context,h),I.delete(m)}const j=s(m,c.animation,h)||B;if(!c.animation||"none"===window.getComputedStyle(m).transitionProperty)return l.run(()=>j()),(0,ae.of)(void 0).pipe(function Ya(l){return m=>new P.c(s=>m.subscribe({next:j=>l.run(()=>s.next(j)),error:j=>l.run(()=>s.error(j)),complete:()=>l.run(()=>s.complete())}))}(l));const _e=new me.B,Ie=new me.B,Ke=_e.pipe(function mt(...l){return m=>(0,ft.x)(m,(0,ae.of)(...l))}(!0));I.set(m,{transition$:_e,complete:()=>{Ie.next(),Ie.complete()},context:h});const tt=function ks(l){const{transitionDelay:m,transitionDuration:s}=window.getComputedStyle(l);return 1e3*(parseFloat(m)+parseFloat(s))}(m);return l.runOutsideAngular(()=>{const Ot=(0,Ce.R)(m,"transitionend").pipe((0,H.Q)(Ke),(0,yt.p)(({target:Ft})=>Ft===m));_t((0,Se.O)(tt+M).pipe((0,H.Q)(Ke)),Ot,Ie).pipe((0,H.Q)(Ke)).subscribe(()=>{I.delete(m),l.run(()=>{j(),_e.next(),_e.complete()})})}),_e.asObservable()},Ut=(l,m,s)=>{let{direction:c,maxSize:h,dimension:N}=s;const{classList:j}=l;function _e(){j.add("collapse"),"show"===c?j.add("show"):j.remove("show")}if(m)return h||(h=function st(l,m){if(typeof navigator>"u")return"0px";const{classList:s}=l,c=s.contains("show");c||s.add("show"),l.style[m]="";const h=l.getBoundingClientRect()[m]+"px";return c||s.remove("show"),h}(l,N),s.maxSize=h,l.style[N]="show"!==c?h:"0px",j.remove("collapse"),j.remove("collapsing"),j.remove("show"),Fi(l),j.add("collapsing")),l.style[N]="show"===c?h:"0px",()=>{_e(),j.remove("collapsing"),l.style[N]=""};_e()};let mr=(()=>{class l{constructor(){this._ngbConfig=(0,i.WQX)(is),this.horizontal=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=i.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),cr=(()=>{class l{constructor(){this._config=(0,i.WQX)(mr),this._element=(0,i.WQX)(i.aKT),this._zone=(0,i.WQX)(i.SKi),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new i.bkB,this.horizontal=this._config.horizontal,this.shown=new i.bkB,this.hidden=new i.bkB}set collapsed(s){this._isCollapsed!==s&&(this._isCollapsed=s,this._afterInit&&this._runTransitionWithEvents(s,this.animation))}ngOnInit(){this._runTransition(this._isCollapsed,!1),this._afterInit=!0}toggle(s=this._isCollapsed){this.collapsed=!s,this.ngbCollapseChange.next(this._isCollapsed)}_runTransition(s,c){return re(this._zone,this._element.nativeElement,Ut,{animation:c,runningTransition:"stop",context:{direction:s?"hide":"show",dimension:this.horizontal?"width":"height"}})}_runTransitionWithEvents(s,c){this._runTransition(s,c).subscribe(()=>{s?this.hidden.emit():this.shown.emit()})}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275dir=i.FsC({type:l,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(c,h){2&c&&i.AVh("collapse-horizontal",h.horizontal)},inputs:{animation:"animation",collapsed:[i.Mj6.None,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],standalone:!0})}return l})(),qn=0,Pn=(()=>{class l{constructor(){this._vcr=(0,i.WQX)(i.c1b),this._element=(0,i.WQX)(i.aKT).nativeElement,this._item=(0,i.WQX)(gt),this._viewRef=null}ngAfterContentChecked(){this._bodyTpl&&(this._item._shouldBeInDOM?this._createViewIfNotExists():this._destroyViewIfExists())}ngOnDestroy(){this._destroyViewIfExists()}_destroyViewIfExists(){this._viewRef&&(this._viewRef.destroy(),this._viewRef=null)}_createViewIfNotExists(){if(!this._viewRef){this._viewRef=this._vcr.createEmbeddedView(this._bodyTpl),this._viewRef.detectChanges();for(const s of this._viewRef.rootNodes)this._element.appendChild(s)}}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275dir=i.FsC({type:l,selectors:[["","ngbAccordionBody",""]],contentQueries:function(c,h,N){if(1&c&&i.wni(N,i.C4Q,7),2&c){let j;i.mGM(j=i.lsd())&&(h._bodyTpl=j.first)}},hostVars:2,hostBindings:function(c,h){2&c&&i.AVh("accordion-body",!0)},standalone:!0})}return l})(),Sr=(()=>{class l{constructor(){this.item=(0,i.WQX)(gt),this.ngbCollapse=(0,i.WQX)(cr)}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275dir=i.FsC({type:l,selectors:[["","ngbAccordionCollapse",""]],hostAttrs:["role","region"],hostVars:4,hostBindings:function(c,h){2&c&&(i.Mr5("id",h.item.collapseId),i.BMQ("aria-labelledby",h.item.toggleId),i.AVh("accordion-collapse",!0))},exportAs:["ngbAccordionCollapse"],standalone:!0,features:[i.nM4([cr])]})}return l})(),Rn=(()=>{class l{constructor(){this.item=(0,i.WQX)(gt)}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275dir=i.FsC({type:l,selectors:[["","ngbAccordionHeader",""]],hostAttrs:["role","heading"],hostVars:4,hostBindings:function(c,h){2&c&&i.AVh("accordion-header",!0)("collapsed",h.item.collapsed)},standalone:!0})}return l})(),gt=(()=>{class l{constructor(){this._accordion=(0,i.WQX)(Wt),this._cd=(0,i.WQX)(i.gRc),this._destroyRef=(0,i.WQX)(i.abz),this._collapsed=!0,this._id="ngb-accordion-item-"+qn++,this._collapseAnimationRunning=!1,this.disabled=!1,this.show=new i.bkB,this.shown=new i.bkB,this.hide=new i.bkB,this.hidden=new i.bkB}set id(s){fi(s)&&""!==s&&(this._id=s)}set destroyOnHide(s){this._destroyOnHide=s}get destroyOnHide(){return void 0===this._destroyOnHide?this._accordion.destroyOnHide:this._destroyOnHide}set collapsed(s){s?this.collapse():this.expand()}get collapsed(){return this._collapsed}get id(){return`${this._id}`}get toggleId(){return`${this.id}-toggle`}get collapseId(){return`${this.id}-collapse`}get _shouldBeInDOM(){return!this.collapsed||this._collapseAnimationRunning||!this.destroyOnHide}ngAfterContentInit(){const{ngbCollapse:s}=this._collapse;s.animation=!1,s.collapsed=this.collapsed,s.animation=this._accordion.animation,s.hidden.pipe(G(this._destroyRef)).subscribe(()=>{this._collapseAnimationRunning=!1,this.hidden.emit(),this._accordion.hidden.emit(this.id)}),s.shown.pipe(G(this._destroyRef)).subscribe(()=>{this.shown.emit(),this._accordion.shown.emit(this.id)})}toggle(){this.collapsed=!this.collapsed}expand(){if(this.collapsed){if(!this._accordion._ensureCanExpand(this))return;this._collapsed=!1,this._cd.markForCheck(),this._cd.detectChanges(),this.show.emit(),this._accordion.show.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!1}}collapse(){this.collapsed||(this._collapsed=!0,this._collapseAnimationRunning=!0,this._cd.markForCheck(),this.hide.emit(),this._accordion.hide.emit(this.id),this._collapse.ngbCollapse.animation=this._accordion.animation,this._collapse.ngbCollapse.collapsed=!0)}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275dir=i.FsC({type:l,selectors:[["","ngbAccordionItem",""]],contentQueries:function(c,h,N){if(1&c&&i.wni(N,Sr,7),2&c){let j;i.mGM(j=i.lsd())&&(h._collapse=j.first)}},hostVars:3,hostBindings:function(c,h){2&c&&(i.Mr5("id",h.id),i.AVh("accordion-item",!0))},inputs:{id:[i.Mj6.None,"ngbAccordionItem","id"],destroyOnHide:"destroyOnHide",disabled:"disabled",collapsed:"collapsed"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordionItem"],standalone:!0})}return l})(),Wt=(()=>{class l{constructor(){this._config=(0,i.WQX)(ta),this._anItemWasAlreadyExpandedDuringInitialisation=!1,this.animation=this._config.animation,this.closeOthers=this._config.closeOthers,this.destroyOnHide=this._config.destroyOnHide,this.show=new i.bkB,this.shown=new i.bkB,this.hide=new i.bkB,this.hidden=new i.bkB}toggle(s){this._getItem(s)?.toggle()}expand(s){this._getItem(s)?.expand()}expandAll(){this._items&&(this.closeOthers?this._items.find(s=>!s.collapsed)||this._items.first.expand():this._items.forEach(s=>s.expand()))}collapse(s){this._getItem(s)?.collapse()}collapseAll(){this._items?.forEach(s=>s.collapse())}isExpanded(s){const c=this._getItem(s);return!!c&&!c.collapsed}_ensureCanExpand(s){return!(this.closeOthers&&(this._items?(this._items.find(c=>!c.collapsed&&s!==c)?.collapse(),0):this._anItemWasAlreadyExpandedDuringInitialisation||(this._anItemWasAlreadyExpandedDuringInitialisation=!0,0)))}_getItem(s){return this._items?.find(c=>c.id===s)}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275dir=i.FsC({type:l,selectors:[["","ngbAccordion",""]],contentQueries:function(c,h,N){if(1&c&&i.wni(N,gt,4),2&c){let j;i.mGM(j=i.lsd())&&(h._items=j)}},hostVars:2,hostBindings:function(c,h){2&c&&i.AVh("accordion",!0)},inputs:{animation:"animation",closeOthers:"closeOthers",destroyOnHide:"destroyOnHide"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0})}return l})();class Ar{static from(m){return m instanceof Ar?m:m?new Ar(m.year,m.month,m.day):null}constructor(m,s,c){this.year=kr(m)?m:null,this.month=kr(s)?s:null,this.day=kr(c)?c:null}equals(m){return null!=m&&this.year===m.year&&this.month===m.month&&this.day===m.day}before(m){return!!m&&(this.year===m.year?this.month===m.month?this.day!==m.day&&this.daym.day:this.month>m.month:this.year>m.year)}}function Tn(l){return new Ar(l.getFullYear(),l.getMonth()+1,l.getDate())}function bs(l){const m=new Date(l.year,l.month-1,l.day,12);return isNaN(m.getTime())||m.setFullYear(l.year),m}let uo=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=i.jDH({token:l,factory:()=>function wa(){return new Ta}(),providedIn:"root"})}return l})(),Ta=(()=>{class l extends uo{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(s,c="d",h=1){let N=bs(s),j=!0,_e=N.getMonth();switch(c){case"y":N.setFullYear(N.getFullYear()+h);break;case"m":_e+=h,N.setMonth(_e),_e%=12,_e<0&&(_e+=12);break;case"d":N.setDate(N.getDate()+h),j=!1;break;default:return s}return j&&N.getMonth()!==_e&&N.setDate(0),Tn(N)}getPrev(s,c="d",h=1){return this.getNext(s,c,-h)}getWeekday(s){let h=bs(s).getDay();return 0===h?7:h}getWeekNumber(s,c){7===c&&(c=0);const j=bs(s[(11-c)%7]);j.setDate(j.getDate()+4-(j.getDay()||7));const _e=j.getTime();return j.setMonth(0),j.setDate(1),Math.floor(Math.round((_e-j.getTime())/864e5)/7)+1}getToday(){return Tn(new Date)}isValid(s){if(!(s&&kr(s.year)&&kr(s.month)&&kr(s.day)&&0!==s.year))return!1;const c=bs(s);return!isNaN(c.getTime())&&c.getFullYear()===s.year&&c.getMonth()+1===s.month&&c.getDate()===s.day}static#e=this.\u0275fac=(()=>{let s;return function(h){return(s||(s=i.xGo(l)))(h||l)}})();static#t=this.\u0275prov=i.jDH({token:l,factory:l.\u0275fac})}return l})();function So(l,m){return!function gl(l,m){return!l&&!m||!!l&&!!m&&l.equals(m)}(l,m)}function Xr(l,m){return!(!l&&!m||l&&m&&l.year===m.year&&l.month===m.month)}function pi(l,m,s){return l&&m&&l.before(m)?m:l&&s&&l.after(s)?s:l||null}function ia(l,m){const{minDate:s,maxDate:c,disabled:h,markDisabled:N}=m;return!(null==l||h||N&&N(l,{year:l.year,month:l.month})||s&&l.before(s)||c&&l.after(c))}let Ds=(()=>{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=i.jDH({token:l,factory:()=>new cc,providedIn:"root"})}return l})(),cc=(()=>{class l extends Ds{constructor(){super(...arguments),this._locale=(0,i.WQX)(i.xe9),this._monthsShort=(0,lt.tL)(this._locale,lt.oV.Standalone,lt.cH.Abbreviated),this._monthsFull=(0,lt.tL)(this._locale,lt.oV.Standalone,lt.cH.Wide)}getWeekdayLabel(s,c){const h=(0,lt.XO)(this._locale,lt.oV.Standalone,void 0===c?lt.cH.Short:c);return h.map((j,_e)=>h[(_e+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,lt.Yq)(c,"fullDate",this._locale)}static#e=this.\u0275fac=(()=>{let s;return function(h){return(s||(s=i.xGo(l)))(h||l)}})();static#t=this.\u0275prov=i.jDH({token:l,factory:l.\u0275fac})}return l})(),Sa=(()=>{class l{constructor(){this._VALIDATORS={dayTemplateData:s=>{if(this._state.dayTemplateData!==s)return{dayTemplateData:s}},displayMonths:s=>{if(kr(s=Mr(s))&&s>0&&this._state.displayMonths!==s)return{displayMonths:s}},disabled:s=>{if(this._state.disabled!==s)return{disabled:s}},firstDayOfWeek:s=>{if(kr(s=Mr(s))&&s>=0&&this._state.firstDayOfWeek!==s)return{firstDayOfWeek:s}},focusVisible:s=>{if(this._state.focusVisible!==s&&!this._state.disabled)return{focusVisible:s}},markDisabled:s=>{if(this._state.markDisabled!==s)return{markDisabled:s}},maxDate:s=>{const c=this.toValidDate(s,null);if(So(this._state.maxDate,c))return{maxDate:c}},minDate:s=>{const c=this.toValidDate(s,null);if(So(this._state.minDate,c))return{minDate:c}},navigation:s=>{if(this._state.navigation!==s)return{navigation:s}},outsideDays:s=>{if(this._state.outsideDays!==s)return{outsideDays:s}},weekdays:s=>{const c=!0===s||!1===s?lt.cH.Short:s,h=!0!==s&&!1!==s||s;if(this._state.weekdayWidth!==c||this._state.weekdaysVisible!==h)return{weekdayWidth:c,weekdaysVisible:h}}},this._calendar=(0,i.WQX)(uo),this._i18n=(0,i.WQX)(Ds),this._model$=new me.B,this._dateSelect$=new me.B,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:lt.cH.Short,weekdaysVisible:!0}}get model$(){return this._model$.pipe((0,yt.p)(s=>s.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe((0,yt.p)(s=>null!==s))}set(s){let c=Object.keys(s).map(h=>this._VALIDATORS[h](s[h])).reduce((h,N)=>({...h,...N}),{});Object.keys(c).length>0&&this._nextState(c)}focus(s){const c=this.toValidDate(s,null);null!=c&&!this._state.disabled&&So(this._state.focusDate,c)&&this._nextState({focusDate:s})}focusSelect(){ia(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||Xr(this._state.firstDate,c))&&this._nextState({firstDate:c})}select(s,c={}){const h=this.toValidDate(s,null);null!=h&&!this._state.disabled&&(So(this._state.selectedDate,h)&&this._nextState({selectedDate:h}),c.emitEvent&&ia(h,this._state)&&this._dateSelect$.next(h))}toValidDate(s,c){const h=Ar.from(s);return void 0===c&&(c=this._calendar.getToday()),this._calendar.isValid(h)?h: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:h,selectedDate:N,focusDate:j,focusVisible:_e,disabled:Ie,outsideDays:Ke}=s;s.months.forEach(tt=>{tt.weeks.forEach(Ot=>{Ot.days.forEach(At=>{j&&(At.context.focused=j.equals(At.date)&&_e),At.tabindex=!Ie&&j&&At.date.equals(j)&&j.month===tt.number?0:-1,!0===Ie&&(At.context.disabled=!0),void 0!==N&&(At.context.selected=null!==N&&N.equals(At.date)),tt.number!==At.date.month&&(At.hidden="hidden"===Ke||"collapsed"===Ke||h>1&&At.date.after(c[0].firstDate)&&At.date.before(c[h-1].lastDate))})})})}_updateState(s){const c=Object.assign({},this._state,s);let h=c.firstDate;if(("minDate"in s||"maxDate"in s)&&(function ki(l,m){if(m&&l&&m.before(l))throw new Error(`'maxDate' ${m} should be greater than 'minDate' ${l}`)}(c.minDate,c.maxDate),c.focusDate=pi(c.focusDate,c.minDate,c.maxDate),c.firstDate=pi(c.firstDate,c.minDate,c.maxDate),h=c.focusDate),"disabled"in s&&(c.focusVisible=!1),"selectedDate"in s&&0===this._state.months.length&&(h=c.selectedDate),"focusVisible"in s||"focusDate"in s&&(c.focusDate=pi(c.focusDate,c.minDate,c.maxDate),h=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=pi(c.firstDate,c.minDate,c.maxDate),h=c.firstDate),h){const j=function Bl(l,m,s,c,h){const{displayMonths:N,months:j}=s,_e=j.splice(0,j.length);return Array.from({length:N},(Ke,tt)=>{const Ot=Object.assign(l.getNext(m,"m",tt),{day:1});if(j[tt]=null,!h){const At=_e.findIndex(Ft=>Ft.firstDate.equals(Ot));-1!==At&&(j[tt]=_e.splice(At,1)[0])}return Ot}).forEach((Ke,tt)=>{null===j[tt]&&(j[tt]=function Vl(l,m,s,c,h={}){const{dayTemplateData:N,minDate:j,maxDate:_e,firstDayOfWeek:Ie,markDisabled:Ke,outsideDays:tt,weekdayWidth:Ot,weekdaysVisible:At}=s,Ft=l.getToday();h.firstDate=null,h.lastDate=null,h.number=m.month,h.year=m.year,h.weeks=h.weeks||[],h.weekdays=h.weekdays||[],m=function Ma(l,m,s){const c=l.getDaysPerWeek(),h=new Ar(m.year,m.month,1),N=l.getWeekday(h)%c;return l.getPrev(h,"d",(c+N-s)%c)}(l,m,Ie),At||(h.weekdays.length=0);for(let Gn=0;Gndr.date),Ie),bn.collapsed="collapsed"===tt&&zn[0].date.month!==h.number&&zn[zn.length-1].date.month!==h.number}return h}(l,Ke,s,c,_e.shift()||{}))}),j}(this._calendar,h,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=j,c.firstDate=j[0].firstDate,c.lastDate=j[j.length-1].lastDate,"selectedDate"in s&&!ia(c.selectedDate,c)&&(c.selectedDate=null),"firstDate"in s&&(!c.focusDate||c.focusDate.before(c.firstDate)||c.focusDate.after(c.lastDate))&&(c.focusDate=h);const _e=!this._state.firstDate||this._state.firstDate.year!==c.firstDate.year,Ie=!this._state.firstDate||this._state.firstDate.month!==c.firstDate.month;"select"===c.navigation?(("minDate"in s||"maxDate"in s||0===c.selectBoxes.years.length||_e)&&(c.selectBoxes.years=function Za(l,m,s){if(!l)return[];const c=m?Math.max(m.year,l.year-500):l.year-10,N=(s?Math.min(s.year,l.year+500):l.year+10)-c+1,j=Array(N);for(let _e=0;_ej===s.month);h=h.slice(N)}if(c&&m.year===c.year){const N=h.findIndex(j=>j===c.month);h=h.slice(0,N+1)}return h}(this._calendar,c.firstDate,c.minDate,c.maxDate))):c.selectBoxes={years:[],months:[]},("arrows"===c.navigation||"select"===c.navigation)&&(Ie||_e||"minDate"in s||"maxDate"in s||"disabled"in s)&&(c.prevDisabled=c.disabled||function ml(l,m,s){const c=Object.assign(l.getPrev(m,"m"),{day:1});return null!=s&&(c.year===s.year&&c.month{class l{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekNumbers=!1,this.weekdays=lt.cH.Short}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=i.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Aa=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=i.jDH({token:l,factory:()=>function uc(){return new p}(),providedIn:"root"})}return l})(),p=(()=>{class l extends Aa{fromModel(s){return s&&kr(s.year)&&kr(s.month)&&kr(s.day)?{year:s.year,month:s.month,day:s.day}:null}toModel(s){return s&&kr(s.year)&&kr(s.month)&&kr(s.day)?{year:s.year,month:s.month,day:s.day}:null}static#e=this.\u0275fac=(()=>{let s;return function(h){return(s||(s=i.xGo(l)))(h||l)}})();static#t=this.\u0275prov=i.jDH({token:l,factory:l.\u0275fac})}return l})();var E=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}(E||{});let v=(()=>{class l{processKey(s,c){const{state:h,calendar:N}=c;switch(s.which){case E.PageUp:c.focusDate(N.getPrev(h.focusedDate,s.shiftKey?"y":"m",1));break;case E.PageDown:c.focusDate(N.getNext(h.focusedDate,s.shiftKey?"y":"m",1));break;case E.End:c.focusDate(s.shiftKey?h.maxDate:h.lastDate);break;case E.Home:c.focusDate(s.shiftKey?h.minDate:h.firstDate);break;case E.ArrowLeft:c.focusDate(N.getPrev(h.focusedDate,"d",1));break;case E.ArrowUp:c.focusDate(N.getPrev(h.focusedDate,"d",N.getDaysPerWeek()));break;case E.ArrowRight:c.focusDate(N.getNext(h.focusedDate,"d",1));break;case E.ArrowDown:c.focusDate(N.getNext(h.focusedDate,"d",N.getDaysPerWeek()));break;case E.Enter:case E.Space:c.focusSelect();break;default:return}s.preventDefault(),s.stopPropagation()}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=i.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),C=(()=>{class l{constructor(){this.i18n=(0,i.WQX)(Ds)}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275cmp=i.VBU({type:l,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(c,h){2&c&&i.AVh("bg-primary",h.selected)("text-white",h.selected)("text-muted",h.isMuted())("outside",h.isMuted())("active",h.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},standalone:!0,features:[i.aNF],attrs:en,decls:1,vars:1,template:function(c,h){1&c&&i.EFF(0),2&c&&i.JRh(h.i18n.getDayNumerals(h.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-tertiary-bg);outline:1px solid var(--bs-border-color)}[ngbDatepickerDayView].outside{opacity:.5}\n"],encapsulation:2,changeDetection:0})}return l})(),R=(()=>{class l{constructor(){this._month=-1,this._year=-1,this.i18n=(0,i.WQX)(Ds),this.select=new i.bkB}changeMonth(s){this.select.emit(new Ar(this.date.year,Mr(s),1))}changeYear(s){this.select.emit(new Ar(Mr(s),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this.monthSelect.nativeElement.value=`${this._month}`),this.date.year!==this._year&&(this._year=this.date.year,this.yearSelect.nativeElement.value=`${this._year}`))}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275cmp=i.VBU({type:l,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(c,h){if(1&c&&(i.GBs(Vn,7,i.aKT),i.GBs(Gi,7,i.aKT)),2&c){let N;i.mGM(N=i.lsd())&&(h.monthSelect=N.first),i.mGM(N=i.lsd())&&(h.yearSelect=N.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},standalone:!0,features:[i.aNF],decls:8,vars:2,consts:()=>{let s,c,h,N;return s=$localize`:@@ngb.datepicker.select-month:Select month`,c=$localize`:@@ngb.datepicker.select-month:Select month`,h=$localize`:@@ngb.datepicker.select-year:Select year`,N=$localize`:@@ngb.datepicker.select-year:Select year`,[["month",""],["year",""],["aria-label",s,"title",c,1,"form-select",3,"change","disabled"],[3,"value"],["aria-label",h,"title",N,1,"form-select",3,"change","disabled"]]},template:function(c,h){if(1&c){const N=i.RV6();i.j41(0,"select",2,0),i.bIt("change",function(_e){return i.eBV(N),i.Njj(h.changeMonth(_e.target.value))}),i.Z7z(2,rr,2,3,"option",3,i.fX1),i.k0s(),i.j41(4,"select",4,1),i.bIt("change",function(_e){return i.eBV(N),i.Njj(h.changeYear(_e.target.value))}),i.Z7z(6,vi,2,2,"option",3,i.fX1),i.k0s()}2&c&&(i.Y8G("disabled",h.disabled),i.R7$(2),i.Dyx(h.months),i.R7$(2),i.Y8G("disabled",h.disabled),i.R7$(2),i.Dyx(h.years))},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})(),z=(()=>{class l{constructor(){this.navigation=qa,this.i18n=(0,i.WQX)(Ds),this.months=[],this.navigate=new i.bkB,this.select=new i.bkB}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)};static#t=this.\u0275cmp=i.VBU({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:[i.aNF],decls:8,vars:4,consts:()=>{let s,c,h,N;return s=$localize`:@@ngb.datepicker.previous-month:Previous month`,c=$localize`:@@ngb.datepicker.previous-month:Previous month`,h=$localize`:@@ngb.datepicker.next-month:Next month`,N=$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,"click","disabled"],[1,"ngb-dp-navigation-chevron"],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years"],[1,"ngb-dp-arrow","ngb-dp-arrow-next"],["type","button","aria-label",h,"title",N,1,"btn","btn-link","ngb-dp-arrow-btn",3,"click","disabled"],[1,"ngb-dp-navigation-select",3,"select","date","disabled","months","years"],[1,"ngb-dp-arrow"],[1,"ngb-dp-month-name"]]},template:function(c,h){1&c&&(i.j41(0,"div",0)(1,"button",1),i.bIt("click",function(j){return h.onClickPrev(j)}),i.nrm(2,"span",2),i.k0s()(),i.DNE(3,Zr,1,4,"ngb-datepicker-navigation-select",3)(4,lo,2,0),i.j41(5,"div",4)(6,"button",5),i.bIt("click",function(j){return h.onClickNext(j)}),i.nrm(7,"span",2),i.k0s()()),2&c&&(i.R7$(),i.Y8G("disabled",h.prevDisabled),i.R7$(2),i.vxM(3,h.showSelect?3:-1),i.R7$(),i.vxM(4,h.showSelect?-1:4),i.R7$(2),i.Y8G("disabled",h.nextDisabled))},dependencies:[R],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})(),fe=(()=>{class l{constructor(){this.templateRef=(0,i.WQX)(i.C4Q)}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275dir=i.FsC({type:l,selectors:[["ng-template","ngbDatepickerContent",""]],standalone:!0})}return l})(),Ye=(()=>{class l{constructor(){this._keyboardService=(0,i.WQX)(v),this._service=(0,i.WQX)(Sa),this.i18n=(0,i.WQX)(Ds),this.datepicker=(0,i.WQX)(Ve)}set month(s){this.viewModel=this._service.getMonth(s)}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)};static#t=this.\u0275cmp=i.VBU({type:l,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(c,h){1&c&&i.bIt("keydown",function(j){return h.onKeyDown(j)})},inputs:{month:"month"},standalone:!0,features:[i.aNF],decls:3,vars:1,consts:[["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],[1,"ngb-dp-weekday","ngb-dp-showweek","small"],["role","columnheader",1,"ngb-dp-weekday","small"],["role","row",1,"ngb-dp-week"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"disabled","tabindex","hidden","ngb-dp-today"],["role","gridcell",1,"ngb-dp-day",3,"click","tabindex"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(c,h){1&c&&(i.DNE(0,Mi,4,1,"div",0),i.Z7z(1,Ys,1,1,null,null,i.fX1)),2&c&&(i.vxM(0,h.viewModel.weekdays.length>0?0:-1),i.R7$(),i.Dyx(h.viewModel.weeks))},dependencies:[lt.T3],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-tertiary-bg)}.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})(),Ve=(()=>{class l{constructor(){this.injector=(0,i.WQX)(i.zZn),this._service=(0,i.WQX)(Sa),this._calendar=(0,i.WQX)(uo),this._i18n=(0,i.WQX)(Ds),this._config=(0,i.WQX)(Ul),this._nativeElement=(0,i.WQX)(i.aKT).nativeElement,this._ngbDateAdapter=(0,i.WQX)(Aa),this._ngZone=(0,i.WQX)(i.SKi),this._destroyRef=(0,i.WQX)(i.abz),this._controlValue=null,this._publicState={},this.dayTemplate=this._config.dayTemplate,this.dayTemplateData=this._config.dayTemplateData,this.displayMonths=this._config.displayMonths,this.firstDayOfWeek=this._config.firstDayOfWeek,this.footerTemplate=this._config.footerTemplate,this.markDisabled=this._config.markDisabled,this.maxDate=this._config.maxDate,this.minDate=this._config.minDate,this.navigation=this._config.navigation,this.outsideDays=this._config.outsideDays,this.showWeekNumbers=this._config.showWeekNumbers,this.startDate=this._config.startDate,this.weekdays=this._config.weekdays,this.navigate=new i.bkB,this.dateSelect=new i.bkB,this.onChange=c=>{},this.onTouched=()=>{};const s=(0,i.WQX)(i.gRc);this._service.dateSelect$.pipe(G()).subscribe(c=>{this.dateSelect.emit(c)}),this._service.model$.pipe(G()).subscribe(c=>{const h=c.firstDate,N=this.model?this.model.firstDate:null;this._publicState={maxDate:c.maxDate,minDate:c.minDate,firstDate:c.firstDate,lastDate:c.lastDate,focusedDate:c.focusDate,months:c.months.map(tt=>tt.firstDate)};let j=!1;if(!h.equals(N)&&(this.navigate.emit({current:N?{year:N.year,month:N.month}:null,next:{year:h.year,month:h.month},preventDefault:()=>j=!0}),j&&null!==N))return void this._service.open(N);const _e=c.selectedDate,Ie=c.focusDate,Ke=this.model?this.model.focusDate:null;this.model=c,So(_e,this._controlValue)&&(this._controlValue=_e,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(_e))),So(Ie,Ke)&&Ke&&c.focusVisible&&this.focus(),s.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}get i18n(){return this._i18n}focusDate(s){this._service.focus(Ar.from(s))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe((0,vt.s)(1)).subscribe(()=>this._nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]')?.focus())}navigateTo(s){this._service.open(Ar.from(s?s.day?s:{...s,day:1}:null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const s=(0,Ce.R)(this._contentEl.nativeElement,"focusin"),c=(0,Ce.R)(this._contentEl.nativeElement,"focusout");(0,Qe.h)(s,c).pipe((0,yt.p)(h=>{const N=h.target,j=h.relatedTarget;return!(N?.classList.contains("ngb-dp-day")&&j?.classList.contains("ngb-dp-day")&&this._nativeElement.contains(N)&&this._nativeElement.contains(j))}),G(this._destroyRef)).subscribe(({type:h})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===h})))})}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(h=>h in s).forEach(h=>c[h]=this[h]),this._service.set(c),"startDate"in s){const{currentValue:h,previousValue:N}=s.startDate;Xr(N,h)&&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 qa.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case qa.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=Ar.from(this._ngbDateAdapter.fromModel(s)),this._service.select(this._controlValue)}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275cmp=i.VBU({type:l,selectors:[["ngb-datepicker"]],contentQueries:function(c,h,N){if(1&c&&i.wni(N,fe,7),2&c){let j;i.mGM(j=i.lsd())&&(h.contentTemplateFromContent=j.first)}},viewQuery:function(c,h){if(1&c&&(i.GBs(Zo,7),i.GBs(di,7)),2&c){let N;i.mGM(N=i.lsd())&&(h._defaultDayTemplate=N.first),i.mGM(N=i.lsd())&&(h._contentEl=N.first)}},hostVars:2,hostBindings:function(c,h){2&c&&i.AVh("disabled",h.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:[i.Jv_([{provide:Nt.kq,useExisting:(0,i.Rfq)(()=>l),multi:!0},Sa]),i.OA$,i.aNF],decls:10,vars:9,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],["content",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes"],[1,"ngb-dp-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],[1,"ngb-dp-month"],[1,"ngb-dp-month-name"],[3,"month"],[3,"navigate","select","date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes"]],template:function(c,h){if(1&c&&(i.DNE(0,jr,1,5,"ng-template",null,0,i.C5r)(2,zi,2,0,"ng-template",null,1,i.C5r),i.j41(4,"div",3),i.DNE(5,Hn,1,7,"ngb-datepicker-navigation",4),i.k0s(),i.j41(6,"div",5,2),i.DNE(8,xo,0,0,"ng-template",6),i.k0s(),i.DNE(9,Is,0,0,"ng-template",7)),2&c){const N=i.sdS(3);i.R7$(5),i.vxM(5,"none"!==h.navigation?5:-1),i.R7$(),i.AVh("ngb-dp-months",!h.contentTemplate),i.R7$(2),i.Y8G("ngTemplateOutlet",h.contentTemplate||(null==h.contentTemplateFromContent?null:h.contentTemplateFromContent.templateRef)||N)("ngTemplateOutletContext",i.eq3(7,wo,h))("ngTemplateOutletInjector",h.injector),i.R7$(),i.Y8G("ngTemplateOutlet",h.footerTemplate)}},dependencies:[lt.T3,C,Ye,z],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-tertiary-bg)}.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-tertiary-bg)}.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 It=(l,m)=>!!m&&m.some(s=>s.contains(l)),Fn=(l,m)=>!m||null!=function na(l,m){return!m||typeof l.closest>"u"?null:l.closest(m)}(l,m),xn=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 ss(l,m,s,c,h,N,j,_e){s&&l.runOutsideAngular((l=>xn?()=>setTimeout(()=>l(),100):l)(()=>{const Ke=(0,Ce.R)(m,"keydown").pipe((0,H.Q)(h),(0,yt.p)(At=>At.which===E.Escape),(0,Mt.M)(At=>At.preventDefault())),tt=(0,Ce.R)(m,"mousedown").pipe((0,dt.T)(At=>{const Ft=At.target;return 2!==At.button&&!It(Ft,j)&&("inside"===s?It(Ft,N)&&Fn(Ft,_e):"outside"===s?!It(Ft,N):Fn(Ft,_e)||!It(Ft,N))}),(0,H.Q)(h)),Ot=(0,Ce.R)(m,"mouseup").pipe((0,ht.E)(tt),(0,yt.p)(([At,Ft])=>Ft),function we(l,m=Pt.E){const s=(0,Se.O)(l,m);return ve(()=>s)}(0),(0,H.Q)(h));_t([Ke.pipe((0,dt.T)(At=>0)),Ot.pipe((0,dt.T)(At=>1))]).subscribe(At=>l.run(()=>c(At)))}))}const js=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function as(l){const m=Array.from(l.querySelectorAll(js)).filter(s=>-1!==s.tabIndex);return[m[0],m[m.length-1]]}const Es=(l,m,s,c=!1)=>{l.runOutsideAngular(()=>{const h=(0,Ce.R)(m,"focusin").pipe((0,H.Q)(s),(0,dt.T)(N=>N.target));(0,Ce.R)(m,"keydown").pipe((0,H.Q)(s),(0,yt.p)(N=>N.which===E.Tab),(0,ht.E)(h)).subscribe(([N,j])=>{const[_e,Ie]=as(m);(j===_e||j===m)&&N.shiftKey&&(Ie.focus(),N.preventDefault()),j===Ie&&!N.shiftKey&&(_e.focus(),N.preventDefault())}),c&&(0,Ce.R)(m,"click").pipe((0,H.Q)(s),(0,ht.E)(h),(0,dt.T)(N=>N[1])).subscribe(N=>N.focus())})};let Uo=(()=>{class l{constructor(){this._element=(0,i.WQX)(lt.qQ).documentElement}isRTL(){return"rtl"===(this._element.getAttribute("dir")||"").toLowerCase()}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=i.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();const dc=/\s+/,yu=/ +/gi,fc={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"]},bu=/^left/,jl=/^right/,Du=/^start/,ls=/^end/;function Hl({placement:l,baseClass:m},s){let c=Array.isArray(l)?l:l.split(dc),N=c.findIndex(Ke=>"auto"===Ke);N>=0&&["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"].forEach(function(Ke){null==c.find(tt=>-1!==tt.search("^"+Ke))&&c.splice(N++,1,Ke)});const j=c.map(Ke=>function hc(l,m){const[s,c]=fc[l];return m&&c||s}(Ke,s.isRTL()));return{placement:j.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!m,phase:"write",fn({state:Ke}){const tt=new RegExp(m+"(-[a-z]+)*","gi"),Ot=Ke.elements.popper,At=Ke.placement;let Ft=Ot.className;Ft=Ft.replace(tt,""),Ft+=` ${function pc(l,m){let[s,c]=m.split("-");const h=s.replace(bu,"start").replace(jl,"end");let N=[h];if(c){let j=c;("left"===s||"right"===s)&&(j=j.replace(Du,"top").replace(ls,"bottom")),N.push(`${h}-${j}`)}return l&&(N=N.map(j=>`${l}-${j}`)),N.join(" ")}(m,At)}`,Ft=Ft.trim().replace(yu," "),Ot.className=Ft}},U,Xe,Lt,{enabled:!0,name:"flip",options:{fallbackPlacements:j}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function $l(l){return l}function _l(){const l=(0,i.WQX)(Uo);let m=null;return{createPopper(s){if(!m){let h=(s.updatePopperOptions||$l)(Hl(s,l));m=Do(s.hostElement,s.targetElement,h)}},update(){m&&m.update()},setOptions(s){if(m){let h=(s.updatePopperOptions||$l)(Hl(s,l));m.setOptions(h)}},destroy(){m&&(m.destroy(),m=null)}}}let _r=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=i.jDH({token:l,factory:()=>function Od(){return new gc}(),providedIn:"root"})}return l})(),gc=(()=>{class l extends _r{parse(s){if(null!=s){const c=s.trim().split("-");if(1===c.length&&hi(c[0]))return{year:Mr(c[0]),month:null,day:null};if(2===c.length&&hi(c[0])&&hi(c[1]))return{year:Mr(c[0]),month:Mr(c[1]),day:null};if(3===c.length&&hi(c[0])&&hi(c[1])&&hi(c[2]))return{year:Mr(c[0]),month:Mr(c[1]),day:Mr(c[2])}}return null}format(s){return s?`${s.year}-${hi(s.month)?Qa(s.month):""}-${hi(s.day)?Qa(s.day):""}`:""}static#e=this.\u0275fac=(()=>{let s;return function(h){return(s||(s=i.xGo(l)))(h||l)}})();static#t=this.\u0275prov=i.jDH({token:l,factory:l.\u0275fac})}return l})(),oa=(()=>{class l extends Ul{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=(()=>{let s;return function(h){return(s||(s=i.xGo(l)))(h||l)}})();static#t=this.\u0275prov=i.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();function Ni(l){return m=>(m.modifiers.push(ri,{name:"offset",options:{offset:()=>l}}),m)}let mc=(()=>{class l{constructor(){this._parserFormatter=(0,i.WQX)(_r),this._elRef=(0,i.WQX)(i.aKT),this._vcRef=(0,i.WQX)(i.c1b),this._ngZone=(0,i.WQX)(i.SKi),this._calendar=(0,i.WQX)(uo),this._dateAdapter=(0,i.WQX)(Aa),this._document=(0,i.WQX)(lt.qQ),this._changeDetector=(0,i.WQX)(i.gRc),this._config=(0,i.WQX)(oa),this._cRef=null,this._disabled=!1,this._elWithFocus=null,this._model=null,this._positioning=_l(),this._destroyCloseHandlers$=new me.B,this.autoClose=this._config.autoClose,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.container=this._config.container,this.positionTarget=this._config.positionTarget,this.dateSelect=new i.bkB,this.navigate=new i.bkB,this.closed=new i.bkB,this._onChange=s=>{},this._onTouched=()=>{},this._validatorChange=()=>{}}get disabled(){return this._disabled}set disabled(s){this._disabled=""===s||s&&"false"!==s,this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}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 h=this._fromDateStruct(this._dateAdapter.fromModel(c));if(!h)return{ngbDate:{invalid:c}};if(this.minDate&&h.before(Ar.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:c}}};if(this.maxDate&&h.after(Ar.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 h=s!==this._inputValue;h&&(this._inputValue=s,this._model=this._fromDateStruct(this._parserFormatter.parse(s))),(h||!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(Ve),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,Es(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),setTimeout(()=>this._cRef?.instance.focus()),s=fi(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?this.positionTarget:this._elRef.nativeElement,this.positionTarget&&!s)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");this._ngZone.runOutsideAngular(()=>{this._cRef&&s&&(this._positioning.createPopper({hostElement:s,targetElement:this._cRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:c=>this.popperOptions(Ni([0,2])(c))}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update()))}),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;fi(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.setInput("minDate",this.minDate),s.maxDate&&this._cRef.setInput("maxDate",this.maxDate))),s.datepickerClass){const{currentValue:c,previousValue:h}=s.datepickerClass;this._applyPopupClass(c,h)}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 h=this._cRef?.location.nativeElement;h&&(s&&h.classList.add(s),c&&h.classList.remove(c))}_applyPopupStyling(s){s.classList.add("dropdown-menu","show"),"body"===this.container&&s.classList.add("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._elRef.nativeElement.value=c,this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(s)),this._onTouched())}_fromDateStruct(s){const c=s?new Ar(s.year,s.month,s.day):null;return this._calendar.isValid(c)?c:null}_setCloseHandlers(){this._destroyCloseHandlers$.next(),ss(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)};static#t=this.\u0275dir=i.FsC({type:l,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(c,h){1&c&&i.bIt("input",function(j){return h.manualDateChange(j.target.value)})("change",function(j){return h.manualDateChange(j.target.value,!0)})("focus",function(){return h.onFocus()})("blur",function(){return h.onBlur()}),2&c&&i.Mr5("disabled",h.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:[i.Jv_([{provide:Nt.kq,useExisting:(0,i.Rfq)(()=>l),multi:!0},{provide:Nt.cz,useExisting:(0,i.Rfq)(()=>l),multi:!0},{provide:Ul,useExisting:oa}]),i.OA$]})}return l})();new Date(1882,10,12),new Date(2174,10,25);let bc=(()=>{class l extends Aa{fromModel(s){return s instanceof Date&&!isNaN(s.getTime())?this._fromNativeDate(s):null}toModel(s){return s&&kr(s.year)&&kr(s.month)&&kr(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=(()=>{let s;return function(h){return(s||(s=i.xGo(l)))(h||l)}})();static#t=this.\u0275prov=i.jDH({token:l,factory:l.\u0275fac})}return l})(),Ud=(()=>{class l{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=s=>s,this.container=null}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=i.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),Gl=(()=>{class l{constructor(){this._disabled=!1,this.nativeElement=(0,i.WQX)(i.aKT).nativeElement,this.tabindex=0}set disabled(s){this._disabled=""===s||!0===s}get disabled(){return this._disabled}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275dir=i.FsC({type:l,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(c,h){2&c&&(i.Mr5("tabIndex",h.disabled?-1:h.tabindex),i.AVh("disabled",h.disabled))},inputs:{tabindex:"tabindex",disabled:"disabled"},standalone:!0})}return l})(),jd=(()=>{class l{constructor(){this.item=(0,i.WQX)(Gl)}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275dir=i.FsC({type:l,selectors:[["button","ngbDropdownItem",""]],hostVars:1,hostBindings:function(c,h){2&c&&i.Mr5("disabled",h.item.disabled)},standalone:!0})}return l})(),Oa=(()=>{class l{constructor(){this.dropdown=(0,i.WQX)(bl),this.nativeElement=(0,i.WQX)(i.aKT).nativeElement}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275dir=i.FsC({type:l,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(c,h,N){if(1&c&&i.wni(N,Gl,4),2&c){let j;i.mGM(j=i.lsd())&&(h.menuItems=j)}},hostVars:4,hostBindings:function(c,h){1&c&&i.bIt("keydown.ArrowUp",function(j){return h.dropdown.onKeyDown(j)})("keydown.ArrowDown",function(j){return h.dropdown.onKeyDown(j)})("keydown.Home",function(j){return h.dropdown.onKeyDown(j)})("keydown.End",function(j){return h.dropdown.onKeyDown(j)})("keydown.Enter",function(j){return h.dropdown.onKeyDown(j)})("keydown.Space",function(j){return h.dropdown.onKeyDown(j)})("keydown.Tab",function(j){return h.dropdown.onKeyDown(j)})("keydown.Shift.Tab",function(j){return h.dropdown.onKeyDown(j)}),2&c&&i.AVh("dropdown-menu",!0)("show",h.dropdown.isOpen())},standalone:!0})}return l})(),Ia=(()=>{class l{constructor(){this.dropdown=(0,i.WQX)(bl),this.nativeElement=(0,i.WQX)(i.aKT).nativeElement}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275dir=i.FsC({type:l,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(c,h){2&c&&(i.BMQ("aria-expanded",h.dropdown.isOpen()),i.AVh("show",h.dropdown.isOpen()))},standalone:!0})}return l})(),Hd=(()=>{class l extends Ia{static#e=this.\u0275fac=(()=>{let s;return function(h){return(s||(s=i.xGo(l)))(h||l)}})();static#t=this.\u0275dir=i.FsC({type:l,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(c,h){1&c&&i.bIt("click",function(){return h.dropdown.toggle()})("keydown.ArrowUp",function(j){return h.dropdown.onKeyDown(j)})("keydown.ArrowDown",function(j){return h.dropdown.onKeyDown(j)})("keydown.Home",function(j){return h.dropdown.onKeyDown(j)})("keydown.End",function(j){return h.dropdown.onKeyDown(j)})("keydown.Tab",function(j){return h.dropdown.onKeyDown(j)})("keydown.Shift.Tab",function(j){return h.dropdown.onKeyDown(j)}),2&c&&(i.BMQ("aria-expanded",h.dropdown.isOpen()),i.AVh("show",h.dropdown.isOpen()))},standalone:!0,features:[i.Jv_([{provide:Ia,useExisting:(0,i.Rfq)(()=>l)}]),i.Vt3]})}return l})(),bl=(()=>{class l{constructor(){this._changeDetector=(0,i.WQX)(i.gRc),this._config=(0,i.WQX)(Ud),this._document=(0,i.WQX)(lt.qQ),this._ngZone=(0,i.WQX)(i.SKi),this._nativeElement=(0,i.WQX)(i.aKT).nativeElement,this._destroyCloseHandlers$=new me.B,this._bodyContainer=null,this._positioning=_l(),this.autoClose=this._config.autoClose,this._open=!1,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.container=this._config.container,this.openChange=new i.bkB}ngOnInit(){this.display||(this.display=this._nativeElement.closest(".navbar")?"static":"dynamic")}ngAfterContentInit(){this._ngZone.onStable.pipe((0,vt.s)(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:h}=s.dropdownClass;this._applyCustomDropdownClass(c,h)}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(Ni([0,2])(s))}),this._applyPlacementClasses(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positionMenu())})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),ss(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,h=this._getMenuElements();let N=-1,j=null;const _e=this._isEventFromToggle(s);if(!_e&&h.length&&h.forEach((Ie,Ke)=>{Ie.contains(s.target)&&(j=Ie),Ie===b(this._document)&&(N=Ke)}),c!==E.Space&&c!==E.Enter){if(c!==E.Tab){if(_e||j){if(this.open(),h.length){switch(c){case E.ArrowDown:N=Math.min(N+1,h.length-1);break;case E.ArrowUp:if(this._isDropup()&&-1===N){N=h.length-1;break}N=Math.max(N-1,0);break;case E.Home:N=0;break;case E.End:N=h.length-1}h[N].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._menu.nativeElement.setAttribute("tabindex","0"),this._menu.nativeElement.focus(),this._menu.nativeElement.removeAttribute("tabindex")));if("body"===this.container){const Ie=this._menu.nativeElement.querySelectorAll(js);s.shiftKey&&s.target===Ie[0]?(this._anchor.nativeElement.focus(),s.preventDefault()):!s.shiftKey&&s.target===Ie[Ie.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else(0,Ce.R)(s.target,"focusout").pipe((0,vt.s)(1)).subscribe(({relatedTarget:Ie})=>{this._nativeElement.contains(Ie)||this.close()})}}else j&&(!0===this.autoClose||"inside"===this.autoClose)&&(0,Ce.R)(j,"click").pipe((0,vt.s)(1)).subscribe(()=>this.close())}_isDropup(){return this._nativeElement.classList.contains("dropup")}_isEventFromToggle(s){return this._anchor.nativeElement.contains(s.target)}_getMenuElements(){return this._menu?this._menu.menuItems.filter(({disabled:s})=>!s).map(({nativeElement:s})=>s):[]}_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(){this._menu&&this._nativeElement.appendChild(this._menu.nativeElement),this._bodyContainer&&(this._document.body.removeChild(this._bodyContainer),this._bodyContainer=null)}_applyContainer(s=null){if(this._resetContainer(),"body"===s){const c=this._menu.nativeElement,h=this._bodyContainer=this._bodyContainer||this._document.createElement("div");h.style.position="absolute",c.style.position="static",h.style.zIndex="1055",h.appendChild(c),this._document.body.appendChild(h)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(s,c){const h="body"===this.container?this._bodyContainer:this._nativeElement;h&&(c&&h.classList.remove(c),s&&h.classList.add(s))}_applyPlacementClasses(s){if(this._menu){s||(s=this._getFirstPlacement(this.placement)),this._nativeElement.classList.remove("dropup","dropdown"),"static"===this.display?this._menu.nativeElement.setAttribute("data-bs-popper","static"):this._menu.nativeElement.removeAttribute("data-bs-popper");const c=-1!==s.search("^top")?"dropup":"dropdown";this._nativeElement.classList.add(c),this._bodyContainer&&(this._bodyContainer.classList.remove("dropup","dropdown"),this._bodyContainer.classList.add(c))}}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275dir=i.FsC({type:l,selectors:[["","ngbDropdown",""]],contentQueries:function(c,h,N){if(1&c&&(i.wni(N,Oa,5),i.wni(N,Ia,5)),2&c){let j;i.mGM(j=i.lsd())&&(h._menu=j.first),i.mGM(j=i.lsd())&&(h._anchor=j.first)}},hostVars:2,hostBindings:function(c,h){2&c&&i.AVh("show",h.isOpen())},inputs:{autoClose:"autoClose",dropdownClass:"dropdownClass",_open:[i.Mj6.None,"open","_open"],placement:"placement",popperOptions:"popperOptions",container:"container",display:"display"},outputs:{openChange:"openChange"},exportAs:["ngbDropdown"],standalone:!0,features:[i.OA$]})}return l})(),Fh=(()=>{class l{constructor(){this._ngbConfig=(0,i.WQX)(is),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=i.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();class Dl{constructor(m,s,c){this.nodes=m,this.viewRef=s,this.componentRef=c}}class Lh{constructor(m){this._componentType=m,this._windowRef=null,this._contentRef=null,this._document=(0,i.WQX)(lt.qQ),this._applicationRef=(0,i.WQX)(i.o8S),this._injector=(0,i.WQX)(i.zZn),this._viewContainerRef=(0,i.WQX)(i.c1b),this._ngZone=(0,i.WQX)(i.SKi)}open(m,s,c=!1){this._windowRef||(this._contentRef=this._getContentRef(m,s),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));const{nativeElement:h}=this._windowRef.location,N=this._ngZone.onStable.pipe((0,vt.s)(1),(0,pe.Z)(()=>re(this._ngZone,h,({classList:j})=>j.add("show"),{animation:c,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:N}}close(m=!1){return this._windowRef?re(this._ngZone,this._windowRef.location.nativeElement,({classList:s})=>s.remove("show"),{animation:m,runningTransition:"stop"}).pipe((0,Mt.M)(()=>{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,ae.of)(void 0)}_getContentRef(m,s){if(m){if(m instanceof i.C4Q){const c=m.createEmbeddedView(s);return this._applicationRef.attachView(c),new Dl([c.rootNodes],c)}return new Dl([[this._document.createTextNode(`${m}`)]])}return new Dl([])}}let Su=(()=>{class l{constructor(){this._document=(0,i.WQX)(lt.qQ)}hide(){const s=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),c=this._document.body,h=c.style,{overflow:N,paddingRight:j}=h;if(s>0){const _e=parseFloat(window.getComputedStyle(c).paddingRight);h.paddingRight=`${_e+s}px`}return h.overflow="hidden",()=>{s>0&&(h.paddingRight=j),h.overflow=N}}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=i.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),zl=(()=>{class l{constructor(){this._nativeElement=(0,i.WQX)(i.aKT).nativeElement,this._zone=(0,i.WQX)(i.SKi)}ngOnInit(){this._zone.onStable.asObservable().pipe((0,vt.s)(1)).subscribe(()=>{re(this._zone,this._nativeElement,(s,c)=>{c&&Fi(s),s.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return re(this._zone,this._nativeElement,({classList:s})=>s.remove("show"),{animation:this.animation,runningTransition:"stop"})}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275cmp=i.VBU({type:l,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(c,h){2&c&&(i.HbH("modal-backdrop"+(h.backdropClass?" "+h.backdropClass:"")),i.AVh("show",!h.animation)("fade",h.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[i.aNF],decls:0,vars:0,template:function(c,h){},encapsulation:2})}return l})();class Au{update(m){}close(m){}dismiss(m){}}const Kl=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],Nu=["animation","backdropClass"];class Dc{_applyWindowOptions(m,s){Kl.forEach(c=>{yi(s[c])&&(m[c]=s[c])})}_applyBackdropOptions(m,s){Nu.forEach(c=>{yi(s[c])&&(m[c]=s[c])})}update(m){this._applyWindowOptions(this._windowCmptRef.instance,m),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,m)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe((0,H.Q)(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe((0,H.Q)(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(m,s,c,h){this._windowCmptRef=m,this._contentRef=s,this._backdropCmptRef=c,this._beforeDismiss=h,this._closed=new me.B,this._dismissed=new me.B,this._hidden=new me.B,m.instance.dismissEvent.subscribe(N=>{this.dismiss(N)}),this.result=new Promise((N,j)=>{this._resolve=N,this._reject=j}),this.result.then(null,()=>{})}close(m){this._windowCmptRef&&(this._closed.next(m),this._resolve(m),this._removeModalElements())}_dismiss(m){this._dismissed.next(m),this._reject(m),this._removeModalElements()}dismiss(m){if(this._windowCmptRef)if(this._beforeDismiss){const s=this._beforeDismiss();!function Bs(l){return l&&l.then}(s)?!1!==s&&this._dismiss(m):s.then(c=>{!1!==c&&this._dismiss(m)},()=>{})}else this._dismiss(m)}_removeModalElements(){const m=this._windowCmptRef.instance.hide(),s=this._backdropCmptRef?this._backdropCmptRef.instance.hide():(0,ae.of)(void 0);m.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}}),at(m,s).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var $d=function(l){return l[l.BACKDROP_CLICK=0]="BACKDROP_CLICK",l[l.ESC=1]="ESC",l}($d||{});let Wd=(()=>{class l{constructor(){this._document=(0,i.WQX)(lt.qQ),this._elRef=(0,i.WQX)(i.aKT),this._zone=(0,i.WQX)(i.SKi),this._closed$=new me.B,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new i.bkB,this.shown=new me.B,this.hidden=new me.B}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":fi(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,vt.s)(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:s}=this._elRef,c={animation:this.animation,runningTransition:"stop"},j=at(re(this._zone,s,()=>s.classList.remove("show"),c),re(this._zone,this._dialogEl.nativeElement,()=>{},c));return j.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),j}_show(){const s={animation:this.animation,runningTransition:"continue"};at(re(this._zone,this._elRef.nativeElement,(N,j)=>{j&&Fi(N),N.classList.add("show")},s),re(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,Ce.R)(s,"keydown").pipe((0,H.Q)(this._closed$),(0,yt.p)(h=>h.which===E.Escape)).subscribe(h=>{this.keyboard?requestAnimationFrame(()=>{h.defaultPrevented||this._zone.run(()=>this.dismiss($d.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let c=!1;(0,Ce.R)(this._dialogEl.nativeElement,"mousedown").pipe((0,H.Q)(this._closed$),(0,Mt.M)(()=>c=!1),(0,Le.n)(()=>(0,Ce.R)(s,"mouseup").pipe((0,H.Q)(this._closed$),(0,vt.s)(1))),(0,yt.p)(({target:h})=>s===h)).subscribe(()=>{c=!0}),(0,Ce.R)(s,"click").pipe((0,H.Q)(this._closed$)).subscribe(({target:h})=>{s===h&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!c&&this._zone.run(()=>this.dismiss($d.BACKDROP_CLICK))),c=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:s}=this._elRef;if(!s.contains(document.activeElement)){const c=s.querySelector("[ngbAutofocus]"),h=as(s)[0];(c||h||s).focus()}}_restoreFocus(){const s=this._document.body,c=this._elWithFocus;let h;h=c&&c.focus&&s.contains(c)?c:s,this._zone.runOutsideAngular(()=>{setTimeout(()=>h.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&re(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)};static#t=this.\u0275cmp=i.VBU({type:l,selectors:[["ngb-modal-window"]],viewQuery:function(c,h){if(1&c&&i.GBs(po,7),2&c){let N;i.mGM(N=i.lsd())&&(h._dialogEl=N.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(c,h){2&c&&(i.BMQ("aria-modal",!0)("aria-labelledby",h.ariaLabelledBy)("aria-describedby",h.ariaDescribedBy),i.HbH("modal d-block"+(h.windowClass?" "+h.windowClass:"")),i.AVh("fade",h.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:[i.aNF],ngContentSelectors:Eo,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(c,h){1&c&&(i.NAR(),i.j41(0,"div",1,0)(2,"div",2),i.SdG(3),i.k0s()()),2&c&&i.HbH("modal-dialog"+(h.size?" modal-"+h.size:"")+(h.centered?" modal-dialog-centered":"")+h.fullscreenClass+(h.scrollable?" modal-dialog-scrollable":"")+(h.modalDialogClass?" "+h.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2})}return l})(),Gd=(()=>{class l{constructor(){this._applicationRef=(0,i.WQX)(i.o8S),this._injector=(0,i.WQX)(i.zZn),this._environmentInjector=(0,i.WQX)(i.uvJ),this._document=(0,i.WQX)(lt.qQ),this._scrollBar=(0,i.WQX)(Su),this._activeWindowCmptHasChanged=new me.B,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new i.bkB;const s=(0,i.WQX)(i.SKi);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const c=this._windowCmpts[this._windowCmpts.length-1];Es(s,c.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(c.location.nativeElement)}})}_restoreScrollBar(){const s=this._scrollBarRestoreFn;s&&(this._scrollBarRestoreFn=null,s())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(s,c,h){const N=h.container instanceof HTMLElement?h.container:yi(h.container)?this._document.querySelector(h.container):this._document.body;if(!N)throw new Error(`The specified modal container "${h.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const j=new Au,_e=(s=h.injector||s).get(i.uvJ,null)||this._environmentInjector,Ie=this._getContentRef(s,_e,c,j,h);let Ke=!1!==h.backdrop?this._attachBackdrop(N):void 0,tt=this._attachWindowComponent(N,Ie.nodes),Ot=new Dc(tt,Ie,Ke,h.beforeDismiss);return this._registerModalRef(Ot),this._registerWindowCmpt(tt),Ot.hidden.pipe((0,vt.s)(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),j.close=At=>{Ot.close(At)},j.dismiss=At=>{Ot.dismiss(At)},j.update=At=>{Ot.update(At)},Ot.update(h),1===this._modalRefs.length&&this._document.body.classList.add("modal-open"),Ke&&Ke.instance&&Ke.changeDetectorRef.detectChanges(),tt.changeDetectorRef.detectChanges(),Ot}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,i.a0P)(zl,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(c.hostView),s.appendChild(c.location.nativeElement),c}_attachWindowComponent(s,c){let h=(0,i.a0P)(Wd,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:c});return this._applicationRef.attachView(h.hostView),s.appendChild(h.location.nativeElement),h}_getContentRef(s,c,h,N,j){return h?h instanceof i.C4Q?this._createFromTemplateRef(h,N):fi(h)?this._createFromString(h):this._createFromComponent(s,c,h,N,j):new Dl([])}_createFromTemplateRef(s,c){const N=s.createEmbeddedView({$implicit:c,close(j){c.close(j)},dismiss(j){c.dismiss(j)}});return this._applicationRef.attachView(N),new Dl([N.rootNodes],N)}_createFromString(s){const c=this._document.createTextNode(`${s}`);return new Dl([[c]])}_createFromComponent(s,c,h,N,j){const _e=i.zZn.create({providers:[{provide:Au,useValue:N}],parent:s}),Ie=(0,i.a0P)(h,{environmentInjector:c,elementInjector:_e}),Ke=Ie.location.nativeElement;return j.scrollable&&Ke.classList.add("component-host-scrollable"),this._applicationRef.attachView(Ie.hostView),new Dl([[Ke]],Ie.hostView,Ie)}_setAriaHidden(s){const c=s.parentElement;c&&s!==this._document.body&&(Array.from(c.children).forEach(h=>{h!==s&&"SCRIPT"!==h.nodeName&&(this._ariaHiddenValues.set(h,h.getAttribute("aria-hidden")),h.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 h=this._modalRefs.indexOf(s);h>-1&&(this._modalRefs.splice(h,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)};static#t=this.\u0275prov=i.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),zd=(()=>{class l{constructor(){this._injector=(0,i.WQX)(i.zZn),this._modalStack=(0,i.WQX)(Gd),this._config=(0,i.WQX)(Fh)}open(s,c={}){const h={...this._config,animation:this._config.animation,...c};return this._modalStack.open(this._injector,s,h)}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)};static#t=this.\u0275prov=i.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();const ef={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};let Fu=(()=>{class l{constructor(){this._ngbConfig=(0,i.WQX)(is),this.autohide=!0,this.delay=5e3,this.ariaLive="polite"}get animation(){return this._animation??this._ngbConfig.animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=i.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})();const Ws=(l,m)=>{const{classList:s}=l;if(m)return s.add("fade"),Fi(l),s.add("show","showing"),()=>{s.remove("showing")};s.add("show")},Qh=({classList:l})=>(l.add("showing"),()=>{l.remove("show","showing")});let Lu=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275dir=i.FsC({type:l,selectors:[["","ngbToastHeader",""]],standalone:!0})}return l})(),Zl=(()=>{class l{constructor(s){this.ariaLive=s,this._config=(0,i.WQX)(Fu),this._zone=(0,i.WQX)(i.SKi),this._element=(0,i.WQX)(i.aKT),this.animation=this._config.animation,this.delay=this._config.delay,this.autohide=this._config.autohide,this.contentHeaderTpl=null,this.shown=new i.bkB,this.hidden=new i.bkB,this.ariaLive??=this._config.ariaLive}ngAfterContentInit(){this._zone.onStable.asObservable().pipe((0,vt.s)(1)).subscribe(()=>{this._init(),this.show()})}ngOnChanges(s){"autohide"in s&&(this._clearTimeout(),this._init())}hide(){this._clearTimeout();const s=re(this._zone,this._element.nativeElement,Qh,{animation:this.animation,runningTransition:"stop"});return s.subscribe(()=>{this.hidden.emit()}),s}show(){const s=re(this._zone,this._element.nativeElement,Ws,{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)(i.kS0("aria-live"))};static#t=this.\u0275cmp=i.VBU({type:l,selectors:[["ngb-toast"]],contentQueries:function(c,h,N){if(1&c&&i.wni(N,Lu,7,i.C4Q),2&c){let j;i.mGM(j=i.lsd())&&(h.contentHeaderTpl=j.first)}},hostAttrs:["role","alert","aria-atomic","true",1,"toast"],hostVars:3,hostBindings:function(c,h){2&c&&(i.BMQ("aria-live",h.ariaLive),i.AVh("fade",h.animation))},inputs:{animation:"animation",delay:"delay",autohide:"autohide",header:"header"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbToast"],standalone:!0,features:[i.OA$,i.aNF],ngContentSelectors:Eo,decls:5,vars:1,consts:()=>{let s;return s=$localize`:@@ngb.toast.close-aria:Close`,[["headerTpl",""],[1,"toast-header"],[1,"toast-body"],[1,"me-auto"],[3,"ngTemplateOutlet"],["type","button","aria-label",s,1,"btn-close",3,"click"]]},template:function(c,h){1&c&&(i.NAR(),i.DNE(0,ea,2,1,"ng-template",null,0,i.C5r)(2,ya,3,1,"div",1),i.j41(3,"div",2),i.SdG(4),i.k0s()),2&c&&(i.R7$(2),i.vxM(2,h.contentHeaderTpl||h.header?2:-1))},dependencies:[lt.T3],styles:["ngb-toast{display:block}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem}\n"],encapsulation:2})}return l})(),af=(()=>{class l{constructor(){this._ngbConfig=(0,i.WQX)(is),this.autoClose=!0,this.placement="auto",this.popperOptions=s=>s,this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0}get animation(){return this._animation??this._ngbConfig.animation}set animation(s){this._animation=s}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=i.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),lf=0,Sc=(()=>{class l{static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275cmp=i.VBU({type:l,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(c,h){2&c&&(i.Mr5("id",h.id),i.HbH("tooltip"+(h.tooltipClass?" "+h.tooltipClass:"")),i.AVh("fade",h.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[i.aNF],ngContentSelectors:Eo,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(c,h){1&c&&(i.NAR(),i.nrm(0,"div",0),i.j41(1,"div",1),i.SdG(2),i.k0s())},styles:["ngb-tooltip-window{pointer-events:none;position:absolute}ngb-tooltip-window .tooltip-inner{pointer-events:auto}ngb-tooltip-window.bs-tooltip-top,ngb-tooltip-window.bs-tooltip-bottom{padding-left:0;padding-right:0}ngb-tooltip-window.bs-tooltip-start,ngb-tooltip-window.bs-tooltip-end{padding-top:0;padding-bottom:0}\n"],encapsulation:2,changeDetection:0})}return l})(),Ac=(()=>{class l{constructor(){this._config=(0,i.WQX)(af),this.animation=this._config.animation,this.autoClose=this._config.autoClose,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.triggers=this._config.triggers,this.container=this._config.container,this.disableTooltip=this._config.disableTooltip,this.tooltipClass=this._config.tooltipClass,this.openDelay=this._config.openDelay,this.closeDelay=this._config.closeDelay,this.shown=new i.bkB,this.hidden=new i.bkB,this._nativeElement=(0,i.WQX)(i.aKT).nativeElement,this._ngZone=(0,i.WQX)(i.SKi),this._document=(0,i.WQX)(lt.qQ),this._changeDetector=(0,i.WQX)(i.gRc),this._ngbTooltipWindowId="ngb-tooltip-"+lf++,this._popupService=new Lh(Sc),this._windowRef=null,this._positioning=_l()}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$:h}=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._getPositionTargetElement().setAttribute("aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.body.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:N=>this.popperOptions(Ni([0,6])(N))}),Promise.resolve().then(()=>{this._positioning.update(),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update())})}),ss(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement],[this._nativeElement]),h.subscribe(()=>this.shown.emit())}}close(s=this.animation){null!=this._windowRef&&(this._getPositionTargetElement().removeAttribute("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 Tc(l,m,s,c,h,N=0,j=0){const _e=function xu(l){const m=(l||"").trim();if(0===m.length)return[];const s=m.split(/\s+/).map(h=>h.split(":")).map(h=>ef[h[0]]||h),c=s.filter(h=>h.includes("manual"));if(c.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===c.length&&s.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return c.length?[]:s}(m);if(0===_e.length)return()=>{};const Ie=new Set,Ke=[];let tt;function Ot(Ft,Gn){l.addEventListener(Ft,Gn),Ke.push(()=>l.removeEventListener(Ft,Gn))}function At(Ft,Gn){clearTimeout(tt),Gn>0?tt=setTimeout(Ft,Gn):Ft()}for(const[Ft,Gn]of _e)Gn?(Ot(Ft,()=>{Ie.add(Ft),At(()=>Ie.size>0&&c(),N)}),Ot(Gn,()=>{Ie.delete(Ft),At(()=>0===Ie.size&&h(),j)})):Ot(Ft,()=>s()?At(h,j):At(c,N));return()=>Ke.forEach(Ft=>Ft())}(this._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.setInput("tooltipClass",s.currentValue)}ngOnDestroy(){this.close(!1),this._unregisterListenersFn?.()}_getPositionTargetElement(){return(fi(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget)||this._nativeElement}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275dir=i.FsC({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:[i.OA$]})}return l})(),Jh=(()=>{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=go(this.result),h=Array.isArray(this.term)?this.term:[this.term],N=Ke=>this.accentSensitive?Ke:os(Ke),j=h.map(Ke=>function hl(l){return l.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(N(go(Ke)))).filter(Ke=>Ke),_e=this.accentSensitive?c:os(c),Ie=j.length?_e.split(new RegExp(`(${j.join("|")})`,"gmi")):[c];if(this.accentSensitive)this.parts=Ie;else{let Ke=0;this.parts=Ie.map(tt=>c.substring(Ke,Ke+=tt.length))}}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275cmp=i.VBU({type:l,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},standalone:!0,features:[i.OA$,i.aNF],decls:2,vars:0,consts:[[3,"class"]],template:function(c,h){1&c&&i.Z7z(0,Ka,2,1,null,null,i.fX1),2&c&&i.Dyx(h.parts)},styles:[".ngb-highlight{font-weight:700}\n"],encapsulation:2,changeDetection:0})}return l})();const Zh=new i.nKC("live announcer delay",{providedIn:"root",factory:()=>100});function cf(l,m=!1){let s=l.body.querySelector("#ngb-live");return null==s&&m&&(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 uf=(()=>{class l{constructor(){this._document=(0,i.WQX)(lt.qQ),this._delay=(0,i.WQX)(Zh)}ngOnDestroy(){const s=cf(this._document);s&&s.parentElement.removeChild(s)}say(s){const c=cf(this._document,!0),h=this._delay;if(null!=c){c.textContent="";const N=()=>c.textContent=s;null===h?N():setTimeout(N,h)}}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275prov=i.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),qh=(()=>{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=i.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})(),ep=(()=>{class l{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=go,this.selectEvent=new i.bkB,this.activeChangeEvent=new i.bkB}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=i.VBU({type:l,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(c,h){1&c&&i.bIt("mousedown",function(j){return j.preventDefault()}),2&c&&(i.Mr5("id",h.id),i.HbH("dropdown-menu show"+(h.popupClass?" "+h.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:[i.aNF],decls:4,vars:0,consts:[["rt",""],["type","button","role","option",1,"dropdown-item",3,"id","active"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"mouseenter","click","id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(c,h){1&c&&(i.DNE(0,rs,1,2,"ng-template",null,0,i.C5r),i.Z7z(2,Da,2,9,"button",1,i.fX1)),2&c&&(i.R7$(2),i.Dyx(h.results))},dependencies:[Jh,lt.T3],encapsulation:2})}return l})(),Io=0,Bu=(()=>{class l{constructor(){this._nativeElement=(0,i.WQX)(i.aKT).nativeElement,this._config=(0,i.WQX)(qh),this._live=(0,i.WQX)(uf),this._document=(0,i.WQX)(lt.qQ),this._ngZone=(0,i.WQX)(i.SKi),this._changeDetector=(0,i.WQX)(i.gRc),this._popupService=new Lh(ep),this._positioning=_l(),this._subscription=null,this._closed$=new me.B,this._inputValueBackup=null,this._inputValueForSelectOnExact=null,this._valueChanges$=(0,Ce.R)(this._nativeElement,"input").pipe((0,dt.T)(s=>s.target.value)),this._resubscribeTypeahead$=new et.t(null),this._windowRef=null,this.autocomplete="off",this.container=this._config.container,this.editable=this._config.editable,this.focusFirst=this._config.focusFirst,this.selectOnExact=this._config.selectOnExact,this.showHint=this._config.showHint,this.placement=this._config.placement,this.popperOptions=this._config.popperOptions,this.selectItem=new i.bkB,this.activeDescendant=null,this.popupId="ngb-typeahead-"+Io++,this._onTouched=()=>{},this._onChange=s=>{}}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._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 E.ArrowDown:s.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case E.ArrowUp:s.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case E.Enter:case E.Tab:{const c=this._windowRef.instance.getActive();yi(c)&&(s.preventDefault(),s.stopPropagation(),this._selectResult(c)),this._closePopup();break}}}_openPopup(){if(!this.isPopupOpen()){this._inputValueBackup=this._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._windowRef.location.nativeElement.style.zIndex="1055",this._document.body.appendChild(this._windowRef.location.nativeElement)),this._changeDetector.markForCheck(),this._ngZone.runOutsideAngular(()=>{this._windowRef&&(this._positioning.createPopper({hostElement:this._nativeElement,targetElement:this._windowRef.location.nativeElement,placement:this.placement,appendToBody:"body"===this.container,updatePopperOptions:c=>this.popperOptions(Ni([0,2])(c))}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>this._positioning.update()))}),ss(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._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._nativeElement.setSelectionRange.apply(this._nativeElement,[this._inputValueBackup.length,c.length])):this._writeInputValue(c)}}_formatItemForInput(s){return null!=s&&this.inputFormatter?this.inputFormatter(s):go(s)}_writeInputValue(s){this._nativeElement.value=go(s)}_subscribeToUserInput(){const s=this._valueChanges$.pipe((0,Mt.M)(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,ae.of)([]));this._subscription=this._resubscribeTypeahead$.pipe((0,Le.n)(()=>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.setInput("focusFirst",this.focusFirst),this._windowRef.setInput("results",c),this._windowRef.setInput("term",this._nativeElement.value),this.resultFormatter&&this._windowRef.setInput("formatter",this.resultFormatter),this.resultTemplate&&this._windowRef.setInput("resultTemplate",this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint()):this._closePopup();const h=c?c.length:0;this._live.say(0===h?"No results available":`${h} result${1===h?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}static#e=this.\u0275fac=function(c){return new(c||l)};static#t=this.\u0275dir=i.FsC({type:l,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox"],hostVars:7,hostBindings:function(c,h){1&c&&i.bIt("blur",function(){return h.handleBlur()})("keydown",function(j){return h.handleKeyDown(j)}),2&c&&(i.Mr5("autocomplete",h.autocomplete),i.BMQ("aria-autocomplete",h.showHint?"both":"list")("aria-activedescendant",h.activeDescendant)("aria-owns",h.isPopupOpen()?h.popupId:null)("aria-expanded",h.isPopupOpen()),i.AVh("open",h.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:[i.Jv_([{provide:Nt.kq,useExisting:(0,i.Rfq)(()=>l),multi:!0}]),i.OA$]})}return l})()},3955:(qe,ie,D)=>{D.d(ie,{D9:()=>ht,Wr:()=>me,c$:()=>Mt,h:()=>Pt});var i=D(4438),P=D(7673),H=D(4402),G=D(7468),V=D(8793),J=D(9030),W=D(6697),k=D(4668),Z=D(6354),oe=D(274),ae=D(5558);class me{}let Ce=(()=>{class $e extends me{getTranslation(se){return(0,P.of)({})}static \u0275fac=(()=>{let se;return function(pe){return(se||(se=i.xGo($e)))(pe||$e)}})();static \u0275prov=i.jDH({token:$e,factory:$e.\u0275fac})}return $e})();class Se{}let De=(()=>{class $e{handle(se){return se.key}static \u0275fac=function(te){return new(te||$e)};static \u0275prov=i.jDH({token:$e,factory:$e.\u0275fac})}return $e})();function Ue($e,wt){if($e===wt)return!0;if(null===$e||null===wt)return!1;if($e!=$e&&wt!=wt)return!0;let pe,ve,we,se=typeof $e;if(se==typeof wt&&"object"==se){if(!Array.isArray($e)){if(Array.isArray(wt))return!1;for(ve in we=Object.create(null),$e){if(!Ue($e[ve],wt[ve]))return!1;we[ve]=!0}for(ve in wt)if(!(ve in we)&&typeof wt[ve]<"u")return!1;return!0}if(!Array.isArray(wt))return!1;if((pe=$e.length)==wt.length){for(ve=0;ve{rt(wt[te])?te in $e?se[te]=_t($e[te],wt[te]):Object.assign(se,{[te]:wt[te]}):Object.assign(se,{[te]:wt[te]})}),se}class ut{}let Qe=(()=>{class $e extends ut{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(se,te){let pe;return pe="string"==typeof se?this.interpolateString(se,te):"function"==typeof se?this.interpolateFunction(se,te):se,pe}getValue(se,te){let pe="string"==typeof te?te.split("."):[te];te="";do{te+=pe.shift(),!Re(se)||!Re(se[te])||"object"!=typeof se[te]&&pe.length?pe.length?te+=".":se=void 0:(se=se[te],te="")}while(pe.length);return se}interpolateFunction(se,te){return se(te)}interpolateString(se,te){return te?se.replace(this.templateMatcher,(pe,ve)=>{let we=this.getValue(te,ve);return Re(we)?we:pe}):se}static \u0275fac=(()=>{let se;return function(pe){return(se||(se=i.xGo($e)))(pe||$e)}})();static \u0275prov=i.jDH({token:$e,factory:$e.\u0275fac})}return $e})();class He{}let at=(()=>{class $e extends He{compile(se,te){return se}compileTranslations(se,te){return se}static \u0275fac=(()=>{let se;return function(pe){return(se||(se=i.xGo($e)))(pe||$e)}})();static \u0275prov=i.jDH({token:$e,factory:$e.\u0275fac})}return $e})();class et{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new i.bkB;onLangChange=new i.bkB;onDefaultLangChange=new i.bkB}const ft=new i.nKC("USE_STORE"),mt=new i.nKC("USE_DEFAULT_LANG"),yt=new i.nKC("DEFAULT_LANGUAGE"),vt=new i.nKC("USE_EXTEND");let Mt=(()=>{class $e{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new i.bkB;_onLangChange=new i.bkB;_onDefaultLangChange=new i.bkB;_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(se){this.isolate?this._defaultLang=se:this.store.defaultLang=se}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(se){this.isolate?this._currentLang=se:this.store.currentLang=se}get langs(){return this.isolate?this._langs:this.store.langs}set langs(se){this.isolate?this._langs=se:this.store.langs=se}get translations(){return this.isolate?this._translations:this.store.translations}set translations(se){this.isolate?this._translations=se:this.store.translations=se}constructor(se,te,pe,ve,we,Le=!0,xe=!1,bt=!1,Yt){this.store=se,this.currentLoader=te,this.compiler=pe,this.parser=ve,this.missingTranslationHandler=we,this.useDefaultLang=Le,this.isolate=xe,this.extend=bt,Yt&&this.setDefaultLang(Yt)}setDefaultLang(se){if(se===this.defaultLang)return;let te=this.retrieveTranslations(se);typeof te<"u"?(null==this.defaultLang&&(this.defaultLang=se),te.pipe((0,W.s)(1)).subscribe(pe=>{this.changeDefaultLang(se)})):this.changeDefaultLang(se)}getDefaultLang(){return this.defaultLang}use(se){if(se===this.currentLang)return(0,P.of)(this.translations[se]);let te=this.retrieveTranslations(se);return typeof te<"u"?(this.currentLang||(this.currentLang=se),te.pipe((0,W.s)(1)).subscribe(pe=>{this.changeLang(se)}),te):(this.changeLang(se),(0,P.of)(this.translations[se]))}retrieveTranslations(se){let te;return(typeof this.translations[se]>"u"||this.extend)&&(this._translationRequests[se]=this._translationRequests[se]||this.getTranslation(se),te=this._translationRequests[se]),te}getTranslation(se){this.pending=!0;const te=this.currentLoader.getTranslation(se).pipe((0,k.t)(1),(0,W.s)(1));return this.loadingTranslations=te.pipe((0,Z.T)(pe=>this.compiler.compileTranslations(pe,se)),(0,k.t)(1),(0,W.s)(1)),this.loadingTranslations.subscribe({next:pe=>{this.translations[se]=this.extend&&this.translations[se]?{...pe,...this.translations[se]}:pe,this.updateLangs(),this.pending=!1},error:pe=>{this.pending=!1}}),te}setTranslation(se,te,pe=!1){te=this.compiler.compileTranslations(te,se),this.translations[se]=(pe||this.extend)&&this.translations[se]?_t(this.translations[se],te):te,this.updateLangs(),this.onTranslationChange.emit({lang:se,translations:this.translations[se]})}getLangs(){return this.langs}addLangs(se){se.forEach(te=>{-1===this.langs.indexOf(te)&&this.langs.push(te)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(se,te,pe){let ve;if(te instanceof Array){let we={},Le=!1;for(let xe of te)we[xe]=this.getParsedResult(se,xe,pe),(0,H.A)(we[xe])&&(Le=!0);if(Le){const xe=te.map(bt=>(0,H.A)(we[bt])?we[bt]:(0,P.of)(we[bt]));return(0,G.p)(xe).pipe((0,Z.T)(bt=>{let Yt={};return bt.forEach((lt,Nt)=>{Yt[te[Nt]]=lt}),Yt}))}return we}if(se&&(ve=this.parser.interpolate(this.parser.getValue(se,te),pe)),typeof ve>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(ve=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],te),pe)),typeof ve>"u"){let we={key:te,translateService:this};typeof pe<"u"&&(we.interpolateParams=pe),ve=this.missingTranslationHandler.handle(we)}return typeof ve<"u"?ve:te}get(se,te){if(!Re(se)||!se.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,oe.H)(pe=>(pe=this.getParsedResult(pe,se,te),(0,H.A)(pe)?pe:(0,P.of)(pe))));{let pe=this.getParsedResult(this.translations[this.currentLang],se,te);return(0,H.A)(pe)?pe:(0,P.of)(pe)}}getStreamOnTranslationChange(se,te){if(!Re(se)||!se.length)throw new Error('Parameter "key" required');return(0,V.x)((0,J.v)(()=>this.get(se,te)),this.onTranslationChange.pipe((0,ae.n)(pe=>{const ve=this.getParsedResult(pe.translations,se,te);return"function"==typeof ve.subscribe?ve:(0,P.of)(ve)})))}stream(se,te){if(!Re(se)||!se.length)throw new Error('Parameter "key" required');return(0,V.x)((0,J.v)(()=>this.get(se,te)),this.onLangChange.pipe((0,ae.n)(pe=>{const ve=this.getParsedResult(pe.translations,se,te);return(0,H.A)(ve)?ve:(0,P.of)(ve)})))}instant(se,te){if(!Re(se)||!se.length)throw new Error('Parameter "key" required');let pe=this.getParsedResult(this.translations[this.currentLang],se,te);if((0,H.A)(pe)){if(se instanceof Array){let ve={};return se.forEach((we,Le)=>{ve[se[Le]]=se[Le]}),ve}return se}return pe}set(se,te,pe=this.currentLang){this.translations[pe][se]=this.compiler.compile(te,pe),this.updateLangs(),this.onTranslationChange.emit({lang:pe,translations:this.translations[pe]})}changeLang(se){this.currentLang=se,this.onLangChange.emit({lang:se,translations:this.translations[se]}),null==this.defaultLang&&this.changeDefaultLang(se)}changeDefaultLang(se){this.defaultLang=se,this.onDefaultLangChange.emit({lang:se,translations:this.translations[se]})}reloadLang(se){return this.resetLang(se),this.getTranslation(se)}resetLang(se){this._translationRequests[se]=void 0,this.translations[se]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let se=window.navigator.languages?window.navigator.languages[0]:null;return se=se||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof se>"u"?void 0:(-1!==se.indexOf("-")&&(se=se.split("-")[0]),-1!==se.indexOf("_")&&(se=se.split("_")[0]),se)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let se=window.navigator.languages?window.navigator.languages[0]:null;return se=se||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,se}static \u0275fac=function(te){return new(te||$e)(i.KVO(et),i.KVO(me),i.KVO(He),i.KVO(ut),i.KVO(Se),i.KVO(mt),i.KVO(ft),i.KVO(vt),i.KVO(yt))};static \u0275prov=i.jDH({token:$e,factory:$e.\u0275fac})}return $e})(),ht=(()=>{class $e{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(se,te){this.translate=se,this._ref=te}updateValue(se,te,pe){let ve=we=>{this.value=void 0!==we?we:se,this.lastKey=se,this._ref.markForCheck()};if(pe){let we=this.translate.getParsedResult(pe,se,te);(0,H.A)(we.subscribe)?we.subscribe(ve):ve(we)}this.translate.get(se,te).subscribe(ve)}transform(se,...te){if(!se||!se.length)return se;if(Ue(se,this.lastKey)&&Ue(te,this.lastParams))return this.value;let pe;if(Re(te[0])&&te.length)if("string"==typeof te[0]&&te[0].length){let ve=te[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{pe=JSON.parse(ve)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${te[0]}`)}}else"object"==typeof te[0]&&!Array.isArray(te[0])&&(pe=te[0]);return this.lastKey=se,this.lastParams=te,this.updateValue(se,pe),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(ve=>{this.lastKey&&ve.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(se,pe,ve.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(ve=>{this.lastKey&&(this.lastKey=null,this.updateValue(se,pe,ve.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(se,pe))})),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(te){return new(te||$e)(i.rXU(Mt,16),i.rXU(i.gRc,16))};static \u0275pipe=i.EJ8({name:"translate",type:$e,pure:!1});static \u0275prov=i.jDH({token:$e,factory:$e.\u0275fac})}return $e})(),Pt=(()=>{class $e{static forRoot(se={}){return{ngModule:$e,providers:[se.loader||{provide:me,useClass:Ce},se.compiler||{provide:He,useClass:at},se.parser||{provide:ut,useClass:Qe},se.missingTranslationHandler||{provide:Se,useClass:De},et,{provide:ft,useValue:se.isolate},{provide:mt,useValue:se.useDefaultLang},{provide:vt,useValue:se.extend},{provide:yt,useValue:se.defaultLanguage},Mt]}}static forChild(se={}){return{ngModule:$e,providers:[se.loader||{provide:me,useClass:Ce},se.compiler||{provide:He,useClass:at},se.parser||{provide:ut,useClass:Qe},se.missingTranslationHandler||{provide:Se,useClass:De},{provide:ft,useValue:se.isolate},{provide:mt,useValue:se.useDefaultLang},{provide:vt,useValue:se.extend},{provide:yt,useValue:se.defaultLanguage},Mt]}}static \u0275fac=function(te){return new(te||$e)};static \u0275mod=i.$C({type:$e});static \u0275inj=i.G2t({})}return $e})()},7015:(qe,ie,D)=>{D.d(ie,{A:()=>Re});var H=D(1319);const V=function G(rt,_t){for(var ut=rt.length;ut--;)if((0,H.A)(rt[ut][0],_t))return ut;return-1};var W=Array.prototype.splice;function Ue(rt){var _t=-1,ut=null==rt?0:rt.length;for(this.clear();++_t-1},Ue.prototype.set=function Se(rt,_t){var ut=this.__data__,Qe=V(ut,rt);return Qe<0?(++this.size,ut.push([rt,_t])):ut[Qe][1]=_t,this};const Re=Ue},6568:(qe,ie,D)=>{D.d(ie,{A:()=>G});var i=D(4713),P=D(1860);const G=(0,i.A)(P.A,"Map")},2291:(qe,ie,D)=>{D.d(ie,{A:()=>we});const H=(0,D(4713).A)(Object,"create");var oe=Object.prototype.hasOwnProperty;var Se=Object.prototype.hasOwnProperty;function ut(Le){var xe=-1,bt=null==Le?0:Le.length;for(this.clear();++xe{D.d(ie,{A:()=>G});var i=D(4713),P=D(1860);const G=(0,i.A)(P.A,"Set")},8587:(qe,ie,D)=>{D.d(ie,{A:()=>k});var i=D(2291);function W(Z){var oe=-1,ae=null==Z?0:Z.length;for(this.__data__=new i.A;++oe{D.d(ie,{A:()=>Ue});var i=D(7015);var oe=D(6568),ae=D(2291);function De(Re){var rt=this.__data__=new i.A(Re);this.size=rt.size}De.prototype.clear=function P(){this.__data__=new i.A,this.size=0},De.prototype.delete=function G(Re){var rt=this.__data__,_t=rt.delete(Re);return this.size=rt.size,_t},De.prototype.get=function J(Re){return this.__data__.get(Re)},De.prototype.has=function k(Re){return this.__data__.has(Re)},De.prototype.set=function Ce(Re,rt){var _t=this.__data__;if(_t instanceof i.A){var ut=_t.__data__;if(!oe.A||ut.length<199)return ut.push([Re,rt]),this.size=++_t.size,this;_t=this.__data__=new ae.A(ut)}return _t.set(Re,rt),this.size=_t.size,this};const Ue=De},6944:(qe,ie,D)=>{D.d(ie,{A:()=>H});const H=D(1860).A.Symbol},6509:(qe,ie,D)=>{D.d(ie,{A:()=>H});const H=D(1860).A.Uint8Array},6726:(qe,ie,D)=>{D.d(ie,{A:()=>ae});var H=D(6513),G=D(3744),V=D(9377),J=D(8606),W=D(8885),Z=Object.prototype.hasOwnProperty;const ae=function oe(me,Ce){var Se=(0,G.A)(me),De=!Se&&(0,H.A)(me),Ue=!Se&&!De&&(0,V.A)(me),Re=!Se&&!De&&!Ue&&(0,W.A)(me),rt=Se||De||Ue||Re,_t=rt?function i(me,Ce){for(var Se=-1,De=Array(me);++Se{D.d(ie,{A:()=>P});const P=function i(H,G){for(var V=-1,J=G.length,W=H.length;++V{D.d(ie,{A:()=>G});var i=D(563),P=D(3744);const G=function H(V,J,W){var k=J(V);return(0,P.A)(V)?k:(0,i.A)(k,W(V))}},5281:(qe,ie,D)=>{D.d(ie,{A:()=>Ue});var i=D(6944),P=Object.prototype,H=P.hasOwnProperty,G=P.toString,V=i.A?i.A.toStringTag:void 0;var Z=Object.prototype.toString;var Se=i.A?i.A.toStringTag:void 0;const Ue=function De(Re){return null==Re?void 0===Re?"[object Undefined]":"[object Null]":Se&&Se in Object(Re)?function J(Re){var rt=H.call(Re,V),_t=Re[V];try{Re[V]=void 0;var ut=!0}catch{}var Qe=G.call(Re);return ut&&(rt?Re[V]=_t:delete Re[V]),Qe}(Re):function oe(Re){return Z.call(Re)}(Re)}},6155:(qe,ie,D)=>{D.d(ie,{A:()=>Un});var i=D(5401),P=D(8587);const G=function H(Fe,Tt){for(var on=-1,Dn=null==Fe?0:Fe.length;++onjt))return!1;var Zn=pn.get(Fe),jn=pn.get(Tt);if(Zn&&jn)return Zn==Tt&&jn==Fe;var Ht=-1,vn=!0,Qn=2&on?new P.A:void 0;for(pn.set(Fe,Tt),pn.set(Tt,Fe);++Ht{D.d(ie,{A:()=>P});const P=function i(H){return function(G){return H(G)}}},5934:(qe,ie,D)=>{D.d(ie,{A:()=>P});const P=function i(H,G){return H.has(G)}},7133:(qe,ie,D)=>{D.d(ie,{A:()=>P});const P="object"==typeof global&&global&&global.Object===Object&&global},7895:(qe,ie,D)=>{D.d(ie,{A:()=>V});var i=D(6658),P=D(5844),H=D(2662);const V=function G(J){return(0,i.A)(J,H.A,P.A)}},4713:(qe,ie,D)=>{D.d(ie,{A:()=>He});var at,i=D(129),H=D(1860).A["__core-js_shared__"],V=(at=/[^.]+$/.exec(H&&H.keys&&H.keys.IE_PROTO||""))?"Symbol(src)_1."+at:"";var k=D(554),Z=D(8736),ae=/^\[object .+?Constructor\]$/,Ue=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const rt=function Re(at){return!(!(0,k.A)(at)||function J(at){return!!V&&V in at}(at))&&((0,i.A)(at)?Ue:ae).test((0,Z.A)(at))},He=function Qe(at,et){var ft=function _t(at,et){return at?.[et]}(at,et);return rt(ft)?ft:void 0}},5844:(qe,ie,D)=>{D.d(ie,{A:()=>k});var H=D(6032),V=Object.prototype.propertyIsEnumerable,J=Object.getOwnPropertySymbols;const k=J?function(Z){return null==Z?[]:(Z=Object(Z),function i(Z,oe){for(var ae=-1,me=null==Z?0:Z.length,Ce=0,Se=[];++ae{D.d(ie,{A:()=>ft});var i=D(4713),P=D(1860);const G=(0,i.A)(P.A,"DataView");var V=D(6568);const W=(0,i.A)(P.A,"Promise");var k=D(4226);const oe=(0,i.A)(P.A,"WeakMap");var ae=D(5281),me=D(8736),Ce="[object Map]",De="[object Promise]",Ue="[object Set]",Re="[object WeakMap]",rt="[object DataView]",_t=(0,me.A)(G),ut=(0,me.A)(V.A),Qe=(0,me.A)(W),He=(0,me.A)(k.A),at=(0,me.A)(oe),et=ae.A;(G&&et(new G(new ArrayBuffer(1)))!=rt||V.A&&et(new V.A)!=Ce||W&&et(W.resolve())!=De||k.A&&et(new k.A)!=Ue||oe&&et(new oe)!=Re)&&(et=function(mt){var yt=(0,ae.A)(mt),vt="[object Object]"==yt?mt.constructor:void 0,Mt=vt?(0,me.A)(vt):"";if(Mt)switch(Mt){case _t:return rt;case ut:return Ce;case Qe:return De;case He:return Ue;case at:return Re}return yt});const ft=et},8606:(qe,ie,D)=>{D.d(ie,{A:()=>G});var P=/^(?:0|[1-9]\d*)$/;const G=function H(V,J){var W=typeof V;return!!(J=J??9007199254740991)&&("number"==W||"symbol"!=W&&P.test(V))&&V>-1&&V%1==0&&V{D.d(ie,{A:()=>H});var i=Object.prototype;const H=function P(G){var V=G&&G.constructor;return G===("function"==typeof V&&V.prototype||i)}},3340:(qe,ie,D)=>{D.d(ie,{A:()=>W});var i=D(7133),P="object"==typeof exports&&exports&&!exports.nodeType&&exports,H=P&&"object"==typeof module&&module&&!module.nodeType&&module,V=H&&H.exports===P&&i.A.process;const W=function(){try{return H&&H.require&&H.require("util").types||V&&V.binding&&V.binding("util")}catch{}}()},8992:(qe,ie,D)=>{D.d(ie,{A:()=>P});const P=function i(H,G){return function(V){return H(G(V))}}},1860:(qe,ie,D)=>{D.d(ie,{A:()=>G});var i=D(7133),P="object"==typeof self&&self&&self.Object===Object&&self;const G=i.A||P||Function("return this")()},3998:(qe,ie,D)=>{D.d(ie,{A:()=>P});const P=function i(H){var G=-1,V=Array(H.size);return H.forEach(function(J){V[++G]=J}),V}},8736:(qe,ie,D)=>{D.d(ie,{A:()=>G});var P=Function.prototype.toString;const G=function H(V){if(null!=V){try{return P.call(V)}catch{}try{return V+""}catch{}}return""}},8116:(qe,ie,D)=>{D.d(ie,{A:()=>De});const V=function i(Ue){return function(Re){return Ue?.[Re]}}({\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 J=D(5402),W=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ce=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");const De=function Se(Ue){return(Ue=(0,J.A)(Ue))&&Ue.replace(W,V).replace(Ce,"")}},1319:(qe,ie,D)=>{D.d(ie,{A:()=>P});const P=function i(H,G){return H===G||H!=H&&G!=G}},6513:(qe,ie,D)=>{D.d(ie,{A:()=>oe});var i=D(5281),P=D(2661);const V=function G(ae){return(0,P.A)(ae)&&"[object Arguments]"==(0,i.A)(ae)};var J=Object.prototype,W=J.hasOwnProperty,k=J.propertyIsEnumerable;const oe=V(function(){return arguments}())?V:function(ae){return(0,P.A)(ae)&&W.call(ae,"callee")&&!k.call(ae,"callee")}},3744:(qe,ie,D)=>{D.d(ie,{A:()=>P});const P=Array.isArray},1287:(qe,ie,D)=>{D.d(ie,{A:()=>G});var i=D(129),P=D(5481);const G=function H(V){return null!=V&&(0,P.A)(V.length)&&!(0,i.A)(V)}},9377:(qe,ie,D)=>{D.d(ie,{A:()=>oe});var i=D(1860),G="object"==typeof exports&&exports&&!exports.nodeType&&exports,V=G&&"object"==typeof module&&module&&!module.nodeType&&module,W=V&&V.exports===G?i.A.Buffer:void 0;const oe=(W?W.isBuffer:void 0)||function P(){return!1}},977:(qe,ie,D)=>{D.d(ie,{A:()=>H});var i=D(6155);const H=function P(G,V){return(0,i.A)(G,V)}},129:(qe,ie,D)=>{D.d(ie,{A:()=>k});var i=D(5281),P=D(554);const k=function W(Z){if(!(0,P.A)(Z))return!1;var oe=(0,i.A)(Z);return"[object Function]"==oe||"[object GeneratorFunction]"==oe||"[object AsyncFunction]"==oe||"[object Proxy]"==oe}},5481:(qe,ie,D)=>{D.d(ie,{A:()=>H});const H=function P(G){return"number"==typeof G&&G>-1&&G%1==0&&G<=9007199254740991}},554:(qe,ie,D)=>{D.d(ie,{A:()=>P});const P=function i(H){var G=typeof H;return null!=H&&("object"==G||"function"==G)}},2661:(qe,ie,D)=>{D.d(ie,{A:()=>P});const P=function i(H){return null!=H&&"object"==typeof H}},4077:(qe,ie,D)=>{D.d(ie,{A:()=>V});var i=D(5281),P=D(2661);const V=function G(J){return"symbol"==typeof J||(0,P.A)(J)&&"[object Symbol]"==(0,i.A)(J)}},8885:(qe,ie,D)=>{D.d(ie,{A:()=>se});var i=D(5281),P=D(5481),H=D(2661),vt={};vt["[object Float32Array]"]=vt["[object Float64Array]"]=vt["[object Int8Array]"]=vt["[object Int16Array]"]=vt["[object Int32Array]"]=vt["[object Uint8Array]"]=vt["[object Uint8ClampedArray]"]=vt["[object Uint16Array]"]=vt["[object Uint32Array]"]=!0,vt["[object Arguments]"]=vt["[object Array]"]=vt["[object ArrayBuffer]"]=vt["[object Boolean]"]=vt["[object DataView]"]=vt["[object Date]"]=vt["[object Error]"]=vt["[object Function]"]=vt["[object Map]"]=vt["[object Number]"]=vt["[object Object]"]=vt["[object RegExp]"]=vt["[object Set]"]=vt["[object String]"]=vt["[object WeakMap]"]=!1;var ht=D(778),Pt=D(3340),$e=Pt.A&&Pt.A.isTypedArray;const se=$e?(0,ht.A)($e):function Mt(te){return(0,H.A)(te)&&(0,P.A)(te.length)&&!!vt[(0,i.A)(te)]}},2662:(qe,ie,D)=>{D.d(ie,{A:()=>me});var i=D(6726),P=D(5776);const V=(0,D(8992).A)(Object.keys,Object);var W=Object.prototype.hasOwnProperty;var oe=D(1287);const me=function ae(Ce){return(0,oe.A)(Ce)?(0,i.A)(Ce):function k(Ce){if(!(0,P.A)(Ce))return V(Ce);var Se=[];for(var De in Object(Ce))W.call(Ce,De)&&"constructor"!=De&&Se.push(De);return Se}(Ce)}},6032:(qe,ie,D)=>{D.d(ie,{A:()=>P});const P=function i(){return[]}},5402:(qe,ie,D)=>{D.d(ie,{A:()=>me});var i=D(6944);var G=D(3744),V=D(4077),W=i.A?i.A.prototype:void 0,k=W?W.toString:void 0;const oe=function Z(Ce){if("string"==typeof Ce)return Ce;if((0,G.A)(Ce))return function P(Ce,Se){for(var De=-1,Ue=null==Ce?0:Ce.length,Re=Array(Ue);++De{function i(H,G,V,J,W,k,Z){try{var oe=H[k](Z),ae=oe.value}catch(me){return void V(me)}oe.done?G(ae):Promise.resolve(ae).then(J,W)}function P(H){return function(){var G=this,V=arguments;return new Promise(function(J,W){var k=H.apply(G,V);function Z(ae){i(k,J,W,Z,oe,"next",ae)}function oe(ae){i(k,J,W,Z,oe,"throw",ae)}Z(void 0)})}}D.d(ie,{A:()=>P})},1635:(qe,ie,D)=>{function me(te,pe,ve,we){return new(ve||(ve=Promise))(function(xe,bt){function Yt(Nn){try{Nt(we.next(Nn))}catch(Cn){bt(Cn)}}function lt(Nn){try{Nt(we.throw(Nn))}catch(Cn){bt(Cn)}}function Nt(Nn){Nn.done?xe(Nn.value):function Le(xe){return xe instanceof ve?xe:new ve(function(bt){bt(xe)})}(Nn.value).then(Yt,lt)}Nt((we=we.apply(te,pe||[])).next())})}function Qe(te){return this instanceof Qe?(this.v=te,this):new Qe(te)}function He(te,pe,ve){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Le,we=ve.apply(te,pe||[]),xe=[];return Le={},Yt("next"),Yt("throw"),Yt("return",function bt(an){return function(_n){return Promise.resolve(_n).then(an,Cn)}}),Le[Symbol.asyncIterator]=function(){return this},Le;function Yt(an,_n){we[an]&&(Le[an]=function(On){return new Promise(function(Kt,Un){xe.push([an,On,Kt,Un])>1||lt(an,On)})},_n&&(Le[an]=_n(Le[an])))}function lt(an,_n){try{!function Nt(an){an.value instanceof Qe?Promise.resolve(an.value.v).then(Nn,Cn):sn(xe[0][2],an)}(we[an](_n))}catch(On){sn(xe[0][3],On)}}function Nn(an){lt("next",an)}function Cn(an){lt("throw",an)}function sn(an,_n){an(_n),xe.shift(),xe.length&<(xe[0][0],xe[0][1])}}function et(te){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ve,pe=te[Symbol.asyncIterator];return pe?pe.call(te):(te=function Ue(te){var pe="function"==typeof Symbol&&Symbol.iterator,ve=pe&&te[pe],we=0;if(ve)return ve.call(te);if(te&&"number"==typeof te.length)return{next:function(){return te&&we>=te.length&&(te=void 0),{value:te&&te[we++],done:!te}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")}(te),ve={},we("next"),we("throw"),we("return"),ve[Symbol.asyncIterator]=function(){return this},ve);function we(xe){ve[xe]=te[xe]&&function(bt){return new Promise(function(Yt,lt){!function Le(xe,bt,Yt,lt){Promise.resolve(lt).then(function(Nt){xe({value:Nt,done:Yt})},bt)}(Yt,lt,(bt=te[xe](bt)).done,bt.value)})}}}D.d(ie,{AQ:()=>He,N3:()=>Qe,sH:()=>me,xN:()=>et}),"function"==typeof SuppressedError&&SuppressedError}},qe=>{qe(qe.s=5609)}]); \ No newline at end of file +import{b as Ps}from"./chunk-HHGALFFJ.js";import{c as Ms}from"./chunk-DMYOU5OM.js";import{a as ws,b as As}from"./chunk-RWNJF4OZ.js";import{r as _s}from"./chunk-FTRAQKUW.js";import{a as _e}from"./chunk-3AROKYRB.js";import{$ as J,$a as ot,A as Ht,Aa as Zt,Ba as ke,Bb as ge,Cb as ye,Dd as Es,Fd as vs,Ga as be,Gd as Ts,Hd as $e,Ia as oe,Id as Se,Jd as bs,Ka as es,Mb as ns,Qb as lt,Sa as U,Sb as Ie,Ta as Y,Tb as rs,U as v,Ua as ts,Vc as ys,W,Wb as os,Wc as Z,Y as Gt,Ya as ss,Z as j,_ as H,_a as is,a as Re,c as Qt,da as xt,dc as as,ec as ls,fc as cs,gc as us,ha as Wt,hc as hs,ia as Jt,ic as ds,j as Vt,jb as ae,kb as at,lb as Oe,oa as Yt,qc as fs,rc as Le,sa as rt,sc as ms,tb as X,ua as q,uc as ps,va as re,vc as gs,wd as Ss,ya as Xt}from"./chunk-T7QWSMKM.js";function Ei(n){let e=n,t=Math.floor(Math.abs(n)),s=n.toString().replace(/^[^.]*\.?/,"").length;return t===1&&s===0?1:5}var Ds=["de-CH",[["AM","PM"],void 0,void 0],void 0,[["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."],void 0,void 0],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}",void 0,"{1} 'um' {0}",void 0],[".","\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:[void 0,"\u0440."],CUC:[void 0,"Cub$"],DEM:["DM"],EUR:[],FKP:[void 0,"Fl\xA3"],GHS:[void 0,"\u20B5"],GNF:[void 0,"F.G."],KMF:[void 0,"FC"],PHP:[void 0,"\u20B1"],RON:[void 0,"L"],RUR:[void 0,"\u0440."],RWF:[void 0,"F.Rw"],SYP:[],THB:["\u0E3F"],TWD:["NT$"],XXX:[],ZMW:[void 0,"K"]},"ltr",Ei];function vi(n){let e=n,t=Math.floor(Math.abs(n)),s=n.toString().replace(/^[^.]*\.?/,"").length,i=parseInt(n.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return t===0||t===1?1:i===0&&t!==0&&t%1e6===0&&s===0||!(i>=0&&i<=5)?4:5}var Ns=["fr-CH",[["AM","PM"],void 0,void 0],void 0,[["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"]],void 0,[["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"]],void 0,[["av. J.-C.","ap. J.-C."],void 0,["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}",void 0],[",","\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:[void 0,"\u0440."],BZD:["$BZ","$"],CAD:["$CA","$"],CLP:["$CL","$"],CNY:[void 0,"\xA5"],COP:["$CO","$"],CYP:["\xA3CY"],EGP:[void 0,"\xA3E"],FJD:["$FJ","$"],FKP:["\xA3FK","\xA3"],FRF:["F"],GBP:["\xA3GB","\xA3"],GIP:["\xA3GI","\xA3"],HKD:[void 0,"$"],IEP:["\xA3IE"],ILP:["\xA3IL"],ITL:["\u20A4IT"],JPY:[void 0,"\xA5"],KMF:[void 0,"FC"],LBP:["\xA3LB","\xA3L"],MTP:["\xA3MT"],MXN:["$MX","$"],NAD:["$NA","$"],NIO:[void 0,"$C"],NZD:["$NZ","$"],PHP:[void 0,"\u20B1"],RHD:["$RH"],RON:[void 0,"L"],RWF:[void 0,"FR"],SBD:["$SB","$"],SGD:["$SG","$"],SRD:["$SR","$"],TOP:[void 0,"$T"],TTD:["$TT","$"],TWD:[void 0,"NT$"],USD:["$US","$"],UYU:["$UY","$"],WST:["$WS"],XCD:[void 0,"$"],XPF:["FCFP"],ZMW:[void 0,"Kw"]},"ltr",vi];function Ti(n,e){if(n&1&&(U(0,"i",4),ae(1),Y()),n&2){let t=ot().$implicit;q(),at(t.icon)}}function bi(n,e){if(n&1){let t=ss();U(0,"ngb-toast",1),is("hidden",function(){let i=Wt(t).$implicit,r=ot();return Jt(r.toastService.remove(i))}),U(1,"div",2),be(2,Ti,2,1,"i",3),U(3,"span"),ae(4),Y()()()}if(n&2){let t=e.$implicit;es(t.classname),oe("header",t.header||"")("autohide",!0),q(2),oe("ngIf",t.icon),q(2),at(t.message)}}var Fs=(()=>{let e=class e{constructor(s){this.toastService=s}};e.\u0275fac=function(i){return new(i||e)(re(_e))},e.\u0275cmp=J({type:e,selectors:[["bkd-toast"]],standalone:!0,features:[X],decls:2,vars:3,consts:[[3,"header","class","autohide","hidden",4,"ngFor","ngForOf"],[3,"hidden","header","autohide"],[1,"d-flex","gap-2"],["class","material-icons",4,"ngIf"],[1,"material-icons"]],template:function(i,r){i&1&&(be(0,bi,5,6,"ngb-toast",0),ge(1,"async")),i&2&&oe("ngForOf",ye(1,1,r.toastService.toasts$))},dependencies:[Ie,_s,rs,os],styles:["[_nghost-%COMP%]{position:fixed;top:0;right:0;margin:.5em;z-index:1200}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{font-size:medium}"]});let n=e;return n})();var Rs=new Gt("Navigator API",{providedIn:"root",factory:()=>navigator});var ks=(()=>{let e=class e{constructor(s,i,r,o){this.toastService=i,this.settings=r,this.navigator=o,s.initialize(),this.checkSettings()}checkSettings(){Es(ys)(this.settings).pipe(Ht(s=>(console.error(String(s)),this.toastService.error("Please check the contents of the settings.js file (see Console output for more details).","Invalid Settings"),Vt))).subscribe()}};e.\u0275fac=function(i){return new(i||e)(re(As),re(_e),re(Z),re(Rs))},e.\u0275cmp=J({type:e,selectors:[["bkd-app"]],standalone:!0,features:[X],decls:2,vars:0,consts:[["aria-live","polite","aria-atomic","true"]],template:function(i,r){i&1&&ts(0,"bkd-toast",0)(1,"router-outlet")},dependencies:[Fs,fs],styles:["[_nghost-%COMP%]{width:100%}"],changeDetection:0});let n=e;return n})();var _=function(n){return n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger",n}(_||{}),Q="*";function Os(n,e=null){return{type:_.Sequence,steps:n,options:e}}function ct(n){return{type:_.Style,styles:n,offset:null}}var ee=class{constructor(e=0,t=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=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},we=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,s=0,i=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==r&&this._onFinish()}),o.onDestroy(()=>{++s==r&&this._onDestroy()}),o.onStart(()=>{++i==r&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(s=>{let i=s.totalTime?Math.min(1,t/s.totalTime):1;s.setPosition(i)})}getPosition(){let e=this.players.reduce((t,s)=>t===null||s.totalTime>t.totalTime?s:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},ze="!";function Is(n){return new v(3e3,!1)}function wi(){return new v(3100,!1)}function Ai(){return new v(3101,!1)}function Mi(n){return new v(3001,!1)}function Pi(n){return new v(3003,!1)}function Di(n){return new v(3004,!1)}function Ni(n,e){return new v(3005,!1)}function Ci(){return new v(3006,!1)}function Fi(){return new v(3007,!1)}function Ri(n,e){return new v(3008,!1)}function ki(n){return new v(3002,!1)}function Oi(n,e,t,s,i){return new v(3010,!1)}function Ii(){return new v(3011,!1)}function Li(){return new v(3012,!1)}function $i(){return new v(3200,!1)}function zi(){return new v(3202,!1)}function Bi(){return new v(3013,!1)}function Ki(n){return new v(3014,!1)}function ji(n){return new v(3015,!1)}function qi(n){return new v(3016,!1)}function Ui(n,e){return new v(3404,!1)}function Qi(n){return new v(3502,!1)}function Vi(n){return new v(3503,!1)}function Hi(){return new v(3300,!1)}function Gi(n){return new v(3504,!1)}function xi(n){return new v(3301,!1)}function Wi(n,e){return new v(3302,!1)}function Ji(n){return new v(3303,!1)}function Yi(n,e){return new v(3400,!1)}function Xi(n){return new v(3401,!1)}function Zi(n){return new v(3402,!1)}function en(n,e){return new v(3505,!1)}function te(n){switch(n.length){case 0:return new ee;case 1:return n[0];default:return new we(n)}}function Ws(n,e,t=new Map,s=new Map){let i=[],r=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),h=c==o,u=h&&a||new Map;l.forEach((S,y)=>{let f=y,g=S;if(y!=="offset")switch(f=n.normalizePropertyName(f,i),g){case ze:g=t.get(y);break;case Q:g=s.get(y);break;default:g=n.normalizeStyleValue(y,f,g,i);break}u.set(f,g)}),h||r.push(u),a=u,o=c}),i.length)throw Qi(i);return r}function Rt(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&ut(t,"start",n)));break;case"done":n.onDone(()=>s(t&&ut(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&ut(t,"destroy",n)));break}}function ut(n,e,t){let s=t.totalTime,i=!!t.disabled,r=kt(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,s??n.totalTime,i),o=n._data;return o!=null&&(r._data=o),r}function kt(n,e,t,s,i="",r=0,o){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:i,totalTime:r,disabled:!!o}}function O(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function Ls(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var tn=typeof document>"u"?null:document.documentElement;function Ot(n){let e=n.parentNode||n.host||null;return e===tn?null:e}function sn(n){return n.substring(1,6)=="ebkit"}var ce=null,$s=!1;function nn(n){ce||(ce=rn()||{},$s=ce.style?"WebkitAppearance"in ce.style:!1);let e=!0;return ce.style&&!sn(n)&&(e=n in ce.style,!e&&$s&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in ce.style)),e}function rn(){return typeof document<"u"?document.body:null}function Js(n,e){for(;e;){if(e===n)return!0;e=Ot(e)}return!1}function Ys(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var It=(()=>{let e=class e{validateStyleProperty(s){return nn(s)}containsElement(s,i){return Js(s,i)}getParentElement(s){return Ot(s)}query(s,i,r){return Ys(s,i,r)}computeStyle(s,i,r){return r||""}animate(s,i,r,o,a,l=[],c){return new ee(r,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=W({token:e,factory:e.\u0275fac});let n=e;return n})(),Bt=class Bt{};Bt.NOOP=new It;var de=Bt,fe=class{};var on=1e3,Xs="{{",an="}}",Zs="ng-enter",gt="ng-leave",Be="ng-trigger",Qe=".ng-trigger",zs="ng-animating",yt=".ng-animating";function G(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:_t(parseFloat(e[1]),e[2])}function _t(n,e){switch(e){case"s":return n*on;default:return n}}function Ve(n,e,t){return n.hasOwnProperty("duration")?n:ln(n,e,t)}function ln(n,e,t){let s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,r=0,o="";if(typeof n=="string"){let a=n.match(s);if(a===null)return e.push(Is(n)),{duration:0,delay:0,easing:""};i=_t(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=_t(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else i=n;if(!t){let a=!1,l=e.length;i<0&&(e.push(wi()),a=!0),r<0&&(e.push(Ai()),a=!0),a&&e.splice(l,0,Is(n))}return{duration:i,delay:r,easing:o}}function cn(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function V(n,e,t){e.forEach((s,i)=>{let r=Lt(i);t&&!t.has(i)&&t.set(i,n.style[r]),n.style[r]=s})}function he(n,e){e.forEach((t,s)=>{let i=Lt(s);n.style[i]=""})}function Ae(n){return Array.isArray(n)?n.length==1?n[0]:Os(n):n}function un(n,e,t){let s=e.params||{},i=ei(n);i.length&&i.forEach(r=>{s.hasOwnProperty(r)||t.push(Mi(r))})}var St=new RegExp(`${Xs}\\s*(.+?)\\s*${an}`,"g");function ei(n){let e=[];if(typeof n=="string"){let t;for(;t=St.exec(n);)e.push(t[1]);St.lastIndex=0}return e}function Pe(n,e,t){let s=`${n}`,i=s.replace(St,(r,o)=>{let a=e[o];return a==null&&(t.push(Pi(o)),a=""),a.toString()});return i==s?n:i}var hn=/-+([a-z0-9])/g;function Lt(n){return n.replace(hn,(...e)=>e[1].toUpperCase())}function dn(n,e){return n===0||e===0}function fn(n,e,t){if(t.size&&e.length){let s=e[0],i=[];if(t.forEach((r,o)=>{s.has(o)||i.push(o),s.set(o,r)}),i.length)for(let r=1;ro.set(a,$t(n,a)))}}return e}function k(n,e,t){switch(e.type){case _.Trigger:return n.visitTrigger(e,t);case _.State:return n.visitState(e,t);case _.Transition:return n.visitTransition(e,t);case _.Sequence:return n.visitSequence(e,t);case _.Group:return n.visitGroup(e,t);case _.Animate:return n.visitAnimate(e,t);case _.Keyframes:return n.visitKeyframes(e,t);case _.Style:return n.visitStyle(e,t);case _.Reference:return n.visitReference(e,t);case _.AnimateChild:return n.visitAnimateChild(e,t);case _.AnimateRef:return n.visitAnimateRef(e,t);case _.Query:return n.visitQuery(e,t);case _.Stagger:return n.visitStagger(e,t);default:throw Di(e.type)}}function $t(n,e){return window.getComputedStyle(n)[e]}var mn=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"]),He=class extends fe{normalizePropertyName(e,t){return Lt(e)}normalizeStyleValue(e,t,s,i){let r="",o=s.toString().trim();if(mn.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else{let a=s.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&i.push(Ni(e,s))}return o+r}};var Ge="*";function pn(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>gn(s,t,e)):t.push(n),t}function gn(n,e,t){if(n[0]==":"){let l=yn(n,t);if(typeof l=="function"){e.push(l);return}n=l}let s=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(ji(n)),e;let i=s[1],r=s[2],o=s[3];e.push(Bs(i,o));let a=i==Ge&&o==Ge;r[0]=="<"&&!a&&e.push(Bs(o,i))}function yn(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s) *"}}var Ke=new Set(["true","1"]),je=new Set(["false","0"]);function Bs(n,e){let t=Ke.has(n)||je.has(n),s=Ke.has(e)||je.has(e);return(i,r)=>{let o=n==Ge||n==i,a=e==Ge||e==r;return!o&&t&&typeof i=="boolean"&&(o=i?Ke.has(n):je.has(n)),!a&&s&&typeof r=="boolean"&&(a=r?Ke.has(e):je.has(e)),o&&a}}var ti=":self",_n=new RegExp(`s*${ti}s*,?`,"g");function si(n,e,t,s){return new Et(n).build(e,t,s)}var Ks="",Et=class{constructor(e){this._driver=e}build(e,t,s){let i=new vt(t);return this._resetContextStyleTimingState(i),k(this,Ae(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=Ks,e.collectedStyles=new Map,e.collectedStyles.set(Ks,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,i=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(Ci()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==_.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(h=>{l.name=h,r.push(this.visitState(l,t))}),l.name=c}else if(a.type==_.Transition){let l=this.visitTransition(a,t);s+=l.queryCount,i+=l.depCount,o.push(l)}else t.errors.push(Fi())}),{type:_.Trigger,name:e.name,states:r,transitions:o,queryCount:s,depCount:i,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,o=i||{};s.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{ei(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c)})})}),r.size&&t.errors.push(Ri(e.name,[...r.values()]))}return{type:_.State,name:e.name,style:s,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=k(this,Ae(e.animation),t),i=pn(e.expr,t.errors);return{type:_.Transition,matchers:i,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:ue(e.options)}}visitSequence(e,t){return{type:_.Sequence,steps:e.steps.map(s=>k(this,s,t)),options:ue(e.options)}}visitGroup(e,t){let s=t.currentTime,i=0,r=e.steps.map(o=>{t.currentTime=s;let a=k(this,o,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:_.Group,steps:r,options:ue(e.options)}}visitAnimate(e,t){let s=Tn(e.timings,t.errors);t.currentAnimateTimings=s;let i,r=e.styles?e.styles:ct({});if(r.type==_.Keyframes)i=this.visitKeyframes(r,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};s.easing&&(c.easing=s.easing),o=ct(c)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,i=l}return t.currentAnimateTimings=null,{type:_.Animate,timings:s,style:i,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of i)typeof a=="string"?a===Q?s.push(a):t.errors.push(ki(a)):s.push(new Map(Object.entries(a)));let r=!1,o=null;return s.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!r)){for(let l of a.values())if(l.toString().indexOf(Xs)>=0){r=!0;break}}}),{type:_.Style,styles:s,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),h=c.get(l),u=!0;h&&(r!=i&&r>=h.startTime&&i<=h.endTime&&(t.errors.push(Oi(l,h.startTime,h.endTime,r,i)),u=!1),r=h.startTime),u&&c.set(l,{startTime:r,endTime:i}),t.options&&un(a,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Ii()),s;let i=1,r=0,o=[],a=!1,l=!1,c=0,h=e.steps.map(w=>{let A=this._makeStyleAst(w,t),N=A.offset!=null?A.offset:vn(A.styles),P=0;return N!=null&&(r++,P=A.offset=N),l=l||P<0||P>1,a=a||P0&&r{let N=S>0?A==y?1:S*A:o[A],P=N*T;t.currentTime=f+g.delay+P,g.duration=P,this._validateStyleAst(w,t),w.offset=N,s.styles.push(w)}),s}visitReference(e,t){return{type:_.Reference,animation:k(this,Ae(e.animation),t),options:ue(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:ue(e.options)}}visitAnimateRef(e,t){return{type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:ue(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=Sn(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,O(t.collectedStyles,t.currentQuerySelector,new Map);let a=k(this,Ae(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:_.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:ue(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Bi());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ve(e.timings,t.errors,!0);return{type:_.Stagger,animation:k(this,Ae(e.animation),t),timings:s,options:null}}};function Sn(n){let e=!!n.split(/\s*,\s*/).find(t=>t==ti);return e&&(n=n.replace(_n,"")),n=n.replace(/@\*/g,Qe).replace(/@\w+/g,t=>Qe+"-"+t.slice(1)).replace(/:animating/g,yt),[n,e]}function En(n){return n?Re({},n):null}var vt=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function vn(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Tn(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=Ve(n,e).duration;return ht(r,0,"")}let t=n;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ht(0,0,"");return r.dynamic=!0,r.strValue=t,r}let i=Ve(t,e);return ht(i.duration,i.delay,i.easing)}function ue(n){return n?(n=Re({},n),n.params&&(n.params=En(n.params))):n={},n}function ht(n,e,t){return{duration:n,delay:e,easing:t}}function zt(n,e,t,s,i,r,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:o,subTimeline:a}}var De=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},bn=1,wn=":enter",An=new RegExp(wn,"g"),Mn=":leave",Pn=new RegExp(Mn,"g");function ii(n,e,t,s,i,r=new Map,o=new Map,a,l,c=[]){return new Tt().buildKeyframes(n,e,t,s,i,r,o,a,l,c)}var Tt=class{buildKeyframes(e,t,s,i,r,o,a,l,c,h=[]){c=c||new De;let u=new bt(e,t,c,i,r,h,[]);u.options=l;let S=l.delay?G(l.delay):0;u.currentTimeline.delayNextStep(S),u.currentTimeline.setStyles([o],null,u.errors,l),k(this,s,u);let y=u.timelines.filter(f=>f.containsAnimation());if(y.length&&a.size){let f;for(let g=y.length-1;g>=0;g--){let T=y[g];if(T.element===t){f=T;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,u.errors,l)}return y.length?y.map(f=>f.buildKeyframes()):[zt(t,[],[],[],0,S,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(s,i,i.options);r!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(let i of e){let r=i?.delay;if(r){let o=typeof r=="number"?r:G(Pe(r,i?.params??{},t.errors));s.delayNextStep(o)}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,o=s.duration!=null?G(s.duration):null,a=s.delay!=null?G(s.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);r=Math.max(r,c.duration+c.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),k(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let s=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==_.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=xe);let o=G(r.delay);i.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>k(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>s&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?G(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);r&&a.delayNextStep(r),k(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),s.push(a.currentTimeline)}),s.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,i=t.params?Pe(s,t.params,t.errors):s;return Ve(i,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),i.snapshotCurrentStyles());let r=e.style;r.type==_.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,i=t.currentAnimateTimings;!i&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let s=t.currentAnimateTimings,i=t.currentTimeline.duration,r=s.duration,a=t.createSubContext().currentTimeline;a.easing=s.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*r),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?G(i.delay):0;r&&(t.previousNode.type===_.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=xe);let o=s,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,h)=>{t.currentQueryIndex=h;let u=t.createSubContext(e.options,c);r&&u.delayNextStep(r),c===t.element&&(l=u.currentTimeline),k(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let S=u.currentTimeline.currentTime;o=Math.max(o,S)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,i=t.currentTimeline,r=e.timings,o=Math.abs(r.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=a-l;break;case"full":l=s.currentStaggerTime;break}let h=t.currentTimeline;l&&h.delayNextStep(l);let u=h.currentTime;k(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=i.currentTime-u+(i.startTime-s.currentTimeline.startTime)}},xe={},bt=class n{constructor(e,t,s,i,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=i,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=xe,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new We(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,i=this.options;s.duration!=null&&(i.duration=G(s.duration)),s.delay!=null&&(i.delay=G(s.delay));let r=s.params;if(r){let o=i.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Pe(r[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(i=>{s[i]=t[i]})}}return e}createSubContext(e=null,t,s){let i=t||this.element,r=new n(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,s||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=xe,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new wt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,i,r,o){let a=[];if(i&&a.push(this.element),e.length>0){e=e.replace(An,"."+this._enterClassName),e=e.replace(Pn,"."+this._leaveClassName);let l=s!=1,c=this._driver.query(this.element,e,l);s!==0&&(c=s<0?c.slice(c.length+s,c.length):c.slice(0,s)),a.push(...c)}return!r&&a.length==0&&o.push(Ki(t)),a}},We=class n{constructor(e,t,s,i){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=i,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||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+=bn,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||Q),this._currentKeyframe.set(t,Q);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},o=Dn(e,this._globalTimelineStyles);for(let[a,l]of o){let c=Pe(l,r,s);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Q),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let i=this._styleSummary.get(s);(!i||t.time>i.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((h,u)=>{h===ze?e.add(u):h===Q&&t.add(u)}),s||c.set("offset",l/this.duration),i.push(c)});let r=[...e.values()],o=[...t.values()];if(s){let a=i[0],l=new Map(a);a.set("offset",0),l.set("offset",1),i=[a,l]}return zt(this.element,i,r,o,this.duration,this.startTime,this.easing,!1)}},wt=class extends We{constructor(e,t,s,i,r,o,a=!1){super(e,t,o.delay),this.keyframes=s,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],o=s+t,a=t/o,l=new Map(e[0]);l.set("offset",0),r.push(l);let c=new Map(e[0]);c.set("offset",js(a)),r.push(c);let h=e.length-1;for(let u=1;u<=h;u++){let S=new Map(e[u]),y=S.get("offset"),f=t+y*s;S.set("offset",js(f/o)),r.push(S)}s=o,t=0,i="",e=r}return zt(this.element,e,this.preStyleProps,this.postStyleProps,s,t,i,!0)}};function js(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function Dn(n,e){let t=new Map,s;return n.forEach(i=>{if(i==="*"){s??=e.keys();for(let r of s)t.set(r,Q)}else for(let[r,o]of i)t.set(r,o)}),t}function qs(n,e,t,s,i,r,o,a,l,c,h,u,S){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:S}}var dt={},Je=class{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,i){return Nn(this.ast.matchers,e,t,s,i)}buildStyles(e,t,s){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,s):new Map}build(e,t,s,i,r,o,a,l,c,h){let u=[],S=this.ast.options&&this.ast.options.params||dt,y=a&&a.params||dt,f=this.buildStyles(s,y,u),g=l&&l.params||dt,T=this.buildStyles(i,g,u),w=new Set,A=new Map,N=new Map,P=i==="void",me={params:ni(g,S),delay:this.ast.options?.delay},B=h?[]:ii(e,t,this.ast.animation,r,o,f,T,me,c,u),C=0;return B.forEach(F=>{C=Math.max(F.duration+F.delay,C)}),u.length?qs(t,this._triggerName,s,i,P,f,T,[],[],A,N,C,u):(B.forEach(F=>{let se=F.element,pe=O(A,se,new Set);F.preStyleProps.forEach(ie=>pe.add(ie));let Kt=O(N,se,new Set);F.postStyleProps.forEach(ie=>Kt.add(ie)),se!==t&&w.add(se)}),qs(t,this._triggerName,s,i,P,f,T,B,[...w.values()],A,N,C))}};function Nn(n,e,t,s,i){return n.some(r=>r(e,t,s,i))}function ni(n,e){let t=Re({},e);return Object.entries(n).forEach(([s,i])=>{i!=null&&(t[s]=i)}),t}var At=class{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,i=ni(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=Pe(o,i,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),s.set(a,o)})}),s}};function Cn(n,e,t){return new Mt(n,e,t)}var Mt=class{constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states=new Map,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new At(i.style,r,s))}),Us(this.states,"true","1"),Us(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new Je(e,i,this.states))}),this.fallbackTransition=Fn(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,i){return this.transitionFactories.find(o=>o.match(e,t,s,i))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function Fn(n,e,t){let s=[(o,a)=>!0],i={type:_.Sequence,steps:[],options:null},r={type:_.Transition,animation:i,matchers:s,options:null,queryCount:0,depCount:0};return new Je(n,r,e)}function Us(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var Rn=new De,Pt=class{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let s=[],i=[],r=si(this._driver,t,s,i);if(s.length)throw Vi(s);i.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,s){let i=e.element,r=Ws(this._normalizer,e.keyframes,t,s);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let i=[],r=this._animations.get(e),o,a=new Map;if(r?(o=ii(this._driver,t,r,Zs,gt,new Map,new Map,s,Rn,i),o.forEach(h=>{let u=O(a,h.element,new Map);h.postStyleProps.forEach(S=>u.set(S,null))})):(i.push(Hi()),o=[]),i.length)throw Gi(i);a.forEach((h,u)=>{h.forEach((S,y)=>{h.set(y,this._driver.computeStyle(u,y,Q))})});let l=o.map(h=>{let u=a.get(h.element);return this._buildPlayer(h,new Map,u)}),c=te(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw xi(e);return t}listen(e,t,s,i){let r=kt(t,"","","");return Rt(this._getPlayer(e),s,r,i),()=>{}}command(e,t,s,i){if(s=="register"){this.register(e,i[0]);return}if(s=="create"){let o=i[0]||{};this.create(e,t,o);return}let r=this._getPlayer(e);switch(s){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e);break}}},Qs="ng-animate-queued",kn=".ng-animate-queued",ft="ng-animate-disabled",On=".ng-animate-disabled",In="ng-star-inserted",Ln=".ng-star-inserted",$n=[],ri={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},zn={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},$="__ng_removed",Ne=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),i=s?e.value:e;if(this.value=Kn(i),s){let r=e,{value:o}=r,a=Qt(r,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(i=>{s[i]==null&&(s[i]=t[i])})}}},Me="void",mt=new Ne(Me),Dt=class{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,L(t,this._hostClassName)}listen(e,t,s,i){if(!this._triggers.has(t))throw Wi(s,t);if(s==null||s.length==0)throw Ji(t);if(!jn(s))throw Yi(s,t);let r=O(this._elementListeners,e,[]),o={name:t,phase:s,callback:i};r.push(o);let a=O(this._engine.statesByElement,e,new Map);return a.has(t)||(L(e,Be),L(e,Be+"-"+t),a.set(t,mt)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(o);l>=0&&r.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Xi(e);return t}trigger(e,t,s,i=!0){let r=this._getTrigger(t),o=new Ce(this.id,t,e),a=this._engine.statesByElement.get(e);a||(L(e,Be),L(e,Be+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new Ne(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=mt),!(c.value===Me)&&l.value===c.value){if(!Qn(l.params,c.params)){let g=[],T=r.matchStyles(l.value,l.params,g),w=r.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{he(e,T),V(e,w)})}return}let S=O(this._engine.playersByElement,e,[]);S.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,c.value,e,c.params),f=!1;if(!y){if(!i)return;y=r.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:c,player:o,isFallbackTransition:f}),f||(L(e,Qs),o.onStart(()=>{Ee(e,Qs)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);let T=this._engine.playersByElement.get(e);if(T){let w=T.indexOf(o);w>=0&&T.splice(w,1)}}),this.players.push(o),S.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,Qe,!0);s.forEach(i=>{if(i[$])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(o=>o.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,s,i){let r=this._engine.statesByElement.get(e),o=new Map;if(r){let a=[];if(r.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let h=this.trigger(e,c,Me,i);h&&a.push(h)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),s&&te(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let i=new Set;t.forEach(r=>{let o=r.name;if(i.has(o))return;i.add(o);let l=this._triggers.get(o).fallbackTransition,c=s.get(o)||mt,h=new Ne(Me),u=new Ce(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:h,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)i=!0;else{let o=e;for(;o=o.parentNode;)if(s.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)s.markElementAsRemoved(this.id,e,!1,t);else{let r=e[$];(!r||r===ri)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){L(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let i=s.player;if(i.destroyed)return;let r=s.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==s.triggerName){let l=kt(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,Rt(s.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(s)}),this._queue=[],t.sort((s,i)=>{let r=s.transition.ast.depCount,o=i.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(s.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Nt=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s,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=(i,r)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){let s=new Dt(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,i=this.namespacesByHostElement;if(s.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=i.get(a);if(l){let c=s.indexOf(l);s.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||s.unshift(e)}else s.push(e);return i.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let i=this._namespaceLookup[e];i&&i.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let i=this._namespaceList.indexOf(s);i>=0&&this._namespaceList.splice(i,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let i of s.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r)}}return t}trigger(e,t,s,i){if(qe(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,i),!0}return!1}insertNode(e,t,s,i){if(!qe(t))return;let r=t[$];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,s)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),L(e,ft)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Ee(e,ft))}removeNode(e,t,s){if(qe(t)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,i,r){this.collectedLeaveElements.push(t),t[$]={namespaceId:e,setForRemoval:i,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,i,r){return qe(t)?this._fetchNamespace(e).listen(t,s,i,r):()=>{}}_buildInstruction(e,t,s,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,Qe,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,yt,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return te(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[$];if(t&&t.setForRemoval){if(e[$]=ri,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(ft)&&this.markElementAsDisabled(e,!1),this.driver.query(e,On,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,i)=>this._balanceNamespaceList(s,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;ss()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?te(t).onDone(()=>{s.forEach(i=>i())}):s.forEach(i=>i())}}reportError(e){throw Zi(e)}_flushAnimations(e,t){let s=new De,i=[],r=new Map,o=[],a=new Map,l=new Map,c=new Map,h=new Set;this.disabledNodes.forEach(d=>{h.add(d);let m=this.driver.query(d,kn,!0);for(let p=0;p{let p=Zs+g++;f.set(m,p),d.forEach(E=>L(E,p))});let T=[],w=new Set,A=new Set;for(let d=0;dw.add(E)):A.add(m))}let N=new Map,P=Gs(S,Array.from(w));P.forEach((d,m)=>{let p=gt+g++;N.set(m,p),d.forEach(E=>L(E,p))}),e.push(()=>{y.forEach((d,m)=>{let p=f.get(m);d.forEach(E=>Ee(E,p))}),P.forEach((d,m)=>{let p=N.get(m);d.forEach(E=>Ee(E,p))}),T.forEach(d=>{this.processLeaveNode(d)})});let me=[],B=[];for(let d=this._namespaceList.length-1;d>=0;d--)this._namespaceList[d].drainQueuedTransitions(t).forEach(p=>{let E=p.player,M=p.element;if(me.push(E),this.collectedEnterElements.length){let D=M[$];if(D&&D.setForMove){if(D.previousTriggersValues&&D.previousTriggersValues.has(p.triggerName)){let ne=D.previousTriggersValues.get(p.triggerName),I=this.statesByElement.get(p.element);if(I&&I.has(p.triggerName)){let Fe=I.get(p.triggerName);Fe.value=ne,I.set(p.triggerName,Fe)}}E.destroy();return}}let K=!u||!this.driver.containsElement(u,M),R=N.get(M),x=f.get(M),b=this._buildInstruction(p,s,x,R,K);if(b.errors&&b.errors.length){B.push(b);return}if(K){E.onStart(()=>he(M,b.fromStyles)),E.onDestroy(()=>V(M,b.toStyles)),i.push(E);return}if(p.isFallbackTransition){E.onStart(()=>he(M,b.fromStyles)),E.onDestroy(()=>V(M,b.toStyles)),i.push(E);return}let Ut=[];b.timelines.forEach(D=>{D.stretchStartingKeyframe=!0,this.disabledNodes.has(D.element)||Ut.push(D)}),b.timelines=Ut,s.append(M,b.timelines);let Si={instruction:b,player:E,element:M};o.push(Si),b.queriedElements.forEach(D=>O(a,D,[]).push(E)),b.preStyleProps.forEach((D,ne)=>{if(D.size){let I=l.get(ne);I||l.set(ne,I=new Set),D.forEach((Fe,nt)=>I.add(nt))}}),b.postStyleProps.forEach((D,ne)=>{let I=c.get(ne);I||c.set(ne,I=new Set),D.forEach((Fe,nt)=>I.add(nt))})});if(B.length){let d=[];B.forEach(m=>{d.push(en(m.triggerName,m.errors))}),me.forEach(m=>m.destroy()),this.reportError(d)}let C=new Map,F=new Map;o.forEach(d=>{let m=d.element;s.has(m)&&(F.set(m,m),this._beforeAnimationBuild(d.player.namespaceId,d.instruction,C))}),i.forEach(d=>{let m=d.element;this._getPreviousPlayers(m,!1,d.namespaceId,d.triggerName,null).forEach(E=>{O(C,m,[]).push(E),E.destroy()})});let se=T.filter(d=>xs(d,l,c)),pe=new Map;Hs(pe,this.driver,A,c,Q).forEach(d=>{xs(d,l,c)&&se.push(d)});let ie=new Map;y.forEach((d,m)=>{Hs(ie,this.driver,new Set(d),l,ze)}),se.forEach(d=>{let m=pe.get(d),p=ie.get(d);pe.set(d,new Map([...m?.entries()??[],...p?.entries()??[]]))});let it=[],jt=[],qt={};o.forEach(d=>{let{element:m,player:p,instruction:E}=d;if(s.has(m)){if(h.has(m)){p.onDestroy(()=>V(m,E.toStyles)),p.disabled=!0,p.overrideTotalTime(E.totalTime),i.push(p);return}let M=qt;if(F.size>1){let R=m,x=[];for(;R=R.parentNode;){let b=F.get(R);if(b){M=b;break}x.push(R)}x.forEach(b=>F.set(b,M))}let K=this._buildAnimation(p.namespaceId,E,C,r,ie,pe);if(p.setRealPlayer(K),M===qt)it.push(p);else{let R=this.playersByElement.get(M);R&&R.length&&(p.parentPlayer=te(R)),i.push(p)}}else he(m,E.fromStyles),p.onDestroy(()=>V(m,E.toStyles)),jt.push(p),h.has(m)&&i.push(p)}),jt.forEach(d=>{let m=r.get(d.element);if(m&&m.length){let p=te(m);d.setRealPlayer(p)}}),i.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy()});for(let d=0;d!K.destroyed);M.length?qn(this,m,M):this.processLeaveNode(m)}return T.length=0,it.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();let m=this.players.indexOf(d);this.players.splice(m,1)}),d.play()}),it}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,i,r){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!r||r==Me;a.forEach(c=>{c.queued||!l&&c.triggerName!=i||o.push(c)})}}return(s||i)&&(o=o.filter(a=>!(s&&s!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(e,t,s){let i=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let c=l.element,h=c!==r,u=O(s,c,[]);this._getPreviousPlayers(c,h,o,a,t.toState).forEach(y=>{let f=y.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),y.destroy(),u.push(y)})}he(r,t.fromStyles)}_buildAnimation(e,t,s,i,r,o){let a=t.triggerName,l=t.element,c=[],h=new Set,u=new Set,S=t.timelines.map(f=>{let g=f.element;h.add(g);let T=g[$];if(T&&T.removedBeforeQueried)return new ee(f.duration,f.delay);let w=g!==l,A=Un((s.get(g)||$n).map(C=>C.getRealPlayer())).filter(C=>{let F=C;return F.element?F.element===g:!1}),N=r.get(g),P=o.get(g),me=Ws(this._normalizer,f.keyframes,N,P),B=this._buildPlayer(f,me,A);if(f.subTimeline&&i&&u.add(g),w){let C=new Ce(e,a,g);C.setRealPlayer(B),c.push(C)}return B});c.forEach(f=>{O(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>Bn(this.playersByQueriedElement,f.element,f))}),h.forEach(f=>L(f,zs));let y=te(S);return y.onDestroy(()=>{h.forEach(f=>Ee(f,zs)),V(l,t.toStyles)}),u.forEach(f=>{O(i,f,[]).push(y)}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new ee(e.duration,e.delay)}},Ce=class{constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s,this._player=new ee,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(i=>Rt(e,s,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){O(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function Bn(n,e,t){let s=n.get(e);if(s){if(s.length){let i=s.indexOf(t);s.splice(i,1)}s.length==0&&n.delete(e)}return s}function Kn(n){return n??null}function qe(n){return n&&n.nodeType===1}function jn(n){return n=="start"||n=="done"}function Vs(n,e){let t=n.style.display;return n.style.display=e??"none",t}function Hs(n,e,t,s,i){let r=[];t.forEach(l=>r.push(Vs(l)));let o=[];s.forEach((l,c)=>{let h=new Map;l.forEach(u=>{let S=e.computeStyle(c,u,i);h.set(u,S),(!S||S.length==0)&&(c[$]=zn,o.push(c))}),n.set(c,h)});let a=0;return t.forEach(l=>Vs(l,r[a++])),o}function Gs(n,e){let t=new Map;if(n.forEach(a=>t.set(a,[])),e.length==0)return t;let s=1,i=new Set(e),r=new Map;function o(a){if(!a)return s;let l=r.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:i.has(c)?l=s:l=o(c),r.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==s&&t.get(l).push(a)}),t}function L(n,e){n.classList?.add(e)}function Ee(n,e){n.classList?.remove(e)}function qn(n,e,t){te(t).onDone(()=>n.processLeaveNode(e))}function Un(n){let e=[];return oi(n,e),e}function oi(n,e){for(let t=0;ti.add(r)):e.set(n,s),t.delete(n),!0}var Te=class{constructor(e,t,s){this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(i,r)=>{},this._transitionEngine=new Nt(e.body,t,s),this._timelineEngine=new Pt(e.body,t,s),this._transitionEngine.onRemovalComplete=(i,r)=>this.onRemovalComplete(i,r)}registerTrigger(e,t,s,i,r){let o=e+"-"+i,a=this._triggerCache[o];if(!a){let l=[],c=[],h=si(this._driver,r,l,c);if(l.length)throw Ui(i,l);c.length&&void 0,a=Cn(i,h,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,i,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,i){this._transitionEngine.insertNode(e,t,s,i)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,i){if(s.charAt(0)=="@"){let[r,o]=Ls(s),a=i;this._timelineEngine.command(r,t,o,a)}else this._transitionEngine.trigger(e,t,s,i)}listen(e,t,s,i,r){if(s.charAt(0)=="@"){let[o,a]=Ls(s);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,s,i,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function Vn(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=pt(e[0]),e.length>1&&(s=pt(e[e.length-1]))):e instanceof Map&&(t=pt(e)),t||s?new Ct(n,t,s):null}var ve=class ve{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let i=ve.initialStylesByElement.get(e);i||ve.initialStylesByElement.set(e,i=new Map),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&V(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(V(this._element,this._initialStyles),this._endStyles&&(V(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ve.initialStylesByElement.delete(this._element),this._startStyles&&(he(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(he(this._element,this._endStyles),this._endStyles=null),V(this._element,this._initialStyles),this._state=3)}};ve.initialStylesByElement=new WeakMap;var Ct=ve;function pt(n){let e=null;return n.forEach((t,s)=>{Hn(s)&&(e=e||new Map,e.set(s,t))}),e}function Hn(n){return n==="display"||n==="position"}var Ye=class{constructor(e,t,s,i){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=i,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=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,i)=>{i!=="offset"&&e.set(i,this._finished?s:$t(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},Xe=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Js(e,t)}getParentElement(e){return Ot(e)}query(e,t,s){return Ys(e,t,s)}computeStyle(e,t,s){return $t(e,t)}animate(e,t,s,i,r,o=[]){let a=i==0?"both":"forwards",l={duration:s,delay:i,fill:a};r&&(l.easing=r);let c=new Map,h=o.filter(y=>y instanceof Ye);dn(s,i)&&h.forEach(y=>{y.currentSnapshot.forEach((f,g)=>c.set(g,f))});let u=cn(t).map(y=>new Map(y));u=fn(e,u,c);let S=Vn(e,u);return new Ye(e,u,l,S)}};var Ue="@",ai="@.disabled",Ze=class{constructor(e,t,s,i){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=i,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,i=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,s){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,i){this.delegate.setAttribute(e,t,s,i)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,i){this.delegate.setStyle(e,t,s,i)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==Ue&&t==ai?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s){return this.delegate.listen(e,t,s)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},Ft=class extends Ze{constructor(e,t,s,i,r){super(t,s,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==Ue?t.charAt(1)=="."&&t==ai?(s=s===void 0?!0:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s){if(t.charAt(0)==Ue){let i=Gn(e),r=t.slice(1),o="";return r.charAt(0)!=Ue&&([r,o]=xn(r)),this.engine.listen(this.namespaceId,i,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,s,a)})}return this.delegate.listen(e,t,s)}};function Gn(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function xn(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return[t,s]}var et=class{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(i,r)=>{let o=r?.parentNode(i);o&&r.removeChild(o,i)}}createRenderer(e,t){let s="",i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,h=c.get(i);if(!h){let u=()=>c.delete(i);h=new Ze(s,i,this.engine,u),c.set(i,h)}return h}let r=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(r,o,e,c.name,c)};return t.data.animation.forEach(a),new Ft(this,o,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&et(s));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),i.push([t,s])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var Jn=(()=>{let e=class e extends Te{constructor(s,i,r){super(s,i,r)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(i){return new(i||e)(j(ns),j(de),j(fe))},e.\u0275prov=W({token:e,factory:e.\u0275fac});let n=e;return n})();function Yn(){return new He}function Xn(n,e,t){return new et(n,e,t)}var li=[{provide:fe,useFactory:Yn},{provide:Te,useClass:Jn},{provide:Xt,useFactory:Xn,deps:[hs,Te,ke]}],Zn=[{provide:de,useFactory:()=>new Xe},{provide:rt,useValue:"BrowserAnimations"},...li],Ir=[{provide:de,useClass:It},{provide:rt,useValue:"NoopAnimations"},...li];function ci(){return Zt("NgEagerAnimations"),[...Zn]}var tt=class{http;prefix;suffix;constructor(e,t="/assets/i18n/",s=".json"){this.http=e,this.prefix=t,this.suffix=s}getTranslation(e){return this.http.get(`${this.prefix}${e}${this.suffix}`)}};function er(n,e){if(n&1&&(U(0,"li")(1,"h2")(2,"a",2),ae(3),ge(4,"translate"),Y()()()),n&2){let t,s=e.$implicit;q(2),oe("routerLink","/"+s.path),q(),Oe(" ",ye(4,2,((t=s.name)!==null&&t!==void 0?t:s.path)+".title")," ")}}var hi=(()=>{let e=class e{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"}]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=J({type:e,selectors:[["bkd-home"]],standalone:!0,features:[X],decls:2,vars:1,consts:[[1,"mt-3"],[4,"ngFor","ngForOf"],[3,"routerLink"]],template:function(i,r){i&1&&(U(0,"ul",0),be(1,er,5,4,"li",1),Y()),i&2&&(q(),oe("ngForOf",r.sections))},dependencies:[Ie,ms,Se,$e],changeDetection:0});let n=e;return n})();var di=(()=>{let e=class e{constructor(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=J({type:e,selectors:[["bkd-unauthenticated"]],standalone:!0,features:[X],decls:4,vars:3,consts:[[1,"bkd-container"],[1,"alert","alert-danger","my-3"]],template:function(i,r){i&1&&(U(0,"div",0)(1,"div",1),ae(2),ge(3,"translate"),Y()()),i&2&&(q(2),Oe(" ",ye(3,1,"unauthenticated.message")," "))},dependencies:[Se,$e],encapsulation:2});let n=e;return n})();var st=(()=>{let e=class e{constructor(s){this.storage=s}get isAuthenticated(){return!!this.accessToken}get accessToken(){return this.storage.getAccessToken()}};e.\u0275fac=function(i){return new(i||e)(j(bs))},e.\u0275prov=W({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function z(){return()=>{let n=H(st),e=H(Le);return n.isAuthenticated?!0:(e.navigate(["/unauthenticated"]),!1)}}var fi=[{path:"dashboard",canActivate:[z()],loadChildren:()=>import("./chunk-WGARCXGP.js").then(n=>n.DASHBOARD_ROUTES)},{path:"presence-control",canActivate:[z()],loadChildren:()=>import("./chunk-73JV7FSB.js").then(n=>n.PRESENCE_CONTROL_ROUTES)},{path:"open-absences",canActivate:[z()],loadChildren:()=>import("./chunk-62KHQOYN.js").then(n=>n.OPEN_ABSENCES_ROUTES)},{path:"edit-absences",canActivate:[z()],loadChildren:()=>import("./chunk-2JTOMQIG.js").then(n=>n.EDIT_ABSENCES_ROUTES)},{path:"evaluate-absences",canActivate:[z()],loadChildren:()=>import("./chunk-BTBVZYMS.js").then(n=>n.EVALUATE_ABSENCES_ROUTES)},{path:"events",canActivate:[z()],loadChildren:()=>import("./chunk-VSATLVUN.js").then(n=>n.EVENTS_ROUTES)},{path:"my-absences",canActivate:[z()],loadChildren:()=>import("./chunk-TIZKDD7Y.js").then(n=>n.MY_ABSENCES_ROUTES)},{path:"my-profile",canActivate:[z()],loadChildren:()=>import("./chunk-AJF2ECIH.js").then(n=>n.MY_PROFILE_ROUTES)},{path:"my-grades",canActivate:[z()],loadChildren:()=>import("./chunk-UMTH7ATO.js").then(n=>n.MY_GRADES_ROUTES)},{path:"my-settings",canActivate:[z()],loadChildren:()=>import("./chunk-QUM6674D.js").then(n=>n.MY_SETTINGS_ROUTES)},{path:"unauthenticated",component:di},{path:"",component:hi,pathMatch:"full"}];function mi(){return(n,e)=>{let t=H(st),s=H(Z);if(n.url.startsWith(s.apiUrl)&&t.accessToken){let i=n.headers.set("Authorization",`Bearer ${t.accessToken}`);return e(n.clone({headers:i}))}return e(n)}}function pi(){return(n,e)=>{let t=H(Z);if(!n.headers.has("X-Role-Restriction")&&t.headerRoleRestriction){let s=tr();if(s&&t.headerRoleRestriction[s]){let i=n.headers.set("X-Role-Restriction",t.headerRoleRestriction[s]);return e(n.clone({headers:i}))}}return e(n)}}function tr(){let n=H(Le),e=n.url?Ms(n.url):null;return e?Ss(e):null}function gi(){return[{provide:Yt,useClass:sr}]}var sr=(()=>{let e=class e{constructor(s,i,r){this.ngZone=s,this.translate=i,this.toastService=r}handleError(s){console.error(String(s)),s instanceof as||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"))})}};e.\u0275fac=function(i){return new(i||e)(j(ke),j(Ts),j(_e))},e.\u0275prov=W({token:e,factory:e.\u0275fac});let n=e;return n})();function ir(n,e){return new tt(n,`${e.scriptsAndAssetsPath}/assets/locales/`,".json")}var yi={providers:[ps(fi,gs()),cs(us([Ps(),mi(),pi()])),ci(),gi(),xt(Se.forRoot({loader:{provide:vs,useFactory:ir,deps:[ls,Z]}})),ws()]};var _i={production:!0};_i.production&&void 0;lt(Ds);lt(Ns);ds(ks,yi).catch(n=>console.error(n)); diff --git a/public/apps/webapp-schulverwaltung/roboto-v30-latin-ext_latin-100.woff b/public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-100.woff similarity index 100% rename from public/apps/webapp-schulverwaltung/roboto-v30-latin-ext_latin-100.woff rename to public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-100.woff diff --git a/public/apps/webapp-schulverwaltung/roboto-v30-latin-ext_latin-300.woff b/public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-300.woff similarity index 100% rename from public/apps/webapp-schulverwaltung/roboto-v30-latin-ext_latin-300.woff rename to public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-300.woff diff --git a/public/apps/webapp-schulverwaltung/roboto-v30-latin-ext_latin-400.woff b/public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-400.woff similarity index 100% rename from public/apps/webapp-schulverwaltung/roboto-v30-latin-ext_latin-400.woff rename to public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-400.woff diff --git a/public/apps/webapp-schulverwaltung/roboto-v30-latin-ext_latin-500.woff b/public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-500.woff similarity index 100% rename from public/apps/webapp-schulverwaltung/roboto-v30-latin-ext_latin-500.woff rename to public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-500.woff diff --git a/public/apps/webapp-schulverwaltung/roboto-v30-latin-ext_latin-700.woff b/public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-700.woff similarity index 100% rename from public/apps/webapp-schulverwaltung/roboto-v30-latin-ext_latin-700.woff rename to public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-700.woff diff --git a/public/apps/webapp-schulverwaltung/polyfills.js b/public/apps/webapp-schulverwaltung/polyfills.js index 682fa6ef..d49dcf99 100644 --- a/public/apps/webapp-schulverwaltung/polyfills.js +++ b/public/apps/webapp-schulverwaltung/polyfills.js @@ -1 +1,2 @@ -"use strict";(self.webpackChunkwebapp_schulverwaltung=self.webpackChunkwebapp_schulverwaltung||[]).push([[461],{2523:(fe,le,st)=>{const Ne=":";Error;const ze=function(s,...i){if(ze.translate){const f=ze.translate(s,i);s=f[0],i=f[1]}let u=tt(s[0],s.raw[0]);for(let f=1;f{const fe=globalThis;function le(t){return(fe.__Zone_symbol_prefix||"__zone_symbol__")+t}const Oe=Object.getOwnPropertyDescriptor,Ze=Object.defineProperty,Xe=Object.getPrototypeOf,$e=Object.create,Pt=Array.prototype.slice,Ye="addEventListener",it="removeEventListener",Ke=le(Ye),Je=le(it),ge="true",Te="false",De=le("");function Qe(t,r){return Zone.current.wrap(t,r)}function be(t,r,l,n,a){return Zone.current.scheduleMacroTask(t,r,l,n,a)}const z=le,Le=typeof window<"u",we=Le?window:void 0,ne=Le&&we||globalThis,ct="removeAttribute";function Me(t,r){for(let l=t.length-1;l>=0;l--)"function"==typeof t[l]&&(t[l]=Qe(t[l],r+"_"+l));return t}function at(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&typeof t.set>"u")}const He=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Be=!("nw"in ne)&&typeof ne.process<"u"&&"[object process]"===ne.process.toString(),Ue=!Be&&!He&&!(!Le||!we.HTMLElement),lt=typeof ne.process<"u"&&"[object process]"===ne.process.toString()&&!He&&!(!Le||!we.HTMLElement),Ve={},ut=function(t){if(!(t=t||ne.event))return;let r=Ve[t.type];r||(r=Ve[t.type]=z("ON_PROPERTY"+t.type));const l=this||t.target||ne,n=l[r];let a;return Ue&&l===we&&"error"===t.type?(a=n&&n.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===a&&t.preventDefault()):(a=n&&n.apply(this,arguments),null!=a&&!a&&t.preventDefault()),a};function ft(t,r,l){let n=Oe(t,r);if(!n&&l&&Oe(l,r)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;const a=z("on"+r+"patched");if(t.hasOwnProperty(a)&&t[a])return;delete n.writable,delete n.value;const _=n.get,y=n.set,k=r.slice(2);let P=Ve[k];P||(P=Ve[k]=z("ON_PROPERTY"+k)),n.set=function(L){let v=this;!v&&t===ne&&(v=ne),v&&("function"==typeof v[P]&&v.removeEventListener(k,ut),y&&y.call(v,null),v[P]=L,"function"==typeof L&&v.addEventListener(k,ut,!1))},n.get=function(){let L=this;if(!L&&t===ne&&(L=ne),!L)return null;const v=L[P];if(v)return v;if(_){let B=_.call(this);if(B)return n.set.call(this,B),"function"==typeof L[ct]&&L.removeAttribute(r),B}return null},Ze(t,r,n),t[a]=!0}function et(t,r,l){if(r)for(let n=0;nfunction(y,k){const P=l(y,k);return P.cbIdx>=0&&"function"==typeof k[P.cbIdx]?be(P.name,k[P.cbIdx],P,a):_.apply(y,k)})}function pe(t,r){t[z("OriginalDelegate")]=r}let ht=!1,dt=!1;function gt(){if(ht)return dt;ht=!0;try{const t=we.navigator.userAgent;(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/"))&&(dt=!0)}catch{}return dt}let Ae=!1;if(typeof window<"u")try{const t=Object.defineProperty({},"passive",{get:function(){Ae=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{Ae=!1}const St={useG:!0},he={},ze={},Tt=new RegExp("^"+De+"(\\w+)(true|false)$"),tt=z("propagationStopped");function kt(t,r){const l=(r?r(t):t)+Te,n=(r?r(t):t)+ge,a=De+l,_=De+n;he[t]={},he[t][Te]=a,he[t][ge]=_}function s(t,r,l,n){const a=n&&n.add||Ye,_=n&&n.rm||it,y=n&&n.listeners||"eventListeners",k=n&&n.rmAll||"removeAllListeners",P=z(a),L="."+a+":",v="prependListener",B="."+v+":",N=function(C,T,Y){if(C.isRemoved)return;const ee=C.callback;let se;"object"==typeof ee&&ee.handleEvent&&(C.callback=b=>ee.handleEvent(b),C.originalDelegate=ee);try{C.invoke(C,T,[Y])}catch(b){se=b}const K=C.options;return K&&"object"==typeof K&&K.once&&T[_].call(T,Y.type,C.originalDelegate?C.originalDelegate:C.callback,K),se};function V(C,T,Y){if(!(T=T||t.event))return;const ee=C||T.target||t,se=ee[he[T.type][Y?ge:Te]];if(se){const K=[];if(1===se.length){const b=N(se[0],ee,T);b&&K.push(b)}else{const b=se.slice();for(let J=0;J{throw J})}}}const Q=function(C){return V(this,C,!1)},G=function(C){return V(this,C,!0)};function me(C,T){if(!C)return!1;let Y=!0;T&&void 0!==T.useG&&(Y=T.useG);const ee=T&&T.vh;let se=!0;T&&void 0!==T.chkDup&&(se=T.chkDup);let K=!1;T&&void 0!==T.rt&&(K=T.rt);let b=C;for(;b&&!b.hasOwnProperty(a);)b=Xe(b);if(!b&&C[a]&&(b=C),!b||b[P])return!1;const J=T&&T.eventNameToString,x={},O=b[P]=b[a],I=b[z(_)]=b[_],M=b[z(y)]=b[y],ue=b[z(k)]=b[k];let te;T&&T.prepend&&(te=b[z(T.prepend)]=b[T.prepend]);const ie=Y?function(c){if(!x.isExisting)return O.call(x.target,x.eventName,x.capture?G:Q,x.options)}:function(c){return O.call(x.target,x.eventName,c.invoke,x.options)},U=Y?function(c){if(!c.isRemoved){const d=he[c.eventName];let S;d&&(S=d[c.capture?ge:Te]);const D=S&&c.target[S];if(D)for(let w=0;wye.zone.cancelTask(ye);c.call(We,"abort",ve,{once:!0}),ye.removeAbortListener=()=>We.removeEventListener("abort",ve)}return x.target=null,ot&&(ot.taskData=null),It&&(x.options.once=!0),!Ae&&"boolean"==typeof ye.options||(ye.options=ke),ye.target=$,ye.capture=bt,ye.eventName=H,X&&(ye.originalDelegate=q),Z?qe.unshift(ye):qe.push(ye),w?$:void 0}};return b[a]=h(O,L,ie,U,K),te&&(b[v]=h(te,B,function(c){return te.call(x.target,x.eventName,c.invoke,x.options)},U,K,!0)),b[_]=function(){const c=this||t;let d=arguments[0];T&&T.transferEventName&&(d=T.transferEventName(d));const S=arguments[2],D=!!S&&("boolean"==typeof S||S.capture),w=arguments[1];if(!w)return I.apply(this,arguments);if(ee&&!ee(I,w,c,arguments))return;const Z=he[d];let $;Z&&($=Z[D?ge:Te]);const H=$&&c[$];if(H)for(let q=0;qfunction(a,_){a[tt]=!0,n&&n.apply(a,_)})}const E=z("zoneTask");function p(t,r,l,n){let a=null,_=null;l+=n;const y={};function k(L){const v=L.data;return v.args[0]=function(){return L.invoke.apply(this,arguments)},v.handleId=a.apply(t,v.args),L}function P(L){return _.call(t,L.data.handleId)}a=Ee(t,r+=n,L=>function(v,B){if("function"==typeof B[0]){const N={isPeriodic:"Interval"===n,delay:"Timeout"===n||"Interval"===n?B[1]||0:void 0,args:B},V=B[0];B[0]=function(){try{return V.apply(this,arguments)}finally{N.isPeriodic||("number"==typeof N.handleId?delete y[N.handleId]:N.handleId&&(N.handleId[E]=null))}};const Q=be(r,B[0],N,k,P);if(!Q)return Q;const G=Q.data.handleId;return"number"==typeof G?y[G]=Q:G&&(G[E]=Q),G&&G.ref&&G.unref&&"function"==typeof G.ref&&"function"==typeof G.unref&&(Q.ref=G.ref.bind(G),Q.unref=G.unref.bind(G)),"number"==typeof G||G?G:Q}return L.apply(t,B)}),_=Ee(t,l,L=>function(v,B){const N=B[0];let V;"number"==typeof N?V=y[N]:(V=N&&N[E],V||(V=N)),V&&"string"==typeof V.type?"notScheduled"!==V.state&&(V.cancelFn&&V.data.isPeriodic||0===V.runCount)&&("number"==typeof N?delete y[N]:N&&(N[E]=null),V.zone.cancelTask(V)):L.apply(t,B)})}function ce(t,r,l){if(!l||0===l.length)return r;const n=l.filter(_=>_.target===t);if(!n||0===n.length)return r;const a=n[0].ignoreProperties;return r.filter(_=>-1===a.indexOf(_))}function Pe(t,r,l,n){t&&et(t,ce(t,r,l),n)}function Re(t){return Object.getOwnPropertyNames(t).filter(r=>r.startsWith("on")&&r.length>2).map(r=>r.substring(2))}function re(t,r,l,n,a){const _=Zone.__symbol__(n);if(r[_])return;const y=r[_]=r[n];r[n]=function(k,P,L){return P&&P.prototype&&a.forEach(function(v){const B=`${l}.${n}::`+v,N=P.prototype;try{if(N.hasOwnProperty(v)){const V=t.ObjectGetOwnPropertyDescriptor(N,v);V&&V.value?(V.value=t.wrapWithCurrentZone(V.value,B),t._redefineProperty(P.prototype,v,V)):N[v]&&(N[v]=t.wrapWithCurrentZone(N[v],B))}else N[v]&&(N[v]=t.wrapWithCurrentZone(N[v],B))}catch{}}),y.call(r,k,P,L)},t.attachOriginToPatched(r[n],y)}const Et=function Ne(){const t=globalThis,r=!0===t[le("forceDuplicateZoneCheck")];if(t.Zone&&(r||"function"!=typeof t.Zone.__symbol__))throw new Error("Zone already loaded.");return t.Zone??=function st(){const t=fe.performance;function r(j){t&&t.mark&&t.mark(j)}function l(j,m){t&&t.measure&&t.measure(j,m)}r("Zone");let n=(()=>{class j{static#e=this.__symbol__=le;static assertZonePatched(){if(fe.Promise!==x.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=j.current;for(;e.parent;)e=e.parent;return e}static get current(){return I.zone}static get currentTask(){return M}static __load_patch(e,o,R=!1){if(x.hasOwnProperty(e)){const A=!0===fe[le("forceDuplicateZoneCheck")];if(!R&&A)throw Error("Already loaded patch: "+e)}else if(!fe["__Zone_disable_"+e]){const A="Zone:"+e;r(A),x[e]=o(fe,j,O),l(A,A)}}get parent(){return this._parent}get name(){return this._name}constructor(e,o){this._parent=e,this._name=o?o.name||"unnamed":"",this._properties=o&&o.properties||{},this._zoneDelegate=new _(this,this._parent&&this._parent._zoneDelegate,o)}get(e){const o=this.getZoneWith(e);if(o)return o._properties[e]}getZoneWith(e){let o=this;for(;o;){if(o._properties.hasOwnProperty(e))return o;o=o._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,o){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const R=this._zoneDelegate.intercept(this,e,o),A=this;return function(){return A.runGuarded(R,this,arguments,o)}}run(e,o,R,A){I={parent:I,zone:this};try{return this._zoneDelegate.invoke(this,e,o,R,A)}finally{I=I.parent}}runGuarded(e,o=null,R,A){I={parent:I,zone:this};try{try{return this._zoneDelegate.invoke(this,e,o,R,A)}catch(ie){if(this._zoneDelegate.handleError(this,ie))throw ie}}finally{I=I.parent}}runTask(e,o,R){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||me).name+"; Execution: "+this.name+")");if(e.state===oe&&(e.type===J||e.type===b))return;const A=e.state!=Y;A&&e._transitionTo(Y,T),e.runCount++;const ie=M;M=e,I={parent:I,zone:this};try{e.type==b&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,o,R)}catch(U){if(this._zoneDelegate.handleError(this,U))throw U}}finally{e.state!==oe&&e.state!==se&&(e.type==J||e.data&&e.data.isPeriodic?A&&e._transitionTo(T,Y):(e.runCount=0,this._updateTaskCount(e,-1),A&&e._transitionTo(oe,Y,oe))),I=I.parent,M=ie}}scheduleTask(e){if(e.zone&&e.zone!==this){let R=this;for(;R;){if(R===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);R=R.parent}}e._transitionTo(C,oe);const o=[];e._zoneDelegates=o,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(R){throw e._transitionTo(se,C,oe),this._zoneDelegate.handleError(this,R),R}return e._zoneDelegates===o&&this._updateTaskCount(e,1),e.state==C&&e._transitionTo(T,C),e}scheduleMicroTask(e,o,R,A){return this.scheduleTask(new y(K,e,o,R,A,void 0))}scheduleMacroTask(e,o,R,A,ie){return this.scheduleTask(new y(b,e,o,R,A,ie))}scheduleEventTask(e,o,R,A,ie){return this.scheduleTask(new y(J,e,o,R,A,ie))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||me).name+"; Execution: "+this.name+")");if(e.state===T||e.state===Y){e._transitionTo(ee,T,Y);try{this._zoneDelegate.cancelTask(this,e)}catch(o){throw e._transitionTo(se,ee),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(e,-1),e._transitionTo(oe,ee),e.runCount=0,e}}_updateTaskCount(e,o){const R=e._zoneDelegates;-1==o&&(e._zoneDelegates=null);for(let A=0;Aj.hasTask(e,o),onScheduleTask:(j,m,e,o)=>j.scheduleTask(e,o),onInvokeTask:(j,m,e,o,R,A)=>j.invokeTask(e,o,R,A),onCancelTask:(j,m,e,o)=>j.cancelTask(e,o)};class _{get zone(){return this._zone}constructor(m,e,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=m,this._parentDelegate=e,this._forkZS=o&&(o&&o.onFork?o:e._forkZS),this._forkDlgt=o&&(o.onFork?e:e._forkDlgt),this._forkCurrZone=o&&(o.onFork?this._zone:e._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:e._interceptZS),this._interceptDlgt=o&&(o.onIntercept?e:e._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this._zone:e._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:e._invokeZS),this._invokeDlgt=o&&(o.onInvoke?e:e._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this._zone:e._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:e._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?e:e._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this._zone:e._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:e._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?e:e._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this._zone:e._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:e._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?e:e._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this._zone:e._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:e._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?e:e._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this._zone:e._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const R=o&&o.onHasTask;(R||e&&e._hasTaskZS)&&(this._hasTaskZS=R?o:a,this._hasTaskDlgt=e,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,o.onScheduleTask||(this._scheduleTaskZS=a,this._scheduleTaskDlgt=e,this._scheduleTaskCurrZone=this._zone),o.onInvokeTask||(this._invokeTaskZS=a,this._invokeTaskDlgt=e,this._invokeTaskCurrZone=this._zone),o.onCancelTask||(this._cancelTaskZS=a,this._cancelTaskDlgt=e,this._cancelTaskCurrZone=this._zone))}fork(m,e){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,m,e):new n(m,e)}intercept(m,e,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,m,e,o):e}invoke(m,e,o,R,A){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,m,e,o,R,A):e.apply(o,R)}handleError(m,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,m,e)}scheduleTask(m,e){let o=e;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,m,e),o||(o=e);else if(e.scheduleFn)e.scheduleFn(e);else{if(e.type!=K)throw new Error("Task is missing scheduleFn.");Q(e)}return o}invokeTask(m,e,o,R){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,m,e,o,R):e.callback.apply(o,R)}cancelTask(m,e){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,m,e);else{if(!e.cancelFn)throw Error("Task is not cancelable");o=e.cancelFn(e)}return o}hasTask(m,e){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,m,e)}catch(o){this.handleError(m,o)}}_updateTaskCount(m,e){const o=this._taskCounts,R=o[m],A=o[m]=R+e;if(A<0)throw new Error("More tasks executed then were scheduled.");0!=R&&0!=A||this.hasTask(this._zone,{microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:m})}}class y{constructor(m,e,o,R,A,ie){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=m,this.source=e,this.data=R,this.scheduleFn=A,this.cancelFn=ie,!o)throw new Error("callback is not defined");this.callback=o;const U=this;this.invoke=m===J&&R&&R.useG?y.invokeTask:function(){return y.invokeTask.call(fe,U,this,arguments)}}static invokeTask(m,e,o){m||(m=this),ue++;try{return m.runCount++,m.zone.runTask(m,e,o)}finally{1==ue&&G(),ue--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(oe,C)}_transitionTo(m,e,o){if(this._state!==e&&this._state!==o)throw new Error(`${this.type} '${this.source}': can not transition to '${m}', expecting state '${e}'${o?" or '"+o+"'":""}, was '${this._state}'.`);this._state=m,m==oe&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const k=le("setTimeout"),P=le("Promise"),L=le("then");let N,v=[],B=!1;function V(j){if(N||fe[P]&&(N=fe[P].resolve(0)),N){let m=N[L];m||(m=N.then),m.call(N,j)}else fe[k](j,0)}function Q(j){0===ue&&0===v.length&&V(G),j&&v.push(j)}function G(){if(!B){for(B=!0;v.length;){const j=v;v=[];for(let m=0;mI,onUnhandledError:te,microtaskDrainDone:te,scheduleMicroTask:Q,showUncaughtError:()=>!n[le("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:te,patchMethod:()=>te,bindArguments:()=>[],patchThen:()=>te,patchMacroTask:()=>te,patchEventPrototype:()=>te,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>te,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>te,wrapWithCurrentZone:()=>te,filterProperties:()=>[],attachOriginToPatched:()=>te,_redefineProperty:()=>te,patchCallbacks:()=>te,nativeScheduleMicroTask:V};let I={parent:null,zone:new n(null,null)},M=null,ue=0;function te(){}return l("Zone","Zone"),n}(),t.Zone}();(function vt(t){(function _e(t){t.__load_patch("ZoneAwarePromise",(r,l,n)=>{const a=Object.getOwnPropertyDescriptor,_=Object.defineProperty,k=n.symbol,P=[],L=!1!==r[k("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=k("Promise"),B=k("then"),N="__creationTrace__";n.onUnhandledError=g=>{if(n.showUncaughtError()){const h=g&&g.rejection;h?console.error("Unhandled Promise rejection:",h instanceof Error?h.message:h,"; Zone:",g.zone.name,"; Task:",g.task&&g.task.source,"; Value:",h,h instanceof Error?h.stack:void 0):console.error(g)}},n.microtaskDrainDone=()=>{for(;P.length;){const g=P.shift();try{g.zone.runGuarded(()=>{throw g.throwOriginal?g.rejection:g})}catch(h){Q(h)}}};const V=k("unhandledPromiseRejectionHandler");function Q(g){n.onUnhandledError(g);try{const h=l[V];"function"==typeof h&&h.call(this,g)}catch{}}function G(g){return g&&g.then}function me(g){return g}function oe(g){return U.reject(g)}const C=k("state"),T=k("value"),Y=k("finally"),ee=k("parentPromiseValue"),se=k("parentPromiseState"),K="Promise.then",b=null,J=!0,x=!1,O=0;function I(g,h){return c=>{try{j(g,h,c)}catch(d){j(g,!1,d)}}}const M=function(){let g=!1;return function(c){return function(){g||(g=!0,c.apply(null,arguments))}}},ue="Promise resolved with itself",te=k("currentTaskTrace");function j(g,h,c){const d=M();if(g===c)throw new TypeError(ue);if(g[C]===b){let S=null;try{("object"==typeof c||"function"==typeof c)&&(S=c&&c.then)}catch(D){return d(()=>{j(g,!1,D)})(),g}if(h!==x&&c instanceof U&&c.hasOwnProperty(C)&&c.hasOwnProperty(T)&&c[C]!==b)e(c),j(g,c[C],c[T]);else if(h!==x&&"function"==typeof S)try{S.call(c,d(I(g,h)),d(I(g,!1)))}catch(D){d(()=>{j(g,!1,D)})()}else{g[C]=h;const D=g[T];if(g[T]=c,g[Y]===Y&&h===J&&(g[C]=g[se],g[T]=g[ee]),h===x&&c instanceof Error){const w=l.currentTask&&l.currentTask.data&&l.currentTask.data[N];w&&_(c,te,{configurable:!0,enumerable:!1,writable:!0,value:w})}for(let w=0;w{try{const Z=g[T],$=!!c&&Y===c[Y];$&&(c[ee]=Z,c[se]=D);const H=h.run(w,void 0,$&&w!==oe&&w!==me?[]:[Z]);j(c,!0,H)}catch(Z){j(c,!1,Z)}},c)}const A=function(){},ie=r.AggregateError;class U{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(h){return h instanceof U?h:j(new this(null),J,h)}static reject(h){return j(new this(null),x,h)}static withResolvers(){const h={};return h.promise=new U((c,d)=>{h.resolve=c,h.reject=d}),h}static any(h){if(!h||"function"!=typeof h[Symbol.iterator])return Promise.reject(new ie([],"All promises were rejected"));const c=[];let d=0;try{for(let w of h)d++,c.push(U.resolve(w))}catch{return Promise.reject(new ie([],"All promises were rejected"))}if(0===d)return Promise.reject(new ie([],"All promises were rejected"));let S=!1;const D=[];return new U((w,Z)=>{for(let $=0;${S||(S=!0,w(H))},H=>{D.push(H),d--,0===d&&(S=!0,Z(new ie(D,"All promises were rejected")))})})}static race(h){let c,d,S=new this((Z,$)=>{c=Z,d=$});function D(Z){c(Z)}function w(Z){d(Z)}for(let Z of h)G(Z)||(Z=this.resolve(Z)),Z.then(D,w);return S}static all(h){return U.allWithCallback(h)}static allSettled(h){return(this&&this.prototype instanceof U?this:U).allWithCallback(h,{thenCallback:d=>({status:"fulfilled",value:d}),errorCallback:d=>({status:"rejected",reason:d})})}static allWithCallback(h,c){let d,S,D=new this((H,q)=>{d=H,S=q}),w=2,Z=0;const $=[];for(let H of h){G(H)||(H=this.resolve(H));const q=Z;try{H.then(X=>{$[q]=c?c.thenCallback(X):X,w--,0===w&&d($)},X=>{c?($[q]=c.errorCallback(X),w--,0===w&&d($)):S(X)})}catch(X){S(X)}w++,Z++}return w-=2,0===w&&d($),D}constructor(h){const c=this;if(!(c instanceof U))throw new Error("Must be an instanceof Promise.");c[C]=b,c[T]=[];try{const d=M();h&&h(d(I(c,J)),d(I(c,x)))}catch(d){j(c,!1,d)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return U}then(h,c){let d=this.constructor?.[Symbol.species];(!d||"function"!=typeof d)&&(d=this.constructor||U);const S=new d(A),D=l.current;return this[C]==b?this[T].push(D,S,h,c):o(this,D,S,h,c),S}catch(h){return this.then(null,h)}finally(h){let c=this.constructor?.[Symbol.species];(!c||"function"!=typeof c)&&(c=U);const d=new c(A);d[Y]=Y;const S=l.current;return this[C]==b?this[T].push(S,d,h,h):o(this,S,d,h,h),d}}U.resolve=U.resolve,U.reject=U.reject,U.race=U.race,U.all=U.all;const pt=r[v]=r.Promise;r.Promise=U;const rt=k("thenPatched");function je(g){const h=g.prototype,c=a(h,"then");if(c&&(!1===c.writable||!c.configurable))return;const d=h.then;h[B]=d,g.prototype.then=function(S,D){return new U((Z,$)=>{d.call(this,Z,$)}).then(S,D)},g[rt]=!0}return n.patchThen=je,pt&&(je(pt),Ee(r,"fetch",g=>function mt(g){return function(h,c){let d=g.apply(h,c);if(d instanceof U)return d;let S=d.constructor;return S[rt]||je(S),d}}(g))),Promise[l.__symbol__("uncaughtPromiseErrors")]=P,U})})(t),function Fe(t){t.__load_patch("toString",r=>{const l=Function.prototype.toString,n=z("OriginalDelegate"),a=z("Promise"),_=z("Error"),y=function(){if("function"==typeof this){const v=this[n];if(v)return"function"==typeof v?l.call(v):Object.prototype.toString.call(v);if(this===Promise){const B=r[a];if(B)return l.call(B)}if(this===Error){const B=r[_];if(B)return l.call(B)}}return l.call(this)};y[n]=l,Function.prototype.toString=y;const k=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":k.call(this)}})}(t),function xe(t){t.__load_patch("util",(r,l,n)=>{const a=Re(r);n.patchOnProperties=et,n.patchMethod=Ee,n.bindArguments=Me,n.patchMacroTask=Rt;const _=l.__symbol__("BLACK_LISTED_EVENTS"),y=l.__symbol__("UNPATCHED_EVENTS");r[y]&&(r[_]=r[y]),r[_]&&(l[_]=l[y]=r[_]),n.patchEventPrototype=u,n.patchEventTarget=s,n.isIEOrEdge=gt,n.ObjectDefineProperty=Ze,n.ObjectGetOwnPropertyDescriptor=Oe,n.ObjectCreate=$e,n.ArraySlice=Pt,n.patchClass=Ie,n.wrapWithCurrentZone=Qe,n.filterProperties=ce,n.attachOriginToPatched=pe,n._redefineProperty=Object.defineProperty,n.patchCallbacks=re,n.getGlobalObjects=()=>({globalSources:ze,zoneSymbolEventNames:he,eventNames:a,isBrowser:Ue,isMix:lt,isNode:Be,TRUE_STR:ge,FALSE_STR:Te,ZONE_SYMBOL_PREFIX:De,ADD_EVENT_LISTENER_STR:Ye,REMOVE_EVENT_LISTENER_STR:it})})}(t)})(Et),function nt(t){t.__load_patch("legacy",r=>{const l=r[t.__symbol__("legacyPatch")];l&&l()}),t.__load_patch("timers",r=>{const l="set",n="clear";p(r,l,n,"Timeout"),p(r,l,n,"Interval"),p(r,l,n,"Immediate")}),t.__load_patch("requestAnimationFrame",r=>{p(r,"request","cancel","AnimationFrame"),p(r,"mozRequest","mozCancel","AnimationFrame"),p(r,"webkitRequest","webkitCancel","AnimationFrame")}),t.__load_patch("blocking",(r,l)=>{const n=["alert","prompt","confirm"];for(let a=0;afunction(L,v){return l.current.run(y,r,v,P)})}),t.__load_patch("EventTarget",(r,l,n)=>{(function F(t,r){r.patchEventPrototype(t,r)})(r,n),function W(t,r){if(Zone[r.symbol("patchEventTarget")])return;const{eventNames:l,zoneSymbolEventNames:n,TRUE_STR:a,FALSE_STR:_,ZONE_SYMBOL_PREFIX:y}=r.getGlobalObjects();for(let P=0;P{Ie("MutationObserver"),Ie("WebKitMutationObserver")}),t.__load_patch("IntersectionObserver",(r,l,n)=>{Ie("IntersectionObserver")}),t.__load_patch("FileReader",(r,l,n)=>{Ie("FileReader")}),t.__load_patch("on_property",(r,l,n)=>{!function Ge(t,r){if(Be&&!lt||Zone[t.symbol("patchEvents")])return;const l=r.__Zone_ignore_on_properties;let n=[];if(Ue){const a=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const _=function _t(){try{const t=we.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:a,ignoreProperties:["error"]}]:[];Pe(a,Re(a),l&&l.concat(_),Xe(a))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let a=0;a{!function ae(t,r){const{isBrowser:l,isMix:n}=r.getGlobalObjects();(l||n)&&t.customElements&&"customElements"in t&&r.patchCallbacks(r,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(r,n)}),t.__load_patch("XHR",(r,l)=>{!function L(v){const B=v.XMLHttpRequest;if(!B)return;const N=B.prototype;let Q=N[Ke],G=N[Je];if(!Q){const O=v.XMLHttpRequestEventTarget;if(O){const I=O.prototype;Q=I[Ke],G=I[Je]}}const me="readystatechange",oe="scheduled";function C(O){const I=O.data,M=I.target;M[y]=!1,M[P]=!1;const ue=M[_];Q||(Q=M[Ke],G=M[Je]),ue&&G.call(M,me,ue);const te=M[_]=()=>{if(M.readyState===M.DONE)if(!I.aborted&&M[y]&&O.state===oe){const m=M[l.__symbol__("loadfalse")];if(0!==M.status&&m&&m.length>0){const e=O.invoke;O.invoke=function(){const o=M[l.__symbol__("loadfalse")];for(let R=0;Rfunction(O,I){return O[a]=0==I[2],O[k]=I[1],ee.apply(O,I)}),K=z("fetchTaskAborting"),b=z("fetchTaskScheduling"),J=Ee(N,"send",()=>function(O,I){if(!0===l.current[b]||O[a])return J.apply(O,I);{const M={target:O,url:O[k],isPeriodic:!1,args:I,aborted:!1},ue=be("XMLHttpRequest.send",T,M,C,Y);O&&!0===O[P]&&!M.aborted&&ue.state===oe&&ue.invoke()}}),x=Ee(N,"abort",()=>function(O,I){const M=function V(O){return O[n]}(O);if(M&&"string"==typeof M.type){if(null==M.cancelFn||M.data&&M.data.aborted)return;M.zone.cancelTask(M)}else if(!0===l.current[K])return x.apply(O,I)})}(r);const n=z("xhrTask"),a=z("xhrSync"),_=z("xhrListener"),y=z("xhrScheduled"),k=z("xhrURL"),P=z("xhrErrorBeforeScheduled")}),t.__load_patch("geolocation",r=>{r.navigator&&r.navigator.geolocation&&function Se(t,r){const l=t.constructor.name;for(let n=0;n{const P=function(){return k.apply(this,Me(arguments,l+"."+a))};return pe(P,k),P})(_)}}}(r.navigator.geolocation,["getCurrentPosition","watchPosition"])}),t.__load_patch("PromiseRejectionEvent",(r,l)=>{function n(a){return function(_){i(r,a).forEach(k=>{const P=r.PromiseRejectionEvent;if(P){const L=new P(a,{promise:_.promise,reason:_.rejection});k.invoke(L)}})}}r.PromiseRejectionEvent&&(l[z("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),l[z("rejectionHandledHandler")]=n("rejectionhandled"))}),t.__load_patch("queueMicrotask",(r,l,n)=>{!function f(t,r){r.patchMethod(t,"queueMicrotask",l=>function(n,a){Zone.current.scheduleMicroTask("queueMicrotask",a[0])})}(r,n)})}(Et)}},fe=>{fe(fe.s=2523)}]); \ No newline at end of file +var ie=globalThis;function Q(t){return(ie.__Zone_symbol_prefix||"__zone_symbol__")+t}function Tt(){let t=ie.performance;function e(x){t&&t.mark&&t.mark(x)}function c(x,r){t&&t.measure&&t.measure(x,r)}e("Zone");let Y=class Y{static assertZonePatched(){if(ie.Promise!==S.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let r=Y.current;for(;r.parent;)r=r.parent;return r}static get current(){return k.zone}static get currentTask(){return C}static __load_patch(r,i,s=!1){if(S.hasOwnProperty(r)){let b=ie[Q("forceDuplicateZoneCheck")]===!0;if(!s&&b)throw Error("Already loaded patch: "+r)}else if(!ie["__Zone_disable_"+r]){let b="Zone:"+r;e(b),S[r]=i(ie,Y,P),c(b,b)}}get parent(){return this._parent}get name(){return this._name}constructor(r,i){this._parent=r,this._name=i?i.name||"unnamed":"",this._properties=i&&i.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,i)}get(r){let i=this.getZoneWith(r);if(i)return i._properties[r]}getZoneWith(r){let i=this;for(;i;){if(i._properties.hasOwnProperty(r))return i;i=i._parent}return null}fork(r){if(!r)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,r)}wrap(r,i){if(typeof r!="function")throw new Error("Expecting function got: "+r);let s=this._zoneDelegate.intercept(this,r,i),b=this;return function(){return b.runGuarded(s,this,arguments,i)}}run(r,i,s,b){k={parent:k,zone:this};try{return this._zoneDelegate.invoke(this,r,i,s,b)}finally{k=k.parent}}runGuarded(r,i=null,s,b){k={parent:k,zone:this};try{try{return this._zoneDelegate.invoke(this,r,i,s,b)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{k=k.parent}}runTask(r,i,s){if(r.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(r.zone||te).name+"; Execution: "+this.name+")");if(r.state===q&&(r.type===G||r.type===E))return;let b=r.state!=U;b&&r._transitionTo(U,d),r.runCount++;let $=C;C=r,k={parent:k,zone:this};try{r.type==E&&r.data&&!r.data.isPeriodic&&(r.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,r,i,s)}catch(L){if(this._zoneDelegate.handleError(this,L))throw L}}finally{r.state!==q&&r.state!==X&&(r.type==G||r.data&&r.data.isPeriodic?b&&r._transitionTo(d,U):(r.runCount=0,this._updateTaskCount(r,-1),b&&r._transitionTo(q,U,q))),k=k.parent,C=$}}scheduleTask(r){if(r.zone&&r.zone!==this){let s=this;for(;s;){if(s===r.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${r.zone.name}`);s=s.parent}}r._transitionTo(v,q);let i=[];r._zoneDelegates=i,r._zone=this;try{r=this._zoneDelegate.scheduleTask(this,r)}catch(s){throw r._transitionTo(X,v,q),this._zoneDelegate.handleError(this,s),s}return r._zoneDelegates===i&&this._updateTaskCount(r,1),r.state==v&&r._transitionTo(d,v),r}scheduleMicroTask(r,i,s,b){return this.scheduleTask(new _(z,r,i,s,b,void 0))}scheduleMacroTask(r,i,s,b,$){return this.scheduleTask(new _(E,r,i,s,b,$))}scheduleEventTask(r,i,s,b,$){return this.scheduleTask(new _(G,r,i,s,b,$))}cancelTask(r){if(r.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(r.zone||te).name+"; Execution: "+this.name+")");if(!(r.state!==d&&r.state!==U)){r._transitionTo(F,d,U);try{this._zoneDelegate.cancelTask(this,r)}catch(i){throw r._transitionTo(X,F),this._zoneDelegate.handleError(this,i),i}return this._updateTaskCount(r,-1),r._transitionTo(q,F),r.runCount=0,r}}_updateTaskCount(r,i){let s=r._zoneDelegates;i==-1&&(r._zoneDelegates=null);for(let b=0;bx.hasTask(i,s),onScheduleTask:(x,r,i,s)=>x.scheduleTask(i,s),onInvokeTask:(x,r,i,s,b,$)=>x.invokeTask(i,s,b,$),onCancelTask:(x,r,i,s)=>x.cancelTask(i,s)};class f{get zone(){return this._zone}constructor(r,i,s){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=r,this._parentDelegate=i,this._forkZS=s&&(s&&s.onFork?s:i._forkZS),this._forkDlgt=s&&(s.onFork?i:i._forkDlgt),this._forkCurrZone=s&&(s.onFork?this._zone:i._forkCurrZone),this._interceptZS=s&&(s.onIntercept?s:i._interceptZS),this._interceptDlgt=s&&(s.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=s&&(s.onIntercept?this._zone:i._interceptCurrZone),this._invokeZS=s&&(s.onInvoke?s:i._invokeZS),this._invokeDlgt=s&&(s.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=s&&(s.onInvoke?this._zone:i._invokeCurrZone),this._handleErrorZS=s&&(s.onHandleError?s:i._handleErrorZS),this._handleErrorDlgt=s&&(s.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=s&&(s.onHandleError?this._zone:i._handleErrorCurrZone),this._scheduleTaskZS=s&&(s.onScheduleTask?s:i._scheduleTaskZS),this._scheduleTaskDlgt=s&&(s.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=s&&(s.onScheduleTask?this._zone:i._scheduleTaskCurrZone),this._invokeTaskZS=s&&(s.onInvokeTask?s:i._invokeTaskZS),this._invokeTaskDlgt=s&&(s.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=s&&(s.onInvokeTask?this._zone:i._invokeTaskCurrZone),this._cancelTaskZS=s&&(s.onCancelTask?s:i._cancelTaskZS),this._cancelTaskDlgt=s&&(s.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=s&&(s.onCancelTask?this._zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let b=s&&s.onHasTask,$=i&&i._hasTaskZS;(b||$)&&(this._hasTaskZS=b?s:a,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,s.onScheduleTask||(this._scheduleTaskZS=a,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this._zone),s.onInvokeTask||(this._invokeTaskZS=a,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this._zone),s.onCancelTask||(this._cancelTaskZS=a,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this._zone))}fork(r,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,r,i):new n(r,i)}intercept(r,i,s){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,r,i,s):i}invoke(r,i,s,b,$){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,r,i,s,b,$):i.apply(s,b)}handleError(r,i){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,r,i):!0}scheduleTask(r,i){let s=i;if(this._scheduleTaskZS)this._hasTaskZS&&s._zoneDelegates.push(this._hasTaskDlgtOwner),s=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,r,i),s||(s=i);else if(i.scheduleFn)i.scheduleFn(i);else if(i.type==z)V(i);else throw new Error("Task is missing scheduleFn.");return s}invokeTask(r,i,s,b){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,r,i,s,b):i.callback.apply(s,b)}cancelTask(r,i){let s;if(this._cancelTaskZS)s=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,r,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");s=i.cancelFn(i)}return s}hasTask(r,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,r,i)}catch(s){this.handleError(r,s)}}_updateTaskCount(r,i){let s=this._taskCounts,b=s[r],$=s[r]=b+i;if($<0)throw new Error("More tasks executed then were scheduled.");if(b==0||$==0){let L={microTask:s.microTask>0,macroTask:s.macroTask>0,eventTask:s.eventTask>0,change:r};this.hasTask(this._zone,L)}}}class _{constructor(r,i,s,b,$,L){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=r,this.source=i,this.data=b,this.scheduleFn=$,this.cancelFn=L,!s)throw new Error("callback is not defined");this.callback=s;let de=this;r===G&&b&&b.useG?this.invoke=_.invokeTask:this.invoke=function(){return _.invokeTask.call(ie,de,this,arguments)}}static invokeTask(r,i,s){r||(r=this),J++;try{return r.runCount++,r.zone.runTask(r,i,s)}finally{J==1&&j(),J--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(q,v)}_transitionTo(r,i,s){if(this._state===i||this._state===s)this._state=r,r==q&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${r}', expecting state '${i}'${s?" or '"+s+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let T=Q("setTimeout"),p=Q("Promise"),N=Q("then"),g=[],M=!1,w;function A(x){if(w||ie[p]&&(w=ie[p].resolve(0)),w){let r=w[N];r||(r=w.then),r.call(w,x)}else ie[T](x,0)}function V(x){J===0&&g.length===0&&A(j),x&&g.push(x)}function j(){if(!M){for(M=!0;g.length;){let x=g;g=[];for(let r=0;rk,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:V,showUncaughtError:()=>!n[Q("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:A},k={parent:null,zone:new n(null,null)},C=null,J=0;function W(){}return c("Zone","Zone"),n}function gt(){let t=globalThis,e=t[Q("forceDuplicateZoneCheck")]===!0;if(t.Zone&&(e||typeof t.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return t.Zone??=Tt(),t.Zone}var ve=Object.getOwnPropertyDescriptor,xe=Object.defineProperty,Ze=Object.getPrototypeOf,Et=Object.create,mt=Array.prototype.slice,$e="addEventListener",He="removeEventListener",Me=Q($e),Le=Q(He),ce="true",ae="false",be=Q("");function Be(t,e){return Zone.current.wrap(t,e)}function Ue(t,e,c,n,a){return Zone.current.scheduleMacroTask(t,e,c,n,a)}var Z=Q,Ce=typeof window<"u",me=Ce?window:void 0,K=Ce&&me||globalThis,pt="removeAttribute";function ze(t,e){for(let c=t.length-1;c>=0;c--)typeof t[c]=="function"&&(t[c]=Be(t[c],e+"_"+c));return t}function yt(t,e){let c=t.constructor.name;for(let n=0;n{let p=function(){return T.apply(this,ze(arguments,c+"."+a))};return ue(p,T),p})(f)}}}function tt(t){return t?t.writable===!1?!1:!(typeof t.get=="function"&&typeof t.set>"u"):!0}var nt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Se=!("nw"in K)&&typeof K.process<"u"&&K.process.toString()==="[object process]",Ge=!Se&&!nt&&!!(Ce&&me.HTMLElement),rt=typeof K.process<"u"&&K.process.toString()==="[object process]"&&!nt&&!!(Ce&&me.HTMLElement),Ne={},Ke=function(t){if(t=t||K.event,!t)return;let e=Ne[t.type];e||(e=Ne[t.type]=Z("ON_PROPERTY"+t.type));let c=this||t.target||K,n=c[e],a;if(Ge&&c===me&&t.type==="error"){let f=t;a=n&&n.call(this,f.message,f.filename,f.lineno,f.colno,f.error),a===!0&&t.preventDefault()}else a=n&&n.apply(this,arguments),a!=null&&!a&&t.preventDefault();return a};function Je(t,e,c){let n=ve(t,e);if(!n&&c&&ve(c,e)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;let a=Z("on"+e+"patched");if(t.hasOwnProperty(a)&&t[a])return;delete n.writable,delete n.value;let f=n.get,_=n.set,T=e.slice(2),p=Ne[T];p||(p=Ne[T]=Z("ON_PROPERTY"+T)),n.set=function(N){let g=this;if(!g&&t===K&&(g=K),!g)return;typeof g[p]=="function"&&g.removeEventListener(T,Ke),_&&_.call(g,null),g[p]=N,typeof N=="function"&&g.addEventListener(T,Ke,!1)},n.get=function(){let N=this;if(!N&&t===K&&(N=K),!N)return null;let g=N[p];if(g)return g;if(f){let M=f.call(this);if(M)return n.set.call(this,M),typeof N[pt]=="function"&&N.removeAttribute(e),M}return null},xe(t,e,n),t[a]=!0}function ot(t,e,c){if(e)for(let n=0;nfunction(_,T){let p=c(_,T);return p.cbIdx>=0&&typeof T[p.cbIdx]=="function"?Ue(p.name,T[p.cbIdx],p,a):f.apply(_,T)})}function ue(t,e){t[Z("OriginalDelegate")]=e}var Qe=!1,Ae=!1;function vt(){try{let t=me.navigator.userAgent;if(t.indexOf("MSIE ")!==-1||t.indexOf("Trident/")!==-1)return!0}catch{}return!1}function bt(){if(Qe)return Ae;Qe=!0;try{let t=me.navigator.userAgent;(t.indexOf("MSIE ")!==-1||t.indexOf("Trident/")!==-1||t.indexOf("Edge/")!==-1)&&(Ae=!0)}catch{}return Ae}var Ee=!1;if(typeof window<"u")try{let t=Object.defineProperty({},"passive",{get:function(){Ee=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{Ee=!1}var wt={useG:!0},ee={},st={},it=new RegExp("^"+be+"(\\w+)(true|false)$"),ct=Z("propagationStopped");function at(t,e){let c=(e?e(t):t)+ae,n=(e?e(t):t)+ce,a=be+c,f=be+n;ee[t]={},ee[t][ae]=a,ee[t][ce]=f}function Pt(t,e,c,n){let a=n&&n.add||$e,f=n&&n.rm||He,_=n&&n.listeners||"eventListeners",T=n&&n.rmAll||"removeAllListeners",p=Z(a),N="."+a+":",g="prependListener",M="."+g+":",w=function(v,d,U){if(v.isRemoved)return;let F=v.callback;typeof F=="object"&&F.handleEvent&&(v.callback=E=>F.handleEvent(E),v.originalDelegate=F);let X;try{v.invoke(v,d,[U])}catch(E){X=E}let z=v.options;if(z&&typeof z=="object"&&z.once){let E=v.originalDelegate?v.originalDelegate:v.callback;d[f].call(d,U.type,E,z)}return X};function A(v,d,U){if(d=d||t.event,!d)return;let F=v||d.target||t,X=F[ee[d.type][U?ce:ae]];if(X){let z=[];if(X.length===1){let E=w(X[0],F,d);E&&z.push(E)}else{let E=X.slice();for(let G=0;G{throw G})}}}let V=function(v){return A(this,v,!1)},j=function(v){return A(this,v,!0)};function te(v,d){if(!v)return!1;let U=!0;d&&d.useG!==void 0&&(U=d.useG);let F=d&&d.vh,X=!0;d&&d.chkDup!==void 0&&(X=d.chkDup);let z=!1;d&&d.rt!==void 0&&(z=d.rt);let E=v;for(;E&&!E.hasOwnProperty(a);)E=Ze(E);if(!E&&v[a]&&(E=v),!E||E[p])return!1;let G=d&&d.eventNameToString,S={},P=E[p]=E[a],k=E[Z(f)]=E[f],C=E[Z(_)]=E[_],J=E[Z(T)]=E[T],W;d&&d.prepend&&(W=E[Z(d.prepend)]=E[d.prepend]);function Y(o,u){return!Ee&&typeof o=="object"&&o?!!o.capture:!Ee||!u?o:typeof o=="boolean"?{capture:o,passive:!0}:o?typeof o=="object"&&o.passive!==!1?{...o,passive:!0}:o:{passive:!0}}let x=function(o){if(!S.isExisting)return P.call(S.target,S.eventName,S.capture?j:V,S.options)},r=function(o){if(!o.isRemoved){let u=ee[o.eventName],y;u&&(y=u[o.capture?ce:ae]);let R=y&&o.target[y];if(R){for(let m=0;mne.zone.cancelTask(ne);o.call(_e,"abort",se,{once:!0}),ne.removeAbortListener=()=>_e.removeEventListener("abort",se)}if(S.target=null,ye&&(ye.taskData=null),Fe&&(S.options.once=!0),!Ee&&typeof ne.options=="boolean"||(ne.options=oe),ne.target=I,ne.capture=Ie,ne.eventName=D,B&&(ne.originalDelegate=H),O?Te.unshift(ne):Te.push(ne),m)return I}};return E[a]=l(P,N,$,L,z),W&&(E[g]=l(W,M,s,L,z,!0)),E[f]=function(){let o=this||t,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let y=arguments[2],R=y?typeof y=="boolean"?!0:y.capture:!1,m=arguments[1];if(!m)return k.apply(this,arguments);if(F&&!F(k,m,o,arguments))return;let O=ee[u],I;O&&(I=O[R?ce:ae]);let D=I&&o[I];if(D)for(let H=0;Hfunction(a,f){a[ct]=!0,n&&n.apply(a,f)})}function Nt(t,e){e.patchMethod(t,"queueMicrotask",c=>function(n,a){Zone.current.scheduleMicroTask("queueMicrotask",a[0])})}var Re=Z("zoneTask");function ge(t,e,c,n){let a=null,f=null;e+=n,c+=n;let _={};function T(N){let g=N.data;return g.args[0]=function(){return N.invoke.apply(this,arguments)},g.handleId=a.apply(t,g.args),N}function p(N){return f.call(t,N.data.handleId)}a=le(t,e,N=>function(g,M){if(typeof M[0]=="function"){let w={isPeriodic:n==="Interval",delay:n==="Timeout"||n==="Interval"?M[1]||0:void 0,args:M},A=M[0];M[0]=function(){try{return A.apply(this,arguments)}finally{w.isPeriodic||(typeof w.handleId=="number"?delete _[w.handleId]:w.handleId&&(w.handleId[Re]=null))}};let V=Ue(e,M[0],w,T,p);if(!V)return V;let j=V.data.handleId;return typeof j=="number"?_[j]=V:j&&(j[Re]=V),j&&j.ref&&j.unref&&typeof j.ref=="function"&&typeof j.unref=="function"&&(V.ref=j.ref.bind(j),V.unref=j.unref.bind(j)),typeof j=="number"||j?j:V}else return N.apply(t,M)}),f=le(t,c,N=>function(g,M){let w=M[0],A;typeof w=="number"?A=_[w]:(A=w&&w[Re],A||(A=w)),A&&typeof A.type=="string"?A.state!=="notScheduled"&&(A.cancelFn&&A.data.isPeriodic||A.runCount===0)&&(typeof w=="number"?delete _[w]:w&&(w[Re]=null),A.zone.cancelTask(A)):N.apply(t,M)})}function Ct(t,e){let{isBrowser:c,isMix:n}=e.getGlobalObjects();if(!c&&!n||!t.customElements||!("customElements"in t))return;let a=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];e.patchCallbacks(e,t.customElements,"customElements","define",a)}function St(t,e){if(Zone[e.symbol("patchEventTarget")])return;let{eventNames:c,zoneSymbolEventNames:n,TRUE_STR:a,FALSE_STR:f,ZONE_SYMBOL_PREFIX:_}=e.getGlobalObjects();for(let p=0;pf.target===t);if(!n||n.length===0)return e;let a=n[0].ignoreProperties;return e.filter(f=>a.indexOf(f)===-1)}function et(t,e,c,n){if(!t)return;let a=ut(t,e,c);ot(t,a,n)}function je(t){return Object.getOwnPropertyNames(t).filter(e=>e.startsWith("on")&&e.length>2).map(e=>e.substring(2))}function It(t,e){if(Se&&!rt||Zone[t.symbol("patchEvents")])return;let c=e.__Zone_ignore_on_properties,n=[];if(Ge){let a=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=vt()?[{target:a,ignoreProperties:["error"]}]:[];et(a,je(a),c&&c.concat(f),Ze(a))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let a=0;a{let c=e[t.__symbol__("legacyPatch")];c&&c()}),t.__load_patch("timers",e=>{let c="set",n="clear";ge(e,c,n,"Timeout"),ge(e,c,n,"Interval"),ge(e,c,n,"Immediate")}),t.__load_patch("requestAnimationFrame",e=>{ge(e,"request","cancel","AnimationFrame"),ge(e,"mozRequest","mozCancel","AnimationFrame"),ge(e,"webkitRequest","webkitCancel","AnimationFrame")}),t.__load_patch("blocking",(e,c)=>{let n=["alert","prompt","confirm"];for(let a=0;afunction(N,g){return c.current.run(_,e,g,p)})}}),t.__load_patch("EventTarget",(e,c,n)=>{Ot(e,n),St(e,n);let a=e.XMLHttpRequestEventTarget;a&&a.prototype&&n.patchEventTarget(e,n,[a.prototype])}),t.__load_patch("MutationObserver",(e,c,n)=>{ke("MutationObserver"),ke("WebKitMutationObserver")}),t.__load_patch("IntersectionObserver",(e,c,n)=>{ke("IntersectionObserver")}),t.__load_patch("FileReader",(e,c,n)=>{ke("FileReader")}),t.__load_patch("on_property",(e,c,n)=>{It(n,e)}),t.__load_patch("customElements",(e,c,n)=>{Ct(e,n)}),t.__load_patch("XHR",(e,c)=>{N(e);let n=Z("xhrTask"),a=Z("xhrSync"),f=Z("xhrListener"),_=Z("xhrScheduled"),T=Z("xhrURL"),p=Z("xhrErrorBeforeScheduled");function N(g){let M=g.XMLHttpRequest;if(!M)return;let w=M.prototype;function A(P){return P[n]}let V=w[Me],j=w[Le];if(!V){let P=g.XMLHttpRequestEventTarget;if(P){let k=P.prototype;V=k[Me],j=k[Le]}}let te="readystatechange",q="scheduled";function v(P){let k=P.data,C=k.target;C[_]=!1,C[p]=!1;let J=C[f];V||(V=C[Me],j=C[Le]),J&&j.call(C,te,J);let W=C[f]=()=>{if(C.readyState===C.DONE)if(!k.aborted&&C[_]&&P.state===q){let x=C[c.__symbol__("loadfalse")];if(C.status!==0&&x&&x.length>0){let r=P.invoke;P.invoke=function(){let i=C[c.__symbol__("loadfalse")];for(let s=0;sfunction(P,k){return P[a]=k[2]==!1,P[T]=k[1],F.apply(P,k)}),X="XMLHttpRequest.send",z=Z("fetchTaskAborting"),E=Z("fetchTaskScheduling"),G=le(w,"send",()=>function(P,k){if(c.current[E]===!0||P[a])return G.apply(P,k);{let C={target:P,url:P[T],isPeriodic:!1,args:k,aborted:!1},J=Ue(X,d,C,v,U);P&&P[p]===!0&&!C.aborted&&J.state===q&&J.invoke()}}),S=le(w,"abort",()=>function(P,k){let C=A(P);if(C&&typeof C.type=="string"){if(C.cancelFn==null||C.data&&C.data.aborted)return;C.zone.cancelTask(C)}else if(c.current[z]===!0)return S.apply(P,k)})}}),t.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&yt(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),t.__load_patch("PromiseRejectionEvent",(e,c)=>{function n(a){return function(f){lt(e,a).forEach(T=>{let p=e.PromiseRejectionEvent;if(p){let N=new p(a,{promise:f.promise,reason:f.rejection});T.invoke(N)}})}}e.PromiseRejectionEvent&&(c[Z("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),c[Z("rejectionHandledHandler")]=n("rejectionhandled"))}),t.__load_patch("queueMicrotask",(e,c,n)=>{Nt(e,n)})}function Mt(t){t.__load_patch("ZoneAwarePromise",(e,c,n)=>{let a=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function _(h){if(h&&h.toString===Object.prototype.toString){let l=h.constructor&&h.constructor.name;return(l||"")+": "+JSON.stringify(h)}return h?h.toString():Object.prototype.toString.call(h)}let T=n.symbol,p=[],N=e[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,g=T("Promise"),M=T("then"),w="__creationTrace__";n.onUnhandledError=h=>{if(n.showUncaughtError()){let l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},n.microtaskDrainDone=()=>{for(;p.length;){let h=p.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){V(l)}}};let A=T("unhandledPromiseRejectionHandler");function V(h){n.onUnhandledError(h);try{let l=c[A];typeof l=="function"&&l.call(this,h)}catch{}}function j(h){return h&&h.then}function te(h){return h}function q(h){return L.reject(h)}let v=T("state"),d=T("value"),U=T("finally"),F=T("parentPromiseValue"),X=T("parentPromiseState"),z="Promise.then",E=null,G=!0,S=!1,P=0;function k(h,l){return o=>{try{Y(h,l,o)}catch(u){Y(h,!1,u)}}}let C=function(){let h=!1;return function(o){return function(){h||(h=!0,o.apply(null,arguments))}}},J="Promise resolved with itself",W=T("currentTaskTrace");function Y(h,l,o){let u=C();if(h===o)throw new TypeError(J);if(h[v]===E){let y=null;try{(typeof o=="object"||typeof o=="function")&&(y=o&&o.then)}catch(R){return u(()=>{Y(h,!1,R)})(),h}if(l!==S&&o instanceof L&&o.hasOwnProperty(v)&&o.hasOwnProperty(d)&&o[v]!==E)r(o),Y(h,o[v],o[d]);else if(l!==S&&typeof y=="function")try{y.call(o,u(k(h,l)),u(k(h,!1)))}catch(R){u(()=>{Y(h,!1,R)})()}else{h[v]=l;let R=h[d];if(h[d]=o,h[U]===U&&l===G&&(h[v]=h[X],h[d]=h[F]),l===S&&o instanceof Error){let m=c.currentTask&&c.currentTask.data&&c.currentTask.data[w];m&&f(o,W,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{let O=h[d],I=!!o&&U===o[U];I&&(o[F]=O,o[X]=R);let D=l.run(m,void 0,I&&m!==q&&m!==te?[]:[O]);Y(o,!0,D)}catch(O){Y(o,!1,O)}},o)}let s="function ZoneAwarePromise() { [native code] }",b=function(){},$=e.AggregateError;class L{static toString(){return s}static resolve(l){return l instanceof L?l:Y(new this(null),G,l)}static reject(l){return Y(new this(null),S,l)}static withResolvers(){let l={};return l.promise=new L((o,u)=>{l.resolve=o,l.reject=u}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new $([],"All promises were rejected"));let o=[],u=0;try{for(let m of l)u++,o.push(L.resolve(m))}catch{return Promise.reject(new $([],"All promises were rejected"))}if(u===0)return Promise.reject(new $([],"All promises were rejected"));let y=!1,R=[];return new L((m,O)=>{for(let I=0;I{y||(y=!0,m(D))},D=>{R.push(D),u--,u===0&&(y=!0,O(new $(R,"All promises were rejected")))})})}static race(l){let o,u,y=new this((O,I)=>{o=O,u=I});function R(O){o(O)}function m(O){u(O)}for(let O of l)j(O)||(O=this.resolve(O)),O.then(R,m);return y}static all(l){return L.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof L?this:L).allWithCallback(l,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(l,o){let u,y,R=new this((D,H)=>{u=D,y=H}),m=2,O=0,I=[];for(let D of l){j(D)||(D=this.resolve(D));let H=O;try{D.then(B=>{I[H]=o?o.thenCallback(B):B,m--,m===0&&u(I)},B=>{o?(I[H]=o.errorCallback(B),m--,m===0&&u(I)):y(B)})}catch(B){y(B)}m++,O++}return m-=2,m===0&&u(I),R}constructor(l){let o=this;if(!(o instanceof L))throw new Error("Must be an instanceof Promise.");o[v]=E,o[d]=[];try{let u=C();l&&l(u(k(o,G)),u(k(o,S)))}catch(u){Y(o,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return L}then(l,o){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||L);let y=new u(b),R=c.current;return this[v]==E?this[d].push(R,y,l,o):i(this,R,y,l,o),y}catch(l){return this.then(null,l)}finally(l){let o=this.constructor?.[Symbol.species];(!o||typeof o!="function")&&(o=L);let u=new o(b);u[U]=U;let y=c.current;return this[v]==E?this[d].push(y,u,l,l):i(this,y,u,l,l),u}}L.resolve=L.resolve,L.reject=L.reject,L.race=L.race,L.all=L.all;let de=e[g]=e.Promise;e.Promise=L;let pe=T("thenPatched");function he(h){let l=h.prototype,o=a(l,"then");if(o&&(o.writable===!1||!o.configurable))return;let u=l.then;l[M]=u,h.prototype.then=function(y,R){return new L((O,I)=>{u.call(this,O,I)}).then(y,R)},h[pe]=!0}n.patchThen=he;function we(h){return function(l,o){let u=h.apply(l,o);if(u instanceof L)return u;let y=u.constructor;return y[pe]||he(y),u}}return de&&(he(de),le(e,"fetch",h=>we(h))),Promise[c.__symbol__("uncaughtPromiseErrors")]=p,L})}function Lt(t){t.__load_patch("toString",e=>{let c=Function.prototype.toString,n=Z("OriginalDelegate"),a=Z("Promise"),f=Z("Error"),_=function(){if(typeof this=="function"){let g=this[n];if(g)return typeof g=="function"?c.call(g):Object.prototype.toString.call(g);if(this===Promise){let M=e[a];if(M)return c.call(M)}if(this===Error){let M=e[f];if(M)return c.call(M)}}return c.call(this)};_[n]=c,Function.prototype.toString=_;let T=Object.prototype.toString,p="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?p:T.call(this)}})}function At(t,e,c,n,a){let f=Zone.__symbol__(n);if(e[f])return;let _=e[f]=e[n];e[n]=function(T,p,N){return p&&p.prototype&&a.forEach(function(g){let M=`${c}.${n}::`+g,w=p.prototype;try{if(w.hasOwnProperty(g)){let A=t.ObjectGetOwnPropertyDescriptor(w,g);A&&A.value?(A.value=t.wrapWithCurrentZone(A.value,M),t._redefineProperty(p.prototype,g,A)):w[g]&&(w[g]=t.wrapWithCurrentZone(w[g],M))}else w[g]&&(w[g]=t.wrapWithCurrentZone(w[g],M))}catch{}}),_.call(e,T,p,N)},t.attachOriginToPatched(e[n],_)}function jt(t){t.__load_patch("util",(e,c,n)=>{let a=je(e);n.patchOnProperties=ot,n.patchMethod=le,n.bindArguments=ze,n.patchMacroTask=kt;let f=c.__symbol__("BLACK_LISTED_EVENTS"),_=c.__symbol__("UNPATCHED_EVENTS");e[_]&&(e[f]=e[_]),e[f]&&(c[f]=c[_]=e[f]),n.patchEventPrototype=Rt,n.patchEventTarget=Pt,n.isIEOrEdge=bt,n.ObjectDefineProperty=xe,n.ObjectGetOwnPropertyDescriptor=ve,n.ObjectCreate=Et,n.ArraySlice=mt,n.patchClass=ke,n.wrapWithCurrentZone=Be,n.filterProperties=ut,n.attachOriginToPatched=ue,n._redefineProperty=Object.defineProperty,n.patchCallbacks=At,n.getGlobalObjects=()=>({globalSources:st,zoneSymbolEventNames:ee,eventNames:a,isBrowser:Ge,isMix:rt,isNode:Se,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:be,ADD_EVENT_LISTENER_STR:$e,REMOVE_EVENT_LISTENER_STR:He})})}function xt(t){Mt(t),Lt(t),jt(t)}var ft=gt();xt(ft);Dt(ft);var Zt=":";var Ve=class{visitText(e,c){return e.value}visitContainer(e,c){return`[${e.children.map(n=>n.visit(this)).join(", ")}]`}visitIcu(e,c){let n=Object.keys(e.cases).map(a=>`${a} {${e.cases[a].visit(this)}}`);return`{${e.expression}, ${e.type}, ${n.join(", ")}}`}visitTagPlaceholder(e,c){return e.isVoid?``:`${e.children.map(n=>n.visit(this)).join(", ")}`}visitPlaceholder(e,c){return e.value?`${e.value}`:``}visitIcuPlaceholder(e,c){return`${e.value.visit(this)}`}visitBlockPlaceholder(e,c){return`${e.children.map(n=>n.visit(this)).join(", ")}`}},Bt=new Ve;var ht;(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})(ht||(ht={}));function $t(t,e){for(let c=1,n=1;c{"use strict";var e,v={},m={};function r(e){var i=m[e];if(void 0!==i)return i.exports;var t=m[e]={exports:{}};return v[e](t,t.exports,r),t.exports}r.m=v,e=[],r.O=(i,t,u,o)=>{if(!t){var a=1/0;for(n=0;n=o)&&Object.keys(r.O).every(b=>r.O[b](t[l]))?t.splice(l--,1):(s=!1,o0&&e[n-1][2]>o;n--)e[n]=e[n-1];e[n]=[t,u,o]},r.d=(e,i)=>{for(var t in i)r.o(i,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:i[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((i,t)=>(r.f[t](e,i),i),[])),r.u=e=>(76===e?"common":e)+".js",r.miniCssF=e=>{},r.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),(()=>{var e={},i="webapp-schulverwaltung:";r.l=(t,u,o,n)=>{if(e[t])e[t].push(u);else{var a,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(b)),g)return g(b)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:i=>i},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={121:0};r.f.j=(u,o)=>{var n=r.o(e,u)?e[u]:void 0;if(0!==n)if(n)o.push(n[2]);else if(121!=u){var a=new Promise((f,c)=>n=e[u]=[f,c]);o.push(n[2]=a);var s=r.p+r.u(u),l=new Error;r.l(s,f=>{if(r.o(e,u)&&(0!==(n=e[u])&&(e[u]=void 0),n)){var c=f&&("load"===f.type?"missing":f.type),p=f&&f.target&&f.target.src;l.message="Loading chunk "+u+" failed.\n("+c+": "+p+")",l.name="ChunkLoadError",l.type=c,l.request=p,n[1](l)}},"chunk-"+u,u)}else e[u]=0},r.O.j=u=>0===e[u];var i=(u,o)=>{var l,d,[n,a,s]=o,f=0;if(n.some(p=>0!==e[p])){for(l in a)r.o(a,l)&&(r.m[l]=a[l]);if(s)var c=s(r)}for(u&&u(o);f.ng-select-container{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.ng-select.ng-select-opened>.ng-select-container:hover{box-shadow:none}.ng-select.ng-select-opened>.ng-select-container .ng-arrow{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.ng-select.ng-select-opened>.ng-select-container .ng-arrow:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-top>.ng-select-container{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-opened.ng-select-right>.ng-select-container{border-top-right-radius:0;border-bottom-right-radius:0}.ng-select.ng-select-opened.ng-select-bottom>.ng-select-container{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-left>.ng-select-container{border-top-left-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-focused:not(.ng-select-opened)>.ng-select-container{border-color:#007eff;box-shadow:inset 0 1px 1px #00000013,0 0 0 3px #007eff1a}.ng-select.ng-select-disabled>.ng-select-container{background-color:#f9f9f9}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-select-container{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select .ng-select-container:hover{box-shadow:0 1px #0000000f}.ng-select .ng-select-container .ng-value-container{align-items:center;padding-left:10px}[dir=rtl] .ng-select .ng-select-container .ng-value-container{padding-right:10px;padding-left:0}.ng-select .ng-select-container .ng-value-container .ng-placeholder{color:#999}.ng-select.ng-select-single .ng-select-container{height:36px}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=rtl] .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{background-color:#f9f9f9;border:1px solid #e6e6e6}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-label{padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-top:5px;padding-left:7px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{font-size:.9em;margin-bottom:5px;color:#333;background-color:#ebf5ff;border-radius:2px;margin-right:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{background-color:#f9f9f9}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label,.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-right:1px solid #b8dbff}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:1px solid #b8dbff}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 0 3px 3px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 3px 3px 0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input>input{color:#000}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{top:5px;padding-bottom:5px;padding-left:3px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-right:3px;padding-left:0}.ng-select .ng-clear-wrapper{color:#999}.ng-select .ng-clear-wrapper:hover .ng-clear{color:#d0021b}.ng-select .ng-clear-wrapper:focus .ng-clear{color:#d0021b}.ng-select .ng-clear-wrapper:focus{outline:none}.ng-select .ng-spinner-zone{padding:5px 5px 0 0}[dir=rtl] .ng-select .ng-spinner-zone{padding:5px 0 0 5px}.ng-select .ng-arrow-wrapper{width:25px;padding-right:5px}[dir=rtl] .ng-select .ng-arrow-wrapper{padding-left:5px;padding-right:0}.ng-select .ng-arrow-wrapper:hover .ng-arrow{border-top-color:#666}.ng-select .ng-arrow-wrapper .ng-arrow{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px #0000000f;left:0}.ng-dropdown-panel.ng-select-top{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel.ng-select-right{left:100%;top:0;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-right .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px}.ng-dropdown-panel.ng-select-bottom{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:#e6e6e6;margin-top:-1px}.ng-dropdown-panel.ng-select-bottom .ng-dropdown-panel-items .ng-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-left{left:-100%;top:0;border-top-left-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-left .ng-dropdown-panel-items .ng-option:first-child{border-top-left-radius:4px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:#0000008a;cursor:pointer}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:#f5faff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected.ng-option-marked{color:#0000008a;background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{background-color:#fff;color:#000000de;padding:8px 10px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{color:#333;background-color:#ebf5ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected .ng-option-label,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked .ng-option-label{font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:#f5faff;color:#333}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:#ccc}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:22px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:22px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{font-size:80%;font-weight:400;padding-right:5px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-left:5px;padding-right:0}[dir=rtl] .ng-dropdown-panel{direction:rtl;text-align:right}@charset "UTF-8";:root,[data-bs-theme=light]{--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: rgb(234, 22, 31);--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(234, 22, 31);--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: 234, 22, 31;--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: #5e090c;--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: #fbd0d2;--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: #f7a2a5;--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(234, 22, 31);--bs-form-invalid-border-color: rgb(234, 22, 31)}[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: #f27379;--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: #2f0406;--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: #8c0d13;--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: #f27379;--bs-form-invalid-border-color: #f27379}*,*: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"}:root{--bs-breakpoint-xs: 0;--bs-breakpoint-sm: 576px;--bs-breakpoint-md: 768px;--bs-breakpoint-lg: 992px;--bs-breakpoint-xl: 1200px;--bs-breakpoint-xxl: 1400px}.row{--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.66666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--bs-gutter-x: 0}.g-0,.gy-0{--bs-gutter-y: 0}.g-1,.gx-1{--bs-gutter-x: .25rem}.g-1,.gy-1{--bs-gutter-y: .25rem}.g-2,.gx-2{--bs-gutter-x: .5rem}.g-2,.gy-2{--bs-gutter-y: .5rem}.g-3,.gx-3{--bs-gutter-x: 1rem}.g-3,.gy-3{--bs-gutter-y: 1rem}.g-4,.gx-4{--bs-gutter-x: 1.5rem}.g-4,.gy-4{--bs-gutter-y: 1.5rem}.g-5,.gx-5{--bs-gutter-x: 3rem}.g-5,.gy-5{--bs-gutter-y: 3rem}@media (min-width: 576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.66666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--bs-gutter-x: 0}.g-sm-0,.gy-sm-0{--bs-gutter-y: 0}.g-sm-1,.gx-sm-1{--bs-gutter-x: .25rem}.g-sm-1,.gy-sm-1{--bs-gutter-y: .25rem}.g-sm-2,.gx-sm-2{--bs-gutter-x: .5rem}.g-sm-2,.gy-sm-2{--bs-gutter-y: .5rem}.g-sm-3,.gx-sm-3{--bs-gutter-x: 1rem}.g-sm-3,.gy-sm-3{--bs-gutter-y: 1rem}.g-sm-4,.gx-sm-4{--bs-gutter-x: 1.5rem}.g-sm-4,.gy-sm-4{--bs-gutter-y: 1.5rem}.g-sm-5,.gx-sm-5{--bs-gutter-x: 3rem}.g-sm-5,.gy-sm-5{--bs-gutter-y: 3rem}}@media (min-width: 768px){.col-md{flex:1 0 0%}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.66666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--bs-gutter-x: 0}.g-md-0,.gy-md-0{--bs-gutter-y: 0}.g-md-1,.gx-md-1{--bs-gutter-x: .25rem}.g-md-1,.gy-md-1{--bs-gutter-y: .25rem}.g-md-2,.gx-md-2{--bs-gutter-x: .5rem}.g-md-2,.gy-md-2{--bs-gutter-y: .5rem}.g-md-3,.gx-md-3{--bs-gutter-x: 1rem}.g-md-3,.gy-md-3{--bs-gutter-y: 1rem}.g-md-4,.gx-md-4{--bs-gutter-x: 1.5rem}.g-md-4,.gy-md-4{--bs-gutter-y: 1.5rem}.g-md-5,.gx-md-5{--bs-gutter-x: 3rem}.g-md-5,.gy-md-5{--bs-gutter-y: 3rem}}@media (min-width: 992px){.col-lg{flex:1 0 0%}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.66666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--bs-gutter-x: 0}.g-lg-0,.gy-lg-0{--bs-gutter-y: 0}.g-lg-1,.gx-lg-1{--bs-gutter-x: .25rem}.g-lg-1,.gy-lg-1{--bs-gutter-y: .25rem}.g-lg-2,.gx-lg-2{--bs-gutter-x: .5rem}.g-lg-2,.gy-lg-2{--bs-gutter-y: .5rem}.g-lg-3,.gx-lg-3{--bs-gutter-x: 1rem}.g-lg-3,.gy-lg-3{--bs-gutter-y: 1rem}.g-lg-4,.gx-lg-4{--bs-gutter-x: 1.5rem}.g-lg-4,.gy-lg-4{--bs-gutter-y: 1.5rem}.g-lg-5,.gx-lg-5{--bs-gutter-x: 3rem}.g-lg-5,.gy-lg-5{--bs-gutter-y: 3rem}}@media (min-width: 1200px){.col-xl{flex:1 0 0%}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.66666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--bs-gutter-x: 0}.g-xl-0,.gy-xl-0{--bs-gutter-y: 0}.g-xl-1,.gx-xl-1{--bs-gutter-x: .25rem}.g-xl-1,.gy-xl-1{--bs-gutter-y: .25rem}.g-xl-2,.gx-xl-2{--bs-gutter-x: .5rem}.g-xl-2,.gy-xl-2{--bs-gutter-y: .5rem}.g-xl-3,.gx-xl-3{--bs-gutter-x: 1rem}.g-xl-3,.gy-xl-3{--bs-gutter-y: 1rem}.g-xl-4,.gx-xl-4{--bs-gutter-x: 1.5rem}.g-xl-4,.gy-xl-4{--bs-gutter-y: 1.5rem}.g-xl-5,.gx-xl-5{--bs-gutter-x: 3rem}.g-xl-5,.gy-xl-5{--bs-gutter-y: 3rem}}@media (min-width: 1400px){.col-xxl{flex:1 0 0%}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.66666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--bs-gutter-x: 0}.g-xxl-0,.gy-xxl-0{--bs-gutter-y: 0}.g-xxl-1,.gx-xxl-1{--bs-gutter-x: .25rem}.g-xxl-1,.gy-xxl-1{--bs-gutter-y: .25rem}.g-xxl-2,.gx-xxl-2{--bs-gutter-x: .5rem}.g-xxl-2,.gy-xxl-2{--bs-gutter-y: .5rem}.g-xxl-3,.gx-xxl-3{--bs-gutter-x: 1rem}.g-xxl-3,.gy-xxl-3{--bs-gutter-y: 1rem}.g-xxl-4,.gx-xxl-4{--bs-gutter-x: 1.5rem}.g-xxl-4,.gy-xxl-4{--bs-gutter-y: 1.5rem}.g-xxl-5,.gx-xxl-5{--bs-gutter-x: 3rem}.g-xxl-5,.gy-xxl-5{--bs-gutter-y: 3rem}}.table{--bs-table-color-type: initial;--bs-table-bg-type: initial;--bs-table-color-state: initial;--bs-table-bg-state: initial;--bs-table-color: var(--bs-emphasis-color);--bs-table-bg: var(--bs-body-bg);--bs-table-border-color: var(--bs-border-color);--bs-table-accent-bg: transparent;--bs-table-striped-color: var(--bs-emphasis-color);--bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), .05);--bs-table-active-color: var(--bs-emphasis-color);--bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), .1);--bs-table-hover-color: var(--bs-emphasis-color);--bs-table-hover-bg: rgba(var(--bs-emphasis-color-rgb), .075);width:100%;margin-bottom:1rem;vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:.5rem;color:var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));background-color:var(--bs-table-bg);border-bottom-width:var(--bs-border-width);box-shadow:inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)))}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table-group-divider{border-top:calc(var(--bs-border-width) * 2) solid currentcolor}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem}.table-bordered>:not(caption)>*{border-width:var(--bs-border-width) 0}.table-bordered>:not(caption)>*>*{border-width:0 var(--bs-border-width)}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-color-type: var(--bs-table-striped-color);--bs-table-bg-type: var(--bs-table-striped-bg)}.table-striped-columns>:not(caption)>tr>:nth-child(2n){--bs-table-color-type: var(--bs-table-striped-color);--bs-table-bg-type: var(--bs-table-striped-bg)}.table-active{--bs-table-color-state: var(--bs-table-active-color);--bs-table-bg-state: var(--bs-table-active-bg)}.table-hover>tbody>tr:hover>*{--bs-table-color-state: var(--bs-table-hover-color);--bs-table-bg-state: var(--bs-table-hover-bg)}.table-primary{--bs-table-color: #000;--bs-table-bg: rgba(222, 222, 222, .99);--bs-table-border-color: rgba(177, 177, 177, .992);--bs-table-striped-bg: rgba(211, 211, 211, .9905);--bs-table-striped-color: #000;--bs-table-active-bg: rgba(199, 199, 199, .991);--bs-table-active-color: #000;--bs-table-hover-bg: rgba(205, 205, 205, .99075);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-secondary{--bs-table-color: #000;--bs-table-bg: #f8f8f8;--bs-table-border-color: #c6c6c6;--bs-table-striped-bg: #ececec;--bs-table-striped-color: #000;--bs-table-active-bg: #dfdfdf;--bs-table-active-color: #000;--bs-table-hover-bg: #e5e5e5;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-success{--bs-table-color: #000;--bs-table-bg: #d8e7ce;--bs-table-border-color: #adb9a5;--bs-table-striped-bg: #cddbc4;--bs-table-striped-color: #000;--bs-table-active-bg: #c2d0b9;--bs-table-active-color: #000;--bs-table-hover-bg: #c8d6bf;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-info{--bs-table-color: #000;--bs-table-bg: #cff4fc;--bs-table-border-color: #a6c3ca;--bs-table-striped-bg: #c5e8ef;--bs-table-striped-color: #000;--bs-table-active-bg: #badce3;--bs-table-active-color: #000;--bs-table-hover-bg: #bfe2e9;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-warning{--bs-table-color: #000;--bs-table-bg: #ffeed0;--bs-table-border-color: #ccbea6;--bs-table-striped-bg: #f2e2c6;--bs-table-striped-color: #000;--bs-table-active-bg: #e6d6bb;--bs-table-active-color: #000;--bs-table-hover-bg: #ecdcc0;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-danger{--bs-table-color: #000;--bs-table-bg: #fbd0d2;--bs-table-border-color: #c9a6a8;--bs-table-striped-bg: #eec6c8;--bs-table-striped-color: #000;--bs-table-active-bg: #e2bbbd;--bs-table-active-color: #000;--bs-table-hover-bg: #e8c0c2;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-light{--bs-table-color: #000;--bs-table-bg: #f8f9fa;--bs-table-border-color: #c6c7c8;--bs-table-striped-bg: #ecedee;--bs-table-striped-color: #000;--bs-table-active-bg: #dfe0e1;--bs-table-active-color: #000;--bs-table-hover-bg: #e5e6e7;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-dark{--bs-table-color: #fff;--bs-table-bg: #212529;--bs-table-border-color: #4d5154;--bs-table-striped-bg: #2c3034;--bs-table-striped-color: #fff;--bs-table-active-bg: #373b3e;--bs-table-active-color: #fff;--bs-table-hover-bg: #323539;--bs-table-hover-color: #fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width: 575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.form-label{margin-bottom:.5rem}.col-form-label{padding-top:calc(.375rem + var(--bs-border-width));padding-bottom:calc(.375rem + var(--bs-border-width));margin-bottom:0;font-size:inherit;line-height:1.625}.col-form-label-lg{padding-top:calc(.5rem + var(--bs-border-width));padding-bottom:calc(.5rem + var(--bs-border-width));font-size:1.25rem}.col-form-label-sm{padding-top:calc(.25rem + var(--bs-border-width));padding-bottom:calc(.25rem + var(--bs-border-width));font-size:.875rem}.form-text{margin-top:.25rem;font-size:.875em;color:var(--bs-secondary-color)}.form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:300;line-height:1.625;color:var(--bs-body-color);appearance:none;background-color:var(--bs-body-bg);background-clip:padding-box;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:0;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:var(--bs-body-color);background-color:var(--bs-body-bg);border-color:#abababf9;outline:0;box-shadow:0 0 0 .25rem #4e4e4e40}.form-control::-webkit-date-and-time-value{min-width:85px;height:1.625em;margin:0}.form-control::-webkit-datetime-edit{display:block;padding:0}.form-control::placeholder{color:var(--bs-secondary-color);opacity:1}.form-control:disabled{background-color:var(--bs-secondary-bg);opacity:1}.form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;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){.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:var(--bs-secondary-bg)}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;line-height:1.625;color:var(--bs-body-color);background-color:transparent;border:solid transparent;border-width:var(--bs-border-width) 0}.form-control-plaintext:focus{outline:0}.form-control-plaintext.form-control-sm,.form-control-plaintext.form-control-lg{padding-right:0;padding-left:0}.form-control-sm{min-height:calc(1.625em + .5rem + calc(var(--bs-border-width) * 2));padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-control-sm::file-selector-button{padding:.25rem .5rem;margin:-.25rem -.5rem;margin-inline-end:.5rem}.form-control-lg{min-height:calc(1.625em + 1rem + calc(var(--bs-border-width) * 2));padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.form-control-lg::file-selector-button{padding:.5rem 1rem;margin:-.5rem -1rem;margin-inline-end:1rem}textarea.form-control{min-height:calc(1.625em + .75rem + calc(var(--bs-border-width) * 2))}textarea.form-control-sm{min-height:calc(1.625em + .5rem + calc(var(--bs-border-width) * 2))}textarea.form-control-lg{min-height:calc(1.625em + 1rem + calc(var(--bs-border-width) * 2))}.form-control-color{width:3rem;height:calc(1.625em + .75rem + calc(var(--bs-border-width) * 2));padding:.375rem}.form-control-color:not(:disabled):not([readonly]){cursor:pointer}.form-control-color::-moz-color-swatch{border:0!important;border-radius:0}.form-control-color::-webkit-color-swatch{border:0!important;border-radius:0}.form-control-color.form-control-sm{height:calc(1.625em + .5rem + calc(var(--bs-border-width) * 2))}.form-control-color.form-control-lg{height:calc(1.625em + 1rem + calc(var(--bs-border-width) * 2))}.form-select{--bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;font-size:1rem;font-weight:300;line-height:1.625;color:var(--bs-body-color);appearance:none;background-color:var(--bs-body-bg);background-image:var(--bs-form-select-bg-img),var(--bs-form-select-bg-icon, none);background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:0;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-select{transition:none}}.form-select:focus{border-color:#abababf9;outline:0;box-shadow:0 0 0 .25rem #4e4e4e40}.form-select[multiple],.form-select[size]:not([size="1"]){padding-right:.75rem;background-image:none}.form-select:disabled{background-color:var(--bs-secondary-bg)}.form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 var(--bs-body-color)}.form-select-sm{padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}[data-bs-theme=dark] .form-select{--bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e")}.form-check{display:block;min-height:1.625rem;padding-left:1.5em;margin-bottom:1rem}.form-check .form-check-input{float:left;margin-left:-1.5em}.form-check-reverse{padding-right:1.5em;padding-left:0;text-align:right}.form-check-reverse .form-check-input{float:right;margin-right:-1.5em;margin-left:0}.form-check-input{--bs-form-check-bg: var(--bs-body-bg);flex-shrink:0;width:1em;height:1em;margin-top:.3125em;vertical-align:top;appearance:none;background-color:var(--bs-form-check-bg);background-image:var(--bs-form-check-bg-image);background-repeat:no-repeat;background-position:center;background-size:contain;border:var(--bs-border-width) solid var(--bs-border-color);-webkit-print-color-adjust:exact;print-color-adjust:exact}.form-check-input[type=checkbox]{border-radius:.25em}.form-check-input[type=radio]{border-radius:50%}.form-check-input:active{filter:brightness(90%)}.form-check-input:focus{border-color:#abababf9;outline:0;box-shadow:0 0 0 .25rem #4e4e4e40}.form-check-input:checked{background-color:#4e4e4ef2;border-color:#4e4e4ef2}.form-check-input:checked[type=checkbox]{--bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e")}.form-check-input:checked[type=radio]{--bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e")}.form-check-input[type=checkbox]:indeterminate{background-color:#4e4e4ef2;border-color:#4e4e4ef2;--bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e")}.form-check-input:disabled{pointer-events:none;filter:none;opacity:.5}.form-check-input[disabled]~.form-check-label,.form-check-input:disabled~.form-check-label{cursor:default;opacity:.5}.form-switch{padding-left:2.5em}.form-switch .form-check-input{--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");width:2em;margin-left:-2.5em;background-image:var(--bs-form-switch-bg);background-position:left center;border-radius:2em;transition:background-position .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-switch .form-check-input{transition:none}}.form-switch .form-check-input:focus{--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28171, 171, 171, 0.975%29'/%3e%3c/svg%3e")}.form-switch .form-check-input:checked{background-position:right center;--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")}.form-switch.form-check-reverse{padding-right:2.5em;padding-left:0}.form-switch.form-check-reverse .form-check-input{margin-right:-2.5em;margin-left:0}.form-check-inline{display:inline-block;margin-right:1rem}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check[disabled]+.btn,.btn-check:disabled+.btn{pointer-events:none;filter:none;opacity:.65}[data-bs-theme=dark] .form-switch .form-check-input:not(:checked):not(:focus){--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 0.25%29'/%3e%3c/svg%3e")}.form-range{width:100%;height:1.5rem;padding:0;appearance:none;background-color:transparent}.form-range:focus{outline:0}.form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #4e4e4e40}.form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #4e4e4e40}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;appearance:none;background-color:#4e4e4ef2;border:0;border-radius:1rem;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.form-range::-webkit-slider-thumb:active{background-color:#cececefb}.form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}.form-range::-moz-range-thumb{width:1rem;height:1rem;appearance:none;background-color:#4e4e4ef2;border:0;border-radius:1rem;-moz-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-range::-moz-range-thumb{-moz-transition:none;transition:none}}.form-range::-moz-range-thumb:active{background-color:#cececefb}.form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}.form-range:disabled{pointer-events:none}.form-range:disabled::-webkit-slider-thumb{background-color:var(--bs-secondary-color)}.form-range:disabled::-moz-range-thumb{background-color:var(--bs-secondary-color)}.form-floating{position:relative}.form-floating>.form-control,.form-floating>.form-control-plaintext,.form-floating>.form-select{height:calc(3.5rem + calc(var(--bs-border-width) * 2));min-height:calc(3.5rem + calc(var(--bs-border-width) * 2));line-height:1.25}.form-floating>label{position:absolute;top:0;left:0;z-index:2;height:100%;padding:1rem .75rem;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border:var(--bs-border-width) solid transparent;transform-origin:0 0;transition:opacity .1s ease-in-out,transform .1s ease-in-out}@media (prefers-reduced-motion: reduce){.form-floating>label{transition:none}}.form-floating>.form-control,.form-floating>.form-control-plaintext{padding:1rem .75rem}.form-floating>.form-control::placeholder,.form-floating>.form-control-plaintext::placeholder{color:transparent}.form-floating>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown),.form-floating>.form-control-plaintext:focus,.form-floating>.form-control-plaintext:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:-webkit-autofill,.form-floating>.form-control-plaintext:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-select{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-floating>.form-control-plaintext~label,.form-floating>.form-select~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control:focus~label:after,.form-floating>.form-control:not(:placeholder-shown)~label:after,.form-floating>.form-control-plaintext~label:after,.form-floating>.form-select~label:after{position:absolute;inset:1rem .375rem;z-index:-1;height:1.5em;content:"";background-color:var(--bs-body-bg);border-radius:0}.form-floating>.form-control:-webkit-autofill~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control-plaintext~label{border-width:var(--bs-border-width) 0}.form-floating>:disabled~label,.form-floating>.form-control:disabled~label{color:#6c757d}.form-floating>:disabled~label:after,.form-floating>.form-control:disabled~label:after{background-color:var(--bs-secondary-bg)}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-select,.input-group>.form-floating{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus,.input-group>.form-select:focus,.input-group>.form-floating:focus-within{z-index:5}.input-group .btn{position:relative;z-index:2}.input-group .btn:focus{z-index:5}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;font-size:1rem;font-weight:300;line-height:1.625;color:var(--bs-body-color);text-align:center;white-space:nowrap;background-color:var(--bs-tertiary-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:0}.input-group-lg>.form-control,.input-group-lg>.form-select,.input-group-lg>.input-group-text,.input-group-lg>.btn{padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text,.input-group-sm>.btn{padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.input-group-lg>.form-select,.input-group-sm>.form-select{padding-right:3rem}.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:calc(var(--bs-border-width) * -1);border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.form-floating:not(:first-child)>.form-control,.input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-valid-color)}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-success);border-radius:var(--bs-border-radius)}.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip,.is-valid~.valid-feedback,.is-valid~.valid-tooltip{display:block}.was-validated .form-control:valid,.form-control.is-valid{border-color:var(--bs-form-valid-border-color);padding-right:calc(1.625em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='rgb%2861, 134, 8%29' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.40625em + .1875rem) center;background-size:calc(.8125em + .375rem) calc(.8125em + .375rem)}.was-validated .form-control:valid:focus,.form-control.is-valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.625em + .75rem);background-position:top calc(.40625em + .1875rem) right calc(.40625em + .1875rem)}.was-validated .form-select:valid,.form-select.is-valid{border-color:var(--bs-form-valid-border-color)}.was-validated .form-select:valid:not([multiple]):not([size]),.was-validated .form-select:valid:not([multiple])[size="1"],.form-select.is-valid:not([multiple]):not([size]),.form-select.is-valid:not([multiple])[size="1"]{--bs-form-select-bg-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='rgb%2861, 134, 8%29' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.8125em + .375rem) calc(.8125em + .375rem)}.was-validated .form-select:valid:focus,.form-select.is-valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated .form-control-color:valid,.form-control-color.is-valid{width:calc(3.75rem + 1.625em)}.was-validated .form-check-input:valid,.form-check-input.is-valid{border-color:var(--bs-form-valid-border-color)}.was-validated .form-check-input:valid:checked,.form-check-input.is-valid:checked{background-color:var(--bs-form-valid-color)}.was-validated .form-check-input:valid:focus,.form-check-input.is-valid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated .form-check-input:valid~.form-check-label,.form-check-input.is-valid~.form-check-label{color:var(--bs-form-valid-color)}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):valid,.input-group>.form-control:not(:focus).is-valid,.was-validated .input-group>.form-select:not(:focus):valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.input-group>.form-floating:not(:focus-within).is-valid{z-index:3}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-invalid-color)}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-danger);border-radius:var(--bs-border-radius)}.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip,.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip{display:block}.was-validated .form-control:invalid,.form-control.is-invalid{border-color:var(--bs-form-invalid-border-color);padding-right:calc(1.625em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='rgb%28234, 22, 31%29'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='rgb%28234, 22, 31%29' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.40625em + .1875rem) center;background-size:calc(.8125em + .375rem) calc(.8125em + .375rem)}.was-validated .form-control:invalid:focus,.form-control.is-invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.625em + .75rem);background-position:top calc(.40625em + .1875rem) right calc(.40625em + .1875rem)}.was-validated .form-select:invalid,.form-select.is-invalid{border-color:var(--bs-form-invalid-border-color)}.was-validated .form-select:invalid:not([multiple]):not([size]),.was-validated .form-select:invalid:not([multiple])[size="1"],.form-select.is-invalid:not([multiple]):not([size]),.form-select.is-invalid:not([multiple])[size="1"]{--bs-form-select-bg-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='rgb%28234, 22, 31%29'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='rgb%28234, 22, 31%29' stroke='none'/%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.8125em + .375rem) calc(.8125em + .375rem)}.was-validated .form-select:invalid:focus,.form-select.is-invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated .form-control-color:invalid,.form-control-color.is-invalid{width:calc(3.75rem + 1.625em)}.was-validated .form-check-input:invalid,.form-check-input.is-invalid{border-color:var(--bs-form-invalid-border-color)}.was-validated .form-check-input:invalid:checked,.form-check-input.is-invalid:checked{background-color:var(--bs-form-invalid-color)}.was-validated .form-check-input:invalid:focus,.form-check-input.is-invalid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated .form-check-input:invalid~.form-check-label,.form-check-input.is-invalid~.form-check-label{color:var(--bs-form-invalid-color)}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):invalid,.input-group>.form-control:not(:focus).is-invalid,.was-validated .input-group>.form-select:not(:focus):invalid,.input-group>.form-select:not(:focus).is-invalid,.was-validated .input-group>.form-floating:not(:focus-within):invalid,.input-group>.form-floating:not(:focus-within).is-invalid{z-index:4}.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-check:checked:focus-visible+.btn{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(234, 22, 31);--bs-btn-border-color: rgb(234, 22, 31);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #c7131a;--bs-btn-hover-border-color: #bb1219;--bs-btn-focus-shadow-rgb: 237, 57, 65;--bs-btn-active-color: #fff;--bs-btn-active-bg: #bb1219;--bs-btn-active-border-color: #b01117;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: rgb(234, 22, 31);--bs-btn-disabled-border-color: rgb(234, 22, 31)}.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(234, 22, 31);--bs-btn-border-color: rgb(234, 22, 31);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(234, 22, 31);--bs-btn-hover-border-color: rgb(234, 22, 31);--bs-btn-focus-shadow-rgb: 234, 22, 31;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(234, 22, 31);--bs-btn-active-border-color: rgb(234, 22, 31);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(234, 22, 31);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(234, 22, 31);--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)}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion: reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion: reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media (prefers-reduced-motion: reduce){.collapsing.collapse-horizontal{transition:none}}.dropup,.dropend,.dropdown,.dropstart,.dropup-center,.dropdown-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty:after{margin-left:0}.dropdown-menu{--bs-dropdown-zindex: 1000;--bs-dropdown-min-width: 10rem;--bs-dropdown-padding-x: 0;--bs-dropdown-padding-y: .5rem;--bs-dropdown-spacer: .125rem;--bs-dropdown-font-size: 1rem;--bs-dropdown-color: var(--bs-body-color);--bs-dropdown-bg: var(--bs-body-bg);--bs-dropdown-border-color: var(--bs-border-color-translucent);--bs-dropdown-border-radius: var(--bs-border-radius);--bs-dropdown-border-width: var(--bs-border-width);--bs-dropdown-inner-border-radius: calc(var(--bs-border-radius) - var(--bs-border-width));--bs-dropdown-divider-bg: var(--bs-border-color-translucent);--bs-dropdown-divider-margin-y: .5rem;--bs-dropdown-box-shadow: var(--bs-box-shadow);--bs-dropdown-link-color: var(--bs-body-color);--bs-dropdown-link-hover-color: var(--bs-body-color);--bs-dropdown-link-hover-bg: var(--bs-tertiary-bg);--bs-dropdown-link-active-color: #fff;--bs-dropdown-link-active-bg: rgba(78, 78, 78, .95);--bs-dropdown-link-disabled-color: var(--bs-tertiary-color);--bs-dropdown-item-padding-x: 1rem;--bs-dropdown-item-padding-y: .25rem;--bs-dropdown-header-color: #6c757d;--bs-dropdown-header-padding-x: 1rem;--bs-dropdown-header-padding-y: .5rem;position:absolute;z-index:var(--bs-dropdown-zindex);display:none;min-width:var(--bs-dropdown-min-width);padding:var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);margin:0;font-size:var(--bs-dropdown-font-size);color:var(--bs-dropdown-color);text-align:left;list-style:none;background-color:var(--bs-dropdown-bg);background-clip:padding-box;border:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);border-radius:var(--bs-dropdown-border-radius)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--bs-dropdown-spacer)}.dropdown-menu-start{--bs-position: start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position: end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width: 576px){.dropdown-menu-sm-start{--bs-position: start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position: end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 768px){.dropdown-menu-md-start{--bs-position: start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position: end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 992px){.dropdown-menu-lg-start{--bs-position: start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position: end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1200px){.dropdown-menu-xl-start{--bs-position: start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position: end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1400px){.dropdown-menu-xxl-start{--bs-position: start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position: end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--bs-dropdown-spacer)}.dropup .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--bs-dropdown-spacer)}.dropend .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropend .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-toggle:after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--bs-dropdown-spacer)}.dropstart .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropstart .dropdown-toggle:after{display:none}.dropstart .dropdown-toggle:before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropstart .dropdown-toggle:empty:after{margin-left:0}.dropstart .dropdown-toggle:before{vertical-align:0}.dropdown-divider{height:0;margin:var(--bs-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--bs-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--bs-dropdown-link-color);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0;border-radius:var(--bs-dropdown-item-border-radius, 0)}.dropdown-item:hover,.dropdown-item:focus{color:var(--bs-dropdown-link-hover-color);background-color:var(--bs-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--bs-dropdown-link-active-color);text-decoration:none;background-color:var(--bs-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--bs-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--bs-dropdown-header-padding-y) var(--bs-dropdown-header-padding-x);margin-bottom:0;font-size:.875rem;color:var(--bs-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);color:var(--bs-dropdown-link-color)}.dropdown-menu-dark{--bs-dropdown-color: #dee2e6;--bs-dropdown-bg: #343a40;--bs-dropdown-border-color: var(--bs-border-color-translucent);--bs-dropdown-box-shadow: ;--bs-dropdown-link-color: #dee2e6;--bs-dropdown-link-hover-color: #fff;--bs-dropdown-divider-bg: var(--bs-border-color-translucent);--bs-dropdown-link-hover-bg: rgba(255, 255, 255, .15);--bs-dropdown-link-active-color: #fff;--bs-dropdown-link-active-bg: rgba(78, 78, 78, .95);--bs-dropdown-link-disabled-color: #adb5bd;--bs-dropdown-header-color: #adb5bd}.alert{--bs-alert-bg: transparent;--bs-alert-padding-x: 1rem;--bs-alert-padding-y: 1rem;--bs-alert-margin-bottom: 1rem;--bs-alert-color: inherit;--bs-alert-border-color: transparent;--bs-alert-border: var(--bs-border-width) solid var(--bs-alert-border-color);--bs-alert-border-radius: var(--bs-border-radius);--bs-alert-link-color: inherit;position:relative;padding:var(--bs-alert-padding-y) var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius)}.alert-heading{color:inherit}.alert-link{font-weight:700;color:var(--bs-alert-link-color)}.alert-dismissible{padding-right:3rem}.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:1.25rem 1rem}.alert-primary{--bs-alert-color: var(--bs-primary-text-emphasis);--bs-alert-bg: var(--bs-primary-bg-subtle);--bs-alert-border-color: var(--bs-primary-border-subtle);--bs-alert-link-color: var(--bs-primary-text-emphasis)}.alert-secondary{--bs-alert-color: var(--bs-secondary-text-emphasis);--bs-alert-bg: var(--bs-secondary-bg-subtle);--bs-alert-border-color: var(--bs-secondary-border-subtle);--bs-alert-link-color: var(--bs-secondary-text-emphasis)}.alert-success{--bs-alert-color: var(--bs-success-text-emphasis);--bs-alert-bg: var(--bs-success-bg-subtle);--bs-alert-border-color: var(--bs-success-border-subtle);--bs-alert-link-color: var(--bs-success-text-emphasis)}.alert-info{--bs-alert-color: var(--bs-info-text-emphasis);--bs-alert-bg: var(--bs-info-bg-subtle);--bs-alert-border-color: var(--bs-info-border-subtle);--bs-alert-link-color: var(--bs-info-text-emphasis)}.alert-warning{--bs-alert-color: var(--bs-warning-text-emphasis);--bs-alert-bg: var(--bs-warning-bg-subtle);--bs-alert-border-color: var(--bs-warning-border-subtle);--bs-alert-link-color: var(--bs-warning-text-emphasis)}.alert-danger{--bs-alert-color: var(--bs-danger-text-emphasis);--bs-alert-bg: var(--bs-danger-bg-subtle);--bs-alert-border-color: var(--bs-danger-border-subtle);--bs-alert-link-color: var(--bs-danger-text-emphasis)}.alert-light{--bs-alert-color: var(--bs-light-text-emphasis);--bs-alert-bg: var(--bs-light-bg-subtle);--bs-alert-border-color: var(--bs-light-border-subtle);--bs-alert-link-color: var(--bs-light-text-emphasis)}.alert-dark{--bs-alert-color: var(--bs-dark-text-emphasis);--bs-alert-bg: var(--bs-dark-bg-subtle);--bs-alert-border-color: var(--bs-dark-border-subtle);--bs-alert-link-color: var(--bs-dark-text-emphasis)}.btn-close{--bs-btn-close-color: #000;--bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");--bs-btn-close-opacity: .5;--bs-btn-close-hover-opacity: .75;--bs-btn-close-focus-shadow: 0 0 0 .25rem rgba(78, 78, 78, .25);--bs-btn-close-focus-opacity: 1;--bs-btn-close-disabled-opacity: .25;--bs-btn-close-white-filter: invert(1) grayscale(100%) brightness(200%);box-sizing:content-box;width:1em;height:1em;padding:.25em;color:var(--bs-btn-close-color);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;border:0;border-radius:.375rem;opacity:var(--bs-btn-close-opacity)}.btn-close:hover{color:var(--bs-btn-close-color);text-decoration:none;opacity:var(--bs-btn-close-hover-opacity)}.btn-close:focus{outline:0;box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity)}.btn-close:disabled,.btn-close.disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:var(--bs-btn-close-disabled-opacity)}.btn-close-white,[data-bs-theme=dark] .btn-close{filter:var(--bs-btn-close-white-filter)}.toast{--bs-toast-zindex: 1090;--bs-toast-padding-x: .75rem;--bs-toast-padding-y: .5rem;--bs-toast-spacing: 1.5rem;--bs-toast-max-width: 350px;--bs-toast-font-size: .875rem;--bs-toast-color: ;--bs-toast-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-border-width: var(--bs-border-width);--bs-toast-border-color: var(--bs-border-color-translucent);--bs-toast-border-radius: var(--bs-border-radius);--bs-toast-box-shadow: var(--bs-box-shadow);--bs-toast-header-color: var(--bs-secondary-color);--bs-toast-header-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-header-border-color: var(--bs-border-color-translucent);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}.toast.showing{opacity:0}.toast:not(.show){display:none}.toast-container{--bs-toast-zindex: 1090;position:absolute;z-index:var(--bs-toast-zindex);width:max-content;max-width:100%;pointer-events:none}.toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}.toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}.toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}.toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}.modal{--bs-modal-zindex: 1055;--bs-modal-width: 500px;--bs-modal-padding: 1rem;--bs-modal-margin: .5rem;--bs-modal-color: ;--bs-modal-bg: var(--bs-body-bg);--bs-modal-border-color: var(--bs-border-color-translucent);--bs-modal-border-width: var(--bs-border-width);--bs-modal-border-radius: var(--bs-border-radius-lg);--bs-modal-box-shadow: var(--bs-box-shadow-sm);--bs-modal-inner-border-radius: calc(var(--bs-border-radius-lg) - (var(--bs-border-width)));--bs-modal-header-padding-x: 1rem;--bs-modal-header-padding-y: 1rem;--bs-modal-header-padding: 1rem 1rem;--bs-modal-header-border-color: var(--bs-border-color);--bs-modal-header-border-width: var(--bs-border-width);--bs-modal-title-line-height: 1.625;--bs-modal-footer-gap: .5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color: var(--bs-border-color);--bs-modal-footer-border-width: var(--bs-border-width);position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translateY(-50px)}@media (prefers-reduced-motion: reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}.modal-backdrop{--bs-backdrop-zindex: 1050;--bs-backdrop-bg: #000;--bs-backdrop-opacity: .5;position:fixed;top:0;left:0;z-index:var(--bs-backdrop-zindex);width:100vw;height:100vh;background-color:var(--bs-backdrop-bg)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--bs-backdrop-opacity)}.modal-header{display:flex;flex-shrink:0;align-items:center;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin:calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto}.modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media (min-width: 576px){.modal{--bs-modal-margin: 1.75rem;--bs-modal-box-shadow: var(--bs-box-shadow)}.modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}.modal-sm{--bs-modal-width: 300px}}@media (min-width: 992px){.modal-lg,.modal-xl{--bs-modal-width: 800px}}@media (min-width: 1200px){.modal-xl{--bs-modal-width: 1140px}}.modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen .modal-header,.modal-fullscreen .modal-footer{border-radius:0}.modal-fullscreen .modal-body{overflow-y:auto}@media (max-width: 575.98px){.modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-sm-down .modal-header,.modal-fullscreen-sm-down .modal-footer{border-radius:0}.modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media (max-width: 767.98px){.modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-md-down .modal-header,.modal-fullscreen-md-down .modal-footer{border-radius:0}.modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media (max-width: 991.98px){.modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-lg-down .modal-header,.modal-fullscreen-lg-down .modal-footer{border-radius:0}.modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media (max-width: 1199.98px){.modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xl-down .modal-header,.modal-fullscreen-xl-down .modal-footer{border-radius:0}.modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media (max-width: 1399.98px){.modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xxl-down .modal-header,.modal-fullscreen-xxl-down .modal-footer{border-radius:0}.modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}.tooltip{--bs-tooltip-zindex: 1080;--bs-tooltip-max-width: 200px;--bs-tooltip-padding-x: .5rem;--bs-tooltip-padding-y: .25rem;--bs-tooltip-margin: ;--bs-tooltip-font-size: .875rem;--bs-tooltip-color: var(--bs-body-bg);--bs-tooltip-bg: var(--bs-emphasis-color);--bs-tooltip-border-radius: var(--bs-border-radius);--bs-tooltip-opacity: .9;--bs-tooltip-arrow-width: .8rem;--bs-tooltip-arrow-height: .4rem;z-index:var(--bs-tooltip-zindex);display:block;margin:var(--bs-tooltip-margin);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.625;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--bs-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--bs-tooltip-arrow-width);height:var(--bs-tooltip-arrow-height)}.tooltip .tooltip-arrow:before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-top .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow{bottom:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-top .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow:before{top:-1px;border-width:var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-top-color:var(--bs-tooltip-bg)}.bs-tooltip-end .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow{left:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-end .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow:before{right:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-right-color:var(--bs-tooltip-bg)}.bs-tooltip-bottom .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow{top:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-bottom .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow:before{bottom:-1px;border-width:0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-bottom-color:var(--bs-tooltip-bg)}.bs-tooltip-start .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow{right:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-start .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow:before{left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-left-color:var(--bs-tooltip-bg)}.tooltip-inner{max-width:var(--bs-tooltip-max-width);padding:var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);color:var(--bs-tooltip-color);text-align:center;background-color:var(--bs-tooltip-bg);border-radius:var(--bs-tooltip-border-radius)}.spinner-grow,.spinner-border{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-border-width: .25em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem;--bs-spinner-border-width: .2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem}@media (prefers-reduced-motion: reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed: 1.5s}}.clearfix:after{display:block;clear:both;content:""}.text-bg-primary{color:#fff!important;background-color:RGBA(var(--bs-primary-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-secondary{color:#000!important;background-color:RGBA(var(--bs-secondary-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-success{color:#fff!important;background-color:RGBA(var(--bs-success-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-info{color:#000!important;background-color:RGBA(var(--bs-info-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-warning{color:#000!important;background-color:RGBA(var(--bs-warning-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-danger{color:#fff!important;background-color:RGBA(var(--bs-danger-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-light{color:#000!important;background-color:RGBA(var(--bs-light-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-dark{color:#fff!important;background-color:RGBA(var(--bs-dark-rgb),var(--bs-bg-opacity, 1))!important}.link-primary{color:RGBA(var(--bs-primary-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-primary-rgb),var(--bs-link-underline-opacity, 1))!important}.link-primary:hover,.link-primary:focus{color:RGBA(61,61,61,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(61,61,61,var(--bs-link-underline-opacity, 1))!important}.link-secondary{color:RGBA(var(--bs-secondary-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-secondary-rgb),var(--bs-link-underline-opacity, 1))!important}.link-secondary:hover,.link-secondary:focus{color:RGBA(229,229,229,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(229,229,229,var(--bs-link-underline-opacity, 1))!important}.link-success{color:RGBA(var(--bs-success-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-success-rgb),var(--bs-link-underline-opacity, 1))!important}.link-success:hover,.link-success:focus{color:RGBA(49,107,6,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(49,107,6,var(--bs-link-underline-opacity, 1))!important}.link-info{color:RGBA(var(--bs-info-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-info-rgb),var(--bs-link-underline-opacity, 1))!important}.link-info:hover,.link-info:focus{color:RGBA(61,213,243,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(61,213,243,var(--bs-link-underline-opacity, 1))!important}.link-warning{color:RGBA(var(--bs-warning-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-warning-rgb),var(--bs-link-underline-opacity, 1))!important}.link-warning:hover,.link-warning:focus{color:RGBA(255,185,67,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(255,185,67,var(--bs-link-underline-opacity, 1))!important}.link-danger{color:RGBA(var(--bs-danger-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-danger-rgb),var(--bs-link-underline-opacity, 1))!important}.link-danger:hover,.link-danger:focus{color:RGBA(187,18,25,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(187,18,25,var(--bs-link-underline-opacity, 1))!important}.link-light{color:RGBA(var(--bs-light-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-light-rgb),var(--bs-link-underline-opacity, 1))!important}.link-light:hover,.link-light:focus{color:RGBA(249,250,251,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(249,250,251,var(--bs-link-underline-opacity, 1))!important}.link-dark{color:RGBA(var(--bs-dark-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-dark-rgb),var(--bs-link-underline-opacity, 1))!important}.link-dark:hover,.link-dark:focus{color:RGBA(26,30,33,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(26,30,33,var(--bs-link-underline-opacity, 1))!important}.link-body-emphasis{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity, 1))!important}.link-body-emphasis:hover,.link-body-emphasis:focus{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity, .75))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity, .75))!important}.focus-ring:focus{outline:0;box-shadow:var(--bs-focus-ring-x, 0) var(--bs-focus-ring-y, 0) var(--bs-focus-ring-blur, 0) var(--bs-focus-ring-width) var(--bs-focus-ring-color)}.icon-link{display:inline-flex;gap:.375rem;align-items:center;text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity, .5));text-underline-offset:.25em;backface-visibility:hidden}.icon-link>.bi{flex-shrink:0;width:1em;height:1em;fill:currentcolor;transition:.2s ease-in-out transform}@media (prefers-reduced-motion: reduce){.icon-link>.bi{transition:none}}.icon-link-hover:hover>.bi,.icon-link-hover:focus-visible>.bi{transform:var(--bs-icon-link-transform, translate3d(.25em, 0, 0))}.ratio{position:relative;width:100%}.ratio:before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio: 100%}.ratio-4x3{--bs-aspect-ratio: 75%}.ratio-16x9{--bs-aspect-ratio: 56.25%}.ratio-21x9{--bs-aspect-ratio: 42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:sticky;top:0;z-index:1020}.sticky-bottom{position:sticky;bottom:0;z-index:1020}@media (min-width: 576px){.sticky-sm-top{position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 768px){.sticky-md-top{position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 992px){.sticky-lg-top{position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1200px){.sticky-xl-top{position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1400px){.sticky-xxl-top{position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.visually-hidden:not(caption),.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption){position:absolute!important}.stretched-link:after{position:absolute;inset:0;z-index:1;content:""}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:var(--bs-border-width);min-height:1em;background-color:currentcolor;opacity:.25}.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}}@font-face{font-family:Roboto;font-style:normal;font-weight:100;src:url(roboto-v30-latin-ext_latin-100.woff) format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:url(roboto-v30-latin-ext_latin-300.woff) format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:url(roboto-v30-latin-ext_latin-400.woff) format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:500;src:url(roboto-v30-latin-ext_latin-500.woff) format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:700;src:url(roboto-v30-latin-ext_latin-700.woff) format("woff")}h1,.h1{font-weight:100;line-height:1.15;margin:0 0 .5em}h2,.h2{font-weight:300;line-height:1.2;margin:0 0 .5em}h3,.h3{font-weight:300;line-height:1.23;margin:0 0 .5em}h4,.h4{font-weight:300;line-height:1.16;margin:0 0 .5em}h5,.h5{font-weight:300;line-height:1.19;margin:0 0 .5em}h6,.h6{font-weight:300;line-height:1.16;margin:0 0 .5em}.bkd-container{margin:0 auto;padding:0}.bkd-container-limited{max-width:960px;margin-left:0}.table th{padding-top:.25rem;padding-bottom:.25rem;font-weight:500}.table-fixed{table-layout:fixed}@media screen and (max-width: 820px){bkd-evaluate-absences-list>div>table thead,bkd-edit-absences-list>div>table thead{border:none;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}bkd-evaluate-absences-list>div>table tr,bkd-edit-absences-list>div>table tr{border-bottom:2px solid #ddd;display:block}bkd-evaluate-absences-list>div>table td,bkd-edit-absences-list>div>table td{border-bottom:1px solid #ddd;display:block;text-align:right;min-height:50px}bkd-evaluate-absences-list>div>table td:before,bkd-edit-absences-list>div>table td:before{content:attr(data-label);float:left}}a:hover,a:focus{text-decoration:underline;text-decoration-color:#ea161f;color:#000}.btn-link{text-decoration:none}.btn-outline-secondary{color:#000;border-color:#000}.btn-outline-secondary:hover{border-color:#000;background:#e6e6e6}.btn-icon{padding:.5rem;text-decoration:none}.btn-icon:hover{text-decoration:none}ngb-datepicker-navigation-select>.custom-select{font-size:1rem!important}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{width:2.5rem!important;height:2.5rem!important}[ngbDatepickerDayView]{width:2.5rem!important;height:2.5rem!important;line-height:2.5rem!important}.ngb-dp-months{padding:.5rem 2rem;background:#f8f9fa}.ngb-dp-weekday{color:#ea161f!important}@media (max-width: 575.98px){.ngb-dp-months{padding:.5rem}}.btn .material-icons{display:block}math{display:inline;text-indent:0}math[display=block]{display:block;text-align:center}mfrac{display:inline-block!important;vertical-align:-50%;border-collapse:collapse;text-align:center}mfrac>*{display:block!important}mfrac>*+*{display:inline-block!important;vertical-align:top}mfrac:not([linethickness="0"])>*:first-child{border-bottom:solid thin}mi{font-style:italic}mo{margin-right:.2em;margin-left:.2em}.ng-select-container{border-radius:.25rem!important}.ng-optgroup{border-bottom:1px solid #ccc;color:inherit!important;font-weight:400!important;color:#33333d!important}.ng-option{padding-left:10px!important;padding-top:3px!important;padding-bottom:3px!important;font-weight:400!important;color:#33333d!important}.ng-option-selected{font-weight:400!important;color:#33333d!important}.ng-placeholder{color:#495057!important}.ng-value{padding-left:4px!important}.tooltip-template .tooltip-inner{max-width:100%;border:2px solid;background-color:#fff;color:#000} +@charset "UTF-8";@font-face{font-family:Material Icons;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialicons/v142/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format("woff2")}@font-face{font-family:Material Icons Outlined;font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/materialiconsoutlined/v109/gok-H7zzDkdnRel8-DQ6KAXJ69wP1tGnf4ZGhUce.woff2) format("woff2")}.material-icons{font-family:Material Icons;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}.material-icons-outlined{font-family:Material Icons Outlined;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}.ng-select.ng-select-opened>.ng-select-container{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.ng-select.ng-select-opened>.ng-select-container:hover{box-shadow:none}.ng-select.ng-select-opened>.ng-select-container .ng-arrow{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.ng-select.ng-select-opened>.ng-select-container .ng-arrow:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-top>.ng-select-container{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-opened.ng-select-right>.ng-select-container{border-top-right-radius:0;border-bottom-right-radius:0}.ng-select.ng-select-opened.ng-select-bottom>.ng-select-container{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-left>.ng-select-container{border-top-left-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-focused:not(.ng-select-opened)>.ng-select-container{border-color:#007eff;box-shadow:inset 0 1px 1px #00000013,0 0 0 3px #007eff1a}.ng-select.ng-select-disabled>.ng-select-container{background-color:#f9f9f9}.ng-select .ng-has-value .ng-placeholder{display:none}.ng-select .ng-select-container{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select .ng-select-container:hover{box-shadow:0 1px #0000000f}.ng-select .ng-select-container .ng-value-container{align-items:center;padding-left:10px}[dir=rtl] .ng-select .ng-select-container .ng-value-container{padding-right:10px;padding-left:0}.ng-select .ng-select-container .ng-value-container .ng-placeholder{color:#999}.ng-select.ng-select-single .ng-select-container{height:36px}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=rtl] .ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value{background-color:#f9f9f9;border:1px solid #e6e6e6}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-label{padding:0 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-top:5px;padding-left:7px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{font-size:.9em;margin-bottom:5px;color:#333;background-color:#ebf5ff;border-radius:2px;margin-right:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled{background-color:#f9f9f9}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:5px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-label{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-label,.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-right:1px solid #b8dbff}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:1px solid #b8dbff}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 0 3px 3px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{padding:0 3px 3px 0}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input>input{color:#000}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{top:5px;padding-bottom:5px;padding-left:3px}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{padding-right:3px;padding-left:0}.ng-select .ng-clear-wrapper{color:#999}.ng-select .ng-clear-wrapper:hover .ng-clear{color:#d0021b}.ng-select .ng-clear-wrapper:focus .ng-clear{color:#d0021b}.ng-select .ng-clear-wrapper:focus{outline:none}.ng-select .ng-spinner-zone{padding:5px 5px 0 0}[dir=rtl] .ng-select .ng-spinner-zone{padding:5px 0 0 5px}.ng-select .ng-arrow-wrapper{width:25px;padding-right:5px}[dir=rtl] .ng-select .ng-arrow-wrapper{padding-left:5px;padding-right:0}.ng-select .ng-arrow-wrapper:hover .ng-arrow{border-top-color:#666}.ng-select .ng-arrow-wrapper .ng-arrow{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px #0000000f;left:0}.ng-dropdown-panel.ng-select-top{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel.ng-select-right{left:100%;top:0;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-right .ng-dropdown-panel-items .ng-option:first-child{border-top-right-radius:4px}.ng-dropdown-panel.ng-select-bottom{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:#e6e6e6;margin-top:-1px}.ng-dropdown-panel.ng-select-bottom .ng-dropdown-panel-items .ng-option:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-left{left:-100%;top:0;border-top-left-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-left .ng-dropdown-panel-items .ng-option:first-child{border-top-left-radius:4px}.ng-dropdown-panel .ng-dropdown-header{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-footer{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:#0000008a;cursor:pointer}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-disabled{cursor:default}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-marked{background-color:#f5faff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup.ng-option-selected.ng-option-marked{color:#0000008a;background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{background-color:#fff;color:#000000de;padding:8px 10px}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked{color:#333;background-color:#ebf5ff}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected .ng-option-label,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected.ng-option-marked .ng-option-label{font-weight:600}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked{background-color:#f5faff;color:#333}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{color:#ccc}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-left:22px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-child{padding-right:22px;padding-left:0}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{font-size:80%;font-weight:400;padding-right:5px}[dir=rtl] .ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-tag-label{padding-left:5px;padding-right:0}[dir=rtl] .ng-dropdown-panel{direction:rtl;text-align:right}:root,[data-bs-theme=light]{--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: rgb(234, 22, 31);--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(234, 22, 31);--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: 234, 22, 31;--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: #5e090c;--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: #fbd0d2;--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: #f7a2a5;--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(234, 22, 31);--bs-form-invalid-border-color: rgb(234, 22, 31)}[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: #f27379;--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: #2f0406;--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: #8c0d13;--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: #f27379;--bs-form-invalid-border-color: #f27379}*,*: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]{text-decoration:underline dotted;cursor:help;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"}:root{--bs-breakpoint-xs: 0;--bs-breakpoint-sm: 576px;--bs-breakpoint-md: 768px;--bs-breakpoint-lg: 992px;--bs-breakpoint-xl: 1200px;--bs-breakpoint-xxl: 1400px}.row{--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.66666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--bs-gutter-x: 0}.g-0,.gy-0{--bs-gutter-y: 0}.g-1,.gx-1{--bs-gutter-x: .25rem}.g-1,.gy-1{--bs-gutter-y: .25rem}.g-2,.gx-2{--bs-gutter-x: .5rem}.g-2,.gy-2{--bs-gutter-y: .5rem}.g-3,.gx-3{--bs-gutter-x: 1rem}.g-3,.gy-3{--bs-gutter-y: 1rem}.g-4,.gx-4{--bs-gutter-x: 1.5rem}.g-4,.gy-4{--bs-gutter-y: 1.5rem}.g-5,.gx-5{--bs-gutter-x: 3rem}.g-5,.gy-5{--bs-gutter-y: 3rem}@media (min-width: 576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.66666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--bs-gutter-x: 0}.g-sm-0,.gy-sm-0{--bs-gutter-y: 0}.g-sm-1,.gx-sm-1{--bs-gutter-x: .25rem}.g-sm-1,.gy-sm-1{--bs-gutter-y: .25rem}.g-sm-2,.gx-sm-2{--bs-gutter-x: .5rem}.g-sm-2,.gy-sm-2{--bs-gutter-y: .5rem}.g-sm-3,.gx-sm-3{--bs-gutter-x: 1rem}.g-sm-3,.gy-sm-3{--bs-gutter-y: 1rem}.g-sm-4,.gx-sm-4{--bs-gutter-x: 1.5rem}.g-sm-4,.gy-sm-4{--bs-gutter-y: 1.5rem}.g-sm-5,.gx-sm-5{--bs-gutter-x: 3rem}.g-sm-5,.gy-sm-5{--bs-gutter-y: 3rem}}@media (min-width: 768px){.col-md{flex:1 0 0%}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.66666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--bs-gutter-x: 0}.g-md-0,.gy-md-0{--bs-gutter-y: 0}.g-md-1,.gx-md-1{--bs-gutter-x: .25rem}.g-md-1,.gy-md-1{--bs-gutter-y: .25rem}.g-md-2,.gx-md-2{--bs-gutter-x: .5rem}.g-md-2,.gy-md-2{--bs-gutter-y: .5rem}.g-md-3,.gx-md-3{--bs-gutter-x: 1rem}.g-md-3,.gy-md-3{--bs-gutter-y: 1rem}.g-md-4,.gx-md-4{--bs-gutter-x: 1.5rem}.g-md-4,.gy-md-4{--bs-gutter-y: 1.5rem}.g-md-5,.gx-md-5{--bs-gutter-x: 3rem}.g-md-5,.gy-md-5{--bs-gutter-y: 3rem}}@media (min-width: 992px){.col-lg{flex:1 0 0%}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.66666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--bs-gutter-x: 0}.g-lg-0,.gy-lg-0{--bs-gutter-y: 0}.g-lg-1,.gx-lg-1{--bs-gutter-x: .25rem}.g-lg-1,.gy-lg-1{--bs-gutter-y: .25rem}.g-lg-2,.gx-lg-2{--bs-gutter-x: .5rem}.g-lg-2,.gy-lg-2{--bs-gutter-y: .5rem}.g-lg-3,.gx-lg-3{--bs-gutter-x: 1rem}.g-lg-3,.gy-lg-3{--bs-gutter-y: 1rem}.g-lg-4,.gx-lg-4{--bs-gutter-x: 1.5rem}.g-lg-4,.gy-lg-4{--bs-gutter-y: 1.5rem}.g-lg-5,.gx-lg-5{--bs-gutter-x: 3rem}.g-lg-5,.gy-lg-5{--bs-gutter-y: 3rem}}@media (min-width: 1200px){.col-xl{flex:1 0 0%}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.66666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--bs-gutter-x: 0}.g-xl-0,.gy-xl-0{--bs-gutter-y: 0}.g-xl-1,.gx-xl-1{--bs-gutter-x: .25rem}.g-xl-1,.gy-xl-1{--bs-gutter-y: .25rem}.g-xl-2,.gx-xl-2{--bs-gutter-x: .5rem}.g-xl-2,.gy-xl-2{--bs-gutter-y: .5rem}.g-xl-3,.gx-xl-3{--bs-gutter-x: 1rem}.g-xl-3,.gy-xl-3{--bs-gutter-y: 1rem}.g-xl-4,.gx-xl-4{--bs-gutter-x: 1.5rem}.g-xl-4,.gy-xl-4{--bs-gutter-y: 1.5rem}.g-xl-5,.gx-xl-5{--bs-gutter-x: 3rem}.g-xl-5,.gy-xl-5{--bs-gutter-y: 3rem}}@media (min-width: 1400px){.col-xxl{flex:1 0 0%}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.66666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--bs-gutter-x: 0}.g-xxl-0,.gy-xxl-0{--bs-gutter-y: 0}.g-xxl-1,.gx-xxl-1{--bs-gutter-x: .25rem}.g-xxl-1,.gy-xxl-1{--bs-gutter-y: .25rem}.g-xxl-2,.gx-xxl-2{--bs-gutter-x: .5rem}.g-xxl-2,.gy-xxl-2{--bs-gutter-y: .5rem}.g-xxl-3,.gx-xxl-3{--bs-gutter-x: 1rem}.g-xxl-3,.gy-xxl-3{--bs-gutter-y: 1rem}.g-xxl-4,.gx-xxl-4{--bs-gutter-x: 1.5rem}.g-xxl-4,.gy-xxl-4{--bs-gutter-y: 1.5rem}.g-xxl-5,.gx-xxl-5{--bs-gutter-x: 3rem}.g-xxl-5,.gy-xxl-5{--bs-gutter-y: 3rem}}.table{--bs-table-color-type: initial;--bs-table-bg-type: initial;--bs-table-color-state: initial;--bs-table-bg-state: initial;--bs-table-color: var(--bs-emphasis-color);--bs-table-bg: var(--bs-body-bg);--bs-table-border-color: var(--bs-border-color);--bs-table-accent-bg: transparent;--bs-table-striped-color: var(--bs-emphasis-color);--bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), .05);--bs-table-active-color: var(--bs-emphasis-color);--bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), .1);--bs-table-hover-color: var(--bs-emphasis-color);--bs-table-hover-bg: rgba(var(--bs-emphasis-color-rgb), .075);width:100%;margin-bottom:1rem;vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:.5rem;color:var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));background-color:var(--bs-table-bg);border-bottom-width:var(--bs-border-width);box-shadow:inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)))}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table-group-divider{border-top:calc(var(--bs-border-width) * 2) solid currentcolor}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem}.table-bordered>:not(caption)>*{border-width:var(--bs-border-width) 0}.table-bordered>:not(caption)>*>*{border-width:0 var(--bs-border-width)}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-color-type: var(--bs-table-striped-color);--bs-table-bg-type: var(--bs-table-striped-bg)}.table-striped-columns>:not(caption)>tr>:nth-child(2n){--bs-table-color-type: var(--bs-table-striped-color);--bs-table-bg-type: var(--bs-table-striped-bg)}.table-active{--bs-table-color-state: var(--bs-table-active-color);--bs-table-bg-state: var(--bs-table-active-bg)}.table-hover>tbody>tr:hover>*{--bs-table-color-state: var(--bs-table-hover-color);--bs-table-bg-state: var(--bs-table-hover-bg)}.table-primary{--bs-table-color: #000;--bs-table-bg: rgba(222, 222, 222, .99);--bs-table-border-color: rgba(177, 177, 177, .992);--bs-table-striped-bg: rgba(211, 211, 211, .9905);--bs-table-striped-color: #000;--bs-table-active-bg: rgba(199, 199, 199, .991);--bs-table-active-color: #000;--bs-table-hover-bg: rgba(205, 205, 205, .99075);--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-secondary{--bs-table-color: #000;--bs-table-bg: #f8f8f8;--bs-table-border-color: #c6c6c6;--bs-table-striped-bg: #ececec;--bs-table-striped-color: #000;--bs-table-active-bg: #dfdfdf;--bs-table-active-color: #000;--bs-table-hover-bg: #e5e5e5;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-success{--bs-table-color: #000;--bs-table-bg: #d8e7ce;--bs-table-border-color: #adb9a5;--bs-table-striped-bg: #cddbc4;--bs-table-striped-color: #000;--bs-table-active-bg: #c2d0b9;--bs-table-active-color: #000;--bs-table-hover-bg: #c8d6bf;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-info{--bs-table-color: #000;--bs-table-bg: #cff4fc;--bs-table-border-color: #a6c3ca;--bs-table-striped-bg: #c5e8ef;--bs-table-striped-color: #000;--bs-table-active-bg: #badce3;--bs-table-active-color: #000;--bs-table-hover-bg: #bfe2e9;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-warning{--bs-table-color: #000;--bs-table-bg: #ffeed0;--bs-table-border-color: #ccbea6;--bs-table-striped-bg: #f2e2c6;--bs-table-striped-color: #000;--bs-table-active-bg: #e6d6bb;--bs-table-active-color: #000;--bs-table-hover-bg: #ecdcc0;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-danger{--bs-table-color: #000;--bs-table-bg: #fbd0d2;--bs-table-border-color: #c9a6a8;--bs-table-striped-bg: #eec6c8;--bs-table-striped-color: #000;--bs-table-active-bg: #e2bbbd;--bs-table-active-color: #000;--bs-table-hover-bg: #e8c0c2;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-light{--bs-table-color: #000;--bs-table-bg: #f8f9fa;--bs-table-border-color: #c6c7c8;--bs-table-striped-bg: #ecedee;--bs-table-striped-color: #000;--bs-table-active-bg: #dfe0e1;--bs-table-active-color: #000;--bs-table-hover-bg: #e5e6e7;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-dark{--bs-table-color: #fff;--bs-table-bg: #212529;--bs-table-border-color: #4d5154;--bs-table-striped-bg: #2c3034;--bs-table-striped-color: #fff;--bs-table-active-bg: #373b3e;--bs-table-active-color: #fff;--bs-table-hover-bg: #323539;--bs-table-hover-color: #fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width: 575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.form-label{margin-bottom:.5rem}.col-form-label{padding-top:calc(.375rem + var(--bs-border-width));padding-bottom:calc(.375rem + var(--bs-border-width));margin-bottom:0;font-size:inherit;line-height:1.625}.col-form-label-lg{padding-top:calc(.5rem + var(--bs-border-width));padding-bottom:calc(.5rem + var(--bs-border-width));font-size:1.25rem}.col-form-label-sm{padding-top:calc(.25rem + var(--bs-border-width));padding-bottom:calc(.25rem + var(--bs-border-width));font-size:.875rem}.form-text{margin-top:.25rem;font-size:.875em;color:var(--bs-secondary-color)}.form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:300;line-height:1.625;color:var(--bs-body-color);appearance:none;background-color:var(--bs-body-bg);background-clip:padding-box;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:0;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:var(--bs-body-color);background-color:var(--bs-body-bg);border-color:#abababf9;outline:0;box-shadow:0 0 0 .25rem #4e4e4e40}.form-control::-webkit-date-and-time-value{min-width:85px;height:1.625em;margin:0}.form-control::-webkit-datetime-edit{display:block;padding:0}.form-control::placeholder{color:var(--bs-secondary-color);opacity:1}.form-control:disabled{background-color:var(--bs-secondary-bg);opacity:1}.form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;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){.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:var(--bs-secondary-bg)}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;line-height:1.625;color:var(--bs-body-color);background-color:transparent;border:solid transparent;border-width:var(--bs-border-width) 0}.form-control-plaintext:focus{outline:0}.form-control-plaintext.form-control-sm,.form-control-plaintext.form-control-lg{padding-right:0;padding-left:0}.form-control-sm{min-height:calc(1.625em + .5rem + calc(var(--bs-border-width) * 2));padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-control-sm::file-selector-button{padding:.25rem .5rem;margin:-.25rem -.5rem;margin-inline-end:.5rem}.form-control-lg{min-height:calc(1.625em + 1rem + calc(var(--bs-border-width) * 2));padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.form-control-lg::file-selector-button{padding:.5rem 1rem;margin:-.5rem -1rem;margin-inline-end:1rem}textarea.form-control{min-height:calc(1.625em + .75rem + calc(var(--bs-border-width) * 2))}textarea.form-control-sm{min-height:calc(1.625em + .5rem + calc(var(--bs-border-width) * 2))}textarea.form-control-lg{min-height:calc(1.625em + 1rem + calc(var(--bs-border-width) * 2))}.form-control-color{width:3rem;height:calc(1.625em + .75rem + calc(var(--bs-border-width) * 2));padding:.375rem}.form-control-color:not(:disabled):not([readonly]){cursor:pointer}.form-control-color::-moz-color-swatch{border:0!important;border-radius:0}.form-control-color::-webkit-color-swatch{border:0!important;border-radius:0}.form-control-color.form-control-sm{height:calc(1.625em + .5rem + calc(var(--bs-border-width) * 2))}.form-control-color.form-control-lg{height:calc(1.625em + 1rem + calc(var(--bs-border-width) * 2))}.form-select{--bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;font-size:1rem;font-weight:300;line-height:1.625;color:var(--bs-body-color);appearance:none;background-color:var(--bs-body-bg);background-image:var(--bs-form-select-bg-img),var(--bs-form-select-bg-icon, none);background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:0;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-select{transition:none}}.form-select:focus{border-color:#abababf9;outline:0;box-shadow:0 0 0 .25rem #4e4e4e40}.form-select[multiple],.form-select[size]:not([size="1"]){padding-right:.75rem;background-image:none}.form-select:disabled{background-color:var(--bs-secondary-bg)}.form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 var(--bs-body-color)}.form-select-sm{padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}[data-bs-theme=dark] .form-select{--bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e")}.form-check{display:block;min-height:1.625rem;padding-left:1.5em;margin-bottom:1rem}.form-check .form-check-input{float:left;margin-left:-1.5em}.form-check-reverse{padding-right:1.5em;padding-left:0;text-align:right}.form-check-reverse .form-check-input{float:right;margin-right:-1.5em;margin-left:0}.form-check-input{--bs-form-check-bg: var(--bs-body-bg);flex-shrink:0;width:1em;height:1em;margin-top:.3125em;vertical-align:top;appearance:none;background-color:var(--bs-form-check-bg);background-image:var(--bs-form-check-bg-image);background-repeat:no-repeat;background-position:center;background-size:contain;border:var(--bs-border-width) solid var(--bs-border-color);-webkit-print-color-adjust:exact;print-color-adjust:exact}.form-check-input[type=checkbox]{border-radius:.25em}.form-check-input[type=radio]{border-radius:50%}.form-check-input:active{filter:brightness(90%)}.form-check-input:focus{border-color:#abababf9;outline:0;box-shadow:0 0 0 .25rem #4e4e4e40}.form-check-input:checked{background-color:#4e4e4ef2;border-color:#4e4e4ef2}.form-check-input:checked[type=checkbox]{--bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e")}.form-check-input:checked[type=radio]{--bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e")}.form-check-input[type=checkbox]:indeterminate{background-color:#4e4e4ef2;border-color:#4e4e4ef2;--bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e")}.form-check-input:disabled{pointer-events:none;filter:none;opacity:.5}.form-check-input[disabled]~.form-check-label,.form-check-input:disabled~.form-check-label{cursor:default;opacity:.5}.form-switch{padding-left:2.5em}.form-switch .form-check-input{--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");width:2em;margin-left:-2.5em;background-image:var(--bs-form-switch-bg);background-position:left center;border-radius:2em;transition:background-position .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-switch .form-check-input{transition:none}}.form-switch .form-check-input:focus{--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28171, 171, 171, 0.975%29'/%3e%3c/svg%3e")}.form-switch .form-check-input:checked{background-position:right center;--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")}.form-switch.form-check-reverse{padding-right:2.5em;padding-left:0}.form-switch.form-check-reverse .form-check-input{margin-right:-2.5em;margin-left:0}.form-check-inline{display:inline-block;margin-right:1rem}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check[disabled]+.btn,.btn-check:disabled+.btn{pointer-events:none;filter:none;opacity:.65}[data-bs-theme=dark] .form-switch .form-check-input:not(:checked):not(:focus){--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 0.25%29'/%3e%3c/svg%3e")}.form-range{width:100%;height:1.5rem;padding:0;appearance:none;background-color:transparent}.form-range:focus{outline:0}.form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #4e4e4e40}.form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #4e4e4e40}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;appearance:none;background-color:#4e4e4ef2;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-range::-webkit-slider-thumb{transition:none}}.form-range::-webkit-slider-thumb:active{background-color:#cececefb}.form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}.form-range::-moz-range-thumb{width:1rem;height:1rem;appearance:none;background-color:#4e4e4ef2;border:0;border-radius:1rem;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-range::-moz-range-thumb{transition:none}}.form-range::-moz-range-thumb:active{background-color:#cececefb}.form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}.form-range:disabled{pointer-events:none}.form-range:disabled::-webkit-slider-thumb{background-color:var(--bs-secondary-color)}.form-range:disabled::-moz-range-thumb{background-color:var(--bs-secondary-color)}.form-floating{position:relative}.form-floating>.form-control,.form-floating>.form-control-plaintext,.form-floating>.form-select{height:calc(3.5rem + calc(var(--bs-border-width) * 2));min-height:calc(3.5rem + calc(var(--bs-border-width) * 2));line-height:1.25}.form-floating>label{position:absolute;top:0;left:0;z-index:2;height:100%;padding:1rem .75rem;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border:var(--bs-border-width) solid transparent;transform-origin:0 0;transition:opacity .1s ease-in-out,transform .1s ease-in-out}@media (prefers-reduced-motion: reduce){.form-floating>label{transition:none}}.form-floating>.form-control,.form-floating>.form-control-plaintext{padding:1rem .75rem}.form-floating>.form-control::placeholder,.form-floating>.form-control-plaintext::placeholder{color:transparent}.form-floating>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown),.form-floating>.form-control-plaintext:focus,.form-floating>.form-control-plaintext:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:-webkit-autofill,.form-floating>.form-control-plaintext:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-select{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-floating>.form-control-plaintext~label,.form-floating>.form-select~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control:focus~label:after,.form-floating>.form-control:not(:placeholder-shown)~label:after,.form-floating>.form-control-plaintext~label:after,.form-floating>.form-select~label:after{position:absolute;inset:1rem .375rem;z-index:-1;height:1.5em;content:"";background-color:var(--bs-body-bg);border-radius:0}.form-floating>.form-control:-webkit-autofill~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control-plaintext~label{border-width:var(--bs-border-width) 0}.form-floating>:disabled~label,.form-floating>.form-control:disabled~label{color:#6c757d}.form-floating>:disabled~label:after,.form-floating>.form-control:disabled~label:after{background-color:var(--bs-secondary-bg)}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-select,.input-group>.form-floating{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus,.input-group>.form-select:focus,.input-group>.form-floating:focus-within{z-index:5}.input-group .btn{position:relative;z-index:2}.input-group .btn:focus{z-index:5}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;font-size:1rem;font-weight:300;line-height:1.625;color:var(--bs-body-color);text-align:center;white-space:nowrap;background-color:var(--bs-tertiary-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:0}.input-group-lg>.form-control,.input-group-lg>.form-select,.input-group-lg>.input-group-text,.input-group-lg>.btn{padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text,.input-group-sm>.btn{padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.input-group-lg>.form-select,.input-group-sm>.form-select{padding-right:3rem}.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:calc(var(--bs-border-width) * -1);border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.form-floating:not(:first-child)>.form-control,.input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-valid-color)}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-success);border-radius:var(--bs-border-radius)}.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip,.is-valid~.valid-feedback,.is-valid~.valid-tooltip{display:block}.was-validated .form-control:valid,.form-control.is-valid{border-color:var(--bs-form-valid-border-color);padding-right:calc(1.625em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='rgb%2861, 134, 8%29' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.40625em + .1875rem) center;background-size:calc(.8125em + .375rem) calc(.8125em + .375rem)}.was-validated .form-control:valid:focus,.form-control.is-valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.625em + .75rem);background-position:top calc(.40625em + .1875rem) right calc(.40625em + .1875rem)}.was-validated .form-select:valid,.form-select.is-valid{border-color:var(--bs-form-valid-border-color)}.was-validated .form-select:valid:not([multiple]):not([size]),.was-validated .form-select:valid:not([multiple])[size="1"],.form-select.is-valid:not([multiple]):not([size]),.form-select.is-valid:not([multiple])[size="1"]{--bs-form-select-bg-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='rgb%2861, 134, 8%29' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.8125em + .375rem) calc(.8125em + .375rem)}.was-validated .form-select:valid:focus,.form-select.is-valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated .form-control-color:valid,.form-control-color.is-valid{width:calc(3.75rem + 1.625em)}.was-validated .form-check-input:valid,.form-check-input.is-valid{border-color:var(--bs-form-valid-border-color)}.was-validated .form-check-input:valid:checked,.form-check-input.is-valid:checked{background-color:var(--bs-form-valid-color)}.was-validated .form-check-input:valid:focus,.form-check-input.is-valid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated .form-check-input:valid~.form-check-label,.form-check-input.is-valid~.form-check-label{color:var(--bs-form-valid-color)}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):valid,.input-group>.form-control:not(:focus).is-valid,.was-validated .input-group>.form-select:not(:focus):valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.input-group>.form-floating:not(:focus-within).is-valid{z-index:3}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-invalid-color)}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-danger);border-radius:var(--bs-border-radius)}.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip,.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip{display:block}.was-validated .form-control:invalid,.form-control.is-invalid{border-color:var(--bs-form-invalid-border-color);padding-right:calc(1.625em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='rgb%28234, 22, 31%29'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='rgb%28234, 22, 31%29' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.40625em + .1875rem) center;background-size:calc(.8125em + .375rem) calc(.8125em + .375rem)}.was-validated .form-control:invalid:focus,.form-control.is-invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.625em + .75rem);background-position:top calc(.40625em + .1875rem) right calc(.40625em + .1875rem)}.was-validated .form-select:invalid,.form-select.is-invalid{border-color:var(--bs-form-invalid-border-color)}.was-validated .form-select:invalid:not([multiple]):not([size]),.was-validated .form-select:invalid:not([multiple])[size="1"],.form-select.is-invalid:not([multiple]):not([size]),.form-select.is-invalid:not([multiple])[size="1"]{--bs-form-select-bg-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='rgb%28234, 22, 31%29'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='rgb%28234, 22, 31%29' stroke='none'/%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.8125em + .375rem) calc(.8125em + .375rem)}.was-validated .form-select:invalid:focus,.form-select.is-invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated .form-control-color:invalid,.form-control-color.is-invalid{width:calc(3.75rem + 1.625em)}.was-validated .form-check-input:invalid,.form-check-input.is-invalid{border-color:var(--bs-form-invalid-border-color)}.was-validated .form-check-input:invalid:checked,.form-check-input.is-invalid:checked{background-color:var(--bs-form-invalid-color)}.was-validated .form-check-input:invalid:focus,.form-check-input.is-invalid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated .form-check-input:invalid~.form-check-label,.form-check-input.is-invalid~.form-check-label{color:var(--bs-form-invalid-color)}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):invalid,.input-group>.form-control:not(:focus).is-invalid,.was-validated .input-group>.form-select:not(:focus):invalid,.input-group>.form-select:not(:focus).is-invalid,.was-validated .input-group>.form-floating:not(:focus-within):invalid,.input-group>.form-floating:not(:focus-within).is-invalid{z-index:4}.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-check:checked:focus-visible+.btn{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(234, 22, 31);--bs-btn-border-color: rgb(234, 22, 31);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #c7131a;--bs-btn-hover-border-color: #bb1219;--bs-btn-focus-shadow-rgb: 237, 57, 65;--bs-btn-active-color: #fff;--bs-btn-active-bg: #bb1219;--bs-btn-active-border-color: #b01117;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: rgb(234, 22, 31);--bs-btn-disabled-border-color: rgb(234, 22, 31)}.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(234, 22, 31);--bs-btn-border-color: rgb(234, 22, 31);--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(234, 22, 31);--bs-btn-hover-border-color: rgb(234, 22, 31);--bs-btn-focus-shadow-rgb: 234, 22, 31;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(234, 22, 31);--bs-btn-active-border-color: rgb(234, 22, 31);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: rgb(234, 22, 31);--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: rgb(234, 22, 31);--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)}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion: reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion: reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media (prefers-reduced-motion: reduce){.collapsing.collapse-horizontal{transition:none}}.dropup,.dropend,.dropdown,.dropstart,.dropup-center,.dropdown-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty:after{margin-left:0}.dropdown-menu{--bs-dropdown-zindex: 1000;--bs-dropdown-min-width: 10rem;--bs-dropdown-padding-x: 0;--bs-dropdown-padding-y: .5rem;--bs-dropdown-spacer: .125rem;--bs-dropdown-font-size: 1rem;--bs-dropdown-color: var(--bs-body-color);--bs-dropdown-bg: var(--bs-body-bg);--bs-dropdown-border-color: var(--bs-border-color-translucent);--bs-dropdown-border-radius: var(--bs-border-radius);--bs-dropdown-border-width: var(--bs-border-width);--bs-dropdown-inner-border-radius: calc(var(--bs-border-radius) - var(--bs-border-width));--bs-dropdown-divider-bg: var(--bs-border-color-translucent);--bs-dropdown-divider-margin-y: .5rem;--bs-dropdown-box-shadow: var(--bs-box-shadow);--bs-dropdown-link-color: var(--bs-body-color);--bs-dropdown-link-hover-color: var(--bs-body-color);--bs-dropdown-link-hover-bg: var(--bs-tertiary-bg);--bs-dropdown-link-active-color: #fff;--bs-dropdown-link-active-bg: rgba(78, 78, 78, .95);--bs-dropdown-link-disabled-color: var(--bs-tertiary-color);--bs-dropdown-item-padding-x: 1rem;--bs-dropdown-item-padding-y: .25rem;--bs-dropdown-header-color: #6c757d;--bs-dropdown-header-padding-x: 1rem;--bs-dropdown-header-padding-y: .5rem;position:absolute;z-index:var(--bs-dropdown-zindex);display:none;min-width:var(--bs-dropdown-min-width);padding:var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);margin:0;font-size:var(--bs-dropdown-font-size);color:var(--bs-dropdown-color);text-align:left;list-style:none;background-color:var(--bs-dropdown-bg);background-clip:padding-box;border:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);border-radius:var(--bs-dropdown-border-radius)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--bs-dropdown-spacer)}.dropdown-menu-start{--bs-position: start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position: end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width: 576px){.dropdown-menu-sm-start{--bs-position: start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position: end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 768px){.dropdown-menu-md-start{--bs-position: start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position: end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 992px){.dropdown-menu-lg-start{--bs-position: start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position: end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1200px){.dropdown-menu-xl-start{--bs-position: start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position: end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1400px){.dropdown-menu-xxl-start{--bs-position: start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position: end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--bs-dropdown-spacer)}.dropup .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--bs-dropdown-spacer)}.dropend .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropend .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-toggle:after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--bs-dropdown-spacer)}.dropstart .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropstart .dropdown-toggle:after{display:none}.dropstart .dropdown-toggle:before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropstart .dropdown-toggle:empty:after{margin-left:0}.dropstart .dropdown-toggle:before{vertical-align:0}.dropdown-divider{height:0;margin:var(--bs-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--bs-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--bs-dropdown-link-color);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0;border-radius:var(--bs-dropdown-item-border-radius, 0)}.dropdown-item:hover,.dropdown-item:focus{color:var(--bs-dropdown-link-hover-color);background-color:var(--bs-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--bs-dropdown-link-active-color);text-decoration:none;background-color:var(--bs-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--bs-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--bs-dropdown-header-padding-y) var(--bs-dropdown-header-padding-x);margin-bottom:0;font-size:.875rem;color:var(--bs-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);color:var(--bs-dropdown-link-color)}.dropdown-menu-dark{--bs-dropdown-color: #dee2e6;--bs-dropdown-bg: #343a40;--bs-dropdown-border-color: var(--bs-border-color-translucent);--bs-dropdown-box-shadow: ;--bs-dropdown-link-color: #dee2e6;--bs-dropdown-link-hover-color: #fff;--bs-dropdown-divider-bg: var(--bs-border-color-translucent);--bs-dropdown-link-hover-bg: rgba(255, 255, 255, .15);--bs-dropdown-link-active-color: #fff;--bs-dropdown-link-active-bg: rgba(78, 78, 78, .95);--bs-dropdown-link-disabled-color: #adb5bd;--bs-dropdown-header-color: #adb5bd}.alert{--bs-alert-bg: transparent;--bs-alert-padding-x: 1rem;--bs-alert-padding-y: 1rem;--bs-alert-margin-bottom: 1rem;--bs-alert-color: inherit;--bs-alert-border-color: transparent;--bs-alert-border: var(--bs-border-width) solid var(--bs-alert-border-color);--bs-alert-border-radius: var(--bs-border-radius);--bs-alert-link-color: inherit;position:relative;padding:var(--bs-alert-padding-y) var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius)}.alert-heading{color:inherit}.alert-link{font-weight:700;color:var(--bs-alert-link-color)}.alert-dismissible{padding-right:3rem}.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:1.25rem 1rem}.alert-primary{--bs-alert-color: var(--bs-primary-text-emphasis);--bs-alert-bg: var(--bs-primary-bg-subtle);--bs-alert-border-color: var(--bs-primary-border-subtle);--bs-alert-link-color: var(--bs-primary-text-emphasis)}.alert-secondary{--bs-alert-color: var(--bs-secondary-text-emphasis);--bs-alert-bg: var(--bs-secondary-bg-subtle);--bs-alert-border-color: var(--bs-secondary-border-subtle);--bs-alert-link-color: var(--bs-secondary-text-emphasis)}.alert-success{--bs-alert-color: var(--bs-success-text-emphasis);--bs-alert-bg: var(--bs-success-bg-subtle);--bs-alert-border-color: var(--bs-success-border-subtle);--bs-alert-link-color: var(--bs-success-text-emphasis)}.alert-info{--bs-alert-color: var(--bs-info-text-emphasis);--bs-alert-bg: var(--bs-info-bg-subtle);--bs-alert-border-color: var(--bs-info-border-subtle);--bs-alert-link-color: var(--bs-info-text-emphasis)}.alert-warning{--bs-alert-color: var(--bs-warning-text-emphasis);--bs-alert-bg: var(--bs-warning-bg-subtle);--bs-alert-border-color: var(--bs-warning-border-subtle);--bs-alert-link-color: var(--bs-warning-text-emphasis)}.alert-danger{--bs-alert-color: var(--bs-danger-text-emphasis);--bs-alert-bg: var(--bs-danger-bg-subtle);--bs-alert-border-color: var(--bs-danger-border-subtle);--bs-alert-link-color: var(--bs-danger-text-emphasis)}.alert-light{--bs-alert-color: var(--bs-light-text-emphasis);--bs-alert-bg: var(--bs-light-bg-subtle);--bs-alert-border-color: var(--bs-light-border-subtle);--bs-alert-link-color: var(--bs-light-text-emphasis)}.alert-dark{--bs-alert-color: var(--bs-dark-text-emphasis);--bs-alert-bg: var(--bs-dark-bg-subtle);--bs-alert-border-color: var(--bs-dark-border-subtle);--bs-alert-link-color: var(--bs-dark-text-emphasis)}.btn-close{--bs-btn-close-color: #000;--bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");--bs-btn-close-opacity: .5;--bs-btn-close-hover-opacity: .75;--bs-btn-close-focus-shadow: 0 0 0 .25rem rgba(78, 78, 78, .25);--bs-btn-close-focus-opacity: 1;--bs-btn-close-disabled-opacity: .25;--bs-btn-close-white-filter: invert(1) grayscale(100%) brightness(200%);box-sizing:content-box;width:1em;height:1em;padding:.25em;color:var(--bs-btn-close-color);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;border:0;border-radius:.375rem;opacity:var(--bs-btn-close-opacity)}.btn-close:hover{color:var(--bs-btn-close-color);text-decoration:none;opacity:var(--bs-btn-close-hover-opacity)}.btn-close:focus{outline:0;box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity)}.btn-close:disabled,.btn-close.disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:var(--bs-btn-close-disabled-opacity)}.btn-close-white,[data-bs-theme=dark] .btn-close{filter:var(--bs-btn-close-white-filter)}.toast{--bs-toast-zindex: 1090;--bs-toast-padding-x: .75rem;--bs-toast-padding-y: .5rem;--bs-toast-spacing: 1.5rem;--bs-toast-max-width: 350px;--bs-toast-font-size: .875rem;--bs-toast-color: ;--bs-toast-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-border-width: var(--bs-border-width);--bs-toast-border-color: var(--bs-border-color-translucent);--bs-toast-border-radius: var(--bs-border-radius);--bs-toast-box-shadow: var(--bs-box-shadow);--bs-toast-header-color: var(--bs-secondary-color);--bs-toast-header-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-header-border-color: var(--bs-border-color-translucent);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}.toast.showing{opacity:0}.toast:not(.show){display:none}.toast-container{--bs-toast-zindex: 1090;position:absolute;z-index:var(--bs-toast-zindex);width:max-content;max-width:100%;pointer-events:none}.toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}.toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}.toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}.toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}.modal{--bs-modal-zindex: 1055;--bs-modal-width: 500px;--bs-modal-padding: 1rem;--bs-modal-margin: .5rem;--bs-modal-color: ;--bs-modal-bg: var(--bs-body-bg);--bs-modal-border-color: var(--bs-border-color-translucent);--bs-modal-border-width: var(--bs-border-width);--bs-modal-border-radius: var(--bs-border-radius-lg);--bs-modal-box-shadow: var(--bs-box-shadow-sm);--bs-modal-inner-border-radius: calc(var(--bs-border-radius-lg) - (var(--bs-border-width)));--bs-modal-header-padding-x: 1rem;--bs-modal-header-padding-y: 1rem;--bs-modal-header-padding: 1rem 1rem;--bs-modal-header-border-color: var(--bs-border-color);--bs-modal-header-border-width: var(--bs-border-width);--bs-modal-title-line-height: 1.625;--bs-modal-footer-gap: .5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color: var(--bs-border-color);--bs-modal-footer-border-width: var(--bs-border-width);position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translateY(-50px)}@media (prefers-reduced-motion: reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}.modal-backdrop{--bs-backdrop-zindex: 1050;--bs-backdrop-bg: #000;--bs-backdrop-opacity: .5;position:fixed;top:0;left:0;z-index:var(--bs-backdrop-zindex);width:100vw;height:100vh;background-color:var(--bs-backdrop-bg)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--bs-backdrop-opacity)}.modal-header{display:flex;flex-shrink:0;align-items:center;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin:calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto}.modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media (min-width: 576px){.modal{--bs-modal-margin: 1.75rem;--bs-modal-box-shadow: var(--bs-box-shadow)}.modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}.modal-sm{--bs-modal-width: 300px}}@media (min-width: 992px){.modal-lg,.modal-xl{--bs-modal-width: 800px}}@media (min-width: 1200px){.modal-xl{--bs-modal-width: 1140px}}.modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen .modal-header,.modal-fullscreen .modal-footer{border-radius:0}.modal-fullscreen .modal-body{overflow-y:auto}@media (max-width: 575.98px){.modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-sm-down .modal-header,.modal-fullscreen-sm-down .modal-footer{border-radius:0}.modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media (max-width: 767.98px){.modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-md-down .modal-header,.modal-fullscreen-md-down .modal-footer{border-radius:0}.modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media (max-width: 991.98px){.modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-lg-down .modal-header,.modal-fullscreen-lg-down .modal-footer{border-radius:0}.modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media (max-width: 1199.98px){.modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xl-down .modal-header,.modal-fullscreen-xl-down .modal-footer{border-radius:0}.modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media (max-width: 1399.98px){.modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xxl-down .modal-header,.modal-fullscreen-xxl-down .modal-footer{border-radius:0}.modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}.tooltip{--bs-tooltip-zindex: 1080;--bs-tooltip-max-width: 200px;--bs-tooltip-padding-x: .5rem;--bs-tooltip-padding-y: .25rem;--bs-tooltip-margin: ;--bs-tooltip-font-size: .875rem;--bs-tooltip-color: var(--bs-body-bg);--bs-tooltip-bg: var(--bs-emphasis-color);--bs-tooltip-border-radius: var(--bs-border-radius);--bs-tooltip-opacity: .9;--bs-tooltip-arrow-width: .8rem;--bs-tooltip-arrow-height: .4rem;z-index:var(--bs-tooltip-zindex);display:block;margin:var(--bs-tooltip-margin);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.625;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--bs-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--bs-tooltip-arrow-width);height:var(--bs-tooltip-arrow-height)}.tooltip .tooltip-arrow:before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-top .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow{bottom:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-top .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow:before{top:-1px;border-width:var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-top-color:var(--bs-tooltip-bg)}.bs-tooltip-end .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow{left:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-end .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow:before{right:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-right-color:var(--bs-tooltip-bg)}.bs-tooltip-bottom .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow{top:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-bottom .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow:before{bottom:-1px;border-width:0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-bottom-color:var(--bs-tooltip-bg)}.bs-tooltip-start .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow{right:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-start .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow:before{left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-left-color:var(--bs-tooltip-bg)}.tooltip-inner{max-width:var(--bs-tooltip-max-width);padding:var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);color:var(--bs-tooltip-color);text-align:center;background-color:var(--bs-tooltip-bg);border-radius:var(--bs-tooltip-border-radius)}.spinner-grow,.spinner-border{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-border-width: .25em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem;--bs-spinner-border-width: .2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem}@media (prefers-reduced-motion: reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed: 1.5s}}.clearfix:after{display:block;clear:both;content:""}.text-bg-primary{color:#fff!important;background-color:RGBA(var(--bs-primary-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-secondary{color:#000!important;background-color:RGBA(var(--bs-secondary-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-success{color:#fff!important;background-color:RGBA(var(--bs-success-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-info{color:#000!important;background-color:RGBA(var(--bs-info-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-warning{color:#000!important;background-color:RGBA(var(--bs-warning-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-danger{color:#fff!important;background-color:RGBA(var(--bs-danger-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-light{color:#000!important;background-color:RGBA(var(--bs-light-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-dark{color:#fff!important;background-color:RGBA(var(--bs-dark-rgb),var(--bs-bg-opacity, 1))!important}.link-primary{color:RGBA(var(--bs-primary-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-primary-rgb),var(--bs-link-underline-opacity, 1))!important}.link-primary:hover,.link-primary:focus{color:RGBA(61,61,61,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(61,61,61,var(--bs-link-underline-opacity, 1))!important}.link-secondary{color:RGBA(var(--bs-secondary-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-secondary-rgb),var(--bs-link-underline-opacity, 1))!important}.link-secondary:hover,.link-secondary:focus{color:RGBA(229,229,229,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(229,229,229,var(--bs-link-underline-opacity, 1))!important}.link-success{color:RGBA(var(--bs-success-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-success-rgb),var(--bs-link-underline-opacity, 1))!important}.link-success:hover,.link-success:focus{color:RGBA(49,107,6,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(49,107,6,var(--bs-link-underline-opacity, 1))!important}.link-info{color:RGBA(var(--bs-info-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-info-rgb),var(--bs-link-underline-opacity, 1))!important}.link-info:hover,.link-info:focus{color:RGBA(61,213,243,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(61,213,243,var(--bs-link-underline-opacity, 1))!important}.link-warning{color:RGBA(var(--bs-warning-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-warning-rgb),var(--bs-link-underline-opacity, 1))!important}.link-warning:hover,.link-warning:focus{color:RGBA(255,185,67,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(255,185,67,var(--bs-link-underline-opacity, 1))!important}.link-danger{color:RGBA(var(--bs-danger-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-danger-rgb),var(--bs-link-underline-opacity, 1))!important}.link-danger:hover,.link-danger:focus{color:RGBA(187,18,25,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(187,18,25,var(--bs-link-underline-opacity, 1))!important}.link-light{color:RGBA(var(--bs-light-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-light-rgb),var(--bs-link-underline-opacity, 1))!important}.link-light:hover,.link-light:focus{color:RGBA(249,250,251,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(249,250,251,var(--bs-link-underline-opacity, 1))!important}.link-dark{color:RGBA(var(--bs-dark-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-dark-rgb),var(--bs-link-underline-opacity, 1))!important}.link-dark:hover,.link-dark:focus{color:RGBA(26,30,33,var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(26,30,33,var(--bs-link-underline-opacity, 1))!important}.link-body-emphasis{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity, 1))!important}.link-body-emphasis:hover,.link-body-emphasis:focus{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity, .75))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity, .75))!important}.focus-ring:focus{outline:0;box-shadow:var(--bs-focus-ring-x, 0) var(--bs-focus-ring-y, 0) var(--bs-focus-ring-blur, 0) var(--bs-focus-ring-width) var(--bs-focus-ring-color)}.icon-link{display:inline-flex;gap:.375rem;align-items:center;text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity, .5));text-underline-offset:.25em;backface-visibility:hidden}.icon-link>.bi{flex-shrink:0;width:1em;height:1em;fill:currentcolor;transition:.2s ease-in-out transform}@media (prefers-reduced-motion: reduce){.icon-link>.bi{transition:none}}.icon-link-hover:hover>.bi,.icon-link-hover:focus-visible>.bi{transform:var(--bs-icon-link-transform, translate3d(.25em, 0, 0))}.ratio{position:relative;width:100%}.ratio:before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio: 100%}.ratio-4x3{--bs-aspect-ratio: 75%}.ratio-16x9{--bs-aspect-ratio: 56.25%}.ratio-21x9{--bs-aspect-ratio: 42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:sticky;top:0;z-index:1020}.sticky-bottom{position:sticky;bottom:0;z-index:1020}@media (min-width: 576px){.sticky-sm-top{position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 768px){.sticky-md-top{position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 992px){.sticky-lg-top{position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1200px){.sticky-xl-top{position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:sticky;bottom:0;z-index:1020}}@media (min-width: 1400px){.sticky-xxl-top{position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.visually-hidden:not(caption),.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption){position:absolute!important}.stretched-link:after{position:absolute;inset:0;z-index:1;content:""}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:var(--bs-border-width);min-height:1em;background-color:currentcolor;opacity:.25}.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}}@font-face{font-family:Roboto;font-style:normal;font-weight:100;src:url("./media/roboto-v30-latin-ext_latin-100.woff") format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:url("./media/roboto-v30-latin-ext_latin-300.woff") format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:url("./media/roboto-v30-latin-ext_latin-400.woff") format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:500;src:url("./media/roboto-v30-latin-ext_latin-500.woff") format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:700;src:url("./media/roboto-v30-latin-ext_latin-700.woff") format("woff")}h1,.h1{font-weight:100;line-height:1.15;margin:0 0 .5em}h2,.h2{font-weight:300;line-height:1.2;margin:0 0 .5em}h3,.h3{font-weight:300;line-height:1.23;margin:0 0 .5em}h4,.h4{font-weight:300;line-height:1.16;margin:0 0 .5em}h5,.h5{font-weight:300;line-height:1.19;margin:0 0 .5em}h6,.h6{font-weight:300;line-height:1.16;margin:0 0 .5em}.bkd-container{margin:0 auto;padding:0}.bkd-container-limited{max-width:960px;margin-left:0}.table th{padding-top:.25rem;padding-bottom:.25rem;font-weight:500}.table-fixed{table-layout:fixed}@media screen and (max-width: 820px){bkd-evaluate-absences-list>div>table thead,bkd-edit-absences-list>div>table thead{border:none;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}bkd-evaluate-absences-list>div>table tr,bkd-edit-absences-list>div>table tr{border-bottom:2px solid #ddd;display:block}bkd-evaluate-absences-list>div>table td,bkd-edit-absences-list>div>table td{border-bottom:1px solid #ddd;display:block;text-align:right;min-height:50px}bkd-evaluate-absences-list>div>table td:before,bkd-edit-absences-list>div>table td:before{content:attr(data-label);float:left}}a:hover,a:focus{text-decoration:underline;text-decoration-color:#ea161f;color:#000}.btn-link{text-decoration:none}.btn-outline-secondary{color:#000;border-color:#000}.btn-outline-secondary:hover{border-color:#000;background:#e6e6e6}.btn-icon{padding:.5rem;text-decoration:none}.btn-icon:hover{text-decoration:none}ngb-datepicker-navigation-select>.custom-select{font-size:1rem!important}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{width:2.5rem!important;height:2.5rem!important}[ngbDatepickerDayView]{width:2.5rem!important;height:2.5rem!important;line-height:2.5rem!important}.ngb-dp-months{padding:.5rem 2rem;background:#f8f9fa}.ngb-dp-weekday{color:#ea161f!important}@media (max-width: 575.98px){.ngb-dp-months{padding:.5rem}}.btn .material-icons{display:block}math{display:inline;text-indent:0}math[display=block]{display:block;text-align:center}mfrac{display:inline-block!important;vertical-align:-50%;border-collapse:collapse;text-align:center}mfrac>*{display:block!important}mfrac>*+*{display:inline-block!important;vertical-align:top}mfrac:not([linethickness="0"])>*:first-child{border-bottom:solid thin}mi{font-style:italic}mo{margin-right:.2em;margin-left:.2em}.ng-select-container{border-radius:.25rem!important}.ng-optgroup{border-bottom:1px solid #ccc;color:inherit!important;font-weight:400!important;color:#33333d!important}.ng-option{padding-left:10px!important;padding-top:3px!important;padding-bottom:3px!important;font-weight:400!important;color:#33333d!important}.ng-option-selected{font-weight:400!important;color:#33333d!important}.ng-placeholder{color:#495057!important}.ng-value{padding-left:4px!important}.tooltip-template .tooltip-inner{max-width:100%;border:2px solid;background-color:#fff;color:#000}