From d6a50b62e47c18f78ebae5a6498c82cb0e450971 Mon Sep 17 00:00:00 2001 From: Claudia Asti Date: Thu, 28 Nov 2024 10:08:18 +0100 Subject: [PATCH] Add webapp-schulverwaltung build ad0e4961 --- .../3rdpartylicenses.txt | 147 ++++++++++++++++++ .../assets/locales/de-CH.json | 1 + .../assets/locales/fr-CH.json | 1 + .../webapp-schulverwaltung/chunk-24AFRN2G.js | 1 - .../webapp-schulverwaltung/chunk-2D2UAYZL.js | 1 + .../webapp-schulverwaltung/chunk-2U5ENDJH.js | 1 + .../webapp-schulverwaltung/chunk-32LHGY5Z.js | 1 + .../webapp-schulverwaltung/chunk-3BIGM3Z4.js | 1 + .../webapp-schulverwaltung/chunk-4EXGKTN3.js | 1 - .../webapp-schulverwaltung/chunk-673RVEOB.js | 1 - .../webapp-schulverwaltung/chunk-7FRZV7VF.js | 1 + .../webapp-schulverwaltung/chunk-7T3G7FUV.js | 1 - .../webapp-schulverwaltung/chunk-ARLUIMZU.js | 1 + .../webapp-schulverwaltung/chunk-AW7CSGKI.js | 1 - .../webapp-schulverwaltung/chunk-B6WYZ7BT.js | 1 + .../webapp-schulverwaltung/chunk-C56YGDXA.js | 10 -- .../webapp-schulverwaltung/chunk-C7XT5XXE.js | 1 - .../webapp-schulverwaltung/chunk-DB66EACG.js | 1 - .../webapp-schulverwaltung/chunk-DDSXVC6O.js | 1 - .../webapp-schulverwaltung/chunk-DKLN3NRY.js | 1 + .../webapp-schulverwaltung/chunk-DZZC2YX2.js | 1 - .../webapp-schulverwaltung/chunk-ELVM3VWW.js | 1 - .../webapp-schulverwaltung/chunk-F4JHPOM5.js | 2 + .../webapp-schulverwaltung/chunk-FJXQ6CD7.js | 1 + .../webapp-schulverwaltung/chunk-FTDG26ID.js | 1 - .../webapp-schulverwaltung/chunk-GTCR4WGM.js | 2 - .../webapp-schulverwaltung/chunk-HII3S2DL.js | 1 - .../webapp-schulverwaltung/chunk-IFJN5CDK.js | 9 ++ .../webapp-schulverwaltung/chunk-IMBPAJBQ.js | 3 + .../webapp-schulverwaltung/chunk-IYFH2F7I.js | 1 + .../webapp-schulverwaltung/chunk-JPWKYF5J.js | 2 + .../webapp-schulverwaltung/chunk-JV3CBBGP.js | 1 - .../webapp-schulverwaltung/chunk-K3EEKOGY.js | 1 - .../{chunk-ZROJU7EX.js => chunk-K5PXAOXJ.js} | 2 +- .../webapp-schulverwaltung/chunk-KDAC4GJ5.js | 1 - .../webapp-schulverwaltung/chunk-KK2SHN2W.js | 1 + .../webapp-schulverwaltung/chunk-KNS2BM7M.js | 2 - .../webapp-schulverwaltung/chunk-KPGSX5OU.js | 1 + .../webapp-schulverwaltung/chunk-LGOOC47H.js | 10 ++ .../webapp-schulverwaltung/chunk-MGID7RWQ.js | 1 - .../{chunk-5RDJZAUT.js => chunk-MIRGHONI.js} | 2 +- .../webapp-schulverwaltung/chunk-NL5E3FC5.js | 1 + .../webapp-schulverwaltung/chunk-NTSKCSYH.js | 1 + .../webapp-schulverwaltung/chunk-NYTDIO5P.js | 1 - .../webapp-schulverwaltung/chunk-OFB4XAK2.js | 1 + .../{chunk-PSXDSPKS.js => chunk-OGCDITJ2.js} | 4 +- .../webapp-schulverwaltung/chunk-OOFOFPYV.js | 1 - .../webapp-schulverwaltung/chunk-PMU42JF5.js | 1 - .../webapp-schulverwaltung/chunk-RET26MIW.js | 1 + .../webapp-schulverwaltung/chunk-RFO4NYUO.js | 1 - .../webapp-schulverwaltung/chunk-RG5AZKMH.js | 1 + .../webapp-schulverwaltung/chunk-RQFEXCIP.js | 1 - .../webapp-schulverwaltung/chunk-RU74B4AX.js | 1 + .../webapp-schulverwaltung/chunk-S2U6O7J2.js | 2 - .../webapp-schulverwaltung/chunk-SCJZRDJE.js | 1 + .../webapp-schulverwaltung/chunk-SOH5T2AJ.js | 1 - .../webapp-schulverwaltung/chunk-SOHFFTKU.js | 1 - .../webapp-schulverwaltung/chunk-SVAHLOZE.js | 1 - .../webapp-schulverwaltung/chunk-U4HODSW3.js | 2 - .../webapp-schulverwaltung/chunk-U7WLOWUT.js | 1 + .../webapp-schulverwaltung/chunk-UA2MEY3S.js | 1 + .../webapp-schulverwaltung/chunk-UB7PUXB6.js | 1 + .../webapp-schulverwaltung/chunk-UGBTF4Z2.js | 1 + .../webapp-schulverwaltung/chunk-UHRBN2L7.js | 1 + .../webapp-schulverwaltung/chunk-UP3NEN2H.js | 1 - .../webapp-schulverwaltung/chunk-UX5TA32W.js | 1 - .../webapp-schulverwaltung/chunk-V5KICZUB.js | 1 + .../webapp-schulverwaltung/chunk-VGJCKFZL.js | 2 + .../webapp-schulverwaltung/chunk-VJ6UATSE.js | 1 - .../webapp-schulverwaltung/chunk-VKWEQ6GU.js | 1 + .../webapp-schulverwaltung/chunk-VUPOI3TG.js | 1 + .../webapp-schulverwaltung/chunk-W2RRBYQG.js | 2 + .../webapp-schulverwaltung/chunk-W7ASLXRM.js | 2 - .../webapp-schulverwaltung/chunk-WACRWBCS.js | 1 + .../webapp-schulverwaltung/chunk-WNMIKIML.js | 2 - .../webapp-schulverwaltung/chunk-XLPJMZ3E.js | 1 - .../webapp-schulverwaltung/chunk-XTHSYQMN.js | 9 -- .../webapp-schulverwaltung/chunk-YHQTYVFP.js | 2 + .../webapp-schulverwaltung/chunk-YMJC6QZX.js | 1 - .../webapp-schulverwaltung/chunk-YUHFF3NM.js | 1 + .../webapp-schulverwaltung/chunk-ZK2MNT7Z.js | 2 - public/apps/webapp-schulverwaltung/index.html | 4 +- .../webapp-schulverwaltung/main-2CUS3PGY.js | 1 + public/apps/webapp-schulverwaltung/main.js | 1 - ...oto-v30-latin-ext_latin-100-FDBXK35P.woff} | Bin ...oto-v30-latin-ext_latin-300-OLIJUZZX.woff} | Bin ...oto-v30-latin-ext_latin-400-66C7OQIV.woff} | Bin ...oto-v30-latin-ext_latin-500-FSDH26ZJ.woff} | Bin ...oto-v30-latin-ext_latin-700-G7TUGEUF.woff} | Bin .../polyfills-MH2GNY63.js | 2 + .../apps/webapp-schulverwaltung/polyfills.js | 2 - .../styles-FZTKKHBK.css | 1 + public/apps/webapp-schulverwaltung/styles.css | 1 - 93 files changed, 220 insertions(+), 72 deletions(-) delete mode 100644 public/apps/webapp-schulverwaltung/chunk-24AFRN2G.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-2D2UAYZL.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-2U5ENDJH.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-32LHGY5Z.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-3BIGM3Z4.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-4EXGKTN3.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-673RVEOB.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-7FRZV7VF.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-7T3G7FUV.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-ARLUIMZU.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-AW7CSGKI.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-B6WYZ7BT.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-C56YGDXA.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-C7XT5XXE.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-DB66EACG.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-DDSXVC6O.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-DKLN3NRY.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-DZZC2YX2.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-ELVM3VWW.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-F4JHPOM5.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-FJXQ6CD7.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-FTDG26ID.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-GTCR4WGM.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-HII3S2DL.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-IFJN5CDK.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-IMBPAJBQ.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-IYFH2F7I.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-JPWKYF5J.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-JV3CBBGP.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-K3EEKOGY.js rename public/apps/webapp-schulverwaltung/{chunk-ZROJU7EX.js => chunk-K5PXAOXJ.js} (81%) delete mode 100644 public/apps/webapp-schulverwaltung/chunk-KDAC4GJ5.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-KK2SHN2W.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-KNS2BM7M.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-KPGSX5OU.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-LGOOC47H.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-MGID7RWQ.js rename public/apps/webapp-schulverwaltung/{chunk-5RDJZAUT.js => chunk-MIRGHONI.js} (84%) create mode 100644 public/apps/webapp-schulverwaltung/chunk-NL5E3FC5.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-NTSKCSYH.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-NYTDIO5P.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-OFB4XAK2.js rename public/apps/webapp-schulverwaltung/{chunk-PSXDSPKS.js => chunk-OGCDITJ2.js} (52%) delete mode 100644 public/apps/webapp-schulverwaltung/chunk-OOFOFPYV.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-PMU42JF5.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-RET26MIW.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-RFO4NYUO.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-RG5AZKMH.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-RQFEXCIP.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-RU74B4AX.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-S2U6O7J2.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-SCJZRDJE.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-SOH5T2AJ.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-SOHFFTKU.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-SVAHLOZE.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-U4HODSW3.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-U7WLOWUT.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-UA2MEY3S.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-UB7PUXB6.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-UGBTF4Z2.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-UHRBN2L7.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-UP3NEN2H.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-UX5TA32W.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-V5KICZUB.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-VGJCKFZL.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-VJ6UATSE.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-VKWEQ6GU.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-VUPOI3TG.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-W2RRBYQG.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-W7ASLXRM.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-WACRWBCS.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-WNMIKIML.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-XLPJMZ3E.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-XTHSYQMN.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-YHQTYVFP.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-YMJC6QZX.js create mode 100644 public/apps/webapp-schulverwaltung/chunk-YUHFF3NM.js delete mode 100644 public/apps/webapp-schulverwaltung/chunk-ZK2MNT7Z.js create mode 100644 public/apps/webapp-schulverwaltung/main-2CUS3PGY.js delete mode 100644 public/apps/webapp-schulverwaltung/main.js rename public/apps/webapp-schulverwaltung/media/{roboto-v30-latin-ext_latin-100.woff => roboto-v30-latin-ext_latin-100-FDBXK35P.woff} (100%) rename public/apps/webapp-schulverwaltung/media/{roboto-v30-latin-ext_latin-300.woff => roboto-v30-latin-ext_latin-300-OLIJUZZX.woff} (100%) rename public/apps/webapp-schulverwaltung/media/{roboto-v30-latin-ext_latin-400.woff => roboto-v30-latin-ext_latin-400-66C7OQIV.woff} (100%) rename public/apps/webapp-schulverwaltung/media/{roboto-v30-latin-ext_latin-500.woff => roboto-v30-latin-ext_latin-500-FSDH26ZJ.woff} (100%) rename public/apps/webapp-schulverwaltung/media/{roboto-v30-latin-ext_latin-700.woff => roboto-v30-latin-ext_latin-700-G7TUGEUF.woff} (100%) create mode 100644 public/apps/webapp-schulverwaltung/polyfills-MH2GNY63.js delete mode 100644 public/apps/webapp-schulverwaltung/polyfills.js create mode 100644 public/apps/webapp-schulverwaltung/styles-FZTKKHBK.css delete mode 100644 public/apps/webapp-schulverwaltung/styles.css diff --git a/public/apps/webapp-schulverwaltung/3rdpartylicenses.txt b/public/apps/webapp-schulverwaltung/3rdpartylicenses.txt index 2a745d54..8cd9706c 100644 --- a/public/apps/webapp-schulverwaltung/3rdpartylicenses.txt +++ b/public/apps/webapp-schulverwaltung/3rdpartylicenses.txt @@ -3,16 +3,79 @@ Package: @angular/common License: "MIT" +The MIT License + +Copyright (c) 2010-2024 Google LLC. https://angular.dev/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: @angular/animations License: "MIT" +The MIT License + +Copyright (c) 2010-2024 Google LLC. https://angular.dev/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: @angular/platform-browser License: "MIT" +The MIT License + +Copyright (c) 2010-2024 Google LLC. https://angular.dev/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: @ngx-translate/http-loader @@ -111,6 +174,27 @@ SOFTWARE. Package: @angular/core License: "MIT" +The MIT License + +Copyright (c) 2010-2024 Google LLC. https://angular.dev/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: @popperjs/core @@ -390,6 +474,27 @@ PERFORMANCE OF THIS SOFTWARE. Package: @angular/router License: "MIT" +The MIT License + +Copyright (c) 2010-2024 Google LLC. https://angular.dev/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: io-ts @@ -421,6 +526,27 @@ SOFTWARE. Package: @angular/forms License: "MIT" +The MIT License + +Copyright (c) 2010-2024 Google LLC. https://angular.dev/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: lodash-es @@ -509,5 +635,26 @@ THE SOFTWARE. Package: @angular/localize License: "MIT" +The MIT License + +Copyright (c) 2010-2024 Google LLC. https://angular.dev/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. -------------------------------------------------------------------------------- diff --git a/public/apps/webapp-schulverwaltung/assets/locales/de-CH.json b/public/apps/webapp-schulverwaltung/assets/locales/de-CH.json index 9a4361be..16a989e4 100644 --- a/public/apps/webapp-schulverwaltung/assets/locales/de-CH.json +++ b/public/apps/webapp-schulverwaltung/assets/locales/de-CH.json @@ -171,6 +171,7 @@ "teacher": "Lehrperson", "date-from": "Datum von", "date-to": "Datum bis", + "weekdays": "Tag", "presence-type": "Grund", "confirmation-state": "Status", "incident": "Vorfall", diff --git a/public/apps/webapp-schulverwaltung/assets/locales/fr-CH.json b/public/apps/webapp-schulverwaltung/assets/locales/fr-CH.json index d66ea371..8c2428e3 100644 --- a/public/apps/webapp-schulverwaltung/assets/locales/fr-CH.json +++ b/public/apps/webapp-schulverwaltung/assets/locales/fr-CH.json @@ -171,6 +171,7 @@ "teacher": "Enseignant-e", "date-from": "Date du", "date-to": "Date au", + "weekdays": "Jour", "presence-type": "Motif", "confirmation-state": "Statut", "incident": "Incident", diff --git a/public/apps/webapp-schulverwaltung/chunk-24AFRN2G.js b/public/apps/webapp-schulverwaltung/chunk-24AFRN2G.js deleted file mode 100644 index 27f0425c..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-24AFRN2G.js +++ /dev/null @@ -1 +0,0 @@ -import{c as H}from"./chunk-RFO4NYUO.js";import{b as F}from"./chunk-DB66EACG.js";import{b as j}from"./chunk-SOHFFTKU.js";import{$b as L,Ac as s,Bc as E,Cd as D,Dd as f,Fc as o,Gc as R,Ic as $,Mc as i,O as m,Oc as a,Rc as c,Tc as S,Vc as x,W as A,Z as I,a as b,ca as T,dc as C,m as y,va as v,zc as r}from"./chunk-XTHSYQMN.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-2D2UAYZL.js b/public/apps/webapp-schulverwaltung/chunk-2D2UAYZL.js new file mode 100644 index 00000000..98e4c1c6 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-2D2UAYZL.js @@ -0,0 +1 @@ +import{a as Y}from"./chunk-OGCDITJ2.js";import{a as ce,b as de}from"./chunk-7FRZV7VF.js";import{d as me,e as fe}from"./chunk-VUPOI3TG.js";import{j as q,k as O,l as K}from"./chunk-NL5E3FC5.js";import{b as ue}from"./chunk-UGBTF4Z2.js";import{a as J,c as Q}from"./chunk-KK2SHN2W.js";import{u as Z}from"./chunk-LGOOC47H.js";import{Ab as M,Cc as d,Dc as z,Gb as u,Ha as _,Hb as x,Ib as F,Ic as N,Jd as pe,Kd as se,Ld as le,Ma as ne,Na as ie,P as B,Pc as f,Qc as R,Ra as p,Wa as c,X as j,Xa as m,Xb as ae,Ya as s,Yc as k,_ as C,_b as re,aa as P,da as ee,db as l,ec as w,gc as U,ha as te,hb as g,l as E,n as G,nb as r,o as L,ob as S,pb as y,qb as v,uc as oe,va as h,wa as a,x as X,xa as V}from"./chunk-IFJN5CDK.js";function Se(t,o){if(t&1&&(r(0),s(1,"br")),t&2){let e=l();y(" ",e.student.AddressLine2,"")}}function _e(t,o){if(t&1&&(c(0,"a",0),r(1),m(),s(2,"br")),t&2){let e=l();g("href","tel:",e.student.PhonePrivate,"",h),a(),y(" ",e.student.PhonePrivate," ")}}function Pe(t,o){if(t&1&&(c(0,"a",0),r(1),m(),s(2,"br")),t&2){let e=l();g("href","tel:",e.student.PhoneMobile,"",h),a(),y(" ",e.student.PhoneMobile," ")}}function Me(t,o){if(t&1&&(c(0,"a",0),r(1),m()),t&2){let e=l();g("href","mailto:",e.email,"",h),a(),y(" ",e.email," ")}}var We=(()=>{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}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["bkd-student-dossier-address"]],inputs:{student:"student",emailProperty:"emailProperty"},standalone:!0,features:[M],decls:9,vars:7,consts:[[3,"href"]],template:function(i,n){i&1&&(c(0,"address"),r(1),s(2,"br"),_(3,Se,2,1,"br"),r(4),s(5,"br"),_(6,_e,3,3)(7,Pe,3,3)(8,Me,2,3,"a",0),m()),i&2&&(a(),y(" ",n.student.AddressLine1,""),a(2),p(n.student.AddressLine2?3:-1),a(),v(" ",n.postalCode||""," ",n.student.Location,""),a(2),p(n.student.PhonePrivate?6:-1),a(),p(n.student.PhoneMobile?7:-1),a(),p(n.email?8:-1))},changeDetection:0})}}return t})();var $=(()=>{class t{transform(e){return e?.DisplayEmail||e?.Email||e?.Email2||null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=ee({name:"bkdPersonEmail",type:t,pure:!0,standalone:!0})}}return t})();function Ie(t,o){if(t&1&&(r(0),s(1,"br")),t&2){let e=l();y(" ",e.company.apprenticeshipManager==null?null:e.company.apprenticeshipManager.CompanyName,"")}}function Ae(t,o){if(t&1&&(r(0),s(1,"br")),t&2){let e=l();y(" ",e.company.apprenticeshipManager==null?null:e.company.apprenticeshipManager.CompanyNameAddition,"")}}function Te(t,o){if(t&1&&(r(0),s(1,"br")),t&2){let e=l();v(" ",(e.company.apprenticeshipManager==null?null:e.company.apprenticeshipManager.Lastname)||""," ",(e.company.apprenticeshipManager==null?null:e.company.apprenticeshipManager.Firstname)||"","")}}function De(t,o){if(t&1&&(r(0),s(1,"br")),t&2){let e=l();y(" ",e.company.apprenticeshipManager==null?null:e.company.apprenticeshipManager.AddressLine1,"")}}function Ee(t,o){if(t&1&&(r(0),s(1,"br")),t&2){let e=l();y(" ",e.company.apprenticeshipManager==null?null:e.company.apprenticeshipManager.AddressLine2,"")}}function Le(t,o){if(t&1&&(r(0),s(1,"br")),t&2){let e=l();v(" ",e.company.apprenticeshipManager==null?null:e.company.apprenticeshipManager.PostalCode," ",e.company.apprenticeshipManager==null?null:e.company.apprenticeshipManager.Location,"")}}function je(t,o){if(t&1&&(c(0,"a",0),r(1),s(2,"br"),m()),t&2){let e=l();g("href","tel:",e.company.apprenticeshipManager==null?null:e.company.apprenticeshipManager.PhoneBusiness,"",h),a(),S(e.company.apprenticeshipManager==null?null:e.company.apprenticeshipManager.PhoneBusiness)}}function ke(t,o){if(t&1&&(c(0,"a",0),u(1,"bkdPersonEmail"),r(2),u(3,"bkdPersonEmail"),m()),t&2){let e=l();g("href","mailto:",x(1,3,e.company.apprenticeshipManager),"",h),a(2),S(x(3,5,e.company.apprenticeshipManager))}}function Fe(t,o){if(t&1&&(c(0,"div",1),r(1),u(2,"translate"),u(3,"addSpace"),s(4,"br"),r(5),u(6,"date"),u(7,"date"),m()),t&2){let e=l();a(),v(" ",x(2,4,"shared.profile.apprenticeship-period"),"",F(3,6,":",":"),""),a(4),v(" ",F(6,9,e.company.apprenticeshipContract.ContractDateFrom,"dd.MM.yyyy"),"\u2013",F(7,12,e.company.apprenticeshipContract.ContractDateTo,"dd.MM.yyyy")," ")}}function Re(t,o){if(t&1&&(r(0),s(1,"br")),t&2){let e=l(2);v(" ",e.company.jobTrainer.Lastname||""," ",e.company.jobTrainer.Firstname||"","")}}function Be(t,o){if(t&1&&(c(0,"a",0),r(1),s(2,"br"),m()),t&2){let e=l(2);g("href","tel:",e.company.jobTrainer.PhoneBusiness,"",h),a(),S(e.company.jobTrainer.PhoneBusiness)}}function we(t,o){if(t&1&&(c(0,"a",0),r(1),s(2,"br"),m()),t&2){let e=l(2);g("href","tel:",e.company.jobTrainer.PhoneMobile,"",h),a(),S(e.company.jobTrainer.PhoneMobile)}}function Ue(t,o){if(t&1&&(c(0,"a",0),u(1,"bkdPersonEmail"),r(2),u(3,"bkdPersonEmail"),m()),t&2){let e=l(2);g("href","mailto:",x(1,3,e.company.jobTrainer),"",h),a(2),S(x(3,5,e.company.jobTrainer))}}function ze(t,o){if(t&1&&(c(0,"div",1),r(1),u(2,"translate"),u(3,"addSpace"),c(4,"address"),_(5,Re,2,2,"br")(6,Be,3,3,"a",0)(7,we,3,3,"a",0)(8,Ue,4,7,"a",0),u(9,"bkdPersonEmail"),m()()),t&2){let e=l();a(),v(" ",x(2,6,"shared.profile.job-trainer"),"",F(3,8,":",":")," "),a(4),p(e.company.jobTrainer.Lastname||e.company.jobTrainer.Firstname?5:-1),a(),p(e.company.jobTrainer.PhoneBusiness?6:-1),a(),p(e.company.jobTrainer.PhoneMobile?7:-1),a(),p(x(9,11,e.company.jobTrainer)?8:-1)}}var ot=(()=>{class t{constructor(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["bkd-student-dossier-apprenticeship-company"]],inputs:{company:"company"},standalone:!0,features:[M],decls:12,vars:12,consts:[[3,"href"],[1,"subentry"]],template:function(i,n){i&1&&(c(0,"address"),_(1,Ie,2,1,"br")(2,Ae,2,1,"br")(3,Te,2,2,"br")(4,De,2,1,"br")(5,Ee,2,1,"br")(6,Le,2,2,"br")(7,je,3,3,"a",0)(8,ke,4,7,"a",0),u(9,"bkdPersonEmail"),m(),_(10,Fe,8,15,"div",1)(11,ze,10,13,"div",1)),i&2&&(a(),p(n.company.apprenticeshipManager!=null&&n.company.apprenticeshipManager.CompanyName?1:-1),a(),p(n.company.apprenticeshipManager!=null&&n.company.apprenticeshipManager.CompanyNameAddition?2:-1),a(),p(n.company.apprenticeshipManager!=null&&n.company.apprenticeshipManager.Lastname||n.company.apprenticeshipManager!=null&&n.company.apprenticeshipManager.Firstname?3:-1),a(),p(n.company.apprenticeshipManager!=null&&n.company.apprenticeshipManager.AddressLine1?4:-1),a(),p(n.company.apprenticeshipManager!=null&&n.company.apprenticeshipManager.AddressLine2?5:-1),a(),p(n.company.apprenticeshipManager!=null&&n.company.apprenticeshipManager.PostalCode&&(n.company.apprenticeshipManager!=null&&n.company.apprenticeshipManager.Location)?6:-1),a(),p(n.company.apprenticeshipManager!=null&&n.company.apprenticeshipManager.PhoneBusiness?7:-1),a(),p(x(9,10,n.company.apprenticeshipManager)?8:-1),a(2),p(n.company.apprenticeshipContract.ContractDateFrom?10:-1),a(),p(n.company.jobTrainer?11:-1))},dependencies:[re,se,pe,fe,$],styles:[".subentry[_ngcontent-%COMP%]{padding-bottom:1rem}"],changeDetection:0})}}return t})();function Ne(t,o){if(t&1&&(r(0),s(1,"br")),t&2){let e=l();y(" ",e.person.AddressLine1,"")}}function Oe(t,o){if(t&1&&(r(0),s(1,"br")),t&2){let e=l();y(" ",e.person.AddressLine2,"")}}function Je(t,o){if(t&1&&(r(0),s(1,"br")),t&2){let e=l();v(" ",e.person.Zip," ",e.person.Location,"")}}function Ye(t,o){if(t&1&&(c(0,"a",0),r(1),s(2,"br"),m()),t&2){let e=l();g("href","tel:",e.person.PhonePrivate,"",h),a(),S(e.person.PhonePrivate)}}function $e(t,o){if(t&1&&(c(0,"a",0),r(1),s(2,"br"),m()),t&2){let e=l();g("href","tel:",e.person.PhoneMobile,"",h),a(),S(e.person.PhoneMobile)}}function He(t,o){if(t&1&&(c(0,"a",0),u(1,"bkdPersonEmail"),r(2),u(3,"bkdPersonEmail"),m()),t&2){let e=l();g("href","mailto:",x(1,3,e.person),"",h),a(2),S(x(3,5,e.person))}}var lt=(()=>{class t{constructor(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["bkd-student-dossier-legal-representative"]],inputs:{person:"person"},standalone:!0,features:[M],decls:10,vars:10,consts:[[3,"href"]],template:function(i,n){i&1&&(c(0,"address"),r(1),s(2,"br"),_(3,Ne,2,1,"br")(4,Oe,2,1,"br")(5,Je,2,2,"br")(6,Ye,3,3,"a",0)(7,$e,3,3,"a",0)(8,He,4,7,"a",0),u(9,"bkdPersonEmail"),m()),i&2&&(a(),v(" ",n.person.LastName," ",n.person.FirstName,""),a(2),p(n.person.AddressLine1?3:-1),a(),p(n.person.AddressLine2?4:-1),a(),p(n.person.Zip&&n.person.Zip?5:-1),a(),p(n.person.PhonePrivate?6:-1),a(),p(n.person.PhoneMobile?7:-1),a(),p(x(9,8,n.person)?8:-1))},dependencies:[$],changeDetection:0})}}return t})();function W(t,o){let e=+q(t)-+q(o);return e<0?-1:e>0?1:e}function he(t,o,e){let[i,n]=O(e?.in,t,o);return i.getFullYear()-n.getFullYear()}function ge(t,o,e){let[i,n]=O(e?.in,t,o),b=W(i,n),I=Math.abs(he(i,n));i.setFullYear(1584),n.setFullYear(1584);let A=W(i,n)===-b,D=b*(I-+A);return D===0?0:D}var Ge=18;function ye(t){return ge(new Date,t.Birthdate||new Date)>=Ge}var Ce=N({Email:f(d),Email2:f(d),PhoneBusiness:f(d),CompanyName:R(d),CompanyNameAddition:R(d),Firstname:f(d),Lastname:f(d),AddressLine1:R(d),AddressLine2:R(d),PostalCode:f(d),Location:f(d),Id:z});var xe=(()=>{class t extends J{constructor(e,i){super(e,i,Ce,"ApprenticeshipManagers")}static{this.\u0275fac=function(i){return new(i||t)(C(U),C(k))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var ve=N({Email:f(d),Email2:f(d),PhoneBusiness:f(d),PhoneMobile:f(d),Firstname:f(d),Lastname:f(d),Id:z});var be=(()=>{class t extends J{constructor(e,i){super(e,i,ve,"JobTrainers")}static{this.\u0275fac=function(i){return new(i||t)(C(U),C(k))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Yt=(()=>{class t{constructor(e,i,n,b,I,A){this.studentService=e,this.personsService=i,this.apprenticeshipManagersService=n,this.jobTrainersService=b,this.loadingService=I,this.dropDownItemsService=A,this.loading$=this.loadingService.loading$}getProfile(e){return this.loadingService.load(L([this.loadStudent(e),this.loadLegalRepresentatives(e),this.loadApprenticeshipContracts(e)]).pipe(B(K(this.mapToProfile.bind(this)))))}getMyProfile(){return this.loadingService.load(this.personsService.getMyself({context:new w().set(Y,{disableErrorHandlingForStatus:[403]})}).pipe(B(e=>L([E(e),this.loadLegalRepresentatives(e.Id),this.loadApprenticeshipContracts(e.Id),this.loadStayPermitValue(e.StayPermit)]))).pipe(B(K(this.mapToProfile.bind(this))),X(Z)))}loadStudent(e){return this.studentService.get(e,{context:new w().set(Y,{disableErrorHandlingForStatus:[404]})}).pipe(Q())}loadLegalRepresentatives(e){return this.studentService.getLegalRepresentatives(e)}loadApprenticeshipContracts(e){return this.studentService.getCurrentApprenticeshipContracts(e,{context:new w().set(Y,{disableErrorHandlingForStatus:[404]})}).pipe(Q([]))}loadStayPermitValue(e){return this.dropDownItemsService.getStayPermits().pipe(G(i=>i.find(n=>n.Key===e)?.Value||null))}mapToProfile(e,i,n,b=null){return e?(i=this.getRelevantLegalRepresentatives(e,i),L([this.loadLegalRepresentativPersons(i),this.loadJobTrainers(n),this.loadApprenticeshipManagers(n)]).pipe(G(([I,A,D])=>this.createProfile(e,b,i,I,n,D,A)))):E(null)}loadLegalRepresentativPersons(e){return e.length===0?E([]):this.personsService.getListForIds(e.map(i=>i.RepresentativeId))}loadJobTrainers(e){let i=e.map(n=>n.JobTrainer).filter(n=>typeof n=="number");return i.length===0?E([]):L(i.map(n=>this.jobTrainersService.get(n)))}loadApprenticeshipManagers(e){let i=e.map(n=>n.ApprenticeshipManagerId);return i.length===0?E([]):L(i.map(n=>this.apprenticeshipManagersService.get(n)))}createProfile(e,i,n,b,I,A,D){return{student:e,stayPermitValue:i||void 0,legalRepresentativePersons:n.map(H=>this.findPerson(H.RepresentativeId,b)).filter(Z),apprenticeshipCompanies:I.map(H=>this.createApprenticeshipCompany(H,A,D))}}getRelevantLegalRepresentatives(e,i){let n=ye(e);return i.filter(b=>!n||b.RepresentativeAfterMajority)}createApprenticeshipCompany(e,i,n){return{apprenticeshipContract:e,jobTrainer:this.findPerson(e.JobTrainer,n),apprenticeshipManager:this.findPerson(e.ApprenticeshipManagerId,i)}}findPerson(e,i){return e&&i.find(n=>n.Id===e)||null}static{this.\u0275fac=function(i){return new(i||t)(C(me),C(de),C(xe),C(be),C(ue),C(ce))}}static{this.\u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var qt=(()=>{class t{constructor(e,i){this.settings=e,this.storageService=i,this.avatarStyles={}}ngOnChanges(e){e.studentId&&(this.avatarStyles=this.buildAvatarStyles(this.studentId))}buildAvatarStyles(e){return{"background-image":[this.buildAvatarUrl(e),this.fallbackAvatarUrl].map(i=>`url(${i})`).join(", ")}}buildAvatarUrl(e){let i=this.storageService.getAccessToken()||"";return`${this.settings.apiUrl}/Files/personPictures/${e}?token=${i}`}get fallbackAvatarUrl(){return`${this.settings.scriptsAndAssetsPath}/assets/images/avatar-placeholder.png`}static{this.\u0275fac=function(i){return new(i||t)(V(k),V(le))}}static{this.\u0275cmp=P({type:t,selectors:[["bkd-avatar"]],inputs:{studentId:"studentId",link:"link",linkParams:"linkParams"},standalone:!0,features:[te,M],decls:1,vars:5,consts:[[1,"avatar",3,"routerLink","queryParams","ngStyle"]],template:function(i,n){i&1&&s(0,"a",0),i&2&&(ie("disabled",!n.link),ne("routerLink",n.link)("queryParams",n.linkParams)("ngStyle",n.avatarStyles))},dependencies:[oe,ae],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 t})();export{Yt as a,We as b,ot as c,lt as d,qt as e}; diff --git a/public/apps/webapp-schulverwaltung/chunk-2U5ENDJH.js b/public/apps/webapp-schulverwaltung/chunk-2U5ENDJH.js new file mode 100644 index 00000000..bd7f8542 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-2U5ENDJH.js @@ -0,0 +1 @@ +import{Bd as u,F as s,H as o,M as a,X as c,g as r,n}from"./chunk-IFJN5CDK.js";var l=(()=>{class i{getSortingChar$(e){return this.sorting$.pipe(n(t=>t&&e===t.key?t.ascending?"\u2193":"\u2191":""))}constructor(){this.sortingSubject$=new r(null),this.sorting$=this.sortingSubject$.asObservable().pipe(o(u),a(1))}setSorting(e){this.sortingSubject$.next(e)}toggleSorting(e){this.sorting$.pipe(s(1)).subscribe(t=>{let p=t&&t.key===e?!t.ascending:!0;this.sortingSubject$.next({key:e,ascending:p})})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=c({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();export{l as a}; diff --git a/public/apps/webapp-schulverwaltung/chunk-32LHGY5Z.js b/public/apps/webapp-schulverwaltung/chunk-32LHGY5Z.js new file mode 100644 index 00000000..9db17c61 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-32LHGY5Z.js @@ -0,0 +1 @@ +import{Ab as k,Ha as f,La as h,Ma as v,Na as g,Ra as C,Wa as l,Xa as r,aa as d,ab as _,cb as u,db as y,ia as c,ja as m,nb as s,qa as b,wa as o,xd as E}from"./chunk-IFJN5CDK.js";function M(e,a,n){return n?e.filter(S(a,n)):e}function S(e,a){let n=x(a);return i=>e.some(t=>w(i[t],n))}function w(e,a){return e?x(String(e)).includes(a):!1}function x(e){return E(e.toLowerCase())}function I(e,a){if(e&1){let n=_();l(0,"button",5),u("click",function(){c(n);let t=y();return m(t.valueChange.emit(""))}),l(1,"i",2),s(2,"clear"),r()()}}var L=(()=>{class e{constructor(){this.value="",this.disabled=!1,this.valueChange=new b}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=d({type:e,selectors:[["bkd-resettable-input"]],inputs:{value:"value",disabled:"disabled",placeholder:"placeholder",label:"label"},outputs:{valueChange:"valueChange"},standalone:!0,features:[k],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"],["type","button",1,"clear","btn","btn-link","text-decoration-none"],["type","button",1,"clear","btn","btn-link","text-decoration-none",3,"click"]],template:function(i,t){i&1&&(l(0,"div",0)(1,"span",1)(2,"i",2),s(3,"search"),r()(),l(4,"input",3),u("keyup",function(p){return t.valueChange.emit(p.target==null?null:p.target.value)}),r(),f(5,I,3,0,"button",4),r()),i&2&&(o(4),g("has-value",t.value),v("value",t.value)("disabled",t.disabled),h("placeholder",t.placeholder)("aria-label",t.label),o(),C(t.value?5:-1))},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 e})();export{M as a,L as b}; diff --git a/public/apps/webapp-schulverwaltung/chunk-3BIGM3Z4.js b/public/apps/webapp-schulverwaltung/chunk-3BIGM3Z4.js new file mode 100644 index 00000000..30440884 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-3BIGM3Z4.js @@ -0,0 +1 @@ +import{p as K,r as Q,s as X,t as Z,w as ee}from"./chunk-IMBPAJBQ.js";import"./chunk-Y4QYVF5K.js";import"./chunk-OFB4XAK2.js";import{d as W}from"./chunk-WACRWBCS.js";import{a as V,b as z}from"./chunk-UGBTF4Z2.js";import{b as Y}from"./chunk-KK2SHN2W.js";import{A as F,u as k}from"./chunk-LGOOC47H.js";import{Ab as f,Bb as N,Gb as a,Ha as j,Hb as d,Jd as x,Kd as w,Ld as U,M as B,Ma as y,P as _,Ra as O,Wa as g,X as A,Xa as u,Ya as m,Yc as J,Zb as R,_ as p,aa as l,db as H,h as E,n as o,nb as C,o as T,ob as $,s as P,sc as q,wa as c,wb as G,xa as v,xb as I,yb as M,zb as b}from"./chunk-IFJN5CDK.js";var S=(()=>{class e{constructor(s,t,n,h,oe,ae,de){this.storageService=s,this.loadingService=t,this.coursesRestService=n,this.subscriptionRestService=h,this.reportsService=oe,this.gradingScalesRestService=ae,this.settings=de,this.studentId$=new E(1),this.loading$=this.loadingService.loading$,this.studentCourses$=this.loadCourses().pipe(B(1)),this.studentCoursesSorted$=this.studentCourses$.pipe(o(i=>i.slice().sort((r,pe)=>r.Designation.localeCompare(pe.Designation)))),this.studentCourseIds$=this.studentCourses$.pipe(o(i=>i.flatMap(r=>r.Id))),this.idSubscriptions$=T([this.studentId$,this.studentCourseIds$]).pipe(_(([i,r])=>this.subscriptionRestService.getIdSubscriptionsByStudentAndCourse(i,r))),this.ids$=this.idSubscriptions$.pipe(o(i=>i.map(r=>r.Id))),this.testReports$=this.ids$.pipe(o(i=>this.reportsService.getStudentSubscriptionReports(i))),this.tests$=this.studentCourses$.pipe(o(i=>i.flatMap(r=>r.Tests).filter(k))),this.gradingScaleIdsFromTests$=this.tests$.pipe(o(i=>[...i.map(r=>r.GradingScaleId)].filter(k).filter(F))),this.gradingScaleIdsFromCourses$=this.studentCourses$.pipe(o(i=>i.flatMap(r=>r.GradingScaleId).filter(k).filter(F))),this.gradingScaleIds$=T([this.gradingScaleIdsFromCourses$,this.gradingScaleIdsFromTests$]).pipe(o(([i,r])=>i.concat(r).filter(F))),this.gradingScales$=this.gradingScaleIds$.pipe(_(i=>P(i.map(r=>this.gradingScalesRestService.getGradingScale(r)))));let D=this.storageService.getPayload()?.id_person;D&&this.studentId$.next(Number(D))}loadCourses(){return this.loadingService.load(this.coursesRestService.getExpandedCoursesForStudent())}static{this.\u0275fac=function(t){return new(t||e)(p(U),p(z),p(K),p(Q),p(W),p(X),p(J))}}static{this.\u0275prov=A({token:e,factory:e.\u0275fac})}}return e})();var me=()=>[],ie=(()=>{class e{constructor(s){this.myGradesService=s}static{this.\u0275fac=function(t){return new(t||e)(v(S))}}static{this.\u0275cmp=l({type:e,selectors:[["bkd-my-grades-header"]],standalone:!0,features:[f],decls:7,vars:7,consts:[[1,"d-flex","justify-content-between","header"],[3,"reports"]],template:function(t,n){if(t&1&&(g(0,"div",0)(1,"div"),C(2),a(3,"translate"),u(),g(4,"div"),m(5,"bkd-reports-link",1),a(6,"async"),u()()),t&2){let h;c(2),$(d(3,2,"my-grades.header")),c(3),y("reports",(h=d(6,4,n.myGradesService.testReports$))!==null&&h!==void 0?h:N(6,me))}},dependencies:[V,R,w,x],styles:[".header[_ngcontent-%COMP%]{padding-bottom:1rem}.report[_ngcontent-%COMP%]{margin-left:1rem}"]})}}return e})();function le(e,ne){e&1&&m(0,"bkd-spinner")}function ue(e,ne){if(e&1&&m(0,"bkd-dossier-grades-view",1),e&2){H();let s=M(0),t=M(2),n=M(4);y("courses",s)("studentId",t)("gradingScales",n)("isEditable",!1)}}var re=(()=>{class e{constructor(s){this.myGradesService=s}static{this.\u0275fac=function(t){return new(t||e)(v(S))}}static{this.\u0275cmp=l({type:e,selectors:[["bkd-my-grades-show"]],standalone:!0,features:[b([Z]),f],decls:14,vars:15,consts:[[1,"bkd-container","bkd-container-limited"],[3,"courses","studentId","gradingScales","isEditable"]],template:function(t,n){t&1&&(G(0),a(1,"async"),G(2),a(3,"async"),G(4),a(5,"async"),g(6,"div",0)(7,"h1"),C(8),a(9,"translate"),u(),m(10,"bkd-my-grades-header"),j(11,le,1,0,"bkd-spinner"),a(12,"async"),j(13,ue,1,4,"bkd-dossier-grades-view",1),u()),t&2&&(I(d(1,2,n.myGradesService.studentCoursesSorted$)),c(2),I(d(3,5,n.myGradesService.studentId$)),c(2),I(d(5,8,n.myGradesService.gradingScales$)),c(4),$(d(9,11,"my-grades.title")),c(3),O(d(12,13,n.myGradesService.loading$)?11:13))},dependencies:[ie,ee,Y,R,w,x]})}}return e})();var se=(()=>{class e{constructor(){}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=l({type:e,selectors:[["bkd-my-grades"]],standalone:!0,features:[b([S]),f],decls:1,vars:0,template:function(t,n){t&1&&m(0,"router-outlet")},dependencies:[q]})}}return e})();var Ae=[{path:"",component:se,children:[{path:"",component:re}]}];export{Ae as MY_GRADES_ROUTES}; diff --git a/public/apps/webapp-schulverwaltung/chunk-4EXGKTN3.js b/public/apps/webapp-schulverwaltung/chunk-4EXGKTN3.js deleted file mode 100644 index f9300101..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-4EXGKTN3.js +++ /dev/null @@ -1 +0,0 @@ -import{n as e}from"./chunk-W7ASLXRM.js";import{b as l}from"./chunk-24AFRN2G.js";import{Dd as a,O as s,Vc as p,W as n,Z as o,dc as m}from"./chunk-XTHSYQMN.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-673RVEOB.js b/public/apps/webapp-schulverwaltung/chunk-673RVEOB.js deleted file mode 100644 index 5e859281..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-673RVEOB.js +++ /dev/null @@ -1 +0,0 @@ -import{c as f}from"./chunk-C7XT5XXE.js";import{D as r,G as m}from"./chunk-ZK2MNT7Z.js";import{d as o}from"./chunk-AW7CSGKI.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-7FRZV7VF.js b/public/apps/webapp-schulverwaltung/chunk-7FRZV7VF.js new file mode 100644 index 00000000..1f386255 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-7FRZV7VF.js @@ -0,0 +1 @@ +import{a as f}from"./chunk-OFB4XAK2.js";import{a as j}from"./chunk-KK2SHN2W.js";import{Cc as t,Dc as y,Fc as l,Fd as P,Gd as a,Ic as d,Kc as I,M as m,P as o,Pc as e,Qc as g,Uc as b,Wc as S,X as p,Yc as h,_ as n,gc as c,n as u}from"./chunk-IFJN5CDK.js";var D=(()=>{class i{constructor(r,s){this.http=r,this.settings=s}getWeekdays(){return this.http.get(`${this.baseUrl}/Weekdays`).pipe(o(a(f)),m(1))}getAbsenceConfirmationStates(){return this.http.get(`${this.baseUrl}/AbsenceConfirmationStates`).pipe(o(a(f)),m(1))}getStayPermits(){return this.http.get(`${this.baseUrl}/StayPermits`).pipe(o(a(f)),m(1))}get baseUrl(){return`${this.settings.apiUrl}/DropDownItems`}static{this.\u0275fac=function(s){return new(s||i)(n(c),n(h))}}static{this.\u0275prov=p({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var E=d({Id:y,FormOfAddress:t,Nationality:e(t),AddressLine1:e(t),AddressLine2:e(t),BillingAddress:e(t),Birthdate:e(b),CorrespondenceAddress:e(t),DisplayEmail:e(t),Email:g(t),Email2:g(t),FirstName:e(t),Gender:e(I([l("M"),l("F"),l("X")])),HomeTown:e(t),LastName:e(t),FullName:e(t),Location:e(t),MiddleName:e(t),NativeLanguage:e(t),PhoneMobile:e(t),PhonePrivate:e(t),PhoneBusiness:g(t),SocialSecurityNumber:e(t),StayPermit:e(y),StayPermitExpiry:e(b),Zip:e(t)});var X=(()=>{class i extends j{constructor(r,s){super(r,s,E,"Persons"),this.personEmailCodec=d(S(this.codec.props,["Email","FormOfAddress"]))}getListForIds(r){return this.getList({params:{"filter.Id":`;${r.join(";")}`}})}getMyself(r){return this.http.get(`${this.baseUrl}/me`,r).pipe(o(P(this.codec)))}getByIdWithEmailInfos(r){return this.http.get(`${this.baseUrl}/`,{params:{"filter.Id=":r.toString(),fields:["FormOfAddress","Email"].join(",")}}).pipe(o(a(this.personEmailCodec)),u(s=>s[0]))}update(r,s,A,F){let N={PhonePrivate:s,PhoneMobile:A,Email2:F};return this.http.put(`${this.baseUrl}/${r}`,N).pipe(u(()=>{}))}static{this.\u0275fac=function(s){return new(s||i)(n(c),n(h))}}static{this.\u0275prov=p({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();export{D as a,X as b}; diff --git a/public/apps/webapp-schulverwaltung/chunk-7T3G7FUV.js b/public/apps/webapp-schulverwaltung/chunk-7T3G7FUV.js deleted file mode 100644 index c40a5086..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-7T3G7FUV.js +++ /dev/null @@ -1 +0,0 @@ -import{a as Le,b as Ne,c as Ve,d as Oe,e as je}from"./chunk-U4HODSW3.js";import"./chunk-PSXDSPKS.js";import{b as De}from"./chunk-YMJC6QZX.js";import"./chunk-HII3S2DL.js";import"./chunk-24AFRN2G.js";import{b as Fe,d as Re}from"./chunk-RFO4NYUO.js";import"./chunk-DB66EACG.js";import{a as Y}from"./chunk-AW7CSGKI.js";import{a as $e}from"./chunk-FTDG26ID.js";import{a as z,c as Ae}from"./chunk-SOHFFTKU.js";import{a as Ie,b as ke,c as Pe,d as Me,e as we,u as Be}from"./chunk-C56YGDXA.js";import{a as Ee}from"./chunk-UX5TA32W.js";import{$ as h,$a as f,$c as ve,A as Q,Ab as d,Bb as c,Cb as P,E as W,Eb as G,Fd as Te,Ga as m,Gd as $,Ha as re,Hd as A,I as X,Ia as l,Ja as oe,L as O,N as ee,O as w,Rb as H,Sa as p,Sb as T,Ta as a,Ua as _,Va as R,Vb as B,W as te,Wa as j,Wb as U,Ya as k,Yc as _e,Z as ie,_a as I,_c as ue,ad as ye,cb as E,ed as ge,f as N,g as q,ga as ne,ha as S,ia as C,ib as g,id as he,jb as s,jd as be,k as V,kb as y,l as J,lb as u,m as M,mb as ae,nb as pe,pc as ce,qc as me,qd as xe,rc as fe,rd as Se,sb as le,sd as Ce,tb as b,ua as n,va as x,vb as de,w as K,wb as se}from"./chunk-XTHSYQMN.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-ARLUIMZU.js b/public/apps/webapp-schulverwaltung/chunk-ARLUIMZU.js new file mode 100644 index 00000000..6eb539cc --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-ARLUIMZU.js @@ -0,0 +1 @@ +import{a as me,b as we}from"./chunk-NTSKCSYH.js";import{b as bn}from"./chunk-K5PXAOXJ.js";import{a as yn}from"./chunk-UHRBN2L7.js";import{a as Pn,b as xn}from"./chunk-32LHGY5Z.js";import{a as vn}from"./chunk-IYFH2F7I.js";import{e as Cn}from"./chunk-2D2UAYZL.js";import{q as hn,v as xe}from"./chunk-IMBPAJBQ.js";import{a as pt}from"./chunk-OGCDITJ2.js";import{b as Xt,c as Zt,e as Je}from"./chunk-DKLN3NRY.js";import{a as an}from"./chunk-7FRZV7VF.js";import"./chunk-Y4QYVF5K.js";import"./chunk-OFB4XAK2.js";import{a as wn}from"./chunk-UA2MEY3S.js";import{a as Sn}from"./chunk-VKWEQ6GU.js";import{a as lt,e as fn}from"./chunk-VUPOI3TG.js";import{a as pn}from"./chunk-WACRWBCS.js";import{a as ln,b as dn}from"./chunk-MIRGHONI.js";import"./chunk-YUHFF3NM.js";import{A as nn,B as on,C as at,H as rn,L as sn,P as Pe,Q as cn,S as ct,U as _n,g as Yt,p as en,u as tn,v as Qe,z as Ke}from"./chunk-VGJCKFZL.js";import{j as X,l as ce}from"./chunk-NL5E3FC5.js";import{b as pe}from"./chunk-UGBTF4Z2.js";import{a as ze,b as Se,f as mn,g as un,h as gn}from"./chunk-KK2SHN2W.js";import{f as Gt,g as Nt,h as He,i as Ut,j as Ht,k as qt,m as Wt,n as Qt,o as De,p as ae,u as Jt,w as We}from"./chunk-LGOOC47H.js";import{a as ye}from"./chunk-B6WYZ7BT.js";import{$c as Vt,Ab as D,B as _t,Bb as Oe,Bd as qe,C as vt,Cb as oe,Cd as Ee,D as it,Db as Dt,F as E,Gb as p,Gd as Kt,H as Ve,Ha as L,Hb as m,Ib as q,Id as J,Jd as V,K as bt,Kd as A,L as yt,Ld as zt,M as B,Ma as x,N as ot,Na as Y,O as Ae,Oa as xt,Oc as Ft,P as T,Pa as Re,R as Q,Ra as k,Sb as Et,Ta as wt,Ua as j,Va as F,Wa as a,Wb as Bt,X as N,Xa as c,Ya as K,Yc as W,Zb as re,_,_b as Ce,a as ue,aa as O,ab as S,b as ge,cb as C,cd as At,db as f,dd as _e,ec as rt,ed as ve,f as $,g as fe,gc as Ge,gd as Rt,h as ke,ha as Pt,hb as Z,hd as be,ia as v,ja as b,jb as It,kb as Mt,l as te,lb as Tt,ma as St,mb as kt,n as u,nb as d,o as M,ob as w,pb as y,qa as ie,qb as Lt,rb as $t,rc as Ne,s as Le,sb as Ot,sc as jt,u as Ct,uc as Ue,ud as se,w as ne,wa as s,wb as U,wd as st,x as $e,xa as h,xb as ee,yb as z,zb as he}from"./chunk-IFJN5CDK.js";function In(n,r){return+X(n)<+X(r)}function Mn(n,r){return+X(n)==+X(r)}function Tn(n,r,e){let t=+X(n,e?.in),[i,o]=[+X(r.start,e?.in),+X(r.end,e?.in)].sort((l,g)=>l-g);return t>=i&&t<=o}function kn(n,r,e){let t=r.map(o=>({eventId:o,group:n})),i=e.map(o=>t.find(l=>l.eventId===o.eventId)||o);return[...new Set([...i,...t])].filter(o=>o.group!==null)}var Xe=(()=>{class n extends rn{static{this.\u0275fac=(()=>{let e;return function(i){return(e||(e=St(n)))(i||n)}})()}static{this.\u0275prov=N({token:n,factory:n.\u0275fac})}}return n})();function Ln(n,r){return[...n].sort(si(r))}function si(n){return(r,e)=>{switch(n.primarySortKey){case"name":{let t=r.name.localeCompare(e.name);return n.ascending?t*-1:t}case"group":{let t=(r.detail.Value||"").localeCompare(e.detail.Value||"");return n.ascending?t*-1:t}}}}function $n(n,r){return n.map(e=>ai(e,r))}function ai(n,r){return{id:n.IdPerson,name:r.find(e=>e.StudentRef.Id===n.IdPerson)?.StudentFullName||"",group:n.Value,detail:n}}function On(n,r){return n.filter(e=>e.VssId===r.subscriptionDetailGroupId)}function dt(n,r){return n.find(e=>e.VssId===r.subscriptionDetailGroupId)}var ci=(n,r)=>r.id;function pi(n,r){if(n&1){let e=S();a(0,"div",1)(1,"input",5),C("change",function(){let i=v(e).$implicit,o=f();return b(o.onSelectionChange(i))}),c(),a(2,"label",6),d(3),c()()}if(n&2){let e=r.$implicit,t=r.$index,i=f();s(),Z("id","group-",t,""),x("checked",e.id===i.selected.id)("value",e.id),s(),Z("for","group-",t,""),s(),y(" ",e.label," ")}}var Be=function(n){return n.Select="select",n.Assign="assign",n}(Be||{}),Dn=(()=>{class n{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===Be.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}static{this.\u0275fac=function(t){return new(t||n)(h(ae),h(J))}}static{this.\u0275cmp=O({type:n,selectors:[["bkd-presence-control-group-dialog"]],inputs:{dialogMode:"dialogMode",subscriptionDetailsDefinitions:"subscriptionDetailsDefinitions",group:"group"},standalone:!0,features:[D],decls:14,vars:9,consts:[[1,"modal-body"],[1,"form-check"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-primary",3,"click"],["type","radio","name","groups",1,"form-check-input",3,"change","id","checked","value"],[1,"form-check-label",3,"for"]],template:function(t,i){t&1&&(a(0,"div",0)(1,"p"),d(2),p(3,"translate"),c(),a(4,"form"),j(5,pi,4,7,"div",1,ci),c()(),a(7,"div",2)(8,"button",3),C("click",function(){return i.activeModal.dismiss()}),d(9),p(10,"translate"),c(),a(11,"button",4),C("click",function(){return i.activeModal.close(i.getSelectedGroup())}),d(12),p(13,"translate"),c()()),t&2&&(s(2),y(" ",m(3,3,i.title)," "),s(3),F(i.groupOptions),s(4),y(" ",m(10,5,"presence-control.groups.cancel")," "),s(3),y(" ",m(13,7,"presence-control.groups.save")," "))},dependencies:[se,be,_e,ve,A,V]})}}return n})();function En(n,r){return n===null&&r===null||n!==null&&r!==null&&n.TeacherInformation===r.TeacherInformation&&n.LessonDateTimeFrom.getTime()===r.LessonDateTimeFrom.getTime()&&n.LessonDateTimeTo.getTime()===r.LessonDateTimeTo.getTime()}function Bn(n){let r=new ut(n.TeacherInformation,n.LessonDateTimeFrom,n.LessonDateTimeTo);return r.addLesson(n),r}var ut=class{constructor(r,e,t){this.TeacherInformation=r,this.LessonDateTimeFrom=e,this.LessonDateTimeTo=t,this.lessons=[]}addLesson(r){this.lessons.some(e=>Ke(e,r))||(this.lessons.push(r),this.updateId(),this.updateStudyClassNumbers(),this.updateEventDesignations())}getIds(){return[...new Set(this.lessons.map(r=>r.LessonRef.Id))]}getEventIds(){return[...new Set(this.lessons.map(r=>r.EventRef.Id))]}updateId(){this.id=[...new Set(this.lessons.map(r=>r.LessonRef.Id).sort())].join("-")}updateStudyClassNumbers(){this.studyClassNumbers=[...new Set(this.lessons.map(r=>r.StudyClassNumber).sort((r,e)=>r.localeCompare(e)))].join(", ")}updateEventDesignations(){this.eventDesignations=[...new Set(this.lessons.map(r=>r.EventDesignation).sort())].join(", ")}};function jn(n){return li(n).reduce((r,e)=>{let t=r.find(o=>En(o,e));if(t)return t.addLesson(e),r;let i=Bn(e);return[...r,i]},[]).sort(at)}function Fn(n){if(n.length===0)return null;let r=new Date;if(n=[...n].sort(at),Zt(r,n[0].LessonDateTimeFrom)){for(let e of n)if(In(r,e.LessonDateTimeFrom)||Tn(r,{start:e.LessonDateTimeFrom,end:e.LessonDateTimeTo}))return e;return n[n.length-1]}return n[0]}function li(n){return n.reduce((r,e)=>r.some(t=>Ke(t,e))?r:[...r,e],[])}function Vn(n,r,e,t){return n.map(i=>{let o=r.find(l=>di(l.presence,i));if(o){let l;return!o.newPresenceTypeId&&i.Comment?l=e.find(g=>g.IsComment)||null:l=e.find(g=>g.Id===o.newPresenceTypeId)||null,ge(ue({},i),{TypeRef:mi(l),Date:null,Type:l?l.Designation:null,ConfirmationStateId:Qe(l,t)})}return i})}function di(n,r){return n.LessonRef.Id===r.LessonRef.Id&&n.StudentRef.Id===r.StudentRef.Id}function mi(n){return{Id:n?n.Id:null,HRef:null}}function Ze(n){return r=>r.reduce((e,t)=>e+(t.presenceCategory===n?1:0),0)}function An(){return n=>n.reduce((r,e)=>r+(e.precedingAbsences&&e.precedingAbsences.length>0?1:0),0)}var Rn=(()=>{class n extends ze{constructor(e,t){super(e,t,lt,"LessonTeachers")}loadOtherTeachersLessonAbsences(e,t,i){let o=`${this.baseUrl}/except/${e}/LessonAbsences?expand=LessonRef`;return t&&t.length>0&&(o=o.concat("&filter.StudentRef=;"+t.join(";"))),this.http.get(o,{params:i}).pipe(T(Kt(lt)))}static{this.\u0275fac=function(t){return new(t||n)(_(Ge),_(W))}}static{this.\u0275prov=N({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var et=(()=>{class n extends ze{constructor(e,t){super(e,t,hn,"SubscriptionDetails")}getListForEvent(e){return this.getList({params:{IdEvent:String(e)}})}update(e,t){let i={IdPerson:t.IdPerson,EventId:t.EventId,Value:e};return this.http.put(`${this.baseUrl}/${t.Id}`,i).pipe(u(()=>{}))}static{this.\u0275fac=function(t){return new(t||n)(_(Ge),_(W))}}static{this.\u0275prov=N({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Nn="presence-control-group",de=(()=>{class n{constructor(e,t,i,o,l){this.userSettings=e,this.eventService=t,this.subscriptionDetailsService=i,this.loadingService=o,this.settings=l,this.selectGroup$=new $,this.selectedLesson$=new ke,this.lessonPresences$=new ke,this.reloadSubscriptionDetails$=new $,this.defaultGroup=null,this.savedGroup$=this.selectedLesson$.pipe(T(g=>this.userSettings.getPresenceControlGroupView().pipe(u(I=>this.findGroupByLesson(I,g))))),this.group$=ne(this.selectGroup$,this.savedGroup$).pipe(Ae(this.defaultGroup),B(1)),this.loading$=this.loadingService.loading(Nn),this.subscriptionDetailsDefinitions$=this.selectedLesson$.pipe(u(g=>g?.getEventIds()||[]),T(g=>Le(g.map(I=>this.eventService.getSubscriptionDetailsDefinitions(I)))),B(1)),this.groupsAvailability$=this.subscriptionDetailsDefinitions$.pipe(u(g=>g.every(I=>dt(I,this.settings))),B(1)),this.subscriptionDetails$=M([this.selectedLesson$,this.groupsAvailability$,this.reloadSubscriptionDetails$.pipe(u(()=>!1),Ae(!0))]).pipe(T(([g,I,R])=>g&&I?this.loadSubscriptionDetailsForLesson(g,R):te([])),u(g=>On(g,this.settings)),B(1)),this.subscriptionDetailPersonIds$=M([this.group$,this.subscriptionDetails$]).pipe(u(([g,I])=>I.filter(R=>R.Value===g).map(R=>R.IdPerson)),Ae([]))}selectGroup(e){this.selectGroup$.next(e)}setSelectedLesson(e){this.selectedLesson$.next(e)}setLessonPresences(e){this.lessonPresences$.next(e)}getSubscriptionDetailsDefinitions(){return this.subscriptionDetailsDefinitions$.pipe(u(st),u(e=>dt(e,this.settings)))}getSubscriptionDetailsForStudents(){return M([this.subscriptionDetails$,this.lessonPresences$]).pipe(u(ce($n)))}reloadSubscriptionDetails(){this.reloadSubscriptionDetails$.next(void 0)}loadSubscriptionDetailsForLesson(e,t=!0){return this.loadingService.load(Le(Ee(e.getEventIds()).map(i=>this.subscriptionDetailsService.getListForEvent(i))),t?void 0:Nn).pipe(u(st))}findGroupByLesson(e,t){return e.find(o=>o.eventId===t?.getEventIds()[0])?.group||this.defaultGroup}static{this.\u0275fac=function(t){return new(t||n)(_(we),_(yn),_(et),_(pe),_(W))}}static{this.\u0275prov=N({token:n,factory:n.\u0275fac})}}return n})();var qn=Object.values(me),H=(()=>{class n{constructor(e,t,i,o,l,g,I,R,Ie,Me){this.userSettings=e,this.lessonPresencesService=t,this.lessonTeacherService=i,this.presenceTypesService=o,this.groupService=l,this.dropDownItemsService=g,this.loadingService=I,this.storageService=R,this.settings=Ie,this.location=Me,this.selectedDateSubject$=new fe(new Date),this.selectedDate$=this.selectedDateSubject$.asObservable().pipe(u(P=>Yt(P)),Ve(qe)),this.viewModeSubject$=new $,this.viewMode$=ne(this.viewModeSubject$,this.userSettings.getPresenceControlViewMode().pipe(E(1))),this.lessons$=this.selectedDate$.pipe(T(P=>this.loadLessonsByDate(P)),B(1)),this.selectLessonId$=new $,this.selectLesson$=this.selectLessonId$.pipe(T(P=>this.getLessonById(P))),this.selectedLesson$=M([mn(this.selectLesson$.pipe(Ve((P,Te)=>qe(P,Te))),un(this.settings.lessonPresencesRefreshTime)),this.lessons$]).pipe(u(([P,Te])=>Te.find(oi=>oi.id===P.id)?P:null),B(1)),this.studyClassCount$=this.selectedLesson$.pipe(u(P=>P?.lessons.length||0)),this.updateLessonPresences$=new $,this.reloadLessonPresences$=new $,this.lessonPresences$=ne(gn(this.selectedLesson$,this.reloadLessonPresences$).pipe(T(P=>P?this.loadLessonPresencesByLesson(P):te([]))),this.updateLessonPresences$).pipe(B(1)),this.presenceTypes$=this.loadPresenceTypes().pipe(B(1)),this.reloadStudentIdsWithUnconfirmedAbsences$=new $,this.studentIdsWithUnconfirmedAbsences$=ne(this.selectedDate$,this.selectedLesson$.pipe(ot(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(u(P=>Ee(P.map(Te=>Te.StudentRef.Id))),B(1)),this.otherTeachersAbsences$=this.studentIds$.pipe(Ve(qe),T(P=>P.length>0?this.lessonTeacherService.loadOtherTeachersLessonAbsences(this.getMyself(),P):te([])),B(1)),this.groupsAvailability$=this.groupService.groupsAvailability$,this.presenceControlEntries$=M([this.selectedLesson$,this.lessonPresences$,this.presenceTypes$,this.absenceConfirmationStates$,this.otherTeachersAbsences$]).pipe(u(ce(nn))),this.presenceControlEntriesByGroup$=M([this.groupService.group$,this.presenceControlEntries$,this.groupService.subscriptionDetailPersonIds$]).pipe(u(ce(bn)),B(1)),this.presentCount$=this.presenceControlEntriesByGroup$.pipe(u(Ze("present"))),this.absentCount$=this.presenceControlEntriesByGroup$.pipe(u(Ze("absent"))),this.unapprovedCount$=this.presenceControlEntriesByGroup$.pipe(u(Ze("unapproved"))),this.absentPrecedingCount$=this.presenceControlEntriesByGroup$.pipe(u(An())),this.queryParamsString$=M([this.selectedDate$,this.selectedLesson$,this.viewMode$]).pipe(u(ce(this.buildQueryParams.bind(this))),u(dn)),this.destroy$=new $,this.queryParamsString$.pipe(Q(this.destroy$)).subscribe(P=>{this.location.replaceState("/presence-control",P),this.confirmBackLinkParams={returnparams:P}}),this.viewMode$.pipe(ot(1),T(P=>this.userSettings.savePresenceControlViewMode(P)),Q(this.destroy$)).subscribe(),this.selectedLesson$.pipe(Q(this.destroy$)).subscribe(P=>{this.groupService.setSelectedLesson(P)}),this.lessonPresences$.pipe(Q(this.destroy$)).subscribe(P=>this.groupService.setLessonPresences(P))}ngOnDestroy(){this.destroy$.next()}setDate(e){this.selectedDateSubject$.next(e)}setLessonId(e){this.selectLessonId$.next(e)}setViewMode(e){this.viewModeSubject$.next(e)}updateLessonPresencesTypes(e){M([this.lessonPresences$.pipe(E(1)),this.presenceTypes$.pipe(E(1))]).pipe(u(([t,i])=>Vn(t,e,i,this.settings))).subscribe(t=>this.updateLessonPresences$.next(t))}getNextPresenceType(e){return this.presenceTypes$.pipe(E(1),u(t=>e.getNextPresenceType(t)))}hasUnconfirmedAbsences(e){return this.studentIdsWithUnconfirmedAbsences$.pipe(u(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(u(jn))}loadPresenceTypes(){return this.loadingService.load(this.presenceTypesService.presenceTypes$)}loadStudentIdsWithUnconfirmedAbsences(){return Ct(0,this.settings.unconfirmedAbsencesRefreshTime||-1).pipe(T(()=>this.lessonPresencesService.getListOfUnconfirmed()),u(e=>Ee(e.map(t=>t.StudentRef.Id))))}buildQueryParams(e,t,i){let o={date:en(e,"yyyy-MM-dd"),viewMode:i};return t&&(o.lesson=String(t.id)),o}getLessonById(e){let t=String(e);return this.lessons$.pipe(u(i=>t&&i.find(o=>o.id===t)||Fn(i)),$e(Boolean))}getMyself(){let e=this.storageService.getPayload();return Number(e?.holder_id||e?.id_person)}static{this.\u0275fac=function(t){return new(t||n)(_(we),_(Je),_(Rn),_(Pe),_(de),_(an),_(pe),_(zt),_(W),_(Et))}}static{this.\u0275prov=N({token:n,factory:n.\u0275fac})}}return n})();var Ci=(n,r)=>r.id,_i=()=>[],vi=()=>["/presence-control"];function bi(n,r){if(n&1&&(a(0,"span",12),d(1),c()),n&2){let e=f().$implicit,t=f(),i=z(0);s(),w(t.getSortDirectionCharacter(i,e))}}function yi(n,r){if(n&1){let e=S();a(0,"div",11),C("click",function(){let i=v(e).$implicit,o=f();return b(o.toggleSort(i))}),d(1),p(2,"translate"),L(3,bi,2,1,"span",12),c()}if(n&2){let e=r.$implicit;f();let t=z(0);x("className",e),s(),y(" ",m(2,3,"presence-control.groups.list.header."+e)," "),s(2),k(t?3:-1)}}function Pi(n,r){n&1&&K(0,"bkd-spinner")}function Si(n,r){n&1&&K(0,"bkd-spinner",18)}function xi(n,r){if(n&1){let e=S();a(0,"div",13)(1,"div",14)(2,"input",15,0),p(4,"async"),C("change",function(){let i=v(e).$implicit,o=f(2);return b(o.selectionService.toggle(i))}),c()(),a(5,"div",16),d(6),c(),a(7,"div",17)(8,"span"),d(9),c(),L(10,Si,1,0,"bkd-spinner",18),p(11,"async"),c()()}if(n&2){let e=r.$implicit,t=f(2);s(2),x("checked",m(4,4,t.selectionService.isSelected$(e))),s(4),y(" ",e.name," "),s(3),w(e.group?e.group:""),s(),k(m(11,6,t.groupService.loading$)?10:-1)}}function wi(n,r){if(n&1&&j(0,xi,12,8,"div",13,Ci),n&2){f();let e=z(2);F(e)}}var Kn=(()=>{class n{constructor(e,t,i,o,l,g,I,R,Ie){this.route=e,this.state=t,this.selectionService=i,this.groupService=o,this.userSettings=l,this.subscriptionDetailService=g,this.toastService=I,this.translate=R,this.modalService=Ie,this.primarySortKeys=["name","group"],this.backlinkQueryParams$=this.route.queryParams.pipe(u(({returnparams:Me})=>Me),u(ln)),this.eventIds$=this.state.selectedLesson$.pipe(u(Me=>Me?.getEventIds()||[])),this.sortCriteriaSubject$=new fe({primarySortKey:"name",ascending:!1}),this.sortCriteria$=this.sortCriteriaSubject$.asObservable(),this.sortedEntries$=M([this.groupService.getSubscriptionDetailsForStudents(),this.sortCriteria$]).pipe(u(ce(Ln))),this.selected=[]}ngOnInit(){this.selectionService.selection$.subscribe(e=>this.selected=e)}selectGroup(){this.openGroupModal(Be.Select,this.selectCallback.bind(this))}assignGroup(){this.openGroupModal(Be.Assign,this.assignCallback.bind(this))}openGroupModal(e,t){M([this.groupService.getSubscriptionDetailsDefinitions(),this.groupService.group$]).pipe(E(1)).subscribe(([i,o])=>{let l=this.modalService.open(Dn);l.componentInstance.dialogMode=e,l.componentInstance.subscriptionDetailsDefinitions=i,l.componentInstance.group=o,l.result.then(g=>{t(g)},()=>{})})}selectCallback(e){M([this.eventIds$,this.userSettings.getPresenceControlGroupView()]).pipe(E(1),T(([t,i])=>this.userSettings.savePresenceControlGroupView(kn(e.id,t,i))),u(()=>e.id)).subscribe(t=>this.groupService.selectGroup(t))}assignCallback(e){Le(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(E(1)).subscribe(t=>{t.primarySortKey===e?this.sortCriteriaSubject$.next({primarySortKey:e,ascending:!t.ascending}):this.sortCriteriaSubject$.next({primarySortKey:e,ascending:e==="name"})})}static{this.\u0275fac=function(t){return new(t||n)(h(Ne),h(H),h(Xe),h(de),h(we),h(et),h(ye),h(J),h(xe))}}static{this.\u0275cmp=O({type:n,selectors:[["bkd-presence-control-group"]],standalone:!0,features:[he([Xe]),D],decls:33,vars:32,consts:[["checkbox",""],[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"],[3,"click","className"],[1,"sort-direction"],[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"],[1,"inline","small"]],template:function(t,i){if(t&1){let o=S();U(0),p(1,"async"),U(2),p(3,"async"),U(4),p(5,"async"),U(6),p(7,"async"),a(8,"div"),K(9,"bkd-backlink",1),p(10,"async"),a(11,"h1"),d(12),p(13,"translate"),c(),a(14,"div",2)(15,"div",3)(16,"span",4),d(17),p(18,"translate"),c(),a(19,"button",5),C("click",function(){return v(o),b(i.selectGroup())}),d(20),p(21,"translate"),p(22,"translate"),c()(),a(23,"a",6),C("click",function(){return v(o),b(i.assignGroup())}),a(24,"i",7),d(25,"edit"),c()()(),a(26,"div",8)(27,"div",9),j(28,yi,4,5,"div",10,wt),c(),L(30,Pi,1,0,"bkd-spinner"),p(31,"async"),L(32,wi,2,0),c()()}if(t&2){let o;ee(m(1,8,i.sortCriteria$)),s(2),ee(m(3,11,i.sortedEntries$));let l=(o=m(5,14,i.selectionService.selection$))!==null&&o!==void 0?o:Oe(30,_i),g=m(7,16,i.groupService.group$);s(7),x("link",Oe(31,vi))("params",m(10,18,i.backlinkQueryParams$)),s(3),w(m(13,20,"presence-control.groups.title")),s(5),w(m(18,22,"presence-control.groups.show")),s(3),y(" ",g?m(21,24,"presence-control.groups.group")+" "+g:m(22,26,"presence-control.groups.all")," "),s(3),Y("disabled",l.length===0),s(5),F(i.primarySortKeys),s(2),k(m(31,28,i.state.loading$)?30:32)}},dependencies:[_n,Se,re,A,V],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 n})();var Ii=(n,r)=>r.entry.id;function Mi(n,r){if(n&1){let e=S();a(0,"div",1)(1,"input",5),C("change",function(){let i=v(e).$implicit;return b(i.selected=!i.selected)}),c(),a(2,"label",6)(3,"i"),d(4),c(),a(5,"div",7),d(6),p(7,"date"),p(8,"date"),c()()()}if(n&2){let e=r.$implicit,t=r.$index,i=f();s(),Z("id","lesson-presence-",t,""),x("checked",e.selected),s(),Y("fw-bold",i.isCurrentLesson(e)),Z("for","lesson-presence-",t,""),s(),Re("",e.entry.presenceCategory," material-icons pe-2"),s(),w(e.entry.presenceCategoryIcon),s(2),$t(" ",q(7,14,e.entry.lessonPresence.LessonDateTimeFrom,"HH:mm"),"\u2013",q(8,17,e.entry.lessonPresence.LessonDateTimeTo,"HH:mm")," ",e.entry.lessonPresence.EventDesignation," ")}}var zn=(()=>{class n{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 Mn(e.entry.lessonPresence.LessonDateTimeFrom,this.entry.lessonPresence.LessonDateTimeFrom)}buildLessonPresenceOptions(){return this.blockPresenceControlEntries.map(e=>({entry:e,selected:this.entry.confirmationState===e.confirmationState}))}static{this.\u0275fac=function(t){return new(t||n)(h(ae))}}static{this.\u0275cmp=O({type:n,selectors:[["bkd-presence-control-block-lesson-component"]],inputs:{entry:"entry",blockPresenceControlEntries:"blockPresenceControlEntries"},standalone:!0,features:[D],decls:15,vars:11,consts:[[1,"modal-body"],[1,"form-check"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-primary",3,"click","disabled"],["type","checkbox",1,"form-check-input",3,"change","id","checked"],[1,"form-check-label","d-flex",3,"for"],[1,"d-block","text-truncate"]],template:function(t,i){if(t&1){let o=S();a(0,"div",0)(1,"p"),d(2),p(3,"translate"),c(),a(4,"form"),j(5,Mi,9,20,"div",1,Ii),c()(),U(7),a(8,"div",2)(9,"button",3),C("click",function(){return v(o),b(i.activeModal.close())}),d(10),p(11,"translate"),c(),a(12,"button",4),C("click",function(){v(o);let g=z(7);return b(i.activeModal.close(g))}),d(13),p(14,"translate"),c()()}if(t&2){s(2),y(" ",m(3,4,"presence-control.block-lesson.text")," "),s(3),F(i.blockLessonOptions),s(2);let o=ee(i.getSelectedEntries());s(3),y(" ",m(11,7,"presence-control.block-lesson.cancel")," "),s(2),x("disabled",o.length===0),s(),y(" ",m(14,9,"presence-control.block-lesson.save")," ")}},dependencies:[se,be,_e,ve,Ce,A,V],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 n})();var Ti=30;function ht(n){return`blockLesson${n.lessonPresence.Id}`}var tt=(()=>{class n{constructor(e,t,i,o){this.state=e,this.lessonPresencesService=t,this.loadingService=i,this.settings=o}getBlockLessonPresenceControlEntries(e){return M([this.state.lessons$.pipe(E(1)),this.loadChangeableLessonPresences(e),this.state.presenceTypes$.pipe(E(1)),this.state.absenceConfirmationStates$.pipe(E(1)),this.state.otherTeachersAbsences$.pipe(E(1))]).pipe(u(([t,i,o,l,g])=>this.filterBlockLessonPresences(e,i).map(I=>on(t.find(R=>R.id===I.LessonRef.Id.toString()),I,o,l,g))))}filterBlockLessonPresences(e,t){return[...t].sort((i,o)=>i.LessonDateTimeFrom>o.LessonDateTimeFrom?1:-1).reduce((i,o)=>{let l=i[i.length-1];return this.isWithinBlockTime(o,l)?(i.push(o),i):i.find(g=>g.Id===e.lessonPresence.Id)?i:[o]},[])}isWithinBlockTime(e,t){return t?e.LessonDateTimeFrom.getTime()-t.LessonDateTimeTo.getTime()<=Ti*60*1e3:!0}loadChangeableLessonPresences(e){return M([this.loadLessonPresences(e),this.state.presenceTypes$.pipe(E(1))]).pipe(u(([t,i])=>t.filter(o=>tn(o,i.find(l=>l.Id===o.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(u(t=>t.filter(i=>i.TeacherInformation===e.lessonPresence.TeacherInformation))),ht(e))}static{this.\u0275fac=function(t){return new(t||n)(_(H),_(Je),_(pe),_(W))}}static{this.\u0275prov=N({token:n,factory:n.\u0275fac})}}return n})();var Li=(n,r)=>r.Id;function $i(n,r){if(n&1&&(a(0,"div"),d(1),p(2,"date"),p(3,"date"),p(4,"addSpace"),c()),n&2){let e=r.$implicit;s(),Ot(" ",q(2,5,e.LessonRef.From,"HH:mm"),"\u2013",q(3,8,e.LessonRef.To,"HH:mm")," ",e.LessonRef.EventDesignation,"",q(4,11,":",":")," ",e.Type," ")}}var Jn=(()=>{class n{constructor(e){this.activeModal=e}static{this.\u0275fac=function(t){return new(t||n)(h(ae))}}static{this.\u0275cmp=O({type:n,selectors:[["bkd-presence-control-preceding-absence"]],inputs:{precedingAbsences:"precedingAbsences"},standalone:!0,features:[D],decls:10,vars:6,consts:[[1,"modal-body"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"]],template:function(t,i){t&1&&(a(0,"div",0)(1,"p"),d(2),p(3,"translate"),c(),j(4,$i,5,14,"div",null,Li),c(),a(6,"div",1)(7,"button",2),C("click",function(){return i.activeModal.dismiss()}),d(8),p(9,"translate"),c()()),t&2&&(s(2),y(" ",m(3,2,"presence-control.preceding-absence.text")," "),s(2),F(i.precedingAbsences),s(4),y(" ",m(9,4,"presence-control.preceding-absence.cancel")," "))},dependencies:[Ce,A,V,fn]})}}return n})();var Oi=n=>["student",n,"absences"],Di=n=>["/presence-control/student",n,"absences"];function Ei(n,r){if(n&1&&(K(0,"bkd-avatar",0),p(1,"async")),n&2){let e=f();x("studentId",m(1,3,e.studentId$))("link",oe(5,Di,e.entry.lessonPresence.StudentRef.Id.toString()))("linkParams",e.profileReturnParams)}}function Bi(n,r){if(n&1&&(a(0,"span"),d(1),c()),n&2){let e=f(2);s(),w(e.entry.presenceType==null?null:e.entry.presenceType.Designation)}}function ji(n,r){if(n&1){let e=S();a(0,"button",12),C("click",function(){v(e);let i=f();return b(i.updatePresenceType(i.entry))}),L(1,Bi,2,1,"span"),c()}if(n&2){let e=f();s(),k(e.entry.presenceType!=null&&e.entry.presenceType.IsIncident?-1:1)}}function Fi(n,r){n&1&&K(0,"bkd-spinner",5)}function Vi(n,r){if(n&1){let e=S();a(0,"button",13),C("click",function(){v(e);let i=f();return b(i.showPrecedingAbsences(i.entry))}),a(1,"i",14),d(2,"info"),c()()}}function Ai(n,r){if(n&1&&(a(0,"span",9),d(1),c()),n&2){let e=f();s(),y(" ",e.entry.lessonPresence.StudyClassNumber," ")}}function Ri(n,r){if(n&1){let e=S();a(0,"a",15),C("click",function(){v(e);let i=f();return b(i.updateIncident(i.entry))}),a(1,"i",4),d(2,"edit"),c(),a(3,"span"),d(4),p(5,"translate"),c()()}if(n&2){let e=f();s(4),w(m(5,1,(e.entry.presenceType==null?null:e.entry.presenceType.IsIncident)&&(e.entry.presenceType==null?null:e.entry.presenceType.Designation)||"presence-control.entry.incident"))}}var Xn=(()=>{class n{get classNames(){return[this.entry.presenceCategory,this.viewMode].join(" ")}constructor(e,t,i,o){this.toastService=e,this.translate=t,this.modalService=i,this.loadingService=o,this.hasUnconfirmedAbsences=!1,this.showClassName=!1,this.togglePresenceType=new ie,this.changeIncident=new ie,this.entry$=new ke(1),this.studentId$=this.entry$.pipe(u(({lessonPresence:l})=>l.StudentRef.Id)),this.loading$=this.entry$.pipe(T(l=>this.loadingService.loading(ht(l))))}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(Jn);t.componentInstance.precedingAbsences=e.precedingAbsences}static{this.\u0275fac=function(t){return new(t||n)(h(ye),h(J),h(xe),h(pe))}}static{this.\u0275cmp=O({type:n,selectors:[["bkd-presence-control-entry"]],hostVars:2,hostBindings:function(t,i){t&2&&xt(i.classNames)},inputs:{entry:"entry",hasUnconfirmedAbsences:"hasUnconfirmedAbsences",viewMode:"viewMode",showClassName:"showClassName",profileReturnParams:"profileReturnParams"},outputs:{togglePresenceType:"togglePresenceType",changeIncident:"changeIncident"},standalone:!0,features:[Pt,D],decls:18,vars:20,consts:[[1,"avatar","large",3,"studentId","link","linkParams"],["type","button",1,"presence-category","designation","btn","btn-link"],["type","button",1,"presence-category","status","btn","btn-link",3,"click","disabled"],[1,"position-relative"],[1,"material-icons"],[1,"inline","small"],["type","button",1,"previously-absent","d-flex","btn","btn-link"],[1,"student-info",3,"routerLink","queryParams"],[1,"student-name","text-truncate"],[1,"study-class","text-truncate"],[1,"unconfirmed-absences"],[1,"incident","btn","btn-link"],["type","button",1,"presence-category","designation","btn","btn-link",3,"click"],["type","button",1,"previously-absent","d-flex","btn","btn-link",3,"click"],[1,"material-icons-outlined"],[1,"incident","btn","btn-link",3,"click"]],template:function(t,i){if(t&1){let o=S();L(0,Ei,2,7,"bkd-avatar",0)(1,ji,2,1,"button",1),U(2),p(3,"async"),a(4,"button",2),C("click",function(){return v(o),b(i.updatePresenceType(i.entry))}),a(5,"div",3)(6,"i",4),d(7),c(),L(8,Fi,1,0,"bkd-spinner",5),c()(),L(9,Vi,3,0,"button",6),a(10,"a",7)(11,"span",8),d(12),c(),L(13,Ai,2,1,"span",9),a(14,"span",10),d(15),p(16,"translate"),c()(),L(17,Ri,6,3,"a",11)}if(t&2){k(i.isListViewMode?-1:0),s(),k(i.entry.showDesignation?1:-1);let o=m(3,14,i.loading$);s(3),x("disabled",o),s(2),Y("invisible",o),s(),w(i.entry.presenceCategoryIcon),s(),k(o?8:-1),s(),k(i.entry.precedingAbsences!=null&&i.entry.precedingAbsences.length?9:-1),s(),x("routerLink",oe(18,Oi,i.entry.lessonPresence.StudentRef.Id))("queryParams",i.profileReturnParams),s(2),w(i.entry.lessonPresence.StudentFullName),s(),k(i.isListViewMode&&i.showClassName?13:-1),s(2),y(" ",i.hasUnconfirmedAbsences?m(16,16,"presence-control.entry.unconfirmed-absences"):""," "),s(2),k(i.entry.canChangeIncident?17:-1)}},dependencies:[Cn,Se,Ue,re,A,V],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 n})();var Gi=(n,r)=>r.viewMode,Ni=(n,r)=>r.id,Ui=(n,r)=>({"btn-link":n,"btn-danger":r}),Hi=n=>["groups",n],qi=n=>({returnparams:n});function Wi(n,r){if(n&1){let e=S();a(0,"div",22),C("click",function(){v(e);let i=f();return b(i.lessonDropdown==null?null:i.lessonDropdown.toggle())}),d(1),p(2,"date"),a(3,"span",23),d(4),p(5,"date"),c()()}if(n&2){let e=f();s(),y(" ",q(2,2,e.selectedLesson.LessonDateTimeFrom,"HH:mm"),"\u2013"),s(3),w(q(5,5,e.selectedLesson.LessonDateTimeTo,"HH:mm"))}}function Qi(n,r){if(n&1){let e=S();a(0,"div",28),C("click",function(){let i=v(e).$implicit,o=f(2);return b(o.selectLessonChange.emit(i))}),a(1,"div",29)(2,"div"),d(3),p(4,"date"),p(5,"date"),c(),a(6,"div",25),d(7),c(),a(8,"div",25),d(9),c()()()}if(n&2){let e=r.$implicit,t=f(2);Y("active",e.id===t.selectedLesson.id),s(3),Lt(" ",q(4,6,e.LessonDateTimeFrom,"HH:mm"),"\u2013",q(5,9,e.LessonDateTimeTo,"HH:mm")," "),s(4),y(" ",e.eventDesignations," "),s(2),y(" ",e.studyClassNumbers," ")}}function Ki(n,r){if(n&1&&(a(0,"div",7)(1,"div",24)(2,"div",25),d(3),c(),a(4,"div",25),d(5),c()(),a(6,"div",26),j(7,Qi,10,12,"div",27,Ni),c()()),n&2){let e=f();s(3),w(e.selectedLesson.eventDesignations),s(2),w(e.selectedLesson.studyClassNumbers),s(2),F(e.lessons)}}function zi(n,r){if(n&1){let e=S();a(0,"bkd-caret",30),C("click",function(){v(e);let i=f();return b(i.lessonDropdown==null?null:i.lessonDropdown.toggle())}),c()}if(n&2){let e=f();x("expanded",(e.lessonDropdown==null?null:e.lessonDropdown.isOpen())||!1)}}function Ji(n,r){if(n&1&&(a(0,"a",19),p(1,"async"),p(2,"async"),p(3,"async"),a(4,"i",31),d(5,"groups"),c()()),n&2){let e=f();x("ngClass",Dt(9,Ui,m(1,3,e.isGroupSelected$)===!1,m(2,5,e.isGroupSelected$)))("routerLink",oe(12,Hi,e.selectedLesson.id))("queryParams",oe(14,qi,m(3,7,e.state.queryParamsString$)))}}function Xi(n,r){if(n&1){let e=S();a(0,"button",32),C("click",function(){let i=v(e).$implicit,o=f();return b(o.viewModeChange.emit(i.viewMode))}),a(1,"i",31),d(2),c()()}if(n&2){let e=r.$implicit,t=f();Y("btn-outline-secondary",e.viewMode===t.viewMode)("btn-link",e.viewMode!==t.viewMode)("active",e.viewMode===t.viewMode),x("disabled",!t.selectedLesson),s(2),w(e.icon)}}var Yi=De.prototype._positionMenu;De.prototype._positionMenu=function(...r){let e=Yi.apply(this,r);if(this._anchor.nativeElement.id==="lesson-dropdown"){let t=this._bodyContainer||this._menu.nativeElement,i=t.style.transform?.match(/translate\(([0-9-.]+)px, ([0-9-.]+)px\)/);i&&parseFloat(i[1])<0&&(t.style.transform=`translate(0px, ${i[2]}px)`)}return e};var Yn=(()=>{class n{constructor(e,t,i){this.state=e,this.groupService=t,this.presentCount=null,this.absentCount=null,this.unapprovedCount=null,this.absentPrecedingCount=null,this.search="",this.selectLessonChange=new ie,this.selectDateChange=new ie,this.searchChange=new ie,this.viewModeChange=new ie,this.viewModeOptions=[{viewMode:me.List,icon:"list"},{viewMode:me.Grid,icon:"view_module"}],this.isGroupSelected$=this.groupService.group$.pipe(u(Jt)),i.popperOptions=o=>ge(ue({},o),{modifiers:o.modifiers?.map(l=>(l.name==="offset"&&(l.options={offset:({placement:g,reference:I,popper:R})=>g==="bottom-start"?[(window.innerWidth-R.width)/2-I.x,0]:[]}),l))})}static{this.\u0275fac=function(t){return new(t||n)(h(H),h(de),h(He))}}static{this.\u0275cmp=O({type:n,selectors:[["bkd-presence-control-header"]],viewQuery:function(t,i){if(t&1&&It(De,5),t&2){let o;Mt(o=Tt())&&(i.lessonDropdown=o.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([He,{provide:Gt,useClass:Ht},{provide:Nt,useClass:Sn}]),D],decls:41,vars:19,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"],[1,"lesson-time"],["ngbDropdown","","container","body","display","dynamic","placement","bottom",1,"lesson-description"],[1,"dropdown-caret",3,"expanded"],[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",1,"group","btn","me-2","me-sm-4",3,"ngClass","routerLink","queryParams"],[1,"views"],["type","button",1,"view","btn","btn-primary","btn-icon",3,"disabled","btn-outline-secondary","btn-link","active"],[1,"lesson-time",3,"click"],[1,"lesson-time-to"],["id","lesson-dropdown","ngbDropdownToggle",""],[1,"text-truncate"],["ngbDropdownMenu","","aria-labelledby","lesson-dropdown"],["ngbDropdownItem","",3,"active"],["ngbDropdownItem","",3,"click"],[1,"lesson-entry"],[1,"dropdown-caret",3,"click","expanded"],[1,"material-icons","align-middle"],["type","button",1,"view","btn","btn-primary","btn-icon",3,"click","disabled"]],template:function(t,i){if(t&1){let o=S();a(0,"div",1)(1,"div",2)(2,"button",3),C("click",function(){v(o);let g=kt(6);return b(g.toggle())}),a(3,"i",4),d(4,"calendar_today"),c()(),a(5,"input",5,0),C("ngModelChange",function(g){return v(o),b(i.selectDateChange.emit(g))}),c()(),L(7,Wi,6,8,"div",6)(8,Ki,9,2,"div",7)(9,zi,1,1,"bkd-caret",8),c(),a(10,"div",9)(11,"div",10)(12,"i",4),d(13,"check_circle"),c(),a(14,"span",11),d(15),c()(),a(16,"div",12)(17,"i",4),d(18,"cancel"),c(),a(19,"span",11),d(20),c()(),a(21,"div",13)(22,"i",4),d(23,"help"),c(),a(24,"span",11),d(25),c()(),a(26,"div",14)(27,"i",15),d(28,"info"),c(),a(29,"span",11),d(30),c()()(),a(31,"div",16)(32,"bkd-resettable-input",17),p(33,"translate"),p(34,"translate"),C("valueChange",function(g){return v(o),b(i.searchChange.emit(g))}),c(),a(35,"div",18),L(36,Ji,6,16,"a",19),p(37,"async"),a(38,"div",20),j(39,Xi,3,8,"button",21,Gi),c()()()}t&2&&(s(5),x("ngModel",i.selectDate),s(2),k(i.selectedLesson?7:-1),s(),k(i.selectedLesson?8:-1),s(),k(i.lessons.length>0?9:-1),s(6),w(i.presentCount!==null?i.presentCount:"?"),s(5),w(i.absentCount!==null?i.absentCount:"?"),s(5),w(i.unapprovedCount!==null?i.unapprovedCount:"?"),s(5),w(i.absentPrecedingCount!==null?i.absentPrecedingCount:"?"),s(2),x("value",i.search)("disabled",!i.selectedLesson)("placeholder",m(33,13,"presence-control.header.search-by-name"))("label",m(34,15,"presence-control.header.search")),s(4),k(m(37,17,i.selectedLesson&&i.state.groupsAvailability$)?36:-1),s(3),F(i.viewModeOptions))},dependencies:[Ut,se,Vt,At,Rt,De,Qt,Wt,qt,pn,xn,Bt,Ue,re,Ce,A,V],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 n})();var Zi=(n,r)=>r.id;function eo(n,r){if(n&1){let e=S();a(0,"div",1)(1,"input",5),C("change",function(){let i=v(e).$implicit,o=f();return b(o.onSelectionChange(i))}),c(),a(2,"label",6),d(3),c()()}if(n&2){let e=r.$implicit,t=r.$index,i=f();s(),Z("id","incident-",t,""),x("checked",e.id===i.selected.id)("value",e.id),s(),Z("for","incident-",t,""),s(),y(" ",e.label," ")}}var Zn=(()=>{class n{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}static{this.\u0275fac=function(t){return new(t||n)(h(ae),h(J))}}static{this.\u0275cmp=O({type:n,selectors:[["bkd-presence-control-incident"]],inputs:{incident:"incident",incidentTypes:"incidentTypes"},standalone:!0,features:[D],decls:14,vars:9,consts:[[1,"modal-body"],[1,"form-check"],[1,"modal-footer"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-primary",3,"click"],["type","radio","name","incident",1,"form-check-input",3,"change","id","checked","value"],[1,"form-check-label",3,"for"]],template:function(t,i){t&1&&(a(0,"div",0)(1,"p"),d(2),p(3,"translate"),c(),a(4,"form"),j(5,eo,4,7,"div",1,Zi),c()(),a(7,"div",2)(8,"button",3),C("click",function(){return i.activeModal.dismiss()}),d(9),p(10,"translate"),c(),a(11,"button",4),C("click",function(){return i.activeModal.close(i.getSelectedIncident())}),d(12),p(13,"translate"),c()()),t&2&&(s(2),y(" ",m(3,3,"presence-control.incident.text")," "),s(3),F(i.incidentOptions),s(4),y(" ",m(10,5,"presence-control.incident.cancel")," "),s(3),y(" ",m(13,7,"presence-control.incident.save")," "))},dependencies:[se,be,_e,ve,A,V],styles:["form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{border-bottom:1px solid #dee2e6;padding-bottom:1rem;margin-bottom:1rem}"]})}}return n})();var to=20,no=100,Fe=function(n){return n.AddUpdateAction="ADD",n.RemoveUpdateAction="REMOVE",n}(Fe||{}),nt=(()=>{class n{constructor(e,t,i,o,l){this.toastService=e,this.translate=t,this.restService=i,this.presenceTypesService=o,this.settings=l,this.destroy$=new $,this.action$=new $,this.pendingUpdates$=this.action$.pipe(bt(this.reduceUpdates.bind(this),[]),yt()),this.revertUpdates$=new $,this.performUpdates$=this.pendingUpdates$.pipe(it(no),$e(We(ct)),vt(this.performUpdates.bind(this))),this.stateUpdates$=ne(this.pendingUpdates$,this.revertUpdates$).pipe(it(to),$e(We(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 M(Object.keys(t).reduce((i,o)=>{let l=t[o];return Object.keys(l).forEach(g=>{let I=l[g];i.push(this.performUpdateForGroup(I))}),i},[])).pipe(u(()=>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(_t(t=>this.revertUpdatesAfterError(e,t)))}performLessonPresencesUpdatesByIds(e,t,i=null){return i?(i?this.presenceTypesService.getPresenceType(i):te(null)).pipe(T(l=>this.restService.editLessonPresences([e],t,l?.Id,Qe(l,this.settings)||void 0,{context:new rt().set(pt,{disableErrorHandling:!0})}))):this.restService.removeLessonPresences([e],t,{context:new rt().set(pt,{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(i=>ge(ue({},i),{newPresenceTypeId:i.presence.TypeRef.Id}))),te(void 0)}groupUpdates(e){return e.reduce((t,i)=>{let o=String(i.newPresenceTypeId&&i.newPresenceTypeId);return t[o]||(t[o]={}),Array.isArray(t[o][i.presence.LessonRef.Id])||(t[o][i.presence.LessonRef.Id]=[]),t[o][i.presence.LessonRef.Id].push(i),t},{})}reduceUpdates(e,t){switch(t.type){case Fe.AddUpdateAction:{let{presence:i,newPresenceTypeId:o}=t.payload,l=e.findIndex(ei(i));return l===-1?[...e,{presence:i,newPresenceTypeId:o}]:[...e.slice(0,l),{presence:e[l].presence,newPresenceTypeId:o},...e.slice(l+1)]}case Fe.RemoveUpdateAction:return e.filter(We(ei(t.payload)));default:return e}}dispatchAddUpdate(e,t){this.action$.next({type:Fe.AddUpdateAction,payload:{presence:e,newPresenceTypeId:t}})}dispatchRemoveUpdate(e){this.action$.next({type:Fe.RemoveUpdateAction,payload:e})}static{this.\u0275fac=function(t){return new(t||n)(_(ye),_(J),_(cn),_(Pe),_(W))}}static{this.\u0275prov=N({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function ei(n){return r=>r.presence.LessonRef.Id===n.LessonRef.Id&&r.presence.StudentRef.Id===n.StudentRef.Id}var io=(n,r)=>r.id,oo=()=>[],ro=n=>({returnparams:n});function so(n,r){n&1&&K(0,"bkd-spinner")}function ao(n,r){n&1&&(a(0,"p",1),d(1),p(2,"translate"),c()),n&2&&(s(),w(m(2,1,"presence-control.no-lessons")))}function co(n,r){n&1&&(a(0,"p",1),d(1),p(2,"translate"),c()),n&2&&(s(),y(" ",m(2,1,"presence-control.no-lesson-presences")," "))}function po(n,r){if(n&1){let e=S();a(0,"bkd-presence-control-entry",4),p(1,"async"),p(2,"async"),p(3,"async"),p(4,"async"),C("togglePresenceType",function(i){v(e);let o=f(3);return b(o.togglePresenceType(i))})("changeIncident",function(i){v(e);let o=f(3);return b(o.changeIncident(i))}),c()}if(n&2){let e,t=r.$implicit,i=f(3);x("entry",t)("hasUnconfirmedAbsences",m(1,5,i.state.hasUnconfirmedAbsences(t)))("viewMode",m(2,7,i.state.viewMode$))("showClassName",((e=m(3,9,i.state.studyClassCount$))!==null&&e!==void 0?e:0)>1)("profileReturnParams",oe(13,ro,m(4,11,i.state.queryParamsString$)))}}function lo(n,r){if(n&1&&(a(0,"div"),p(1,"async"),j(2,po,5,15,"bkd-presence-control-entry",3,io),c()),n&2){let e=f(2),t=z(4);Re("default-entries entries view-mode-",m(1,3,e.state.viewMode$),""),s(2),F(t)}}function mo(n,r){if(n&1){let e=S();a(0,"bkd-presence-control-header",0),p(1,"async"),p(2,"async"),p(3,"async"),p(4,"async"),p(5,"async"),p(6,"async"),p(7,"async"),C("searchChange",function(i){v(e);let o=f();return b(o.search$.next(i))})("viewModeChange",function(i){v(e);let o=f();return b(o.state.setViewMode(i))})("selectDateChange",function(i){v(e);let o=f();return b(o.state.setDate(i))})("selectLessonChange",function(i){v(e);let o=f();return b(o.state.setLessonId(i.id))}),c(),L(8,ao,3,3,"p",1)(9,co,3,3,"p",1)(10,lo,4,5,"div",2)}if(n&2){let e=f(),t=z(0),i=z(2),o=z(4);x("selectedLesson",t)("lessons",i)("presentCount",m(1,10,e.state.presentCount$))("absentCount",m(2,12,e.state.absentCount$))("unapprovedCount",m(3,14,e.state.unapprovedCount$))("absentPrecedingCount",m(4,16,e.state.absentPrecedingCount$))("viewMode",m(5,18,e.state.viewMode$))("selectDate",m(6,20,e.state.selectedDate$))("search",m(7,22,e.search$)),s(8),k(t?o.length===0?9:10:8)}}var uo=["studentFullName"],ni=(()=>{class n{constructor(e,t,i,o,l,g,I){this.state=e,this.blockLessons=t,this.lessonPresencesUpdateService=i,this.presenceTypesService=o,this.modalService=l,this.scrollPosition=g,this.route=I,this.search$=new fe(""),this.entries$=M([this.state.presenceControlEntriesByGroup$,this.search$]).pipe(u(([R,Ie])=>Pn(R,uo,Ie)),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(i=>this.lessonPresencesUpdateService.updatePresenceType(t,i?i.Id:null)))}togglePresenceType(e){this.blockLessons.getBlockLessonPresenceControlEntries(e).pipe(E(1)).subscribe(t=>{if(t.length===1){let i=t[0];this.doTogglePresenceType([i])}else{let i=this.modalService.open(zn);i.componentInstance.entry=e,i.componentInstance.blockPresenceControlEntries=t,i.result.then(o=>{o&&this.doTogglePresenceType(o)},()=>{})}})}updateIncident(e,t){this.lessonPresencesUpdateService.updatePresenceType(e,t)}changeIncident(e){this.presenceTypesService.incidentTypes$.subscribe(t=>{let i=this.modalService.open(Zn);i.componentInstance.incident=t.find(o=>o.Id===e.presenceType?.Id)||null,i.componentInstance.incidentTypes=t,i.result.then(o=>{this.updateIncident(e,o?.Id||null)},()=>{})})}restoreStateFromParams(e){e.date&&this.state.setDate(Ft(e.date));let t=String(e.lesson);t&&this.state.setLessonId(t),e.viewMode&&qn.includes(e.viewMode)&&this.state.setViewMode(e.viewMode)}static{this.\u0275fac=function(t){return new(t||n)(h(H),h(tt),h(nt),h(Pe),h(xe),h(wn),h(Ne))}}static{this.\u0275cmp=O({type:n,selectors:[["bkd-presence-control-list"]],standalone:!0,features:[D],decls:12,vars:16,consts:[[3,"searchChange","viewModeChange","selectDateChange","selectLessonChange","selectedLesson","lessons","presentCount","absentCount","unapprovedCount","absentPrecedingCount","viewMode","selectDate","search"],[1,"mt-3"],[3,"class"],[3,"entry","hasUnconfirmedAbsences","viewMode","showClassName","profileReturnParams"],[3,"togglePresenceType","changeIncident","entry","hasUnconfirmedAbsences","viewMode","showClassName","profileReturnParams"]],template:function(t,i){if(t&1&&(U(0),p(1,"async"),U(2),p(3,"async"),U(4),p(5,"async"),a(6,"h1"),d(7),p(8,"translate"),c(),L(9,so,1,0,"bkd-spinner"),p(10,"async"),L(11,mo,11,24)),t&2){let o;ee(m(1,2,i.state.selectedLesson$)),s(2),ee(m(3,5,i.state.lessons$)),s(2),ee((o=m(5,8,i.entries$))!==null&&o!==void 0?o:Oe(15,oo)),s(3),w(m(8,11,"presence-control.title")),s(2),k(m(10,13,i.state.loading$)?9:11)}},dependencies:[Yn,Xn,Se,re,A,V],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 n})();var ii=(()=>{class n{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()}static{this.\u0275fac=function(t){return new(t||n)(h(H),h(nt))}}static{this.\u0275cmp=O({type:n,selectors:[["bkd-presence-control"]],standalone:!0,features:[he([H,tt,de,sn,{provide:Xt,useExisting:H}]),D],decls:1,vars:0,template:function(t,i){t&1&&K(0,"router-outlet")},dependencies:[jt],changeDetection:0})}}return n})();var ca=[{path:"",component:ii,children:[{path:"",component:ni,data:{restoreScrollPositionFrom:["/presence-control/student/:id/addresses","/presence-control/student/:id/absences","/presence-control/student/:id/grades"]}},vn,{path:"groups/:id",component:Kn}]}];export{ca as PRESENCE_CONTROL_ROUTES}; diff --git a/public/apps/webapp-schulverwaltung/chunk-AW7CSGKI.js b/public/apps/webapp-schulverwaltung/chunk-AW7CSGKI.js deleted file mode 100644 index 341747e7..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-AW7CSGKI.js +++ /dev/null @@ -1 +0,0 @@ -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-XTHSYQMN.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-B6WYZ7BT.js b/public/apps/webapp-schulverwaltung/chunk-B6WYZ7BT.js new file mode 100644 index 00000000..1150a24b --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-B6WYZ7BT.js @@ -0,0 +1 @@ +import{Bd as c,F as r,X as n,g as a}from"./chunk-IFJN5CDK.js";var h=(()=>{class i{constructor(){this.toastsSubject=new a([]),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(s=>!c(s,t)))}addUnique(t){this.updateToasts(e=>{if(!this.exists(e,t))return[...e,t]})}exists(t,e){return!!t.find(s=>s.message===e.message&&s.header===e.header)}updateToasts(t){this.toasts$.pipe(r(1)).subscribe(e=>{let s=t(e);s&&this.toastsSubject.next(s)})}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275prov=n({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();export{h as a}; diff --git a/public/apps/webapp-schulverwaltung/chunk-C56YGDXA.js b/public/apps/webapp-schulverwaltung/chunk-C56YGDXA.js deleted file mode 100644 index f413d23d..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-C56YGDXA.js +++ /dev/null @@ -1,10 +0,0 @@ -import{$ as ae,$a as T,Ba as le,Ca as zt,Da as Dn,E as ge,Ea as Tn,Eb as Rt,F as gn,Fb as Mi,Ga as x,Gb as Rn,H as vn,Ha as Re,Hb as We,Ia as I,Ja as G,Ka as Ye,Kb as Yt,Lb as ve,Na as ie,Nb as Mn,O as Oi,Oa as Kt,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,Ub as Mt,V as ht,Va as En,W as C,Wa as Sn,Wc as Zt,Y as yn,Ya as Xe,Za as Ne,Zc as Nn,_ as d,_a as Z,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-XTHSYQMN.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-C7XT5XXE.js b/public/apps/webapp-schulverwaltung/chunk-C7XT5XXE.js deleted file mode 100644 index a2c60063..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-C7XT5XXE.js +++ /dev/null @@ -1 +0,0 @@ -import{a as it}from"./chunk-YMJC6QZX.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-ZK2MNT7Z.js";import{a as ie,b as P,c as Je,e as ot}from"./chunk-AW7CSGKI.js";import{a as Qe,b as nt}from"./chunk-SOHFFTKU.js";import{u as E}from"./chunk-C56YGDXA.js";import{a as He}from"./chunk-UX5TA32W.js";import{$ as be,$a as T,$b as $,$c as we,Ab as c,Ac as v,Bb as d,Bc as De,Cb as V,Dd as C,E as x,Fc as _,Fd as Ke,Ga as S,Gd as qe,Hd as We,I as fe,Ia as p,Id as ze,Ja as ye,L as z,Mc as L,O as y,Oc as R,Pc as G,Q as w,Rb as Ce,Rc as k,Sa as m,Sb as Ie,Sc as Pe,Ta as l,Tc as te,Ua as N,Va as Y,Vb as xe,Vc as U,W as ue,Wa as Z,Y as he,Ya as ge,Yc as Be,Z as O,_a as ee,_b as $e,_c as je,a as B,ad as Oe,b as j,dc as Le,e as me,ed as Ne,f as q,gd as Ve,ha as J,ia as Q,id as Ge,jb as u,jd as Ue,k as W,kb as ve,lb as g,m as b,n as A,oc as Ee,qc as Ae,qd as Me,r as le,rc as ke,rd as Fe,sd as Xe,tb as Se,ua as a,ub as Te,va as h,vb as _e,w as I,xb as Re,zc as f}from"./chunk-XTHSYQMN.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-DB66EACG.js b/public/apps/webapp-schulverwaltung/chunk-DB66EACG.js deleted file mode 100644 index 47602a2d..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-DB66EACG.js +++ /dev/null @@ -1 +0,0 @@ -import{Fd as u,Gb as g,Id as c,W as s,Z as n}from"./chunk-XTHSYQMN.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-DDSXVC6O.js b/public/apps/webapp-schulverwaltung/chunk-DDSXVC6O.js deleted file mode 100644 index b1c3b4db..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-DDSXVC6O.js +++ /dev/null @@ -1 +0,0 @@ -import{i as I}from"./chunk-C56YGDXA.js";import{$ as g,$c as k,Ab as u,Bb as c,Bd as S,Gd as V,Ha as h,Hd as T,Ia as p,Sa as d,Ta as s,Ya as v,Yc as b,_a as D,dd as y,ha as r,ia as o,ib as C,jb as _,ra as f,rd as w,tb as M,ua as l}from"./chunk-XTHSYQMN.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-DKLN3NRY.js b/public/apps/webapp-schulverwaltung/chunk-DKLN3NRY.js new file mode 100644 index 00000000..55bd0755 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-DKLN3NRY.js @@ -0,0 +1 @@ +import{a as st}from"./chunk-7FRZV7VF.js";import{a as J}from"./chunk-Y4QYVF5K.js";import{G as it,L as nt,P as ot,Q as at,b as Ze,g as ce,p as E,q as tt}from"./chunk-VGJCKFZL.js";import{a as ae,b as N,c as Ye,k as et,l as ct}from"./chunk-NL5E3FC5.js";import{a as rt}from"./chunk-KK2SHN2W.js";import{u as _}from"./chunk-LGOOC47H.js";import{a as qe}from"./chunk-B6WYZ7BT.js";import{$c as we,Ab as $e,Bb as Ie,Cb as _e,Cc as d,Dc as v,Ec as je,F as L,Gb as a,Gd as g,Ha as j,Hb as c,Ib as q,Ic as S,Id as We,J as ve,Jd as ze,Kd as Je,Ld as Qe,M as te,Ma as C,Na as Te,P as f,Pc as I,R as M,Ra as P,Rc as h,Sc as W,Ta as se,Ua as G,Uc as k,Va as X,Vc as Pe,Wa as p,Wc as oe,X as Se,Xa as m,Ya as F,Yc as z,Z as ge,Zb as xe,_ as O,a as V,aa as Ce,ab as Re,b as U,bc as Ee,bd as Ne,cb as re,cc as $,cd as Ve,db as x,dd as Ue,f as ye,g as Z,gc as Ae,hd as Me,ia as ie,ja as ne,jd as Oe,l as ee,ld as Ge,md as Xe,n as y,nb as l,o as D,ob as Le,pb as b,rc as De,s as be,tc as ke,td as Fe,uc as Be,ud as He,vd as Ke,wa as o,wb as w,x as R,xa as u,xb as H,yb as K}from"./chunk-IFJN5CDK.js";function pe(i,r){return i.pipe(y(e=>e.find(t=>t.Key===r)||null))}function Et(i){return i.slice().sort((r,e)=>r.Value.localeCompare(e.Value))}var pt=new ge("Confirm Absences Service");function dt(i,r,e){let[t,n]=et(e?.in,i,r);return+ce(t)==+ce(n)}var bt=(i,r)=>r.Id,vt=i=>({count:i}),St=()=>["/edit-absences"];function gt(i,r){if(i&1&&(p(0,"div",4),l(1),a(2,"translate"),m()),i&2){let e=r.$implicit;o(),b(" ",q(2,1,"global.validation-errors."+e.error,e.params)," ")}}function Ct(i,r){if(i&1&&(p(0,"div",21),l(1),a(2,"translate"),m()),i&2){let e=r.$implicit;o(),b(" ",q(2,1,"global.validation-errors."+e.error,e.params)," ")}}function Tt(i,r){if(i&1&&(G(0,Ct,3,4,"div",21,se),a(2,"async")),i&2){let e=x(4);X(c(2,0,e.absenceTypeIdErrors$))}}function Rt(i,r){if(i&1&&(p(0,"div",17),F(1,"input",19),a(2,"async"),p(3,"label",20),l(4),m(),j(5,Tt,3,2),a(6,"async"),m()),i&2){let e,t,n=r.$implicit,s=r.$index,T=x(3);o(),Te("is-invalid",((e=(e=c(2,7,T.absenceTypeIdErrors$))==null?null:e.length)!==null&&e!==void 0?e:0)>0),C("id","absence-type-"+s)("value",n.Id),o(2),C("for","absence-type-"+s),o(),b(" ",n.Designation," "),o(),P(((t=(t=c(6,9,T.absenceTypes$))==null?null:t.length)!==null&&t!==void 0?t:0)-1===s?5:-1)}}function Lt(i,r){if(i&1&&(G(0,Rt,7,11,"div",17,bt),a(2,"async"),p(3,"div",9),l(4),a(5,"translate"),p(6,"a",18),l(7),a(8,"translate"),m()()),i&2){let e=x(2);X(c(2,3,e.absenceTypes$)),o(4),b(" ",c(5,5,"open-absences.edit.remark")," "),o(2),C("routerLink",Ie(9,St)),o(),b(" ",c(8,7,"edit-absences.title")," ")}}function $t(i,r){i&1&&(p(0,"div",16)(1,"span",22),l(2,"Loading..."),m()())}function It(i,r){if(i&1){let e=Re();p(0,"form",3),re("ngSubmit",function(){ie(e);let n=x();return ne(n.onSubmit())}),G(1,gt,3,4,"div",4,se),a(3,"async"),p(4,"div",5)(5,"div",6),F(6,"input",7),p(7,"label",8),l(8),m(),j(9,Lt,9,10,"div",9),m(),p(10,"div",10),F(11,"input",11),p(12,"label",12),l(13),m()()(),p(14,"div",13)(15,"button",14),a(16,"async"),re("click",function(){ie(e);let n=x();return ne(n.cancel())}),l(17),a(18,"translate"),m(),p(19,"button",15),a(20,"async"),l(21),a(22,"translate"),j(23,$t,3,0,"div",16),a(24,"async"),m()()()}if(i&2){let e=x(),t=K(0),n=K(2),s=K(4);C("formGroup",t),o(),X(c(3,11,e.formErrors$)),o(5),C("value",s.Key),o(2),b(" ",s.Value," "),o(),P(t.get("absenceTypeId")?9:-1),o(2),C("value",n.Key),o(2),b(" ",n.Value," "),o(2),C("disabled",c(16,13,e.saving$)),o(2),b(" ",c(18,15,"open-absences.edit.cancel")," "),o(2),C("disabled",c(20,17,e.saving$)),o(2),b(" ",c(22,19,"open-absences.edit.save")," "),o(2),P(c(24,21,e.saving$)?23:-1)}}var ti=(()=>{class i{constructor(e,t,n,s,T,B,A,lt,ft,ut,ht){this.fb=e,this.router=t,this.activatedRoute=n,this.toastService=s,this.translate=T,this.selectionService=B,this.dropDownItemsService=A,this.presenceTypesService=lt,this.updateService=ft,this.settings=ut,this.openAbsencesEditService=ht,this.formGroup$=this.selectionService.selectedWithoutPresenceType$.pipe(y(this.createFormGroup.bind(this)),te(1)),this.saving$=new Z(!1),this.submitted$=new Z(!1),this.formErrors$=ae(this.formGroup$,this.submitted$),this.absenceTypeIdErrors$=ae(this.formGroup$,this.submitted$,"absenceTypeId"),this.confirmationStates$=this.dropDownItemsService.getAbsenceConfirmationStates().pipe(te(1)),this.excusedState$=pe(this.confirmationStates$,this.settings.excusedAbsenceStateId),this.unexcusedState$=pe(this.confirmationStates$,this.settings.unexcusedAbsenceStateId),this.absenceTypes$=this.presenceTypesService.confirmationTypes$,this.destroy$=new ye}ngOnInit(){this.selectionService.selectedIds$.pipe(L(1)).subscribe(e=>{e.length===0&&this.navigateBack()}),Ye(this.formGroup$,"confirmationValue").pipe(M(this.destroy$)).subscribe(e=>{typeof e=="number"&&this.updateAbsenceTypeIdDisabled(e)}),D([N(this.formGroup$,"confirmationValue").pipe(R(_)),N(this.formGroup$,"absenceTypeId").pipe(R(_)),this.saving$]).pipe(M(this.destroy$)).subscribe(([e,t,n])=>{n?(e.disable(),t.disable()):(e.enable(),this.updateAbsenceTypeIdDisabled(e.value))}),D([N(this.formGroup$,"confirmationValue").pipe(R(_)),this.excusedState$.pipe(L(1),R(_))]).pipe(M(this.destroy$)).subscribe(([e,t])=>e.setValue(t.Key))}ngOnDestroy(){this.destroy$.next()}onSubmit(){this.submitted$.next(!0),this.formGroup$.pipe(L(1)).subscribe(e=>{if(e.valid){let{confirmationValue:t,absenceTypeId:n}=e.value;this.save(t,n)}})}cancel(){this.navigateBack()}getSelectedCount(){return this.selectionService.selectedLessons$.pipe(y(e=>e.length))}createFormGroup(e){return e.length>0?this.fb.group({confirmationValue:[null],absenceTypeId:[null,Ne.required]}):this.fb.group({confirmationValue:[null]})}updateAbsenceTypeIdDisabled(e){D([N(this.formGroup$,"absenceTypeId").pipe(L(1),R(_)),this.excusedState$.pipe(L(1),R(_))]).subscribe(([t,n])=>{e===n.Key?t.enable():t.disable()})}save(e,t){this.saving$.next(!0),D([this.selectionService.selectedIds$.pipe(L(1)),this.unexcusedState$.pipe(L(1),R(_))]).pipe(f(([n,s])=>D(n.map(({lessonIds:T,personId:B,presenceTypeId:A})=>this.updateService.confirmLessonPresences(T,[B],this.getNewAbsenceTypeId(A,e,Number(s.Key),t),e)))),ve(()=>this.saving$.next(!1))).subscribe(this.onSaveSuccess.bind(this))}getNewAbsenceTypeId(e,t,n,s){if(!e)throw new Error("absence type id cannot be null");return t===n?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})}static{this.\u0275fac=function(t){return new(t||i)(u(Fe),u(ke),u(De),u(qe),u(We),u(nt),u(st),u(ot),u(at),u(z),u(pt,8))}}static{this.\u0275cmp=Ce({type:i,selectors:[["bkd-confirm-absences"]],standalone:!0,features:[$e],decls:16,vars:21,consts:[[1,"bkd-container","bkd-container-limited"],[1,"mb-3","pb-3","border-bottom"],[3,"formGroup"],[3,"ngSubmit","formGroup"],[1,"alert","alert-danger"],[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"],[1,"remark"],[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"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"form-check","my-3"],[3,"routerLink"],["type","radio","formControlName","absenceTypeId",1,"form-check-input",3,"id","value"],[1,"form-check-label",3,"for"],[1,"invalid-feedback"],[1,"visually-hidden"]],template:function(t,n){if(t&1&&(w(0),a(1,"async"),w(2),a(3,"async"),w(4),a(5,"async"),p(6,"div",0)(7,"h1"),l(8),a(9,"translate"),m(),p(10,"div",1),w(11),a(12,"async"),l(13),a(14,"translate"),m(),j(15,It,25,23,"form",2),m()),t&2){let s=H(c(1,3,n.formGroup$));o(2);let T=H(c(3,6,n.unexcusedState$));o(2);let B=H(c(5,9,n.excusedState$));o(4),Le(c(9,12,"open-absences.edit.title"));let A=c(12,14,n.getSelectedCount());o(5),b(" ",q(14,16,A===1?"open-absences.edit.lesson-selected":"open-absences.edit.lessons-selected",_e(19,vt,A))," "),o(2),P(s&&T&&B?15:-1)}},dependencies:[He,Me,we,Oe,Ve,Ue,Ke,Ge,Xe,Be,xe,Je,ze],changeDetection:0})}}return i})();var mt=S({StudentRef:h,StudentFullName:d,TotalAbsences:v,TotalAbsencesUnconfirmed:v,TotalAbsencesValidExcuse:v,TotalAbsencesWithoutExcuse:v,TotalAbsencesUnchecked:v,TotalDispensations:v,TotalHalfDays:v,TotalIncidents:v});var de=S({Id:d,LessonRef:h,StudentRef:h,EventRef:h,TypeRef:W,RegistrationRef:W,StudyClassRef:W,ConfirmationStateId:I(v),EventDesignation:d,HasStudyCourseConfirmationCode:je,LessonDateTimeFrom:k,LessonDateTimeTo:k,Comment:I(d),Date:I(Pe),Type:I(d),StudentFullName:d,StudyClassNumber:d,TeacherInformation:I(d)});var me=S({LessonRef:h,EventRef:h,StudyClassNumber:d});var le=S({LessonRef:h,EventRef:h,EventDesignation:d,StudyClassNumber:d,TeacherInformation:I(d),LessonDateTimeFrom:k,LessonDateTimeTo:k});function fe(i){return r=>r.pipe(f(e=>{let t=Number(e.headers.get("X-Pagination-Offset")),n=Number(e.headers.get("X-Pagination-Total"));return g(i)(e.body).pipe(y(s=>({offset:t,total:n,entries:s})))}))}function Y(i,r,e=new $){return e.set("offset",String(i)).set("limit",String(r))}function ue(i=new Ee){return i.set("X-Pagination-Total","on")}var Bi=(()=>{class i extends rt{constructor(e,t,n){super(e,t,de,"LessonPresences"),this.storage=n,this.lessonPresenceRefCodec=S(oe(this.codec.props,["LessonRef","RegistrationRef","StudentRef","EventRef","StudyClassRef","TypeRef"])),this.lessonPresenceIdCodec=S(oe(this.codec.props,["Id"]))}getLessonsByDate(e){let t={fields:Object.keys(le.props).join(","),"filter.LessonDateTimeFrom":`=${E(e,"yyyy-MM-dd")}`,sort:"LessonDateTimeFrom"},n={"X-Role-Restriction":"LessonTeacherRole"};return this.http.get(`${this.baseUrl}/`,{params:t,headers:n}).pipe(f(g(le)))}getLessonStudyClassesByDate(e){let t={fields:Object.keys(me.props).join(","),"filter.LessonDateTimeFrom":`=${E(e,"yyyy-MM-dd")}`,sort:"LessonDateTimeFrom"},n={"X-Role-Restriction":"LessonTeacherRole"};return this.http.get(`${this.baseUrl}/`,{params:t,headers:n}).pipe(f(g(me)))}getListByLessons(e){if(e.length===0)return ee([]);let n={"filter.LessonRef":`;${e.map(s=>s.LessonRef.Id).join(";")}`};return this.getList({params:n,headers:{"X-Role-Restriction":"LessonTeacherRole"}})}getListByDateStudentClass(e,t,n){let s={"filter.LessonDateTimeFrom":`=${E(e,"yyyy-MM-dd")}`,"filter.StudentRef":`=${t}`};return n!=null&&(s["filter.StudyClassRef"]=`=${n}`),this.getList({params:s,headers:{"X-Role-Restriction":"LessonTeacherRole"}})}getListForToday(){return this.http.get(`${this.baseUrl}/Today`,{headers:{"X-Role-Restriction":"LessonTeacherRole"}}).pipe(f(g(this.codec)))}getListOfUnconfirmed(e){return J(this.storage.getPayload()?.roles,"ClassTeacherRole")?be([this.getListOfUnconfirmedClassTeacher(e),this.getListOfUnconfirmedLessonTeacher(e)]).pipe(y(ct(it))):J(this.storage.getPayload()?.roles,"LessonTeacherRole")?this.getListOfUnconfirmedLessonTeacher(e):J(this.storage.getPayload()?.roles,"AbsenceAdministratorRole")?this.getListOfUnconfirmedAbsenceAdministrator(e):ee([])}getStatistics(e,t,n){let s=he([[e.student,"StudentRef"],[e.educationalEvent,"EventRef"],[e.studyClass,"StudyClassRef"]]);return s=_t(t,s),s=Y(n,this.settings.paginationLimit,s),this.http.get(`${this.baseUrl}/Statistics`,{params:s,headers:ue(),observe:"response"}).pipe(fe(mt))}getLessonRefs(e){let t=he([[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(f(g(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(f(g(this.lessonPresenceRefCodec)))}getFilteredList(e,t,n){let s=he([[e.student,"StudentRef"],[e.educationalEvent,"EventRef"],[e.studyClass,"StudyClassRef"]],new $({fromObject:n}));return e.teacher&&(s=s.set("filter.TeacherInformation",`~*${e.teacher}*`)),e.dateFrom&&e.dateTo&&dt(e.dateFrom,e.dateTo)?s=s.set("filter.LessonDateTimeFrom",`=${E(e.dateFrom,"yyyy-MM-dd")}`):(e.dateFrom&&(s=s.set("filter.LessonDateTimeFrom",`>${E(tt(e.dateFrom,1),"yyyy-MM-dd")}`)),e.dateTo&&(s=s.set("filter.LessonDateTimeTo",`<${E(Ze(e.dateTo,1),"yyyy-MM-dd")}`))),e.weekdays&&(s=s.set("filter.WeekdayId",`;${e.weekdays.join(";")}`)),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:Y(t,this.settings.paginationLimit,s),headers:ue(),observe:"response"}).pipe(fe(de))}hasLessonsLessonTeacher(){let e=new $().set("fields","Id");return this.http.get(`${this.baseUrl}/`,{params:Y(0,1,e),headers:{"X-Role-Restriction":"LessonTeacherRole"}}).pipe(f(g(this.lessonPresenceIdCodec)),y(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(f(g(this.lessonPresenceIdCodec)),y(e=>e.length))}getListOfUnconfirmedLessonTeacher(e){return this.getList({headers:{"X-Role-Restriction":"LessonTeacherRole"},params:U(V({},e),{"filter.ConfirmationStateId":`=${this.settings.unconfirmedAbsenceStateId}`,"filter.HasStudyCourseConfirmationCode":"=false"})})}getListOfUnconfirmedClassTeacher(e){return this.getList({headers:{"X-Role-Restriction":"ClassTeacherRole"},params:U(V({},e),{"filter.ConfirmationStateId":`=${this.settings.unconfirmedAbsenceStateId}`,"filter.HasStudyCourseConfirmationCode":"=true"})})}getListOfUnconfirmedAbsenceAdministrator(e){return this.getList({headers:{"X-Role-Restriction":"AbsenceAdministratorRole"},params:U(V({},e),{"filter.ConfirmationStateId":`=${this.settings.unconfirmedAbsenceStateId}`})})}static{this.\u0275fac=function(t){return new(t||i)(O(Ae),O(z),O(Qe))}}static{this.\u0275prov=Se({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function he(i,r=new $){return i.reduce((e,[t,n])=>t&&n?e.set(`filter.${n}`,`=${t}`):e,r)}function _t(i,r=new $){return i?r.set("sort",`${i.key}.${i.ascending?"asc":"desc"}`):r}export{Et as a,pt as b,dt as c,ti as d,Bi as e}; diff --git a/public/apps/webapp-schulverwaltung/chunk-DZZC2YX2.js b/public/apps/webapp-schulverwaltung/chunk-DZZC2YX2.js deleted file mode 100644 index 1ff6a8f9..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-DZZC2YX2.js +++ /dev/null @@ -1 +0,0 @@ -import{E as n,L as f,O as d,P as g,Q as a,W as S,Z as c,Zb as v,e as l,k as u,lc as m,m as h,mc as P,nc as $,o as p,qc as R,w as s}from"./chunk-XTHSYQMN.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-ELVM3VWW.js b/public/apps/webapp-schulverwaltung/chunk-ELVM3VWW.js deleted file mode 100644 index e4ae1360..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-ELVM3VWW.js +++ /dev/null @@ -1 +0,0 @@ -import{a as Ee,b as ke,c as Ie}from"./chunk-SOH5T2AJ.js";import{a as ye}from"./chunk-NYTDIO5P.js";import{a as Te}from"./chunk-4EXGKTN3.js";import{a as be}from"./chunk-JV3CBBGP.js";import"./chunk-U4HODSW3.js";import"./chunk-W7ASLXRM.js";import"./chunk-PSXDSPKS.js";import{b as pe,e as O}from"./chunk-C7XT5XXE.js";import"./chunk-YMJC6QZX.js";import"./chunk-Y4QYVF5K.js";import"./chunk-HII3S2DL.js";import{a as Ce,b as Se}from"./chunk-UP3NEN2H.js";import{a as he}from"./chunk-DZZC2YX2.js";import{a as xe}from"./chunk-XLPJMZ3E.js";import{c as fe}from"./chunk-24AFRN2G.js";import{d as ge}from"./chunk-RFO4NYUO.js";import"./chunk-5RDJZAUT.js";import"./chunk-DB66EACG.js";import{P as de,T as _e}from"./chunk-ZK2MNT7Z.js";import"./chunk-AW7CSGKI.js";import{a as me,b as ve}from"./chunk-FTDG26ID.js";import{a as ce,c as ue}from"./chunk-SOHFFTKU.js";import{s as le}from"./chunk-C56YGDXA.js";import"./chunk-UX5TA32W.js";import{$ as E,$a as _,Ab as p,Bb as d,E as q,Eb as L,Ga as v,Gd as j,Ha as J,Hd as M,Ia as c,L as U,Mb as Z,O as N,Q as G,Qb as ee,Rb as te,Sa as s,Sb as ne,Ta as l,Ua as x,Va as F,Vb as ie,Vc as se,W as X,Wa as w,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,oc as ae,pb as R,pc as re,qb as B,ra as z,rb as $,rc as oe,sb as K,tb as k,ua as o,ub as Q,va as f,vb as V,xb as Y}from"./chunk-XTHSYQMN.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-F4JHPOM5.js b/public/apps/webapp-schulverwaltung/chunk-F4JHPOM5.js new file mode 100644 index 00000000..68e9be8b --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-F4JHPOM5.js @@ -0,0 +1,2 @@ +import{a as Wt}from"./chunk-KPGSX5OU.js";import{a as Gt,b as qt}from"./chunk-RET26MIW.js";import{a as Ht}from"./chunk-UA2MEY3S.js";import{a as Vt}from"./chunk-VKWEQ6GU.js";import{a as Ut}from"./chunk-2U5ENDJH.js";import{d as je,e as Oe}from"./chunk-VUPOI3TG.js";import{b as Bt,d as Ot}from"./chunk-WACRWBCS.js";import"./chunk-MIRGHONI.js";import"./chunk-YUHFF3NM.js";import{H as Lt,I as Rt,J as $t,L as ue,P as J,Q as fe,R as wt,S as Ft,T as Et,U as Nt,b as Tt,g as kt,p as ge,q as Mt,t as Be,w as Ce,x as Qe}from"./chunk-VGJCKFZL.js";import{a as It,l as be}from"./chunk-NL5E3FC5.js";import{a as Pt,b as jt}from"./chunk-UGBTF4Z2.js";import{b as Dt}from"./chunk-KK2SHN2W.js";import{a as yt,b as _t,c as ht,d as vt,e as gt,f as Ct,g as St,j as xt,u as ne,w as At}from"./chunk-LGOOC47H.js";import{a as de}from"./chunk-B6WYZ7BT.js";import{$c as Me,Ab as L,Bb as te,Cb as ae,Cd as le,Ea as xe,F as j,Gb as r,Ha as h,Hb as l,Ib as P,Id as me,J as Xe,Jd as D,Kd as E,L as Je,Ld as U,M as O,Ma as b,Na as oe,O as Ze,Oc as Ke,P as R,Pa as nt,R as et,Ra as C,Sb as lt,Ta as Ae,Ua as z,Va as Y,Wa as a,Wb as Ie,X as se,Xa as c,Xc as ft,Ya as S,Yc as q,Zb as X,_ as N,_b as dt,a as qe,aa as I,ab as V,bd as bt,cb as g,cc as mt,cd as Le,db as _,dd as Re,f as Se,g as Ue,h as We,hd as $e,ia as T,ja as k,jb as st,jd as we,kb as ot,l as W,lb as rt,ld as Fe,ma as tt,mb as $,md as Pe,n as y,nb as d,o as x,ob as w,pb as f,qa as it,qb as Z,rc as ut,sc as Te,tb as at,tc as ce,td as pe,ub as ct,uc as ke,ud as De,vb as pt,vd as Ee,wa as o,wb as H,wd as ie,x as Q,xa as u,xb as ee,yb as F,zb as re}from"./chunk-IFJN5CDK.js";var Ve=(()=>{class t{constructor(e,i,n,s,p,v,A,B){this.fb=e,this.router=i,this.toastService=n,this.translate=s,this.presenceTypesService=p,this.updateService=v,this.storageService=A,this.settings=B,this.formGroup=this.createFormGroup(),this.saving$=new Ue(!1),this.submitted$=new Ue(!1),this.absenceTypes$=x([this.getConfirmationTypes(),this.getHalfDayType()]).pipe(y(([K,M])=>M?[...K,M]:K)),this.absenceTypeIdErrors$=It(W(this.formGroup),this.submitted$,"absenceTypeId"),this.destroy$=new Se}ngOnInit(){this.selectedLessonIds$.pipe(j(1),Q(Ft)).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(y(e=>e.length))}getConfirmationTypes(){return this.presenceTypesService.confirmationTypes$.pipe(y(e=>e.filter(i=>i.IsAbsence&&i.Id!==this.settings.halfDayPresenceTypeId)))}getHalfDayType(){return W(null)}createFormGroup(){return this.fb.group({absenceTypeId:[null,bt.required]})}save(e){this.saving$.next(!0),this.selectedLessonIds$.pipe(j(1),R(i=>this.updateService.editLessonPresences(i,[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()}static{this.\u0275fac=function(i){return new(i||t)(u(pe),u(ce),u(de),u(me),u(J),u(fe),u(U),u(ft))}}static{this.\u0275cmp=I({type:t,selectors:[["ng-component"]],decls:0,vars:0,template:function(i,n){},encapsulation:2})}}return t})();var _e=(()=>{class t{constructor(e,i,n){this.settings=e,this.storageService=i,this.studentsService=n,this.studentId$=new We(1),this.lessonAbsences$=this.studentId$.pipe(R(this.loadLessonAbsences.bind(this)),O(1)),this.lessonIncidents$=this.studentId$.pipe(R(this.loadLessonIncidents.bind(this)),O(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$=x([this.openAbsences$.pipe(Q(ne)),this.lessonAbsences$]).pipe(y(be(this.getLessonAbsences.bind(this))),O(1)),this.checkableLessonAbsences$=x([this.checkableAbsences$.pipe(Q(ne)),this.lessonAbsences$]).pipe(y(be(this.getLessonAbsences.bind(this))),O(1)),this.excusedLessonAbsences$=x([this.excusedAbsences$.pipe(Q(ne)),this.lessonAbsences$]).pipe(y(be(this.getLessonAbsences.bind(this))),O(1)),this.unexcusedLessonAbsences$=x([this.unexcusedAbsences$.pipe(Q(ne)),this.lessonAbsences$]).pipe(y(be(this.getLessonAbsences.bind(this))),O(1)),this.incidentsLessonAbsences$=x([this.incidents$.pipe(Q(ne)),this.lessonIncidents$]).pipe(y(be(this.getLessonIncidents.bind(this))),O(1)),this.counts$=this.getCounts();let s=this.storageService.getPayload()?.id_person;s&&this.studentId$.next(Number(s))}reset(){this.studentId$.pipe(j(1)).subscribe(e=>this.studentId$.next(e))}getLessonPresences(){return this.getCached(x([this.studentId$,this.lessonAbsences$,this.lessonIncidents$]).pipe(R(([e,i,n])=>this.loadTimetableEntries(e,i,n).pipe(y(s=>this.buildLessonPresences(i,n,s)))),y($t)))}getAbsences(e){return this.getCached(this.lessonPresences$.pipe(y(i=>i?.filter(n=>n.ConfirmationStateId===e)||null)))}getLessonAbsences(e,i){let n=e.map(s=>s.LessonRef.Id);return i.filter(s=>n.includes(s.LessonRef.Id))}getLessonIncidents(e,i){let n=e.map(s=>s.LessonRef.Id);return i.filter(s=>n.includes(s.LessonRef.Id))}getCounts(){return x([this.getCount(this.checkableAbsences$),this.getCount(this.openAbsences$),this.getCount(this.excusedAbsences$),this.getCount(this.unexcusedAbsences$),this.getCount(this.incidents$)]).pipe(y(([e,i,n,s,p])=>({checkableAbsences:e,openAbsences:i,excusedAbsences:n,unexcusedAbsences:s,incidents:p,halfDays:null})))}getCached(e){return e.pipe(Ze(null),Je({connector:()=>new We(1)}))}getCount(e){return e.pipe(y(i=>i?.length??null))}loadLessonAbsences(e){return this.studentsService.getLessonAbsences(e)}loadLessonIncidents(e){return this.studentsService.getLessonIncidents(e)}loadTimetableEntries(e,i,n){return this.studentsService.getTimetableEntries(e,{"filter.Id":`;${[...i,...n].map(s=>s.LessonRef.Id).join(";")}`})}buildLessonPresences(e,i,n){return[...e,...i].map(s=>this.buildLessonPresence(s,n)).filter(ne)}buildLessonPresence(e,i){let n=i.find(s=>s.Id===e.LessonRef.Id);return n?{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:n.EventDesignation,HasStudyCourseConfirmationCode:!1,LessonDateTimeFrom:n.From,LessonDateTimeTo:n.To,Comment:null,Date:n.From,Type:e.Type,StudentFullName:e.StudentFullName,StudyClassNumber:"",TeacherInformation:n.EventManagerInformation??null}:null}static{this.\u0275fac=function(i){return new(i||t)(N(q),N(U),N(je))}}static{this.\u0275prov=se({token:t,factory:t.\u0275fac})}}return t})();var di=(t,m)=>m.Id,mi=t=>({count:t}),ui=t=>({"border-top pt-3":t});function fi(t,m){if(t&1&&(a(0,"div",13),d(1),r(2,"translate"),c()),t&2){let e=m.$implicit;o(),f(" ",P(2,1,"global.validation-errors."+e.error,e.params)," ")}}function bi(t,m){if(t&1&&(z(0,fi,3,4,"div",13,Ae),r(2,"async")),t&2){let e=_(2);Y(l(2,0,e.absenceTypeIdErrors$))}}function yi(t,m){if(t&1&&(a(0,"div",5),S(1,"input",11),r(2,"async"),a(3,"label",12),d(4),c(),h(5,bi,3,2),r(6,"async"),c()),t&2){let e,i,n=m.$implicit,s=m.$index,p=_();b("ngClass",ae(12,ui,n.IsHalfDay)),o(),oe("is-invalid",((e=(e=l(2,8,p.absenceTypeIdErrors$))==null?null:e.length)!==null&&e!==void 0?e:0)>0),b("id","absence-type-"+s)("value",n.Id),o(2),b("for","absence-type-"+s),o(),f(" ",n.Designation," "),o(),C(((i=(i=l(6,10,p.absenceTypes$))==null?null:i.length)!==null&&i!==void 0?i:0)-1===s?5:-1)}}function _i(t,m){t&1&&(a(0,"div",10)(1,"span",14),d(2,"Loading..."),c()())}var Xt=(()=>{class t extends Ve{constructor(e,i,n,s,p,v,A,B,K,M){super(e,i,n,s,p,v,A,B),this.myAbsencesService=K,this.selectionService=M,this.titleKey="my-absences.confirm.title",this.selectedLessonIds$=this.selectionService.selectedIds$.pipe(y(He=>le(ie(He.map(Ge=>Ge.lessonIds))))),this.confirmationStateId=this.settings.unconfirmedAbsencesRefreshTime}onSaveSuccess(){this.selectionService.clear(),this.myAbsencesService.reset(),super.onSaveSuccess()}navigateBack(){this.router.navigate(["/my-absences"])}static{this.\u0275fac=function(i){return new(i||t)(u(pe),u(ce),u(de),u(me),u(J),u(fe),u(U),u(q),u(_e),u(ue))}}static{this.\u0275cmp=I({type:t,selectors:[["bkd-my-absences-confirm"]],standalone:!0,features:[xe,L],decls:32,vars:39,consts:[[1,"bkd-container","bkd-container-limited"],[1,"mb-3","pb-3","border-bottom"],[3,"ngSubmit","formGroup"],[1,"form-group","mb-3","border-bottom"],[1,"form-label"],[1,"form-check","my-3",3,"ngClass"],[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"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],["type","radio","formControlName","absenceTypeId",1,"form-check-input",3,"id","value"],[1,"form-check-label",3,"for"],[1,"invalid-feedback","mt-4"],[1,"visually-hidden"]],template:function(i,n){if(i&1){let s=V();a(0,"div",0)(1,"h1"),d(2),r(3,"translate"),c(),a(4,"div",1),H(5),r(6,"async"),d(7),r(8,"translate"),c(),a(9,"form",2),g("ngSubmit",function(){return T(s),k(n.onSubmit())}),a(10,"div",3)(11,"label",4),d(12),r(13,"translate"),r(14,"addSpace"),c(),z(15,yi,7,14,"div",5,di),r(17,"async"),c(),a(18,"div",6),d(19),r(20,"translate"),c(),a(21,"div",7)(22,"button",8),r(23,"async"),g("click",function(){return T(s),k(n.cancel())}),d(24),r(25,"translate"),c(),a(26,"button",9),r(27,"async"),d(28),r(29,"translate"),h(30,_i,3,0,"div",10),r(31,"async"),c()()()()}if(i&2){o(2),w(l(3,11,n.titleKey));let s=l(6,13,n.getSelectedCount());o(5),f(" ",P(8,15,s===1?"my-absences.confirm.lesson-selected":"my-absences.confirm.lessons-selected",ae(37,mi,s))," "),o(2),b("formGroup",n.formGroup),o(3),Z("",l(13,18,"my-absences.confirm.choose-presence-type"),"",P(14,20,":",":"),""),o(3),Y(l(17,23,n.absenceTypes$)),o(4),f(" ",l(20,25,"my-absences.confirm.remark")," "),o(3),b("disabled",l(23,27,n.saving$)),o(2),f(" ",l(25,29,"my-absences.confirm.cancel")," "),o(2),b("disabled",l(27,31,n.saving$)),o(2),f(" ",l(29,33,"my-absences.confirm.save")," "),o(2),C(l(31,35,n.saving$)?30:-1)}},dependencies:[De,$e,Me,we,Le,Re,Ee,Fe,Pe,Ie,X,E,D,Oe],changeDetection:0})}}return t})();var he=(()=>{class t extends qt{get preventAbsencesAfterStart(){if(this._preventAbsencesAfterStart==null){let e=this.storageService.getPayload()?.instance_id,i=this.settings.preventStudentAbsenceAfterLessonStart;this._preventAbsencesAfterStart=e?i.includes(e):!1}return this._preventAbsencesAfterStart}constructor(e,i,n,s,p,v){super(e,i,v,n,"/my-absences/report"),this.studentsService=s,this.storageService=p}getInitialFilter(){return{dateFrom:null,dateTo:null}}isValidFilter(e){return!!(e.dateFrom||e.dateTo)}loadEntries(e,i,n){let s=this.buildRequestParamsFromFilter(e).set("sort","From.asc");return this.loadingService.load(this.loadTimetableEntries(s).pipe(y(p=>this.filterAbsencesAfterLessonStart(p)),R(p=>x([W(p),this.loadLessonAbsences(p),this.loadLessonDispensations(p)])),y(([p,v,A])=>this.buildLessonPresences(p,v,A)),y(p=>({offset:0,total:p.length,entries:p}))),Gt)}filterAbsencesAfterLessonStart(e){return this.preventAbsencesAfterStart?e.filter(i=>i.From.getTime()>=new Date().getTime()):e}buildParamsFromFilter(e){let{dateFrom:i,dateTo:n}=e,s={};return i&&(s.dateFrom=ge(i,"yyyy-MM-dd")),n&&(s.dateTo=ge(n,"yyyy-MM-dd")),s}buildRequestParamsFromFilter(e){let i=new mt;return e.dateFrom&&(i=i.set("filter.From",`>${ge(Mt(e.dateFrom,1),"yyyy-MM-dd")}`)),e.dateTo&&(i=i.set("filter.To",`<${ge(Tt(e.dateTo,1),"yyyy-MM-dd")}`)),i}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(i=>i.Id).join(";")}`}):W([])}loadLessonDispensations(e){return e.length>0?this.studentsService.getLessonDispensations(this.studentId,{"filter.Id":`;${e.map(i=>i.Id).join(";")}`}):W([])}buildLessonPresences(e,i,n){return e.map(s=>this.buildLessonPresence(s,i,n))}buildLessonPresence(e,i,n){let s=i.find(A=>A.LessonRef.Id===e.Id),p=n.find(A=>A.LessonRef.Id===e.Id),v=this.buildLessonPresenceTypeRef(s,p);return{Id:"",LessonRef:{Id:e.Id,HRef:null},StudentRef:(s||p)?.StudentRef||{Id:this.studentId,HRef:null},EventRef:{Id:0,HRef:null},TypeRef:v,RegistrationRef:{Id:0,HRef:null},StudyClassRef:{Id:0,HRef:null},ConfirmationStateId:s?.ConfirmationStateId||p&&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:(s||p)?.Type||null,StudentFullName:(s||p)?.StudentFullName||"",StudyClassNumber:"",TeacherInformation:e.EventManagerInformation??null}}buildLessonPresenceTypeRef(e,i){return e?qe({},e.TypeRef):i?qe({},i.TypeRef):{Id:null,HRef:null}}static{this.\u0275fac=function(i){return new(i||t)(N(lt),N(jt),N(q),N(je),N(U),N(Ut))}}static{this.\u0275prov=se({token:t,factory:t.\u0275fac})}}return t})();var ve=(()=>{class t extends Lt{constructor(){super(...arguments),this.selectedIds$=this.selection$.pipe(y(Rt))}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=tt(t)))(n||t)}})()}static{this.\u0275prov=se({token:t,factory:t.\u0275fac})}}return t})();var hi=(t,m)=>m.Id,vi=t=>({count:t}),gi=t=>({"border-top pt-3":t});function Ci(t,m){if(t&1&&(a(0,"div",13),d(1),r(2,"translate"),c()),t&2){let e=m.$implicit;o(),f(" ",P(2,1,"global.validation-errors."+e.error,e.params)," ")}}function Si(t,m){if(t&1&&(z(0,Ci,3,4,"div",13,Ae),r(2,"async")),t&2){let e=_(2);Y(l(2,0,e.absenceTypeIdErrors$))}}function xi(t,m){if(t&1&&(a(0,"div",5),S(1,"input",11),r(2,"async"),a(3,"label",12),d(4),c(),h(5,Si,3,2),r(6,"async"),c()),t&2){let e,i,n=m.$implicit,s=m.$index,p=_();b("ngClass",ae(12,gi,n.IsHalfDay)),o(),oe("is-invalid",((e=(e=l(2,8,p.absenceTypeIdErrors$))==null?null:e.length)!==null&&e!==void 0?e:0)>0),b("id","absence-type-"+s)("value",n.Id),o(2),b("for","absence-type-"+s),o(),f(" ",n.Designation," "),o(),C(((i=(i=l(6,10,p.absenceTypes$))==null?null:i.length)!==null&&i!==void 0?i:0)-1===s?5:-1)}}function Ai(t,m){t&1&&(a(0,"div",10)(1,"span",14),d(2,"Loading..."),c()())}var ei=(()=>{class t extends Ve{constructor(e,i,n,s,p,v,A,B,K,M){super(e,i,n,s,p,v,A,B),this.state=K,this.selectionService=M,this.titleKey="my-absences.report.title",this.selectedLessonIds$=this.selectionService.selectedIds$.pipe(y(He=>le(ie(He.map(Ge=>Ge.lessonIds))))),this.confirmationStateId=this.settings.checkableAbsenceStateId}getHalfDayType(){return this.presenceTypesService.getPresenceType(this.settings.halfDayPresenceTypeId).pipe(y(e=>e.Active?e:null))}onSaveSuccess(){this.selectionService.clear(),this.state.resetEntries(),super.onSaveSuccess()}navigateBack(){this.state.queryParams$.pipe(j(1)).subscribe(e=>{this.router.navigate(["/my-absences/report"],{queryParams:e})})}static{this.\u0275fac=function(i){return new(i||t)(u(pe),u(ce),u(de),u(me),u(J),u(fe),u(U),u(q),u(he),u(ve))}}static{this.\u0275cmp=I({type:t,selectors:[["bkd-my-absences-confirm"]],standalone:!0,features:[xe,L],decls:32,vars:39,consts:[[1,"bkd-container","bkd-container-limited"],[1,"mb-3","pb-3","border-bottom"],[3,"ngSubmit","formGroup"],[1,"form-group","mb-3","border-bottom"],[1,"form-label"],[1,"form-check","my-3",3,"ngClass"],[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"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],["type","radio","formControlName","absenceTypeId",1,"form-check-input",3,"id","value"],[1,"form-check-label",3,"for"],[1,"invalid-feedback","mt-4"],[1,"visually-hidden"]],template:function(i,n){if(i&1){let s=V();a(0,"div",0)(1,"h1"),d(2),r(3,"translate"),c(),a(4,"div",1),H(5),r(6,"async"),d(7),r(8,"translate"),c(),a(9,"form",2),g("ngSubmit",function(){return T(s),k(n.onSubmit())}),a(10,"div",3)(11,"label",4),d(12),r(13,"translate"),r(14,"addSpace"),c(),z(15,xi,7,14,"div",5,hi),r(17,"async"),c(),a(18,"div",6),d(19),r(20,"translate"),c(),a(21,"div",7)(22,"button",8),r(23,"async"),g("click",function(){return T(s),k(n.cancel())}),d(24),r(25,"translate"),c(),a(26,"button",9),r(27,"async"),d(28),r(29,"translate"),h(30,Ai,3,0,"div",10),r(31,"async"),c()()()()}if(i&2){o(2),w(l(3,11,n.titleKey));let s=l(6,13,n.getSelectedCount());o(5),f(" ",P(8,15,s===1?"my-absences.confirm.lesson-selected":"my-absences.confirm.lessons-selected",ae(37,vi,s))," "),o(2),b("formGroup",n.formGroup),o(3),Z("",l(13,18,"my-absences.confirm.choose-presence-type"),"",P(14,20,":",":"),""),o(3),Y(l(17,23,n.absenceTypes$)),o(4),f(" ",l(20,25,"my-absences.confirm.remark")," "),o(3),b("disabled",l(23,27,n.saving$)),o(2),f(" ",l(25,29,"my-absences.confirm.cancel")," "),o(2),b("disabled",l(27,31,n.saving$)),o(2),f(" ",l(29,33,"my-absences.confirm.save")," "),o(2),C(l(31,35,n.saving$)?30:-1)}},dependencies:[De,$e,Me,we,Le,Re,Ee,Fe,Pe,Ie,X,E,D,Oe],changeDetection:0})}}return t})();var Ii=()=>["/my-absences"],ii=(()=>{class t{constructor(){this.filter={dateFrom:null,dateTo:null},this.filterChange=new it,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:ti(this.filter.dateFrom),dateTo:ti(this.filter.dateTo)})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=I({type:t,selectors:[["bkd-my-absences-report-header"]],inputs:{filter:"filter"},outputs:{filterChange:"filterChange"},standalone:!0,features:[re([{provide:Ct,useClass:xt},{provide:St,useClass:Vt}]),L],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(i,n){i&1&&(S(0,"bkd-backlink",0),a(1,"h1"),d(2),r(3,"translate"),c(),a(4,"div",1)(5,"div",2)(6,"label",3),d(7),r(8,"translate"),c(),a(9,"bkd-date-select",4),g("valueChange",function(p){return n.updateDateFrom(p)}),c()(),a(10,"div",2)(11,"label",3),d(12),r(13,"translate"),c(),a(14,"bkd-date-select",4),pt("valueChange",function(p){return ct(n.filter.dateTo,p)||(n.filter.dateTo=p),p}),c()(),a(15,"div",5)(16,"button",6),g("click",function(){return n.show()}),d(17),r(18,"translate"),c()()()),i&2&&(b("link",te(17,Ii)),o(2),w(l(3,9,"my-absences.report.title")),o(5),w(l(8,11,"my-absences.report.header.date-from")),o(2),b("minDate",n.minDate)("value",n.filter.dateFrom),o(3),w(l(13,13,"my-absences.report.header.date-to")),o(2),b("minDate",n.minDate),at("value",n.filter.dateTo),o(3),f(" ",l(18,15,"my-absences.report.header.show")," "))},dependencies:[Nt,Wt,E,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})}}return t})();function ti(t){return t?kt(t):null}var Ti=(t,m)=>m.Id;function ki(t,m){t&1&&S(0,"bkd-spinner")}function Mi(t,m){if(t&1){let e=V();a(0,"div",8)(1,"input",9,2),r(3,"async"),g("change",function(){T(e);let n=_().$implicit,s=_(5);return k(s.selectionService.toggle(n))}),c()()}if(t&2){let e=_().$implicit,i=_(5);o(),b("checked",l(3,1,i.selectionService.isSelected$(e)))}}function Li(t,m){if(t&1&&(a(0,"div")(1,"i",13),d(2),c()()),t&2){_();let e=F(2);nt("checkbox presence-category ",e.category,""),o(2),w(e.icon)}}function Ri(t,m){if(t&1&&d(0),t&2){let e=_().$implicit;f(" , ",e.StudyClassNumber," ")}}function $i(t,m){if(t&1&&(a(0,"div",20),d(1),c()),t&2){_();let e=F(15);o(),f(" ",e," ")}}function wi(t,m){if(t&1){let e=V();a(0,"div",15,1),g("click",function(n){T(e);let s=$(1),p=_(5);return k(p.onRowClick(n,s))}),H(2),r(3,"async"),h(4,Mi,4,3,"div",8)(5,Li,3,4,"div",16),a(6,"div",17),d(7),h(8,Ri,1,1),c(),a(9,"div",18),d(10),r(11,"date"),r(12,"date"),c(),a(13,"div",19),d(14),c(),H(15),r(16,"async"),h(17,$i,2,1,"div",20),a(18,"div",21),d(19),r(20,"date"),c(),a(21,"div",22),d(22),r(23,"bkdDaysDifference"),c(),a(24,"div",23),d(25),r(26,"date"),r(27,"bkdDaysDifference"),c()()}if(t&2){let e=m.$implicit,i=_(5);o(2);let n=ee(l(3,11,i.getPresenceCategory(e)));o(2),C(n?5:4),o(3),f(" ",e.EventDesignation," "),o(),C(e.StudyClassNumber?8:-1),o(2),Z(" ",P(11,14,e.LessonDateTimeFrom,"HH:mm"),"\u2013",P(12,17,e.LessonDateTimeTo,"HH:mm")," "),o(4),f(" ",e.TeacherInformation," "),o();let s=ee(l(16,20,i.getPresenceTypeDesignation(e)));o(2),C(s?17:-1),o(2),f(" ",P(20,23,e.LessonDateTimeFrom,"dd.MM.yyyy")," "),o(3),f(" ",l(23,26,e.LessonDateTimeFrom)," "),o(3),Z(" ",P(26,28,e.LessonDateTimeFrom,"dd.MM.yyyy"),", ",l(27,31,e.LessonDateTimeFrom)," ")}}function Fi(t,m){if(t&1){let e=V();a(0,"div")(1,"div",7,0),g("click",function(n){T(e);let s=$(2),p=_(4);return k(p.onRowClick(n,s))}),a(3,"div",8)(4,"input",9),r(5,"async"),g("change",function(n){T(e);let s=_(4);return k(s.toggleAll(n.target==null?null:n.target.checked))}),c()(),a(6,"div",10),d(7),r(8,"translate"),c(),a(9,"div",11)(10,"a",12),r(11,"async"),a(12,"i",13),d(13,"edit"),c()()()(),z(14,wi,28,33,"div",14,Ti),c()}if(t&2){let e,i=_(4),n=F(0);o(4),b("checked",l(5,4,i.allSelected$)),o(3),f(" ",l(8,6,"my-absences.report.list.all")," "),o(3),oe("disabled",((e=l(11,8,i.selectionService.selection$))==null?null:e.length)===0),o(4),Y(n)}}function Pi(t,m){t&1&&S(0,"bkd-spinner",6)}function Di(t,m){if(t&1&&(a(0,"div",5),h(1,Fi,16,10,"div")(2,Pi,1,0,"bkd-spinner",6),c()),t&2){_(3);let e=F(0),i=F(2);o(),C(e&&e.length>0?1:-1),o(),C(i?2:-1)}}function Ei(t,m){t&1&&(a(0,"p",4),d(1),r(2,"translate"),c()),t&2&&(o(),f(" ",l(2,1,"my-absences.report.no-entries")," "))}function Bi(t,m){if(t&1&&h(0,Di,3,2,"div",5)(1,Ei,3,3,"p",4),t&2){_(2);let e=F(0),i=F(2);C(e&&e.length>0||i?0:1)}}function ji(t,m){if(t&1&&(h(0,ki,1,0,"bkd-spinner"),r(1,"async"),h(2,Bi,2,1)),t&2){let e=_();C(l(1,1,e.state.loading$)?0:2)}}function Oi(t,m){t&1&&(a(0,"p",4),d(1),r(2,"translate"),c()),t&2&&(o(),w(l(2,1,"my-absences.report.no-filter")))}var ni=(()=>{class t{constructor(e,i,n,s,p,v){this.state=e,this.selectionService=i,this.route=n,this.scrollPosition=s,this.presenceTypesService=p,this.settings=v,this.filterFromParams$=this.route.queryParams.pipe(y(Ni)),this.allSelected$=x([this.selectionService.selection$,this.state.entries$.pipe(R(A=>x(A.map(B=>this.getPresenceType(B)))))]).pipe(y(([A,B])=>A.length>0&&A.length===B.filter(At(Be)).length)),this.destroy$=new Se}ngOnInit(){this.filterFromParams$.pipe(j(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(y(i=>Be(i)?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(y(i=>e.TypeRef.Id&&i.find(n=>n.Id===e.TypeRef.Id)?.Designation||null))}toggleAll(e){x([this.state.entries$.pipe(j(1)),this.presenceTypesService.presenceTypes$.pipe(j(1))]).subscribe(([i,n])=>{let s=n.filter(p=>Be(p)).map(p=>p.Id);this.selectionService.clear(e?i.filter(p=>p.TypeRef.Id==null||!s.includes(p.TypeRef.Id)):null)})}onRowClick(e,i){let n=i.querySelector('input[type="checkbox"]');n&&e.target!==n&&!e.target.closest(".buttons")&&n.click()}getPresenceType(e){return this.presenceTypesService.presenceTypes$.pipe(y(i=>e.TypeRef.Id&&i.find(n=>n.Id===e.TypeRef.Id)||null))}static{this.\u0275fac=function(i){return new(i||t)(u(he),u(ve),u(ut),u(Ht),u(J),u(q))}}static{this.\u0275cmp=I({type:t,selectors:[["bkd-my-absences-report-list"]],standalone:!0,features:[L],decls:9,vars:12,consts:[["all",""],["row",""],["checkbox",""],[3,"filterChange","filter"],[1,"mt-3"],[1,"py-3"],[1,"inline"],[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"],[1,"entry"],[1,"entry",3,"click"],[3,"class"],[1,"lesson-class"],[1,"time","pe-2"],[1,"teacher"],[1,"presence-type"],[1,"date"],[1,"days-ago"],[1,"date-days-ago"]],template:function(i,n){if(i&1){let s=V();H(0),r(1,"async"),H(2),r(3,"async"),a(4,"bkd-my-absences-report-header",3),r(5,"async"),g("filterChange",function(v){return T(s),k(n.state.setFilter(v))}),c(),h(6,ji,3,3),r(7,"async"),h(8,Oi,3,3,"p",4)}i&2&&(ee(l(1,2,n.state.entries$)),o(2),ee(l(3,5,n.state.loadingPage$)),o(2),b("filter",l(5,8,n.filterFromParams$)),o(2),C(l(7,10,n.state.isFilterValid$)?6:8))},dependencies:[ii,ke,Dt,X,dt,E,D,wt],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 Ni(t){return{dateFrom:t.dateFrom?Ke(t.dateFrom):null,dateTo:t.dateTo?Ke(t.dateTo):null}}var si=(()=>{class t{constructor(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=I({type:t,selectors:[["bkd-my-absences-report"]],standalone:!0,features:[re([he,ve]),L],decls:1,vars:0,template:function(i,n){i&1&&S(0,"router-outlet")},dependencies:[Te],changeDetection:0})}}return t})();var Vi=["link"],Hi=()=>["/my-absences/report"],oi=(()=>{class t{onClick(){this.link.nativeElement.click()}constructor(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=I({type:t,selectors:[["bkd-my-absences-report-link"]],viewQuery:function(i,n){if(i&1&&st(Vi,5),i&2){let s;ot(s=rt())&&(n.link=s.first)}},hostBindings:function(i,n){i&1&&g("click",function(p){return n.onClick(p)})},standalone:!0,features:[L],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(i,n){i&1&&(a(0,"h5",1),d(1),r(2,"translate"),c(),a(3,"a",2,0)(5,"div",3)(6,"i",4),d(7,"keyboard_arrow_right"),c()()()),i&2&&(o(),f(" ",l(2,2,"my-absences.report.title"),` +`),o(2),b("routerLink",te(4,Hi)))},dependencies:[ke,E,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})}}return t})();var ri=()=>[];function Gi(t,m){}function qi(t,m){if(t&1&&d(0),t&2){_();let e=F(0);f(" (",e==null?null:e.checkableAbsences,") ")}}function Ui(t,m){if(t&1&&S(0,"bkd-student-dossier-absences",15),t&2){let e=_();b("absences$",e.myAbsencesService.checkableAbsences$)}}function Wi(t,m){if(t&1&&d(0),t&2){_();let e=F(0);f(" (",e==null?null:e.openAbsences,") ")}}function Ki(t,m){if(t&1&&(S(0,"bkd-student-dossier-absences",16),r(1,"translate"),r(2,"async")),t&2){let e,i=_();b("absences$",i.myAbsencesService.openAbsences$)("selectionService",i.absencesSelectionService)("defaultAbsenceSelectionMessage",l(1,4,"my-absences.show.default-absence-selection-message"))("reports",(e=l(2,6,i.openAbsencesReports$))!==null&&e!==void 0?e:te(8,ri))}}function Qi(t,m){if(t&1&&d(0),t&2){_();let e=F(0);f(" (",e==null?null:e.excusedAbsences,") ")}}function zi(t,m){if(t&1&&S(0,"bkd-student-dossier-absences",15),t&2){let e=_();b("absences$",e.myAbsencesService.excusedAbsences$)}}function Yi(t,m){if(t&1&&d(0),t&2){_();let e=F(0);f(" (",e==null?null:e.unexcusedAbsences,") ")}}function Xi(t,m){if(t&1&&S(0,"bkd-student-dossier-absences",17),t&2){let e=_();b("absences$",e.myAbsencesService.unexcusedAbsences$)("displayPresenceType",!1)}}function Ji(t,m){if(t&1&&d(0),t&2){_();let e=F(0);f(" (",e==null?null:e.incidents,") ")}}function Zi(t,m){if(t&1&&S(0,"bkd-student-dossier-absences",15),t&2){let e=_();b("absences$",e.myAbsencesService.incidents$)}}var ai=(()=>{class t{constructor(e,i,n){this.reportsService=e,this.myAbsencesService=i,this.absencesSelectionService=n,this.openAbsencesReports$=this.loadOpenAbsencesReports(),this.allAbsencesReports$=this.loadAllAbsencesReports()}loadOpenAbsencesReports(){return x([this.absencesSelectionService.selectedWithoutPresenceType$,this.absencesSelectionService.selectedIds$]).pipe(R(([e,i])=>e.length===0&&i.length>0?this.getOpenAbsencesRecordIds(le(ie(i.map(n=>n.lessonIds)))):W([])),R(e=>this.reportsService.getStudentConfirmationReports(e)),O(1))}loadAllAbsencesReports(){return x([this.myAbsencesService.openLessonAbsences$,this.myAbsencesService.checkableLessonAbsences$,this.myAbsencesService.excusedLessonAbsences$,this.myAbsencesService.unexcusedLessonAbsences$,this.myAbsencesService.incidentsLessonAbsences$]).pipe(y(e=>this.getAllAbsencesRecordIds(ie(e))),R(e=>this.reportsService.getMyAbsencesReports(e)),O(1))}getAllAbsencesRecordIds(e){return e.map(i=>`${i.LessonRef.Id}_${i.RegistrationId}`)}getOpenAbsencesRecordIds(e){return this.myAbsencesService.openLessonAbsences$.pipe(y(i=>i.filter(n=>e.includes(n.LessonRef.Id)).map(n=>`${n.LessonRef.Id}_${n.RegistrationId}`)))}static{this.\u0275fac=function(i){return new(i||t)(u(Ot),u(_e),u(ue))}}static{this.\u0275cmp=I({type:t,selectors:[["bkd-my-absences-show"]],standalone:!0,features:[L],decls:70,vars:38,consts:[["checkableAbsences","ngbAccordionItem"],["openAbsences","ngbAccordionItem"],["excusedAbsences","ngbAccordionItem"],["unexcusedAbsences","ngbAccordionItem"],["incidents","ngbAccordionItem"],[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"],[3,"absences$"],[3,"absences$","selectionService","defaultAbsenceSelectionMessage","reports"],[3,"absences$","displayPresenceType"]],template:function(i,n){if(i&1){let s=V();H(0),r(1,"async"),a(2,"div",5)(3,"h1"),d(4),r(5,"translate"),c(),a(6,"div",6)(7,"div"),d(8),r(9,"translate"),c(),a(10,"div",7),S(11,"bkd-reports-link",8),r(12,"async"),c()(),a(13,"div",9)(14,"div",10)(15,"div",11),S(16,"bkd-my-absences-report-link"),c(),a(17,"div",12)(18,"div",13),h(19,Gi,0,0,"ng-template"),c()()(),a(20,"div",10,0)(22,"div",11)(23,"bkd-student-dossier-entry-header",14),g("click",function(){T(s);let v=$(21);return k(v.toggle())}),d(24),r(25,"translate"),h(26,qi,1,1),c()(),a(27,"div",12)(28,"div",13),h(29,Ui,1,1,"ng-template"),c()()(),a(30,"div",10,1)(32,"div",11)(33,"bkd-student-dossier-entry-header",14),g("click",function(){T(s);let v=$(31);return k(v.toggle())}),d(34),r(35,"translate"),h(36,Wi,1,1),c()(),a(37,"div",12)(38,"div",13),h(39,Ki,3,9,"ng-template"),c()()(),a(40,"div",10,2)(42,"div",11)(43,"bkd-student-dossier-entry-header",14),g("click",function(){T(s);let v=$(41);return k(v.toggle())}),d(44),r(45,"translate"),h(46,Qi,1,1),c()(),a(47,"div",12)(48,"div",13),h(49,zi,1,1,"ng-template"),c()()(),a(50,"div",10,3)(52,"div",11)(53,"bkd-student-dossier-entry-header",14),g("click",function(){T(s);let v=$(51);return k(v.toggle())}),d(54),r(55,"translate"),h(56,Yi,1,1),c()(),a(57,"div",12)(58,"div",13),h(59,Xi,1,2,"ng-template"),c()()(),a(60,"div",10,4)(62,"div",11)(63,"bkd-student-dossier-entry-header",14),g("click",function(){T(s);let v=$(61);return k(v.toggle())}),d(64),r(65,"translate"),h(66,Ji,1,1),c()(),a(67,"div",12)(68,"div",13),h(69,Zi,1,1,"ng-template"),c()()()()()}if(i&2){let s,p=$(21),v=$(31),A=$(41),B=$(51),K=$(61),M=ee(l(1,18,n.myAbsencesService.counts$));o(4),w(l(5,21,"my-absences.title")),o(4),w(l(9,23,"my-absences.description")),o(3),b("reports",(s=l(12,25,n.allAbsencesReports$))!==null&&s!==void 0?s:te(37,ri)),o(12),b("opened",!p.collapsed),o(),f(" ",l(25,27,"shared.profile.checkable-absences")," "),o(2),C((M==null?null:M.checkableAbsences)!==null?26:-1),o(7),b("opened",!v.collapsed),o(),f(" ",l(35,29,"shared.profile.open-absences")," "),o(2),C((M==null?null:M.openAbsences)!==null?36:-1),o(7),b("opened",!A.collapsed),o(),f(" ",l(45,31,"shared.profile.excused-absences")," "),o(2),C((M==null?null:M.excusedAbsences)!==null?46:-1),o(7),b("opened",!B.collapsed),o(),f(" ",l(55,33,"shared.profile.unexcused-absences")," "),o(2),C((M==null?null:M.unexcusedAbsences)!==null?56:-1),o(7),b("opened",!K.collapsed),o(),f(" ",l(65,35,"shared.profile.incidents")," "),o(2),C((M==null?null:M.incidents)!==null?66:-1)}},dependencies:[Pt,gt,vt,ht,oi,_t,yt,Bt,Et,X,E,D],styles:[".header[_ngcontent-%COMP%]{padding-bottom:1rem}"],changeDetection:0})}}return t})();var ci=(()=>{class t{constructor(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=I({type:t,selectors:[["bkd-my-absences"]],standalone:!0,features:[re([_e,ue]),L],decls:1,vars:0,template:function(i,n){i&1&&S(0,"router-outlet")},dependencies:[Te],changeDetection:0})}}return t})();var Qs=[{path:"",component:ci,children:[{path:"",component:ai},{path:"confirm",component:Xt},{path:"report",component:si,children:[{path:"",component:ni,data:{restoreScrollPositionFrom:["/my-absences/report/confirm"]}},{path:"confirm",component:ei}]}]}];export{Qs as MY_ABSENCES_ROUTES}; diff --git a/public/apps/webapp-schulverwaltung/chunk-FJXQ6CD7.js b/public/apps/webapp-schulverwaltung/chunk-FJXQ6CD7.js new file mode 100644 index 00000000..785ea7a3 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-FJXQ6CD7.js @@ -0,0 +1 @@ +import{n as e}from"./chunk-IMBPAJBQ.js";import{c as p}from"./chunk-VUPOI3TG.js";import{Gd as o,P as i,X as c,Yc as m,_ as s,gc as n}from"./chunk-IFJN5CDK.js";var I=(()=>{class t extends p{constructor(a,r){super(a,r,e,"StudyClasses","Number")}getActive(){return this.http.get(`${this.baseUrl}/?filter.IsActive==true`,{headers:{"X-Role-Restriction":"ClassTeacherRole"}}).pipe(i(o(e)))}getActiveFormativeAssessments(){return this.http.get(`${this.baseUrl}/FormativeAssessments?filter.IsActive==true`,{headers:{"X-Role-Restriction":"ClassTeacherRole"}}).pipe(i(o(e)))}static{this.\u0275fac=function(r){return new(r||t)(s(n),s(m))}}static{this.\u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();export{I as a}; diff --git a/public/apps/webapp-schulverwaltung/chunk-FTDG26ID.js b/public/apps/webapp-schulverwaltung/chunk-FTDG26ID.js deleted file mode 100644 index 2efe015d..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-FTDG26ID.js +++ /dev/null @@ -1 +0,0 @@ -import{e as B}from"./chunk-SOHFFTKU.js";import{k as V,l as j,m as z,n as P,o as q}from"./chunk-C56YGDXA.js";import{$ as D,$a as c,Bd 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,Rb as E,Sa as s,Sb as M,Ta as p,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-XTHSYQMN.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-GTCR4WGM.js b/public/apps/webapp-schulverwaltung/chunk-GTCR4WGM.js deleted file mode 100644 index f8664a40..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-GTCR4WGM.js +++ /dev/null @@ -1,2 +0,0 @@ -import{a as Di}from"./chunk-ZROJU7EX.js";import{a as Vi,b as Ni,c as ji}from"./chunk-SOH5T2AJ.js";import{a as ki}from"./chunk-NYTDIO5P.js";import{a as $i}from"./chunk-4EXGKTN3.js";import{a as Ai}from"./chunk-JV3CBBGP.js";import"./chunk-U4HODSW3.js";import"./chunk-W7ASLXRM.js";import"./chunk-PSXDSPKS.js";import{a as hi,b as _i,e as Si}from"./chunk-C7XT5XXE.js";import{a as We}from"./chunk-YMJC6QZX.js";import"./chunk-Y4QYVF5K.js";import"./chunk-HII3S2DL.js";import{a as Ri}from"./chunk-DDSXVC6O.js";import{a as Li,b as Pi}from"./chunk-UP3NEN2H.js";import{a as Bi}from"./chunk-DZZC2YX2.js";import{a as Oi}from"./chunk-K3EEKOGY.js";import{a as Mi}from"./chunk-XLPJMZ3E.js";import{b as xi,c as wi}from"./chunk-24AFRN2G.js";import"./chunk-RFO4NYUO.js";import{a as Ii}from"./chunk-5RDJZAUT.js";import"./chunk-DB66EACG.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-ZK2MNT7Z.js";import{a as He,c as dt,e as yi}from"./chunk-AW7CSGKI.js";import{b as Fi}from"./chunk-FTDG26ID.js";import{a as Ge,c as Ti}from"./chunk-SOHFFTKU.js";import{f as li,g as ci,j as di,w as we,y as fi}from"./chunk-C56YGDXA.js";import{a as pi}from"./chunk-UX5TA32W.js";import{$ as j,$a as f,$c as Re,Ab as u,Ac as lt,Ba as Pt,Bb as m,C as It,Cb as ie,Dd as mi,E as ee,Eb as Z,Fa as Le,Fc as zt,Fd as $e,Ga as b,Gd as de,Ha as q,Hb as Mt,Hd as ue,I as xt,Ia as p,Ib as k,Ja as $,Jb as Ie,L as pe,Lb as Nt,Lc as ct,Ma as Xe,Mb as Rt,N as wt,Na as U,O as Se,Q as M,Qa as et,Qb as jt,R as Ft,Ra as tt,Rb as Ee,Sa as c,Sb as Me,Ta as d,Ua as D,Ub as at,V as At,Va as ge,Vb as Ce,Vc as ce,W,Wa as be,Wb as $t,Wc as Qt,X as kt,Xa as it,Xc as Kt,Y as Dt,Ya as V,Yb as Ht,Yc as Yt,Z as R,_a as x,_c as xe,a as _e,aa as Ot,ab as nt,ad as Zt,b as ke,ba as H,bb as st,cb as me,db as rt,dc as Gt,dd as Jt,e as se,eb as G,ed as Xt,f as Ze,fb as he,ga as Te,gb as O,gd as ei,h as Ct,ha as C,hb as B,i as yt,ia as y,ib as N,id as ti,jb as h,jd as ii,k as St,kb as T,kd as ni,la as Bt,lb as E,ld as si,m as S,ma as Je,mb as ve,md as ri,n as De,oc as Ne,pb as z,pc as Wt,qa as re,qb as Q,qc as qt,qd as ai,ra as A,rb as K,rc as Ut,rd as je,s as ye,sb as le,sd as oi,tb as te,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,zc as ot,zd as ui}from"./chunk-XTHSYQMN.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-HII3S2DL.js b/public/apps/webapp-schulverwaltung/chunk-HII3S2DL.js deleted file mode 100644 index c6aa9b70..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-HII3S2DL.js +++ /dev/null @@ -1 +0,0 @@ -import{Ac as n,Fc as o,Hc as r,zc as t}from"./chunk-XTHSYQMN.js";var i=o({Key:r([n,t]),Value:t});export{i as a}; diff --git a/public/apps/webapp-schulverwaltung/chunk-IFJN5CDK.js b/public/apps/webapp-schulverwaltung/chunk-IFJN5CDK.js new file mode 100644 index 00000000..d358d801 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-IFJN5CDK.js @@ -0,0 +1,9 @@ +var Lx=Object.defineProperty,kx=Object.defineProperties;var jx=Object.getOwnPropertyDescriptors;var Ws=Object.getOwnPropertySymbols;var eg=Object.prototype.hasOwnProperty,tg=Object.prototype.propertyIsEnumerable;var Xp=(e,t,n)=>t in e?Lx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t)=>{for(var n in t||={})eg.call(t,n)&&Xp(e,n,t[n]);if(Ws)for(var n of Ws(t))tg.call(t,n)&&Xp(e,n,t[n]);return e},U=(e,t)=>kx(e,jx(t));var Vx=(e,t)=>{var n={};for(var r in e)eg.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ws)for(var r of Ws(e))t.indexOf(r)<0&&tg.call(e,r)&&(n[r]=e[r]);return n};var qs=(e,t,n)=>new Promise((r,o)=>{var i=u=>{try{a(n.next(u))}catch(c){o(c)}},s=u=>{try{a(n.throw(u))}catch(c){o(c)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(i,s);a((n=n.apply(e,t)).next())});function ng(e,t){return Object.is(e,t)}var Ce=null,Zs=!1,Ks=1,Xt=Symbol("SIGNAL");function B(e){let t=Ce;return Ce=e,t}function rg(){return Ce}var Ei={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 vl(e){if(Zs)throw new Error("");if(Ce===null)return;Ce.consumerOnSignalRead(e);let t=Ce.nextProducerIndex++;if(Xs(Ce),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Dl(e){Xs(e);for(let t=0;t0}function Xs(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function ug(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function cg(e){return e.producerNode!==void 0}function lg(e){let t=Object.create($x);t.computation=e;let n=()=>{if(og(t),vl(t),t.value===Ys)throw t.error;return t.value};return n[Xt]=t,n}var gl=Symbol("UNSET"),ml=Symbol("COMPUTING"),Ys=Symbol("ERRORED"),$x=U(y({},Ei),{value:gl,dirty:!0,error:null,equal:ng,producerMustRecompute(e){return e.value===gl||e.value===ml},producerRecomputeValue(e){if(e.value===ml)throw new Error("Detected cycle in computations.");let t=e.value;e.value=ml;let n=Qs(e),r;try{r=e.computation()}catch(o){r=Ys,e.error=o}finally{yl(e,n)}if(t!==gl&&t!==Ys&&r!==Ys&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function Hx(){throw new Error}var dg=Hx;function fg(){dg()}function hg(e){dg=e}var zx=null;function pg(e){let t=Object.create(mg);t.value=e;let n=()=>(vl(t),t.value);return n[Xt]=t,n}function Cl(e,t){sg()||fg(),e.equal(e.value,t)||(e.value=t,Gx(e))}function gg(e,t){sg()||fg(),Cl(e,t(e.value))}var mg=U(y({},Ei),{equal:ng,value:void 0});function Gx(e){e.version++,Ux(),ig(e),zx?.()}function S(e){return typeof e=="function"}function Jr(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var ea=Jr(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Dr(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var se=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(S(r))try{r()}catch(i){t=i instanceof ea?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{vg(i)}catch(s){t=t??[],s instanceof ea?t=[...t,...s.errors]:t.push(s)}}if(t)throw new ea(t)}}add(t){var n;if(t&&t!==this)if(this.closed)vg(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Dr(n,t)}remove(t){let{_finalizers:n}=this;n&&Dr(n,t),t instanceof e&&t._removeParent(this)}};se.EMPTY=(()=>{let e=new se;return e.closed=!0,e})();var bl=se.EMPTY;function ta(e){return e instanceof se||e&&"closed"in e&&S(e.remove)&&S(e.add)&&S(e.unsubscribe)}function vg(e){S(e)?e():e.unsubscribe()}var bt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Xr={setTimeout(e,t,...n){let{delegate:r}=Xr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Xr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function na(e){Xr.setTimeout(()=>{let{onUnhandledError:t}=bt;if(t)t(e);else throw e})}function en(){}var yg=El("C",void 0,void 0);function Dg(e){return El("E",void 0,e)}function wg(e){return El("N",e,void 0)}function El(e,t,n){return{kind:e,value:t,error:n}}var wr=null;function eo(e){if(bt.useDeprecatedSynchronousErrorHandling){let t=!wr;if(t&&(wr={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=wr;if(wr=null,n)throw r}}else e()}function Cg(e){bt.useDeprecatedSynchronousErrorHandling&&wr&&(wr.errorThrown=!0,wr.error=e)}var Cr=class extends se{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,ta(t)&&t.add(this)):this.destination=Zx}static create(t,n,r){return new tn(t,n,r)}next(t){this.isStopped?xl(wg(t),this):this._next(t)}error(t){this.isStopped?xl(Dg(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?xl(yg,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Wx=Function.prototype.bind;function Il(e,t){return Wx.call(e,t)}var _l=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ra(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ra(r)}else ra(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ra(n)}}},tn=class extends Cr{constructor(t,n,r){super();let o;if(S(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&bt.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Il(t.next,i),error:t.error&&Il(t.error,i),complete:t.complete&&Il(t.complete,i)}):o=t}this.destination=new _l(o)}};function ra(e){bt.useDeprecatedSynchronousErrorHandling?Cg(e):na(e)}function qx(e){throw e}function xl(e,t){let{onStoppedNotification:n}=bt;n&&Xr.setTimeout(()=>n(e,t))}var Zx={closed:!0,next:en,error:qx,complete:en};var to=typeof Symbol=="function"&&Symbol.observable||"@@observable";function be(e){return e}function Ml(...e){return Sl(e)}function Sl(e){return e.length===0?be:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var P=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Yx(n)?n:new tn(n,r,o);return eo(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=bg(r),new r((o,i)=>{let s=new tn({next:a=>{try{n(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[to](){return this}pipe(...n){return Sl(n)(this)}toPromise(n){return n=bg(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function bg(e){var t;return(t=e??bt.Promise)!==null&&t!==void 0?t:Promise}function Kx(e){return e&&S(e.next)&&S(e.error)&&S(e.complete)}function Yx(e){return e&&e instanceof Cr||Kx(e)&&ta(e)}function Tl(e){return S(e?.lift)}function T(e){return t=>{if(Tl(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function _(e,t,n,r,o){return new Al(e,t,n,r,o)}var Al=class extends Cr{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(u){t.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){t.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function no(){return T((e,t)=>{let n=null;e._refCount++;let r=_(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var ro=class extends P{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Tl(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new se;let n=this.getSubject();t.add(this.source.subscribe(_(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=se.EMPTY)}return t}refCount(){return no()(this)}};var oo={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=oo;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=t(i=>{n=void 0,e(i)});return new se(()=>n?.(o))},requestAnimationFrame(...e){let{delegate:t}=oo;return(t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:t}=oo;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var Eg=Jr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ae=(()=>{class e extends P{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new oa(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Eg}next(n){eo(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){eo(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){eo(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?bl:(this.currentObservers=null,i.push(n),new se(()=>{this.currentObservers=null,Dr(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new P;return n.source=this,n}}return e.create=(t,n)=>new oa(t,n),e})(),oa=class extends ae{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:bl}};var Ae=class extends ae{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Ii={now(){return(Ii.delegate||Date).now()},delegate:void 0};var xi=class extends ae{constructor(t=1/0,n=1/0,r=Ii){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;sIg(t)&&e()),t},clearImmediate(e){Ig(e)}};var{setImmediate:Jx,clearImmediate:Xx}=xg,Mi={setImmediate(...e){let{delegate:t}=Mi;return(t?.setImmediate||Jx)(...e)},clearImmediate(e){let{delegate:t}=Mi;return(t?.clearImmediate||Xx)(e)},delegate:void 0};var sa=class extends Tn{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=Mi.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(Mi.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))}};var io=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};io.now=Ii.now;var An=class extends io{constructor(t,n=io.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var aa=class extends An{flush(t){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var e_=new aa(sa);var Et=new An(Tn),_g=Et;var ua=class extends Tn{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=oo.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(oo.cancelAnimationFrame(n),t._scheduled=void 0)}};var ca=class extends An{flush(t){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var t_=new ca(ua);var Ne=new P(e=>e.complete());function la(e){return e&&S(e.schedule)}function Ol(e){return e[e.length-1]}function Nn(e){return S(Ol(e))?e.pop():void 0}function Ft(e){return la(Ol(e))?e.pop():void 0}function Mg(e,t){return typeof Ol(e)=="number"?e.pop():t}function Tg(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?i(l.value):o(l.value).then(a,u)}c((r=r.apply(e,t||[])).next())})}function Sg(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function br(e){return this instanceof br?(this.v=e,this):new br(e)}function Ag(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(p){return Promise.resolve(p).then(f,d)}}function a(f,p){r[f]&&(o[f]=function(g){return new Promise(function(m,D){i.push([f,g,m,D])>1||u(f,g)})},p&&(o[f]=p(o[f])))}function u(f,p){try{c(r[f](p))}catch(g){h(i[0][3],g)}}function c(f){f.value instanceof br?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){u("next",f)}function d(f){u("throw",f)}function h(f,p){f(p),i.shift(),i.length&&u(i[0][0],i[0][1])}}function Ng(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Sg=="function"?Sg(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,u){s=e[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 so=e=>e&&typeof e.length=="number"&&typeof e!="function";function da(e){return S(e?.then)}function fa(e){return S(e[to])}function ha(e){return Symbol.asyncIterator&&S(e?.[Symbol.asyncIterator])}function pa(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function n_(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ga=n_();function ma(e){return S(e?.[ga])}function va(e){return Ag(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield br(n.read());if(o)return yield br(void 0);yield yield br(r)}}finally{n.releaseLock()}})}function ya(e){return S(e?.getReader)}function k(e){if(e instanceof P)return e;if(e!=null){if(fa(e))return r_(e);if(so(e))return o_(e);if(da(e))return i_(e);if(ha(e))return Rg(e);if(ma(e))return s_(e);if(ya(e))return a_(e)}throw pa(e)}function r_(e){return new P(t=>{let n=e[to]();if(S(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function o_(e){return new P(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,na)})}function s_(e){return new P(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Rg(e){return new P(t=>{u_(e,t).catch(n=>t.error(n))})}function a_(e){return Rg(va(e))}function u_(e,t){var n,r,o,i;return Tg(this,void 0,void 0,function*(){try{for(n=Ng(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function We(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Da(e,t=0){return T((n,r)=>{n.subscribe(_(r,o=>We(r,e,()=>r.next(o),t),()=>We(r,e,()=>r.complete(),t),o=>We(r,e,()=>r.error(o),t)))})}function wa(e,t=0){return T((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Og(e,t){return k(e).pipe(wa(t),Da(t))}function Pg(e,t){return k(e).pipe(wa(t),Da(t))}function Fg(e,t){return new P(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Lg(e,t){return new P(n=>{let r;return We(n,t,()=>{r=e[ga](),We(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>S(r?.return)&&r.return()})}function Ca(e,t){if(!e)throw new Error("Iterable cannot be null");return new P(n=>{We(n,t,()=>{let r=e[Symbol.asyncIterator]();We(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function kg(e,t){return Ca(va(e),t)}function jg(e,t){if(e!=null){if(fa(e))return Og(e,t);if(so(e))return Fg(e,t);if(da(e))return Pg(e,t);if(ha(e))return Ca(e,t);if(ma(e))return Lg(e,t);if(ya(e))return kg(e,t)}throw pa(e)}function te(e,t){return t?jg(e,t):k(e)}function I(...e){let t=Ft(e);return te(e,t)}function Rn(e,t){let n=S(e)?e:()=>e,r=o=>o.error(n());return new P(t?o=>t.schedule(r,0,o):r)}function It(e){return!!e&&(e instanceof P||S(e.lift)&&S(e.subscribe))}var nn=Jr(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Vg(e){return e instanceof Date&&!isNaN(e)}function N(e,t){return T((n,r)=>{let o=0;n.subscribe(_(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:c_}=Array;function l_(e,t){return c_(t)?e(...t):e(t)}function ao(e){return N(t=>l_(e,t))}var{isArray:d_}=Array,{getPrototypeOf:f_,prototype:h_,keys:p_}=Object;function ba(e){if(e.length===1){let t=e[0];if(d_(t))return{args:t,keys:null};if(g_(t)){let n=p_(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function g_(e){return e&&typeof e=="object"&&f_(e)===h_}function Ea(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Ia(...e){let t=Ft(e),n=Nn(e),{args:r,keys:o}=ba(e);if(r.length===0)return te([],t);let i=new P(m_(r,t,o?s=>Ea(o,s):be));return n?i.pipe(ao(n)):i}function m_(e,t,n=be){return r=>{Ug(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let u=0;u{let c=te(e[u],t),l=!1;c.subscribe(_(r,d=>{i[u]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Ug(e,t,n){e?We(n,e,t):t()}function Bg(e,t,n,r,o,i,s,a){let u=[],c=0,l=0,d=!1,h=()=>{d&&!u.length&&!c&&t.complete()},f=g=>c{i&&t.next(g),c++;let m=!1;k(n(g,l++)).subscribe(_(t,D=>{o?.(D),i?f(D):t.next(D)},()=>{m=!0},void 0,()=>{if(m)try{for(c--;u.length&&cp(D)):p(D)}h()}catch(D){t.error(D)}}))};return e.subscribe(_(t,f,()=>{d=!0,h()})),()=>{a?.()}}function le(e,t,n=1/0){return S(t)?le((r,o)=>N((i,s)=>t(r,i,o,s))(k(e(r,o))),n):(typeof t=="number"&&(n=t),T((r,o)=>Bg(r,o,e,n)))}function On(e=1/0){return le(be,e)}function $g(){return On(1)}function nt(...e){return $g()(te(e,Ft(e)))}function rn(e){return new P(t=>{k(e()).subscribe(t)})}var v_={connector:()=>new ae,resetOnDisconnect:!0};function y_(e,t=v_){let n=null,{connector:r,resetOnDisconnect:o=!0}=t,i=r(),s=new P(a=>i.subscribe(a));return s.connect=()=>((!n||n.closed)&&(n=rn(()=>e).subscribe(i),o&&n.add(()=>i=r())),n),s}function Si(...e){let t=Nn(e),{args:n,keys:r}=ba(e),o=new P(i=>{let{length:s}=n;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]=h},()=>u--,void 0,()=>{(!u||!d)&&(c||i.next(r?Ea(r,a):a),i.complete())}))}});return t?o.pipe(ao(t)):o}var D_=["addListener","removeListener"],w_=["addEventListener","removeEventListener"],C_=["on","off"];function Pl(e,t,n,r){if(S(n)&&(r=n,n=void 0),r)return Pl(e,t,n).pipe(ao(r));let[o,i]=I_(e)?w_.map(s=>a=>e[s](t,a,n)):b_(e)?D_.map(Hg(e,t)):E_(e)?C_.map(Hg(e,t)):[];if(!o&&so(e))return le(s=>Pl(s,t,n))(k(e));if(!o)throw new TypeError("Invalid event target");return new P(s=>{let a=(...u)=>s.next(1i(a)})}function Hg(e,t){return n=>r=>e[n](t,r)}function b_(e){return S(e.addListener)&&S(e.removeListener)}function E_(e){return S(e.on)&&S(e.off)}function I_(e){return S(e.addEventListener)&&S(e.removeEventListener)}function on(e=0,t,n=_g){let r=-1;return t!=null&&(la(t)?n=t:r=t),new P(o=>{let i=Vg(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function x_(e=0,t=Et){return e<0&&(e=0),on(e,e,t)}function __(...e){let t=Ft(e),n=Mg(e,1/0),r=e;return r.length?r.length===1?k(r[0]):On(n)(te(r,t)):Ne}var{isArray:M_}=Array;function xa(e){return e.length===1&&M_(e[0])?e[0]:e}function je(e,t){return T((n,r)=>{let o=0;n.subscribe(_(r,i=>e.call(t,i,o++)&&r.next(i)))})}function S_(...e){return e=xa(e),e.length===1?k(e[0]):new P(T_(e))}function T_(e){return t=>{let n=[];for(let r=0;n&&!t.closed&&r{if(n){for(let i=0;i{let o=n.map(()=>[]),i=n.map(()=>!1);r.add(()=>{o=i=null});for(let s=0;!r.closed&&s{if(o[s].push(a),o.every(u=>u.length)){let u=o.map(c=>c.shift());r.next(t?t(...u):u),o.some((c,l)=>!c.length&&i[l])&&r.complete()}},()=>{i[s]=!0,!o[s].length&&r.complete()}));return()=>{o=i=null}}):Ne}function zg(e){return T((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let c=o;o=null,n.next(c)}s&&n.complete()},u=()=>{i=null,s&&n.complete()};t.subscribe(_(n,c=>{r=!0,o=c,i||k(e(c)).subscribe(i=_(n,a,u))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function N_(e,t=Et){return zg(()=>on(e,t))}function Pn(e){return T((t,n)=>{let r=null,o=!1,i;r=t.subscribe(_(n,void 0,void 0,s=>{i=k(e(s,Pn(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Gg(e,t,n,r,o){return(i,s)=>{let a=n,u=t,c=0;i.subscribe(_(s,l=>{let d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}function Lt(e,t){return S(t)?le(e,t,1):le(e,1)}function Wg(e,t=Et){return T((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let c=i;i=null,r.next(c)}};function u(){let c=s+e,l=t.now();if(l{i=c,s=t.now(),o||(o=t.schedule(u,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function Fn(e){return T((t,n)=>{let r=!1;t.subscribe(_(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function _e(e){return e<=0?()=>Ne:T((t,n)=>{let r=0;t.subscribe(_(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function qg(){return T((e,t)=>{e.subscribe(_(t,en))})}function Ti(e){return N(()=>e)}function Fl(e,t){return t?n=>nt(t.pipe(_e(1),qg()),n.pipe(Fl(e))):le((n,r)=>k(e(n,r)).pipe(_e(1),Ti(n)))}function R_(e,t=Et){let n=on(e,t);return Fl(()=>n)}function Zg(e,t=be){return e=e??O_,T((n,r)=>{let o,i=!0;n.subscribe(_(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function O_(e,t){return e===t}function _a(e=P_){return T((t,n)=>{let r=!1;t.subscribe(_(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function P_(){return new nn}function F_(...e){return t=>nt(t,I(...e))}function Ln(e){return T((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function kt(e,t){let n=arguments.length>=2;return r=>r.pipe(e?je((o,i)=>e(o,i,r)):be,_e(1),n?Fn(t):_a(()=>new nn))}function uo(e){return e<=0?()=>Ne:T((t,n)=>{let r=[];t.subscribe(_(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Ll(e,t){let n=arguments.length>=2;return r=>r.pipe(e?je((o,i)=>e(o,i,r)):be,uo(1),n?Fn(t):_a(()=>new nn))}function Ma(e,t){return T(Gg(e,t,arguments.length>=2,!0))}function jl(e={}){let{connector:t=()=>new ae,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,u,c=0,l=!1,d=!1,h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),s=u=void 0,l=d=!1},p=()=>{let g=s;f(),g?.unsubscribe()};return T((g,m)=>{c++,!d&&!l&&h();let D=u=u??t();m.add(()=>{c--,c===0&&!d&&!l&&(a=kl(p,o))}),D.subscribe(m),!s&&c>0&&(s=new tn({next:A=>D.next(A),error:A=>{d=!0,h(),a=kl(f,n,A),D.error(A)},complete:()=>{l=!0,h(),a=kl(f,r),D.complete()}}),k(g).subscribe(s))})(i)}}function kl(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new tn({next:()=>{r.unsubscribe(),e()}});return k(t(...n)).subscribe(r)}function Ai(e,t,n){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:n}=e:r=e??1/0,jl({connector:()=>new xi(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function L_(e){return je((t,n)=>e<=n)}function Sa(...e){let t=Ft(e);return T((n,r)=>{(t?nt(e,n,t):nt(e,n)).subscribe(r)})}function Ee(e,t){return T((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(_(r,u=>{o?.unsubscribe();let c=0,l=i++;k(e(u,l)).subscribe(o=_(r,d=>r.next(t?t(u,d,l,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function k_(){return Ee(be)}function Ta(e){return T((t,n)=>{k(e).subscribe(_(n,()=>n.complete(),en)),!n.closed&&t.subscribe(n)})}function Ie(e,t,n){let r=S(e)||t||n?{next:e,error:t,complete:n}:e;return r?T((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(_(i,u=>{var c;(c=r.next)===null||c===void 0||c.call(r,u),i.next(u)},()=>{var u;a=!1,(u=r.complete)===null||u===void 0||u.call(r),i.complete()},u=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,u),i.error(u)},()=>{var u,c;a&&((u=r.unsubscribe)===null||u===void 0||u.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):be}function Kg(e,t){return T((n,r)=>{let{leading:o=!0,trailing:i=!1}=t??{},s=!1,a=null,u=null,c=!1,l=()=>{u?.unsubscribe(),u=null,i&&(f(),c&&r.complete())},d=()=>{u=null,c&&r.complete()},h=p=>u=k(e(p)).subscribe(_(r,l,d)),f=()=>{if(s){s=!1;let p=a;a=null,r.next(p),!c&&h(p)}};n.subscribe(_(r,p=>{s=!0,a=p,!(u&&!u.closed)&&(o?f():h(p))},()=>{c=!0,!(i&&s&&u&&!u.closed)&&r.complete()}))})}function j_(e,t=Et,n){let r=on(e,t);return Kg(()=>r,n)}function V_(...e){let t=Nn(e);return T((n,r)=>{let o=e.length,i=new Array(o),s=e.map(()=>!1),a=!1;for(let u=0;u{i[u]=c,!a&&!s[u]&&(s[u]=!0,(a=s.every(be))&&(s=null))},en));n.subscribe(_(r,u=>{if(a){let c=[u,...i];r.next(t?t(...c):c)}}))})}var km="https://g.co/ng/security#xss",b=class extends Error{constructor(t,n){super(pu(t,n)),this.code=t}};function pu(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function Hi(e){return{toString:e}.toString()}var Aa="__parameters__";function U_(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function jm(e,t,n){return Hi(()=>{let r=U_(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(Aa)?u[Aa]:Object.defineProperty(u,Aa,{value:[]})[Aa];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var sn=globalThis;function Q(e){for(let t in e)if(e[t]===Q)return t;throw Error("Could not find renamed property on target object.")}function B_(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Ye(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(Ye).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` +`);return n===-1?t:t.substring(0,n)}function Xl(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var $_=Q({__forward_ref__:Q});function Pe(e){return e.__forward_ref__=Pe,e.toString=function(){return Ye(this())},e}function Re(e){return Vm(e)?e():e}function Vm(e){return typeof e=="function"&&e.hasOwnProperty($_)&&e.__forward_ref__===Pe}function C(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function zt(e){return{providers:e.providers||[],imports:e.imports||[]}}function gu(e){return Yg(e,Bm)||Yg(e,$m)}function Um(e){return gu(e)!==null}function Yg(e,t){return e.hasOwnProperty(t)?e[t]:null}function H_(e){let t=e&&(e[Bm]||e[$m]);return t||null}function Qg(e){return e&&(e.hasOwnProperty(Jg)||e.hasOwnProperty(z_))?e[Jg]:null}var Bm=Q({\u0275prov:Q}),Jg=Q({\u0275inj:Q}),$m=Q({ngInjectableDef:Q}),z_=Q({ngInjectorDef:Q}),E=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=C({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Hm(e){return e&&!!e.\u0275providers}var G_=Q({\u0275cmp:Q}),W_=Q({\u0275dir:Q}),q_=Q({\u0275pipe:Q}),Z_=Q({\u0275mod:Q}),Ha=Q({\u0275fac:Q}),Ri=Q({__NG_ELEMENT_ID__:Q}),Xg=Q({__NG_ENV_ID__:Q});function Ze(e){return typeof e=="string"?e:e==null?"":String(e)}function K_(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Ze(e)}function Y_(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new b(-200,e)}function cf(e,t){throw new b(-201,!1)}var j=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}(j||{}),ed;function zm(){return ed}function qe(e){let t=ed;return ed=e,t}function Gm(e,t,n){let r=gu(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&j.Optional)return null;if(t!==void 0)return t;cf(e,"Injector")}var Q_={},Pi=Q_,td="__NG_DI_FLAG__",za="ngTempTokenPath",J_="ngTokenPath",X_=/\n/gm,e0="\u0275",em="__source",po;function t0(){return po}function kn(e){let t=po;return po=e,t}function n0(e,t=j.Default){if(po===void 0)throw new b(-203,!1);return po===null?Gm(e,void 0,t):po.get(e,t&j.Optional?null:void 0,t)}function x(e,t=j.Default){return(zm()||n0)(Re(e),t)}function v(e,t=j.Default){return x(e,mu(t))}function mu(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function nd(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):Ye(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(X_,` + `)}`}var lf=Wm(jm("Optional"),8);var qm=Wm(jm("SkipSelf"),4);function xr(e,t){let n=e.hasOwnProperty(Ha);return n?e[Ha]:null}function s0(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?df(n,t):t(n))}function Zm(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ga(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function u0(e,t){let n=[];for(let r=0;rt;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function vu(e,t,n){let r=zi(e,t);return r>=0?e[r|1]=n:(r=~r,c0(e,r,t,n)),r}function Vl(e,t){let n=zi(e,t);if(n>=0)return e[n|1]}function zi(e,t){return l0(e,t,1)}function l0(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[l+1].toLowerCase(),r&2&&c!==d){if(xt(r))return!1;s=!0}}}}return xt(r)||s}function xt(e){return(e&1)===0}function m0(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!xt(s)&&(t+=nm(i,o),o=""),r=s,i=i||!xt(r);n++}return o!==""&&(t+=nm(i,o)),t}function b0(e){return e.map(C0).join(",")}function E0(e){let t=[],n=[],r=1,o=2;for(;r{let t=iv(e),n=U(y({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Qm.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Ut.Emulated,styles:e.styles||Ke,_:null,schemas:e.schemas||null,tView:null,id:""});sv(n);let r=e.dependencies;return n.directiveDefs=om(r,!1),n.pipeDefs=om(r,!0),n.id=_0(n),n})}function I0(e){return Bn(e)||hf(e)}function x0(e){return e!==null}function Gt(e){return Hi(()=>({type:e.type,bootstrap:e.bootstrap||Ke,declarations:e.declarations||Ke,imports:e.imports||Ke,exports:e.exports||Ke,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function rm(e,t){if(e==null)return an;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=Un.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==Un.None?[r,a]:r,t[i]=s):n[i]=r}return n}function z(e){return Hi(()=>{let t=iv(e);return sv(t),t})}function So(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Bn(e){return e[G_]||null}function hf(e){return e[W_]||null}function nv(e){return e[q_]||null}function rv(e){let t=Bn(e)||hf(e)||nv(e);return t!==null?t.standalone:!1}function ov(e,t){let n=e[Z_]||null;if(!n&&t===!0)throw new Error(`Type ${Ye(e)} does not have '\u0275mod' property.`);return n}function iv(e){let 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||an,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||Ke,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:rm(e.inputs,t),outputs:rm(e.outputs),debugInfo:null}}function sv(e){e.features?.forEach(t=>t(e))}function om(e,t){if(!e)return null;let n=t?nv:I0;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(x0)}function _0(e){let t=0,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(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Gi(e){return{\u0275providers:e}}function M0(...e){return{\u0275providers:av(!0,e),\u0275fromNgModule:!0}}function av(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return df(t,s=>{let a=s;od(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&uv(o,i),n}function uv(e,t){for(let n=0;n{t(i,r)})}}function od(e,t,n,r){if(e=Re(e),!e)return!1;let o=null,i=Qg(e),s=!i&&Bn(e);if(!i&&!s){let u=e.ngModule;if(i=Qg(u),i)o=u;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)od(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{df(i.imports,l=>{od(l,t,n,r)&&(c||=[],c.push(l))})}finally{}c!==void 0&&uv(c,t)}if(!a){let c=xr(o)||(()=>new o);t({provide:o,useFactory:c,deps:Ke},o),t({provide:Ym,useValue:o,multi:!0},o),t({provide:mo,useValue:()=>x(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=e;pf(u,l=>{t(l,c)})}}else return!1;return o!==e&&e.providers!==void 0}function pf(e,t){for(let n of e)Hm(n)&&(n=n.\u0275providers),Array.isArray(n)?pf(n,t):t(n)}var S0=Q({provide:String,useValue:Q});function cv(e){return e!==null&&typeof e=="object"&&S0 in e}function T0(e){return!!(e&&e.useExisting)}function A0(e){return!!(e&&e.useFactory)}function vo(e){return typeof e=="function"}function N0(e){return!!e.useClass}var yu=new E(""),ka={},R0={},Ul;function Du(){return Ul===void 0&&(Ul=new Wa),Ul}var Qe=class{},Li=class extends Qe{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,sd(t,s=>this.processProvider(s)),this.records.set(Km,co(void 0,this)),o.has("environment")&&this.records.set(Qe,co(void 0,this));let i=this.records.get(yu);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Ym,Ke,j.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=B(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),B(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=kn(this),r=qe(void 0),o;try{return t()}finally{kn(n),qe(r)}}get(t,n=Pi,r=j.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Xg))return t[Xg](this);r=mu(r);let o,i=kn(this),s=qe(void 0);try{if(!(r&j.SkipSelf)){let u=this.records.get(t);if(u===void 0){let c=k0(t)&&gu(t);c&&this.injectableDefInScope(c)?u=co(id(t),ka):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u)}let a=r&j.Self?Du():this.parent;return n=r&j.Optional&&n===Pi?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[za]=a[za]||[]).unshift(Ye(t)),i)throw a;return o0(a,t,"R3InjectorError",this.source)}else throw a}finally{qe(s),kn(i)}}resolveInjectorInitializers(){let t=B(null),n=kn(this),r=qe(void 0),o;try{let i=this.get(mo,Ke,j.Self);for(let s of i)s()}finally{kn(n),qe(r),B(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Ye(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new b(205,!1)}processProvider(t){t=Re(t);let n=vo(t)?t:Re(t&&t.provide),r=P0(t);if(!vo(t)&&t.multi===!0){let o=this.records.get(n);o||(o=co(void 0,ka,!0),o.factory=()=>nd(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=B(null);try{return n.value===ka&&(n.value=R0,n.value=n.factory()),typeof n.value=="object"&&n.value&&L0(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{B(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Re(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function id(e){let t=gu(e),n=t!==null?t.factory:xr(e);if(n!==null)return n;if(e instanceof E)throw new b(204,!1);if(e instanceof Function)return O0(e);throw new b(204,!1)}function O0(e){if(e.length>0)throw new b(204,!1);let n=H_(e);return n!==null?()=>n.factory(e):()=>new e}function P0(e){if(cv(e))return co(void 0,e.useValue);{let t=lv(e);return co(t,ka)}}function lv(e,t,n){let r;if(vo(e)){let o=Re(e);return xr(o)||id(o)}else if(cv(e))r=()=>Re(e.useValue);else if(A0(e))r=()=>e.useFactory(...nd(e.deps||[]));else if(T0(e))r=()=>x(Re(e.useExisting));else{let o=Re(e&&(e.useClass||e.provide));if(F0(e))r=()=>new o(...nd(e.deps));else return xr(o)||id(o)}return r}function co(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function F0(e){return!!e.deps}function L0(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function k0(e){return typeof e=="function"||typeof e=="object"&&e instanceof E}function sd(e,t){for(let n of e)Array.isArray(n)?sd(n,t):n&&Hm(n)?sd(n.\u0275providers,t):t(n)}function St(e,t){e instanceof Li&&e.assertNotDestroyed();let n,r=kn(e),o=qe(void 0);try{return t()}finally{kn(r),qe(o)}}function dv(){return zm()!==void 0||t0()!=null}function fv(e){if(!dv())throw new b(-203,!1)}function j0(e){return typeof e=="function"}var dn=0,O=1,R=2,Ue=3,Mt=4,et=5,yo=6,qa=7,Oe=8,Do=9,Bt=10,ue=11,ki=12,im=13,To=14,Je=15,_r=16,lo=17,un=18,wu=19,hv=20,jn=21,Bl=22,dt=23,me=25,pv=1;var Mr=7,Za=8,wo=9,Ve=10,Ka=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Ka||{});function Vn(e){return Array.isArray(e)&&typeof e[pv]=="object"}function fn(e){return Array.isArray(e)&&e[pv]===!0}function gf(e){return(e.flags&4)!==0}function Cu(e){return e.componentOffset>-1}function bu(e){return(e.flags&1)===1}function $n(e){return!!e.template}function ad(e){return(e[R]&512)!==0}var ud=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function gv(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function rt(){return mv}function mv(e){return e.type.prototype.ngOnChanges&&(e.setInput=U0),V0}rt.ngInherit=!0;function V0(){let e=yv(this),t=e?.current;if(t){let n=e.previous;if(n===an)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function U0(e,t,n,r,o){let i=this.declaredInputs[r],s=yv(e)||B0(e,{previous:an,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[i];a[i]=new ud(c&&c.currentValue,n,u===an),gv(e,t,o,n)}var vv="__ngSimpleChanges__";function yv(e){return e[vv]||null}function B0(e,t){return e[vv]=t}var sm=null;var jt=function(e,t,n){sm?.(e,t,n)},Dv="svg",wv="math";function $t(e){for(;Array.isArray(e);)e=e[dn];return e}function Cv(e,t){return $t(t[e])}function ht(e,t){return $t(t[e.index])}function mf(e,t){return e.data[t]}function Wi(e,t){return e[t]}function Wn(e,t){let n=t[e];return Vn(n)?n:n[dn]}function $0(e){return(e[R]&4)===4}function vf(e){return(e[R]&128)===128}function H0(e){return fn(e[Ue])}function Hn(e,t){return t==null?null:e[t]}function bv(e){e[lo]=0}function Ev(e){e[R]&1024||(e[R]|=1024,vf(e)&&Iu(e))}function z0(e,t){for(;e>0;)t=t[To],e--;return t}function Eu(e){return!!(e[R]&9216||e[dt]?.dirty)}function cd(e){e[Bt].changeDetectionScheduler?.notify(8),e[R]&64&&(e[R]|=1024),Eu(e)&&Iu(e)}function Iu(e){e[Bt].changeDetectionScheduler?.notify(0);let t=Sr(e);for(;t!==null&&!(t[R]&8192||(t[R]|=8192,!vf(t)));)t=Sr(t)}function Iv(e,t){if((e[R]&256)===256)throw new b(911,!1);e[jn]===null&&(e[jn]=[]),e[jn].push(t)}function G0(e,t){if(e[jn]===null)return;let n=e[jn].indexOf(t);n!==-1&&e[jn].splice(n,1)}function Sr(e){let t=e[Ue];return fn(t)?t[Ue]:t}var F={lFrame:Pv(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var xv=!1;function W0(){return F.lFrame.elementDepthCount}function q0(){F.lFrame.elementDepthCount++}function Z0(){F.lFrame.elementDepthCount--}function _v(){return F.bindingsEnabled}function Mv(){return F.skipHydrationRootTNode!==null}function K0(e){return F.skipHydrationRootTNode===e}function Y0(){F.skipHydrationRootTNode=null}function M(){return F.lFrame.lView}function ne(){return F.lFrame.tView}function d5(e){return F.lFrame.contextLView=e,e[Oe]}function f5(e){return F.lFrame.contextLView=null,e}function Fe(){let e=Sv();for(;e!==null&&e.type===64;)e=e.parent;return e}function Sv(){return F.lFrame.currentTNode}function Q0(){let e=F.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function qn(e,t){let n=F.lFrame;n.currentTNode=e,n.isParent=t}function yf(){return F.lFrame.isParent}function Df(){F.lFrame.isParent=!1}function Tv(){return F.lFrame.contextLView}function Av(){return xv}function am(e){xv=e}function Zn(){let e=F.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function wf(){return F.lFrame.bindingIndex}function J0(e){return F.lFrame.bindingIndex=e}function Pr(){return F.lFrame.bindingIndex++}function qi(e){let t=F.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function X0(){return F.lFrame.inI18n}function eM(e,t){let n=F.lFrame;n.bindingIndex=n.bindingRootIndex=e,ld(t)}function tM(){return F.lFrame.currentDirectiveIndex}function ld(e){F.lFrame.currentDirectiveIndex=e}function nM(e){let t=F.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Nv(){return F.lFrame.currentQueryIndex}function Cf(e){F.lFrame.currentQueryIndex=e}function rM(e){let t=e[O];return t.type===2?t.declTNode:t.type===1?e[et]:null}function Rv(e,t,n){if(n&j.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&j.Host);)if(o=rM(i),o===null||(i=i[To],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=F.lFrame=Ov();return r.currentTNode=t,r.lView=e,!0}function bf(e){let t=Ov(),n=e[O];F.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Ov(){let e=F.lFrame,t=e===null?null:e.child;return t===null?Pv(e):t}function Pv(e){let 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 e!==null&&(e.child=t),t}function Fv(){let e=F.lFrame;return F.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Lv=Fv;function Ef(){let e=Fv();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 oM(e){return(F.lFrame.contextLView=z0(e,F.lFrame.contextLView))[Oe]}function pt(){return F.lFrame.selectedIndex}function Tr(e){F.lFrame.selectedIndex=e}function Zi(){let e=F.lFrame;return mf(e.tView,e.selectedIndex)}function h5(){F.lFrame.currentNamespace=Dv}function p5(){F.lFrame.currentNamespace=wv}function iM(){return F.lFrame.currentNamespace}var kv=!0;function xu(){return kv}function _u(e){kv=e}function sM(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=mv(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Mu(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[u]<0&&(e[lo]+=65536),(a>14>16&&(e[R]&3)===t&&(e[R]+=16384,um(a,i)):um(a,i)}var go=-1,Ar=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function uM(e){return e instanceof Ar}function cM(e){return(e.flags&8)!==0}function lM(e){return(e.flags&16)!==0}var Hl={},dd=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=mu(r);let o=this.injector.get(t,Hl,r);return o!==Hl||n===Hl?o:this.parentInjector.get(t,n,r)}};function Vv(e){return e!==go}function Ya(e){return e&32767}function dM(e){return e>>16}function Qa(e,t){let n=dM(e),r=t;for(;n>0;)r=r[To],n--;return r}var fd=!0;function Ja(e){let t=fd;return fd=e,t}var fM=256,Uv=fM-1,Bv=5,hM=0,Vt={};function pM(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ri)&&(r=n[Ri]),r==null&&(r=n[Ri]=hM++);let o=r&Uv,i=1<>Bv)]|=i}function Xa(e,t){let n=$v(e,t);if(n!==-1)return n;let r=t[O];r.firstCreatePass&&(e.injectorIndex=t.length,zl(r.data,e),zl(t,null),zl(r.blueprint,null));let o=If(e,t),i=e.injectorIndex;if(Vv(o)){let s=Ya(o),a=Qa(o,t),u=a[O].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|u[s+c]}return t[i+8]=o,i}function zl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function $v(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function If(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=qv(o),r===null)return go;if(n++,o=o[To],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return go}function hd(e,t,n){pM(e,t,n)}function gM(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o>20,d=r?a:a+l,h=o?a+l:c;for(let f=d;f=u&&p.type===n)return f}if(o){let f=s[u];if(f&&$n(f)&&f.type===n)return u}return null}function Nr(e,t,n,r){let o=e[n],i=t.data;if(uM(o)){let s=o;s.resolving&&Y_(K_(i[n]));let a=Ja(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?qe(s.injectImpl):null,l=Rv(e,r,j.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&sM(n,i[n],t)}finally{c!==null&&qe(c),Ja(a),s.resolving=!1,Lv()}}return o}function vM(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Ri)?e[Ri]:void 0;return typeof t=="number"?t>=0?t&Uv:yM:t}function cm(e,t,n){let r=1<>Bv)]&r)}function lm(e,t){return!(e&j.Self)&&!(e&j.Host&&t)}var Ir=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Gv(this._tNode,this._lView,t,mu(r),n)}};function yM(){return new Ir(Fe(),M())}function Le(e){return Hi(()=>{let t=e.prototype.constructor,n=t[Ha]||pd(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Ha]||pd(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function pd(e){return Vm(e)?()=>{let t=pd(Re(e));return t&&t()}:xr(e)}function DM(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[R]&2048&&!(s[R]&512);){let a=Wv(i,s,n,r|j.Self,Vt);if(a!==Vt)return a;let u=i.parent;if(!u){let c=s[hv];if(c){let l=c.get(n,Vt,r);if(l!==Vt)return l}u=qv(s),s=s[To]}i=u}return o}function qv(e){let t=e[O],n=t.type;return n===2?t.declTNode:n===1?e[et]:null}function xf(e){return gM(Fe(),e)}function dm(e,t=null,n=null,r){let o=Zv(e,t,n,r);return o.resolveInjectorInitializers(),o}function Zv(e,t=null,n=null,r,o=new Set){let i=[n||Ke,M0(e)];return r=r||(typeof e=="object"?void 0:Ye(e)),new Li(i,t||Du(),r||null,o)}var ft=class e{static{this.THROW_IF_NOT_FOUND=Pi}static{this.NULL=new Wa}static create(t,n){if(Array.isArray(t))return dm({name:""},n,t,"");{let r=t.name??"";return dm({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=C({token:e,providedIn:"any",factory:()=>x(Km)})}static{this.__NG_ELEMENT_ID__=-1}};var wM=new E("");wM.__NG_ELEMENT_ID__=e=>{let t=Fe();if(t===null)throw new b(204,!1);if(t.type&2)return t.value;if(e&j.Optional)return null;throw new b(204,!1)};var CM="ngOriginalError";function Gl(e){return e[CM]}var Kv=!0,_f=(()=>{class e{static{this.__NG_ELEMENT_ID__=bM}static{this.__NG_ENV_ID__=n=>n}}return e})(),gd=class extends _f{constructor(t){super(),this._lView=t}onDestroy(t){return Iv(this._lView,t),()=>G0(this._lView,t)}};function bM(){return new gd(M())}var Kn=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ae(!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)}static{this.\u0275prov=C({token:e,providedIn:"root",factory:()=>new e})}}return e})();var md=class extends ae{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,dv()&&(this.destroyRef=v(_f,{optional:!0})??void 0,this.pendingTasks=v(Kn,{optional:!0})??void 0)}emit(t){let n=B(null);try{super.next(t)}finally{B(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let u=t;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 t instanceof se&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},H=md;function eu(...e){}function Yv(e){let t,n;function r(){e=eu;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function fm(e){return queueMicrotask(()=>e()),()=>{e=eu}}var Mf="isAngularZone",tu=Mf+"_ID",EM=0,ge=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new H(!1),this.onMicrotaskEmpty=new H(!1),this.onStable=new H(!1),this.onError=new H(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Kv}=t;if(typeof Zone>"u")throw new b(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,_M(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Mf)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new b(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,IM,eu,eu);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},IM={};function Sf(e){if(e._nesting==0&&!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 xM(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Yv(()=>{e.callbackScheduled=!1,vd(e),e.isCheckStableRunning=!0,Sf(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),vd(e)}function _M(e){let t=()=>{xM(e)},n=EM++;e._inner=e._inner.fork({name:"angular",properties:{[Mf]:!0,[tu]:n,[tu+n]:!0},onInvokeTask:(r,o,i,s,a,u)=>{if(MM(u))return r.invokeTask(i,s,a,u);try{return hm(e),r.invokeTask(i,s,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),pm(e)}},onInvoke:(r,o,i,s,a,u,c)=>{try{return hm(e),r.invoke(i,s,a,u,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!SM(u)&&t(),pm(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,vd(e),Sf(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function vd(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function hm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function pm(e){e._nesting--,Sf(e)}var yd=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new H,this.onMicrotaskEmpty=new H,this.onStable=new H,this.onError=new H}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function MM(e){return Qv(e,"__ignore_ng_zone__")}function SM(e){return Qv(e,"__scheduler_tick__")}function Qv(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var cn=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Gl(t);for(;n&&Gl(n);)n=Gl(n);return n||null}},TM=new E("",{providedIn:"root",factory:()=>{let e=v(ge),t=v(cn);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function AM(){return Ao(Fe(),M())}function Ao(e,t){return new Me(ht(e,t))}var Me=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=AM}}return e})();function NM(e){return e instanceof Me?e.nativeElement:e}function RM(){return this._results[Symbol.iterator]()}var Dd=class e{get changes(){return this._changes??=new H}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;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=RM)}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;let r=a0(t);(this._changesDetected=!s0(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function Jv(e){return(e.flags&128)===128}var Xv=new Map,OM=0;function PM(){return OM++}function FM(e){Xv.set(e[wu],e)}function wd(e){Xv.delete(e[wu])}var gm="__ngContext__";function zn(e,t){Vn(t)?(e[gm]=t[wu],FM(t)):e[gm]=t}function ey(e){return ny(e[ki])}function ty(e){return ny(e[Mt])}function ny(e){for(;e!==null&&!fn(e);)e=e[Mt];return e}var Cd;function ry(e){Cd=e}function LM(){if(Cd!==void 0)return Cd;if(typeof document<"u")return document;throw new b(210,!1)}var Tf=new E("",{providedIn:"root",factory:()=>kM}),kM="ng",Af=new E(""),Wt=new E("",{providedIn:"platform",factory:()=>"unknown"});var g5=new E(""),Nf=new E("",{providedIn:"root",factory:()=>LM().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var jM="h",VM="b";var UM=()=>null;function Rf(e,t,n=!1){return UM(e,t,n)}var oy=!1,BM=new E("",{providedIn:"root",factory:()=>oy});var Na;function $M(){if(Na===void 0&&(Na=null,sn.trustedTypes))try{Na=sn.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Na}function Su(e){return $M()?.createHTML(e)||e}var Ra;function HM(){if(Ra===void 0&&(Ra=null,sn.trustedTypes))try{Ra=sn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Ra}function mm(e){return HM()?.createScriptURL(e)||e}var ln=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${km})`}},bd=class extends ln{getTypeName(){return"HTML"}},Ed=class extends ln{getTypeName(){return"Style"}},Id=class extends ln{getTypeName(){return"Script"}},xd=class extends ln{getTypeName(){return"URL"}},_d=class extends ln{getTypeName(){return"ResourceURL"}};function Tt(e){return e instanceof ln?e.changingThisBreaksApplicationSecurity:e}function Yn(e,t){let n=zM(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${km})`)}return n===t}function zM(e){return e instanceof ln&&e.getTypeName()||null}function iy(e){return new bd(e)}function sy(e){return new Ed(e)}function ay(e){return new Id(e)}function uy(e){return new xd(e)}function cy(e){return new _d(e)}function GM(e){let t=new Sd(e);return WM()?new Md(t):t}var Md=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(Su(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},Sd=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=Su(t),n}};function WM(){try{return!!new window.DOMParser().parseFromString(Su(""),"text/html")}catch{return!1}}var qM=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Tu(e){return e=String(e),e.match(qM)?e:"unsafe:"+e}function hn(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Ki(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var ly=hn("area,br,col,hr,img,wbr"),dy=hn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),fy=hn("rp,rt"),ZM=Ki(fy,dy),KM=Ki(dy,hn("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")),YM=Ki(fy,hn("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")),vm=Ki(ly,KM,YM,ZM),hy=hn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),QM=hn("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"),JM=hn("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"),XM=Ki(hy,QM,JM),eS=hn("script,style,template"),Td=class{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=rS(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=nS(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=ym(t).toLowerCase();if(!vm.hasOwnProperty(n))return this.sanitizedSomething=!0,!eS.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o"),!0}endElement(t){let n=ym(t).toLowerCase();vm.hasOwnProperty(n)&&!ly.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Dm(t))}};function tS(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function nS(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw py(t);return t}function rS(e){let t=e.firstChild;if(t&&tS(e,t))throw py(t);return t}function ym(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function py(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var oS=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,iS=/([^\#-~ |!])/g;function Dm(e){return e.replace(/&/g,"&").replace(oS,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(iS,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var Oa;function gy(e,t){let n=null;try{Oa=Oa||GM(e);let r=t?String(t):"";n=Oa.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Oa.getInertBodyElement(r)}while(r!==i);let a=new Td().sanitizeChildren(wm(n)||n);return Su(a)}finally{if(n){let r=wm(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function wm(e){return"content"in e&&sS(e)?e.content:null}function sS(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var qt=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}(qt||{});function aS(e){let t=vy();return t?t.sanitize(qt.URL,e)||"":Yn(e,"URL")?Tt(e):Tu(Ze(e))}function uS(e){let t=vy();if(t)return mm(t.sanitize(qt.RESOURCE_URL,e)||"");if(Yn(e,"ResourceURL"))return mm(Tt(e));throw new b(904,!1)}function cS(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?uS:aS}function my(e,t,n){return cS(t,n)(e)}function vy(){let e=M();return e&&e[Bt].sanitizer}var lS=/^>|^->||--!>|)/g,fS="\u200B$1\u200B";function hS(e){return e.replace(lS,t=>t.replace(dS,fS))}function yy(e){return e instanceof Function?e():e}function Dy(e){return(e??v(ft)).get(Wt)==="browser"}var Ht=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Ht||{}),pS;function Of(e,t){return pS(e,t)}function fo(e,t,n,r,o){if(r!=null){let i,s=!1;fn(r)?i=r:Vn(r)&&(s=!0,r=r[dn]);let a=$t(r);e===0&&n!==null?o==null?Iy(t,n,a):nu(t,n,a,o||null,!0):e===1&&n!==null?nu(t,n,a,o||null,!0):e===2?SS(t,a,s):e===3&&t.destroyNode(a),i!=null&&AS(t,e,i,n,o)}}function gS(e,t){return e.createText(t)}function mS(e,t,n){e.setValue(t,n)}function vS(e,t){return e.createComment(hS(t))}function wy(e,t,n){return e.createElement(t,n)}function yS(e,t){Cy(e,t),t[dn]=null,t[et]=null}function DS(e,t,n,r,o,i){r[dn]=o,r[et]=t,Ru(e,r,n,1,o,i)}function Cy(e,t){t[Bt].changeDetectionScheduler?.notify(9),Ru(e,t,t[ue],2,null,null)}function wS(e){let t=e[ki];if(!t)return Wl(e[O],e);for(;t;){let n=null;if(Vn(t))n=t[ki];else{let r=t[Ve];r&&(n=r)}if(!n){for(;t&&!t[Mt]&&t!==e;)Vn(t)&&Wl(t[O],t),t=t[Ue];t===null&&(t=e),Vn(t)&&Wl(t[O],t),n=t&&t[Mt]}t=n}}function CS(e,t,n,r){let o=Ve+r,i=n.length;r>0&&(n[o-1][Mt]=t),r0&&(e[n-1][Mt]=r[Mt]);let i=Ga(e,Ve+t);yS(r[O],r);let s=i[un];s!==null&&s.detachView(i[O]),r[Ue]=null,r[Mt]=null,r[R]&=-129}return r}function Au(e,t){if(!(t[R]&256)){let n=t[ue];n.destroyNode&&Ru(e,t,n,3,null,null),wS(t)}}function Wl(e,t){if(t[R]&256)return;let n=B(null);try{t[R]&=-129,t[R]|=256,t[dt]&&wl(t[dt]),ES(e,t),bS(e,t),t[O].type===1&&t[ue].destroy();let r=t[_r];if(r!==null&&fn(t[Ue])){r!==t[Ue]&&Pf(r,t);let o=t[un];o!==null&&o.detachView(e)}wd(t)}finally{B(n)}}function bS(e,t){let n=e.cleanup,r=t[qa];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[qa]=null);let o=t[jn];if(o!==null){t[jn]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===Ut.None||i===Ut.Emulated)return null}return ht(r,n)}}function nu(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Iy(e,t,n){e.appendChild(t,n)}function Cm(e,t,n,r,o){r!==null?nu(e,t,n,r,o):Iy(e,t,n)}function xy(e,t){return e.parentNode(t)}function xS(e,t){return e.nextSibling(t)}function _y(e,t,n){return MS(e,t,n)}function _S(e,t,n){return e.type&40?ht(e,n):null}var MS=_S,bm;function Nu(e,t,n,r){let o=Ey(e,r,t),i=t[ue],s=r.parent||t[et],a=_y(s,r,t);if(o!=null)if(Array.isArray(n))for(let u=0;ume&&Ny(e,t,me,!1),jt(s?2:0,o),n(r,o)}finally{Tr(i),jt(s?3:1,o)}}function Lf(e,t,n){if(gf(t)){let r=B(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function US(e,t,n,r){let o=Uy(t);o.push(n),e.firstCreatePass&&By(e).push(r,o.length-1)}function BS(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Mv()&&(a|=128),{type:n,index:r,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:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Em(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,u=Un.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]}e===0?Im(r,n,c,a,u):Im(r,n,c,a)}return r}function Im(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function $S(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],u=null,c=null;for(let l=r;l0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function qS(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;Cu(n)&&eT(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Xa(n,t),zn(r,t);let s=n.initialInputs;for(let a=o;a{Iu(e.lView)},consumerOnSignalRead(){this.lView[dt]=this}});function hT(e){let t=e[dt]??Object.create(pT);return t.lView=e,t}var pT=U(y({},Ei),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Sr(e.lView);for(;t&&!Wy(t[O]);)t=Sr(t);t&&Ev(t)},consumerOnSignalRead(){this.lView[dt]=this}});function Wy(e){return e.type!==2}var gT=100;function qy(e,t=!0,n=0){let r=e[Bt],o=r.rendererFactory,i=!1;i||o.begin?.();try{mT(e,n)}catch(s){throw t&&$y(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function mT(e,t){let n=Av();try{am(!0),Od(e,t);let r=0;for(;Eu(e);){if(r===gT)throw new b(103,!1);r++,Od(e,1)}}finally{am(n)}}function vT(e,t,n,r){let o=t[R];if((o&256)===256)return;let i=!1,s=!1;!i&&t[Bt].inlineEffectRunner?.flush(),bf(t);let a=!0,u=null,c=null;i||(Wy(e)?(c=cT(t),u=Qs(c)):rg()===null?(a=!1,c=hT(t),u=Qs(c)):t[dt]&&(wl(t[dt]),t[dt]=null));try{bv(t),J0(e.bindingStartIndex),n!==null&&Py(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&ja(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Va(t,f,0,null),$l(t,0)}if(s||yT(t),Zy(t,0),e.contentQueries!==null&&Vy(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&ja(t,f)}else{let f=e.contentHooks;f!==null&&Va(t,f,1),$l(t,1)}PS(e,t);let d=e.components;d!==null&&Yy(t,d,0);let h=e.viewQuery;if(h!==null&&Rd(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&ja(t,f)}else{let f=e.viewHooks;f!==null&&Va(t,f,2),$l(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Bl]){for(let f of t[Bl])f();t[Bl]=null}i||(t[R]&=-73)}catch(l){throw i||Iu(t),l}finally{c!==null&&(yl(c,u),a&&dT(c)),Ef()}}function Zy(e,t){for(let n=ey(e);n!==null;n=ty(n))for(let r=Ve;r-1&&(ji(t,r),Ga(n,r))}this._attachedToViewContainer=!1}Au(this._lView[O],this._lView)}onDestroy(t){Iv(this._lView,t)}markForCheck(){Hf(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[R]&=-129}reattach(){cd(this._lView),this._lView[R]|=128}detectChanges(){this._lView[R]|=1024,qy(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=ad(this._lView),n=this._lView[_r];n!==null&&!t&&Pf(n,this._lView),Cy(this._lView[O],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=t;let n=ad(this._lView),r=this._lView[_r];r!==null&&!n&&by(r,this._lView),cd(this._lView)}},Vi=(()=>{class e{static{this.__NG_ELEMENT_ID__=bT}}return e})(),wT=Vi,CT=class extends wT{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){let o=Yi(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Rr(o)}};function bT(){return ku(Fe(),M())}function ku(e,t){return e.type&4?new CT(t,e,Ao(e,t)):null}var y5=new RegExp(`^(\\d+)*(${VM}|${jM})*(.*)`);var ET=()=>null;function bo(e,t){return ET(e,t)}var Eo=class{},zf=new E("",{providedIn:"root",factory:()=>!1});var Qy=new E(""),Jy=new E(""),Pd=class{},ou=class{};function IT(e){let t=Error(`No component factory found for ${Ye(e)}.`);return t[xT]=e,t}var xT="ngComponent";var Fd=class{resolveComponentFactory(t){throw IT(t)}},Io=class{static{this.NULL=new Fd}},xo=class{},ot=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>_T()}}return e})();function _T(){let e=M(),t=Fe(),n=Wn(t.index,e);return(Vn(n)?n:e)[ue]}var MT=(()=>{class e{static{this.\u0275prov=C({token:e,providedIn:"root",factory:()=>null})}}return e})();function iu(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Ty(e,n,i.join(" "))}}function PT(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static{this.__NG_ELEMENT_ID__=LT}}return e})();function LT(){let e=Fe();return eD(e,M())}var kT=Lr,Xy=class extends kT{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Ao(this._hostTNode,this._hostLView)}get injector(){return new Ir(this._hostTNode,this._hostLView)}get parentInjector(){let t=If(this._hostTNode,this._hostLView);if(Vv(t)){let n=Qa(t,this._hostLView),r=Ya(t),o=n[O].data[r+8];return new Ir(o,n)}else return new Ir(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=_m(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Ve}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=bo(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Co(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!j0(t),a;if(s)a=n;else{let p=n||{};a=p.index,r=p.injector,o=p.projectableNodes,i=p.environmentInjector||p.ngModuleRef}let u=s?t:new _o(Bn(t)),c=r||this.parentInjector;if(!i&&u.ngModule==null){let g=(s?c:this.parentInjector).get(Qe,null);g&&(i=g)}let l=Bn(u.componentType??{}),d=bo(this._lContainer,l?.id??null),h=d?.firstChild??null,f=u.create(c,o,h,i);return this.insertImpl(f.hostView,a,Co(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(H0(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let u=o[Ue],c=new Xy(u,u[et],u[Ue]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Qi(s,o,i,r),t.attachToViewContainerRef(),Zm(ql(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=_m(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=ji(this._lContainer,n);r&&(Ga(ql(this._lContainer),n),Au(r[O],r))}detach(t){let n=this._adjustIndex(t,-1),r=ji(this._lContainer,n);return r&&Ga(ql(this._lContainer),n)!=null?new Rr(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function _m(e){return e[Za]}function ql(e){return e[Za]||(e[Za]=[])}function eD(e,t){let n,r=t[e.index];return fn(r)?n=r:(n=jy(r,t,null,e),t[e.index]=n,Fu(t,n)),VT(n,t,e,r),new Xy(n,e,t)}function jT(e,t){let n=e[ue],r=n.createComment(""),o=ht(t,e),i=xy(n,o);return nu(n,i,r,xS(n,o),!1),r}var VT=$T,UT=()=>!1;function BT(e,t,n){return UT(e,t,n)}function $T(e,t,n,r){if(e[Mr])return;let o;n.type&8?o=$t(r):o=jT(t,n),e[Mr]=o}var kd=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},jd=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let c=i[a+1],l=t[-u];for(let d=Ve;dt.trim())}function rD(e,t,n){e.queries===null&&(e.queries=new Vd),e.queries.track(new Ud(t,n))}function QT(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function Gf(e,t){return e.queries.getByIndex(t)}function JT(e,t){let n=e[O],r=Gf(n,t);return r.crossesNgTemplate?Bd(n,e,t,[]):tD(n,e,r,t)}var Mm=new Set;function Zt(e){Mm.has(e)||(Mm.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function XT(e){return typeof e=="function"&&e[Xt]!==void 0}function No(e,t){Zt("NgSignals");let n=pg(e),r=n[Xt];return t?.equal&&(r.equal=t.equal),n.set=o=>Cl(r,o),n.update=o=>gg(r,o),n.asReadonly=eA.bind(n),n}function eA(){let e=this[Xt];if(e.readonlyFn===void 0){let t=()=>this();t[Xt]=e,e.readonlyFn=t}return e.readonlyFn}function oD(e){return XT(e)&&typeof e.set=="function"}function tA(e){return Object.getPrototypeOf(e.prototype).constructor}function xe(e){let t=tA(e.type),n=!0,r=[e];for(;t;){let o;if($n(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new b(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=Pa(e.inputs),s.inputTransforms=Pa(e.inputTransforms),s.declaredInputs=Pa(e.declaredInputs),s.outputs=Pa(e.outputs);let a=o.hostBindings;a&&sA(e,a);let u=o.viewQuery,c=o.contentQueries;if(u&&oA(e,u),c&&iA(e,c),nA(e,o),B_(e.outputs,o.outputs),$n(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Fi(o.hostAttrs,n=Fi(n,o.hostAttrs))}}function Pa(e){return e===an?{}:e===Ke?[]:e}function oA(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function iA(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function sA(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function w5(e){let t=n=>{let r=(Array.isArray(e)?e:e()).map(o=>typeof o=="function"?{directive:Re(o),inputs:an,outputs:an}:{directive:Re(o.directive),inputs:Sm(o.inputs),outputs:Sm(o.outputs)});n.hostDirectives===null?(n.findHostDirectiveDefs=iD,n.hostDirectives=r):n.hostDirectives.unshift(...r)};return t.ngInherit=!0,t}function iD(e,t,n){if(e.hostDirectives!==null)for(let r of e.hostDirectives){let o=hf(r.directive);aA(o.declaredInputs,r.inputs),iD(o,t,n),n.set(o,r),t.push(o)}}function Sm(e){if(e===void 0||e.length===0)return an;let t={};for(let n=0;nn()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Hd=class extends Ui{constructor(t){super(),this.moduleType=t}create(t){return new $d(this.moduleType,t,[])}};var uu=class extends Gn{constructor(t){super(),this.componentFactoryResolver=new su(this),this.instance=null;let n=new Li([...t.providers,{provide:Gn,useValue:this},{provide:Io,useValue:this.componentFactoryResolver}],t.parent||Du(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function qf(e,t,n=null){return new uu({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}function sD(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Ji(e,t,n){return e[t]=n}function uA(e,t){return e[t]}function Xe(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Bi(e,t,n,r){let o=Xe(e,t,n);return Xe(e,t+1,r)||o}function aD(e,t,n,r,o){let i=Bi(e,t,n,r);return Xe(e,t+2,o)||i}function uD(e,t,n,r,o,i){let s=Bi(e,t,n,r);return Bi(e,t+2,o,i)||s}function cA(e){return(e.flags&32)===32}function lA(e,t,n,r,o,i,s,a,u){let c=t.consts,l=Fr(t,e,4,s||null,a||null);Uf(t,n,l,Hn(c,u)),Mu(t,l);let d=l.tView=Vf(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,l),d.queries=t.queries.embeddedTView(l)),l}function cu(e,t,n,r,o,i,s,a,u,c){let l=n+me,d=t.firstCreatePass?lA(l,t,e,r,o,i,s,a,u):t.data[l];qn(d,!1);let h=fA(t,e,d,n);xu()&&Nu(t,e,h,d),zn(h,e);let f=jy(h,e,h,d);return e[l]=f,Fu(e,f),BT(f,d,e),bu(d)&&kf(t,e,d),u!=null&&jf(e,d,c),d}function dA(e,t,n,r,o,i,s,a){let u=M(),c=ne(),l=Hn(c.consts,i);return cu(u,c,e,t,n,r,o,l,s,a),dA}var fA=hA;function hA(e,t,n,r){return _u(!0),t[ue].createComment("")}var ho=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(ho||{}),cD=(()=>{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=C({token:e,providedIn:"root",factory:()=>new e})}}return e})(),zd=class e{constructor(){this.ngZone=v(ge),this.scheduler=v(Eo),this.errorHandler=v(cn,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[ho.EarlyRead,ho.Write,ho.MixedReadWrite,ho.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=C({token:e,providedIn:"root",factory:()=>new e})}},Gd=class{constructor(t,n,r,o){this.impl=t,this.hooks=n,this.once=r,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function pA(e,t){!t?.injector&&fv(pA);let n=t?.injector??v(ft);return Dy(n)?(Zt("NgAfterRender"),dD(e,n,t,!1)):fD}function lD(e,t){!t?.injector&&fv(lD);let n=t?.injector??v(ft);return Dy(n)?(Zt("NgAfterNextRender"),dD(e,n,t,!0)):fD}function gA(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function dD(e,t,n,r){let o=t.get(cD);o.impl??=t.get(zd);let i=n?.phase??ho.MixedReadWrite,s=n?.manualCleanup!==!0?t.get(_f):null,a=new Gd(o.impl,gA(e,i),r,s);return o.impl.register(a),a}var fD={destroy(){}};function kr(e,t,n,r){let o=M(),i=Pr();if(Xe(o,i,t)){let s=ne(),a=Zi();tT(a,o,e,t,n,r)}return kr}function Zf(e,t,n,r){return Xe(e,Pr(),n)?t+Ze(n)+r:Se}function mA(e,t,n,r,o,i){let s=wf(),a=Bi(e,s,n,o);return qi(2),a?t+Ze(n)+r+Ze(o)+i:Se}function vA(e,t,n,r,o,i,s,a){let u=wf(),c=aD(e,u,n,o,s);return qi(3),c?t+Ze(n)+r+Ze(o)+i+Ze(s)+a:Se}function yA(e,t,n,r,o,i,s,a,u,c,l,d){let h=wf(),f=uD(e,h,n,o,s,u);return f=Xe(e,h+4,l)||f,qi(5),f?t+Ze(n)+r+Ze(o)+i+Ze(s)+a+Ze(u)+c+Ze(l)+d:Se}function Fa(e,t){return e<<17|t<<2}function Or(e){return e>>17&32767}function DA(e){return(e&2)==2}function wA(e,t){return e&131071|t<<17}function Wd(e){return e|2}function Mo(e){return(e&131068)>>2}function Zl(e,t){return e&-131069|t<<2}function CA(e){return(e&1)===1}function qd(e){return e|1}function bA(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Or(s),u=Mo(s);e[r]=n;let c=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||zi(d,l)>0)&&(c=!0)}else l=n;if(o)if(u!==0){let h=Or(e[a+1]);e[r+1]=Fa(h,a),h!==0&&(e[h+1]=Zl(e[h+1],r)),e[a+1]=wA(e[a+1],r)}else e[r+1]=Fa(a,0),a!==0&&(e[a+1]=Zl(e[a+1],r)),a=r;else e[r+1]=Fa(u,0),a===0?a=r:e[u+1]=Zl(e[u+1],r),u=r;c&&(e[r+1]=Wd(e[r+1])),Tm(e,l,r,!0),Tm(e,l,r,!1),EA(t,l,e,r,i),s=Fa(a,u),i?t.classBindings=s:t.styleBindings=s}function EA(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&zi(i,t)>=0&&(n[r+1]=qd(n[r+1]))}function Tm(e,t,n,r){let o=e[n+1],i=t===null,s=r?Or(o):Mo(o),a=!1;for(;s!==0&&(a===!1||i);){let u=e[s],c=e[s+1];IA(u,t)&&(a=!0,e[s+1]=r?qd(c):Wd(c)),s=r?Or(c):Mo(c)}a&&(e[n+1]=r?Wd(o):qd(o))}function IA(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?zi(e,t)>=0:!1}var _t={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function xA(e){return e.substring(_t.key,_t.keyEnd)}function _A(e){return MA(e),hD(e,pD(e,0,_t.textEnd))}function hD(e,t){let n=_t.textEnd;return n===t?-1:(t=_t.keyEnd=SA(e,_t.key=t,n),pD(e,t,n))}function MA(e){_t.key=0,_t.keyEnd=0,_t.value=0,_t.valueEnd=0,_t.textEnd=e.length}function pD(e,t,n){for(;t32;)t++;return t}function TA(e,t,n){let r=M(),o=Pr();if(Xe(r,o,t)){let i=ne(),s=Zi();Pu(i,s,r,e,t,r[ue],n,!1)}return TA}function Zd(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";Bf(e,n,i[s],s,r)}function ju(e,t){return AA(e,t,null,!0),ju}function C5(e){mD(LA,gD,e,!0)}function gD(e,t){for(let n=_A(t);n>=0;n=hD(t,n))vu(e,xA(t),!0)}function AA(e,t,n,r){let o=M(),i=ne(),s=qi(2);if(i.firstUpdatePass&&yD(i,e,s,r),t!==Se&&Xe(o,s,t)){let a=i.data[pt()];DD(i,a,o,o[ue],e,o[s+1]=jA(t,n),r,s)}}function mD(e,t,n,r){let o=ne(),i=qi(2);o.firstUpdatePass&&yD(o,null,i,r);let s=M();if(n!==Se&&Xe(s,i,n)){let a=o.data[pt()];if(wD(a,r)&&!vD(o,i)){let u=r?a.classesWithoutHost:a.stylesWithoutHost;u!==null&&(n=Xl(u,n||"")),Zd(o,a,s,n,r)}else kA(o,a,s,s[ue],s[i+1],s[i+1]=FA(e,t,n),r,i)}}function vD(e,t){return t>=e.expandoStartIndex}function yD(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[pt()],s=vD(e,n);wD(i,r)&&t===null&&!s&&(t=!1),t=NA(o,i,t,r),bA(o,i,t,n,s,r)}}function NA(e,t,n,r){let o=nM(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Kl(null,e,t,n,r),n=$i(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Kl(o,e,t,n,r),i===null){let u=RA(e,t,r);u!==void 0&&Array.isArray(u)&&(u=Kl(null,e,t,u[1],r),u=$i(u,t.attrs,r),OA(e,t,r,u))}else i=PA(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function RA(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Mo(r)!==0)return e[Or(r)]}function OA(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Or(o)]=r}function PA(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let u=e[o],c=Array.isArray(u),l=c?u[1]:u,d=l===null,h=n[o+1];h===Se&&(h=d?Ke:void 0);let f=d?Vl(h,r):l===r?h:void 0;if(c&&!lu(f)&&(f=Vl(u,r)),lu(f)&&(a=f,s))return a;let p=e[o+1];o=s?Or(p):Mo(p)}if(t!==null){let u=i?t.residualClasses:t.residualStyles;u!=null&&(a=Vl(u,r))}return a}function lu(e){return e!==void 0}function jA(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Ye(Tt(e)))),e}function wD(e,t){return(e.flags&(t?8:16))!==0}function b5(e,t,n){let r=M(),o=Zf(r,e,t,n);mD(vu,gD,o,!0)}function E5(){return M()[Je][Oe]}var Kd=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Yl(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function VA(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let u=t.length-1;for(;i<=s&&i<=u;){let c=e.at(i),l=t[i],d=Yl(i,c,i,l,n);if(d!==0){d<0&&e.updateValue(i,l),i++;continue}let h=e.at(s),f=t[u],p=Yl(s,h,u,f,n);if(p!==0){p<0&&e.updateValue(s,f),s--,u--;continue}let g=n(i,c),m=n(s,h),D=n(i,l);if(Object.is(D,m)){let A=n(u,f);Object.is(A,g)?(e.swap(i,s),e.updateValue(s,f),u--,s--):e.move(s,i),e.updateValue(i,l),i++;continue}if(r??=new du,o??=Rm(e,i,s,n),Yd(e,r,i,D))e.updateValue(i,l),i++,s++;else if(o.has(D))r.set(g,e.detach(i)),s--;else{let A=e.create(i,t[i]);e.attach(i,A),i++,s++}}for(;i<=u;)Nm(e,r,n,i,t[i]),i++}else if(t!=null){let u=t[Symbol.iterator](),c=u.next();for(;!c.done&&i<=s;){let l=e.at(i),d=c.value,h=Yl(i,l,i,d,n);if(h!==0)h<0&&e.updateValue(i,d),i++,c=u.next();else{r??=new du,o??=Rm(e,i,s,n);let f=n(i,d);if(Yd(e,r,i,f))e.updateValue(i,d),i++,s++,c=u.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,c=u.next();else{let p=n(i,l);r.set(p,e.detach(i)),s--}}}for(;!c.done;)Nm(e,r,n,e.length,c.value),c=u.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(u=>{e.destroy(u)})}function Yd(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Nm(e,t,n,r,o){if(Yd(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Rm(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var du=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&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);this._vMap===void 0&&(this._vMap=new Map);let 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),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function I5(e,t){Zt("NgControlFlow");let n=M(),r=Pr(),o=n[r]!==Se?n[r]:-1,i=o!==-1?fu(n,me+o):void 0,s=0;if(Xe(n,r,e)){let a=B(null);try{if(i!==void 0&&zy(i,s),e!==-1){let u=me+e,c=fu(n,u),l=ef(n[O],u),d=bo(c,l.tView.ssrId),h=Yi(n,l,t,{dehydratedView:d});Qi(c,h,s,Co(l,d))}}finally{B(a)}}else if(i!==void 0){let a=Hy(i,s);a!==void 0&&(a[Oe]=t)}}var Qd=class{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-Ve}};function x5(e){return e}function _5(e,t){return t}var Jd=class{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function M5(e,t,n,r,o,i,s,a,u,c,l,d,h){Zt("NgControlFlow");let f=M(),p=ne(),g=u!==void 0,m=M(),D=a?s.bind(m[Je][Oe]):s,A=new Jd(g,D);m[me+e]=A,cu(f,p,e+1,t,n,r,o,Hn(p.consts,i)),g&&cu(f,p,e+2,u,c,l,d,Hn(p.consts,h))}var Xd=class extends Kd{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Ve}at(t){return this.getLView(t)[Oe].$implicit}attach(t,n){let r=n[yo];this.needsIndexUpdate||=t!==this.length,Qi(this.lContainer,n,t,Co(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,UA(this.lContainer,t)}create(t,n){let r=bo(this.lContainer,this.templateTNode.tView.ssrId),o=Yi(this.hostLView,this.templateTNode,new Qd(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){Au(t[O],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[Oe].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(_u(!0),wy(r,o,iM()));function zA(e,t,n,r,o){let i=t.consts,s=Hn(i,r),a=Fr(t,e,8,"ng-container",s);s!==null&&iu(a,s,!0);let u=Hn(i,o);return Uf(t,n,a,u),t.queries!==null&&t.queries.elementStart(t,a),a}function ED(e,t,n){let r=M(),o=ne(),i=e+me,s=o.firstCreatePass?zA(i,o,r,t,n):o.data[i];qn(s,!0);let a=WA(o,r,s,e);return r[i]=a,xu()&&Nu(o,r,a,s),zn(a,r),bu(s)&&(kf(o,r,s),Lf(o,s,r)),n!=null&&jf(r,s),ED}function ID(){let e=Fe(),t=ne();return yf()?Df():(e=e.parent,qn(e,!1)),t.firstCreatePass&&(Mu(t,e),gf(e)&&t.queries.elementEnd(e)),ID}function GA(e,t,n){return ED(e,t,n),ID(),GA}var WA=(e,t,n,r)=>(_u(!0),vS(t[ue],""));function T5(){return M()}function qA(e,t,n){let r=M(),o=Pr();if(Xe(r,o,t)){let i=ne(),s=Zi();Pu(i,s,r,e,t,r[ue],n,!0)}return qA}var Er=void 0;function ZA(e){let t=e,n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var KA=["en",[["a","p"],["AM","PM"],Er],[["AM","PM"],Er,Er],[["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"]],Er,[["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"]],Er,[["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}",Er,"{1} 'at' {0}",Er],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",ZA],Oi={};function xD(e,t,n){typeof t!="string"&&(n=t,t=e[ce.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Oi[t]=e,n&&(Oi[t][ce.ExtraData]=n)}function it(e){let t=YA(e),n=Om(t);if(n)return n;let r=t.split("-")[0];if(n=Om(r),n)return n;if(r==="en")return KA;throw new b(701,!1)}function Om(e){return e in Oi||(Oi[e]=sn.ng&&sn.ng.common&&sn.ng.common.locales&&sn.ng.common.locales[e]),Oi[e]}var ce=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}(ce||{});function YA(e){return e.toLowerCase().replace(/_/g,"-")}var hu="en-US";var QA=hu;function JA(e){typeof e=="string"&&(QA=e.toLowerCase().replace(/_/g,"-"))}var XA=(e,t,n)=>{};function gt(e,t,n,r){let o=M(),i=ne(),s=Fe();return _D(i,o,o[ue],s,e,t,r),gt}function eN(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;iu?a[u]:null}typeof s=="string"&&(i+=2)}return null}function _D(e,t,n,r,o,i,s){let a=bu(r),c=e.firstCreatePass&&By(e),l=t[Oe],d=Uy(t),h=!0;if(r.type&3||s){let g=ht(r,t),m=s?s(g):g,D=d.length,A=s?ee=>s($t(ee[r.index])):r.index,V=null;if(!s&&a&&(V=eN(e,t,o,r.index)),V!==null){let ee=V.__ngLastListenerFn__||V;ee.__ngNextListenerFn__=i,V.__ngLastListenerFn__=i,h=!1}else{i=Fm(r,t,l,i),XA(g,o,i);let ee=n.listen(m,o,i);d.push(i,ee),c&&c.push(o,A,D,D+1)}}else i=Fm(r,t,l,i);let f=r.outputs,p;if(h&&f!==null&&(p=f[o])){let g=p.length;if(g)for(let m=0;m-1?Wn(e.index,t):t;Hf(s,5);let a=Pm(t,n,r,i),u=o.__ngNextListenerFn__;for(;u;)a=Pm(t,n,u,i)&&a,u=u.__ngNextListenerFn__;return a}}function A5(e=1){return oM(e)}function tN(e,t){let n=null,r=v0(e);for(let o=0;o=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function P5(e){let t=Tv();return Wi(t,me+e)}function F5(e,t=""){let n=M(),r=ne(),o=e+me,i=r.firstCreatePass?Fr(r,o,1,t,null):r.data[o],s=oN(r,n,i,t,e);n[o]=s,xu()&&Nu(r,n,s,i),qn(i,!1)}var oN=(e,t,n,r,o)=>(_u(!0),gS(t[ue],r));function iN(e){return ND("",e,""),iN}function ND(e,t,n){let r=M(),o=Zf(r,e,t,n);return o!==Se&&Lu(r,pt(),o),ND}function sN(e,t,n,r,o){let i=M(),s=mA(i,e,t,n,r,o);return s!==Se&&Lu(i,pt(),s),sN}function aN(e,t,n,r,o,i,s){let a=M(),u=vA(a,e,t,n,r,o,i,s);return u!==Se&&Lu(a,pt(),u),aN}function uN(e,t,n,r,o,i,s,a,u,c,l){let d=M(),h=yA(d,e,t,n,r,o,i,s,a,u,c,l);return h!==Se&&Lu(d,pt(),h),uN}function cN(e,t,n){oD(t)&&(t=t());let r=M(),o=Pr();if(Xe(r,o,t)){let i=ne(),s=Zi();Pu(i,s,r,e,t,r[ue],n,!1)}return cN}function L5(e,t){let n=oD(e);return n&&e.set(t),n}function lN(e,t){let n=M(),r=ne(),o=Fe();return _D(r,n,n[ue],o,e,t),lN}var RD={};function dN(e){let t=ne(),n=M(),r=e+me,o=Fr(t,r,128,null,null);return qn(o,!1),Yf(t,n,r,RD),dN}function k5(e){Zt("NgLet");let t=ne(),n=M(),r=pt();return Yf(t,n,r,e),e}function j5(e){let t=Tv(),n=Wi(t,me+e);if(n===RD)throw new b(314,!1);return n}function fN(e,t,n){let r=ne();if(r.firstCreatePass){let o=$n(e);tf(n,r.data,r.blueprint,o,!0),tf(t,r.data,r.blueprint,o,!1)}}function tf(e,t,n,r,o){if(e=Re(e),Array.isArray(e))for(let i=0;i>20;if(vo(e)||!e.multi){let f=new Ar(c,o,w),p=Jl(u,t,o?l:l+h,d);p===-1?(hd(Xa(a,s),i,u),Ql(i,e,t.length),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[p]=f,s[p]=f)}else{let f=Jl(u,t,l+h,d),p=Jl(u,t,l,l+h),g=f>=0&&n[f],m=p>=0&&n[p];if(o&&!m||!o&&!g){hd(Xa(a,s),i,u);let D=gN(o?pN:hN,n.length,o,r,c);!o&&m&&(n[p].providerFactory=D),Ql(i,e,t.length,0),t.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(D),s.push(D)}else{let D=OD(n[o?p:f],c,!o&&r);Ql(i,e,f>-1?f:p,D)}!o&&r&&m&&n[p].componentProviders++}}}function Ql(e,t,n,r){let o=vo(t),i=N0(t);if(o||i){let u=(i?Re(t.useClass):t).prototype.ngOnDestroy;if(u){let c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=c.indexOf(n);l===-1?c.push(n,[r,u]):c[l+1].push(r,u)}else c.push(n,u)}}}function OD(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Jl(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>fN(r,o?o(e):e,t)}}var mN=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=av(!1,n.type),o=r.length>0?qf([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=C({token:e,providedIn:"environment",factory:()=>new e(x(Qe))})}}return e})();function PD(e){Zt("NgStandalone"),e.getStandaloneInjector=t=>t.get(mN).getOrCreateStandaloneInjector(e)}function V5(e,t,n){let r=Zn()+e,o=M();return o[r]===Se?Ji(o,r,n?t.call(n):t()):uA(o,r)}function U5(e,t,n,r){return FD(M(),Zn(),e,t,n,r)}function B5(e,t,n,r,o){return LD(M(),Zn(),e,t,n,r,o)}function $5(e,t,n,r,o,i){return vN(M(),Zn(),e,t,n,r,o,i)}function H5(e,t,n,r,o,i,s){return kD(M(),Zn(),e,t,n,r,o,i,s)}function Vu(e,t){let n=e[t];return n===Se?void 0:n}function FD(e,t,n,r,o,i){let s=t+n;return Xe(e,s,o)?Ji(e,s+1,i?r.call(i,o):r(o)):Vu(e,s+1)}function LD(e,t,n,r,o,i,s){let a=t+n;return Bi(e,a,o,i)?Ji(e,a+2,s?r.call(s,o,i):r(o,i)):Vu(e,a+2)}function vN(e,t,n,r,o,i,s,a){let u=t+n;return aD(e,u,o,i,s)?Ji(e,u+3,a?r.call(a,o,i,s):r(o,i,s)):Vu(e,u+3)}function kD(e,t,n,r,o,i,s,a,u){let c=t+n;return uD(e,c,o,i,s,a)?Ji(e,c+4,u?r.call(u,o,i,s,a):r(o,i,s,a)):Vu(e,c+4)}function z5(e,t){let n=ne(),r,o=e+me;n.firstCreatePass?(r=yN(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=xr(r.type,!0)),s,a=qe(w);try{let u=Ja(!1),c=i();return Ja(u),Yf(n,M(),o,c),c}finally{qe(a)}}function yN(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function G5(e,t,n){let r=e+me,o=M(),i=Wi(o,r);return Qf(o,r)?FD(o,Zn(),t,i.transform,n,i):i.transform(n)}function W5(e,t,n,r){let o=e+me,i=M(),s=Wi(i,o);return Qf(i,o)?LD(i,Zn(),t,s.transform,n,r,s):s.transform(n,r)}function q5(e,t,n,r,o,i){let s=e+me,a=M(),u=Wi(a,s);return Qf(a,s)?kD(a,Zn(),t,u.transform,n,r,o,i,u):u.transform(n,r,o,i)}function Qf(e,t){return e[O].data[t].pure}function Z5(e,t){return ku(e,t)}var Uu=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var jD=new E("");function Qn(e){return!!e&&typeof e.then=="function"}function Jf(e){return!!e&&typeof e.subscribe=="function"}var VD=new E(""),UD=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=v(VD,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=o();if(Qn(i))n.push(i);else if(Jf(i)){let s=new Promise((a,u)=>{i.subscribe({complete:a,error:u})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Bu=new E("");function DN(){hg(()=>{throw new b(600,!1)})}function wN(e){return e.isBoundToModule}var CN=10;function bN(e,t,n){try{let r=n();return Qn(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Jn=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=v(TM),this.afterRenderManager=v(cD),this.zonelessEnabled=v(zf),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new ae,this.afterTick=new ae,this.componentTypes=[],this.components=[],this.isStable=v(Kn).hasPendingTasks.pipe(N(n=>!n)),this._injector=v(Qe)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let o=n instanceof ou;if(!this._injector.get(UD).done){let h=!o&&rv(n),f=!1;throw new b(405,f)}let s;o?s=n:s=this._injector.get(Io).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=wN(s)?void 0:this._injector.get(Gn),u=r||s.selector,c=s.create(ft.NULL,[],u,a),l=c.location.nativeElement,d=c.injector.get(jD,null);return d?.registerApplication(l),c.onDestroy(()=>{this.detachView(c.hostView),Ba(this.components,c),d?.unregisterApplication(l)}),this._loadComponent(c),c}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new b(101,!1);let n=B(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,B(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(xo,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++Eu(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Ba(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(Bu,[]);[...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),()=>Ba(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new b(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Ba(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function EN(e,t,n,r){if(!n&&!Eu(e))return;qy(e,t,n&&!r?0:1)}var rf=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Xf=(()=>{class e{compileModuleSync(n){return new Hd(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=ov(n),i=yy(o.declarations).reduce((s,a)=>{let u=Bn(a);return u&&s.push(new _o(u)),s},[]);return new rf(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var IN=(()=>{class e{constructor(){this.zone=v(ge),this.changeDetectionScheduler=v(Eo),this.applicationRef=v(Jn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function xN({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new ge(U(y({},_N()),{scheduleInRootZone:n})),[{provide:ge,useFactory:e},{provide:mo,multi:!0,useFactory:()=>{let r=v(IN,{optional:!0});return()=>r.initialize()}},{provide:mo,multi:!0,useFactory:()=>{let r=v(MN);return()=>{r.initialize()}}},t===!0?{provide:Qy,useValue:!0}:[],{provide:Jy,useValue:n??Kv}]}function _N(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var MN=(()=>{class e{constructor(){this.subscription=new se,this.initialized=!1,this.zone=v(ge),this.pendingTasks=v(Kn)}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(()=>{ge.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ge.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var SN=(()=>{class e{constructor(){this.appRef=v(Jn),this.taskService=v(Kn),this.ngZone=v(ge),this.zonelessEnabled=v(zf),this.disableScheduling=v(Qy,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new se,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(tu):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(v(Jy,{optional:!0})??!1),this.cancelScheduledCallback=null,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 yd||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?fm:Yv;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(tu+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,fm(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function TN(){return typeof $localize<"u"&&$localize.locale||hu}var Xi=new E("",{providedIn:"root",factory:()=>v(Xi,j.Optional|j.SkipSelf)||TN()});var of=new E("");function La(e){return!e.moduleRef}function AN(e){let t=La(e)?e.r3Injector:e.moduleRef.injector,n=t.get(ge);return n.run(()=>{La(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(cn,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),La(e)){let i=()=>t.destroy(),s=e.platformInjector.get(of);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(of);s.add(i),e.moduleRef.onDestroy(()=>{Ba(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return bN(r,n,()=>{let i=t.get(UD);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Xi,hu);if(JA(s||hu),La(e)){let a=t.get(Jn);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return NN(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function NN(e,t){let n=e.injector.get(Jn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new b(-403,!1);t.push(e)}var $a=null;function RN(e=[],t){return ft.create({name:t,providers:[{provide:yu,useValue:"platform"},{provide:of,useValue:new Set([()=>$a=null])},...e]})}function ON(e=[]){if($a)return $a;let t=RN(e);return $a=t,DN(),PN(t),t}function PN(e){e.get(Af,null)?.forEach(n=>n())}var At=(()=>{class e{static{this.__NG_ELEMENT_ID__=FN}}return e})();function FN(e){return LN(Fe(),M(),(e&16)===16)}function LN(e,t,n){if(Cu(e)&&!n){let r=Wn(e.index,t);return new Rr(r,r)}else if(e.type&175){let r=t[Je];return new Rr(r,t)}return null}var sf=class{constructor(){}supports(t){return t instanceof Map||sD(t)}create(){return new af}},af=class{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(t){let n;for(n=this._mapHead;n!==null;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;n!==null;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;n!==null;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}diff(t){if(!t)t=new Map;else if(!(t instanceof Map||sD(t)))throw new b(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{let i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;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){let 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)){let o=this._records.get(t);this._maybeAddToChanges(o,n);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let r=new uf(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;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;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){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){this._changesHead===null?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))}},uf=class{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 Lm(){return new eh([new sf])}var eh=(()=>{class e{static{this.\u0275prov=C({token:e,providedIn:"root",factory:Lm})}constructor(n){this.factories=n}static create(n,r){if(r){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Lm()),deps:[[e,new qm,new lf]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r)return r;throw new b(901,!1)}}return e})();function BD(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=ON(r),i=[xN({}),{provide:Eo,useExisting:SN},...n||[]],s=new uu({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return AN({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function Xn(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function kN(e,t=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}function Ro(e,t){Zt("NgSignals");let n=lg(e);return t?.equal&&(n[Xt].equal=t.equal),n}function mt(e){let t=B(null);try{return e()}finally{B(t)}}function K5(e,t){let n=Bn(e),r=t.elementInjector||Du();return new _o(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector)}var qD=null;function yn(){return qD}function ZD(e){qD??=e}var Yu=class{};var Be=new E(""),fh=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>v(VN),providedIn:"platform"})}}return e})();var VN=(()=>{class e extends fh{constructor(){super(),this._doc=v(Be),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return yn().getBaseHref(this._doc)}onPopState(n){let r=yn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=yn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.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,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function hh(e,t){if(e.length==0)return t;if(t.length==0)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,n==2?e+t.substring(1):n==1?e+t:e+"/"+t}function $D(e){let t=e.match(/#|\?|$/),n=t&&t.index||e.length,r=n-(e[n-1]==="/"?1:0);return e.slice(0,r)+e.slice(n)}function gn(e){return e&&e[0]!=="?"?"?"+e:e}var er=(()=>{class e{historyGo(n){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>v(YD),providedIn:"root"})}}return e})(),KD=new E(""),YD=(()=>{class e extends er{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??v(Be).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 hh(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+gn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+gn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+gn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(x(fh),x(KD,8))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),QD=(()=>{class e extends er{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],r!=null&&(this._baseHref=r)}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 r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(n){let r=hh(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+gn(i));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+gn(i));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static{this.\u0275fac=function(r){return new(r||e)(x(fh),x(KD,8))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),ts=(()=>{class e{constructor(n){this._subject=new H,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=$N($D(HD(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+gn(r))}normalize(n){return e.stripTrailingSlash(BN(this._basePath,HD(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+gn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+gn(r)),o)}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(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}static{this.normalizeQueryParams=gn}static{this.joinWithSlash=hh}static{this.stripTrailingSlash=$D}static{this.\u0275fac=function(r){return new(r||e)(x(er))}}static{this.\u0275prov=C({token:e,factory:()=>UN(),providedIn:"root"})}}return e})();function UN(){return new ts(x(er))}function BN(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function HD(e){return e.replace(/\/index.html$/,"")}function $N(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var JD=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}(JD||{});var He=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(He||{}),J=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(J||{}),st=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(st||{}),at={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 HN(e){return it(e)[ce.LocaleId]}function zN(e,t,n){let r=it(e),o=[r[ce.DayPeriodsFormat],r[ce.DayPeriodsStandalone]],i=vt(o,t);return vt(i,n)}function GN(e,t,n){let r=it(e),o=[r[ce.DaysFormat],r[ce.DaysStandalone]],i=vt(o,t);return vt(i,n)}function WN(e,t,n){let r=it(e),o=[r[ce.MonthsFormat],r[ce.MonthsStandalone]],i=vt(o,t);return vt(i,n)}function qN(e,t){let r=it(e)[ce.Eras];return vt(r,t)}function $u(e,t){let n=it(e);return vt(n[ce.DateFormat],t)}function Hu(e,t){let n=it(e);return vt(n[ce.TimeFormat],t)}function zu(e,t){let r=it(e)[ce.DateTimeFormat];return vt(r,t)}function mn(e,t){let n=it(e),r=n[ce.NumberSymbols][t];if(typeof r>"u"){if(t===at.CurrencyDecimal)return n[ce.NumberSymbols][at.Decimal];if(t===at.CurrencyGroup)return n[ce.NumberSymbols][at.Group]}return r}function ZN(e,t){return it(e)[ce.NumberFormats][t]}function XD(e){if(!e[ce.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[ce.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function KN(e){let t=it(e);return XD(t),(t[ce.ExtraData][2]||[]).map(r=>typeof r=="string"?th(r):[th(r[0]),th(r[1])])}function YN(e,t,n){let r=it(e);XD(r);let o=[r[ce.ExtraData][0],r[ce.ExtraData][1]],i=vt(o,t)||[];return vt(i,n)||[]}function vt(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function th(e){let[t,n]=e.split(":");return{hours:+t,minutes:+n}}var QN=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Gu={},JN=/((?:[^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]*)/,vn=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(vn||{}),W=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(W||{}),G=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(G||{});function XN(e,t,n,r){let o=uR(e);t=pn(n,t)||t;let s=[],a;for(;t;)if(a=JN.exec(t),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;t=l}else{s.push(t);break}let u=o.getTimezoneOffset();r&&(u=tw(r,u),o=aR(o,r,!0));let c="";return s.forEach(l=>{let d=iR(l);c+=d?d(o,n,u):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Qu(e,t,n){let r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function pn(e,t){let n=HN(e);if(Gu[n]??={},Gu[n][t])return Gu[n][t];let r="";switch(t){case"shortDate":r=$u(e,st.Short);break;case"mediumDate":r=$u(e,st.Medium);break;case"longDate":r=$u(e,st.Long);break;case"fullDate":r=$u(e,st.Full);break;case"shortTime":r=Hu(e,st.Short);break;case"mediumTime":r=Hu(e,st.Medium);break;case"longTime":r=Hu(e,st.Long);break;case"fullTime":r=Hu(e,st.Full);break;case"short":let o=pn(e,"shortTime"),i=pn(e,"shortDate");r=Wu(zu(e,st.Short),[o,i]);break;case"medium":let s=pn(e,"mediumTime"),a=pn(e,"mediumDate");r=Wu(zu(e,st.Medium),[s,a]);break;case"long":let u=pn(e,"longTime"),c=pn(e,"longDate");r=Wu(zu(e,st.Long),[u,c]);break;case"full":let l=pn(e,"fullTime"),d=pn(e,"fullDate");r=Wu(zu(e,st.Full),[l,d]);break}return r&&(Gu[n][t]=r),r}function Wu(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return t!=null&&r in t?t[r]:n})),e}function Nt(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=-e+1:(e=-e,i=n));let s=String(e);for(;s.length0||a>-n)&&(a+=n),e===W.Hours)a===0&&n===-12&&(a=12);else if(e===W.FractionalSeconds)return eR(a,t);let u=mn(s,at.MinusSign);return Nt(a,t,u,r,o)}}function tR(e,t){switch(e){case W.FullYear:return t.getFullYear();case W.Month:return t.getMonth();case W.Date:return t.getDate();case W.Hours:return t.getHours();case W.Minutes:return t.getMinutes();case W.Seconds:return t.getSeconds();case W.FractionalSeconds:return t.getMilliseconds();case W.Day:return t.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function re(e,t,n=He.Format,r=!1){return function(o,i){return nR(o,i,e,t,n,r)}}function nR(e,t,n,r,o,i){switch(n){case G.Months:return WN(t,o,r)[e.getMonth()];case G.Days:return GN(t,o,r)[e.getDay()];case G.DayPeriods:let s=e.getHours(),a=e.getMinutes();if(i){let c=KN(t),l=YN(t,o,r),d=c.findIndex(h=>{if(Array.isArray(h)){let[f,p]=h,g=s>=f.hours&&a>=f.minutes,m=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case vn.Short:return(o>=0?"+":"")+Nt(s,2,i)+Nt(Math.abs(o%60),2,i);case vn.ShortGMT:return"GMT"+(o>=0?"+":"")+Nt(s,1,i);case vn.Long:return"GMT"+(o>=0?"+":"")+Nt(s,2,i)+":"+Nt(Math.abs(o%60),2,i);case vn.Extended:return r===0?"Z":(o>=0?"+":"")+Nt(s,2,i)+":"+Nt(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}var rR=0,Ku=4;function oR(e){let t=Qu(e,rR,1).getDay();return Qu(e,0,1+(t<=Ku?Ku:Ku+7)-t)}function ew(e){let t=e.getDay(),n=t===0?-3:Ku-t;return Qu(e.getFullYear(),e.getMonth(),e.getDate()+n)}function nh(e,t=!1){return function(n,r){let o;if(t){let i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{let i=ew(n),s=oR(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Nt(o,e,mn(r,at.MinusSign))}}function Zu(e,t=!1){return function(n,r){let i=ew(n).getFullYear();return Nt(i,e,mn(r,at.MinusSign),t)}}var rh={};function iR(e){if(rh[e])return rh[e];let t;switch(e){case"G":case"GG":case"GGG":t=re(G.Eras,J.Abbreviated);break;case"GGGG":t=re(G.Eras,J.Wide);break;case"GGGGG":t=re(G.Eras,J.Narrow);break;case"y":t=ye(W.FullYear,1,0,!1,!0);break;case"yy":t=ye(W.FullYear,2,0,!0,!0);break;case"yyy":t=ye(W.FullYear,3,0,!1,!0);break;case"yyyy":t=ye(W.FullYear,4,0,!1,!0);break;case"Y":t=Zu(1);break;case"YY":t=Zu(2,!0);break;case"YYY":t=Zu(3);break;case"YYYY":t=Zu(4);break;case"M":case"L":t=ye(W.Month,1,1);break;case"MM":case"LL":t=ye(W.Month,2,1);break;case"MMM":t=re(G.Months,J.Abbreviated);break;case"MMMM":t=re(G.Months,J.Wide);break;case"MMMMM":t=re(G.Months,J.Narrow);break;case"LLL":t=re(G.Months,J.Abbreviated,He.Standalone);break;case"LLLL":t=re(G.Months,J.Wide,He.Standalone);break;case"LLLLL":t=re(G.Months,J.Narrow,He.Standalone);break;case"w":t=nh(1);break;case"ww":t=nh(2);break;case"W":t=nh(1,!0);break;case"d":t=ye(W.Date,1);break;case"dd":t=ye(W.Date,2);break;case"c":case"cc":t=ye(W.Day,1);break;case"ccc":t=re(G.Days,J.Abbreviated,He.Standalone);break;case"cccc":t=re(G.Days,J.Wide,He.Standalone);break;case"ccccc":t=re(G.Days,J.Narrow,He.Standalone);break;case"cccccc":t=re(G.Days,J.Short,He.Standalone);break;case"E":case"EE":case"EEE":t=re(G.Days,J.Abbreviated);break;case"EEEE":t=re(G.Days,J.Wide);break;case"EEEEE":t=re(G.Days,J.Narrow);break;case"EEEEEE":t=re(G.Days,J.Short);break;case"a":case"aa":case"aaa":t=re(G.DayPeriods,J.Abbreviated);break;case"aaaa":t=re(G.DayPeriods,J.Wide);break;case"aaaaa":t=re(G.DayPeriods,J.Narrow);break;case"b":case"bb":case"bbb":t=re(G.DayPeriods,J.Abbreviated,He.Standalone,!0);break;case"bbbb":t=re(G.DayPeriods,J.Wide,He.Standalone,!0);break;case"bbbbb":t=re(G.DayPeriods,J.Narrow,He.Standalone,!0);break;case"B":case"BB":case"BBB":t=re(G.DayPeriods,J.Abbreviated,He.Format,!0);break;case"BBBB":t=re(G.DayPeriods,J.Wide,He.Format,!0);break;case"BBBBB":t=re(G.DayPeriods,J.Narrow,He.Format,!0);break;case"h":t=ye(W.Hours,1,-12);break;case"hh":t=ye(W.Hours,2,-12);break;case"H":t=ye(W.Hours,1);break;case"HH":t=ye(W.Hours,2);break;case"m":t=ye(W.Minutes,1);break;case"mm":t=ye(W.Minutes,2);break;case"s":t=ye(W.Seconds,1);break;case"ss":t=ye(W.Seconds,2);break;case"S":t=ye(W.FractionalSeconds,1);break;case"SS":t=ye(W.FractionalSeconds,2);break;case"SSS":t=ye(W.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=qu(vn.Short);break;case"ZZZZZ":t=qu(vn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=qu(vn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=qu(vn.Long);break;default:return null}return rh[e]=t,t}function tw(e,t){e=e.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function sR(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function aR(e,t,n){let r=n?-1:1,o=e.getTimezoneOffset(),i=tw(t,o);return sR(e,r*(i-o))}function uR(e){if(zD(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[o,i=1,s=1]=e.split("-").map(a=>+a);return Qu(o,i-1,s)}let n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(QN))return cR(r)}let t=new Date(e);if(!zD(t))throw new Error(`Unable to convert "${e}" into a date`);return t}function cR(e){let t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,u=Number(e[6]||0),c=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return i.call(t,s,a,u,c),t}function zD(e){return e instanceof Date&&!isNaN(e.valueOf())}var lR=/^(\d+)?\.((\d+)(-(\d+))?)?$/,GD=22,Ju=".",es="0",dR=";",fR=",",oh="#";function hR(e,t,n,r,o,i,s=!1){let a="",u=!1;if(!isFinite(e))a=mn(n,at.Infinity);else{let c=vR(e);s&&(c=mR(c));let l=t.minInt,d=t.minFrac,h=t.maxFrac;if(i){let A=i.match(lR);if(A===null)throw new Error(`${i} is not a valid digit info`);let V=A[1],ee=A[3],he=A[5];V!=null&&(l=ih(V)),ee!=null&&(d=ih(ee)),he!=null?h=ih(he):ee!=null&&d>h&&(h=d)}yR(c,d,h);let f=c.digits,p=c.integerLen,g=c.exponent,m=[];for(u=f.every(A=>!A);p0?m=f.splice(p,f.length):(m=f,f=[0]);let D=[];for(f.length>=t.lgSize&&D.unshift(f.splice(-t.lgSize,f.length).join(""));f.length>t.gSize;)D.unshift(f.splice(-t.gSize,f.length).join(""));f.length&&D.unshift(f.join("")),a=D.join(mn(n,r)),m.length&&(a+=mn(n,o)+m.join("")),g&&(a+=mn(n,at.Exponential)+"+"+g)}return e<0&&!u?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function pR(e,t,n){let r=ZN(t,JD.Decimal),o=gR(r,mn(t,at.MinusSign));return hR(e,o,t,at.Group,at.Decimal,n)}function gR(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(dR),o=r[0],i=r[1],s=o.indexOf(Ju)!==-1?o.split(Ju):[o.substring(0,o.lastIndexOf(es)+1),o.substring(o.lastIndexOf(es)+1)],a=s[0],u=s[1]||"";n.posPre=a.substring(0,a.indexOf(oh));for(let l=0;l-1&&(t=t.replace(Ju,"")),(i=t.search(/e/i))>0?(o<0&&(o=i),o+=+t.slice(i+1),t=t.substring(0,i)):o<0&&(o=t.length),i=0;t.charAt(i)===es;i++);if(i===(a=t.length))r=[0],o=1;else{for(a--;t.charAt(a)===es;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(t.charAt(i))}return o>GD&&(r=r.splice(0,GD-1),n=o-1,o=1),{digits:r,exponent:n,integerLen:o}}function yR(e,t,n){if(t>n)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${n}).`);let r=e.digits,o=r.length-e.integerLen,i=Math.min(Math.max(t,o),n),s=i+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let d=s;d=5)if(s-1<0){for(let d=0;d>s;d--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;o=c?p.pop():u=!1),h>=10?1:0},0);l&&(r.unshift(l),e.integerLen++)}function ih(e){let t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}function m9(e,t,n){return xD(e,t,n)}function Xu(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var sh=/\s+/,WD=[],v9=(()=>{class e{constructor(n,r){this._ngEl=n,this._renderer=r,this.initialClasses=WD,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(sh):WD}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(sh):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(sh).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static{this.\u0275fac=function(r){return new(r||e)(w(Me),w(ot))}}static{this.\u0275dir=z({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return e})();var y9=(()=>{class e{constructor(n,r,o){this._ngEl=n,this._differs=r,this._renderer=o,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,r){let[o,i]=n.split("."),s=o.indexOf("-")===-1?void 0:Ht.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,i?`${r}${i}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s)}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static{this.\u0275fac=function(r){return new(r||e)(w(Me),w(eh),w(ot))}}static{this.\u0275dir=z({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return e})(),D9=(()=>{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 r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(n,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static{this.\u0275fac=function(r){return new(r||e)(w(Lr))}}static{this.\u0275dir=z({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[rt]})}}return e})();function ph(e,t){return new b(2100,!1)}var ah=class{createSubscription(t,n){return mt(()=>t.subscribe({next:n,error:r=>{throw r}}))}dispose(t){mt(()=>t.unsubscribe())}},uh=class{createSubscription(t,n){return t.then(n,r=>{throw r})}dispose(t){}},DR=new uh,wR=new ah,w9=(()=>{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,r=>this._updateLatestValue(n,r))}_selectStrategy(n){if(Qn(n))return DR;if(Jf(n))return wR;throw ph(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,r){n===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(r){return new(r||e)(w(At,16))}}static{this.\u0275pipe=So({name:"async",type:e,pure:!1,standalone:!0})}}return e})();var CR="mediumDate",bR=new E(""),ER=new E(""),C9=(()=>{class e{constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??CR,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return XN(n,s,i||this.locale,a)}catch(s){throw ph(e,s.message)}}static{this.\u0275fac=function(r){return new(r||e)(w(Xi,16),w(bR,24),w(ER,24))}}static{this.\u0275pipe=So({name:"date",type:e,pure:!0,standalone:!0})}}return e})();var b9=(()=>{class e{constructor(n){this._locale=n}transform(n,r,o){if(!IR(n))return null;o||=this._locale;try{let i=xR(n);return pR(i,o,r)}catch(i){throw ph(e,i.message)}}static{this.\u0275fac=function(r){return new(r||e)(w(Xi,16))}}static{this.\u0275pipe=So({name:"number",type:e,pure:!0,standalone:!0})}}return e})();function IR(e){return!(e==null||e===""||e!==e)}function xR(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new Error(`${e} is not a number`);return e}var gh="browser",_R="server";function MR(e){return e===gh}function ec(e){return e===_R}var SR=(()=>{class e{static{this.\u0275prov=C({token:e,providedIn:"root",factory:()=>MR(v(Wt))?new ch(v(Be),window):new lh})}}return e})(),ch=class{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){Array.isArray(t)?this.offset=()=>t:this.offset=t}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(t){this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){let n=TR(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){this.window.history.scrollRestoration=t}scrollToElement(t){let n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}};function TR(e,t){let n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}var lh=class{setOffset(t){}getScrollPosition(){return[0,0]}scrollToPosition(t){}scrollToAnchor(t){}setHistoryScrollRestoration(t){}},Oo=class{};var rs=class{},nc=class{},Dn=class e{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(` +`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.setHeaderEntries(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var vh=class{encodeKey(t){return rw(t)}encodeValue(t){return rw(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function AR(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],u=n.get(s)||[];u.push(a),n.set(s,u)}),n}var NR=/%(\d[a-f0-9])/gi,RR={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function rw(e){return encodeURIComponent(e).replace(NR,(t,n)=>RR[n]??t)}function tc(e){return`${e}`}var nr=class e{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new vh,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=AR(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(tc):[tc(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(tc(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(tc(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}},ow=class{constructor(t){this.defaultValue=t}},yh=class{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function OR(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function iw(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function sw(e){return typeof Blob<"u"&&e instanceof Blob}function aw(e){return typeof FormData<"u"&&e instanceof FormData}function PR(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var ns=class e{constructor(t,n,r,o){this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();let i;if(OR(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,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 Dn,this.context??=new yh,!this.params)this.params=new nr,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),u=a===-1?"?":ah.set(f,t.setHeaders[f]),c)),t.setParams&&(l=Object.keys(t.setParams).reduce((h,f)=>h.set(f,t.setParams[f]),l)),new e(n,r,s,{params:l,headers:c,context:d,reportProgress:u,responseType:o,withCredentials:a,transferCache:i})}},rr=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(rr||{}),os=class{constructor(t,n=200,r="OK"){this.headers=t.headers||new Dn,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},rc=class e extends os{constructor(t={}){super(t),this.type=rr.ResponseHeader}clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},is=class e extends os{constructor(t={}){super(t),this.type=rr.Response,this.body=t.body!==void 0?t.body:null}clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},tr=class extends os{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},dw=200,FR=204;function mh(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var LR=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof ns)i=n;else{let u;o.headers instanceof Dn?u=o.headers:u=new Dn(o.headers);let c;o.params&&(o.params instanceof nr?c=o.params:c=new nr({fromObject:o.params})),i=new ns(n,r,o.body!==void 0?o.body:null,{headers:u,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let s=I(i).pipe(Lt(u=>this.handler.handle(u)));if(n instanceof ns||o.observe==="events")return s;let a=s.pipe(je(u=>u instanceof is));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(N(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return a.pipe(N(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return a.pipe(N(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return a.pipe(N(u=>u.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new nr().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,mh(o,r))}post(n,r,o={}){return this.request("POST",n,mh(o,r))}put(n,r,o={}){return this.request("PUT",n,mh(o,r))}static{this.\u0275fac=function(r){return new(r||e)(x(rs))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),kR=/^\)\]\}',?\n/,jR="X-Request-URL";function uw(e){if(e.url)return e.url;let t=jR.toLocaleLowerCase();return e.headers.get(t)}var VR=(()=>{class e{constructor(){this.fetchImpl=v(Dh,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n)),this.ngZone=v(ge)}handle(n){return new P(r=>{let o=new AbortController;return this.doRequest(n,o.signal,r).then(wh,i=>r.error(new tr({error:i}))),()=>o.abort()})}doRequest(n,r,o){return qs(this,null,function*(){let i=this.createRequestInit(n),s;try{let f=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,y({signal:r},i)));UR(f),o.next({type:rr.Sent}),s=yield f}catch(f){o.error(new tr({error:f,status:f.status??0,statusText:f.statusText,url:n.urlWithParams,headers:f.headers}));return}let a=new Dn(s.headers),u=s.statusText,c=uw(s)??n.urlWithParams,l=s.status,d=null;if(n.reportProgress&&o.next(new rc({headers:a,status:l,statusText:u,url:c})),s.body){let f=s.headers.get("content-length"),p=[],g=s.body.getReader(),m=0,D,A,V=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>qs(this,null,function*(){for(;;){let{done:he,value:we}=yield g.read();if(he)break;if(p.push(we),m+=we.length,n.reportProgress){A=n.responseType==="text"?(A??"")+(D??=new TextDecoder).decode(we,{stream:!0}):void 0;let Jt=()=>o.next({type:rr.DownloadProgress,total:f?+f:void 0,loaded:m,partialText:A});V?V.run(Jt):Jt()}}}));let ee=this.concatChunks(p,m);try{let he=s.headers.get("Content-Type")??"";d=this.parseBody(n,ee,he)}catch(he){o.error(new tr({error:he,headers:new Dn(s.headers),status:s.status,statusText:s.statusText,url:uw(s)??n.urlWithParams}));return}}l===0&&(l=d?dw:0),l>=200&&l<300?(o.next(new is({body:d,headers:a,status:l,statusText:u,url:c})),o.complete()):o.error(new tr({error:d,headers:a,status:l,statusText:u,url:c}))})}parseBody(n,r,o){switch(n.responseType){case"json":let i=new TextDecoder().decode(r).replace(kR,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:o});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},o=n.withCredentials?"include":void 0;if(n.headers.forEach((i,s)=>r[i]=s.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let i=n.detectContentTypeHeader();i!==null&&(r["Content-Type"]=i)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:o}}concatChunks(n,r){let o=new Uint8Array(r),i=0;for(let s of n)o.set(s,i),i+=s.length;return o}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),Dh=class{};function wh(){}function UR(e){e.then(wh,wh)}function BR(e,t){return t(e)}function $R(e,t,n){return(r,o)=>St(n,()=>t(r,i=>e(i,o)))}var Ch=new E(""),HR=new E(""),zR=new E("",{providedIn:"root",factory:()=>!0});var cw=(()=>{class e extends rs{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=v(Kn),this.contributeToStability=v(zR)}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Ch),...this.injector.get(HR,[])]));this.chain=r.reduceRight((o,i)=>$R(o,i,this.injector),BR)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Ln(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static{this.\u0275fac=function(r){return new(r||e)(x(nc),x(Qe))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})();var GR=/^\)\]\}',?\n/;function WR(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}var lw=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new b(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?te(r.\u0275loadImpl()):I(null)).pipe(Ee(()=>new P(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((g,m)=>s.setRequestHeader(g,m.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let g=n.detectContentTypeHeader();g!==null&&s.setRequestHeader("Content-Type",g)}if(n.responseType){let g=n.responseType.toLowerCase();s.responseType=g!=="json"?g:"text"}let a=n.serializeBody(),u=null,c=()=>{if(u!==null)return u;let g=s.statusText||"OK",m=new Dn(s.getAllResponseHeaders()),D=WR(s)||n.url;return u=new rc({headers:m,status:s.status,statusText:g,url:D}),u},l=()=>{let{headers:g,status:m,statusText:D,url:A}=c(),V=null;m!==FR&&(V=typeof s.response>"u"?s.responseText:s.response),m===0&&(m=V?dw:0);let ee=m>=200&&m<300;if(n.responseType==="json"&&typeof V=="string"){let he=V;V=V.replace(GR,"");try{V=V!==""?JSON.parse(V):null}catch(we){V=he,ee&&(ee=!1,V={error:we,text:V})}}ee?(i.next(new is({body:V,headers:g,status:m,statusText:D,url:A||void 0})),i.complete()):i.error(new tr({error:V,headers:g,status:m,statusText:D,url:A||void 0}))},d=g=>{let{url:m}=c(),D=new tr({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:m||void 0});i.error(D)},h=!1,f=g=>{h||(i.next(c()),h=!0);let m={type:rr.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(m.total=g.total),n.responseType==="text"&&s.responseText&&(m.partialText=s.responseText),i.next(m)},p=g=>{let m={type:rr.UploadProgress,loaded:g.loaded};g.lengthComputable&&(m.total=g.total),i.next(m)};return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",f),a!==null&&s.upload&&s.upload.addEventListener("progress",p)),s.send(a),i.next({type:rr.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",d),n.reportProgress&&(s.removeEventListener("progress",f),a!==null&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(r){return new(r||e)(x(Oo))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),fw=new E(""),qR="XSRF-TOKEN",ZR=new E("",{providedIn:"root",factory:()=>qR}),KR="X-XSRF-TOKEN",YR=new E("",{providedIn:"root",factory:()=>KR}),oc=class{},QR=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,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=Xu(n,this.cookieName),this.lastCookieString=n),this.lastToken}static{this.\u0275fac=function(r){return new(r||e)(x(Be),x(Wt),x(ZR))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})();function JR(e,t){let n=e.url.toLowerCase();if(!v(fw)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=v(oc).getToken(),o=v(YR);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var hw=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(hw||{});function XR(e,t){return{\u0275kind:e,\u0275providers:t}}function F9(...e){let t=[LR,lw,cw,{provide:rs,useExisting:cw},{provide:nc,useFactory:()=>v(VR,{optional:!0})??v(lw)},{provide:Ch,useValue:JR,multi:!0},{provide:fw,useValue:!0},{provide:oc,useClass:QR}];for(let n of e)t.push(...n.\u0275providers);return Gi(t)}function L9(e){return XR(hw.Interceptors,e.map(t=>({provide:Ch,useValue:t,multi:!0})))}var Ih=class extends Yu{constructor(){super(...arguments),this.supportsDOMEvents=!0}},xh=class e extends Ih{static makeCurrent(){ZD(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=eO();return n==null?null:tO(n)}resetBaseElement(){ss=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Xu(document.cookie,t)}},ss=null;function eO(){return ss=ss||document.querySelector("base"),ss?ss.getAttribute("href"):null}function tO(e){return new URL(e,document.baseURI).pathname}var nO=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),_h=new E(""),vw=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new b(5101,!1);return this._eventNameToPlugin.set(n,r),r}static{this.\u0275fac=function(r){return new(r||e)(x(_h),x(ge))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),ic=class{constructor(t){this._doc=t}},bh="ng-app-id",yw=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=ec(i),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${bh}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(o=>{o.textContent!=null&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){let o=this.styleRef;if(o.has(n)){let i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(bh),i;{let s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(bh,this.appId),n.appendChild(s),s}}addStyleToHost(n,r){let o=this.getStyleElement(n,r),i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(x(Be),x(Tf),x(Nf,8),x(Wt))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),Eh={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"},Sh=/%COMP%/g,Dw="%COMP%",rO=`_nghost-${Dw}`,oO=`_ngcontent-${Dw}`,iO=!0,sO=new E("",{providedIn:"root",factory:()=>iO});function aO(e){return oO.replace(Sh,e)}function uO(e){return rO.replace(Sh,e)}function ww(e,t){return t.map(n=>n.replace(Sh,e))}var pw=(()=>{class e{constructor(n,r,o,i,s,a,u,c=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=ec(a),this.defaultRenderer=new as(n,s,u,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ut.ShadowDom&&(r=U(y({},r),{encapsulation:Ut.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof sc?o.applyToHost(n):o instanceof us&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,u=this.eventManager,c=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Ut.Emulated:i=new sc(u,c,r,this.appId,l,s,a,d);break;case Ut.ShadowDom:return new Mh(u,c,n,r,s,a,this.nonce,d);default:i=new us(u,c,r,l,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(x(vw),x(yw),x(Tf),x(sO),x(Be),x(Wt),x(ge),x(Nf))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),as=class{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(Eh[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(gw(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(gw(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new b(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Eh[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Eh[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Ht.DashCase|Ht.Important)?t.style.setProperty(n,r,o&Ht.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Ht.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=yn().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function gw(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Mh=class extends as{constructor(t,n,r,o,i,s,a,u){super(t,i,s,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=ww(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(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},us=class extends as{constructor(t,n,r,o,i,s,a,u){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=u?ww(u,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},sc=class extends us{constructor(t,n,r,o,i,s,a,u){let c=o+"-"+r.id;super(t,n,r,i,s,a,u,c),this.contentAttr=aO(c),this.hostAttr=uO(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},cO=(()=>{class e extends ic{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}static{this.\u0275fac=function(r){return new(r||e)(x(Be))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})(),mw=["alt","control","meta","shift"],lO={"\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"},dO={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},fO=(()=>{class e extends ic{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o){let i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>yn().onAndCancel(n,i.domEventName,s))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),mw.forEach(c=>{let l=r.indexOf(c);l>-1&&(r.splice(l,1),s+=c+".")}),s+=i,r.length!=0||i.length===0)return null;let u={};return u.domEventName=o,u.fullKey=s,u}static matchEventFullKeyCode(n,r){let o=lO[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),mw.forEach(s=>{if(s!==o){let a=dO[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static{this.\u0275fac=function(r){return new(r||e)(x(Be))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac})}}return e})();function r7(e,t){return BD(y({rootComponent:e},hO(t)))}function hO(e){return{appProviders:[...yO,...e?.providers??[]],platformProviders:vO}}function pO(){xh.makeCurrent()}function gO(){return new cn}function mO(){return ry(document),document}var vO=[{provide:Wt,useValue:gh},{provide:Af,useValue:pO,multi:!0},{provide:Be,useFactory:mO,deps:[]}];var yO=[{provide:yu,useValue:"root"},{provide:cn,useFactory:gO,deps:[]},{provide:_h,useClass:cO,multi:!0,deps:[Be,ge,Wt]},{provide:_h,useClass:fO,multi:!0,deps:[Be]},pw,yw,vw,{provide:xo,useExisting:pw},{provide:Oo,useClass:nO,deps:[]},[]];var Cw=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static{this.\u0275fac=function(r){return new(r||e)(x(Be))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var DO=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=x(wO),o},providedIn:"root"})}}return e})(),wO=(()=>{class e extends DO{constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case qt.NONE:return r;case qt.HTML:return Yn(r,"HTML")?Tt(r):gy(this._doc,String(r)).toString();case qt.STYLE:return Yn(r,"Style")?Tt(r):r;case qt.SCRIPT:if(Yn(r,"Script"))return Tt(r);throw new b(5200,!1);case qt.URL:return Yn(r,"URL")?Tt(r):Tu(String(r));case qt.RESOURCE_URL:if(Yn(r,"ResourceURL"))return Tt(r);throw new b(5201,!1);default:throw new b(5202,!1)}}bypassSecurityTrustHtml(n){return iy(n)}bypassSecurityTrustStyle(n){return sy(n)}bypassSecurityTrustScript(n){return ay(n)}bypassSecurityTrustUrl(n){return uy(n)}bypassSecurityTrustResourceUrl(n){return cy(n)}static{this.\u0275fac=function(r){return new(r||e)(x(Be))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var L="primary",Is=Symbol("RouteTitle"),Oh=class{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function Vo(e){return new Oh(e)}function bO(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.lengthr[i]===o)}else return e===t}function Nw(e){return e.length>0?e[e.length-1]:null}function or(e){return It(e)?e:Qn(e)?te(Promise.resolve(e)):I(e)}var IO={exact:Ow,subset:Pw},Rw={exact:xO,subset:_O,ignored:()=>!0};function bw(e,t,n){return IO[n.paths](e.root,t.root,n.matrixParams)&&Rw[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function xO(e,t){return Kt(e,t)}function Ow(e,t,n){if(!Ur(e.segments,t.segments)||!cc(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!Ow(e.children[r],t.children[r],n))return!1;return!0}function _O(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>Aw(e[n],t[n]))}function Pw(e,t,n){return Fw(e,t,t.segments,n)}function Fw(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!Ur(o,n)||t.hasChildren()||!cc(o,n,r))}else if(e.segments.length===n.length){if(!Ur(e.segments,n)||!cc(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!Pw(e.children[o],t.children[o],r))return!1;return!0}else{let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!Ur(e.segments,o)||!cc(e.segments,o,r)||!e.children[L]?!1:Fw(e.children[L],t,i,r)}}function cc(e,t,n){return t.every((r,o)=>Rw[n](e[o].parameters,r.parameters))}var Cn=class{constructor(t=new Z([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Vo(this.queryParams),this._queryParamMap}toString(){return TO.serialize(this)}},Z=class{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return lc(this)}},Vr=class{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Vo(this.parameters),this._parameterMap}toString(){return kw(this)}};function MO(e,t){return Ur(e,t)&&e.every((n,r)=>Kt(n.parameters,t[r].parameters))}function Ur(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function SO(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===L&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==L&&(n=n.concat(t(o,r)))}),n}var sp=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>new gs,providedIn:"root"})}}return e})(),gs=class{parse(t){let n=new Lh(t);return new Cn(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${cs(t.root,!0)}`,r=RO(t.queryParams),o=typeof t.fragment=="string"?`#${AO(t.fragment)}`:"";return`${n}${r}${o}`}},TO=new gs;function lc(e){return e.segments.map(t=>kw(t)).join("/")}function cs(e,t){if(!e.hasChildren())return lc(e);if(t){let n=e.children[L]?cs(e.children[L],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==L&&r.push(`${o}:${cs(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=SO(e,(r,o)=>o===L?[cs(e.children[L],!1)]:[`${o}:${cs(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[L]!=null?`${lc(e)}/${n[0]}`:`${lc(e)}/(${n.join("//")})`}}function Lw(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ac(e){return Lw(e).replace(/%3B/gi,";")}function AO(e){return encodeURI(e)}function Fh(e){return Lw(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function dc(e){return decodeURIComponent(e)}function Ew(e){return dc(e.replace(/\+/g,"%20"))}function kw(e){return`${Fh(e.path)}${NO(e.parameters)}`}function NO(e){return Object.entries(e).map(([t,n])=>`;${Fh(t)}=${Fh(n)}`).join("")}function RO(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${ac(n)}=${ac(o)}`).join("&"):`${ac(n)}=${ac(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var OO=/^[^\/()?;#]+/;function Th(e){let t=e.match(OO);return t?t[0]:""}var PO=/^[^\/()?;=#]+/;function FO(e){let t=e.match(PO);return t?t[0]:""}var LO=/^[^=?&#]+/;function kO(e){let t=e.match(LO);return t?t[0]:""}var jO=/^[^&#]+/;function VO(e){let t=e.match(jO);return t?t[0]:""}var Lh=class{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Z([],{}):new Z([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[L]=new Z(t,n)),r}parseSegment(){let t=Th(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(t),new Vr(dc(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=FO(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=Th(this.remaining);o&&(r=o,this.capture(r))}t[dc(n)]=dc(r)}parseQueryParam(t){let n=kO(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=VO(this.remaining);s&&(r=s,this.capture(r))}let o=Ew(n),i=Ew(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Th(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new b(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=L);let s=this.parseChildren();n[i]=Object.keys(s).length===1?s[L]:new Z([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new b(4011,!1)}};function jw(e){return e.segments.length>0?new Z([],{[L]:e}):e}function Vw(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=Vw(o);if(r===L&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}let n=new Z(e.segments,t);return UO(n)}function UO(e){if(e.numberOfChildren===1&&e.children[L]){let t=e.children[L];return new Z(e.segments.concat(t.segments),t.children)}return e}function Br(e){return e instanceof Cn}function BO(e,t,n=null,r=null){let o=Uw(e);return Bw(o,t,n,r)}function Uw(e){let t;function n(i){let s={};for(let u of i.children){let c=n(u);s[u.outlet]=c}let a=new Z(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=jw(r);return t??o}function Bw(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return Ah(o,o,o,n,r);let i=$O(t);if(i.toRoot())return Ah(o,o,new Z([],{}),n,r);let s=HO(i,o,e),a=s.processChildren?fs(s.segmentGroup,s.index,i.commands):Hw(s.segmentGroup,s.index,i.commands);return Ah(o,s.segmentGroup,a,n,r)}function fc(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function ms(e){return typeof e=="object"&&e!=null&&e.outlets}function Ah(e,t,n,r,o){let i={};r&&Object.entries(r).forEach(([u,c])=>{i[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;e===t?s=n:s=$w(e,t,n);let a=jw(Vw(s));return new Cn(a,i,o)}function $w(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=$w(i,t,n)}),new Z(e.segments,r)}var hc=class{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&fc(r[0]))throw new b(4003,!1);let o=r.find(ms);if(o&&o!==Nw(r))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function $O(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new hc(!0,0,e);let t=0,n=!1,r=e.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===""?n=!0:a===".."?t++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new hc(n,t,r)}var Lo=class{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function HO(e,t,n){if(e.isAbsolute)return new Lo(t,!0,0);if(!n)return new Lo(t,!1,NaN);if(n.parent===null)return new Lo(n,!0,0);let r=fc(e.commands[0])?0:1,o=n.segments.length-1+r;return zO(n,o,e.numberOfDoubleDots)}function zO(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new b(4005,!1);o=r.segments.length}return new Lo(r,!1,o-i)}function GO(e){return ms(e[0])?e[0].outlets:{[L]:e}}function Hw(e,t,n){if(e??=new Z([],{}),e.segments.length===0&&e.hasChildren())return fs(e,t,n);let r=WO(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndexi!==L)&&e.children[L]&&e.numberOfChildren===1&&e.children[L].segments.length===0){let i=fs(e.children[L],t,n);return new Z(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=Hw(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new Z(e.segments,o)}}function WO(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;let s=e.segments[o],a=n[r];if(ms(a))break;let u=`${a}`,c=r0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!xw(u,c,s))return i;r+=2}else{if(!xw(u,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function kh(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=kh(new Z([],{}),0,r))}),t}function Iw(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function xw(e,t,n){return e==n.path&&Kt(t,n.parameters)}var hs="imperative",ke=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(ke||{}),yt=class{constructor(t,n){this.id=t,this.url=n}},vs=class extends yt{constructor(t,n,r="imperative",o=null){super(t,n),this.type=ke.NavigationStart,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},bn=class extends yt{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=ke.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},ct=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(ct||{}),jh=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(jh||{}),wn=class extends yt{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=ke.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},$r=class extends yt{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=ke.NavigationSkipped}},ys=class extends yt{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=ke.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},pc=class extends yt{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=ke.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Vh=class extends yt{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=ke.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Uh=class extends yt{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=ke.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Bh=class extends yt{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=ke.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},$h=class extends yt{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=ke.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Hh=class{constructor(t){this.route=t,this.type=ke.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},zh=class{constructor(t){this.route=t,this.type=ke.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Gh=class{constructor(t){this.snapshot=t,this.type=ke.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Wh=class{constructor(t){this.snapshot=t,this.type=ke.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},qh=class{constructor(t){this.snapshot=t,this.type=ke.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Zh=class{constructor(t){this.snapshot=t,this.type=ke.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Ds=class{},Uo=class{constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function ZO(e,t){return e.providers&&!e._injector&&(e._injector=qf(e.providers,t,`Route: ${e.path}`)),e._injector??t}function Rt(e){return e.outlet||L}function KO(e,t){let n=e.filter(r=>Rt(r)===t);return n.push(...e.filter(r=>Rt(r)!==t)),n}function xs(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var Kh=class{get injector(){return xs(this.route?.snapshot)??this.rootInjector}set injector(t){}constructor(t){this.rootInjector=t,this.outlet=null,this.route=null,this.children=new Cc(this.rootInjector),this.attachRef=null}},Cc=(()=>{class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Kh(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static{this.\u0275fac=function(r){return new(r||e)(x(Qe))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),gc=class{constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=Yh(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Yh(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=Qh(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Qh(t,this._root).map(n=>n.value)}};function Yh(e,t){if(e===t.value)return t;for(let n of t.children){let r=Yh(e,n);if(r)return r}return null}function Qh(e,t){if(e===t.value)return[t];for(let n of t.children){let r=Qh(e,n);if(r.length)return r.unshift(t),r}return[]}var ut=class{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Fo(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var mc=class extends gc{constructor(t,n){super(t),this.snapshot=n,ap(this,t)}toString(){return this.snapshot.toString()}};function zw(e){let t=YO(e),n=new Ae([new Vr("",{})]),r=new Ae({}),o=new Ae({}),i=new Ae({}),s=new Ae(""),a=new Hr(n,r,i,s,o,L,e,t.root);return a.snapshot=t.root,new mc(new ut(a,[]),t)}function YO(e){let t={},n={},r={},o="",i=new ko([],t,r,o,n,L,e,null,{});return new yc("",new ut(i,[]))}var Hr=class{constructor(t,n,r,o,i,s,a,u){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(N(c=>c[Is]))??I(void 0),this.url=t,this.params=n,this.queryParams=r,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(t=>Vo(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(N(t=>Vo(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function vc(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:y(y({},t.params),e.params),data:y(y({},t.data),e.data),resolve:y(y(y(y({},e.data),t.data),o?.data),e._resolvedData)}:r={params:y({},e.params),data:y({},e.data),resolve:y(y({},e.data),e._resolvedData??{})},o&&Ww(o)&&(r.resolve[Is]=o.title),r}var ko=class{get title(){return this.data?.[Is]}constructor(t,n,r,o,i,s,a,u,c){this.url=t,this.params=n,this.queryParams=r,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??=Vo(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Vo(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},yc=class extends gc{constructor(t,n){super(n),this.url=t,ap(this,n)}toString(){return Gw(this._root)}};function ap(e,t){t.value._routerState=e,t.children.forEach(n=>ap(e,n))}function Gw(e){let t=e.children.length>0?` { ${e.children.map(Gw).join(", ")} } `:"";return`${e.value}${t}`}function Nh(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Kt(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),Kt(t.params,n.params)||e.paramsSubject.next(n.params),EO(t.url,n.url)||e.urlSubject.next(n.url),Kt(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Jh(e,t){let n=Kt(e.params,t.params)&&MO(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||Jh(e.parent,t.parent))}function Ww(e){return typeof e.title=="string"||e.title===null}var QO=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=L,this.activateEvents=new H,this.deactivateEvents=new H,this.attachEvents=new H,this.detachEvents=new H,this.parentContexts=v(Cc),this.location=v(Lr),this.changeDetector=v(At),this.inputBinder=v(up,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),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 b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,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,r){if(this.isActivated)throw new b(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new Xh(n,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:u,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=z({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[rt]})}}return e})(),Xh=class e{__ngOutletInjector(t){return new e(this.route,this.childContexts,t)}constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===Hr?this.route:t===Cc?this.childContexts:this.parent.get(t,n)}},up=new E("");function JO(e,t,n){let r=ws(e,t._root,n?n._root:void 0);return new mc(r,t)}function ws(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=XO(e,t,n);return new ut(r,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>ws(e,a)),s}}let r=eP(t.value),o=t.children.map(i=>ws(e,i));return new ut(r,o)}}function XO(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return ws(e,r,o);return ws(e,r)})}function eP(e){return new Hr(new Ae(e.url),new Ae(e.params),new Ae(e.queryParams),new Ae(e.fragment),new Ae(e.data),e.outlet,e.component,e)}var Cs=class{constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},qw="ngNavigationCancelingError";function Dc(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Br(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=Zw(!1,ct.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function Zw(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[qw]=!0,n.cancellationCode=t,n}function tP(e){return Kw(e)&&Br(e.url)}function Kw(e){return!!e&&e[qw]}var nP=(e,t,n,r)=>N(o=>(new ep(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)),ep=class{constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Nh(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=Fo(n);t.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Fo(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Fo(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let o=Fo(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Zh(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Wh(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(Nh(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.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),Nh(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},wc=class{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},jo=class{constructor(t,n){this.component=t,this.route=n}};function rP(e,t,n){let r=e._root,o=t?t._root:null;return ls(r,o,n,[r.value])}function oP(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function $o(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Um(e)?e:t.get(e):r}function ls(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Fo(t);return e.children.forEach(s=>{iP(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>ps(a,n.getContext(s),o)),o}function iP(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let u=sP(s,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new wc(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?ls(e,t,a?a.children:null,r,o):ls(e,t,n,r,o),u&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new jo(a.outlet.component,s))}else s&&ps(t,a,o),o.canActivateChecks.push(new wc(r)),i.component?ls(e,null,a?a.children:null,r,o):ls(e,null,n,r,o);return o}function sP(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!Ur(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Ur(e.url,t.url)||!Kt(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Jh(e,t)||!Kt(e.queryParams,t.queryParams);case"paramsChange":default:return!Jh(e,t)}}function ps(e,t,n){let r=Fo(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?ps(s,t.children.getContext(i),n):ps(s,null,n):ps(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new jo(t.outlet.component,o)):n.canDeactivateChecks.push(new jo(null,o)):n.canDeactivateChecks.push(new jo(null,o))}function _s(e){return typeof e=="function"}function aP(e){return typeof e=="boolean"}function uP(e){return e&&_s(e.canLoad)}function cP(e){return e&&_s(e.canActivate)}function lP(e){return e&&_s(e.canActivateChild)}function dP(e){return e&&_s(e.canDeactivate)}function fP(e){return e&&_s(e.canMatch)}function Yw(e){return e instanceof nn||e?.name==="EmptyError"}var uc=Symbol("INITIAL_VALUE");function Bo(){return Ee(e=>Ia(e.map(t=>t.pipe(_e(1),Sa(uc)))).pipe(N(t=>{for(let n of t)if(n!==!0){if(n===uc)return uc;if(n===!1||hP(n))return n}return!0}),je(t=>t!==uc),_e(1)))}function hP(e){return Br(e)||e instanceof Cs}function pP(e,t){return le(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?I(U(y({},n),{guardsResult:!0})):gP(s,r,o,e).pipe(le(a=>a&&aP(a)?mP(r,i,e,t):I(a)),N(a=>U(y({},n),{guardsResult:a})))})}function gP(e,t,n,r){return te(e).pipe(le(o=>CP(o.component,o.route,n,t,r)),kt(o=>o!==!0,!0))}function mP(e,t,n,r){return te(t).pipe(Lt(o=>nt(yP(o.route.parent,r),vP(o.route,r),wP(e,o.path,n),DP(e,o.route,n))),kt(o=>o!==!0,!0))}function vP(e,t){return e!==null&&t&&t(new qh(e)),I(!0)}function yP(e,t){return e!==null&&t&&t(new Gh(e)),I(!0)}function DP(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return I(!0);let o=r.map(i=>rn(()=>{let s=xs(t)??n,a=$o(i,s),u=cP(a)?a.canActivate(t,e):St(s,()=>a(t,e));return or(u).pipe(kt())}));return I(o).pipe(Bo())}function wP(e,t,n){let r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>oP(s)).filter(s=>s!==null).map(s=>rn(()=>{let a=s.guards.map(u=>{let c=xs(s.node)??n,l=$o(u,c),d=lP(l)?l.canActivateChild(r,e):St(c,()=>l(r,e));return or(d).pipe(kt())});return I(a).pipe(Bo())}));return I(i).pipe(Bo())}function CP(e,t,n,r,o){let i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!i||i.length===0)return I(!0);let s=i.map(a=>{let u=xs(t)??o,c=$o(a,u),l=dP(c)?c.canDeactivate(e,t,n,r):St(u,()=>c(e,t,n,r));return or(l).pipe(kt())});return I(s).pipe(Bo())}function bP(e,t,n,r){let o=t.canLoad;if(o===void 0||o.length===0)return I(!0);let i=o.map(s=>{let a=$o(s,e),u=uP(a)?a.canLoad(t,n):St(e,()=>a(t,n));return or(u)});return I(i).pipe(Bo(),Qw(r))}function Qw(e){return Ml(Ie(t=>{if(typeof t!="boolean")throw Dc(e,t)}),N(t=>t===!0))}function EP(e,t,n,r){let o=t.canMatch;if(!o||o.length===0)return I(!0);let i=o.map(s=>{let a=$o(s,e),u=fP(a)?a.canMatch(t,n):St(e,()=>a(t,n));return or(u)});return I(i).pipe(Bo(),Qw(r))}var bs=class{constructor(t){this.segmentGroup=t||null}},Es=class extends Error{constructor(t){super(),this.urlTree=t}};function Po(e){return Rn(new bs(e))}function IP(e){return Rn(new b(4e3,!1))}function xP(e){return Rn(Zw(!1,ct.GuardRejected))}var tp=class{constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return I(r);if(o.numberOfChildren>1||!o.children[L])return IP(`${t.redirectTo}`);o=o.children[L]}}applyRedirectCommands(t,n,r,o,i){if(typeof n!="string"){let a=n,{queryParams:u,fragment:c,routeConfig:l,url:d,outlet:h,params:f,data:p,title:g}=o,m=St(i,()=>a({params:f,data:p,queryParams:u,fragment:c,routeConfig:l,url:d,outlet:h,title:g}));if(m instanceof Cn)throw new Es(m);n=m}let s=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r);if(n[0]==="/")throw new Es(s);return s}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new Cn(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s={};return Object.entries(n.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(t,u,r,o)}),new Z(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new b(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}},np={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function _P(e,t,n,r,o){let i=Jw(e,t,n);return i.matched?(r=ZO(t,r),EP(r,t,n,o).pipe(N(s=>s===!0?i:y({},np)))):I(i)}function Jw(e,t,n){if(t.path==="**")return MP(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?y({},np):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||bO)(n,e,t);if(!o)return y({},np);let i={};Object.entries(o.posParams??{}).forEach(([a,u])=>{i[a]=u.path});let s=o.consumed.length>0?y(y({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function MP(e){return{matched:!0,parameters:e.length>0?Nw(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function _w(e,t,n,r){return n.length>0&&AP(e,n,r)?{segmentGroup:new Z(t,TP(r,new Z(n,e.children))),slicedSegments:[]}:n.length===0&&NP(e,n,r)?{segmentGroup:new Z(e.segments,SP(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new Z(e.segments,e.children),slicedSegments:n}}function SP(e,t,n,r){let o={};for(let i of n)if(bc(e,t,i)&&!r[Rt(i)]){let s=new Z([],{});o[Rt(i)]=s}return y(y({},r),o)}function TP(e,t){let n={};n[L]=t;for(let r of e)if(r.path===""&&Rt(r)!==L){let o=new Z([],{});n[Rt(r)]=o}return n}function AP(e,t,n){return n.some(r=>bc(e,t,r)&&Rt(r)!==L)}function NP(e,t,n){return n.some(r=>bc(e,t,r))}function bc(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function RP(e,t,n){return t.length===0&&!e.children[n]}var rp=class{};function OP(e,t,n,r,o,i,s="emptyOnly"){return new op(e,t,n,r,o,s,i).recognize()}var PP=31,op=class{constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new tp(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(t){return new b(4002,`'${t.segmentGroup}'`)}recognize(){let t=_w(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(N(({children:n,rootSnapshot:r})=>{let o=new ut(r,n),i=new yc("",o),s=BO(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(t){let n=new ko([],Object.freeze({}),Object.freeze(y({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),L,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,L,n).pipe(N(r=>({children:r,rootSnapshot:n})),Pn(r=>{if(r instanceof Es)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof bs?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,o,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,i):this.processSegment(t,n,r,r.segments,o,!0,i).pipe(N(s=>s instanceof ut?[s]:[]))}processChildren(t,n,r,o){let i=[];for(let s of Object.keys(r.children))s==="primary"?i.unshift(s):i.push(s);return te(i).pipe(Lt(s=>{let a=r.children[s],u=KO(n,s);return this.processSegmentGroup(t,u,a,s,o)}),Ma((s,a)=>(s.push(...a),s)),Fn(null),Ll(),le(s=>{if(s===null)return Po(r);let a=Xw(s);return FP(a),I(a)}))}processSegment(t,n,r,o,i,s,a){return te(n).pipe(Lt(u=>this.processSegmentAgainstRoute(u._injector??t,n,u,r,o,i,s,a).pipe(Pn(c=>{if(c instanceof bs)return I(null);throw c}))),kt(u=>!!u),Pn(u=>{if(Yw(u))return RP(r,o,i)?I(new rp):Po(r);throw u}))}processSegmentAgainstRoute(t,n,r,o,i,s,a,u){return Rt(r)!==s&&(s===L||!bc(o,i,r))?Po(o):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,o,r,i,s,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,u):Po(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:u,parameters:c,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=Jw(n,o,i);if(!u)return Po(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>PP&&(this.allowRedirects=!1));let f=new ko(i,c,Object.freeze(y({},this.urlTree.queryParams)),this.urlTree.fragment,Mw(o),Rt(o),o.component??o._loadedComponent??null,o,Sw(o)),p=vc(f,a,this.paramsInheritanceStrategy);f.params=Object.freeze(p.params),f.data=Object.freeze(p.data);let g=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,t);return this.applyRedirects.lineralizeSegments(o,g).pipe(le(m=>this.processSegment(t,r,n,m.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a=_P(n,r,o,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(Ee(u=>u.matched?(t=r._injector??t,this.getChildConfig(t,r,o).pipe(Ee(({routes:c})=>{let l=r._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:f}=u,p=new ko(h,d,Object.freeze(y({},this.urlTree.queryParams)),this.urlTree.fragment,Mw(r),Rt(r),r.component??r._loadedComponent??null,r,Sw(r)),g=vc(p,s,this.paramsInheritanceStrategy);p.params=Object.freeze(g.params),p.data=Object.freeze(g.data);let{segmentGroup:m,slicedSegments:D}=_w(n,h,f,c);if(D.length===0&&m.hasChildren())return this.processChildren(l,c,m,p).pipe(N(V=>new ut(p,V)));if(c.length===0&&D.length===0)return I(new ut(p,[]));let A=Rt(r)===i;return this.processSegment(l,c,m,D,A?L:i,!0,p).pipe(N(V=>new ut(p,V instanceof ut?[V]:[])))}))):Po(n)))}getChildConfig(t,n,r){return n.children?I({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?I({routes:n._loadedRoutes,injector:n._loadedInjector}):bP(t,n,r,this.urlSerializer).pipe(le(o=>o?this.configLoader.loadChildren(t,n).pipe(Ie(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):xP(n))):I({routes:[],injector:t})}};function FP(e){e.sort((t,n)=>t.value.outlet===L?-1:n.value.outlet===L?1:t.value.outlet.localeCompare(n.value.outlet))}function LP(e){let t=e.value.routeConfig;return t&&t.path===""}function Xw(e){let t=[],n=new Set;for(let r of e){if(!LP(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r)}for(let r of n){let o=Xw(r.children);t.push(new ut(r.value,o))}return t.filter(r=>!n.has(r))}function Mw(e){return e.data||{}}function Sw(e){return e.resolve||{}}function kP(e,t,n,r,o,i){return le(s=>OP(e,t,n,r,s.extractedUrl,o,i).pipe(N(({state:a,tree:u})=>U(y({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function jP(e,t){return le(n=>{let{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return I(n);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 eC(u))s.add(c);let a=0;return te(s).pipe(Lt(u=>i.has(u)?VP(u,r,e,t):(u.data=vc(u,u.parent,e).resolve,I(void 0))),Ie(()=>a++),uo(1),le(u=>a===s.size?I(n):Ne))})}function eC(e){let t=e.children.map(n=>eC(n)).flat();return[e,...t]}function VP(e,t,n,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!Ww(o)&&(i[Is]=o.title),UP(i,e,t,r).pipe(N(s=>(e._resolvedData=s,e.data=vc(e,e.parent,n).resolve,null)))}function UP(e,t,n,r){let o=Ph(e);if(o.length===0)return I({});let i={};return te(o).pipe(le(s=>BP(e[s],t,n,r).pipe(kt(),Ie(a=>{if(a instanceof Cs)throw Dc(new gs,a);i[s]=a}))),uo(1),Ti(i),Pn(s=>Yw(s)?Ne:Rn(s)))}function BP(e,t,n,r){let o=xs(t)??r,i=$o(e,o),s=i.resolve?i.resolve(t,n):St(o,()=>i(t,n));return or(s)}function Rh(e){return Ee(t=>{let n=e(t);return n?te(n).pipe(N(()=>t)):I(t)})}var tC=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===L);return r}getResolvedTitleForRoute(n){return n.data[Is]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>v($P),providedIn:"root"})}}return e})(),$P=(()=>{class e extends tC{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||e)(x(Cw))}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),cp=new E("",{providedIn:"root",factory:()=>({})}),HP=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=tv({type:e,selectors:[["ng-component"]],standalone:!0,features:[PD],decls:1,vars:0,template:function(r,o){r&1&&Kf(0,"router-outlet")},dependencies:[QO],encapsulation:2})}}return e})();function lp(e){let t=e.children&&e.children.map(lp),n=t?U(y({},e),{children:t}):y({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==L&&(n.component=HP),n}var dp=new E(""),zP=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=v(Xf)}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 r=or(n.loadComponent()).pipe(N(nC),Ie(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),Ln(()=>{this.componentLoaders.delete(n)})),o=new ro(r,()=>new ae).pipe(no());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return I({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=GP(r,this.compiler,n,this.onLoadEndListener).pipe(Ln(()=>{this.childrenLoaders.delete(r)})),s=new ro(i,()=>new ae).pipe(no());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function GP(e,t,n,r){return or(e.loadChildren()).pipe(N(nC),le(o=>o instanceof Ui||Array.isArray(o)?I(o):te(t.compileModuleAsync(o))),N(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(n).injector,s=i.get(dp,[],{optional:!0,self:!0}).flat()),{routes:s.map(lp),injector:i}}))}function WP(e){return e&&typeof e=="object"&&"default"in e}function nC(e){return WP(e)?e.default:e}var fp=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>v(qP),providedIn:"root"})}}return e})(),qP=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),ZP=new E("");var KP=new E(""),YP=(()=>{class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new ae,this.transitionAbortSubject=new ae,this.configLoader=v(zP),this.environmentInjector=v(Qe),this.urlSerializer=v(sp),this.rootContexts=v(Cc),this.location=v(ts),this.inputBindingEnabled=v(up,{optional:!0})!==null,this.titleStrategy=v(tC),this.options=v(cp,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=v(fp),this.createViewTransition=v(ZP,{optional:!0}),this.navigationErrorHandler=v(KP,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>I(void 0),this.rootComponentType=null;let n=o=>this.events.next(new Hh(o)),r=o=>this.events.next(new zh(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(U(y(y({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,o){return this.transitions=new Ae({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:hs,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(je(i=>i.id!==0),N(i=>U(y({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),Ee(i=>{let s=!1,a=!1;return I(i).pipe(Ee(u=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",ct.SupersededByNewNavigation),Ne;this.currentTransition=i,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,targetBrowserUrl:typeof u.extras.browserUrl=="string"?this.urlSerializer.parse(u.extras.browserUrl):u.extras.browserUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?U(y({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let c=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!c&&l!=="reload"){let d="";return this.events.next(new $r(u.id,this.urlSerializer.serialize(u.rawUrl),d,jh.IgnoredSameUrlNavigation)),u.resolve(!1),Ne}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return I(u).pipe(Ee(d=>{let h=this.transitions?.getValue();return this.events.next(new vs(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions?.getValue()?Ne:Promise.resolve(d)}),kP(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),Ie(d=>{i.targetSnapshot=d.targetSnapshot,i.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=U(y({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let h=new pc(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:d,extractedUrl:h,source:f,restoredState:p,extras:g}=u,m=new vs(d,this.urlSerializer.serialize(h),f,p);this.events.next(m);let D=zw(this.rootComponentType).snapshot;return this.currentTransition=i=U(y({},u),{targetSnapshot:D,urlAfterRedirects:h,extras:U(y({},g),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,I(i)}else{let d="";return this.events.next(new $r(u.id,this.urlSerializer.serialize(u.extractedUrl),d,jh.IgnoredByUrlHandlingStrategy)),u.resolve(!1),Ne}}),Ie(u=>{let c=new Vh(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}),N(u=>(this.currentTransition=i=U(y({},u),{guards:rP(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),i)),pP(this.environmentInjector,u=>this.events.next(u)),Ie(u=>{if(i.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw Dc(this.urlSerializer,u.guardsResult);let c=new Uh(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(c)}),je(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",ct.GuardRejected),!1)),Rh(u=>{if(u.guards.canActivateChecks.length)return I(u).pipe(Ie(c=>{let l=new Bh(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),Ee(c=>{let l=!1;return I(c).pipe(jP(this.paramsInheritanceStrategy,this.environmentInjector),Ie({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(c,"",ct.NoDataFromResolver)}}))}),Ie(c=>{let l=new $h(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}))}),Rh(u=>{let c=l=>{let d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(Ie(h=>{l.component=h}),N(()=>{})));for(let h of l.children)d.push(...c(h));return d};return Ia(c(u.targetSnapshot.root)).pipe(Fn(null),_e(1))}),Rh(()=>this.afterPreactivation()),Ee(()=>{let{currentSnapshot:u,targetSnapshot:c}=i,l=this.createViewTransition?.(this.environmentInjector,u.root,c.root);return l?te(l).pipe(N(()=>i)):I(i)}),N(u=>{let c=JO(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=i=U(y({},u),{targetRouterState:c}),this.currentNavigation.targetRouterState=c,i}),Ie(()=>{this.events.next(new Ds)}),nP(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),_e(1),Ie({next:u=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new bn(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{s=!0}}),Ta(this.transitionAbortSubject.pipe(Ie(u=>{throw u}))),Ln(()=>{!s&&!a&&this.cancelNavigationTransition(i,"",ct.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),Pn(u=>{if(a=!0,Kw(u))this.events.next(new wn(i.id,this.urlSerializer.serialize(i.extractedUrl),u.message,u.cancellationCode)),tP(u)?this.events.next(new Uo(u.url,u.navigationBehaviorOptions)):i.resolve(!1);else{let c=new ys(i.id,this.urlSerializer.serialize(i.extractedUrl),u,i.targetSnapshot??void 0);try{let l=St(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(l instanceof Cs){let{message:d,cancellationCode:h}=Dc(this.urlSerializer,l);this.events.next(new wn(i.id,this.urlSerializer.serialize(i.extractedUrl),d,h)),this.events.next(new Uo(l.redirectTo,l.navigationBehaviorOptions))}else{this.events.next(c);let d=n.errorHandler(u);i.resolve(!!d)}}catch(l){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(l)}}return Ne}))}))}cancelNavigationTransition(n,r,o){let i=new wn(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function QP(e){return e!==hs}var JP=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>v(XP),providedIn:"root"})}}return e})(),ip=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},XP=(()=>{class e extends ip{static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Le(e)))(o||e)}})()}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),rC=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:()=>v(eF),providedIn:"root"})}}return e})(),eF=(()=>{class e extends rC{constructor(){super(...arguments),this.location=v(ts),this.urlSerializer=v(sp),this.options=v(cp,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=v(fp),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Cn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=zw(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(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof vs)this.stateMemento=this.createStateMemento();else if(n instanceof $r)this.rawUrlTree=r.initialUrl;else if(n instanceof pc){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??o,r)}}else n instanceof Ds?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):n instanceof wn&&(n.code===ct.GuardRejected||n.code===ct.NoDataFromResolver)?this.restoreHistory(r):n instanceof ys?this.restoreHistory(r,!0):n instanceof bn&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let o=n instanceof Cn?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){let i=this.browserPageId,s=y(y({},r.extras.state),this.generateNgRouterState(r.id,i));this.location.replaceState(o,"",s)}else{let i=y(y({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(o,"",i)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.currentUrlTree===n.finalUrl&&i===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&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,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Le(e)))(o||e)}})()}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),ds=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(ds||{});function tF(e,t){e.events.pipe(je(n=>n instanceof bn||n instanceof wn||n instanceof ys||n instanceof $r),N(n=>n instanceof bn||n instanceof $r?ds.COMPLETE:(n instanceof wn?n.code===ct.Redirect||n.code===ct.SupersededByNewNavigation:!1)?ds.REDIRECTING:ds.FAILED),je(n=>n!==ds.REDIRECTING),_e(1)).subscribe(()=>{t()})}function nF(e){throw e}var rF={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},oF={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ec=(()=>{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=v(Uu),this.stateManager=v(rC),this.options=v(cp,{optional:!0})||{},this.pendingTasks=v(Kn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=v(YP),this.urlSerializer=v(sp),this.location=v(ts),this.urlHandlingStrategy=v(fp),this._events=new ae,this.errorHandler=this.options.errorHandler||nF,this.navigated=!1,this.routeReuseStrategy=v(JP),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=v(dp,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!v(up,{optional:!0}),this.eventsSubscription=new se,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(r=>{try{let o=this.navigationTransitions.currentTransition,i=this.navigationTransitions.currentNavigation;if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof wn&&r.code!==ct.Redirect&&r.code!==ct.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof bn)this.navigated=!0;else if(r instanceof Uo){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),u=y({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||QP(o.source)},s);this.scheduleNavigation(a,hs,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}sF(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});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),hs,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,o){let i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let u=y({},o);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(i.state=u)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(lp),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,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,c=u?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=y(y({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let h=o?o.snapshot:this.routerState.snapshot.root;d=Uw(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return Bw(d,n,l,c??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=Br(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,hs,null,r)}navigate(n,r={skipLocationChange:!1}){return iF(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=y({},rF):r===!1?o=y({},oF):o=r,Br(n))return bw(this.currentUrlTree,n,o);let i=this.parseUrl(n);return bw(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,u,c;s?(a=s.resolve,u=s.reject,c=s.promise):c=new Promise((d,h)=>{a=d,u=h});let l=this.pendingTasks.add();return tF(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function iF(e){for(let t=0;t{class e{constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a,this.href=null,this.onChanges=new ae,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=n.events.subscribe(c=>{c instanceof bn&&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.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Br(n)?this.routerLinkInput=n:this.routerLinkInput=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0"))}onClick(n,r,o,i,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(n!==0||r||o||i||s||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,u),!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 r=this.href===null?null:my(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(n,r){let o=this.renderer,i=this.el.nativeElement;r!==null?o.setAttribute(i,n,r):o.removeAttribute(i,n)}get urlTree(){return this.routerLinkInput===null?null:Br(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(r){return new(r||e)(w(Ec),w(Hr),xf("tabindex"),w(ot),w(Me),w(er))}}static{this.\u0275dir=z({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,o){r&1&>("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&kr("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Xn],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Xn],replaceUrl:[2,"replaceUrl","replaceUrl",Xn],routerLink:"routerLink"},standalone:!0,features:[Wf,rt]})}}return e})(),E7=(()=>{class e{get isActive(){return this._isActive}constructor(n,r,o,i,s){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new H,this.routerEventsSubscription=n.events.subscribe(a=>{a instanceof bn&&this.update()})}ngAfterContentInit(){I(this.links.changes,I(null)).pipe(On()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=te(n).pipe(On()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){let r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}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(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),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 r=aF(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let i=o.urlTree;return i?n.isActive(i,r):!1}}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}static{this.\u0275fac=function(r){return new(r||e)(w(Ec),w(Me),w(ot),w(At),w(Tw,8))}}static{this.\u0275dir=z({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,i){if(r&1&&SD(i,Tw,5),r&2){let s;TD(s=AD())&&(o.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[rt]})}}return e})();function aF(e){return!!e.paths}var uF=new E("");function I7(e,...t){return Gi([{provide:dp,multi:!0,useValue:e},[],{provide:Hr,useFactory:cF,deps:[Ec]},{provide:Bu,multi:!0,useFactory:dF},t.map(n=>n.\u0275providers)])}function cF(e){return e.routerState.root}function lF(e,t){return{\u0275kind:e,\u0275providers:t}}function dF(){let e=v(ft);return t=>{let n=e.get(Jn);if(t!==n.components[0])return;let r=e.get(Ec),o=e.get(fF);e.get(hF)===1&&r.initialNavigation(),e.get(pF,null,j.Optional)?.setUpPreloading(),e.get(uF,null,j.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var fF=new E("",{factory:()=>new ae}),hF=new E("",{providedIn:"root",factory:()=>1});var pF=new E("");function x7(){return lF(6,[{provide:er,useClass:QD}])}function oC(e){let t=e.split(/\D/).map(n=>Number(n));return new Date(t[0],t[1]-1,t[2],t[3],t[4],t[5])}function iC(e){let t=e.split(/\D/).map(n=>Number(n));return new Date(t[0],t[1]-1,t[2])}function sC(e){return hp(e)+`T${Ms(e.getHours())}:${Ms(e.getMinutes())}:${Ms(e.getSeconds())}`}function hp(e){return`${e.getFullYear()}-${Ms(e.getMonth()+1)}-${Ms(e.getDate())}`}function Ms(e){return("0"+e).slice(-2)}var gF=function(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r=e}:e;return function(){var r=Array.from(arguments);return n(arguments)?t.apply(this,r):function(o){return t.apply(void 0,gF([o],r,!1))}}};var uC=function(e){return e._tag==="Left"};var cC=function(e){return{_tag:"Left",left:e}},lC=function(e){return{_tag:"Right",right:e}};function pp(e){return function(t,n){return e.map(t,function(){return n})}}function dC(e){var t=pp(e);return function(n){return t(n,void 0)}}function fC(e){return function(t,n){return e.chain(t,function(r){return e.map(n(r),function(){return r})})}}var xc=cC,Ss=lC,hC=Ic(2,function(e,t){return pe(e)?e:t(e.right)}),pC=function(e,t){return ir(e,DF(t))},yF=function(e,t){return ir(e,CF(t))};var gp="Either";var DF=function(e){return function(t){return pe(t)?t:Ss(e(t.right))}},gC={URI:gp,map:pC},q7=Ic(2,pp(gC)),Z7=dC(gC);var wF=function(e){return function(t){return pe(t)?t:pe(e)?e:Ss(t.right(e.right))}},CF=wF;var bF={URI:gp,map:pC,ap:yF,chain:hC};var EF={URI:gp,fromEither:aC};var pe=uC;var IF=function(e,t){return function(n){return pe(n)?e(n.left):t(n.right)}};var xF=IF,_c=xF;var K7=Ic(2,fC(bF));var Y7={fromEither:EF.fromEither};var _F=function(e){return function(t){return pe(t)?e(t.left):t}},Q7=_F;var mp=hC;var Y=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ho=function(){return Ho=Object.assign||function(e){for(var t,n=1,r=arguments.length;n")}function sr(e,t,n,r){for(var o=e.length,i=Array(o+1),s=0;s")}function SF(e,t,n,r){r===void 0&&(r="{ [K in ".concat(t.name,"]: ").concat(n.name," }"));for(var o=e.length,i={},s=0;s0?Wr(s):K(c?i:r)}return DC(t)&&Array.isArray(r)?K(r):de(r,o)},e.encode===q&&t.encode===q?function(r){return mC(r,e)}:function(r){for(var o={},i=Object.keys(mC(r,e)),s=i.length,a=0;a")}function RF(e){return e.length>0}var lt={};function IC(e,t){for(var n=[],r=0,o=e;r")),new r1(t,function(n){return wC.is(n)&&n.every(e.is)},function(n,r){var o=wC.validate(n,r);if(pe(o))return o;for(var i=o.right,s=i.length,a=i,u=[],c=0;c0?Wr(u):K(a)},e.encode===q?q:function(n){return n.map(e.encode)},e)}var o1=function(e){Y(t,e);function t(n,r,o,i,s){var a=e.call(this,n,r,o,i)||this;return a.props=s,a._tag="InterfaceType",a}return t}($);function Dt(e,t){t===void 0&&(t=CC(e));var n=Object.keys(e),r=n.map(function(i){return e[i]}),o=n.length;return new o1(t,function(i){if(Ot.is(i)){for(var s=0;s0?Wr(l):K(c)},Mc(r)?q:function(i){for(var s=Ho({},i),a=0;a0?Wr(l):K(c)},Mc(r)?q:function(i){for(var s=Ho({},i),a=0;a0){var r=n[0],o=n[1],i=o.length,s=function(a){for(var u=0;u0?Wr(s):K(vC(r,i))},e.length===0?q:function(r){return vC(r,e.map(function(o){return o.encode(r)}))},e)}var uZ=function(e){Y(t,e);function t(n,r,o,i,s){var a=e.call(this,n,r,o,i)||this;return a.types=s,a._tag="TupleType",a}return t}($);var a1=function(e){Y(t,e);function t(n,r,o,i,s){var a=e.call(this,n,r,o,i)||this;return a.type=s,a._tag="ReadonlyType",a}return t}($);function cZ(e,t){return t===void 0&&(t="Readonly<".concat(e.name,">")),new a1(t,e.is,e.validate,e.encode,e)}var u1=function(e){Y(t,e);function t(n,r,o,i,s){var a=e.call(this,n,r,o,i)||this;return a.type=s,a._tag="ReadonlyArrayType",a}return t}($);function RC(e,t){t===void 0&&(t="ReadonlyArray<".concat(e.name,">"));var n=ze(e);return new u1(t,n.is,n.validate,n.encode,e)}var c1=function(e,t){return d1(Dt(e),t)},l1=function(e){Y(t,e);function t(n,r,o,i,s){var a=e.call(this,n,r,o,i)||this;return a.type=s,a._tag="ExactType",a}return t}($);function d1(e,t){t===void 0&&(t=NF(e));var n=Dp(e);return new l1(t,e.is,function(r,o){var i=Ot.validate(r,o);if(pe(i))return i;var s=e.validate(r,o);return pe(s)?s:Ss(yC(s.right,n))},function(r){return e.encode(yC(r,n))},e)}var f1=function(e){Y(t,e);function t(){var n=e.call(this,"Function",function(r){return typeof r=="function"},function(r,o){return n.is(r)?K(r):de(r,o)},q)||this;return n._tag="FunctionType",n}return t}($);var lZ=new f1,h1=function(e){Y(t,e);function t(){var n=e.call(this,"never",function(r){return!1},function(r,o){return de(r,o)},function(){throw new Error("cannot encode never")})||this;return n._tag="NeverType",n}return t}($);var dZ=new h1,p1=function(e){Y(t,e);function t(){var n=e.call(this,"any",function(r){return!0},K,q)||this;return n._tag="AnyType",n}return t}($);var fZ=new p1;function OC(e,t,n){return n===void 0&&(n="(".concat(e.name," | ").concat(wp(t),")")),new t1(n,function(r){return e.is(r)&&t(r)},function(r,o){var i=e.validate(r,o);if(pe(i))return i;var s=i.right;return t(s)?K(s):de(s,o)},e.encode,e,t)}var hZ=OC(ve,Number.isInteger,"Integer"),g1=function(e){Y(t,e);function t(n,r,o,i,s,a){var u=e.call(this,n,r,o,i,s)||this;return u.tag=a,u}return t}(NC);var pZ=function(e){return[{key:"",type:e}]};var m1=function(e){Y(t,e);function t(){var n=e.call(this,"object",function(r){return r!==null&&typeof r=="object"},function(r,o){return n.is(r)?K(r):de(r,o)},q)||this;return n._tag="ObjectType",n}return t}($);var gZ=new m1;var mZ=function(e){Y(t,e);function t(n,r,o,i,s){var a=e.call(this,n,r,o,i)||this;return a.props=s,a._tag="StrictType",a}return t}($);var v1=Cp("JsonArray",function(){return RC(bp)}),y1=Cp("JsonRecord",function(){return Go(X,bp)}),bp=Ns([SC,ve,X,As,v1,y1],"Json"),PC=new $("JsonFromString",bp.is,function(e,t){try{return K(JSON.parse(e))}catch{return de(e,t)}},function(e){return JSON.stringify(e)});function Os(e){return Ns([As,e])}function bZ(e){return Ns([As,Ts,e])}var EZ=Dt({Id:ve,HRef:Os(X)});var IZ=Dt({Id:Os(ve),HRef:Os(X)});var xZ=X.pipe(PC,"JsonFromUnknown"),_Z=new $("LocalDateTimeFromString",e=>e instanceof Date,(e,t)=>ir(X.validate(e,t),mp(n=>{let r=oC(n);return isNaN(r.getTime())?de(e,t):K(r)})),e=>sC(e)),MZ=new $("LocalDateTimeFromString",e=>e instanceof Date,(e,t)=>ir(X.validate(e,t),mp(n=>{let r=iC(n);return isNaN(r.getTime())?de(e,t):K(r)})),e=>hp(e));function TZ(e,t){return t.reduce((n,r)=>U(y({},n),{[r]:e[r]}),{})}function FC(e,t){let n=r=>Object.values(t).includes(r);return new $(e,n,(r,o)=>n(r)?K(r):de(r,o),q)}var LC=function(e){return e.Crystal="crystal",e.Excel="excel",e}(LC||{}),qr=Dt({type:FC("ReportType",LC),id:ve});var D1=Dt({de:Dt({label:X,description:X}),fr:Dt({label:X,description:X})}),w1=Go(X,D1),C1=Dt({roles:ze(X),types:ze(X)}),b1=Dt({substitutionsAdminLink:X}),FZ=Dt({apiUrl:X,scriptsAndAssetsPath:X,paginationLimit:ve,absencePresenceTypeId:ve,latePresenceTypeId:ve,dispensationPresenceTypeId:ve,halfDayPresenceTypeId:ve,unconfirmedAbsenceStateId:ve,unexcusedAbsenceStateId:ve,excusedAbsenceStateId:ve,checkableAbsenceStateId:ve,lessonPresencesRefreshTime:ve,unconfirmedAbsencesRefreshTime:Os(ve),personMasterDataReports:ze(qr),studentConfirmationReports:ze(qr),evaluateAbsencesReports:ze(qr),myAbsencesReports:ze(qr),testsByCourseReports:ze(qr),testsBySubscriptionStudentReports:ze(qr),testsBySubscriptionTeacherReports:ze(qr),subscriptionDetailGroupId:ve,headerRoleRestriction:Go(X,X),notificationTypes:w1,notificationTypesAssignments:ze(C1),eventlist:Go(X,X),dashboard:b1,preventStudentAbsenceAfterLessonStart:ze(X)});var LZ=new E("Application Settings",{providedIn:"root",factory:()=>window.schulverwaltung.settings});var WC=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static{this.\u0275fac=function(r){return new(r||e)(w(ot),w(Me))}}static{this.\u0275dir=z({type:e})}}return e})(),Qo=(()=>{class e extends WC{static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Le(e)))(o||e)}})()}static{this.\u0275dir=z({type:e,features:[xe]})}}return e})(),In=new E(""),E1={provide:In,useExisting:Pe(()=>I1),multi:!0},I1=(()=>{class e extends Qo{writeValue(n){this.setProperty("checked",n)}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Le(e)))(o||e)}})()}static{this.\u0275dir=z({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){r&1&>("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},features:[$e([E1]),xe]})}}return e})(),x1={provide:In,useExisting:Pe(()=>qC),multi:!0};function _1(){let e=yn()?yn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var M1=new E(""),qC=(()=>{class e extends WC{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!_1())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static{this.\u0275fac=function(r){return new(r||e)(w(ot),w(Me),w(M1,8))}}static{this.\u0275dir=z({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(r,o){r&1&>("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},features:[$e([x1]),xe]})}}return e})();function ar(e){return e==null||(typeof e=="string"||Array.isArray(e))&&e.length===0}function ZC(e){return e!=null&&typeof e.length=="number"}var cr=new E(""),Us=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])?)*$/,kC=class{static min(t){return KC(t)}static max(t){return YC(t)}static required(t){return QC(t)}static requiredTrue(t){return T1(t)}static email(t){return A1(t)}static minLength(t){return N1(t)}static maxLength(t){return R1(t)}static pattern(t){return O1(t)}static nullValidator(t){return Tc(t)}static compose(t){return rb(t)}static composeAsync(t){return ob(t)}};function KC(e){return t=>{if(ar(t.value)||ar(e))return null;let n=parseFloat(t.value);return!isNaN(n)&&n{if(ar(t.value)||ar(e))return null;let n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function QC(e){return ar(e.value)?{required:!0}:null}function T1(e){return e.value===!0?null:{required:!0}}function A1(e){return ar(e.value)||S1.test(e.value)?null:{email:!0}}function N1(e){return t=>ar(t.value)||!ZC(t.value)?null:t.value.lengthZC(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}function O1(e){if(!e)return Tc;let t,n;return typeof e=="string"?(n="",e.charAt(0)!=="^"&&(n+="^"),n+=e,e.charAt(e.length-1)!=="$"&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(ar(r.value))return null;let o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}function Tc(e){return null}function JC(e){return e!=null}function XC(e){return Qn(e)?te(e):e}function eb(e){let t={};return e.forEach(n=>{t=n!=null?y(y({},t),n):t}),Object.keys(t).length===0?null:t}function tb(e,t){return t.map(n=>n(e))}function P1(e){return!e.validate}function nb(e){return e.map(t=>P1(t)?t:n=>t.validate(n))}function rb(e){if(!e)return null;let t=e.filter(JC);return t.length==0?null:function(n){return eb(tb(n,t))}}function Sp(e){return e!=null?rb(nb(e)):null}function ob(e){if(!e)return null;let t=e.filter(JC);return t.length==0?null:function(n){let r=tb(n,t).map(XC);return Si(r).pipe(N(eb))}}function Tp(e){return e!=null?ob(nb(e)):null}function jC(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function ib(e){return e._rawValidators}function sb(e){return e._rawAsyncValidators}function Ep(e){return e?Array.isArray(e)?e:[e]:[]}function Ac(e,t){return Array.isArray(e)?e.includes(t):e===t}function VC(e,t){let n=Ep(t);return Ep(e).forEach(o=>{Ac(n,o)||n.push(o)}),n}function UC(e,t){return Ep(t).filter(n=>!Ac(e,n))}var Nc=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(t){this._rawValidators=t||[],this._composedValidatorFn=Sp(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Tp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},En=class extends Nc{get formDirective(){return null}get path(){return null}},Yt=class extends Nc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Rc=class{constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},F1={"[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"},XZ=U(y({},F1),{"[class.ng-submitted]":"isSubmitted"}),eK=(()=>{class e extends Rc{constructor(n){super(n)}static{this.\u0275fac=function(r){return new(r||e)(w(Yt,2))}}static{this.\u0275dir=z({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&ju("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[xe]})}}return e})(),tK=(()=>{class e extends Rc{constructor(n){super(n)}static{this.\u0275fac=function(r){return new(r||e)(w(En,10))}}static{this.\u0275dir=z({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&ju("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[xe]})}}return e})();var Ps="VALID",Sc="INVALID",Wo="PENDING",Fs="DISABLED",ur=class{},Oc=class extends ur{constructor(t,n){super(),this.value=t,this.source=n}},ks=class extends ur{constructor(t,n){super(),this.pristine=t,this.source=n}},js=class extends ur{constructor(t,n){super(),this.touched=t,this.source=n}},qo=class extends ur{constructor(t,n){super(),this.status=t,this.source=n}},Ip=class extends ur{constructor(t){super(),this.source=t}},xp=class extends ur{constructor(t){super(),this.source=t}};function Ap(e){return(kc(e)?e.validators:e)||null}function L1(e){return Array.isArray(e)?Sp(e):e||null}function Np(e,t){return(kc(t)?t.asyncValidators:e)||null}function k1(e){return Array.isArray(e)?Tp(e):e||null}function kc(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function ab(e,t,n){let r=e.controls;if(!(t?Object.keys(r):r).length)throw new b(1e3,"");if(!r[n])throw new b(1001,"")}function ub(e,t,n){e._forEachChild((r,o)=>{if(n[o]===void 0)throw new b(1002,"")})}var Ko=class{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Ro(()=>this.statusReactive()),this.statusReactive=No(void 0),this._pristine=Ro(()=>this.pristineReactive()),this.pristineReactive=No(!0),this._touched=Ro(()=>this.touchedReactive()),this.touchedReactive=No(!1),this._events=new ae,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return mt(this.statusReactive)}set status(t){mt(()=>this.statusReactive.set(t))}get valid(){return this.status===Ps}get invalid(){return this.status===Sc}get pending(){return this.status==Wo}get disabled(){return this.status===Fs}get enabled(){return this.status!==Fs}get pristine(){return mt(this.pristineReactive)}set pristine(t){mt(()=>this.pristineReactive.set(t))}get dirty(){return!this.pristine}get touched(){return mt(this.touchedReactive)}set touched(t){mt(()=>this.touchedReactive.set(t))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(VC(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(VC(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(UC(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(UC(t,this._rawAsyncValidators))}hasValidator(t){return Ac(this._rawValidators,t)}hasAsyncValidator(t){return Ac(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(U(y({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new js(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new js(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(U(y({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new ks(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new ks(!0,r))}markAsPending(t={}){this.status=Wo;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new qo(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(U(y({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Fs,this.errors=null,this._forEachChild(o=>{o.disable(U(y({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Oc(this.value,r)),this._events.next(new qo(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(U(y({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Ps,this._forEachChild(r=>{r.enable(U(y({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(U(y({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ps||this.status===Wo)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Oc(this.value,n)),this._events.next(new qo(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(U(y({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Fs:Ps}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Wo,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=XC(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new qo(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new H,this.statusChanges=new H}_calculateStatus(){return this._allControlsDisabled()?Fs:this.errors?Sc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Wo)?Wo:this._anyControlsHaveStatus(Sc)?Sc:Ps}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new ks(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new js(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){kc(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=L1(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=k1(this._rawAsyncValidators)}},Yo=class extends Ko{constructor(t,n,r){super(Ap(n),Np(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){ub(this,!0,t),Object.keys(t).forEach(r=>{ab(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(Object.keys(t).forEach(r=>{let o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t?t[o]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var _p=class extends Yo{};var Zr=new E("CallSetDisabledState",{providedIn:"root",factory:()=>Bs}),Bs="always";function cb(e,t){return[...t.path,e]}function Vs(e,t,n=Bs){Rp(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),V1(e,t),B1(e,t),U1(e,t),j1(e,t)}function Pc(e,t,n=!0){let r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),Lc(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Fc(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function j1(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function Rp(e,t){let n=ib(e);t.validator!==null?e.setValidators(jC(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=sb(e);t.asyncValidator!==null?e.setAsyncValidators(jC(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();Fc(t._rawValidators,o),Fc(t._rawAsyncValidators,o)}function Lc(e,t){let n=!1;if(e!==null){if(t.validator!==null){let o=ib(e);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==t.validator);i.length!==o.length&&(n=!0,e.setValidators(i))}}if(t.asyncValidator!==null){let o=sb(e);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==t.asyncValidator);i.length!==o.length&&(n=!0,e.setAsyncValidators(i))}}}let r=()=>{};return Fc(t._rawValidators,r),Fc(t._rawAsyncValidators,r),n}function V1(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&lb(e,t)})}function U1(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&lb(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function lb(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function B1(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function db(e,t){e==null,Rp(e,t)}function $1(e,t){return Lc(e,t)}function Op(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function H1(e){return Object.getPrototypeOf(e.constructor)===Qo}function fb(e,t){e._syncPendingControls(),t.forEach(n=>{let r=n.control;r.updateOn==="submit"&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function Pp(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===qC?n=i:H1(i)?r=i:o=i}),o||r||n||null}function z1(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var G1={provide:En,useExisting:Pe(()=>W1)},Ls=Promise.resolve(),W1=(()=>{class e extends En{get submitted(){return mt(this.submittedReactive)}constructor(n,r,o){super(),this.callSetDisabledState=o,this._submitted=Ro(()=>this.submittedReactive()),this.submittedReactive=No(!1),this._directives=new Set,this.ngSubmit=new H,this.form=new Yo({},Sp(n),Tp(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){Ls.then(()=>{let r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),Vs(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){Ls.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){Ls.then(()=>{let r=this._findContainer(n.path),o=new Yo({});db(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){Ls.then(()=>{let r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){Ls.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submittedReactive.set(!0),fb(this.form,this._directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submittedReactive.set(!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}static{this.\u0275fac=function(r){return new(r||e)(w(cr,10),w(Us,10),w(Zr,8))}}static{this.\u0275dir=z({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){r&1&>("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[$e([G1]),xe]})}}return e})();function BC(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function $C(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Zo=class extends Ko{constructor(t=null,n,r){super(Ap(n),Np(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),kc(n)&&(n.nonNullable||n.initialValueIsDefault)&&($C(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){BC(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){BC(this._onDisabledChange,t)}_forEachChild(t){}_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(t){$C(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},rK=Zo,q1=e=>e instanceof Zo;var Z1={provide:Yt,useExisting:Pe(()=>K1)},HC=Promise.resolve(),K1=(()=>{class e extends Yt{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new Zo,this._registered=!1,this.name="",this.update=new H,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=Pp(this,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),Op(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(){Vs(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){HC.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Xn(r);HC.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?cb(n,this._parent):[n]}static{this.\u0275fac=function(r){return new(r||e)(w(En,9),w(cr,10),w(Us,10),w(In,10),w(At,8),w(Zr,8))}}static{this.\u0275dir=z({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:[$e([Z1]),xe,rt]})}}return e})(),oK=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=z({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return e})(),Y1={provide:In,useExisting:Pe(()=>Q1),multi:!0},Q1=(()=>{class e extends Qo{writeValue(n){let r=n??"";this.setProperty("value",r)}registerOnChange(n){this.onChange=r=>{n(r==""?null:parseFloat(r))}}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Le(e)))(o||e)}})()}static{this.\u0275dir=z({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,o){r&1&>("input",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},features:[$e([Y1]),xe]})}}return e})(),J1={provide:In,useExisting:Pe(()=>eL),multi:!0};var X1=(()=>{class e{constructor(){this._accessors=[]}add(n,r){this._accessors.push([n,r])}remove(n){for(let r=this._accessors.length-1;r>=0;--r)if(this._accessors[r][1]===n){this._accessors.splice(r,1);return}}select(n){this._accessors.forEach(r=>{this._isSameGroup(r,n)&&r[1]!==n&&r[1].fireUncheck(n.value)})}_isSameGroup(n,r){return n[0].control?n[0]._parent===r._control._parent&&n[1].name===r.name:!1}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),eL=(()=>{class e extends Qo{constructor(n,r,o,i){super(n,r),this._registry=o,this._injector=i,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=v(Zr,{optional:!0})??Bs}ngOnInit(){this._control=this._injector.get(Yt),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)}static{this.\u0275fac=function(r){return new(r||e)(w(ot),w(Me),w(X1),w(ft))}}static{this.\u0275dir=z({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(r,o){r&1&>("change",function(){return o.onChange()})("blur",function(){return o.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[$e([J1]),xe]})}}return e})();var Fp=new E(""),tL={provide:Yt,useExisting:Pe(()=>nL)},nL=(()=>{class e extends Yt{set isDisabled(n){}static{this._ngModelWarningSentOnce=!1}constructor(n,r,o,i,s){super(),this._ngModelWarningConfig=i,this.callSetDisabledState=s,this.update=new H,this._ngModelWarningSent=!1,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=Pp(this,o)}ngOnChanges(n){if(this._isControlChanged(n)){let r=n.form.previousValue;r&&Pc(r,this,!1),Vs(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Op(n,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Pc(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_isControlChanged(n){return n.hasOwnProperty("form")}static{this.\u0275fac=function(r){return new(r||e)(w(cr,10),w(Us,10),w(In,10),w(Fp,8),w(Zr,8))}}static{this.\u0275dir=z({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[$e([tL]),xe,rt]})}}return e})(),rL={provide:En,useExisting:Pe(()=>oL)},oL=(()=>{class e extends En{get submitted(){return mt(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}constructor(n,r,o){super(),this.callSetDisabledState=o,this._submitted=Ro(()=>this._submittedReactive()),this._submittedReactive=No(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new H,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Lc(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 r=this.form.get(n.path);return Vs(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){Pc(n.control||null,n,!1),z1(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,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this._submittedReactive.set(!0),fb(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new Ip(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this._submittedReactive.set(!1),this.form._events.next(new xp(this.form))}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,o=this.form.get(n.path);r!==o&&(Pc(r||null,n),q1(o)&&(Vs(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);db(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&$1(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Rp(this.form,this),this._oldForm&&Lc(this._oldForm,this)}_checkFormPresent(){this.form}static{this.\u0275fac=function(r){return new(r||e)(w(cr,10),w(Us,10),w(Zr,8))}}static{this.\u0275dir=z({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&>("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[$e([rL]),xe,rt]})}}return e})();var iL={provide:Yt,useExisting:Pe(()=>sL)},sL=(()=>{class e extends Yt{set isDisabled(n){}static{this._ngModelWarningSentOnce=!1}constructor(n,r,o,i,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.name=null,this.update=new H,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=Pp(this,i)}ngOnChanges(n){this._added||this._setUpControl(),Op(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 cb(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}static{this.\u0275fac=function(r){return new(r||e)(w(En,13),w(cr,10),w(Us,10),w(In,10),w(Fp,8))}}static{this.\u0275dir=z({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[$e([iL]),xe,rt]})}}return e})(),aL={provide:In,useExisting:Pe(()=>pb),multi:!0};function hb(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function uL(e){return e.split(":")[0]}var pb=(()=>{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 r=this._getOptionId(n),o=hb(r,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){let r=uL(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Le(e)))(o||e)}})()}static{this.\u0275dir=z({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){r&1&>("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[$e([aL]),xe]})}}return e})(),iK=(()=>{class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(hb(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(r){return new(r||e)(w(Me),w(ot),w(pb,9))}}static{this.\u0275dir=z({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return e})(),cL={provide:In,useExisting:Pe(()=>gb),multi:!0};function zC(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function lL(e){return e.split(":")[0]}var gb=(()=>{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 r;if(Array.isArray(n)){let o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let o=[],i=r.selectedOptions;if(i!==void 0){let s=i;for(let a=0;a{let n;return function(o){return(n||(n=Le(e)))(o||e)}})()}static{this.\u0275dir=z({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){r&1&>("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},features:[$e([cL]),xe]})}}return e})(),sK=(()=>{class e{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(zC(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(zC(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(r){return new(r||e)(w(Me),w(ot),w(gb,9))}}static{this.\u0275dir=z({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return e})();function mb(e){return typeof e=="number"?e:parseFloat(e)}var Lp=(()=>{class e{constructor(){this._validator=Tc}ngOnChanges(n){if(this.inputName in n){let r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Tc,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=z({type:e,features:[rt]})}}return e})(),dL={provide:cr,useExisting:Pe(()=>fL),multi:!0},fL=(()=>{class e extends Lp{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=n=>mb(n),this.createValidator=n=>YC(n)}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Le(e)))(o||e)}})()}static{this.\u0275dir=z({type:e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&kr("max",o._enabled?o.max:null)},inputs:{max:"max"},features:[$e([dL]),xe]})}}return e})(),hL={provide:cr,useExisting:Pe(()=>pL),multi:!0},pL=(()=>{class e extends Lp{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=n=>mb(n),this.createValidator=n=>KC(n)}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Le(e)))(o||e)}})()}static{this.\u0275dir=z({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&kr("min",o._enabled?o.min:null)},inputs:{min:"min"},features:[$e([hL]),xe]})}}return e})(),gL={provide:cr,useExisting:Pe(()=>mL),multi:!0};var mL=(()=>{class e extends Lp{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Xn,this.createValidator=n=>QC}enabled(n){return n}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Le(e)))(o||e)}})()}static{this.\u0275dir=z({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,o){r&2&&kr("required",o._enabled?"":null)},inputs:{required:"required"},features:[$e([gL]),xe]})}}return e})();var vb=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Gt({type:e})}static{this.\u0275inj=zt({})}}return e})(),Mp=class extends Ko{constructor(t,n,r){super(Ap(n),Np(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,n={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(t,n,r={}){this.controls.splice(t,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(t,n={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(t,n,r={}){let o=this._adjustIndex(t);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),n&&(this.controls.splice(o,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,n={}){ub(this,!1,t),t.forEach((r,o)=>{ab(this,!1,o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(t.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t=[],n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((n,r)=>r._syncPendingControls()?!0:n,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((n,r)=>{t(n,r)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(n=>n.enabled&&t(n))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function GC(e){return!!e&&(e.asyncValidators!==void 0||e.validators!==void 0||e.updateOn!==void 0)}var vL=(()=>{class e{constructor(){this.useNonNullable=!1}get nonNullable(){let n=new e;return n.useNonNullable=!0,n}group(n,r=null){let o=this._reduceControls(n),i={};return GC(r)?i=r:r!==null&&(i.validators=r.validator,i.asyncValidators=r.asyncValidator),new Yo(o,i)}record(n,r=null){let o=this._reduceControls(n);return new _p(o,r)}control(n,r,o){let i={};return this.useNonNullable?(GC(r)?i=r:(i.validators=r,i.asyncValidators=o),new Zo(n,U(y({},i),{nonNullable:!0}))):new Zo(n,r,o)}array(n,r,o){let i=n.map(s=>this._createControl(s));return new Mp(i,r,o)}_reduceControls(n){let r={};return Object.keys(n).forEach(o=>{r[o]=this._createControl(n[o])}),r}_createControl(n){if(n instanceof Zo)return n;if(n instanceof Ko)return n;if(Array.isArray(n)){let r=n[0],o=n.length>1?n[1]:null,i=n.length>2?n[2]:null;return this.control(r,o,i)}else return this.control(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var aK=(()=>{class e extends vL{group(n,r=null){return super.group(n,r)}control(n,r,o){return super.control(n,r,o)}array(n,r,o){return super.array(n,r,o)}static{this.\u0275fac=(()=>{let n;return function(o){return(n||(n=Le(e)))(o||e)}})()}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var uK=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Zr,useValue:n.callSetDisabledState??Bs}]}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Gt({type:e})}static{this.\u0275inj=zt({imports:[vb]})}}return e})(),cK=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Fp,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Zr,useValue:n.callSetDisabledState??Bs}]}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=Gt({type:e})}static{this.\u0275inj=zt({imports:[vb]})}}return e})();function yL(e,t){for(var n=-1,r=t.length,o=e.length;++n0&&n(a)?t>1?xb(a,t-1,n,r,o):Jo(o,a):r||(o[o.length]=a)}return o}var _b=xb;function UL(e){var t=e==null?0:e.length;return t?_b(e,1):[]}var BL=UL;function $L(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var wt=$L;var HL="[object AsyncFunction]",zL="[object Function]",GL="[object GeneratorFunction]",WL="[object Proxy]";function qL(e){if(!wt(e))return!1;var t=Pt(e);return t==zL||t==GL||t==HL||t==WL}var Vc=qL;var ZL=De["__core-js_shared__"],Uc=ZL;var Mb=function(){var e=/[^.]+$/.exec(Uc&&Uc.keys&&Uc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function KL(e){return!!Mb&&Mb in e}var Sb=KL;var YL=Function.prototype,QL=YL.toString;function JL(e){if(e!=null){try{return QL.call(e)}catch{}try{return e+""}catch{}}return""}var xn=JL;var XL=/[\\^$.*+?()[\]{}|]/g,ek=/^\[object .+?Constructor\]$/,tk=Function.prototype,nk=Object.prototype,rk=tk.toString,ok=nk.hasOwnProperty,ik=RegExp("^"+rk.call(ok).replace(XL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function sk(e){if(!wt(e)||Sb(e))return!1;var t=Vc(e)?ik:ek;return t.test(xn(e))}var Tb=sk;function ak(e,t){return e?.[t]}var Ab=ak;function uk(e,t){var n=Ab(e,t);return Tb(n)?n:void 0}var tt=uk;var ck=tt(Object,"create"),_n=ck;function lk(){this.__data__=_n?_n(null):{},this.size=0}var Nb=lk;function dk(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Rb=dk;var fk="__lodash_hash_undefined__",hk=Object.prototype,pk=hk.hasOwnProperty;function gk(e){var t=this.__data__;if(_n){var n=t[e];return n===fk?void 0:n}return pk.call(t,e)?t[e]:void 0}var Ob=gk;var mk=Object.prototype,vk=mk.hasOwnProperty;function yk(e){var t=this.__data__;return _n?t[e]!==void 0:vk.call(t,e)}var Pb=yk;var Dk="__lodash_hash_undefined__";function wk(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=_n&&t===void 0?Dk:t,this}var Fb=wk;function ei(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1}var Vb=Sk;function Tk(e,t){var n=this.__data__,r=lr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Ub=Tk;function ni(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1}var Xb=Gk;function Wk(e,t,n){for(var r=-1,o=e==null?0:e.length;++r=Xk){var c=t?null:nE(e);if(c)return oi(c);s=!1,o=Hc,u=new $c}else u=t?[]:a;e:for(;++r-1&&e%1==0&&e-1&&e%1==0&&e<=Cj}var ai=bj;function Ej(e){return e!=null&&ai(e.length)&&!Vc(e)}var ui=Ej;var Ij=Object.prototype;function xj(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Ij;return e===n}var ci=xj;function _j(e,t){for(var n=-1,r=Array(e);++no?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:TE(e,t,n)}var AE=kV;var jV="\\ud800-\\udfff",VV="\\u0300-\\u036f",UV="\\ufe20-\\ufe2f",BV="\\u20d0-\\u20ff",$V=VV+UV+BV,HV="\\ufe0e\\ufe0f",zV="\\u200d",GV=RegExp("["+zV+jV+$V+HV+"]");function WV(e){return GV.test(e)}var el=WV;function qV(e){return e.split("")}var NE=qV;var RE="\\ud800-\\udfff",ZV="\\u0300-\\u036f",KV="\\ufe20-\\ufe2f",YV="\\u20d0-\\u20ff",QV=ZV+KV+YV,JV="\\ufe0e\\ufe0f",XV="["+RE+"]",$p="["+QV+"]",Hp="\\ud83c[\\udffb-\\udfff]",eU="(?:"+$p+"|"+Hp+")",OE="[^"+RE+"]",PE="(?:\\ud83c[\\udde6-\\uddff]){2}",FE="[\\ud800-\\udbff][\\udc00-\\udfff]",tU="\\u200d",LE=eU+"?",kE="["+JV+"]?",nU="(?:"+tU+"(?:"+[OE,PE,FE].join("|")+")"+kE+LE+")*",rU=kE+LE+nU,oU="(?:"+[OE+$p+"?",$p,PE,FE,XV].join("|")+")",iU=RegExp(Hp+"(?="+Hp+")|"+oU+rU,"g");function sU(e){return e.match(iU)||[]}var jE=sU;function aU(e){return el(e)?jE(e):NE(e)}var VE=aU;function uU(e){return function(t){t=Ct(t);var n=el(t)?VE(t):void 0,r=n?n[0]:t.charAt(0),o=n?AE(n,1).join(""):t.slice(1);return r[e]()+o}}var UE=uU;var cU=UE("toUpperCase"),BE=cU;function lU(e){return BE(Ct(e).toLowerCase())}var $E=lU;function dU(e,t,n,r){var o=-1,i=e==null?0:e.length;for(r&&i&&(n=e[++o]);++oa))return!1;var c=i.get(e),l=i.get(t);if(c&&l)return c==t&&l==e;var d=-1,h=!0,f=n&q2?new $c:void 0;for(i.set(e,t),i.set(t,e);++d0?"Infinity":"-Infinity":JSON.stringify(e)}function eH(e){return e.map(function(t){var n=t.key,r=t.type;return"".concat(n,": ").concat(r.name)}).join("/")}function tH(e){return e.message!==void 0?e.message:"Invalid value ".concat(X$(e.value)," supplied to ").concat(eH(e.context))}function nH(e){return e.map(tH)}function rH(){return["No errors!"]}var Tx={report:_c(nH,rH)};var Wp=class extends Error{constructor(){super(...arguments),this.name="DecodeError"}};function oH(e){return t=>ir(e.decode(t),_c(n=>Rn(()=>new Wp(Tx.report(xc(n)).join(` +`))),n=>I(n)))}function tie(e){return oH(ze(e))}var Di=class{},Ax=(()=>{class e extends Di{getTranslation(n){return I({})}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Le(e)))(o||e)}})();static \u0275prov=C({token:e,factory:e.\u0275fac})}return e})(),Gs=class{},Nx=(()=>{class e{handle(n){return n.key}static \u0275fac=function(r){return new(r||e)};static \u0275prov=C({token:e,factory:e.\u0275fac})}return e})();function fl(e,t){if(e===t)return!0;if(e===null||t===null)return!1;if(e!==e&&t!==t)return!0;let n=typeof e,r=typeof t,o,i,s;if(n==r&&n=="object")if(Array.isArray(e)){if(!Array.isArray(t))return!1;if((o=e.length)==t.length){for(i=0;i{qp(t[r])?r in e?n[r]=Px(e[r],t[r]):Object.assign(n,{[r]:t[r]}):Object.assign(n,{[r]:t[r]})}),n}var wi=class{},Rx=(()=>{class e extends wi{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(n,r){let o;return typeof n=="string"?o=this.interpolateString(n,r):typeof n=="function"?o=this.interpolateFunction(n,r):o=n,o}getValue(n,r){let o=typeof r=="string"?r.split("."):[r];r="";do r+=o.shift(),yr(n)&&yr(n[r])&&(typeof n[r]=="object"||!o.length)?(n=n[r],r=""):o.length?r+=".":n=void 0;while(o.length);return n}interpolateFunction(n,r){return n(r)}interpolateString(n,r){return r?n.replace(this.templateMatcher,(o,i)=>{let s=this.getValue(r,i);return yr(s)?s:o}):n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Le(e)))(o||e)}})();static \u0275prov=C({token:e,factory:e.\u0275fac})}return e})(),Ci=class{},Ox=(()=>{class e extends Ci{compile(n,r){return n}compileTranslations(n,r){return n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Le(e)))(o||e)}})();static \u0275prov=C({token:e,factory:e.\u0275fac})}return e})(),hl=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new H;onLangChange=new H;onDefaultLangChange=new H},Zp=new E("USE_STORE"),Kp=new E("USE_DEFAULT_LANG"),Yp=new E("DEFAULT_LANGUAGE"),Qp=new E("USE_EXTEND"),Jp=(()=>{class e{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new H;_onLangChange=new H;_onDefaultLangChange=new H;_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(n){this.isolate?this._defaultLang=n:this.store.defaultLang=n}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(n){this.isolate?this._currentLang=n:this.store.currentLang=n}get langs(){return this.isolate?this._langs:this.store.langs}set langs(n){this.isolate?this._langs=n:this.store.langs=n}get translations(){return this.isolate?this._translations:this.store.translations}set translations(n){this.isolate?this._translations=n:this.store.translations=n}constructor(n,r,o,i,s,a=!0,u=!1,c=!1,l){this.store=n,this.currentLoader=r,this.compiler=o,this.parser=i,this.missingTranslationHandler=s,this.useDefaultLang=a,this.isolate=u,this.extend=c,l&&this.setDefaultLang(l)}setDefaultLang(n){if(n===this.defaultLang)return;let r=this.retrieveTranslations(n);typeof r<"u"?(this.defaultLang==null&&(this.defaultLang=n),r.pipe(_e(1)).subscribe(o=>{this.changeDefaultLang(n)})):this.changeDefaultLang(n)}getDefaultLang(){return this.defaultLang}use(n){if(n===this.currentLang)return I(this.translations[n]);let r=this.retrieveTranslations(n);return typeof r<"u"?(this.currentLang||(this.currentLang=n),r.pipe(_e(1)).subscribe(o=>{this.changeLang(n)}),r):(this.changeLang(n),I(this.translations[n]))}retrieveTranslations(n){let r;return(typeof this.translations[n]>"u"||this.extend)&&(this._translationRequests[n]=this._translationRequests[n]||this.getTranslation(n),r=this._translationRequests[n]),r}getTranslation(n){this.pending=!0;let r=this.currentLoader.getTranslation(n).pipe(Ai(1),_e(1));return this.loadingTranslations=r.pipe(N(o=>this.compiler.compileTranslations(o,n)),Ai(1),_e(1)),this.loadingTranslations.subscribe({next:o=>{this.translations[n]=this.extend&&this.translations[n]?y(y({},o),this.translations[n]):o,this.updateLangs(),this.pending=!1},error:o=>{this.pending=!1}}),r}setTranslation(n,r,o=!1){r=this.compiler.compileTranslations(r,n),(o||this.extend)&&this.translations[n]?this.translations[n]=Px(this.translations[n],r):this.translations[n]=r,this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}getLangs(){return this.langs}addLangs(n){n.forEach(r=>{this.langs.indexOf(r)===-1&&this.langs.push(r)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(n,r,o){let i;if(r instanceof Array){let s={},a=!1;for(let u of r)s[u]=this.getParsedResult(n,u,o),It(s[u])&&(a=!0);if(a){let u=r.map(c=>It(s[c])?s[c]:I(s[c]));return Si(u).pipe(N(c=>{let l={};return c.forEach((d,h)=>{l[r[h]]=d}),l}))}return s}if(n&&(i=this.parser.interpolate(this.parser.getValue(n,r),o)),typeof i>"u"&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],r),o)),typeof i>"u"){let s={key:r,translateService:this};typeof o<"u"&&(s.interpolateParams=o),i=this.missingTranslationHandler.handle(s)}return typeof i<"u"?i:r}get(n,r){if(!yr(n)||!n.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Lt(o=>(o=this.getParsedResult(o,n,r),It(o)?o:I(o))));{let o=this.getParsedResult(this.translations[this.currentLang],n,r);return It(o)?o:I(o)}}getStreamOnTranslationChange(n,r){if(!yr(n)||!n.length)throw new Error('Parameter "key" required');return nt(rn(()=>this.get(n,r)),this.onTranslationChange.pipe(Ee(o=>{let i=this.getParsedResult(o.translations,n,r);return typeof i.subscribe=="function"?i:I(i)})))}stream(n,r){if(!yr(n)||!n.length)throw new Error('Parameter "key" required');return nt(rn(()=>this.get(n,r)),this.onLangChange.pipe(Ee(o=>{let i=this.getParsedResult(o.translations,n,r);return It(i)?i:I(i)})))}instant(n,r){if(!yr(n)||!n.length)throw new Error('Parameter "key" required');let o=this.getParsedResult(this.translations[this.currentLang],n,r);if(It(o)){if(n instanceof Array){let i={};return n.forEach((s,a)=>{i[n[a]]=n[a]}),i}return n}else return o}set(n,r,o=this.currentLang){this.translations[o][n]=this.compiler.compile(r,o),this.updateLangs(),this.onTranslationChange.emit({lang:o,translations:this.translations[o]})}changeLang(n){this.currentLang=n,this.onLangChange.emit({lang:n,translations:this.translations[n]}),this.defaultLang==null&&this.changeDefaultLang(n)}changeDefaultLang(n){this.defaultLang=n,this.onDefaultLangChange.emit({lang:n,translations:this.translations[n]})}reloadLang(n){return this.resetLang(n),this.getTranslation(n)}resetLang(n){this._translationRequests[n]=void 0,this.translations[n]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let n=window.navigator.languages?window.navigator.languages[0]:null;if(n=n||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,!(typeof n>"u"))return n.indexOf("-")!==-1&&(n=n.split("-")[0]),n.indexOf("_")!==-1&&(n=n.split("_")[0]),n}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let n=window.navigator.languages?window.navigator.languages[0]:null;return n=n||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,n}static \u0275fac=function(r){return new(r||e)(x(hl),x(Di),x(Ci),x(wi),x(Gs),x(Kp),x(Zp),x(Qp),x(Yp))};static \u0275prov=C({token:e,factory:e.\u0275fac})}return e})();var fie=(()=>{class e{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(n,r){this.translate=n,this._ref=r}updateValue(n,r,o){let i=s=>{this.value=s!==void 0?s:n,this.lastKey=n,this._ref.markForCheck()};if(o){let s=this.translate.getParsedResult(o,n,r);It(s.subscribe)?s.subscribe(i):i(s)}this.translate.get(n,r).subscribe(i)}transform(n,...r){if(!n||!n.length)return n;if(fl(n,this.lastKey)&&fl(r,this.lastParams))return this.value;let o;if(yr(r[0])&&r.length)if(typeof r[0]=="string"&&r[0].length){let i=r[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: ${r[0]}`)}}else typeof r[0]=="object"&&!Array.isArray(r[0])&&(o=r[0]);return this.lastKey=n,this.lastParams=r,this.updateValue(n,o),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(i=>{this.lastKey&&i.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(n,o,i.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(i=>{this.lastKey&&(this.lastKey=null,this.updateValue(n,o,i.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(n,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(r){return new(r||e)(w(Jp,16),w(At,16))};static \u0275pipe=So({name:"translate",type:e,pure:!1});static \u0275prov=C({token:e,factory:e.\u0275fac})}return e})(),hie=(()=>{class e{static forRoot(n={}){return{ngModule:e,providers:[n.loader||{provide:Di,useClass:Ax},n.compiler||{provide:Ci,useClass:Ox},n.parser||{provide:wi,useClass:Rx},n.missingTranslationHandler||{provide:Gs,useClass:Nx},hl,{provide:Zp,useValue:n.isolate},{provide:Kp,useValue:n.useDefaultLang},{provide:Qp,useValue:n.extend},{provide:Yp,useValue:n.defaultLanguage},Jp]}}static forChild(n={}){return{ngModule:e,providers:[n.loader||{provide:Di,useClass:Ax},n.compiler||{provide:Ci,useClass:Ox},n.parser||{provide:wi,useClass:Rx},n.missingTranslationHandler||{provide:Gs,useClass:Nx},{provide:Zp,useValue:n.isolate},{provide:Kp,useValue:n.useDefaultLang},{provide:Qp,useValue:n.extend},{provide:Yp,useValue:n.defaultLanguage},Jp]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=Gt({type:e});static \u0275inj=zt({})}return e})();var iH="uiCulture",sH="CLX.LoginToken",aH="CLX.RefreshToken",uH="CLX.TokenExpire",mie=(()=>{class e{getLanguage(){return this.getValue(iH)}getAccessToken(){let n=this.getValue(sH);return n?n.replace(/^"+|"+$/g,""):null}getRefreshToken(){return this.getValue(aH)}getTokenExpire(){return this.getValue(uH)}getPayload(){let n=this.getAccessToken(),r=n?n.split(".")[1]:null,o=r?r.replace("-","+").replace("_","/"):null,i=JSON.parse(window.atob(o||""));return i.roles="holder_roles"in i?i.holder_roles:i.roles,i}getValue(n){return sessionStorage.getItem(n)||localStorage.getItem(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();export{y as a,U as b,Vx as c,qs as d,P as e,ae as f,Ae as g,xi as h,e_ as i,t_ as j,Ne as k,I as l,Rn as m,N as n,Ia as o,le as p,rn as q,y_ as r,Si as s,Pl as t,on as u,x_ as v,__ as w,je as x,S_ as y,A_ as z,N_ as A,Pn as B,Lt as C,Wg as D,Fn as E,_e as F,R_ as G,Zg as H,F_ as I,Ln as J,Ma as K,jl as L,Ai as M,L_ as N,Sa as O,Ee as P,k_ as Q,Ta as R,Ie as S,j_ as T,V_ as U,b as V,Pe as W,C as X,zt as Y,E as Z,x as _,v as $,tv as aa,Gt as ba,z as ca,So as da,M0 as ea,Qe as fa,fv as ga,rt as ha,d5 as ia,f5 as ja,h5 as ka,p5 as la,Le as ma,xf as na,ft as oa,_f as pa,H as qa,ge as ra,cn as sa,Me as ta,g5 as ua,aS as va,m5 as wa,w as xa,OS as ya,Vi as za,xo as Aa,ot as Ba,Lr as Ca,Zt as Da,xe as Ea,w5 as Fa,Wf as Ga,dA as Ha,ho as Ia,pA as Ja,lD as Ka,kr as La,TA as Ma,ju as Na,C5 as Oa,b5 as Pa,E5 as Qa,I5 as Ra,x5 as Sa,_5 as Ta,M5 as Ua,S5 as Va,CD as Wa,bD as Xa,Kf as Ya,ED as Za,ID as _a,GA as $a,T5 as ab,qA as bb,gt as cb,A5 as db,N5 as eb,R5 as fb,rN as gb,MD as hb,SD as ib,O5 as jb,TD as kb,AD as lb,P5 as mb,F5 as nb,iN as ob,ND as pb,sN as qb,aN as rb,uN as sb,cN as tb,L5 as ub,lN as vb,dN as wb,k5 as xb,j5 as yb,$e as zb,PD as Ab,V5 as Bb,U5 as Cb,B5 as Db,$5 as Eb,H5 as Fb,z5 as Gb,G5 as Hb,W5 as Ib,q5 as Jb,Z5 as Kb,Jn as Lb,Xi as Mb,At as Nb,Xn as Ob,kN as Pb,K5 as Qb,Be as Rb,ts as Sb,XN as Tb,pR as Ub,m9 as Vb,v9 as Wb,y9 as Xb,D9 as Yb,w9 as Zb,C9 as _b,b9 as $b,SR as ac,Dn as bc,nr as cc,ow as dc,yh as ec,tr as fc,LR as gc,F9 as hc,L9 as ic,pw as jc,r7 as kc,DO as lc,L as mc,gs as nc,vs as oc,bn as pc,Zh as qc,Hr as rc,QO as sc,Ec as tc,Tw as uc,E7 as vc,I7 as wc,x7 as xc,Q7 as yc,de as zc,K as Ac,$ as Bc,X as Cc,ve as Dc,SC as Ec,rZ as Fc,oZ as Gc,ze as Hc,Dt as Ic,sZ as Jc,Ns as Kc,aZ as Lc,cZ as Mc,pZ as Nc,iC as Oc,Os as Pc,bZ as Qc,EZ as Rc,IZ as Sc,xZ as Tc,_Z as Uc,MZ as Vc,TZ as Wc,FZ as Xc,LZ as Yc,In as Zc,I1 as _c,qC as $c,cr as ad,kC as bd,eK as cd,tK as dd,W1 as ed,rK as fd,K1 as gd,oK as hd,Q1 as id,eL as jd,nL as kd,oL as ld,sL as md,pb as nd,iK as od,sK as pd,fL as qd,pL as rd,mL as sd,aK as td,uK as ud,cK as vd,BL as wd,zp as xd,tB as yd,z2 as zd,G$ as Ad,q$ as Bd,nj as Cd,K$ as Dd,J$ as Ed,oH as Fd,tie as Gd,Di as Hd,Jp as Id,fie as Jd,hie as Kd,mie as Ld}; diff --git a/public/apps/webapp-schulverwaltung/chunk-IMBPAJBQ.js b/public/apps/webapp-schulverwaltung/chunk-IMBPAJBQ.js new file mode 100644 index 00000000..8c7c0fac --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-IMBPAJBQ.js @@ -0,0 +1,3 @@ +import{a as _t}from"./chunk-Y4QYVF5K.js";import{a as Tt}from"./chunk-OFB4XAK2.js";import{b as Gt,c as Pt,d as Dt}from"./chunk-WACRWBCS.js";import{b as wt}from"./chunk-UGBTF4Z2.js";import{a as oe}from"./chunk-KK2SHN2W.js";import{A as Te,a as It,b as St,c as bt,d as vt,e as Ct,p as xt,q as yt,u as ye}from"./chunk-LGOOC47H.js";import{$b as rt,$c as at,Ab as $,Bb as Ye,Cb as Se,Cc as c,D as Ee,Dc as s,Ec as M,Fd as ae,Gb as m,Gd as q,H as Xe,Ha as T,Hb as I,Hc as G,Ib as W,Ic as v,Id as xe,Jb as Ze,Jc as be,Jd as F,K as Je,Kd as j,Lc as Oe,M as $e,Ma as P,Mb as et,Na as Re,P as y,Pc as a,R as Me,Ra as _,Ua as ee,Ub as tt,Uc as se,Va as te,Wa as p,Wc as st,X as O,Xa as l,Xb as it,Ya as ie,Yc as K,Zb as N,_ as C,_b as nt,a as V,aa as D,ab as ne,b as H,bd as Fe,c as We,cb as k,cd as ve,da as Q,db as S,f as fe,fd as ot,g as B,gb as Ie,gc as re,gd as dt,h as le,ha as L,ia as Y,id as lt,ja as Z,kd as pt,l as De,m as Ke,mb as ce,n as f,nb as u,nd as ct,o as pe,ob as R,od as ut,pb as b,pd as mt,qa as Qe,qd as gt,rd as ft,s as he,ud as Ce,vd as ht,w as qe,wa as o,wb as ue,x as ze,xa as E,xb as me,yb as U}from"./chunk-IFJN5CDK.js";var ai=(t,r)=>r.Key,oi=t=>({width:t});function di(t,r){if(t&1&&(p(0,"option",1),u(1),m(2,"translate"),l()),t&2){let e=S();P("ngValue",null),o(),b(" ",I(2,2,e.emptyLabel)," ")}}function li(t,r){if(t&1&&(p(0,"option",1),u(1),l()),t&2){let e=r.$implicit;P("ngValue",e),o(),b(" ",e.Value," ")}}var Et=(()=>{class t{constructor(){this.options=[],this.allowEmpty=!0,this.emptyLabel="",this.value=null,this.disabled=!1,this.tabindex=0,this.width="auto",this.valueChange=new Qe,this.options$=new B([]),this.rawValue$=new B(null),this.value$=pe([this.rawValue$,this.options$]).pipe(f(([e,i])=>i&&i.find(n=>n.Key===e)||null))}ngOnChanges(e){e.value&&this.rawValue$.next(e.value.currentValue),e.options&&this.options$.next(e.options.currentValue)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=D({type:t,selectors:[["bkd-select"]],inputs:{options:"options",allowEmpty:"allowEmpty",emptyLabel:"emptyLabel",value:"value",disabled:"disabled",tabindex:"tabindex",width:"width"},outputs:{valueChange:"valueChange"},standalone:!0,features:[L,$],decls:6,vars:9,consts:[[1,"form-select",3,"ngModelChange","tabindex","ngStyle","disabled","ngModel"],[3,"ngValue"]],template:function(i,n){i&1&&(p(0,"select",0),m(1,"async"),k("ngModelChange",function(x){return n.valueChange.emit(x&&x.Key)}),T(2,di,3,4,"option",1),ee(3,li,2,2,"option",1,ai),u(5,` > +`),l()),i&2&&(Ie("tabindex",n.tabindex),P("ngStyle",Se(7,oi,n.width))("disabled",n.disabled)("ngModel",I(1,5,n.value$)),o(2),_(n.allowEmpty?2:-1),o(),te(n.options))},dependencies:[Ce,ut,mt,ct,ve,dt,N,it,j,F],changeDetection:0})}}return t})();var $t=v({Id:s,Designation:c,StudentCount:s,Number:c});var je=v({Id:c,TestId:s,CourseRegistrationId:s,GradeId:a(s),GradeValue:a(s),GradeDesignation:a(c),Points:a(s),StudentId:s});var Mt=v({Id:s,CourseId:s,Date:se,Designation:c,Weight:s,WeightPercent:s,IsPointGrading:M,MaxPoints:a(s),MaxPointsAdjusted:a(s),IsPublished:M,IsOwner:M,Owner:a(c),GradingScaleId:a(s),Results:a(G(je))});var Rt=v({Id:s}),Ot=be({HRef:a(c)}),pi=be({HasEvaluationStarted:M,EvaluationUntil:a(se),HasReviewOfEvaluationStarted:M,HasTestGrading:M,Id:s}),ci=Oe([Rt,Ot,pi]),ui=be({Id:s,StudentCount:s}),mi=Oe([Rt,Ot,ui]),gi=v({Grade:c,AverageTestResult:s,Id:s,StudentId:s}),Ae=v({AverageTestResult:s,CanGrade:M,EventId:s,GradeId:a(s),GradeValue:a(s),Id:s,StudentId:s}),de=v({HRef:c,Id:s,Number:c,Designation:c,DateFrom:a(se),DateTo:a(se),StatusId:s,GradingScaleId:a(s),FinalGrades:a(G(gi)),Gradings:a(G(Ae)),Tests:a(G(Mt)),EvaluationStatusRef:ci,AttendanceRef:mi,ParticipatingStudents:a(G(Pt)),Classes:a(G($t))}),Ft=v({TestResults:G(je),Gradings:G(Ae)}),jt=v({Gradings:G(Ae)});var _e=(()=>{class t extends oe{constructor(e,i){super(e,i,de,"Courses"),this.statusCodec=v(st(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(y(q(this.statusCodec)),f(e=>e.filter(i=>i.EvaluationStatusRef.HasEvaluationStarted===!0)),f(e=>e.length))}getExpandedCourses(e){return _t(e,"TeacherRole")?this.http.get(`${this.baseUrl}/?expand=EvaluationStatusRef,AttendanceRef,Classes,FinalGrades&filter.StatusId=;${this.settings.eventlist.statusfilter}`,{headers:{"X-Role-Restriction":"TeacherRole"}}).pipe(y(q(de))):De([])}getExpandedCourse(e){return this.http.get(`${this.baseUrl}/${e}?expand=ParticipatingStudents,EvaluationStatusRef,Tests,Gradings,FinalGrades,Classes`).pipe(y(ae(de)))}getExpandedCoursesForDossier(){return this.http.get(`${this.baseUrl}/?expand=Tests,Gradings,FinalGrades,EvaluationStatusRef,ParticipatingStudents,Classes&filter.StatusId=;${this.settings.eventlist.statusfilter}`).pipe(y(q(de)))}getExpandedCoursesForStudent(){return this.http.get(`${this.baseUrl}/?expand=Tests,Gradings,FinalGrades&filter.StatusId=;${this.settings.eventlist.statusfilter}`,{headers:{"X-Role-Restriction":"StudentRole"}}).pipe(y(q(de)))}add(e,i,n,d,x,A,g){let h={Tests:[{Date:i,Designation:n,Weight:d,IsPointGrading:x,MaxPoints:A,MaxPointsAdjusted:g}]};return this.http.put(`${this.baseUrl}/${e}/Tests/New`,h).pipe(f(()=>{}))}update(e,i,n,d,x,A,g,h){let J={Tests:[{Id:i,Designation:n,Date:d,Weight:x,IsPointGrading:A,MaxPoints:g,MaxPointsAdjusted:h}]};return this.http.put(`${this.baseUrl}/${e}/Tests/Update`,J).pipe(f(()=>{}))}delete(e,i){let n={TestIds:[i]};return this.http.put(`${this.baseUrl}/${e}/Tests/Delete`,n).pipe(f(()=>i))}updateTestResult(e,i){let h=i,{studentId:n,testId:d}=h,x=We(h,["studentId","testId"]),A={StudentIds:[n],TestId:d},g="gradeId"in x?H(V({},A),{GradeId:x.gradeId}):H(V({},A),{Points:x.points});return this.http.put(`${this.baseUrl}/${e}/SetTestResult`,g).pipe(y(ae(Ft)),y(({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(y(ae(jt)))}publishTest(e){let i={TestIds:[e]};return this.http.put(`${this.baseUrl}/PublishTest`,i).pipe(f(()=>e))}unpublishTest(e){let i={TestIds:[e]};return this.http.put(`${this.baseUrl}/UnpublishTest`,i).pipe(f(()=>e))}static{this.\u0275fac=function(i){return new(i||t)(C(re),C(K))}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function kt(t){return t.length===0?0:Be(t.map(({value:r,weight:e})=>r*e))/Be(t.map(({weight:r})=>r))}function ke(t){return t.length===0?0:Number(Be(t)/t.length)}function Be(t){return t.reduce(fi,0)}function fi(t,r){return t+r}function Tn(t,r,e){return t?t.Tests?.reduce((i,n)=>i||n.Id===r&&n.Results?.find(d=>d.TestId===r&&d.StudentId===e)||null,null)??null:null}function _n(t,r,e){return r.map(i=>i.Id===t.TestId?Ve(t,i,e):i)}function Gn(t,r,e){return e.map(i=>i.Id===t?hi(r,i):i)}function Pn(t,r){return r.map(e=>e.Id===t?H(V({},e),{IsPublished:!e.IsPublished}):e)}function wn(t){let r=Si(t);if(r.length===0)throw new Error("unable to calculate averages without results");return ke(r)}function Ne(t){return t.MaxPointsAdjusted||t.MaxPoints}function Dn(t){let r=Ii(t);if(r.length===0)throw new Error("unable to calculate averages without results");return ke(r)}function X(t,r){return r.Results?.find(e=>e.StudentId===t)}function En(t,r){return r===null?null:r.filter(e=>e.Id!==t)}function Ve(t,r,e){let i=e&&r.Results?.find(d=>d.TestId===t.TestId&&d.StudentId===t.StudentId),n=r.Results?.filter(d=>!(d.TestId===t.TestId&&d.StudentId===t.StudentId))||[];return i&&e==="grade"?t.GradeId=i.GradeId:i&&e==="points"&&(t.Points=i.Points),H(V({},r),{Results:[...n,t]})}function Vt(t){return t.slice().sort((r,e)=>e.Date.getTime()-r.Date.getTime())}function Ge(t,r){return r?.find(e=>e.Id===t.GradingScaleId)||null}function hi(t,r){return H(V({},r),{Results:r.Results?.filter(e=>e.StudentId!==t)||[]})}function Ii(t){return t.Results?.filter(r=>r.GradeDesignation!==null).map(r=>Number(r.GradeDesignation)).filter(r=>!isNaN(r))||[]}function Si(t){return t.Results?.map(r=>r.Points!==null?r.Points:Nt).filter(r=>r>Nt)||[]}var Nt=-1;var He=v({Id:c,SubscriptionId:s,VssId:s,EventId:s,DropdownItems:a(G(Tt)),IdPerson:s,ShowAsRadioButtons:M,Value:a(c)}),Ht=v({Id:s,CurrentWorkProgressId:a(c||a(s)),EventId:a(s),PersonId:a(s),Status:c,StatusId:a(s),IsOkay:a(M),IsQueued:a(M),EventDesignation:a(c),EventInformation:a(c||s),EventNotes:a(c||s),CheckPersonalInformation:a(M),CorrespondencePersonId:a(s),CorrespondenceAddressTypeId:a(c||s),Billing1PersonId:a(s),Billing1AddressTypeId:a(c||s),Billing2PersonId:a(c||s),Billing2AddressTypeId:a(c||s),KindOfPaymentId1:a(c||s),KindOfPaymentEmail1:a(c||s),KindOfPaymentId2:a(c||s),KindOfPaymentEmail2:a(c||s),IdObject:a(s),IdSubscription:a(s),IdStatus:a(s),AnsweredQuestions:a(c||s),Messages:a(c||s),SubscriptionDetails:a(G(He)),HRef:a(c)});var Lt=(()=>{class t extends oe{constructor(e,i){super(e,i,He,"Subscriptions")}getIdSubscriptionsByStudentAndCourse(e,i){return this.http.get(`${this.settings.apiUrl}/Subscriptions/?filter.PersonId==${e}&filter.EventId=;${i}`).pipe(y(q(Ht)))}static{this.\u0275fac=function(i){return new(i||t)(C(re),C(K))}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var vi=v({Id:s,Designation:c}),Le=v({Id:s,Grades:G(vi)});var Ut=(()=>{class t extends oe{constructor(e,i){super(e,i,Le,"GradingScales")}getGradingScale(e){return this.http.get(`${this.baseUrl}/${e}`).pipe(y(ae(Le)))}getGradingScales(e){return he(e.map(this.getGradingScale.bind(this)))}static{this.\u0275fac=function(i){return new(i||t)(C(re),C(K))}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Pe=(()=>{class t{constructor(e,i,n,d,x,A){this.coursesRestService=e,this.subscriptionRestService=i,this.reportsService=n,this.loadingService=d,this.gradingScalesRestService=x,this.settings=A,this.studentId$=new le(1),this.initialStudentCourses$=this.studentId$.pipe(Xe(),y(this.loadCourses.bind(this)),f(g=>g.sort((h,J)=>h.Designation.localeCompare(J.Designation))),$e(1)),this.action$=new le(1),this.studentCourses$=qe(this.action$,this.initialStudentCourses$.pipe(f(g=>({type:"initializeCourses",payload:g})))).pipe(Je(this.coursesReducer.bind(this),[]),$e(1)),this.loading$=this.loadingService.loading$,this.studentCourseIds$=this.studentCourses$.pipe(f(g=>g.flatMap(h=>h.Id))),this.idSubscriptions$=pe([this.studentId$,this.studentCourseIds$]).pipe(y(([g,h])=>this.subscriptionRestService.getIdSubscriptionsByStudentAndCourse(g,h))),this.ids$=this.idSubscriptions$.pipe(f(g=>g.map(h=>h.Id))),this.testReports$=this.ids$.pipe(f(g=>this.reportsService.getTeacherSubscriptionReports(g))),this.tests$=this.studentCourses$.pipe(f(g=>g.flatMap(h=>h.Tests).filter(ye))),this.gradingScaleIdsFromTests$=this.tests$.pipe(f(g=>[...g.map(h=>h.GradingScaleId)].filter(ye).filter(Te))),this.gradingScaleIdsFromCourses$=this.studentCourses$.pipe(f(g=>g.flatMap(h=>h.GradingScaleId).filter(ye).filter(Te))),this.gradingScaleIds$=pe([this.gradingScaleIdsFromCourses$,this.gradingScaleIdsFromTests$]).pipe(f(([g,h])=>g.concat(h).filter(Te))),this.gradingScales$=this.gradingScaleIds$.pipe(y(g=>he(g.map(h=>this.gradingScalesRestService.getGradingScale(h)))))}setStudentId(e){this.studentId$.next(e)}getFinalGradeForStudent(e,i){return e?.FinalGrades?.find(n=>n.StudentId===i)}getGradingForStudent(e,i){return e?.Gradings?.find(n=>n.StudentId===i)}getGradingScaleOfCourse(e,i){return i?.find(n=>n.Id===e.GradingScaleId)}getGradesForStudent(e,i,n){return e.Tests?.flatMap(d=>({value:Number(Ge(d,n)?.Grades.find(A=>A.Id===X(i,d)?.GradeId)?.Designation),weight:d.Weight})).filter(({value:d})=>!!d)||[]}updateStudentCourses(e){this.action$.next({type:"updateCourses",payload:e})}loadCourses(e){return this.loadingService.load(this.coursesRestService.getExpandedCoursesForDossier().pipe(f(i=>i.filter(n=>n.ParticipatingStudents?.find(d=>d.Id===e)))))}coursesReducer(e,i){switch(i.type){case"initializeCourses":return i.payload;case"updateCourses":return this.updateCourses([...e],i.payload);default:return e}}updateCourses(e,i){return e.map(n=>H(V({},n),{Tests:n.Tests!==null?n.Tests.map(d=>d.Id===i.Id?i:d):null}))}static{this.\u0275fac=function(i){return new(i||t)(C(_e),C(Lt),C(Dt),C(wt),C(Ut),C(K))}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac})}}return t})();var Kt=(()=>{class t{constructor(){}get inIframe(){return window.parent!==window}get window(){return this.inIframe?window.parent:null}get document(){return this.window?.document.documentElement??null}querySelector(e){return this.window?.document?.querySelector("bkd-portal")?.shadowRoot?.querySelector(e)??null}getIframeElement(){return this.querySelector("bkd-content")?.shadowRoot?.querySelector("iframe")??null}getIframeTop(){return this.getIframeElement()?.offsetTop??0}getIFrameBottom(){let e=this.getIframeElement();return e?e.offsetTop+e.offsetHeight:0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var qt=(()=>{class t{constructor(e,i){this.modal=e,this.portal=i}open(...e){let i=this.modal.open(...e);return this.applyPortalOffsetAndMaxHeight(i),this.disablePortalScrolling(i),i}get activeInstances(){return this.modal.activeInstances}dismissAll(...e){return this.modal.dismissAll(...e)}hasOpenModals(...e){return this.modal.hasOpenModals(...e)}applyPortalOffsetAndMaxHeight(e){let i=this.getModalWindowElement(e);if(!i){console.warn("Trying to apply portal offset to , but element is not present!");return}this.portal.window&&(i.style.top=`${this.getModalIframeOffset()}px`,i.style.maxHeight=`${this.getModalHeight()}px`)}disablePortalScrolling(e){if(this.portal.window&&this.portal.document){let i=this.portal.window.innerWidth-this.portal.document.clientWidth;this.portal.document.style.paddingRight=`${i}px`,this.portal.document.style.overflow="hidden"}e.hidden.subscribe(()=>{this.portal.document&&(this.portal.document.style.paddingRight="0px",this.portal.document.style.overflow="auto")})}getModalWindowElement(e){return e._windowCmptRef?.instance?._elRef?.nativeElement??null}getModalIframeOffset(){return Math.max(this.getViewportTop()-this.portal.getIframeTop(),0)}getModalTop(){return Math.max(this.getViewportTop(),this.portal.getIframeTop())}getModalBottom(){return Math.min(this.getViewportBottom(),this.portal.getIFrameBottom())}getModalHeight(){return this.getModalBottom()-this.getModalTop()}getViewportTop(){return this.portal.window?.scrollY??0}getViewportBottom(){return this.getViewportTop()+this.getViewportHeight()}getViewportHeight(){return this.portal.window?.innerHeight??0}static{this.\u0275fac=function(i){return new(i||t)(C(yt),C(Kt))}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function we(t,r,e){return r?r.Grade:_i(t,e)||t?.GradeValue}function _i(t,r){return r?.Grades.find(e=>e.Id===t?.GradeId)?.Designation}var Gi="1-3",Xt="\u2013",Jt=(()=>{class t{constructor(e){this.locale=e}transform(e,i,n){let d=Number(e??null);return isNaN(d)?Xt:Pi(Number(e??null),n??this.locale,i)}static{this.\u0275fac=function(i){return new(i||t)(E(et,16))}}static{this.\u0275pipe=Q({name:"decimalOrDash",type:t,pure:!0,standalone:!0})}}return t})();function Pi(t,r,e){return t===0?Xt:tt(t,r,`1.${wi(e)}`)}function wi(t){return t?String(t).includes("-")?String(t):`${t}-${t}`:Gi}var Qt=(()=>{class t{constructor(){}getGradeForStudent(){return we(this.grading,this.finalGrade,this.gradingScale)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\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(i,n){i&1&&(p(0,"div",0)(1,"div"),u(2),m(3,"translate"),l(),p(4,"div",1)(5,"span"),u(6),l()(),p(7,"div"),u(8),m(9,"translate"),l(),p(10,"div",2)(11,"span"),u(12),m(13,"decimalOrDash"),l()()()),i&2&&(o(2),R(I(3,4,"dossier.grade")),o(4),R(n.getGradeForStudent()||"\u2013"),o(2),R(I(9,6,"dossier.average")),o(4),R(W(13,8,n.average,"1-3")))},dependencies:[j,F,Jt],styles:[".final-entry[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:repeat(2,1fr)}span[_ngcontent-%COMP%]{margin-left:2em}"]})}}return t})();var Yt=(()=>{class t{constructor(e){this.translate=e}transform(e,i,n,d="tests.points"){return e.IsPointGrading&&(e.IsPublished||n)?`${X(i,e)?.Points||"\u2013"} / ${e.MaxPointsAdjusted||e.MaxPoints} ${this.translate.instant(d)}`:""}static{this.\u0275fac=function(i){return new(i||t)(E(xe,16))}}static{this.\u0275pipe=Q({name:"bkdTestPoints",type:t,pure:!0,standalone:!0})}}return t})();var Zt=(()=>{class t{constructor(e){this.translate=e}transform(e){return`${this.translate.instant("tests.factor")} ${e.Weight} (${e.WeightPercent}%)`}static{this.\u0275fac=function(i){return new(i||t)(E(xe,16))}}static{this.\u0275pipe=Q({name:"bkdTestWeight",type:t,pure:!0,standalone:!0})}}return t})();var Di=t=>({maxPoints:t});function Ei(t,r){if(t&1&&(p(0,"div",13),u(1),m(2,"translate"),l()),t&2){let e=S(2);o(),b(" ",W(2,1,"global.validation-errors.invalidPoints",Se(4,Di,e.maxPoints))," ")}}function $i(t,r){if(t&1){let e=ne();p(0,"div",3)(1,"label",11),u(2),m(3,"translate"),l(),p(4,"div",6)(5,"input",12,0),k("input",function(){Y(e);let n=ce(6),d=S();return Z(d.onPointsChange(n.value))}),l()(),T(7,Ei,3,6,"div",13),l()}if(t&2){let e=S();o(2),R(I(3,8,"dossier.dialog.points")),o(2),Re("is-invalid",e.pointsInput.errors),o(),Re("is-invalid",e.pointsInput.errors),Ie("max",e.maxPoints),P("formControl",e.pointsInput),o(2),_(e.pointsInput.errors?7:-1)}}var ei=500,ti=(()=>{class t{constructor(e,i){this.activeModal=e,this.courseService=i,this.maxPoints=0,this.gradeSubject$=new fe,this.pointsSubject$=new fe,this.closeButtonDisabled$=new B(!1),this.gradingScaleDisabled$=new B(!0),this.grade$=this.gradeSubject$.pipe(Ee(ei)),this.points$=this.pointsSubject$.pipe(Ee(ei),ze(this.isValid.bind(this)),f(Number)),this.destroy$=new fe}ngOnInit(){this.maxPoints=Ne(this.test),this.pointsInput=new ot({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:i})=>{this.gradeId=i?.GradeId??null,this.updatedTestResult=i,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)>Ne(this.test)?{customMax:!0}:null}static{this.\u0275fac=function(i){return new(i||t)(E(xt),E(_e))}}static{this.\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"],[1,"form-group","row"],[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"],["for","points",1,"col-6","col-form-label"],["id","points","type","number","step","0.01","min","0",1,"form-control",3,"input","max","formControl"],["data-testid","validation-error-message",1,"invalid-feedback","col-6","offset-6"]],template:function(i,n){i&1&&(p(0,"div",1)(1,"p",2),u(2),l(),T(3,$i,8,10,"div",3),p(4,"div",4)(5,"label",5),u(6),m(7,"translate"),l(),p(8,"div",6)(9,"bkd-select",7),m(10,"async"),k("valueChange",function(x){return x&&n.onGradeChange(x)}),l()()(),p(11,"p",8),u(12),m(13,"translate"),l()(),p(14,"div",9)(15,"button",10),m(16,"async"),k("click",function(){return n.activeModal.close(n.updatedTestResult)}),u(17),m(18,"translate"),l()()),i&2&&(o(2),R(n.test.Designation),o(),_(n.test.IsPointGrading?3:-1),o(3),R(I(7,10,"dossier.dialog.grade")),o(3),P("options",n.gradeOptions)("value",n.gradeId)("allowEmpty",!1)("disabled",I(10,12,n.gradingScaleDisabled$)),o(3),b(" ",I(13,14,n.test.IsPointGrading?"dossier.dialog.hint.points":"dossier.dialog.hint.grade")," "),o(3),P("disabled",I(16,16,n.closeButtonDisabled$)),o(2),b(" ",I(18,18,"dossier.dialog.close")," "))},dependencies:[Ce,at,lt,ve,ft,gt,ht,pt,Et,N,j,F]})}}return t})();function Mi(t,r){if(t&1){let e=ne();p(0,"a",10),k("click",function(){Y(e);let n=S(2),d=U(0);return Z(n.editGrading(d))}),p(1,"i",11),u(2,"edit"),l(),p(3,"span",5),u(4),l()()}if(t&2){S(2);let e=U(2);o(4),R(e)}}function Ri(t,r){if(t&1&&(p(0,"span",5),u(1),l()),t&2){S(2);let e=U(2);o(),R(e)}}function Oi(t,r){if(t&1&&(p(0,"div",9),u(1),m(2,"translate"),l()),t&2){S(2);let e=U(0);o(),b(" ",I(2,1,e.IsPublished?"tests.published":"tests.not-published")," ")}}function Fi(t,r){if(t&1&&(p(0,"div",0)(1,"div",1),u(2),l(),p(3,"div",2),u(4),m(5,"date"),l(),p(6,"div",3),T(7,Mi,5,1,"a",4)(8,Ri,2,1,"span",5),l(),p(9,"div",6),u(10),m(11,"bkdTestWeight"),l(),p(12,"div",7)(13,"span"),u(14),m(15,"bkdTestPoints"),l()(),p(16,"div",8),u(17),l(),T(18,Oi,3,3,"div",9),l()),t&2){let e=S(),i=U(0);o(2),b(" ",i.Designation," "),o(2),b(" ",W(5,7,i.Date,"dd.MM.yyyy")," "),o(3),_(e.isEditable&&i.IsOwner?7:8),o(3),b(" ",I(11,10,i)," "),o(4),R(Ze(15,12,i,e.studentId,e.isEditable,"dossier.points")),o(3),b(" ",i.Owner," "),o(),_(e.isEditable?18:-1)}}var ii=(()=>{class t{constructor(e,i){this.gradeService=e,this.modalService=i,this.test$=new le(1),this.grading$=this.test$.pipe(f(this.getGrading.bind(this)))}ngOnChanges(e){e.test&&this.test$.next(this.test)}editGrading(e){let i=this.modalService.open(ti,{backdrop:"static"});i.componentInstance.test=e,i.componentInstance.gradeId=this.getGradeId(e),i.componentInstance.gradeOptions=t.mapToOptions(this.gradingScale),i.componentInstance.studentId=this.studentId,i.componentInstance.points=this.getPoints(e),i.result.then(n=>{n&&this.updateStudentGrade(n,e)},()=>{})}updateStudentGrade(e,i){let n=Ve(e,i);this.gradeService.updateStudentCourses(n)}getGrading(e){return this.gradingScale?.Grades.find(i=>i.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(i=>({Key:i.Id,Value:i.Designation}))||null}static{this.\u0275fac=function(i){return new(i||t)(E(Pe),E(qt))}}static{this.\u0275cmp=D({type:t,selectors:[["bkd-dossier-single-test"]],inputs:{test:"test",studentId:"studentId",gradingScale:"gradingScale",isEditable:"isEditable"},standalone:!0,features:[L,$],decls:5,vars:7,consts:[[1,"test-entry"],["data-testid","test-designation",1,"designation"],["data-testid","test-date",1,"date"],[1,"grade"],["aria-label","edit grade",1,"btn","btn-link"],["data-testid","test-grade"],["data-testid","test-factor",1,"factor"],["data-testid","test-points",1,"points"],["data-testid","test-teacher",1,"teacher"],["data-testid","test-status",1,"state"],["aria-label","edit grade",1,"btn","btn-link",3,"click"],["data-testid","test-grade-edit-icon",1,"material-icons"]],template:function(i,n){if(i&1&&(ue(0),m(1,"async"),ue(2),m(3,"async"),T(4,Fi,19,17,"div",0)),i&2){let d=me(I(1,1,n.test$));o(2),me(I(3,4,n.grading$)),o(2),_(d?4:-1)}},dependencies:[N,nt,j,F,Yt,Zt],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 t})();var ji=(t,r)=>r.Id,Ai=()=>[];function Bi(t,r){if(t&1&&ie(0,"bkd-dossier-single-test",2),t&2){let e=r.$implicit,i=S(2);P("test",e)("studentId",i.studentId)("gradingScale",i.getGradingScaleOfTest(e))("isEditable",i.isEditable)}}function ki(t,r){if(t&1&&(p(0,"div"),ie(1,"bkd-dossier-grades-final-grade",1),ee(2,Bi,1,4,"bkd-dossier-single-test",2,ji),l()),t&2){let e=S(),i=U(0);o(),P("finalGrade",e.decoratedCourse.finalGrade)("grading",e.decoratedCourse.grading)("gradingScale",e.decoratedCourse.gradingScale)("average",e.decoratedCourse.average),o(),te(i)}}function Ni(t,r){t&1&&(p(0,"p",0),u(1),m(2,"translate"),l()),t&2&&(o(),b(" ",I(2,1,"dossier.no-tests")," "))}var ni=(()=>{class t{ngOnChanges(e){e.decoratedCourse&&this.sortedTests$.next(this.sortedTests())}constructor(){this.sortedTests$=new B([])}sortedTests(){return this.decoratedCourse.course.Tests?Vt(this.decoratedCourse.course.Tests):[]}getGradingScaleOfTest(e){return Ge(e,this.gradingScales)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=D({type:t,selectors:[["bkd-dossier-course-tests"]],inputs:{studentId:"studentId",decoratedCourse:"decoratedCourse",gradingScales:"gradingScales",isEditable:"isEditable"},standalone:!0,features:[L,$],decls:4,vars:5,consts:[["data-testid","message-no-tests",1,"p-3"],[3,"finalGrade","grading","gradingScale","average"],[3,"test","studentId","gradingScale","isEditable"]],template:function(i,n){if(i&1&&(ue(0),m(1,"async"),T(2,ki,4,4,"div")(3,Ni,3,3,"p",0)),i&2){let d,x=me((d=I(1,1,n.sortedTests$))!==null&&d!==void 0?d:Ye(4,Ai));o(2),_(x.length>0?2:3)}},dependencies:[Qt,ii,N,j,F]})}}return t})();function Vi(t,r){if(t&1&&(p(0,"span",0),u(1),l()),t&2){let e=S();o(),b(" (",e.grade,")")}}function Hi(t,r){if(t&1&&(p(0,"span",1),u(1),m(2,"number"),l()),t&2){let e=S();o(),b(" (",W(2,1,e.average,"1.1-3"),")")}}var ri=(()=>{class t{constructor(){}get grade(){return this.getGradeForStudent()}getGradeForStudent(){return we(this.grading,this.finalGrade,this.gradingScale)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\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:[["data-testId","grade",1,"grade"],["data-testId","average",1,"average"]],template:function(i,n){i&1&&(u(0),T(1,Vi,2,1,"span",0)(2,Hi,3,4,"span",1)),i&2&&(b("",n.designation,` +`),o(),_(n.grade?1:-1),o(),_(!n.grade&&n.average?2:-1))},dependencies:[rt],styles:[".average[_ngcontent-%COMP%]{color:#00000080}"]})}}return t})();var Li=(t,r)=>r.course.Id;function Ui(t,r){if(t&1&&ie(0,"bkd-dossier-course-tests",9),t&2){let e=S().$implicit,i=S(2);P("decoratedCourse",e)("studentId",i.studentId)("gradingScales",i.gradingScales)("isEditable",i.isEditable)}}function Wi(t,r){if(t&1){let e=ne();p(0,"div")(1,"div",2)(2,"div",3,0)(4,"div",4)(5,"bkd-student-dossier-entry-header",5),k("click",function(){Y(e);let n=ce(3);return Z(n.toggle())}),ie(6,"bkd-dossier-grades-course-header",6),l()(),p(7,"div",7)(8,"div",8),T(9,Ui,1,4,"ng-template"),l()()()()()}if(t&2){let e=r.$implicit,i=ce(3);o(5),P("opened",!i.collapsed),o(),P("designation",e.course.Designation)("finalGrade",e.finalGrade)("grading",e.grading)("gradingScale",e.gradingScale)("average",e.average)}}function Ki(t,r){if(t&1&&(ee(0,Wi,10,6,"div",null,Li),m(2,"async")),t&2){let e=S();te(I(2,0,e.decoratedCoursesSubject$))}}function qi(t,r){t&1&&(p(0,"p",1),u(1),m(2,"translate"),l()),t&2&&(o(),b(" ",I(2,1,"dossier.no-courses")," "))}var Wr=(()=>{class t{constructor(e){this.dossierGradesService=e,this.isEditable=!0,this.decoratedCoursesSubject$=new B([])}ngOnChanges(){this.decoratedCoursesSubject$.next(this.decorateCourses())}decorateCourses(){return this.courses.map(e=>{let i=this.dossierGradesService.getFinalGradeForStudent(e,this.studentId),n=this.dossierGradesService.getGradesForStudent(e,this.studentId,this.gradingScales);return{course:e,finalGrade:i,grading:this.dossierGradesService.getGradingForStudent(e,this.studentId),gradingScale:this.dossierGradesService.getGradingScaleOfCourse(e,this.gradingScales),average:i?.AverageTestResult||kt(n)}})}static{this.\u0275fac=function(i){return new(i||t)(E(Pe))}}static{this.\u0275cmp=D({type:t,selectors:[["bkd-dossier-grades-view"]],inputs:{courses:"courses",studentId:"studentId",gradingScales:"gradingScales",isEditable:"isEditable"},standalone:!0,features:[L,$],decls:2,vars:1,consts:[["courses","ngbAccordionItem"],["data-testid","message-no-courses",1,"py-3"],["ngbAccordion",""],["ngbAccordionItem",""],["ngbAccordionHeader",""],[3,"click","opened"],[3,"designation","finalGrade","grading","gradingScale","average"],["ngbAccordionCollapse",""],["ngbAccordionBody",""],[3,"decoratedCourse","studentId","gradingScales","isEditable"]],template:function(i,n){i&1&&T(0,Ki,3,2)(1,qi,3,3,"p",1),i&2&&_(n.courses.length>0?0:1)},dependencies:[Ct,vt,bt,Gt,ri,St,It,ni,N,j,F]})}}return t})();export{ke as a,Tn as b,_n as c,Gn as d,Pn as e,wn as f,Dn as g,En as h,Vt as i,Xt as j,Jt as k,Pi as l,Et as m,$t as n,Ae as o,_e as p,He as q,Lt as r,Ut as s,Pe as t,Kt as u,qt as v,Wr as w}; diff --git a/public/apps/webapp-schulverwaltung/chunk-IYFH2F7I.js b/public/apps/webapp-schulverwaltung/chunk-IYFH2F7I.js new file mode 100644 index 00000000..765e27c2 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-IYFH2F7I.js @@ -0,0 +1 @@ +import{a as Fe,b as Me,c as Ve,d as Re,e as Ne}from"./chunk-2D2UAYZL.js";import{t as N,w as Ge}from"./chunk-IMBPAJBQ.js";import{d as Le,e as Be}from"./chunk-DKLN3NRY.js";import{b as ie}from"./chunk-WACRWBCS.js";import{a as je}from"./chunk-MIRGHONI.js";import{L as Pe,P as te,T as Ee,U as Oe}from"./chunk-VGJCKFZL.js";import{a as we}from"./chunk-UGBTF4Z2.js";import{b as ne}from"./chunk-KK2SHN2W.js";import{a as J,b as K,c as X,d as Z,e as ee}from"./chunk-LGOOC47H.js";import{a as $e}from"./chunk-B6WYZ7BT.js";import{Ab as T,Bb as ce,Cb as de,Gb as d,Ha as c,Hb as m,Ib as ge,Id as Te,Jd as R,Kd as G,L as _e,M as be,Ma as p,Na as he,O as ae,P as j,R as W,Ra as _,Sa as ve,Ua as H,Va as q,Wa as r,X as Y,Xa as a,Ya as b,Yc as Ie,Zb as E,_ as B,_b as ye,a as F,aa as k,ab as V,b as M,cb as $,db as l,eb as Ce,f as Q,fb as xe,g as le,h as re,ia as D,ja as I,k as me,l as ue,mb as h,n as L,nb as u,o as fe,ob as U,pb as f,rc as Se,sc as Ae,uc as ke,vc as De,wa as i,wb as g,xa as x,xb as y,yb as v,zb as z}from"./chunk-IFJN5CDK.js";var se=(()=>{class e{constructor(t,n,s,C,w){this.settings=t,this.lessonPresencesService=n,this.presenceTypesService=s,this.toastService=C,this.translate=w,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(t){this.studentId$.next(t)}getAbsences(t){return this.studentId$.pipe(j(t),ae(null),_e({connector:()=>new re(1)}))}getCounts(){return this.studentId$.pipe(j(t=>fe([this.loadStatistics(t).pipe(ae(null)),this.openAbsences$.pipe(L(n=>n?.length??null)),this.checkableAbsences$.pipe(L(n=>n?.length??null))])),L(([t,n,s])=>({openAbsences:n,checkableAbsences:s,excusedAbsences:t?.TotalAbsencesValidExcuse??null,unexcusedAbsences:t?.TotalAbsencesWithoutExcuse??null,incidents:t?.TotalIncidents??null,halfDays:t?.TotalHalfDays??null})))}loadStatistics(t){return this.lessonPresencesService.getStatistics({student:t,educationalEvent:null,studyClass:null},null,0).pipe(j(({entries:n})=>n.length>0?ue(n[0]):(this.toastService.error(this.translate.instant("global.rest-errors.notfound-message"),this.translate.instant("global.rest-errors.notfound-title")),me)))}loadOpenAbsences(t){return this.lessonPresencesService.getListOfUnconfirmed(this.getBaseParams(t))}loadCheckableAbsences(t){return this.lessonPresencesService.getList({params:M(F({},this.getBaseParams(t)),{"filter.ConfirmationStateId":`=${this.settings.checkableAbsenceStateId}`})})}loadExcusedAbsences(t){return this.lessonPresencesService.getList({params:M(F({},this.getBaseParams(t)),{"filter.ConfirmationStateId":`=${this.settings.excusedAbsenceStateId}`})})}loadUnexcusedAbsences(t){return this.lessonPresencesService.getList({params:M(F({},this.getBaseParams(t)),{"filter.ConfirmationStateId":`=${this.settings.unexcusedAbsenceStateId}`})})}loadIncidents(t){return this.presenceTypesService.incidentTypes$.pipe(L(n=>M(F({},this.getBaseParams(t)),{"filter.TypeRef":`;${n.map(s=>s.Id).join(";")}`})),j(n=>this.lessonPresencesService.getList({params:n})))}loadHalfDays(t){return this.lessonPresencesService.getList({params:M(F({},this.getBaseParams(t)),{"filter.TypeRef":`=${this.settings.halfDayPresenceTypeId}`})})}getBaseParams(t){return{sort:"LessonDateTimeFrom.asc","filter.StudentRef":`=${t}`}}static{this.\u0275fac=function(n){return new(n||e)(B(Ie),B(Be),B(te),B($e),B(Te))}}static{this.\u0275prov=Y({token:e,factory:e.\u0275fac})}}return e})();var P=(()=>{class e{constructor(t,n){this.profileService=t,this.route=n,this.currentDossier$=new le("addresses"),this.studentId$=this.route.paramMap.pipe(L(s=>Number(s.get("id")))),this.profile$=this.studentId$.pipe(j(s=>this.profileService.getProfile(s)),be(1)),this.returnParams$=this.route.queryParams.pipe(L(({returnparams:s})=>s)),this.backlinkQueryParams$=this.returnParams$.pipe(L(je)),this.loading$=this.profileService.loading$}static{this.\u0275fac=function(n){return new(n||e)(B(Fe),B(Se))}}static{this.\u0275prov=Y({token:e,factory:e.\u0275fac})}}return e})();function Xe(e,o){if(e&1&&u(0),e&2){l();let t=v(0);f(" (",t==null?null:t.checkableAbsences,") ")}}function Ze(e,o){if(e&1&&b(0,"bkd-student-dossier-absences",13),e&2){let t=l();p("absences$",t.absencesService.checkableAbsences$)}}function et(e,o){if(e&1&&u(0),e&2){l();let t=v(0);f(" (",t==null?null:t.openAbsences,") ")}}function tt(e,o){if(e&1&&b(0,"bkd-student-dossier-absences",14),e&2){let t=l();p("absences$",t.absencesService.openAbsences$)("selectionService",t.absencesSelectionService)}}function nt(e,o){if(e&1&&u(0),e&2){l();let t=v(0);f(" (",t==null?null:t.excusedAbsences,") ")}}function it(e,o){if(e&1&&b(0,"bkd-student-dossier-absences",13),e&2){let t=l();p("absences$",t.absencesService.excusedAbsences$)}}function st(e,o){if(e&1&&u(0),e&2){l();let t=v(0);f(" (",t==null?null:t.unexcusedAbsences,") ")}}function ot(e,o){if(e&1&&b(0,"bkd-student-dossier-absences",15),e&2){let t=l();p("absences$",t.absencesService.unexcusedAbsences$)("displayPresenceType",!1)}}function rt(e,o){if(e&1&&u(0),e&2){l();let t=v(0);f(" (",t==null?null:t.incidents,") ")}}function at(e,o){if(e&1&&b(0,"bkd-student-dossier-absences",13),e&2){let t=l();p("absences$",t.absencesService.incidents$)}}function ct(e,o){if(e&1&&u(0),e&2){l(2);let t=v(0);f(" (",t==null?null:t.halfDays,") ")}}function dt(e,o){if(e&1&&b(0,"bkd-student-dossier-absences",15),e&2){let t=l(2);p("absences$",t.absencesService.halfDays$)("displayPresenceType",!1)}}function pt(e,o){if(e&1){let t=V();r(0,"div",12,5)(2,"div",8)(3,"bkd-student-dossier-entry-header",9),$("click",function(){D(t);let s=h(1);return I(s.toggle())}),u(4),d(5,"translate"),c(6,ct,1,1),a()(),r(7,"div",10)(8,"div",11),c(9,dt,1,2,"ng-template"),a()()()}if(e&2){let t=h(1);l();let n=v(0);i(3),p("opened",!t.collapsed),i(),f(" ",m(5,3,"shared.profile.half-days")," "),i(2),_((n==null?null:n.halfDays)!==null?6:-1)}}var He=(()=>{class e{constructor(t,n,s,C){this.state=t,this.presenceTypesService=n,this.absencesService=s,this.absencesSelectionService=C,this.halfDayActive$=this.presenceTypesService.halfDayActive$,this.destroy$=new Q,this.state.currentDossier$.next("absences")}ngOnInit(){this.state.studentId$.pipe(W(this.destroy$)).subscribe(t=>this.absencesService.setStudentId(t))}ngOnDestroy(){this.destroy$.next()}static{this.\u0275fac=function(n){return new(n||e)(x(P),x(te),x(se),x(Pe))}}static{this.\u0275cmp=k({type:e,selectors:[["bkd-dossier-absences"]],standalone:!0,features:[z([se]),T],decls:55,vars:31,consts:[["checkableAbsences","ngbAccordionItem"],["openAbsences","ngbAccordionItem"],["excusedAbsences","ngbAccordionItem"],["unexcusedAbsences","ngbAccordionItem"],["incidents","ngbAccordionItem"],["halfDays","ngbAccordionItem"],["ngbAccordion",""],["ngbAccordionItem",""],["ngbAccordionHeader",""],[3,"click","opened"],["ngbAccordionCollapse",""],["ngbAccordionBody",""],["ngbAccordionItem","","id","half-days"],[3,"absences$"],[3,"absences$","selectionService"],[3,"absences$","displayPresenceType"]],template:function(n,s){if(n&1){let C=V();g(0),d(1,"async"),r(2,"div",6)(3,"div",7,0)(5,"div",8)(6,"bkd-student-dossier-entry-header",9),$("click",function(){D(C);let S=h(4);return I(S.toggle())}),u(7),d(8,"translate"),c(9,Xe,1,1),a()(),r(10,"div",10)(11,"div",11),c(12,Ze,1,1,"ng-template"),a()()(),r(13,"div",7,1)(15,"div",8)(16,"bkd-student-dossier-entry-header",9),$("click",function(){D(C);let S=h(14);return I(S.toggle())}),u(17),d(18,"translate"),c(19,et,1,1),a()(),r(20,"div",10)(21,"div",11),c(22,tt,1,2,"ng-template"),a()()(),r(23,"div",7,2)(25,"div",8)(26,"bkd-student-dossier-entry-header",9),$("click",function(){D(C);let S=h(24);return I(S.toggle())}),u(27),d(28,"translate"),c(29,nt,1,1),a()(),r(30,"div",10)(31,"div",11),c(32,it,1,1,"ng-template"),a()()(),r(33,"div",7,3)(35,"div",8)(36,"bkd-student-dossier-entry-header",9),$("click",function(){D(C);let S=h(34);return I(S.toggle())}),u(37),d(38,"translate"),c(39,st,1,1),a()(),r(40,"div",10)(41,"div",11),c(42,ot,1,2,"ng-template"),a()()(),r(43,"div",7,4)(45,"div",8)(46,"bkd-student-dossier-entry-header",9),$("click",function(){D(C);let S=h(44);return I(S.toggle())}),u(47),d(48,"translate"),c(49,rt,1,1),a()(),r(50,"div",10)(51,"div",11),c(52,at,1,1,"ng-template"),a()()(),c(53,pt,10,5,"div",12),d(54,"async"),a()}if(n&2){let C=h(4),w=h(14),S=h(24),Ye=h(34),ze=h(44),A=y(m(1,16,s.absencesService.counts$));i(6),p("opened",!C.collapsed),i(),f(" ",m(8,19,"shared.profile.checkable-absences")," "),i(2),_((A==null?null:A.checkableAbsences)!==null?9:-1),i(7),p("opened",!w.collapsed),i(),f(" ",m(18,21,"shared.profile.open-absences")," "),i(2),_((A==null?null:A.openAbsences)!==null?19:-1),i(7),p("opened",!S.collapsed),i(),f(" ",m(28,23,"shared.profile.excused-absences")," "),i(2),_((A==null?null:A.excusedAbsences)!==null?29:-1),i(7),p("opened",!Ye.collapsed),i(),f(" ",m(38,25,"shared.profile.unexcused-absences")," "),i(2),_((A==null?null:A.unexcusedAbsences)!==null?39:-1),i(7),p("opened",!ze.collapsed),i(),f(" ",m(48,27,"shared.profile.incidents")," "),i(2),_((A==null?null:A.incidents)!==null?49:-1),i(4),_(m(54,29,s.halfDayActive$)?53:-1)}},dependencies:[ee,Z,X,ie,K,J,Ee,E,G,R],changeDetection:0})}}return e})();var lt=(e,o)=>o.apprenticeshipContract.Id,mt=(e,o)=>o.Id;function ut(e,o){if(e&1&&b(0,"bkd-student-dossier-legal-representative",9),e&2){let t=o.$implicit;p("person",t)}}function ft(e,o){if(e&1&&H(0,ut,1,1,"bkd-student-dossier-legal-representative",9,mt),e&2){l(3);let t=v(0);q(t.legalRepresentativePersons)}}function _t(e,o){if(e&1){let t=V();r(0,"div",4,0)(2,"div",5)(3,"bkd-student-dossier-entry-header",6),$("click",function(){D(t);let s=h(1);return I(s.toggle())}),u(4),d(5,"translate"),a()(),r(6,"div",7)(7,"div",8),c(8,ft,2,0,"ng-template"),a()()()}if(e&2){let t=h(1);i(3),p("opened",!t.collapsed),i(),f(" ",m(5,2,"shared.profile.legal-representation")," ")}}function bt(e,o){if(e&1&&u(0),e&2){let t=l().$index;f(" ",t+1," ")}}function ht(e,o){if(e&1&&b(0,"bkd-student-dossier-apprenticeship-company",10),e&2){let t=l().$implicit;p("company",t)}}function vt(e,o){if(e&1){let t=V();r(0,"div",4,1)(2,"div",5)(3,"bkd-student-dossier-entry-header",6),$("click",function(){D(t);let s=h(1);return I(s.toggle())}),u(4),d(5,"translate"),c(6,bt,1,1),a()(),r(7,"div",7)(8,"div",8),c(9,ht,1,1,"ng-template"),a()()()}if(e&2){let t=h(1);l(2);let n=v(0);i(3),p("opened",!t.collapsed),i(),f(" ",m(5,3,"shared.profile.apprenticeship-company")," "),i(2),_(n.apprenticeshipCompanies.length>1?6:-1)}}function Ct(e,o){if(e&1&&(b(0,"bkd-student-dossier-address",2),r(1,"div",3),c(2,_t,9,4,"div",4),H(3,vt,10,5,"div",4,lt),a()),e&2){l();let t=v(0);p("student",t.student),i(2),_(t.legalRepresentativePersons.length>0?2:-1),i(),q(t.apprenticeshipCompanies)}}var qe=(()=>{class e{constructor(t){this.state=t,this.state.currentDossier$.next("addresses")}static{this.\u0275fac=function(n){return new(n||e)(x(P))}}static{this.\u0275cmp=k({type:e,selectors:[["bkd-dossier-addresses"]],standalone:!0,features:[T],decls:3,vars:4,consts:[["legalRepresentatives","ngbAccordionItem"],["apprenticeshipCompanies","ngbAccordionItem"],[1,"profile-entry",3,"student"],["ngbAccordion",""],["ngbAccordionItem",""],["ngbAccordionHeader",""],[3,"click","opened"],["ngbAccordionCollapse",""],["ngbAccordionBody",""],[1,"profile-entry",3,"person"],[1,"profile-entry",3,"company"]],template:function(n,s){if(n&1&&(g(0),d(1,"async"),c(2,Ct,5,2)),n&2){let C=y(m(1,1,s.state.profile$));i(2),_(C?2:-1)}},dependencies:[Me,ee,Z,X,ie,K,J,Re,Ve,E,G,R],styles:[".profile-entry[_ngcontent-%COMP%]{display:block;padding:0 1rem}"],changeDetection:0})}}return e})();function gt(e,o){e&1&&b(0,"bkd-spinner")}function yt(e,o){if(e&1&&b(0,"bkd-dossier-grades-view",0),e&2){l();let t=v(0),n=v(2),s=v(4);p("courses",t)("studentId",n)("gradingScales",s)}}var Ue=(()=>{class e{constructor(t,n){this.state=t,this.dossierGradesService=n,this.destroy$=new Q}ngOnInit(){this.state.currentDossier$.next("grades"),this.state.studentId$.pipe(W(this.destroy$)).subscribe(t=>this.dossierGradesService.setStudentId(t))}ngOnDestroy(){this.destroy$.next()}static{this.\u0275fac=function(n){return new(n||e)(x(P),x(N))}}static{this.\u0275cmp=k({type:e,selectors:[["bkd-dossier-grades"]],standalone:!0,features:[T],decls:9,vars:12,consts:[[3,"courses","studentId","gradingScales"]],template:function(n,s){n&1&&(g(0),d(1,"async"),g(2),d(3,"async"),g(4),d(5,"async"),c(6,gt,1,0,"bkd-spinner"),d(7,"async"),c(8,yt,1,3,"bkd-dossier-grades-view",0)),n&2&&(y(m(1,1,s.dossierGradesService.studentCourses$)),i(2),y(m(3,4,s.state.studentId$)),i(2),y(m(5,7,s.dossierGradesService.gradingScales$)),i(2),_(m(7,10,s.dossierGradesService.loading$)?6:8))},dependencies:[Ge,ne,E]})}}return e})();var St=["*"];function At(e,o){if(e&1&&(r(0,"div",5)(1,"span",6),u(2),d(3,"date"),a(),r(4,"span",7),u(5),a()()),e&2){let t=l();i(2),U(ge(3,2,t.student.Birthdate,"dd.MM.yyyy")),i(3),f("(",t.student.Gender,")")}}var Qe=(()=>{class e{constructor(){this.link="/"}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=k({type:e,selectors:[["bkd-student-backlink"]],inputs:{link:"link",queryParams:"queryParams",studentId:"studentId",studentName:"studentName",student:"student"},standalone:!0,features:[T],ngContentSelectors:St,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"],[1,"additional-info"],[1,"birthday"],[1,"gender"]],template:function(n,s){n&1&&(Ce(),r(0,"div",0)(1,"bkd-backlink",1),xe(2),a(),r(3,"div",2),b(4,"bkd-avatar",3),r(5,"div",4)(6,"h1"),u(7),a(),c(8,At,6,5,"div",5),a()()()),n&2&&(i(),p("link",s.link)("params",s.queryParams),i(3),p("studentId",s.studentId),i(3),U(s.student?s.student.FullName:s.studentName),i(),_(s.student?8:-1))},dependencies:[Oe,Ne,ye],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 e})();var kt=()=>["addresses","absences","grades"],Dt=()=>[],It=e=>({returnparams:e}),$t=e=>[e];function Tt(e,o){e&1&&b(0,"bkd-spinner")}function Pt(e,o){if(e&1&&b(0,"bkd-reports-link",3),e&2){let t;l(2);let n=v(4);p("reports",(t=n)!==null&&t!==void 0?t:ce(1,Dt))}}function Lt(e,o){if(e&1&&(r(0,"a",5),d(1,"async"),r(2,"button",6,0),u(4),d(5,"translate"),a()()),e&2){let t=o.$implicit,n=h(3),s=l(2);p("queryParams",de(9,It,m(1,5,s.state.returnParams$)))("routerLink",de(11,$t,t)),i(2),he("btn-outline-secondary",!n.isActive),i(2),f(" ",m(5,7,"dossier."+t)," ")}}function Bt(e,o){e&1&&(r(0,"div"),b(1,"router-outlet"),a())}function wt(e,o){e&1&&(r(0,"p"),u(1),d(2,"translate"),a()),e&2&&(i(),U(m(2,1,"shared.profile.no-profile")))}function Et(e,o){if(e&1&&(r(0,"bkd-student-backlink",2),d(1,"async"),d(2,"async"),c(3,Pt,1,2,"bkd-reports-link",3),a(),r(4,"div",4),H(5,Lt,6,13,"a",5,ve),a(),c(7,Bt,2,0,"div")(8,wt,3,3,"p")),e&2){let t=l(),n=v(0),s=v(2);p("link","../..")("queryParams",m(1,6,t.state.backlinkQueryParams$))("studentId",m(2,8,t.state.studentId$))("student",n&&n.student),i(3),_(s==="grades"?3:-1),i(2),q(ce(10,kt)),i(2),_(n?7:8)}}var We=(()=>{class e{constructor(t,n){this.state=t,this.dossierGradesService=n,this.state.currentDossier$.next("addresses")}static{this.\u0275fac=function(n){return new(n||e)(x(P),x(N))}}static{this.\u0275cmp=k({type:e,selectors:[["bkd-student-dossier"]],standalone:!0,features:[z([P,N]),T],decls:10,vars:12,consts:[["rla","routerLinkActive"],[1,"bkd-container","bkd-container-limited"],[1,"mb-2",3,"link","queryParams","studentId","student"],[1,"ms-2",3,"reports"],[1,"d-flex","flex-row","py-3","flex-wrap"],[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(n,s){n&1&&(g(0),d(1,"async"),g(2),d(3,"async"),g(4),d(5,"async"),r(6,"div",1),c(7,Tt,1,0,"bkd-spinner"),d(8,"async"),c(9,Et,9,11),a()),n&2&&(y(m(1,1,s.state.profile$)),i(2),y(m(3,4,s.state.currentDossier$)),i(2),y(m(5,7,s.dossierGradesService.testReports$)),i(3),_(m(8,10,s.state.loading$)?7:9))},dependencies:[Qe,we,ke,De,Ae,ne,E,G,R],changeDetection:0})}}return e})();var En={path:"student/:id",children:[{path:"",component:We,children:[{path:"addresses",component:qe},{path:"absences",component:He},{path:"grades",component:Ue}]},{path:"absences/confirm",component:Le}]};export{En as a}; diff --git a/public/apps/webapp-schulverwaltung/chunk-JPWKYF5J.js b/public/apps/webapp-schulverwaltung/chunk-JPWKYF5J.js new file mode 100644 index 00000000..be643896 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-JPWKYF5J.js @@ -0,0 +1,2 @@ +import{a as Di}from"./chunk-K5PXAOXJ.js";import{a as Ni,b as Vi,c as $i}from"./chunk-RU74B4AX.js";import{a as ki}from"./chunk-SCJZRDJE.js";import{a as ji}from"./chunk-FJXQ6CD7.js";import{a as Fi}from"./chunk-IYFH2F7I.js";import"./chunk-2D2UAYZL.js";import"./chunk-IMBPAJBQ.js";import"./chunk-OGCDITJ2.js";import{a as hi,b as _i,e as Ti}from"./chunk-DKLN3NRY.js";import{a as We}from"./chunk-7FRZV7VF.js";import"./chunk-Y4QYVF5K.js";import"./chunk-OFB4XAK2.js";import{a as Ri}from"./chunk-KPGSX5OU.js";import{a as Li,b as Pi}from"./chunk-RET26MIW.js";import{a as Oi}from"./chunk-UA2MEY3S.js";import{a as Bi}from"./chunk-VKWEQ6GU.js";import{a as Mi}from"./chunk-2U5ENDJH.js";import{c as xi,d as wi}from"./chunk-VUPOI3TG.js";import"./chunk-WACRWBCS.js";import{a as Ii}from"./chunk-MIRGHONI.js";import"./chunk-YUHFF3NM.js";import{H as Ci,I as lt,L as vi,M as ct,N as dt,O as ke,P as Ge,Q as Ei,g as gi,r as bi,s as ot}from"./chunk-VGJCKFZL.js";import{a as He,c as at,l as yi}from"./chunk-NL5E3FC5.js";import{b as Ai}from"./chunk-UGBTF4Z2.js";import{b as Si}from"./chunk-KK2SHN2W.js";import{f as li,g as ci,j as di,w as Fe,y as fi}from"./chunk-LGOOC47H.js";import{a as pi}from"./chunk-B6WYZ7BT.js";import{$a as Je,$c as Yt,A as vt,Ab as U,Ba as Dt,Bb as Lt,Cb as X,Cc as nt,Cd as ui,D as Et,Db as Pt,Dc as st,Eb as Nt,F as ne,Fb as Mt,Ga as Me,Gb as d,Gd as mi,Ha as b,Hb as u,Ib as se,Ic as zt,Id as je,J as yt,Jd as fe,Kb as de,Kd as _e,La as te,M as pe,Ma as _,Na as G,Nb as Vt,O as Tt,Ob as O,Oc as rt,P as Se,Pb as we,Qa as Ze,R as N,Ra as y,Rb as Rt,S as St,Sb as $t,Ta as xe,Ua as M,Va as V,W as It,Wa as l,Wb as jt,X as J,Xa as c,Y as xt,Ya as B,Yb as it,Yc as he,Z as wt,Za as Bt,Zb as ye,Zc as Qt,_ as j,_a as Ot,_b as Ht,_c as Kt,a as ve,aa as H,ab as P,b as Oe,ba as At,bd as Ae,ca as W,cb as x,cd as Re,db as m,dd as Zt,eb as Xe,f as ae,fb as et,g as Ke,gb as ge,gc as Wt,gd as Jt,ha as Ie,hb as tt,hd as Xt,i as gt,ia as v,ib as q,j as bt,ja as E,jb as be,jd as ei,kb as k,l as Ct,lb as D,ld as ti,ma as Ft,mb as z,md as ii,n as T,na as Ye,nb as p,nd as ni,o as Le,ob as I,od as si,pb as C,pd as ri,qa as F,qb as Ee,ra as kt,rc as Ve,sc as Gt,t as Te,ta as oe,tb as Q,tc as qt,td as ai,ub as K,uc as Ut,ud as $e,vb as Y,vd as oi,w as Pe,wa as o,wb as le,x as Ne,xa as f,xb as ce,yb as Z,za as S,zb as me}from"./chunk-IFJN5CDK.js";var L=function(t){return t.Absent="absent",t.Dispensation="dispensation",t.HalfDay="half-day",t.Incident="incident",t.Present="present",t}(L||{}),Wi=(()=>{class t{constructor(e,i){this.updateService=e,this.settings=i}update(e,i,n,r,a,h){let g=[];switch(n){case L.Present:g=this.createResetBulkRequests(e);break;case L.Absent:g=this.createAbsentEditBulkRequests(e,i,r,a);break;case L.Dispensation:g=this.createEditBulkRequests(e,null,this.settings.dispensationPresenceTypeId);break;case L.HalfDay:g=this.createEditBulkRequests(e,null,this.settings.halfDayPresenceTypeId);break;case L.Incident:g=this.createEditBulkRequests(e,null,h);break}return Le(g).pipe(T(()=>{}))}createAbsentEditBulkRequests(e,i,n,r){return n===this.settings.excusedAbsenceStateId?this.createEditBulkRequests(e,n,r):n===this.settings.unexcusedAbsenceStateId?this.createEditBulkRequests(e,n,this.settings.absencePresenceTypeId):[...this.createEditBulkRequests(e.filter(Hi(i,this.settings)),n,this.settings.absencePresenceTypeId),...this.createEditBulkRequests(e.filter(Fe(Hi(i,this.settings))),n,null)]}createResetBulkRequests(e){return lt(e).map(({lessonIds:i,personIds:n})=>this.updateService.removeLessonPresences(i,n))}createEditBulkRequests(e,i,n){return lt(e).map(({lessonIds:r,personIds:a})=>this.updateService.editLessonPresences(r,a,n||void 0,i||void 0))}static{this.\u0275fac=function(i){return new(i||t)(j(Ei),j(he))}}static{this.\u0275prov=J({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Hi(t,s){return e=>{let i=t.find(n=>n.Id===e.TypeRef.Id);return!i||i.Id===s.dispensationPresenceTypeId||i.Id===s.halfDayPresenceTypeId||i.IsIncident}}var ie=(()=>{class t extends Pi{constructor(e,i,n,r,a,h,g){super(e,i,n,r,"/edit-absences"),this.lessonPresencesService=a,this.presenceTypesService=h,this.dropDownItemsService=g,this.weekdays$=this.loadWeekdays().pipe(pe(1)),this.presenceTypes$=this.loadPresenceTypes().pipe(pe(1)),this.absenceConfirmationStates$=this.loadAbsenceConfirmationStates().pipe(T(hi),pe(1)),this.presenceControlEntries$=Le([this.entries$,this.presenceTypes$,this.absenceConfirmationStates$]).pipe(T(yi(Di)),pe(1)),this.selected=[],this.queryParamsString$.pipe(N(this.destroy$)).subscribe(A=>this.confirmBackLinkParams={returnparams:A})}resetSelection(){this.selected=[]}updateAfterConfirm(){this.resetEntries()}getInitialFilter(){return{student:null,educationalEvent:null,studyClass:null,teacher:null,dateFrom:null,dateTo:null,weekdays:null,presenceTypes:null,confirmationStates:null,incidentTypes:null}}isValidFilter(e){return!!(e.student||e.educationalEvent||e.studyClass||e.teacher||e.dateFrom||e.dateTo||e.weekdays||e.presenceTypes||e.confirmationStates||e.incidentTypes)}loadEntries(e,i,n){let r={sort:"StudentFullName.asc,LessonDateTimeFrom.asc"};return this.loadingService.load(this.lessonPresencesService.getFilteredList(e,n,r),Li)}buildParamsFromFilter(e){return Ni(e)}loadWeekdays(){return this.loadingService.load(this.dropDownItemsService.getWeekdays())}loadPresenceTypes(){return this.loadingService.load(this.presenceTypesService.activePresenceTypes$)}loadAbsenceConfirmationStates(){return this.loadingService.load(this.dropDownItemsService.getAbsenceConfirmationStates())}static{this.\u0275fac=function(i){return new(i||t)(j($t),j(Ai),j(Mi),j(he),j(Ti),j(Ge),j(We))}}static{this.\u0275prov=J({token:t,factory:t.\u0275fac})}}return t})();var gn=(t,s)=>s.Key,Gi=(t,s)=>s.Id;function bn(t,s){if(t&1&&(l(0,"div",3),p(1),d(2,"translate"),c()),t&2){let e=s.$implicit;o(),C(" ",se(2,1,"global.validation-errors."+e.error,e.params)," ")}}function Cn(t,s){if(t&1&&(l(0,"option",18),p(1),c()),t&2){let e=s.$implicit;_("ngValue",e.Id),o(),C(" ",e.Designation," ")}}function vn(t,s){if(t&1&&(l(0,"select",17),d(1,"async"),l(2,"option",18),p(3),d(4,"translate"),c(),M(5,Cn,2,2,"option",18,Gi),d(7,"async"),c()),t&2){let e,i=m(5);G("is-invalid",((e=u(1,4,i.absenceTypeIdErrors$))==null?null:e.length)||!1),o(2),_("ngValue",null),o(),C(" ",u(4,6,"edit-absences.edit.absence-type-placeholder")," "),o(2),V(u(7,8,i.absenceTypes$))}}function En(t,s){if(t&1&&(l(0,"div",16),p(1),d(2,"translate"),c()),t&2){let e=s.$implicit;o(),C(" ",se(2,1,"global.validation-errors."+e.error,e.params)," ")}}function yn(t,s){if(t&1&&(l(0,"div",13),B(1,"input",14),l(2,"label",11),p(3),c(),b(4,vn,8,10,"select",15),M(5,En,3,4,"div",16,xe),d(7,"async"),c()),t&2){let e=s.$implicit,i=m(4);o(),_("id","state-"+e.Key)("value",e.Key),o(),ge("for","state-"+e.Key),o(),C(" ",e.Value," "),o(),y(i.isExcused(e)?4:-1),o(),V(u(7,5,i.absenceTypeIdErrors$))}}function Tn(t,s){if(t&1&&(l(0,"div",12),M(1,yn,8,7,"div",13,gn),c()),t&2){m(3);let e=Z(0);o(),V(e)}}function Sn(t,s){if(t&1&&(l(0,"option",18),p(1),c()),t&2){let e=s.$implicit;_("ngValue",e.Id),o(),C(" ",e.Designation," ")}}function In(t,s){if(t&1&&(l(0,"div",16),p(1),d(2,"translate"),c()),t&2){let e=s.$implicit;o(),C(" ",se(2,1,"global.validation-errors."+e.error,e.params)," ")}}function xn(t,s){if(t&1&&(l(0,"div",12)(1,"select",19),d(2,"async"),l(3,"option",18),p(4),d(5,"translate"),c(),M(6,Sn,2,2,"option",18,Gi),d(8,"async"),c(),M(9,In,3,4,"div",16,xe),d(11,"async"),c()),t&2){let e,i=m(3);o(),G("is-invalid",((e=u(2,4,i.incidentIdErrors$))==null?null:e.length)||!1),o(2),_("ngValue",null),o(),C(" ",u(5,6,"edit-absences.edit.incident-placeholder")," "),o(2),V(u(8,8,i.incidents$)),o(3),V(u(11,10,i.incidentIdErrors$))}}function wn(t,s){if(t&1&&(l(0,"div",5),B(1,"input",10),l(2,"label",11),p(3),d(4,"translate"),c(),b(5,Tn,3,0,"div",12)(6,xn,12,12,"div",12),c()),t&2){let e=s.$implicit,i=m(2);o(),_("id","category-"+e)("value",e),o(),ge("for","category-"+e),o(),C(" ",u(4,6,"edit-absences.edit.categories."+e)," "),o(2),y(i.isAbsent(e)?5:-1),o(),y(i.isIncident(e)?6:-1)}}function An(t,s){t&1&&(l(0,"div",9)(1,"span",20),p(2,"Loading..."),c()())}function Fn(t,s){if(t&1){let e=P();l(0,"form",2),x("ngSubmit",function(){v(e);let n=m();return E(n.onSubmit())}),M(1,bn,3,4,"div",3,xe),d(3,"async"),l(4,"div",4),M(5,wn,7,8,"div",5,xe),c(),l(7,"div",6)(8,"button",7),d(9,"async"),x("click",function(){v(e);let n=m();return E(n.cancel())}),p(10),d(11,"translate"),c(),l(12,"button",8),d(13,"async"),p(14),d(15,"translate"),b(16,An,3,0,"div",9),d(17,"async"),c()()()}if(t&2){let e=m(),i=Z(2),n=Z(4);_("formGroup",n),o(),V(u(3,6,e.formErrors$)),o(4),V(i),o(3),_("disabled",u(9,8,e.saving$)),o(2),C(" ",u(11,10,"edit-absences.edit.cancel")," "),o(2),_("disabled",u(13,12,e.saving$)),o(2),C(" ",u(15,14,"edit-absences.edit.save")," "),o(2),y(u(17,16,e.saving$)?16:-1)}}var qi=(()=>{class t{constructor(e,i,n,r,a,h,g,A,ee,R){this.fb=e,this.router=i,this.route=n,this.toastService=r,this.translate=a,this.state=h,this.dropDownItemsService=g,this.presenceTypesService=A,this.updateService=ee,this.settings=R,this.absenceTypes$=this.presenceTypesService.confirmationTypes$,this.incidents$=this.presenceTypesService.incidentTypes$,this.formGroup$=this.createFormGroup(),this.saving$=new Ke(!1),this.submitted$=new Ke(!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(T(this.sortAbsenceConfirmationStates.bind(this)),pe(1)),this.activeCategories$=this.presenceTypesService.halfDayActive$.pipe(T($=>$?this.availableCategories:this.availableCategories.filter(Ce=>Ce!==L.HalfDay))),this.destroy$=new ae}ngOnInit(){this.state.selected.length===0&&this.navigateBack(),at(this.formGroup$,"category").pipe(N(this.destroy$)).subscribe(this.updateConfirmationValueDisabled.bind(this)),at(this.formGroup$,"confirmationValue").pipe(N(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(ne(1)).subscribe(e=>{e.valid&&this.save(e)})}cancel(){this.navigateBack()}createFormGroup(){return this.getInitialAbsenceTypeId().pipe(T(e=>this.fb.group({category:[L.Absent,Ae.required],confirmationValue:[this.settings.excusedAbsenceStateId,Ae.required],absenceTypeId:[e,Ae.required],incidentId:[{value:null,disabled:!0},Ae.required]})),pe(1))}getInitialAbsenceTypeId(){return this.absenceTypes$.pipe(ne(1),T(e=>{let i=e.map(r=>r.Id),n=ui(this.state.selected.map(r=>r.TypeRef.Id));return n.length===1&&n[0]!=null&&i.includes(n[0])?n[0]:null}))}updateConfirmationValueDisabled(){this.formGroup$.pipe(ne(1)).subscribe(e=>{let i=e.get("category"),n=e.get("confirmationValue"),r=e.get("absenceTypeId"),a=e.get("incidentId");i&&n&&r&&a&&(i.value===L.Absent?(n.enable(),this.updateAbsenceTypeIdDisabled()):(n.disable(),r.disable()),i.value===L.Incident?a.enable():a.disable())})}updateAbsenceTypeIdDisabled(){this.formGroup$.pipe(ne(1)).subscribe(e=>{let i=e.get("confirmationValue"),n=e.get("absenceTypeId");i&&n&&(i.value===this.settings.excusedAbsenceStateId?n.enable():n.disable())})}save(e){this.saving$.next(!0);let{category:i,confirmationValue:n,absenceTypeId:r,incidentId:a}=e.value;this.presenceTypesService.presenceTypes$.pipe(Se(h=>this.updateService.update(this.state.selected,h,i,n,r,a)),yt(()=>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(ne(1)).subscribe(i=>{this.router.navigate(["/edit-absences"],{queryParams:Oe(ve({},Ii(i.returnparams)),{reload:e})})})}sortAbsenceConfirmationStates(e){return e.slice().sort((i,n)=>i.Key===this.settings.excusedAbsenceStateId?-1:n.Key===this.settings.excusedAbsenceStateId?1:i.Value.localeCompare(n.Value))}static{this.\u0275fac=function(i){return new(i||t)(f(ai),f(qt),f(Ve),f(pi),f(je),f(ie),f(We),f(Ge),f(Wi),f(he))}}static{this.\u0275cmp=H({type:t,selectors:[["bkd-edit-absences-edit"]],standalone:!0,features:[U],decls:11,vars:13,consts:[[1,"bkd-container","bkd-container-limited"],[3,"formGroup"],[3,"ngSubmit","formGroup"],[1,"alert","alert-danger"],[1,"form-group","pb-4"],[1,"form-check","mt-2","mb-3"],[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"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],["type","radio","formControlName","category",1,"form-check-input",3,"id","value"],[1,"form-check-label",3,"for"],[1,"ms-5"],[1,"form-check","mt-2","mb-2"],["type","radio","formControlName","confirmationValue",1,"form-check-input",3,"id","value"],["formControlName","absenceTypeId",1,"form-select","mt-1",3,"is-invalid"],[1,"invalid-feedback"],["formControlName","absenceTypeId",1,"form-select","mt-1"],[3,"ngValue"],["formControlName","incidentId",1,"form-select","mt-1"],[1,"visually-hidden"]],template:function(i,n){if(i&1&&(le(0),d(1,"async"),le(2),d(3,"async"),le(4),d(5,"async"),l(6,"h1"),p(7),d(8,"translate"),c(),l(9,"div",0),b(10,Fn,18,18,"form",1),c()),i&2){let r=ce(u(1,2,n.confirmationStates$));o(2),ce(u(3,5,n.activeCategories$)),o(2);let a=ce(u(5,8,n.formGroup$));o(3),I(u(8,11,"edit-absences.title")),o(3),y(a&&r?10:-1)}},dependencies:[$e,Xt,si,ri,Yt,ni,ei,Re,Zt,oi,ti,ii,ye,_e,fe],changeDetection:0})}}return t})();var Ue=(()=>{class t extends Ci{static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=Ft(t)))(n||t)}})()}static{this.\u0275prov=J({token:t,factory:t.\u0275fac})}}return t})();var Dn=["content"],Bn=["scroll"],On=["padding"],Qi=["*"],Be=t=>({searchTerm:t});function Ln(t,s){if(t&1&&(l(0,"div",3),Je(1,6),c()),t&2){let e=m();o(),_("ngTemplateOutlet",e.headerTemplate)("ngTemplateOutletContext",X(2,Be,e.filterValue))}}function Pn(t,s){if(t&1&&(l(0,"div",5),Je(1,6),c()),t&2){let e=m();o(),_("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",X(2,Be,e.filterValue))}}var Nn=["searchInput"],Mn=["clearButton"],Vn=(t,s,e)=>({item:t,clear:s,label:e}),Rn=(t,s)=>({items:t,clear:s}),$n=(t,s,e,i)=>({item:t,item$:s,index:e,searchTerm:i});function jn(t,s){if(t&1&&(l(0,"div",20),p(1),c()),t&2){let e=m(2);o(),I(e.placeholder)}}function Hn(t,s){}function Wn(t,s){if(t&1&&b(0,jn,2,1,"ng-template",null,1,de)(2,Hn,0,0,"ng-template",19),t&2){let e=z(1),i=m();o(2),_("ngTemplateOutlet",i.placeholderTemplate||e)}}function Gn(t,s){if(t&1){let e=P();l(0,"span",23),x("click",function(){v(e);let n=m().$implicit,r=m(2);return E(r.unselect(n))}),p(1,"\xD7"),c(),B(2,"span",24)}if(t&2){let e=m().$implicit,i=m(2);o(2),_("ngItemLabel",e.label)("escape",i.escapeHTML)}}function qn(t,s){}function Un(t,s){if(t&1&&(l(0,"div",22),b(1,Gn,3,2,"ng-template",null,2,de)(3,qn,0,0,"ng-template",12),c()),t&2){let e=s.$implicit,i=z(2),n=m(2);G("ng-value-disabled",e.disabled),o(3),_("ngTemplateOutlet",n.labelTemplate||i)("ngTemplateOutletContext",Nt(4,Vn,e.value,n.clearItem,e.label))}}function zn(t,s){if(t&1&&M(0,Un,4,8,"div",21,Ze().trackByOption,!0),t&2){let e=m();V(e.selectedItems)}}function Qn(t,s){}function Kn(t,s){if(t&1&&b(0,Qn,0,0,"ng-template",12),t&2){let e=m();_("ngTemplateOutlet",e.multiLabelTemplate)("ngTemplateOutletContext",Pt(2,Rn,e.selectedValues,e.clearItem))}}function Yn(t,s){t&1&&B(0,"div",25)}function Zn(t,s){}function Jn(t,s){if(t&1&&b(0,Yn,1,0,"ng-template",null,3,de)(2,Zn,0,0,"ng-template",19),t&2){let e=z(1),i=m();o(2),_("ngTemplateOutlet",i.loadingSpinnerTemplate||e)}}function Xn(t,s){if(t&1&&(l(0,"span",15,4)(2,"span",26),p(3,"\xD7"),c()()),t&2){let e=m();ge("title",e.clearAllText)}}function es(t,s){if(t&1&&B(0,"span",31),t&2){let e=m().$implicit,i=m(2);_("ngItemLabel",e.label)("escape",i.escapeHTML)}}function ts(t,s){}function is(t,s){if(t&1){let e=P();l(0,"div",30),x("click",function(){let n=v(e).$implicit,r=m(2);return E(r.toggleItem(n))})("mouseover",function(){let n=v(e).$implicit,r=m(2);return E(r.onItemHover(n))}),b(1,es,1,2,"ng-template",null,5,de)(3,ts,0,0,"ng-template",12),c()}if(t&2){let e=s.$implicit,i=z(2),n=m(2);G("ng-option-disabled",e.disabled)("ng-option-selected",e.selected)("ng-optgroup",e.children)("ng-option",!e.children)("ng-option-child",!!e.parent)("ng-option-marked",e===n.itemsList.markedItem),te("role",e.children?"group":"option")("aria-selected",e.selected)("id",e==null?null:e.htmlId),o(3),_("ngTemplateOutlet",e.children?n.optgroupTemplate||i:n.optionTemplate||i)("ngTemplateOutletContext",Mt(17,$n,e.value,e,e.index,n.searchTerm))}}function ns(t,s){if(t&1&&(l(0,"span")(1,"span",33),p(2),c(),p(3),c()),t&2){let e=m(3);o(2),I(e.addTagText),o(),C('"',e.searchTerm,'"')}}function ss(t,s){}function rs(t,s){if(t&1){let e=P();l(0,"div",32),x("mouseover",function(){v(e);let n=m(2);return E(n.itemsList.unmarkItem())})("click",function(){v(e);let n=m(2);return E(n.selectTag())}),b(1,ns,4,2,"ng-template",null,6,de)(3,ss,0,0,"ng-template",12),c()}if(t&2){let e=z(2),i=m(2);G("ng-option-marked",!i.itemsList.markedItem),o(3),_("ngTemplateOutlet",i.tagTemplate||e)("ngTemplateOutletContext",X(4,Be,i.searchTerm))}}function as(t,s){if(t&1&&(l(0,"div",34),p(1),c()),t&2){let e=m(3);o(),I(e.notFoundText)}}function os(t,s){}function ls(t,s){if(t&1&&b(0,as,2,1,"ng-template",null,7,de)(2,os,0,0,"ng-template",12),t&2){let e=z(1),i=m(2);o(2),_("ngTemplateOutlet",i.notFoundTemplate||e)("ngTemplateOutletContext",X(2,Be,i.searchTerm))}}function cs(t,s){if(t&1&&(l(0,"div",34),p(1),c()),t&2){let e=m(3);o(),I(e.typeToSearchText)}}function ds(t,s){}function us(t,s){if(t&1&&b(0,cs,2,1,"ng-template",null,8,de)(2,ds,0,0,"ng-template",19),t&2){let e=z(1),i=m(2);o(2),_("ngTemplateOutlet",i.typeToSearchTemplate||e)}}function ps(t,s){if(t&1&&(l(0,"div",34),p(1),c()),t&2){let e=m(3);o(),I(e.loadingText)}}function ms(t,s){}function hs(t,s){if(t&1&&b(0,ps,2,1,"ng-template",null,9,de)(2,ms,0,0,"ng-template",12),t&2){let e=z(1),i=m(2);o(2),_("ngTemplateOutlet",i.loadingTextTemplate||e)("ngTemplateOutletContext",X(2,Be,i.searchTerm))}}function fs(t,s){if(t&1){let e=P();l(0,"ng-dropdown-panel",27),x("update",function(n){v(e);let r=m();return E(r.viewPortItems=n)})("scroll",function(n){v(e);let r=m();return E(r.scroll.emit(n))})("scrollToEnd",function(n){v(e);let r=m();return E(r.scrollToEnd.emit(n))})("outsideClick",function(){v(e);let n=m();return E(n.close())}),Bt(1),M(2,is,4,22,"div",28,Ze().trackByOption,!0),b(4,rs,4,6,"div",29),Ot(),b(5,ls,3,4)(6,us,3,1)(7,hs,3,4),c()}if(t&2){let e=m();G("ng-select-multiple",e.multiple),_("virtualScroll",e.virtualScroll)("bufferAmount",e.bufferAmount)("appendTo",e.appendTo)("position",e.dropdownPosition)("headerTemplate",e.headerTemplate)("footerTemplate",e.footerTemplate)("filterValue",e.searchTerm)("items",e.itemsList.filteredItems)("markedItem",e.itemsList.markedItem)("ngClass",e.appendTo?e.ngClass?e.ngClass:e.classes:null)("id",e.dropdownId),o(2),V(e.viewPortItems),o(2),y(e.showAddTag?4:-1),o(),y(e.showNoItemsFound()?5:-1),o(),y(e.showTypeToSearch()?6:-1),o(),y(e.loading&&e.itemsList.filteredItems.length===0?7:-1)}}var Ki=/[&<>"']/g,_s=RegExp(Ki.source),gs={"&":"&","<":"<",">":">",'"':""","'":"'"};function bs(t){return t&&_s.test(t)?t.replace(Ki,s=>gs[s]):t}function w(t){return t!=null}function De(t){return typeof t=="object"&&w(t)}function Cs(t){return t instanceof Promise}function Qe(t){return t instanceof Function}var vs=(()=>{class t{constructor(e){this.element=e,this.escape=!0}ngOnChanges(e){this.element.nativeElement.innerHTML=this.escape?bs(this.ngItemLabel):this.ngItemLabel}static{this.\u0275fac=function(i){return new(i||t)(f(oe))}}static{this.\u0275dir=W({type:t,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},standalone:!0,features:[Ie]})}}return t})(),ht=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||t)(f(S))}}static{this.\u0275dir=W({type:t,selectors:[["","ng-option-tmp",""]],standalone:!0})}}return t})(),ft=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||t)(f(S))}}static{this.\u0275dir=W({type:t,selectors:[["","ng-optgroup-tmp",""]],standalone:!0})}}return t})(),Es=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||t)(f(S))}}static{this.\u0275dir=W({type:t,selectors:[["","ng-label-tmp",""]],standalone:!0})}}return t})(),_t=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||t)(f(S))}}static{this.\u0275dir=W({type:t,selectors:[["","ng-multi-label-tmp",""]],standalone:!0})}}return t})(),ys=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||t)(f(S))}}static{this.\u0275dir=W({type:t,selectors:[["","ng-header-tmp",""]],standalone:!0})}}return t})(),Ts=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||t)(f(S))}}static{this.\u0275dir=W({type:t,selectors:[["","ng-footer-tmp",""]],standalone:!0})}}return t})(),Ss=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||t)(f(S))}}static{this.\u0275dir=W({type:t,selectors:[["","ng-notfound-tmp",""]],standalone:!0})}}return t})(),Is=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||t)(f(S))}}static{this.\u0275dir=W({type:t,selectors:[["","ng-placeholder-tmp",""]],standalone:!0})}}return t})(),xs=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||t)(f(S))}}static{this.\u0275dir=W({type:t,selectors:[["","ng-typetosearch-tmp",""]],standalone:!0})}}return t})(),ws=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||t)(f(S))}}static{this.\u0275dir=W({type:t,selectors:[["","ng-loadingtext-tmp",""]],standalone:!0})}}return t})(),As=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||t)(f(S))}}static{this.\u0275dir=W({type:t,selectors:[["","ng-tag-tmp",""]],standalone:!0})}}return t})(),Fs=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(i){return new(i||t)(f(S))}}static{this.\u0275dir=W({type:t,selectors:[["","ng-loadingspinner-tmp",""]],standalone:!0})}}return t})();function Yi(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var ks={"\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 ze(t){let s=e=>ks[e]||e;return t.replace(/[^\u0000-\u007E]/g,s)}var pt=class{constructor(s,e){this._ngSelect=s,this._selectionModel=e,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 s=this.selectedItems.length-1;for(;s>=0;s--){let e=this.selectedItems[s];if(!e.disabled)return e}return null}setItems(s){this._items=s.map((e,i)=>this.mapItem(e,i)),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(s){if(s.selected||this.maxItemsSelected)return;let e=this._ngSelect.multiple;e||this.clearSelected(),this._selectionModel.select(s,e,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(s)}unselect(s){s.selected&&(this._selectionModel.unselect(s,this._ngSelect.multiple),this._ngSelect.hideSelected&&w(s.index)&&this._ngSelect.multiple&&this._showSelected(s))}findItem(s){let e;return this._ngSelect.compareWith?e=i=>this._ngSelect.compareWith(i.value,s):this._ngSelect.bindValue?e=i=>!i.children&&this.resolveNested(i.value,this._ngSelect.bindValue)===s:e=i=>i.value===s||!i.children&&i.label&&i.label===this.resolveNested(s,this._ngSelect.bindLabel),this._items.find(i=>e(i))}addItem(s){let e=this.mapItem(s,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(s=!1){this._selectionModel.clear(s),this._items.forEach(e=>{e.selected=s&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(s){return s=ze(s).toLocaleLowerCase(),this.filteredItems.find(e=>ze(e.label).toLocaleLowerCase().substr(0,s.length)===s)}filter(s){if(!s){this.resetFilteredItems();return}this._filteredItems=[],s=this._ngSelect.searchFn?s:ze(s).toLocaleLowerCase();let e=this._ngSelect.searchFn||this._defaultSearchFn,i=this._ngSelect.hideSelected;for(let n of Array.from(this._groups.keys())){let r=[];for(let a of this._groups.get(n)){if(i&&(a.parent&&a.parent.selected||a.selected))continue;let h=this._ngSelect.searchFn?a.value:a;e(s,h)&&r.push(a)}if(r.length>0){let[a]=r.slice(-1);if(a.parent){let h=this._items.find(g=>g===a.parent);this._filteredItems.push(h)}this._filteredItems.push(...r)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected&&this.selectedItems.length>0?this._filteredItems=this._items.filter(s=>!s.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(s){this._markedIndex=this._filteredItems.indexOf(s)}markSelectedOrDefault(s){if(this._filteredItems.length===0)return;let e=this._getLastMarkedIndex();e>-1?this._markedIndex=e:this._markedIndex=s?this.filteredItems.findIndex(i=>!i.disabled):-1}resolveNested(s,e){if(!De(s))return s;if(e.indexOf(".")===-1)return s[e];{let i=e.split("."),n=s;for(let r=0,a=i.length;rthis.selectedItems.indexOf(e)===-1))}_showSelected(s){if(this._filteredItems.push(s),s.parent){let e=s.parent;this._filteredItems.find(n=>n===e)||this._filteredItems.push(e)}else if(s.children)for(let e of s.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((e,i)=>e.index-i.index)]}_hideSelected(s){this._filteredItems=this._filteredItems.filter(e=>e!==s),s.parent?s.parent.children.every(i=>i.selected)&&(this._filteredItems=this._filteredItems.filter(i=>i!==s.parent)):s.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==s))}_defaultSearchFn(s,e){return ze(e.label).toLocaleLowerCase().indexOf(s)>-1}_getNextItemIndex(s){return s>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(s){this._filteredItems.length===0||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(s),this.markedItem.disabled&&this._stepToItem(s))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&this.markedItem===void 0)return-1;let s=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&s<0?-1:Math.max(this.markedIndex,s)}_groupBy(s,e){let i=new Map;if(s.length===0)return i;if(Array.isArray(s[0].value[e])){for(let a of s){let h=(a.value[e]||[]).map((g,A)=>this.mapItem(g,A));i.set(a,h)}return i}let n=Qe(this._ngSelect.groupBy),r=a=>{let h=n?e(a.value):a.value[e];return w(h)?h:void 0};for(let a of s){let h=r(a),g=i.get(h);g?g.push(a):i.set(h,[a])}return i}_flatten(s){let e=Qe(this._ngSelect.groupBy),i=[];for(let n of Array.from(s.keys())){let r=i.length;if(n===void 0){let R=s.get(void 0)||[];i.push(...R.map($=>($.index=r++,$)));continue}let a=De(n),h={label:a?"":String(n),children:void 0,parent:null,index:r++,disabled:!this._ngSelect.selectableGroup,htmlId:Yi()},g=e?this._ngSelect.bindLabel:this._ngSelect.groupBy,A=this._ngSelect.groupValue||(()=>a?n.value:{[g]:n}),ee=s.get(n).map(R=>(R.parent=h,R.children=void 0,R.index=r++,R));h.children=ee,h.value=A(n,ee.map(R=>R.value)),i.push(h),i.push(...ee)}return i}},re=function(t){return t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Esc=27]="Esc",t[t.Space=32]="Space",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowDown=40]="ArrowDown",t[t.Backspace=8]="Backspace",t}(re||{}),Zi=(()=>{class t{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(e,i,n){let r=this._dimensions,a=r.itemHeight*i,g=Math.max(0,e)/a*i,A=Math.min(i,Math.ceil(g)+(r.itemsPerViewport+1)),R=Math.max(0,A-r.itemsPerViewport),$=Math.min(R,Math.floor(g)),Ce=r.itemHeight*Math.ceil($)-r.itemHeight*Math.min($,n);return Ce=isNaN(Ce)?0:Ce,$=isNaN($)?-1:$,A=isNaN(A)?-1:A,$-=n,$=Math.max(0,$),A+=n,A=Math.min(i,A),{topPadding:Ce,scrollHeight:a,start:$,end:A}}setDimensions(e,i){let n=Math.max(1,Math.floor(i/e));this._dimensions={itemHeight:e,panelHeight:i,itemsPerViewport:n}}getScrollTo(e,i,n){let{panelHeight:r}=this.dimensions,a=e+i,h=n,g=h+r;return r>=a&&n===e?null:a>g?h+a-g:e<=h?e:null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=J({token:t,factory:t.\u0275fac})}}return t})(),Ui=["top","right","bottom","left"],Ds=typeof requestAnimationFrame<"u"?bt:gt,zi=(()=>{class t{constructor(e,i,n,r,a){this._renderer=e,this._zone=i,this._panelService=n,this._document=a,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new F,this.scroll=new F,this.scrollToEnd=new F,this.outsideClick=new F,this._destroy$=new ae,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=r.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:i}=this._panelService.dimensions,n=this.markedItem.index*e;return i>n?0:n}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 i=e.items;this._onItemsChange(i.currentValue,i.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(e,i=!1){if(!e)return;let n=this.items.indexOf(e);if(n<0||n>=this.itemsLength)return;let r;if(this.virtualScroll){let a=this._panelService.dimensions.itemHeight;r=this._panelService.getScrollTo(n*a,a,this._lastScrollPosition)}else{let a=this._dropdown.querySelector(`#${e.htmlId}`),h=i?a.offsetTop:this._lastScrollPosition;r=this._panelService.getScrollTo(a.offsetTop,a.clientHeight,h)}w(r)&&(this._scrollablePanel.scrollTop=r)}scrollToTag(){let e=this._scrollablePanel;e.scrollTop=e.scrollHeight-e.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),Ui.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(e){Ui.forEach(n=>{let r=`ng-select-${n}`;this._renderer.removeClass(this._dropdown,r),this._renderer.removeClass(this._select,r)});let i=`ng-select-${e}`;this._renderer.addClass(this._dropdown,i),this._renderer.addClass(this._select,i)}_handleScroll(){this._zone.runOutsideAngular(()=>{Te(this.scrollElementRef.nativeElement,"scroll").pipe(N(this._destroy$),vt(0,Ds)).subscribe(e=>{let i=e.path||e.composedPath&&e.composedPath();if(!i||i.length===0&&!e.target)return;let n=!i||i.length===0?e.target.scrollTop:i[0].scrollTop;this._onContentScrolled(n)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{Pe(Te(this._document,"touchstart",{capture:!0}),Te(this._document,"click",{capture:!0})).pipe(N(this._destroy$)).subscribe(e=>this._checkToClose(e))})}_checkToClose(e){if(this._select.contains(e.target)||this._dropdown.contains(e.target))return;let i=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&i&&i[0]&&this._select.contains(i[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(e,i){this.items=e||[],this._scrollToEndFired=!1,this.itemsLength=e.length,this.virtualScroll?this._updateItemsRange(i):(this._setVirtualHeight(),this._updateItems(i))}_updateItems(e){this.update.emit(this.items),e!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let i=this._scrollablePanel.clientHeight;this._panelService.setDimensions(0,i),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 i=this._panelService.calculateItems(e,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(i.scrollHeight),this._contentPanel.style.transform=`translateY(${i.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(i.start,i.end)),this.scroll.emit({start:i.start,end:i.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 n=this._dropdown.querySelector(`#${e.htmlId}`).clientHeight;this._virtualPadding.style.height=`${n*this.itemsLength}px`;let r=this._scrollablePanel.clientHeight;return this._panelService.setDimensions(n,r),this._panelService.dimensions})}_fireScrollToEnd(e){if(this._scrollToEndFired||e===0)return;let i=this.virtualScroll?this._virtualPadding:this._contentPanel;e+this._dropdown.clientHeight>=i.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(e){if(this.position!=="auto")return this.position;let i=this._select.getBoundingClientRect(),n=document.documentElement.scrollTop||document.body.scrollTop,r=i.top+window.pageYOffset,a=i.height,h=e.getBoundingClientRect().height;return r+a+h>n+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(),i=this._parent.getBoundingClientRect(),n=e.left-i.left;this._dropdown.style.left=n+"px",this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"}_updateYPosition(){let e=this._select.getBoundingClientRect(),i=this._parent.getBoundingClientRect(),n=e.height;if(this._currentPosition==="top"){let r=i.bottom-e.bottom;this._dropdown.style.bottom=r+n+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let r=e.top-i.top;this._dropdown.style.top=r+n+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{Te(this._dropdown,"mousedown").pipe(N(this._destroy$)).subscribe(e=>{e.target.tagName!=="INPUT"&&e.preventDefault()})})}static{this.\u0275fac=function(i){return new(i||t)(f(Dt),f(kt),f(Zi),f(oe),f(Rt,8))}}static{this.\u0275cmp=H({type:t,selectors:[["ng-dropdown-panel"]],viewQuery:function(i,n){if(i&1&&(be(Dn,7,oe),be(Bn,7,oe),be(On,7,oe)),i&2){let r;k(r=D())&&(n.contentElementRef=r.first),k(r=D())&&(n.scrollElementRef=r.first),k(r=D())&&(n.paddingElementRef=r.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:[2,"virtualScroll","virtualScroll",O],headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},standalone:!0,features:[Me,Ie,U],ngContentSelectors:Qi,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(i,n){i&1&&(Xe(),b(0,Ln,2,4,"div",3),l(1,"div",4,0),B(3,"div",null,1),l(5,"div",null,2),et(7),c()(),b(8,Pn,2,4,"div",5)),i&2&&(y(n.headerTemplate?0:-1),o(3),G("total-padding",n.virtualScroll),o(2),G("scrollable-content",n.virtualScroll&&n.items.length),o(3),y(n.footerTemplate?8:-1))},dependencies:[it],encapsulation:2,changeDetection:0})}}return t})(),Bs=(()=>{class t{constructor(e){this.elementRef=e,this.disabled=!1,this.stateChange$=new ae}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()}static{this.\u0275fac=function(i){return new(i||t)(f(oe))}}static{this.\u0275cmp=H({type:t,selectors:[["ng-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",O]},standalone:!0,features:[Me,Ie,U],ngContentSelectors:Qi,decls:1,vars:0,template:function(i,n){i&1&&(Xe(),et(0))},encapsulation:2,changeDetection:0})}}return t})();function Ji(){return new mt}var mt=class{constructor(){this._selected=[]}get value(){return this._selected}select(s,e,i){if(s.selected=!0,(!s.children||!e&&i)&&this._selected.push(s),e)if(s.parent){let n=s.parent.children.length,r=s.parent.children.filter(a=>a.selected).length;s.parent.selected=n===r}else s.children&&(this._setChildrenSelectedState(s.children,!0),this._removeChildren(s),i&&this._activeChildren(s)?this._selected=[...this._selected.filter(n=>n.parent!==s),s]:this._selected=[...this._selected,...s.children.filter(n=>!n.disabled)])}unselect(s,e){if(this._selected=this._selected.filter(i=>i!==s),s.selected=!1,e)if(s.parent&&s.parent.selected){let i=s.parent.children;this._removeParent(s.parent),this._removeChildren(s.parent),this._selected.push(...i.filter(n=>n!==s&&!n.disabled)),s.parent.selected=!1}else s.children&&(this._setChildrenSelectedState(s.children,!1),this._removeChildren(s))}clear(s){this._selected=s?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(s,e){for(let i of s)i.disabled||(i.selected=e)}_removeChildren(s){this._selected=[...this._selected.filter(e=>e.parent!==s),...s.children.filter(e=>e.parent===s&&e.disabled&&e.selected)]}_removeParent(s){this._selected=this._selected.filter(e=>e!==s)}_activeChildren(s){return s.children.every(e=>!e.disabled||e.selected)}},Os=(()=>{class t{constructor(){this.fixedPlaceholder=!0,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{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=J({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Ls=(()=>{class t{warn(e){console.warn(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=J({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Xi=new wt("ng-select-selection-model"),en=(()=>{class t{constructor(e,i,n,r,a,h,g){this.classes=e,this.autoFocus=i,this.config=n,this._cd=h,this._console=g,this.markFirst=!0,this.fixedPlaceholder=!0,this.preventToggleOnRightClick=!1,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.ngClass=null,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new F,this.focusEvent=new F,this.changeEvent=new F,this.openEvent=new F,this.closeEvent=new F,this.searchEvent=new F,this.clearEvent=new F,this.addEvent=new F,this.removeEvent=new F,this.scroll=new F,this.scrollToEnd=new F,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=Yi(),this.escapeHTML=!0,this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new ae,this._keyPress$=new ae,this._items=[],this.keyDownFn=A=>!0,this.clearItem=A=>{let ee=this.selectedItems.find(R=>R.value===A);this.unselect(ee)},this.trackByOption=(A,ee)=>this.trackByFn?this.trackByFn(ee.value):ee,this._onChange=A=>{},this._onTouched=()=>{},this._mergeGlobalConfig(n),this.itemsList=new pt(this,r?r():Ji()),this.element=a.nativeElement}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get items(){return this._items}set items(e){this._itemsAreUsed=!0,this._items=e??[]}get disabled(){return this.readonly||this._disabled}get compareWith(){return this._compareWith}set compareWith(e){if(e!=null&&!Qe(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 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}get showAddTag(){if(!this._validTerm)return!1;let e=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(i=>i.label.toLowerCase()===e)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(i=>i.label.toLowerCase()===e))&&!this.loading}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}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}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(re[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 i=e.target;this.clearButton&&this.clearButton.nativeElement===i?this.handleKeyCodeClear(e):this.handleKeyCodeInput(e)}handleKeyCodeInput(e){switch(e.which){case re.ArrowDown:this._handleArrowDown(e);break;case re.ArrowUp:this._handleArrowUp(e);break;case re.Space:this._handleSpace(e);break;case re.Enter:this._handleEnter(e);break;case re.Tab:this._handleTab(e);break;case re.Esc:this.close(),e.preventDefault();break;case re.Backspace:this._handleBackspace();break}}handleKeyCodeClear(e){switch(e.which){case re.Enter:this.handleClearClick(),e.preventDefault();break}}handleMousedown(e){if(this.preventToggleOnRightClick&&e.button===2)return!1;let i=e.target;if(i.tagName!=="INPUT"&&e.preventDefault(),i.classList.contains("ng-clear-wrapper")){this.handleClearClick();return}if(i.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}i.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())}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(),this._onSelectionChanged()}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),this._onSelectionChanged())}selectTag(){let e;Qe(this.addTag)?e=this.addTag(this.searchTerm):e=this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};let i=n=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(n,null):this.itemsList.addItem(n);Cs(e)?e.then(n=>this.select(i(n))).catch(()=>{}):e&&this.select(i(e))}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}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(i=>i.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 i=e[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=w(i)?!De(i):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=n=>{this.items=n.map(r=>({$ngOptionValue:r.value,$ngOptionLabel:r.elementRef.nativeElement.innerHTML,disabled:r.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},i=()=>{let n=Pe(this.ngOptions.changes,this._destroy$);Pe(...this.ngOptions.map(r=>r.stateChange$)).pipe(N(n)).subscribe(r=>{let a=this.itemsList.findItem(r.value);a.disabled=r.disabled,a.label=r.label||a.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe(Tt(this.ngOptions),N(this._destroy$)).subscribe(n=>{this.bindLabel=this._defaultLabel,e(n),i()})}_isValidWriteValue(e){if(!w(e)||this.multiple&&e===""||Array.isArray(e)&&e.length===0)return!1;let i=n=>!w(this.compareWith)&&De(n)&&this.bindValue?(this._console.warn(`Setting object(${JSON.stringify(n)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple?Array.isArray(e)?e.every(n=>i(n)):(this._console.warn("Multiple select ngModel should be array."),!1):i(e)}_handleWriteValue(e){if(!this._isValidWriteValue(e))return;let i=n=>{let r=this.itemsList.findItem(n);if(r)this.itemsList.select(r);else{let a=De(n),h=!a&&!this.bindValue;a||h?this.itemsList.select(this.itemsList.mapItem(n,null)):this.bindValue&&(r={[this.bindLabel]:null,[this.bindValue]:n},this.itemsList.select(this.itemsList.mapItem(r,null)))}};this.multiple?e.forEach(n=>i(n)):i(e)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe(N(this._destroy$),St(e=>this._pressedKeys.push(e)),Et(200),Ne(()=>this._pressedKeys.length>0),T(()=>this._pressedKeys.join(""))).subscribe(e=>{let i=this.itemsList.findByLabel(e);i&&(this.isOpen?(this.itemsList.markItem(i),this._scrollToMarked(),this._cd.markForCheck()):this.select(i)),this._pressedKeys=[]})}_setInputAttributes(){let e=this.searchInput.nativeElement,i=ve({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId},this.inputAttrs);for(let n of Object.keys(i))e.setAttribute(n,i[n])}_updateNgModel(){let e=[];for(let n of this.selectedItems)if(this.bindValue){let r=null;if(n.children){let a=this.groupValue?this.bindValue:this.groupBy;r=n.value[a||this.groupBy]}else r=this.itemsList.resolveNested(n.value,this.bindValue);e.push(r)}else e.push(n.value);let i=this.selectedItems.map(n=>n.value);this.multiple?(this._onChange(e),this.changeEvent.emit(i)):(this._onChange(w(e[0])?e[0]:null),this.changeEvent.emit(i[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 i=this.itemsList.markedIndex+e;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(i<0||i===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}_mergeGlobalConfig(e){this.placeholder=this.placeholder||e.placeholder,this.fixedPlaceholder=this.fixedPlaceholder||e.fixedPlaceholder,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}static{this.\u0275fac=function(i){return new(i||t)(Ye("class"),Ye("autofocus"),f(Os),f(Xi,8),f(oe),f(Vt),f(Ls))}}static{this.\u0275cmp=H({type:t,selectors:[["ng-select"]],contentQueries:function(i,n,r){if(i&1&&(q(r,ht,5,S),q(r,ft,5,S),q(r,Es,5,S),q(r,_t,5,S),q(r,ys,5,S),q(r,Ts,5,S),q(r,Ss,5,S),q(r,Is,5,S),q(r,xs,5,S),q(r,ws,5,S),q(r,As,5,S),q(r,Fs,5,S),q(r,Bs,5)),i&2){let a;k(a=D())&&(n.optionTemplate=a.first),k(a=D())&&(n.optgroupTemplate=a.first),k(a=D())&&(n.labelTemplate=a.first),k(a=D())&&(n.multiLabelTemplate=a.first),k(a=D())&&(n.headerTemplate=a.first),k(a=D())&&(n.footerTemplate=a.first),k(a=D())&&(n.notFoundTemplate=a.first),k(a=D())&&(n.placeholderTemplate=a.first),k(a=D())&&(n.typeToSearchTemplate=a.first),k(a=D())&&(n.loadingTextTemplate=a.first),k(a=D())&&(n.tagTemplate=a.first),k(a=D())&&(n.loadingSpinnerTemplate=a.first),k(a=D())&&(n.ngOptions=a)}},viewQuery:function(i,n){if(i&1&&(be(zi,5),be(Nn,7),be(Mn,5)),i&2){let r;k(r=D())&&(n.dropdownPanel=r.first),k(r=D())&&(n.searchInput=r.first),k(r=D())&&(n.clearButton=r.first)}},hostVars:20,hostBindings:function(i,n){i&1&&x("keydown",function(a){return n.handleKeyDown(a)}),i&2&&G("ng-select-typeahead",n.typeahead)("ng-select-multiple",n.multiple)("ng-select-taggable",n.addTag)("ng-select-searchable",n.searchable)("ng-select-clearable",n.clearable)("ng-select-opened",n.isOpen)("ng-select",n.useDefaultClass)("ng-select-filtered",n.filtered)("ng-select-single",n.single)("ng-select-disabled",n.disabled)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",ariaLabel:"ariaLabel",markFirst:[2,"markFirst","markFirst",O],placeholder:"placeholder",fixedPlaceholder:"fixedPlaceholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",preventToggleOnRightClick:"preventToggleOnRightClick",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:[2,"loading","loading",O],closeOnSelect:[2,"closeOnSelect","closeOnSelect",O],hideSelected:[2,"hideSelected","hideSelected",O],selectOnTab:[2,"selectOnTab","selectOnTab",O],openOnEnter:[2,"openOnEnter","openOnEnter",O],maxSelectedItems:[2,"maxSelectedItems","maxSelectedItems",we],groupBy:"groupBy",groupValue:"groupValue",bufferAmount:[2,"bufferAmount","bufferAmount",we],virtualScroll:[2,"virtualScroll","virtualScroll",O],selectableGroup:[2,"selectableGroup","selectableGroup",O],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",O],searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",O],labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:[2,"tabIndex","tabIndex",we],readonly:[2,"readonly","readonly",O],searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",O],minTermLength:[2,"minTermLength","minTermLength",we],editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",O],ngClass:"ngClass",typeahead:"typeahead",multiple:[2,"multiple","multiple",O],addTag:"addTag",searchable:[2,"searchable","searchable",O],clearable:[2,"clearable","clearable",O],isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick",keyDownFn:"keyDownFn"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},standalone:!0,features:[me([{provide:Qt,useExisting:It(()=>t),multi:!0},Zi]),Me,Ie,U],decls:13,vars:19,consts:[["searchInput",""],["defaultPlaceholderTemplate",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-input"],["aria-autocomplete","list","role","combobox",3,"blur","change","compositionend","compositionstart","focus","input","disabled","readOnly","value"],["role","button","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"],[3,"ngTemplateOutlet"],[1,"ng-placeholder"],[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"],[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(i,n){if(i&1){let r=P();l(0,"div",10),x("mousedown",function(h){return v(r),E(n.handleMousedown(h))}),l(1,"div",11),b(2,Wn,3,1)(3,zn,2,0)(4,Kn,1,5,null,12),l(5,"div",13)(6,"input",14,0),x("blur",function(h){return v(r),E(n.onInputBlur(h))})("change",function(h){return v(r),E(h.stopPropagation())})("compositionend",function(){v(r);let h=z(7);return E(n.onCompositionEnd(h.value))})("compositionstart",function(){return v(r),E(n.onCompositionStart())})("focus",function(h){return v(r),E(n.onInputFocus(h))})("input",function(){v(r);let h=z(7);return E(n.filter(h.value))}),c()()(),b(8,Jn,3,1)(9,Xn,4,1,"span",15),l(10,"span",16),B(11,"span",17),c()(),b(12,fs,8,17,"ng-dropdown-panel",18)}i&2&&(G("ng-appearance-outline",n.appearance==="outline")("ng-has-value",n.hasValue),o(2),y(n.selectedItems.length===0&&!n.searchTerm||n.fixedPlaceholder===!0?2:-1),o(),y((!n.multiLabelTemplate||!n.multiple)&&n.selectedItems.length>0?3:-1),o(),y(n.multiple&&n.multiLabelTemplate&&n.selectedValues.length>0?4:-1),o(2),_("disabled",n.disabled)("readOnly",!n.searchable||n.itemsList.maxItemsSelected)("value",n.searchTerm?n.searchTerm:""),te("aria-activedescendant",n.isOpen?n.itemsList==null||n.itemsList.markedItem==null?null:n.itemsList.markedItem.htmlId:null)("aria-controls",n.isOpen?n.dropdownId:null)("aria-expanded",n.isOpen)("aria-label",n.ariaLabel)("id",n.labelForId)("tabindex",n.tabIndex),o(2),y(n.loading?8:-1),o(),y(n.showClear()?9:-1),o(3),y(n.isOpen?12:-1))},dependencies:[it,vs,zi,jt],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:unset;user-select:unset;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})}}return t})(),tn=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=At({type:t})}static{this.\u0275inj=xt({providers:[{provide:Xi,useValue:Ji}]})}}return t})();var Ns=(t,s)=>s.Key;function Ms(t,s){if(t&1){let e=P();l(0,"div",4),p(1),l(2,"span",5),x("click",function(){let n=v(e).$implicit,r=m().clear;return E(r(n))}),p(3,"\xD7"),c()()}if(t&2){let e=s.$implicit;o(),C(" ",e.Value," ")}}function Vs(t,s){if(t&1&&M(0,Ms,4,1,"div",4,Ns),t&2){let e=s.items;V(e)}}function Rs(t,s){if(t&1&&(B(0,"input",6),p(1)),t&2){let e=s.item,i=s.item$,n=s.index;tt("id","item-",n,""),_("ngModel",i.selected),o(),C(" ",e.Group," ")}}function $s(t,s){if(t&1&&(B(0,"input",6),p(1)),t&2){let e=s.item,i=s.item$,n=s.index;tt("id","item-",n,""),_("ngModel",i.selected),o(),C(" ",e.Value," ")}}var nn=(()=>{class t{constructor(){this.options=[],this.values=[],this.valuesChange=new F}itemsChanged(){this.valuesChange.emit(this.values)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=H({type:t,selectors:[["bkd-multiselect"]],inputs:{options:"options",values:"values"},outputs:{valuesChange:"valuesChange"},standalone:!0,features:[U],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",""],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","right",3,"click"],["type","checkbox",3,"id","ngModel"]],template:function(i,n){i&1&&(l(0,"ng-select",0),d(1,"translate"),Y("ngModelChange",function(a){return K(n.values,a)||(n.values=a),a}),x("click",function(){return n.itemsChanged()})("clear",function(){return n.itemsChanged()}),b(2,Vs,2,0,"ng-template",1)(3,Rs,2,4,"ng-template",2)(4,$s,2,4,"ng-template",3),c()),i&2&&(ge("placeholder",u(1,8,"shared.select.empty-option")),_("items",n.options)("multiple",!0)("selectableGroup",!0)("selectableGroupAsModel",!1)("closeOnSelect",!1),Q("ngModel",n.values),_("clearable",!0))},dependencies:[tn,en,ft,ht,_t,$e,Kt,Re,Jt,_e,fe]})}}return t})();var sn=zt({HRef:nt,Id:st,TeacherId:st,FullName:nt});var rn=(()=>{class t extends xi{constructor(e,i){super(e,i,sn,"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(i=>Ct({Key:i[0].FullName,Value:`${i[0].FullName}`})))}static{this.\u0275fac=function(i){return new(i||t)(j(Wt),j(he))}}static{this.\u0275prov=J({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var on=(()=>{class t{constructor(e,i,n,r,a,h){this.studentsService=e,this.educationalEventsService=i,this.studyClassService=n,this.teacherResourcesService=r,this.state=a,this.translate=h,this.filter={student:null,educationalEvent:null,studyClass:null,teacher:null,dateFrom:null,dateTo:null,weekdays:null,presenceTypes:null,confirmationStates:null,incidentTypes:null},this.filterChange=new F,this.weekdaysGrouped$=this.state.weekdays$.pipe(T(g=>ke(g,this.translate.instant("shared.multiselect.all-option")))),this.absenceConfirmationStatesGrouped$=this.state.absenceConfirmationStates$.pipe(T(g=>ke(g,this.translate.instant("shared.multiselect.all-option")))),this.presenceTypesGrouped$=this.state.presenceTypes$.pipe(T(g=>g.filter(Fe(bi)).filter(Fe(ot))),T(ct),T(dt),T(g=>ke(g,this.translate.instant("shared.multiselect.all-option")))),this.incidentTypesGrouped$=this.state.presenceTypes$.pipe(T(g=>g.filter(ot)),T(ct),T(dt),T(g=>ke(g,this.translate.instant("shared.multiselect.all-option")))),this.classesHttpFilter={params:{fields:"IsActive","filter.IsActive":"=true"}}}show(){this.filterChange.emit(Oe(ve({},this.filter),{dateFrom:an(this.filter.dateFrom),dateTo:an(this.filter.dateTo)}))}static{this.\u0275fac=function(i){return new(i||t)(f(wi),f($i),f(ji),f(rn),f(ie),f(je))}}static{this.\u0275cmp=H({type:t,selectors:[["bkd-edit-absences-header"]],inputs:{filter:"filter"},outputs:{filterChange:"filterChange"},standalone:!0,features:[me([{provide:li,useClass:di},{provide:ci,useClass:Bi}]),U],decls:60,vars:60,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"],[3,"valuesChange","options","values"],[1,"row","g-3","align-items-end"],[1,"col-sm-12","col-md"],[1,"col-auto"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(i,n){i&1&&(l(0,"div",0)(1,"div",1)(2,"label",2),p(3),d(4,"translate"),c(),l(5,"bkd-typeahead",3),Y("valueChange",function(a){return K(n.filter.student,a)||(n.filter.student=a),a}),c()(),l(6,"div",1)(7,"label",2),p(8),d(9,"translate"),c(),l(10,"bkd-typeahead",3),Y("valueChange",function(a){return K(n.filter.educationalEvent,a)||(n.filter.educationalEvent=a),a}),c()(),l(11,"div",1)(12,"label",2),p(13),d(14,"translate"),c(),l(15,"bkd-typeahead",4),Y("valueChange",function(a){return K(n.filter.studyClass,a)||(n.filter.studyClass=a),a}),c()(),l(16,"div",1)(17,"label",2),p(18),d(19,"translate"),c(),l(20,"bkd-typeahead",3),Y("valueChange",function(a){return K(n.filter.teacher,a)||(n.filter.teacher=a),a}),c()(),l(21,"div",1)(22,"label",2),p(23),d(24,"translate"),c(),l(25,"bkd-date-select",5),Y("valueChange",function(a){return K(n.filter.dateFrom,a)||(n.filter.dateFrom=a),a}),c()(),l(26,"div",1)(27,"label",2),p(28),d(29,"translate"),c(),l(30,"bkd-date-select",5),Y("valueChange",function(a){return K(n.filter.dateTo,a)||(n.filter.dateTo=a),a}),c()(),l(31,"div",1)(32,"label",2),p(33),d(34,"translate"),c(),l(35,"bkd-multiselect",6),d(36,"async"),Y("valuesChange",function(a){return K(n.filter.weekdays,a)||(n.filter.weekdays=a),a}),c()()(),l(37,"div",7)(38,"div",8)(39,"label",2),p(40),d(41,"translate"),c(),l(42,"bkd-multiselect",6),d(43,"async"),Y("valuesChange",function(a){return K(n.filter.confirmationStates,a)||(n.filter.confirmationStates=a),a}),c()(),l(44,"div",8)(45,"label",2),p(46),d(47,"translate"),c(),l(48,"bkd-multiselect",6),d(49,"async"),Y("valuesChange",function(a){return K(n.filter.presenceTypes,a)||(n.filter.presenceTypes=a),a}),c()(),l(50,"div",8)(51,"label",2),p(52),d(53,"translate"),c(),l(54,"bkd-multiselect",6),d(55,"async"),Y("valuesChange",function(a){return K(n.filter.incidentTypes,a)||(n.filter.incidentTypes=a),a}),c()(),l(56,"div",9)(57,"button",10),x("click",function(){return n.show()}),p(58),d(59,"translate"),c()()()),i&2&&(o(3),I(u(4,30,"edit-absences.header.student")),o(2),_("typeaheadService",n.studentsService),Q("value",n.filter.student),o(3),I(u(9,32,"edit-absences.header.module-instance")),o(2),_("typeaheadService",n.educationalEventsService),Q("value",n.filter.educationalEvent),o(3),I(u(14,34,"edit-absences.header.study-class")),o(2),_("typeaheadService",n.studyClassService),Q("value",n.filter.studyClass),_("additionalHttpParams",n.classesHttpFilter),o(3),I(u(19,36,"edit-absences.header.teacher")),o(2),_("typeaheadService",n.teacherResourcesService),Q("value",n.filter.teacher),o(3),I(u(24,38,"edit-absences.header.date-from")),o(2),Q("value",n.filter.dateFrom),o(3),I(u(29,40,"edit-absences.header.date-to")),o(2),Q("value",n.filter.dateTo),o(3),I(u(34,42,"edit-absences.header.weekdays")),o(2),_("options",u(36,44,n.weekdaysGrouped$)),Q("values",n.filter.weekdays),o(5),I(u(41,46,"edit-absences.header.confirmation-state")),o(2),_("options",u(43,48,n.absenceConfirmationStatesGrouped$)),Q("values",n.filter.confirmationStates),o(4),I(u(47,50,"edit-absences.header.presence-type")),o(2),_("options",u(49,52,n.presenceTypesGrouped$)),Q("values",n.filter.presenceTypes),o(4),I(u(53,54,"edit-absences.header.incident")),o(2),_("options",u(55,56,n.incidentTypesGrouped$)),Q("values",n.filter.incidentTypes),o(4),C(" ",u(59,58,"edit-absences.header.show")," "))},dependencies:[ki,Ri,nn,ye,_e,fe],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:0 1rem 1rem 0;border-bottom:1px solid #dee2e6}"],changeDetection:0})}}return t})();function an(t){return t?gi(t):null}var Hs=(t,s)=>s.id,Ws=()=>[],ln=t=>({count:t}),cn=t=>({returnparams:t}),Gs=t=>["student",t,"absences"];function qs(t,s){t&1&&B(0,"bkd-spinner")}function Us(t,s){if(t&1&&(l(0,"div",5)(1,"div",9),p(2),d(3,"async"),d(4,"translate"),d(5,"translate"),c(),l(6,"a",10),d(7,"async"),l(8,"i",11),p(9,"edit"),c()()()),t&2){let e=m(4),i=Z(0);o(2),Ee(" ",se(4,7,"edit-absences.list.total",X(15,ln,u(3,5,e.state.total$)||0)),", ",se(5,10,"edit-absences.list.selected",X(17,ln,i.length))," "),o(4),G("disabled",i.length===0),_("queryParams",X(19,cn,u(7,13,e.state.queryParamsString$)))}}function zs(t,s){if(t&1){let e=P();l(0,"tr")(1,"td",14),x("click",function(n){v(e);let r=z(3),a=m(5);return E(a.onCheckboxCellClick(n,r))}),l(2,"input",12,0),d(4,"async"),x("change",function(){let n=v(e).$implicit,r=m(5);return E(r.selectionService.toggle(n.lessonPresence))}),c()(),l(5,"td",13),d(6,"translate"),l(7,"span",15)(8,"i",11),p(9),c()()(),l(10,"td"),d(11,"translate"),l(12,"a",16),d(13,"async"),p(14),c(),B(15,"br"),p(16),c(),l(17,"td"),d(18,"translate"),p(19),d(20,"date"),c(),l(21,"td"),d(22,"translate"),p(23),d(24,"date"),d(25,"date"),c(),l(26,"td"),d(27,"translate"),p(28),c(),l(29,"td",17),d(30,"translate"),p(31),c(),l(32,"td"),d(33,"translate"),p(34),c()()}if(t&2){let e=s.$implicit,i=m(5);o(2),_("checked",u(4,21,i.selectionService.isSelected$(e.lessonPresence))),o(3),te("data-label",u(6,23,"edit-absences.list.header.presence")),o(2),_("className",e.presenceCategory),o(2),I(e.presenceCategoryIcon),o(),te("data-label",u(11,25,"edit-absences.list.header.mobil-student-module-instance-study-class")),o(2),_("routerLink",X(48,Gs,e.lessonPresence.StudentRef.Id))("queryParams",X(50,cn,u(13,27,i.profileReturnParams$))),o(2),C(" ",e.lessonPresence.StudentFullName," "),o(2),Ee(" ",e.lessonPresence.EventDesignation,", ",e.lessonPresence.StudyClassNumber," "),o(),te("data-label",u(18,29,"edit-absences.list.header.date")),o(2),C(" ",se(20,31,e.lessonPresence.LessonDateTimeFrom,"mediumDate")," "),o(2),te("data-label",u(22,34,"edit-absences.list.header.time")),o(2),Ee(" ",se(24,36,e.lessonPresence.LessonDateTimeFrom,"shortTime"),"\u2013",se(25,39,e.lessonPresence.LessonDateTimeTo,"shortTime")," "),o(3),te("data-label",u(27,42,"edit-absences.list.header.confirmation-state")),o(2),C(" ",e.confirmationState==null?null:e.confirmationState.Value," "),o(),te("data-label",u(30,44,"edit-absences.list.header.mobil-presence-type-incident")),o(2),C(" ",e.presenceType==null?null:e.presenceType.Designation," "),o(),te("data-label",u(33,46,"edit-absences.list.header.teacher")),o(2),C(" ",e.lessonPresence.TeacherInformation," ")}}function Qs(t,s){if(t&1){let e=P();l(0,"table",6)(1,"thead")(2,"tr")(3,"th")(4,"input",12),x("change",function(n){v(e);let r=m(4);return E(r.toggleAll(n.currentTarget==null?null:n.currentTarget.checked))}),c()(),l(5,"th",13),p(6),d(7,"translate"),c(),l(8,"th"),p(9),d(10,"translate"),B(11,"br"),p(12),d(13,"translate"),d(14,"translate"),c(),l(15,"th"),p(16),d(17,"translate"),c(),l(18,"th"),p(19),d(20,"translate"),c(),l(21,"th"),p(22),d(23,"translate"),c(),l(24,"th"),p(25),d(26,"translate"),d(27,"translate"),c(),l(28,"th"),p(29),d(30,"translate"),c()()(),l(31,"tbody"),M(32,zs,35,52,"tr",null,Hs),c()()}if(t&2){m(4);let e=Z(0),i=Z(2);o(4),_("checked",e.length===i.length),o(2),C(" ",u(7,11,"edit-absences.list.header.presence")," "),o(3),C(" ",u(10,13,"edit-absences.list.header.student")," "),o(3),Ee(" ",u(13,15,"edit-absences.list.header.module-instance"),", ",u(14,17,"edit-absences.list.header.study-class")," "),o(4),C(" ",u(17,19,"edit-absences.list.header.date")," "),o(3),I(u(20,21,"edit-absences.list.header.time")),o(3),C(" ",u(23,23,"edit-absences.list.header.confirmation-state")," "),o(3),Ee(" ",u(26,25,"edit-absences.list.header.presence-type")," / ",u(27,27,"edit-absences.list.header.incident")," "),o(4),I(u(30,29,"edit-absences.list.header.teacher")),o(3),V(i)}}function Ks(t,s){t&1&&B(0,"bkd-spinner",7)}function Ys(t,s){if(t&1){let e=P();l(0,"button",18),x("click",function(){v(e);let n=m(4);return E(n.state.nextPage())}),p(1),d(2,"translate"),c()}t&2&&(o(),C(" ",u(2,1,"global.pagination.load-more")," "))}function Zs(t,s){if(t&1){let e=P();l(0,"div",4),x("scrolled",function(){v(e);let n=m(3);return E(n.onScroll())}),b(1,Us,10,21,"div",5)(2,Qs,34,31,"table",6)(3,Ks,1,0,"bkd-spinner",7)(4,Ys,3,3,"button",8),c()}if(t&2){m(3);let e=Z(2),i=Z(4),n=Z(6);o(),y(e&&e.length>0?1:-1),o(),y(e&&e.length>0?2:-1),o(),y(n?3:-1),o(),y(i&&!n?4:-1)}}function Js(t,s){t&1&&(l(0,"p",2),p(1),d(2,"translate"),c()),t&2&&(o(),I(u(2,1,"edit-absences.no-entries")))}function Xs(t,s){if(t&1&&b(0,Zs,5,4,"div",3)(1,Js,3,3,"p",2),t&2){m(2);let e=Z(2),i=Z(6);y(e&&e.length>0||i?0:1)}}function er(t,s){if(t&1&&(b(0,qs,1,0,"bkd-spinner"),d(1,"async"),b(2,Xs,2,1)),t&2){let e=m();y(u(1,1,e.state.loading$)?0:2)}}function tr(t,s){t&1&&(l(0,"p",2),p(1),d(2,"translate"),c()),t&2&&(o(),I(u(2,1,"edit-absences.no-filter")))}var dn=(()=>{class t{constructor(e,i,n,r){this.state=e,this.selectionService=i,this.scrollPosition=n,this.route=r,this.filterFromParams$=this.route.queryParams.pipe(T(ir)),this.profileReturnParams$=this.state.queryParamsString$,this.destroy$=new ae}ngOnInit(){this.filterFromParams$.pipe(ne(1)).subscribe(e=>this.state.setFilter(e)),this.state.validFilter$.pipe(N(this.destroy$)).subscribe(()=>this.selectionService.clear()),this.selectionService.selection$.pipe(N(this.destroy$)).subscribe(e=>this.state.selected=e),this.route.queryParams.pipe(ne(1),T(({reload:e})=>e),Ne(fi)).subscribe(()=>this.state.resetEntries())}ngAfterViewInit(){this.scrollPosition.restore()}ngOnDestroy(){this.destroy$.next()}toggleAll(e){this.state.entries$.pipe(ne(1)).subscribe(i=>this.selectionService.clear(e?i:null))}onCheckboxCellClick(e,i){e.target!==i&&i.click()}onScroll(){this.state.nextPage()}static{this.\u0275fac=function(i){return new(i||t)(f(ie),f(Ue),f(Oi),f(Ve))}}static{this.\u0275cmp=H({type:t,selectors:[["bkd-edit-absences-list"]],standalone:!0,features:[me([Ue]),U],decls:16,vars:22,consts:[["checkbox",""],[3,"filterChange","filter"],[1,"mt-3"],["infiniteScroll","",1,"py-3"],["infiniteScroll","",1,"py-3",3,"scrolled"],[1,"d-flex","align-items-center","justify-content-between"],[1,"table","table-striped"],[1,"inline"],["type","button",1,"btn","btn-outline-secondary","btn-sm","d-block","mx-auto"],[1,"total"],["routerLink","/edit-absences/edit",1,"edit","btn","btn-primary","btn-icon","mt-1","mb-2",3,"queryParams"],[1,"material-icons"],["type","checkbox",3,"change","checked"],[1,"presence-category"],[1,"edit-absences-checkbox",3,"click"],[3,"className"],[1,"student",3,"routerLink","queryParams"],[1,"designation-incident"],["type","button",1,"btn","btn-outline-secondary","btn-sm","d-block","mx-auto",3,"click"]],template:function(i,n){if(i&1){let r=P();le(0),d(1,"async"),le(2),d(3,"async"),le(4),d(5,"async"),le(6),d(7,"async"),l(8,"h1"),p(9),d(10,"translate"),c(),l(11,"bkd-edit-absences-header",1),d(12,"async"),x("filterChange",function(h){return v(r),E(n.state.setFilter(h))}),c(),b(13,er,3,3),d(14,"async"),b(15,tr,3,3,"p",2)}if(i&2){let r;ce((r=u(1,3,n.selectionService.selection$))!==null&&r!==void 0?r:Lt(21,Ws)),o(2),ce(u(3,6,n.state.presenceControlEntries$)),o(2),ce(u(5,9,n.state.hasMore$)),o(2),ce(u(7,12,n.state.loadingPage$)),o(3),I(u(10,15,"edit-absences.title")),o(2),_("filter",u(12,17,n.filterFromParams$)),o(2),y(u(14,19,n.state.isFilterValid$)?13:15)}},dependencies:[on,Vi,Ut,Si,ye,Ht,_e,fe],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 t})();function ir(t){return{student:t.student?Number(t.student):null,educationalEvent:t.educationalEvent?Number(t.educationalEvent):null,studyClass:t.studyClass?Number(t.studyClass):null,teacher:t.teacher??null,dateFrom:t.dateFrom?rt(t.dateFrom):null,dateTo:t.dateTo?rt(t.dateTo):null,weekdays:t.weekdays?t.weekdays.split(","):null,presenceTypes:t.presenceTypes?t.presenceTypes.split(",").map(Number):null,confirmationStates:t.confirmationStates?t.confirmationStates.split(",").map(Number):null,incidentTypes:t.incidentTypes?t.incidentTypes.split(",").map(Number):null}}var un=(()=>{class t{constructor(e){this.state=e}static{this.\u0275fac=function(i){return new(i||t)(f(ie))}}static{this.\u0275cmp=H({type:t,selectors:[["bkd-edit-absences"]],standalone:!0,features:[me([ie,{provide:_i,useExisting:ie},vi]),U],decls:1,vars:0,template:function(i,n){i&1&&B(0,"router-outlet")},dependencies:[Gt],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var uo=[{path:"",component:un,children:[{path:"",component:dn,data:{restoreScrollPositionFrom:["/edit-absences/edit","/edit-absences/student/:id/addresses","/edit-absences/student/:id/absences","/edit-absences/student/:id/grades"]}},{path:"edit",component:qi},Fi]}];export{uo as EDIT_ABSENCES_ROUTES}; diff --git a/public/apps/webapp-schulverwaltung/chunk-JV3CBBGP.js b/public/apps/webapp-schulverwaltung/chunk-JV3CBBGP.js deleted file mode 100644 index fb4d317d..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-JV3CBBGP.js +++ /dev/null @@ -1 +0,0 @@ -import{a as je,b as Ne,c as Me,d as Ve,e as Oe}from"./chunk-U4HODSW3.js";import{t as V,w as Re}from"./chunk-W7ASLXRM.js";import{d as Ee,e as Le}from"./chunk-C7XT5XXE.js";import{b as te}from"./chunk-RFO4NYUO.js";import{a as Fe}from"./chunk-5RDJZAUT.js";import{P as Pe,T as Z,X as Be,Y as Ge}from"./chunk-ZK2MNT7Z.js";import{a as we}from"./chunk-FTDG26ID.js";import{a as E,c as ee}from"./chunk-SOHFFTKU.js";import{a as Y,b as z,c as J,d as K,e as X}from"./chunk-C56YGDXA.js";import{a as $e}from"./chunk-UX5TA32W.js";import{$ as x,$a as l,Ab as m,Bb as _,Cb as xe,Eb as ce,Fd as Te,Ga as c,Gd as N,Hd as M,Ia as o,Ja as ge,K as ue,L as fe,N as oe,O as L,Q as H,Rb as W,Sa as d,Sb as I,Ta as p,Ua as b,Va as v,Vb as P,Vc as De,W as U,Wa as h,Wb 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,oc as Se,pc as ke,rc as Ae,sb as Q,sc as Ie,tb as A,ua as r,ub as ae,va as y,vb as w,xb as he,yb as ye}from"./chunk-XTHSYQMN.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-K3EEKOGY.js b/public/apps/webapp-schulverwaltung/chunk-K3EEKOGY.js deleted file mode 100644 index fc23ac0f..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-K3EEKOGY.js +++ /dev/null @@ -1 +0,0 @@ -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-ZK2MNT7Z.js";import{d as w}from"./chunk-AW7CSGKI.js";import{g as Nr}from"./chunk-C56YGDXA.js";import{W as Tr,la as kr}from"./chunk-XTHSYQMN.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-ZROJU7EX.js b/public/apps/webapp-schulverwaltung/chunk-K5PXAOXJ.js similarity index 81% rename from public/apps/webapp-schulverwaltung/chunk-ZROJU7EX.js rename to public/apps/webapp-schulverwaltung/chunk-K5PXAOXJ.js index 9d27a4a2..30581d1c 100644 --- a/public/apps/webapp-schulverwaltung/chunk-ZROJU7EX.js +++ b/public/apps/webapp-schulverwaltung/chunk-K5PXAOXJ.js @@ -1 +1 @@ -import{C as u}from"./chunk-ZK2MNT7Z.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}; +import{y as u}from"./chunk-VGJCKFZL.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-KDAC4GJ5.js b/public/apps/webapp-schulverwaltung/chunk-KDAC4GJ5.js deleted file mode 100644 index 5b523d7f..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-KDAC4GJ5.js +++ /dev/null @@ -1 +0,0 @@ -import{a as G}from"./chunk-HII3S2DL.js";import{b as M,f as u}from"./chunk-SOHFFTKU.js";import{Ac as A,Bc as h,C as V,Cd as s,Dc as U,Ec as l,Fc as o,Jc as S,Kc as $,L as I,Mc as v,N as C,O as n,Qc as d,R as O,Vc as F,W as g,Z as f,dc as j,e as T,m as a,vc as P,wc as R,xc as m,yc as x,zc as p}from"./chunk-XTHSYQMN.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-KK2SHN2W.js b/public/apps/webapp-schulverwaltung/chunk-KK2SHN2W.js new file mode 100644 index 00000000..c2934b5b --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-KK2SHN2W.js @@ -0,0 +1 @@ +import{Ab as b,B as u,E as f,Fd as P,Gd as v,O as s,P as i,U as g,Wa as w,Xa as C,aa as x,fc as O,l as a,m as l,n as o,nb as M,q as h,t as d,v as m,w as p}from"./chunk-IFJN5CDK.js";var E=(()=>{class t{constructor(){}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=x({type:t,selectors:[["bkd-spinner"]],standalone:!0,features:[b],decls:4,vars:0,consts:[[1,"spinner-container"],["role","status",1,"spinner-border"],[1,"visually-hidden"]],template:function(r,c){r&1&&(w(0,"div",0)(1,"div",1)(2,"span",2),M(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}"]})}}return t})();var y=class{constructor(e,n,r,c){this.http=e,this.settings=n,this.codec=r,this.resourcePath=c}get(e,n){return this.http.get(`${this.baseUrl}/${e}`,n).pipe(i(P(this.codec)))}getList(e){return this.http.get(`${this.baseUrl}/`,e).pipe(i(v(this.codec)))}get baseUrl(){return`${this.settings.apiUrl}/${this.resourcePath}`}};function T(t){return u(e=>e instanceof O&&e.status===404?a(t||null):l(()=>e))}function A(t){return e=>h(()=>(t(),e))}function H(t){return e=>e.pipe(o(n=>n??t),f(t))}function R(t,e){return t.pipe(i(n=>e.pipe(s(n),o(()=>n))))}function W(t,e=window.document){return p(...["click","keydown"].map(n=>d(e,n))).pipe(s(null),i(()=>m(t)),o(()=>{}))}function j(t,e){return p(t,e.pipe(g(t),o(([n,r])=>r)))}export{y as a,E as b,T as c,A as d,H as e,R as f,W as g,j as h}; diff --git a/public/apps/webapp-schulverwaltung/chunk-KNS2BM7M.js b/public/apps/webapp-schulverwaltung/chunk-KNS2BM7M.js deleted file mode 100644 index 1b28522b..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-KNS2BM7M.js +++ /dev/null @@ -1,2 +0,0 @@ -import{a as Kt}from"./chunk-DDSXVC6O.js";import{a as qt,b as Ut}from"./chunk-UP3NEN2H.js";import{a as Gt}from"./chunk-DZZC2YX2.js";import{a as Vt}from"./chunk-K3EEKOGY.js";import{a as Wt}from"./chunk-XLPJMZ3E.js";import{c as je,d as Oe}from"./chunk-24AFRN2G.js";import{b as jt,d as Nt}from"./chunk-RFO4NYUO.js";import"./chunk-5RDJZAUT.js";import"./chunk-DB66EACG.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-ZK2MNT7Z.js";import{a as kt,e as _e}from"./chunk-AW7CSGKI.js";import{a as Dt,b as Ot}from"./chunk-FTDG26ID.js";import{a as z,c as wt}from"./chunk-SOHFFTKU.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-C56YGDXA.js";import{a as le}from"./chunk-UX5TA32W.js";import{$ as x,$a as y,$b as ft,$c as Le,Ab as a,Bb as m,Cb as F,Da as xe,E as B,Eb as he,Fd as me,Ga as b,Gd as D,Hd as w,I as Xe,Ia as l,Id as V,Ja as re,K as Je,L as j,La as it,Lc as Ke,Mb as lt,N as Ze,O as R,Q as et,Qb as Ae,Rb as ae,Sa as c,Sb as K,Ta as d,Ua as S,Uc as _t,Va as k,Vb as Q,Vc as H,W as se,Wa as T,Wb as mt,Ya as X,Yc as Me,Z as O,_a as h,_c as bt,a as qe,ad as Re,e as Ie,ed as $e,f as Ue,fb as st,g as We,gb as rt,gd as Fe,ha as E,hb as ot,ia as P,ib as A,id as Ee,jb as f,jd as Pe,k as q,kb as $,la as tt,lb as g,m as v,mb as J,n as C,oc as ut,pb as at,pc as ke,qb as ct,qc as ce,qd as pe,ra as nt,rb as pt,rc as Te,rd as De,sb as oe,sd as we,tb as M,td as ee,ua as o,ub as Z,va as _,vb as W,w as U,xb as dt,zd as de}from"./chunk-XTHSYQMN.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-KPGSX5OU.js b/public/apps/webapp-schulverwaltung/chunk-KPGSX5OU.js new file mode 100644 index 00000000..3b6ee525 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-KPGSX5OU.js @@ -0,0 +1 @@ +import{i as S}from"./chunk-LGOOC47H.js";import{$c as M,Ab as _,Ed as w,Gb as s,Hb as c,Jd as I,Kd as V,La as f,Ma as l,Wa as p,Xa as d,aa as m,ab as h,cb as v,cd as b,gd as k,ia as a,ja as o,mb as D,nb as C,qa as g,ud as y,wa as r}from"./chunk-IFJN5CDK.js";var J=(()=>{class t{constructor(){this.value=null,this.placeholder="shared.date-select.default-placeholder",this.minDate=null,this.valueChange=new g,this.componentId=w("bkd-date-select-")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=m({type:t,selectors:[["bkd-date-select"]],inputs:{value:"value",placeholder:"placeholder",minDate:"minDate"},outputs:{valueChange:"valueChange"},standalone:!0,features:[_],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 u=h();p(0,"div",1)(1,"span",2)(2,"i",3),C(3,"calendar_today"),d()(),p(4,"input",4,0),s(6,"translate"),s(7,"translate"),v("click",function(){a(u);let n=D(5);return o(n.toggle())})("ngModelChange",function(n){return a(u),o(e.valueChange.emit(n))}),d()()}i&2&&(r(),l("id",e.componentId),r(3),l("minDate",e.minDate)("ngModel",e.value),f("placeholder",c(6,6,e.placeholder))("aria-label",c(7,8,e.placeholder))("aria-describedby",e.componentId))},dependencies:[S,y,M,b,k,V,I]})}}return t})();export{J as a}; diff --git a/public/apps/webapp-schulverwaltung/chunk-LGOOC47H.js b/public/apps/webapp-schulverwaltung/chunk-LGOOC47H.js new file mode 100644 index 00000000..3f0d95d0 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-LGOOC47H.js @@ -0,0 +1,10 @@ +import{$ as c,Ab as ue,Ca as Jt,Cb as Nn,Ea as Cn,Eb as xn,F as Mt,Fa as Mn,G as yn,Ha as P,I as Dn,Ia as ve,Ja as Nt,Ka as Ye,Kb as Rt,La as Ne,Lb as Ai,Ma as B,Mb as Rn,Na as W,Nb as Ge,Oa as Ze,P as Ni,Qb as ei,R as L,Ra as ne,Rb as be,S as Ot,Sa as qt,Ta as Xe,Tb as An,U as Qt,Ua as Me,Va as Oe,W as pt,Wa as M,X as O,Xa as E,Ya as xe,Yb as At,Z as wn,Za as On,Zc as ti,_a as En,a as ht,aa as le,ab as et,ad as Pn,b as Oi,bb as Re,ca as G,cb as X,db as T,e as zt,eb as Yt,f as Y,fa as xi,fb as Zt,g as _n,ga as Tn,ha as Ve,ia as Se,ib as Ae,ja as Ce,jb as _t,k as gn,kb as oe,l as Ct,lb as se,ma as Le,mb as Xt,n as qe,na as Sn,nb as de,oa as te,ob as Ee,p as mn,pa as Et,pb as Ri,qa as C,ra as ce,t as z,ta as Z,u as vn,w as bn,wa as y,x as Te,y as Ei,z as Kt,za as ft,zb as xt}from"./chunk-IFJN5CDK.js";function tt(t){t||(Tn(tt),t=c(Et));let o=new zt(e=>t.onDestroy(e.next.bind(e)));return e=>e.pipe(L(o))}var k="top",K="bottom",$="right",F="left",ii="auto",We=[k,K,$,F],Pe="start",it="end",kn="clippingParents",ni="viewport",gt="popper",In="reference",Pi=We.reduce(function(t,o){return t.concat([o+"-"+Pe,o+"-"+it])},[]),oi=[].concat(We,[ii]).reduce(function(t,o){return t.concat([o,o+"-"+Pe,o+"-"+it])},[]),yo="beforeRead",Do="read",wo="afterRead",To="beforeMain",So="main",Co="afterMain",Mo="beforeWrite",Oo="write",Eo="afterWrite",Bn=[yo,Do,wo,To,So,Co,Mo,Oo,Eo];function j(t){return t?(t.nodeName||"").toLowerCase():null}function A(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var o=t.ownerDocument;return o&&o.defaultView||window}return t}function he(t){var o=A(t).Element;return t instanceof o||t instanceof Element}function H(t){var o=A(t).HTMLElement;return t instanceof o||t instanceof HTMLElement}function mt(t){if(typeof ShadowRoot>"u")return!1;var o=A(t).ShadowRoot;return t instanceof o||t instanceof ShadowRoot}function No(t){var o=t.state;Object.keys(o.elements).forEach(function(e){var i=o.styles[e]||{},n=o.attributes[e]||{},s=o.elements[e];!H(s)||!j(s)||(Object.assign(s.style,i),Object.keys(n).forEach(function(r){var a=n[r];a===!1?s.removeAttribute(r):s.setAttribute(r,a===!0?"":a)}))})}function xo(t){var o=t.state,e={popper:{position:o.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(o.elements.popper.style,e.popper),o.styles=e,o.elements.arrow&&Object.assign(o.elements.arrow.style,e.arrow),function(){Object.keys(o.elements).forEach(function(i){var n=o.elements[i],s=o.attributes[i]||{},r=Object.keys(o.styles.hasOwnProperty(i)?o.styles[i]:e[i]),a=r.reduce(function(l,d){return l[d]="",l},{});!H(n)||!j(n)||(Object.assign(n.style,a),Object.keys(s).forEach(function(l){n.removeAttribute(l)}))})}}var Fn={name:"applyStyles",enabled:!0,phase:"write",fn:No,effect:xo,requires:["computeStyles"]};function U(t){return t.split("-")[0]}var ye=Math.max,nt=Math.min,ke=Math.round;function vt(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(o){return o.brand+"/"+o.version}).join(" "):navigator.userAgent}function Pt(){return!/^((?!chrome|android).)*safari/i.test(vt())}function pe(t,o,e){o===void 0&&(o=!1),e===void 0&&(e=!1);var i=t.getBoundingClientRect(),n=1,s=1;o&&H(t)&&(n=t.offsetWidth>0&&ke(i.width)/t.offsetWidth||1,s=t.offsetHeight>0&&ke(i.height)/t.offsetHeight||1);var r=he(t)?A(t):window,a=r.visualViewport,l=!Pt()&&e,d=(i.left+(l&&a?a.offsetLeft:0))/n,u=(i.top+(l&&a?a.offsetTop:0))/s,f=i.width/n,p=i.height/s;return{width:f,height:p,top:u,right:d+f,bottom:u+p,left:d,x:d,y:u}}function ot(t){var o=pe(t),e=t.offsetWidth,i=t.offsetHeight;return Math.abs(o.width-e)<=1&&(e=o.width),Math.abs(o.height-i)<=1&&(i=o.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:i}}function kt(t,o){var e=o.getRootNode&&o.getRootNode();if(t.contains(o))return!0;if(e&&mt(e)){var i=o;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function ie(t){return A(t).getComputedStyle(t)}function ki(t){return["table","td","th"].indexOf(j(t))>=0}function Q(t){return((he(t)?t.ownerDocument:t.document)||window.document).documentElement}function Ie(t){return j(t)==="html"?t:t.assignedSlot||t.parentNode||(mt(t)?t.host:null)||Q(t)}function Hn(t){return!H(t)||ie(t).position==="fixed"?null:t.offsetParent}function Ro(t){var o=/firefox/i.test(vt()),e=/Trident/i.test(vt());if(e&&H(t)){var i=ie(t);if(i.position==="fixed")return null}var n=Ie(t);for(mt(n)&&(n=n.host);H(n)&&["html","body"].indexOf(j(n))<0;){var s=ie(n);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||o&&s.willChange==="filter"||o&&s.filter&&s.filter!=="none")return n;n=n.parentNode}return null}function De(t){for(var o=A(t),e=Hn(t);e&&ki(e)&&ie(e).position==="static";)e=Hn(e);return e&&(j(e)==="html"||j(e)==="body"&&ie(e).position==="static")?o:e||Ro(t)||o}function st(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function rt(t,o,e){return ye(t,nt(o,e))}function Vn(t,o,e){var i=rt(t,o,e);return i>e?e:i}function It(){return{top:0,right:0,bottom:0,left:0}}function Bt(t){return Object.assign({},It(),t)}function Ft(t,o){return o.reduce(function(e,i){return e[i]=t,e},{})}var Ao=function(o,e){return o=typeof o=="function"?o(Object.assign({},e.rects,{placement:e.placement})):o,Bt(typeof o!="number"?o:Ft(o,We))};function Po(t){var o,e=t.state,i=t.name,n=t.options,s=e.elements.arrow,r=e.modifiersData.popperOffsets,a=U(e.placement),l=st(a),d=[F,$].indexOf(a)>=0,u=d?"height":"width";if(!(!s||!r)){var f=Ao(n.padding,e),p=ot(s),h=l==="y"?k:F,_=l==="y"?K:$,v=e.rects.reference[u]+e.rects.reference[l]-r[l]-e.rects.popper[u],g=r[l]-e.rects.reference[l],D=De(s),b=D?l==="y"?D.clientHeight||0:D.clientWidth||0:0,x=v/2-g/2,m=f[h],w=b-p[u]-f[_],S=b/2-p[u]/2+x,R=rt(m,S,w),N=l;e.modifiersData[i]=(o={},o[N]=R,o.centerOffset=R-S,o)}}function ko(t){var o=t.state,e=t.options,i=e.element,n=i===void 0?"[data-popper-arrow]":i;n!=null&&(typeof n=="string"&&(n=o.elements.popper.querySelector(n),!n)||kt(o.elements.popper,n)&&(o.elements.arrow=n))}var Ii={name:"arrow",enabled:!0,phase:"main",fn:Po,effect:ko,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function fe(t){return t.split("-")[1]}var Io={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Bo(t,o){var e=t.x,i=t.y,n=o.devicePixelRatio||1;return{x:ke(e*n)/n||0,y:ke(i*n)/n||0}}function Ln(t){var o,e=t.popper,i=t.popperRect,n=t.placement,s=t.variation,r=t.offsets,a=t.position,l=t.gpuAcceleration,d=t.adaptive,u=t.roundOffsets,f=t.isFixed,p=r.x,h=p===void 0?0:p,_=r.y,v=_===void 0?0:_,g=typeof u=="function"?u({x:h,y:v}):{x:h,y:v};h=g.x,v=g.y;var D=r.hasOwnProperty("x"),b=r.hasOwnProperty("y"),x=F,m=k,w=window;if(d){var S=De(e),R="clientHeight",N="clientWidth";if(S===A(e)&&(S=Q(e),ie(S).position!=="static"&&a==="absolute"&&(R="scrollHeight",N="scrollWidth")),S=S,n===k||(n===F||n===$)&&s===it){m=K;var V=f&&S===w&&w.visualViewport?w.visualViewport.height:S[R];v-=V-i.height,v*=l?1:-1}if(n===F||(n===k||n===K)&&s===it){x=$;var I=f&&S===w&&w.visualViewport?w.visualViewport.width:S[N];h-=I-i.width,h*=l?1:-1}}var q=Object.assign({position:a},d&&Io),ge=u===!0?Bo({x:h,y:v},A(e)):{x:h,y:v};if(h=ge.x,v=ge.y,l){var ee;return Object.assign({},q,(ee={},ee[m]=b?"0":"",ee[x]=D?"0":"",ee.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",ee))}return Object.assign({},q,(o={},o[m]=b?v+"px":"",o[x]=D?h+"px":"",o.transform="",o))}function Fo(t){var o=t.state,e=t.options,i=e.gpuAcceleration,n=i===void 0?!0:i,s=e.adaptive,r=s===void 0?!0:s,a=e.roundOffsets,l=a===void 0?!0:a,d={placement:U(o.placement),variation:fe(o.placement),popper:o.elements.popper,popperRect:o.rects.popper,gpuAcceleration:n,isFixed:o.options.strategy==="fixed"};o.modifiersData.popperOffsets!=null&&(o.styles.popper=Object.assign({},o.styles.popper,Ln(Object.assign({},d,{offsets:o.modifiersData.popperOffsets,position:o.options.strategy,adaptive:r,roundOffsets:l})))),o.modifiersData.arrow!=null&&(o.styles.arrow=Object.assign({},o.styles.arrow,Ln(Object.assign({},d,{offsets:o.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-placement":o.placement})}var Gn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fo,data:{}};var si={passive:!0};function Ho(t){var o=t.state,e=t.instance,i=t.options,n=i.scroll,s=n===void 0?!0:n,r=i.resize,a=r===void 0?!0:r,l=A(o.elements.popper),d=[].concat(o.scrollParents.reference,o.scrollParents.popper);return s&&d.forEach(function(u){u.addEventListener("scroll",e.update,si)}),a&&l.addEventListener("resize",e.update,si),function(){s&&d.forEach(function(u){u.removeEventListener("scroll",e.update,si)}),a&&l.removeEventListener("resize",e.update,si)}}var Wn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ho,data:{}};var Vo={left:"right",right:"left",bottom:"top",top:"bottom"};function bt(t){return t.replace(/left|right|bottom|top/g,function(o){return Vo[o]})}var Lo={start:"end",end:"start"};function ri(t){return t.replace(/start|end/g,function(o){return Lo[o]})}function at(t){var o=A(t),e=o.pageXOffset,i=o.pageYOffset;return{scrollLeft:e,scrollTop:i}}function lt(t){return pe(Q(t)).left+at(t).scrollLeft}function Bi(t,o){var e=A(t),i=Q(t),n=e.visualViewport,s=i.clientWidth,r=i.clientHeight,a=0,l=0;if(n){s=n.width,r=n.height;var d=Pt();(d||!d&&o==="fixed")&&(a=n.offsetLeft,l=n.offsetTop)}return{width:s,height:r,x:a+lt(t),y:l}}function Fi(t){var o,e=Q(t),i=at(t),n=(o=t.ownerDocument)==null?void 0:o.body,s=ye(e.scrollWidth,e.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=ye(e.scrollHeight,e.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-i.scrollLeft+lt(t),l=-i.scrollTop;return ie(n||e).direction==="rtl"&&(a+=ye(e.clientWidth,n?n.clientWidth:0)-s),{width:s,height:r,x:a,y:l}}function ct(t){var o=ie(t),e=o.overflow,i=o.overflowX,n=o.overflowY;return/auto|scroll|overlay|hidden/.test(e+n+i)}function ai(t){return["html","body","#document"].indexOf(j(t))>=0?t.ownerDocument.body:H(t)&&ct(t)?t:ai(Ie(t))}function $e(t,o){var e;o===void 0&&(o=[]);var i=ai(t),n=i===((e=t.ownerDocument)==null?void 0:e.body),s=A(i),r=n?[s].concat(s.visualViewport||[],ct(i)?i:[]):i,a=o.concat(r);return n?a:a.concat($e(Ie(r)))}function yt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Go(t,o){var e=pe(t,!1,o==="fixed");return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function $n(t,o,e){return o===ni?yt(Bi(t,e)):he(o)?Go(o,e):yt(Fi(Q(t)))}function Wo(t){var o=$e(Ie(t)),e=["absolute","fixed"].indexOf(ie(t).position)>=0,i=e&&H(t)?De(t):t;return he(i)?o.filter(function(n){return he(n)&&kt(n,i)&&j(n)!=="body"}):[]}function Hi(t,o,e,i){var n=o==="clippingParents"?Wo(t):[].concat(o),s=[].concat(n,[e]),r=s[0],a=s.reduce(function(l,d){var u=$n(t,d,i);return l.top=ye(u.top,l.top),l.right=nt(u.right,l.right),l.bottom=nt(u.bottom,l.bottom),l.left=ye(u.left,l.left),l},$n(t,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Ht(t){var o=t.reference,e=t.element,i=t.placement,n=i?U(i):null,s=i?fe(i):null,r=o.x+o.width/2-e.width/2,a=o.y+o.height/2-e.height/2,l;switch(n){case k:l={x:r,y:o.y-e.height};break;case K:l={x:r,y:o.y+o.height};break;case $:l={x:o.x+o.width,y:a};break;case F:l={x:o.x-e.width,y:a};break;default:l={x:o.x,y:o.y}}var d=n?st(n):null;if(d!=null){var u=d==="y"?"height":"width";switch(s){case Pe:l[d]=l[d]-(o[u]/2-e[u]/2);break;case it:l[d]=l[d]+(o[u]/2-e[u]/2);break;default:}}return l}function je(t,o){o===void 0&&(o={});var e=o,i=e.placement,n=i===void 0?t.placement:i,s=e.strategy,r=s===void 0?t.strategy:s,a=e.boundary,l=a===void 0?kn:a,d=e.rootBoundary,u=d===void 0?ni:d,f=e.elementContext,p=f===void 0?gt:f,h=e.altBoundary,_=h===void 0?!1:h,v=e.padding,g=v===void 0?0:v,D=Bt(typeof g!="number"?g:Ft(g,We)),b=p===gt?In:gt,x=t.rects.popper,m=t.elements[_?b:p],w=Hi(he(m)?m:m.contextElement||Q(t.elements.popper),l,u,r),S=pe(t.elements.reference),R=Ht({reference:S,element:x,strategy:"absolute",placement:n}),N=yt(Object.assign({},x,R)),V=p===gt?N:S,I={top:w.top-V.top+D.top,bottom:V.bottom-w.bottom+D.bottom,left:w.left-V.left+D.left,right:V.right-w.right+D.right},q=t.modifiersData.offset;if(p===gt&&q){var ge=q[n];Object.keys(I).forEach(function(ee){var Ue=[$,K].indexOf(ee)>=0?1:-1,ze=[k,K].indexOf(ee)>=0?"y":"x";I[ee]+=ge[ze]*Ue})}return I}function Vi(t,o){o===void 0&&(o={});var e=o,i=e.placement,n=e.boundary,s=e.rootBoundary,r=e.padding,a=e.flipVariations,l=e.allowedAutoPlacements,d=l===void 0?oi:l,u=fe(i),f=u?a?Pi:Pi.filter(function(_){return fe(_)===u}):We,p=f.filter(function(_){return d.indexOf(_)>=0});p.length===0&&(p=f);var h=p.reduce(function(_,v){return _[v]=je(t,{placement:v,boundary:n,rootBoundary:s,padding:r})[U(v)],_},{});return Object.keys(h).sort(function(_,v){return h[_]-h[v]})}function $o(t){if(U(t)===ii)return[];var o=bt(t);return[ri(t),o,ri(o)]}function jo(t){var o=t.state,e=t.options,i=t.name;if(!o.modifiersData[i]._skip){for(var n=e.mainAxis,s=n===void 0?!0:n,r=e.altAxis,a=r===void 0?!0:r,l=e.fallbackPlacements,d=e.padding,u=e.boundary,f=e.rootBoundary,p=e.altBoundary,h=e.flipVariations,_=h===void 0?!0:h,v=e.allowedAutoPlacements,g=o.options.placement,D=U(g),b=D===g,x=l||(b||!_?[bt(g)]:$o(g)),m=[g].concat(x).reduce(function(ut,He){return ut.concat(U(He)===ii?Vi(o,{placement:He,boundary:u,rootBoundary:f,padding:d,flipVariations:_,allowedAutoPlacements:v}):He)},[]),w=o.rects.reference,S=o.rects.popper,R=new Map,N=!0,V=m[0],I=0;I=0,ze=Ue?"width":"height",ae=je(o,{placement:q,boundary:u,rootBoundary:f,altBoundary:p,padding:d}),me=Ue?ee?$:F:ee?K:k;w[ze]>S[ze]&&(me=bt(me));var Gt=bt(me),Ke=[];if(s&&Ke.push(ae[ge]<=0),a&&Ke.push(ae[me]<=0,ae[Gt]<=0),Ke.every(function(ut){return ut})){V=q,N=!1;break}R.set(q,Ke)}if(N)for(var Wt=_?3:1,Ti=function(He){var St=m.find(function(jt){var Qe=R.get(jt);if(Qe)return Qe.slice(0,He).every(function(Si){return Si})});if(St)return V=St,"break"},Tt=Wt;Tt>0;Tt--){var $t=Ti(Tt);if($t==="break")break}o.placement!==V&&(o.modifiersData[i]._skip=!0,o.placement=V,o.reset=!0)}}var Li={name:"flip",enabled:!0,phase:"main",fn:jo,requiresIfExists:["offset"],data:{_skip:!1}};function Uo(t,o,e){var i=U(t),n=[F,k].indexOf(i)>=0?-1:1,s=typeof e=="function"?e(Object.assign({},o,{placement:t})):e,r=s[0],a=s[1];return r=r||0,a=(a||0)*n,[F,$].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}function zo(t){var o=t.state,e=t.options,i=t.name,n=e.offset,s=n===void 0?[0,0]:n,r=oi.reduce(function(u,f){return u[f]=Uo(f,o.rects,s),u},{}),a=r[o.placement],l=a.x,d=a.y;o.modifiersData.popperOffsets!=null&&(o.modifiersData.popperOffsets.x+=l,o.modifiersData.popperOffsets.y+=d),o.modifiersData[i]=r}var Gi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:zo};function Ko(t){var o=t.state,e=t.name;o.modifiersData[e]=Ht({reference:o.rects.reference,element:o.rects.popper,strategy:"absolute",placement:o.placement})}var jn={name:"popperOffsets",enabled:!0,phase:"read",fn:Ko,data:{}};function Wi(t){return t==="x"?"y":"x"}function Qo(t){var o=t.state,e=t.options,i=t.name,n=e.mainAxis,s=n===void 0?!0:n,r=e.altAxis,a=r===void 0?!1:r,l=e.boundary,d=e.rootBoundary,u=e.altBoundary,f=e.padding,p=e.tether,h=p===void 0?!0:p,_=e.tetherOffset,v=_===void 0?0:_,g=je(o,{boundary:l,rootBoundary:d,padding:f,altBoundary:u}),D=U(o.placement),b=fe(o.placement),x=!b,m=st(D),w=Wi(m),S=o.modifiersData.popperOffsets,R=o.rects.reference,N=o.rects.popper,V=typeof v=="function"?v(Object.assign({},o.rects,{placement:o.placement})):v,I=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),q=o.modifiersData.offset?o.modifiersData.offset[o.placement]:null,ge={x:0,y:0};if(S){if(s){var ee,Ue=m==="y"?k:F,ze=m==="y"?K:$,ae=m==="y"?"height":"width",me=S[m],Gt=me+g[Ue],Ke=me-g[ze],Wt=h?-N[ae]/2:0,Ti=b===Pe?R[ae]:N[ae],Tt=b===Pe?-N[ae]:-R[ae],$t=o.elements.arrow,ut=h&&$t?ot($t):{width:0,height:0},He=o.modifiersData["arrow#persistent"]?o.modifiersData["arrow#persistent"].padding:It(),St=He[Ue],jt=He[ze],Qe=rt(0,R[ae],ut[ae]),Si=x?R[ae]/2-Wt-Qe-St-I.mainAxis:Ti-Qe-St-I.mainAxis,fo=x?-R[ae]/2+Wt+Qe+jt+I.mainAxis:Tt+Qe+jt+I.mainAxis,Ci=o.elements.arrow&&De(o.elements.arrow),_o=Ci?m==="y"?Ci.clientTop||0:Ci.clientLeft||0:0,rn=(ee=q?.[m])!=null?ee:0,go=me+Si-rn-_o,mo=me+fo-rn,an=rt(h?nt(Gt,go):Gt,me,h?ye(Ke,mo):Ke);S[m]=an,ge[m]=an-me}if(a){var ln,vo=m==="x"?k:F,bo=m==="x"?K:$,Je=S[w],Ut=w==="y"?"height":"width",cn=Je+g[vo],dn=Je-g[bo],Mi=[k,F].indexOf(D)!==-1,un=(ln=q?.[w])!=null?ln:0,hn=Mi?cn:Je-R[Ut]-N[Ut]-un+I.altAxis,pn=Mi?Je+R[Ut]+N[Ut]-un-I.altAxis:dn,fn=h&&Mi?Vn(hn,Je,pn):rt(h?hn:cn,Je,h?pn:dn);S[w]=fn,ge[w]=fn-Je}o.modifiersData[i]=ge}}var $i={name:"preventOverflow",enabled:!0,phase:"main",fn:Qo,requiresIfExists:["offset"]};function ji(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Ui(t){return t===A(t)||!H(t)?at(t):ji(t)}function Jo(t){var o=t.getBoundingClientRect(),e=ke(o.width)/t.offsetWidth||1,i=ke(o.height)/t.offsetHeight||1;return e!==1||i!==1}function zi(t,o,e){e===void 0&&(e=!1);var i=H(o),n=H(o)&&Jo(o),s=Q(o),r=pe(t,n,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&((j(o)!=="body"||ct(s))&&(a=Ui(o)),H(o)?(l=pe(o,!0),l.x+=o.clientLeft,l.y+=o.clientTop):s&&(l.x=lt(s))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function qo(t){var o=new Map,e=new Set,i=[];t.forEach(function(s){o.set(s.name,s)});function n(s){e.add(s.name);var r=[].concat(s.requires||[],s.requiresIfExists||[]);r.forEach(function(a){if(!e.has(a)){var l=o.get(a);l&&n(l)}}),i.push(s)}return t.forEach(function(s){e.has(s.name)||n(s)}),i}function Ki(t){var o=qo(t);return Bn.reduce(function(e,i){return e.concat(o.filter(function(n){return n.phase===i}))},[])}function Qi(t){var o;return function(){return o||(o=new Promise(function(e){Promise.resolve().then(function(){o=void 0,e(t())})})),o}}function Ji(t){var o=t.reduce(function(e,i){var n=e[i.name];return e[i.name]=n?Object.assign({},n,i,{options:Object.assign({},n.options,i.options),data:Object.assign({},n.data,i.data)}):i,e},{});return Object.keys(o).map(function(e){return o[e]})}var Un={placement:"bottom",modifiers:[],strategy:"absolute"};function zn(){for(var t=arguments.length,o=new Array(t),e=0;e0?0:-1),y(2),Ri(" ",n.i18n.getMonthLabel(e.firstDate)," "),y(),ne(i!==n.months.length-1?3:-1)}}function as(t,o){if(t&1&&Me(0,rs,4,3,null,null,Xe),t&2){let e=T();Oe(e.months)}}function ls(t,o){if(t&1&&(M(0,"div",1),de(1),E()),t&2){let e=T(2);y(),Ee(e.i18n.getWeekLabel())}}function cs(t,o){if(t&1&&(M(0,"div",2),de(1),E()),t&2){let e=o.$implicit;y(),Ee(e)}}function ds(t,o){if(t&1&&(M(0,"div",0),P(1,ls,2,1,"div",1),Me(2,cs,2,1,"div",2,qt),E()),t&2){let e=T();y(),ne(e.datepicker.showWeekNumbers?1:-1),y(),Oe(e.viewModel.weekdays)}}function us(t,o){if(t&1&&(M(0,"div",4),de(1),E()),t&2){let e=T(2).$implicit,i=T();y(),Ee(i.i18n.getWeekNumerals(e.number))}}function hs(t,o){}function ps(t,o){if(t&1&&P(0,hs,0,0,"ng-template",7),t&2){let e=T().$implicit,i=T(3);B("ngTemplateOutlet",i.datepicker.dayTemplate)("ngTemplateOutletContext",e.context)}}function fs(t,o){if(t&1){let e=et();M(0,"div",6),X("click",function(n){let s=Se(e).$implicit;return T(3).doSelect(s),Ce(n.preventDefault())}),P(1,ps,1,2,null,7),E()}if(t&2){let e=o.$implicit;W("disabled",e.context.disabled)("hidden",e.hidden)("ngb-dp-today",e.context.today),B("tabindex",e.tabindex),Ne("aria-label",e.ariaLabel),y(),ne(e.hidden?-1:1)}}function _s(t,o){if(t&1&&(M(0,"div",3),P(1,us,2,1,"div",4),Me(2,fs,2,9,"div",5,Xe),E()),t&2){let e=T().$implicit,i=T();y(),ne(i.datepicker.showWeekNumbers?1:-1),y(),Oe(e.days)}}function gs(t,o){if(t&1&&P(0,_s,4,1,"div",3),t&2){let e=o.$implicit;ne(e.collapsed?-1:0)}}var ms=["defaultDayTemplate"],vs=["content"],bs=t=>({$implicit:t});function ys(t,o){if(t&1&&xe(0,"div",8),t&2){let e=o.date,i=o.currentMonth,n=o.selected,s=o.disabled,r=o.focused;B("date",e)("currentMonth",i)("selected",n)("disabled",s)("focused",r)}}function Ds(t,o){if(t&1&&(M(0,"div",10),de(1),E()),t&2){let e=T().$implicit,i=T(2);y(),Ri(" ",i.i18n.getMonthLabel(e.firstDate)," ")}}function ws(t,o){if(t&1&&(M(0,"div",9),P(1,Ds,2,1,"div",10),xe(2,"ngb-datepicker-month",11),E()),t&2){let e=o.$implicit,i=T(2);y(),ne(i.navigation==="none"||i.displayMonths>1&&i.navigation==="select"?1:-1),y(),B("month",e.firstDate)}}function Ts(t,o){if(t&1&&Me(0,ws,3,2,"div",9,Xe),t&2){let e=T();Oe(e.model.months)}}function Ss(t,o){if(t&1){let e=et();M(0,"ngb-datepicker-navigation",12),X("navigate",function(n){Se(e);let s=T();return Ce(s.onNavigateEvent(n))})("select",function(n){Se(e);let s=T();return Ce(s.onNavigateDateSelect(n))}),E()}if(t&2){let e=T();B("date",e.model.firstDate)("months",e.model.months)("disabled",e.model.disabled)("showSelect",e.model.navigation==="select")("prevDisabled",e.model.prevDisabled)("nextDisabled",e.model.nextDisabled)("selectBoxes",e.model.selectBoxes)}}function Cs(t,o){}function Ms(t,o){}var Os=["dialog"];function Es(t,o){if(t&1&&(M(0,"strong",3),de(1),E()),t&2){let e=T();y(),Ee(e.header)}}function Ns(t,o){}function xs(t,o){if(t&1){let e=et();M(0,"div",1),P(1,Ns,0,0,"ng-template",4),M(2,"button",5),X("click",function(){Se(e);let n=T();return Ce(n.hide())}),E()()}if(t&2){let e=T(),i=Xt(1);y(),B("ngTemplateOutlet",e.contentHeaderTpl||i)}}function Rs(t,o){if(t&1&&(M(0,"span"),de(1),E()),t&2){let e=T().$implicit,i=T();Ze(i.highlightClass),y(),Ee(e)}}function As(t,o){if(t&1&&(On(0),de(1),En()),t&2){let e=T().$implicit;y(),Ee(e)}}function Ps(t,o){if(t&1&&P(0,Rs,2,4,"span",0)(1,As,2,1,"ng-container"),t&2){let e=o.$index;ne(e%2!==0?0:1)}}var ks=(t,o,e)=>({result:t,term:o,formatter:e});function Is(t,o){if(t&1&&xe(0,"ngb-highlight",2),t&2){let e=o.result,i=o.term,n=o.formatter;B("result",n(e))("term",i)}}function Bs(t,o){}function Fs(t,o){if(t&1){let e=et();M(0,"button",3),X("mouseenter",function(){let n=Se(e).$index,s=T();return Ce(s.markActive(n))})("click",function(){let n=Se(e).$implicit,s=T();return Ce(s.select(n))}),P(1,Bs,0,0,"ng-template",4),E()}if(t&2){let e=o.$implicit,i=o.$index,n=T(),s=Xt(1);W("active",i===n.activeIdx),B("id",n.id+"-"+i),y(),B("ngTemplateOutlet",n.resultTemplate||s)("ngTemplateOutletContext",xn(5,ks,e,n.term,n.formatter))}}var no={animation:!0,transitionTimerDelayMs:5},Lt=(()=>{class t{constructor(){this.animation=no.animation}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Hs=(()=>{class t{constructor(){this._ngbConfig=c(Lt),this.closeOthers=!1,this.destroyOnHide=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Vs(t){let{transitionDelay:o,transitionDuration:e}=window.getComputedStyle(t),i=parseFloat(o),n=parseFloat(e);return(i+n)*1e3}function we(t){return parseInt(`${t}`,10)}function Vt(t){return t!=null?`${t}`:""}function wt(t){return typeof t=="string"}function Be(t){return!isNaN(we(t))}function J(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function hi(t){return t!=null}function Ls(t){return t&&t.then}function Qn(t){return Be(t)?`0${t}`.slice(-2):""}function Gs(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Ws(t,o){return!o||typeof t.closest>"u"?null:t.closest(o)}function gi(t){return(t||document.body).getBoundingClientRect()}function $s(t){return o=>new zt(e=>{let i=r=>t.run(()=>e.next(r)),n=r=>t.run(()=>e.error(r)),s=()=>t.run(()=>e.complete());return o.subscribe({next:i,error:n,complete:s})})}function Jn(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function oo(t=document){let o=t?.activeElement;return o?o.shadowRoot?oo(o.shadowRoot):o:null}var js=()=>{},{transitionTimerDelayMs:Us}=no,li=new Map,_e=(t,o,e,i)=>{let n=i.context||{},s=li.get(o);if(s)switch(i.runningTransition){case"continue":return gn;case"stop":t.run(()=>s.transition$.complete()),n=Object.assign(s.context,n),li.delete(o)}let r=e(o,i.animation,n)||js;if(!i.animation||window.getComputedStyle(o).transitionProperty==="none")return t.run(()=>r()),Ct(void 0).pipe($s(t));let a=new Y,l=new Y,d=a.pipe(Dn(!0));li.set(o,{transition$:a,complete:()=>{l.next(),l.complete()},context:n});let u=Vs(o);return t.runOutsideAngular(()=>{let f=z(o,"transitionend").pipe(L(d),Te(({target:h})=>h===o)),p=vn(u+Us).pipe(L(d));Ei(p,f,l).pipe(L(d)).subscribe(()=>{li.delete(o),t.run(()=>{r(),a.next(),a.complete()})})}),a.asObservable()};function zs(t,o){if(typeof navigator>"u")return"0px";let{classList:e}=t,i=e.contains("show");i||e.add("show"),t.style[o]="";let n=t.getBoundingClientRect()[o]+"px";return i||e.remove("show"),n}var Ks=(t,o,e)=>{let{direction:i,maxSize:n,dimension:s}=e,{classList:r}=t;function a(){r.add("collapse"),i==="show"?r.add("show"):r.remove("show")}if(!o){a();return}return n||(n=zs(t,s),e.maxSize=n,t.style[s]=i!=="show"?n:"0px",r.remove("collapse","collapsing","show"),gi(t),r.add("collapsing")),t.style[s]=i==="show"?n:"0px",()=>{a(),r.remove("collapsing"),t.style[s]=""}},Qs=(()=>{class t{constructor(){this._ngbConfig=c(Lt),this.horizontal=!1}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),qn=(()=>{class t{constructor(){this._config=c(Qs),this._element=c(Z),this._zone=c(ce),this.animation=this._config.animation,this._afterInit=!1,this._isCollapsed=!1,this.ngbCollapseChange=new C,this.horizontal=this._config.horizontal,this.shown=new C,this.hidden=new C}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 _e(this._zone,this._element.nativeElement,Ks,{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()})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=G({type:t,selectors:[["","ngbCollapse",""]],hostVars:2,hostBindings:function(i,n){i&2&&W("collapse-horizontal",n.horizontal)},inputs:{animation:"animation",collapsed:[0,"ngbCollapse","collapsed"],horizontal:"horizontal"},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],standalone:!0})}}return t})(),Js=0,Ku=(()=>{class t{constructor(){this._vcr=c(Jt),this._element=c(Z).nativeElement,this._item=c(mi),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)}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=G({type:t,selectors:[["","ngbAccordionBody",""]],contentQueries:function(i,n,s){if(i&1&&Ae(s,ft,7),i&2){let r;oe(r=se())&&(n._bodyTpl=r.first)}},hostAttrs:[1,"accordion-body"],standalone:!0})}}return t})(),qs=(()=>{class t{constructor(){this.item=c(mi),this.ngbCollapse=c(qn)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=G({type:t,selectors:[["","ngbAccordionCollapse",""]],hostAttrs:["role","region",1,"accordion-collapse"],hostVars:2,hostBindings:function(i,n){i&2&&(Re("id",n.item.collapseId),Ne("aria-labelledby",n.item.toggleId))},exportAs:["ngbAccordionCollapse"],standalone:!0,features:[Mn([qn])]})}}return t})();var Qu=(()=>{class t{constructor(){this.item=c(mi)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=G({type:t,selectors:[["","ngbAccordionHeader",""]],hostAttrs:["role","heading",1,"accordion-header"],hostVars:2,hostBindings:function(i,n){i&2&&W("collapsed",n.item.collapsed)},standalone:!0})}}return t})(),mi=(()=>{class t{constructor(){this._accordion=c(Ys),this._cd=c(Ge),this._destroyRef=c(Et),this._collapsed=!0,this._id=`ngb-accordion-item-${Js++}`,this._collapseAnimationRunning=!1,this.disabled=!1,this.show=new C,this.shown=new C,this.hide=new C,this.hidden=new C}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(tt(this._destroyRef)).subscribe(()=>{this._collapseAnimationRunning=!1,this.hidden.emit(),this._accordion.hidden.emit(this.id)}),e.shown.pipe(tt(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{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=G({type:t,selectors:[["","ngbAccordionItem",""]],contentQueries:function(i,n,s){if(i&1&&Ae(s,qs,7),i&2){let r;oe(r=se())&&(n._collapse=r.first)}},hostAttrs:[1,"accordion-item"],hostVars:1,hostBindings:function(i,n){i&2&&Re("id",n.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})}}return t})(),Ys=(()=>{class t{constructor(){this._config=c(Hs),this._anItemWasAlreadyExpandedDuringInitialisation=!1,this.animation=this._config.animation,this.closeOthers=this._config.closeOthers,this.destroyOnHide=this._config.destroyOnHide,this.show=new C,this.shown=new C,this.hide=new C,this.hidden=new C}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)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=G({type:t,selectors:[["","ngbAccordion",""]],contentQueries:function(i,n,s){if(i&1&&Ae(s,mi,4),i&2){let r;oe(r=se())&&(n._items=r)}},hostAttrs:[1,"accordion"],inputs:{animation:"animation",closeOthers:"closeOthers",destroyOnHide:"destroyOnHide"},outputs:{show:"show",shown:"shown",hide:"hide",hidden:"hidden"},exportAs:["ngbAccordion"],standalone:!0})}}return t})();var re=class t{static from(o){return o instanceof t?o:o?new t(o.year,o.month,o.day):null}constructor(o,e,i){this.year=J(o)?o:null,this.month=J(e)?e:null,this.day=J(i)?i:null}equals(o){return o!=null&&this.year===o.year&&this.month===o.month&&this.day===o.day}before(o){return o?this.year===o.year?this.month===o.month?this.day===o.day?!1:this.dayo.day:this.month>o.month:this.year>o.year:!1}};function Yn(t){return new re(t.getFullYear(),t.getMonth()+1,t.getDate())}function ci(t){let o=new Date(t.year,t.month-1,t.day,12);return isNaN(o.getTime())||o.setFullYear(t.year),o}function Zs(){return new Xs}var vi=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=O({token:t,factory:()=>Zs(),providedIn:"root"})}}return t})(),Xs=(()=>{class t extends vi{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(e,i="d",n=1){let s=ci(e),r=!0,a=s.getMonth();switch(i){case"y":s.setFullYear(s.getFullYear()+n);break;case"m":a+=n,s.setMonth(a),a=a%12,a<0&&(a=a+12);break;case"d":s.setDate(s.getDate()+n),r=!1;break;default:return e}return r&&s.getMonth()!==a&&s.setDate(0),Yn(s)}getPrev(e,i="d",n=1){return this.getNext(e,i,-n)}getWeekday(e){let n=ci(e).getDay();return n===0?7:n}getWeekNumber(e,i){i===7&&(i=0);let n=(11-i)%7,s=e[n],r=ci(s);r.setDate(r.getDate()+4-(r.getDay()||7));let a=r.getTime();return r.setMonth(0),r.setDate(1),Math.floor(Math.round((a-r.getTime())/864e5)/7)+1}getToday(){return Yn(new Date)}isValid(e){if(!e||!J(e.year)||!J(e.month)||!J(e.day)||e.year===0)return!1;let i=ci(e);return!isNaN(i.getTime())&&i.getFullYear()===e.year&&i.getMonth()+1===e.month&&i.getDate()===e.day}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=Le(t)))(n||t)}})()}static{this.\u0275prov=O({token:t,factory:t.\u0275fac})}}return t})();function Dt(t,o){return!er(t,o)}function so(t,o){return!t&&!o?!1:!t||!o?!0:t.year!==o.year||t.month!==o.month}function er(t,o){return!t&&!o||!!t&&!!o&&t.equals(o)}function tr(t,o){if(o&&t&&o.before(t))throw new Error(`'maxDate' ${o} should be greater than 'minDate' ${t}`)}function di(t,o,e){return t&&o&&t.before(o)?o:t&&e&&t.after(e)?e:t||null}function Yi(t,o){let{minDate:e,maxDate:i,disabled:n,markDisabled:s}=o;return!(t==null||n||s&&s(t,{year:t.year,month:t.month})||e&&t.before(e)||i&&t.after(i))}function ir(t,o,e,i){if(!o)return[];let n=t.getMonths(o.year);if(e&&o.year===e.year){let s=n.findIndex(r=>r===e.month);n=n.slice(s)}if(i&&o.year===i.year){let s=n.findIndex(r=>r===i.month);n=n.slice(0,s+1)}return n}function nr(t,o,e){if(!t)return[];let i=o?Math.max(o.year,t.year-500):t.year-10,s=(e?Math.min(e.year,t.year+500):t.year+10)-i+1,r=Array(s);for(let a=0;a{let f=Object.assign(t.getNext(o,"m",u),{day:1});if(r[u]=null,!n){let p=a.findIndex(h=>h.firstDate.equals(f));p!==-1&&(r[u]=a.splice(p,1)[0])}return f}).forEach((d,u)=>{r[u]===null&&(r[u]=ar(t,d,e,i,a.shift()||{}))}),r}function ar(t,o,e,i,n={}){let{dayTemplateData:s,minDate:r,maxDate:a,firstDayOfWeek:l,markDisabled:d,outsideDays:u,weekdayWidth:f,weekdaysVisible:p}=e,h=t.getToday();n.firstDate=null,n.lastDate=null,n.number=o.month,n.year=o.year,n.weeks=n.weeks||[],n.weekdays=n.weekdays||[],o=lr(t,o,l),p||(n.weekdays.length=0);for(let _=0;_D.date),l),v.collapsed=u==="collapsed"&&g[0].date.month!==n.number&&g[g.length-1].date.month!==n.number}return n}function lr(t,o,e){let i=t.getDaysPerWeek(),n=new re(o.year,o.month,1),s=t.getWeekday(n)%i;return t.getPrev(n,"d",(i+s-e)%i)}var dt=(()=>{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""}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=O({token:t,factory:()=>new cr,providedIn:"root"})}}return t})(),cr=(()=>{class t extends dt{constructor(){super(...arguments),this._locale=c(Rn),this._monthsShort=[...Array(12).keys()].map(e=>Intl.DateTimeFormat(this._locale,{month:"short",timeZone:"UTC"}).format(Date.UTC(2e3,e))),this._monthsFull=[...Array(12).keys()].map(e=>Intl.DateTimeFormat(this._locale,{month:"long",timeZone:"UTC"}).format(Date.UTC(2e3,e)))}getWeekdayLabel(e,i="narrow"){return[1,2,3,4,5,6,7].map(s=>Intl.DateTimeFormat(this._locale,{weekday:i,timeZone:"UTC"}).format(Date.UTC(2e3,4,s)))[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 An(i,"fullDate",this._locale)}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=Le(t)))(n||t)}})()}static{this.\u0275prov=O({token:t,factory:t.\u0275fac})}}return t})(),Zi=(()=>{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(Dt(this._state.maxDate,i))return{maxDate:i}},minDate:e=>{let i=this.toValidDate(e,null);if(Dt(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,n=e===!0||e===!1?e:!0;if(this._state.weekdayWidth!==i||this._state.weekdaysVisible!==n)return{weekdayWidth:i,weekdaysVisible:n}}},this._calendar=c(vi),this._i18n=c(dt),this._model$=new Y,this._dateSelect$=new Y,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(Te(e=>e.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(Te(e=>e!==null))}set(e){let i=Object.keys(e).map(n=>this._VALIDATORS[n](e[n])).reduce((n,s)=>ht(ht({},n),s),{});Object.keys(i).length>0&&this._nextState(i)}focus(e){let i=this.toValidDate(e,null);i!=null&&!this._state.disabled&&Dt(this._state.focusDate,i)&&this._nextState({focusDate:e})}focusSelect(){Yi(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||so(this._state.firstDate,i))&&this._nextState({firstDate:i})}select(e,i={}){let n=this.toValidDate(e,null);n!=null&&!this._state.disabled&&(Dt(this._state.selectedDate,n)&&this._nextState({selectedDate:n}),i.emitEvent&&Yi(n,this._state)&&this._dateSelect$.next(n))}toValidDate(e,i){let n=re.from(e);return i===void 0&&(i=this._calendar.getToday()),this._calendar.isValid(n)?n: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:n,selectedDate:s,focusDate:r,focusVisible:a,disabled:l,outsideDays:d}=e;e.months.forEach(u=>{u.weeks.forEach(f=>{f.days.forEach(p=>{r&&(p.context.focused=r.equals(p.date)&&a),p.tabindex=!l&&r&&p.date.equals(r)&&r.month===u.number?0:-1,l===!0&&(p.context.disabled=!0),s!==void 0&&(p.context.selected=s!==null&&s.equals(p.date)),u.number!==p.date.month&&(p.hidden=d==="hidden"||d==="collapsed"||n>1&&p.date.after(i[0].firstDate)&&p.date.before(i[n-1].lastDate))})})})}_updateState(e){let i=Object.assign({},this._state,e),n=i.firstDate;if(("minDate"in e||"maxDate"in e)&&(tr(i.minDate,i.maxDate),i.focusDate=di(i.focusDate,i.minDate,i.maxDate),i.firstDate=di(i.firstDate,i.minDate,i.maxDate),n=i.focusDate),"disabled"in e&&(i.focusVisible=!1),"selectedDate"in e&&this._state.months.length===0&&(n=i.selectedDate),"focusVisible"in e||"focusDate"in e&&(i.focusDate=di(i.focusDate,i.minDate,i.maxDate),n=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=di(i.firstDate,i.minDate,i.maxDate),n=i.firstDate),n){let s="dayTemplateData"in e||"firstDayOfWeek"in e||"markDisabled"in e||"minDate"in e||"maxDate"in e||"disabled"in e||"outsideDays"in e||"weekdaysVisible"in e,r=rr(this._calendar,n,i,this._i18n,s);i.months=r,i.firstDate=r[0].firstDate,i.lastDate=r[r.length-1].lastDate,"selectedDate"in e&&!Yi(i.selectedDate,i)&&(i.selectedDate=null),"firstDate"in e&&(!i.focusDate||i.focusDate.before(i.firstDate)||i.focusDate.after(i.lastDate))&&(i.focusDate=n);let a=!this._state.firstDate||this._state.firstDate.year!==i.firstDate.year,l=!this._state.firstDate||this._state.firstDate.month!==i.firstDate.month;i.navigation==="select"?(("minDate"in e||"maxDate"in e||i.selectBoxes.years.length===0||a)&&(i.selectBoxes.years=nr(i.firstDate,i.minDate,i.maxDate)),("minDate"in e||"maxDate"in e||i.selectBoxes.months.length===0||a)&&(i.selectBoxes.months=ir(this._calendar,i.firstDate,i.minDate,i.maxDate))):i.selectBoxes={years:[],months:[]},(i.navigation==="arrows"||i.navigation==="select")&&(l||a||"minDate"in e||"maxDate"in e||"disabled"in e)&&(i.prevDisabled=i.disabled||sr(this._calendar,i.firstDate,i.minDate),i.nextDisabled=i.disabled||or(this._calendar,i.lastDate,i.maxDate))}return i}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac})}}return t})(),pi=function(t){return t[t.PREV=0]="PREV",t[t.NEXT=1]="NEXT",t}(pi||{}),on=(()=>{class t{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekNumbers=!1,this.weekdays="narrow"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function dr(){return new ur}var bi=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=O({token:t,factory:()=>dr(),providedIn:"root"})}}return t})(),ur=(()=>{class t extends bi{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}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=Le(t)))(n||t)}})()}static{this.\u0275prov=O({token:t,factory:t.\u0275fac})}}return t})(),hr=(()=>{class t{processKey(e,i){let{state:n,calendar:s}=i;switch(e.key){case"PageUp":i.focusDate(s.getPrev(n.focusedDate,e.shiftKey?"y":"m",1));break;case"PageDown":i.focusDate(s.getNext(n.focusedDate,e.shiftKey?"y":"m",1));break;case"End":i.focusDate(e.shiftKey?n.maxDate:n.lastDate);break;case"Home":i.focusDate(e.shiftKey?n.minDate:n.firstDate);break;case"ArrowLeft":i.focusDate(s.getPrev(n.focusedDate,"d",1));break;case"ArrowUp":i.focusDate(s.getPrev(n.focusedDate,"d",s.getDaysPerWeek()));break;case"ArrowRight":i.focusDate(s.getNext(n.focusedDate,"d",1));break;case"ArrowDown":i.focusDate(s.getNext(n.focusedDate,"d",s.getDaysPerWeek()));break;case"Enter":case" ":i.focusSelect();break;default:return}e.preventDefault(),e.stopPropagation()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),pr=(()=>{class t{constructor(){this.i18n=c(dt)}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=le({type:t,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(i,n){i&2&&W("bg-primary",n.selected)("text-white",n.selected)("text-muted",n.isMuted())("outside",n.isMuted())("active",n.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},standalone:!0,features:[ue],attrs:Zo,decls:1,vars:1,template:function(i,n){i&1&&de(0),i&2&&Ee(n.i18n.getDayNumerals(n.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})}}return t})(),fr=(()=>{class t{constructor(){this._month=-1,this._year=-1,this.i18n=c(dt),this.select=new C}changeMonth(e){this.select.emit(new re(this.date.year,we(e),1))}changeYear(e){this.select.emit(new re(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}`))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=le({type:t,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(i,n){if(i&1&&(_t(Xo,7,Z),_t(es,7,Z)),i&2){let s;oe(s=se())&&(n.monthSelect=s.first),oe(s=se())&&(n.yearSelect=s.first)}},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},standalone:!0,features:[ue],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 n;n=$localize`:@@ngb.datepicker.select-year:Select year`;let s;return s=$localize`:@@ngb.datepicker.select-year:Select year`,[["month",""],["year",""],["aria-label",e,"title",i,1,"form-select",3,"change","disabled"],[3,"value"],["aria-label",n,"title",s,1,"form-select",3,"change","disabled"]]},template:function(i,n){if(i&1){let s=et();M(0,"select",2,0),X("change",function(a){return Se(s),Ce(n.changeMonth(a.target.value))}),Me(2,ts,2,3,"option",3,Xe),E(),M(4,"select",4,1),X("change",function(a){return Se(s),Ce(n.changeYear(a.target.value))}),Me(6,is,2,2,"option",3,Xe),E()}i&2&&(B("disabled",n.disabled),y(2),Oe(n.months),y(2),B("disabled",n.disabled),y(2),Oe(n.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})}}return t})(),_r=(()=>{class t{constructor(){this.navigation=pi,this.i18n=c(dt),this.months=[],this.navigate=new C,this.select=new C}onClickPrev(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(e){e.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=le({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:[ue],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 n;n=$localize`:@@ngb.datepicker.next-month:Next month`;let s;return s=$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",n,"title",s,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,n){i&1&&(M(0,"div",0)(1,"button",1),X("click",function(r){return n.onClickPrev(r)}),xe(2,"span",2),E()(),P(3,ns,1,4,"ngb-datepicker-navigation-select",3)(4,as,2,0),M(5,"div",4)(6,"button",5),X("click",function(r){return n.onClickNext(r)}),xe(7,"span",2),E()()),i&2&&(y(),B("disabled",n.prevDisabled),y(2),ne(n.showSelect?3:-1),y(),ne(n.showSelect?-1:4),y(2),B("disabled",n.nextDisabled))},dependencies:[fr],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})}}return t})(),gr=(()=>{class t{constructor(){this.templateRef=c(ft)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=G({type:t,selectors:[["ng-template","ngbDatepickerContent",""]],standalone:!0})}}return t})(),mr=(()=>{class t{constructor(){this._keyboardService=c(hr),this._service=c(Zi),this.i18n=c(dt),this.datepicker=c(ro)}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)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=le({type:t,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(i,n){i&1&&X("keydown",function(r){return n.onKeyDown(r)})},inputs:{month:"month"},standalone:!0,features:[ue],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,n){i&1&&(P(0,ds,4,1,"div",0),Me(1,gs,1,1,null,null,Xe)),i&2&&(ne(n.viewModel.weekdays.length>0?0:-1),y(),Oe(n.viewModel.weeks))},dependencies:[At],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})}}return t})(),ro=(()=>{class t{constructor(){this.injector=c(te),this._service=c(Zi),this._calendar=c(vi),this._i18n=c(dt),this._config=c(on),this._nativeElement=c(Z).nativeElement,this._ngbDateAdapter=c(bi),this._ngZone=c(ce),this._destroyRef=c(Et),this._injector=c(te),this._controlValue=null,this._publicState={},this._initialized=!1,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 C,this.dateSelect=new C,this.onChange=i=>{},this.onTouched=()=>{};let e=c(Ge);this._service.dateSelect$.pipe(tt()).subscribe(i=>{this.dateSelect.emit(i)}),this._service.model$.pipe(tt()).subscribe(i=>{let n=i.firstDate,s=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(u=>u.firstDate)};let r=!1;if(!n.equals(s)&&(this.navigate.emit({current:s?{year:s.year,month:s.month}:null,next:{year:n.year,month:n.month},preventDefault:()=>r=!0}),r&&s!==null)){this._service.open(s);return}let a=i.selectedDate,l=i.focusDate,d=this.model?this.model.focusDate:null;this.model=i,Dt(a,this._controlValue)&&(this._controlValue=a,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(a))),Dt(l,d)&&d&&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(re.from(e))}focusSelect(){this._service.focusSelect()}focus(){Ye(()=>{this._nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]')?.focus()},{phase:ve.Read,injector:this._injector})}navigateTo(e){this._service.open(re.from(e?e.day?e:Oi(ht({},e),{day:1}):null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{let e=z(this._contentEl.nativeElement,"focusin"),i=z(this._contentEl.nativeElement,"focusout");bn(e,i).pipe(Te(n=>{let s=n.target,r=n.relatedTarget;return!(s?.classList.contains("ngb-dp-day")&&r?.classList.contains("ngb-dp-day")&&this._nativeElement.contains(s)&&this._nativeElement.contains(r))}),tt(this._destroyRef)).subscribe(({type:n})=>this._ngZone.run(()=>this._service.set({focusVisible:n==="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),this._initialized=!0}ngOnChanges(e){let i={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays","weekdays"].filter(n=>n in e).forEach(n=>i[n]=this[n]),this._service.set(i),"startDate"in e&&this._initialized){let{currentValue:n,previousValue:s}=e.startDate;so(s,n)&&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 pi.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case pi.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=re.from(this._ngbDateAdapter.fromModel(e)),this._service.select(this._controlValue)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=le({type:t,selectors:[["ngb-datepicker"]],contentQueries:function(i,n,s){if(i&1&&Ae(s,gr,7),i&2){let r;oe(r=se())&&(n.contentTemplateFromContent=r.first)}},viewQuery:function(i,n){if(i&1&&(_t(ms,7),_t(vs,7)),i&2){let s;oe(s=se())&&(n._defaultDayTemplate=s.first),oe(s=se())&&(n._contentEl=s.first)}},hostVars:2,hostBindings:function(i,n){i&2&&W("disabled",n.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:[xt([{provide:ti,useExisting:pt(()=>t),multi:!0},Zi]),Ve,ue],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,n){if(i&1&&(P(0,ys,1,5,"ng-template",null,0,Rt)(2,Ts,2,0,"ng-template",null,1,Rt),M(4,"div",3),P(5,Ss,1,7,"ngb-datepicker-navigation",4),E(),M(6,"div",5,2),P(8,Cs,0,0,"ng-template",6),E(),P(9,Ms,0,0,"ng-template",7)),i&2){let s=Xt(3);y(5),ne(n.navigation!=="none"?5:-1),y(),W("ngb-dp-months",!n.contentTemplate),y(2),B("ngTemplateOutlet",n.contentTemplate||(n.contentTemplateFromContent==null?null:n.contentTemplateFromContent.templateRef)||s)("ngTemplateOutletContext",Nn(7,bs,n))("ngTemplateOutletInjector",n.injector),y(),B("ngTemplateOutlet",n.footerTemplate)}},dependencies:[At,pr,mr,_r],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})}}return t})(),ui=(t,o)=>o?o.some(e=>e.contains(t)):!1,Zn=(t,o)=>!o||Ws(t,o)!=null,vr=(()=>{let t=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,o=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(t()||o()):!1})(),br=t=>vr?()=>setTimeout(()=>t(),100):t;function yi(t,o,e,i,n,s,r,a){e&&t.runOutsideAngular(br(()=>{let l=p=>{let h=p.target;return p.button===2||ui(h,r)?!1:e==="inside"?ui(h,s)&&Zn(h,a):e==="outside"?!ui(h,s):Zn(h,a)||!ui(h,s)},d=z(o,"keydown").pipe(L(n),Te(p=>p.key==="Escape"),Ot(p=>p.preventDefault())),u=z(o,"mousedown").pipe(qe(l),L(n)),f=z(o,"mouseup").pipe(Qt(u),Te(([p,h])=>h),yn(0),L(n));Ei([d.pipe(qe(p=>0)),f.pipe(qe(p=>1))]).subscribe(p=>t.run(()=>i(p)))}))}var ao=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function lo(t){let o=Array.from(t.querySelectorAll(ao)).filter(e=>e.tabIndex!==-1);return[o[0],o[o.length-1]]}var co=(t,o,e,i=!1)=>{t.runOutsideAngular(()=>{let n=z(o,"focusin").pipe(L(e),qe(s=>s.target));z(o,"keydown").pipe(L(e),Te(s=>s.key==="Tab"),Qt(n)).subscribe(([s,r])=>{let[a,l]=lo(o);(r===a||r===o)&&s.shiftKey&&(l.focus(),s.preventDefault()),r===l&&!s.shiftKey&&(a.focus(),s.preventDefault())}),i&&z(o,"click").pipe(L(e),Qt(n),qe(s=>s[1])).subscribe(s=>s.focus())})},yr=(()=>{class t{constructor(){this._element=c(be).documentElement}isRTL(){return(this._element.getAttribute("dir")||"").toLowerCase()==="rtl"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Dr=/\s+/,wr=/ +/gi,Tr={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 Sr(t,o){let[e,i]=Tr[t];return o&&i||e}var Cr=/^left/,Mr=/^right/,Or=/^start/,Er=/^end/;function Nr(t,o){let[e,i]=o.split("-"),n=e.replace(Cr,"start").replace(Mr,"end"),s=[n];if(i){let r=i;(e==="left"||e==="right")&&(r=r.replace(Or,"top").replace(Er,"bottom")),s.push(`${n}-${r}`)}return t&&(s=s.map(r=>`${t}-${r}`)),s.join(" ")}function Xn({placement:t,baseClass:o},e){let i=Array.isArray(t)?t:t.split(Dr),n=["top","bottom","start","end","top-start","top-end","bottom-start","bottom-end","start-top","start-bottom","end-top","end-bottom"],s=i.findIndex(d=>d==="auto");s>=0&&n.forEach(function(d){i.find(u=>u.search("^"+d)!==-1)==null&&i.splice(s++,1,d)});let r=i.map(d=>Sr(d,e.isRTL()));return{placement:r.shift(),modifiers:[{name:"bootstrapClasses",enabled:!!o,phase:"write",fn({state:d}){let u=new RegExp(o+"(-[a-z]+)*","gi"),f=d.elements.popper,p=d.placement,h=f.className;h=h.replace(u,""),h+=` ${Nr(o,p)}`,h=h.trim().replace(wr," "),f.className=h}},Li,$i,Ii,{enabled:!0,name:"flip",options:{fallbackPlacements:r}},{enabled:!0,name:"preventOverflow",phase:"main",fn:function(){}}]}}function eo(t){return t}function Di(){let t=c(yr),o=null;return{createPopper(e){if(!o){let n=(e.updatePopperOptions||eo)(Xn(e,t));o=qi(e.hostElement,e.targetElement,n)}},update(){o&&o.update()},setOptions(e){if(o){let n=(e.updatePopperOptions||eo)(Xn(e,t));o.setOptions(n)}},destroy(){o&&(o.destroy(),o=null)}}}function xr(){return new Rr}var uo=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=O({token:t,factory:()=>xr(),providedIn:"root"})}}return t})(),Rr=(()=>{class t extends uo{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)?Qn(e.month):""}-${Be(e.day)?Qn(e.day):""}`:""}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=Le(t)))(n||t)}})()}static{this.\u0275prov=O({token:t,factory:t.\u0275fac})}}return t})(),to=(()=>{class t extends on{constructor(){super(...arguments),this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=e=>e,this.restoreFocus=!0}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=Le(t)))(n||t)}})()}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function wi(t){return o=>(o.modifiers.push(Gi,{name:"offset",options:{offset:()=>t}}),o)}var Ju=(()=>{class t{constructor(){this._parserFormatter=c(uo),this._elRef=c(Z),this._vcRef=c(Jt),this._ngZone=c(ce),this._calendar=c(vi),this._dateAdapter=c(bi),this._document=c(be),this._changeDetector=c(Ge),this._injector=c(te),this._config=c(to),this._cRef=null,this._disabled=!1,this._elWithFocus=null,this._model=null,this._positioning=Di(),this._destroyCloseHandlers$=new Y,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 C,this.navigate=new C,this.closed=new C,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 n=this._fromDateStruct(this._dateAdapter.fromModel(i));if(!n)return{ngbDate:{invalid:i}};if(this.minDate&&n.before(re.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:i}}};if(this.maxDate&&n.after(re.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 n=e!==this._inputValue;n&&(this._inputValue=e,this._model=this._fromDateStruct(this._parserFormatter.parse(e))),(n||!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(ro,{injector:this._injector}),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,co(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(wi([0,2])(i))}),this._afterRenderRef=Nt(()=>{this._positioning.update()},{phase:ve.MixedReadWrite,injector:this._injector}))}),this._setCloseHandlers()}}close(){if(this.isOpen()){this._cRef?.destroy(),this._cRef=null,this._positioning.destroy(),this._afterRenderRef?.destroy(),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:n}=e.datepickerClass;this._applyPopupClass(i,n)}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 n=this._cRef?.location.nativeElement;n&&(e&&n.classList.add(e),i&&n.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 re(e.year,e.month,e.day):null;return this._calendar.isValid(i)?i:null}_setCloseHandlers(){this._destroyCloseHandlers$.next(),yi(this._ngZone,this._document,this.autoClose,()=>this.close(),this._destroyCloseHandlers$,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=G({type:t,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(i,n){i&1&&X("input",function(r){return n.manualDateChange(r.target.value)})("change",function(r){return n.manualDateChange(r.target.value,!0)})("focus",function(){return n.onFocus()})("blur",function(){return n.onBlur()}),i&2&&Re("disabled",n.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:[xt([{provide:ti,useExisting:pt(()=>t),multi:!0},{provide:Pn,useExisting:pt(()=>t),multi:!0},{provide:on,useExisting:to}]),Ve]})}}return t})();var qu=new Date(1882,10,12),Yu=new Date(2174,10,25);var Zu=1e3*60*60*24;var sn=1080,Ar=24*sn,Pr=12*sn+793,Xu=29*Ar+Pr,eh=11*sn+204;var th=(()=>{class t extends bi{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}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=Le(t)))(n||t)}})()}static{this.\u0275prov=O({token:t,factory:t.\u0275fac})}}return t})();var kr=(()=>{class t{constructor(){this.autoClose=!0,this.placement=["bottom-start","bottom-end","top-start","top-end"],this.popperOptions=e=>e,this.container=null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ho=(()=>{class t{constructor(){this._disabled=!1,this.nativeElement=c(Z).nativeElement,this.tabindex=0}set disabled(e){this._disabled=e===""||e===!0}get disabled(){return this._disabled}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=G({type:t,selectors:[["","ngbDropdownItem",""]],hostAttrs:[1,"dropdown-item"],hostVars:3,hostBindings:function(i,n){i&2&&(Re("tabIndex",n.disabled?-1:n.tabindex),W("disabled",n.disabled))},inputs:{tabindex:"tabindex",disabled:"disabled"},standalone:!0})}}return t})(),ih=(()=>{class t{constructor(){this.item=c(ho)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=G({type:t,selectors:[["button","ngbDropdownItem",""]],hostVars:1,hostBindings:function(i,n){i&2&&Re("disabled",n.item.disabled)},standalone:!0})}}return t})(),Ir=(()=>{class t{constructor(){this.dropdown=c(po),this.nativeElement=c(Z).nativeElement}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=G({type:t,selectors:[["","ngbDropdownMenu",""]],contentQueries:function(i,n,s){if(i&1&&Ae(s,ho,4),i&2){let r;oe(r=se())&&(n.menuItems=r)}},hostAttrs:[1,"dropdown-menu"],hostVars:2,hostBindings:function(i,n){i&1&&X("keydown.ArrowUp",function(r){return n.dropdown.onKeyDown(r)})("keydown.ArrowDown",function(r){return n.dropdown.onKeyDown(r)})("keydown.Home",function(r){return n.dropdown.onKeyDown(r)})("keydown.End",function(r){return n.dropdown.onKeyDown(r)})("keydown.Enter",function(r){return n.dropdown.onKeyDown(r)})("keydown.Space",function(r){return n.dropdown.onKeyDown(r)})("keydown.Tab",function(r){return n.dropdown.onKeyDown(r)})("keydown.Shift.Tab",function(r){return n.dropdown.onKeyDown(r)}),i&2&&W("show",n.dropdown.isOpen())},standalone:!0})}}return t})(),Xi=(()=>{class t{constructor(){this.dropdown=c(po),this.nativeElement=c(Z).nativeElement}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=G({type:t,selectors:[["","ngbDropdownAnchor",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(i,n){i&2&&(Ne("aria-expanded",n.dropdown.isOpen()),W("show",n.dropdown.isOpen()))},standalone:!0})}}return t})(),nh=(()=>{class t extends Xi{static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=Le(t)))(n||t)}})()}static{this.\u0275dir=G({type:t,selectors:[["","ngbDropdownToggle",""]],hostAttrs:[1,"dropdown-toggle"],hostVars:3,hostBindings:function(i,n){i&1&&X("click",function(){return n.dropdown.toggle()})("keydown.ArrowUp",function(r){return n.dropdown.onKeyDown(r)})("keydown.ArrowDown",function(r){return n.dropdown.onKeyDown(r)})("keydown.Home",function(r){return n.dropdown.onKeyDown(r)})("keydown.End",function(r){return n.dropdown.onKeyDown(r)})("keydown.Tab",function(r){return n.dropdown.onKeyDown(r)})("keydown.Shift.Tab",function(r){return n.dropdown.onKeyDown(r)}),i&2&&(Ne("aria-expanded",n.dropdown.isOpen()),W("show",n.dropdown.isOpen()))},standalone:!0,features:[xt([{provide:Xi,useExisting:pt(()=>t)}]),Cn]})}}return t})(),po=(()=>{class t{constructor(){this._changeDetector=c(Ge),this._config=c(kr),this._document=c(be),this._injector=c(te),this._ngZone=c(ce),this._nativeElement=c(Z).nativeElement,this._destroyCloseHandlers$=new Y,this._bodyContainer=null,this._positioning=Di(),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 C}ngOnInit(){this.display||(this.display=this._nativeElement.closest(".navbar")?"static":"dynamic")}ngAfterContentInit(){Ye(()=>{this._applyPlacementClasses(),this._open&&this._setCloseHandlers()},{phase:ve.Write,injector:this._injector})}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:n}=e.dropdownClass;this._applyCustomDropdownClass(i,n)}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(wi([0,2])(e))}),this._applyPlacementClasses(),this._afterRenderRef=Nt(()=>{this._positionMenu()},{phase:ve.Write,injector:this._injector})})))}_setCloseHandlers(){this._destroyCloseHandlers$.next(),yi(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._afterRenderRef?.destroy(),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,n=this._getMenuElements(),s=-1,r=null,a=this._isEventFromToggle(e);if(!a&&n.length&&n.forEach((l,d)=>{l.contains(e.target)&&(r=l),l===oo(this._document)&&(s=d)}),i===" "||i==="Enter"){r&&(this.autoClose===!0||this.autoClose==="inside")&&z(r,"click").pipe(Mt(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 l=this._menu.nativeElement.querySelectorAll(ao);e.shiftKey&&e.target===l[0]?(this._anchor.nativeElement.focus(),e.preventDefault()):!e.shiftKey&&e.target===l[l.length-1]&&(this._anchor.nativeElement.focus(),this.close())}else z(e.target,"focusout").pipe(Mt(1)).subscribe(({relatedTarget:l})=>{this._nativeElement.contains(l)||this.close()});return}if(a||r){if(this.open(),n.length){switch(i){case"ArrowDown":s=Math.min(s+1,n.length-1);break;case"ArrowUp":if(this._isDropup()&&s===-1){s=n.length-1;break}s=Math.max(s-1,0);break;case"Home":s=0;break;case"End":s=n.length-1;break}n[s].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,n=this._bodyContainer=this._bodyContainer||this._document.createElement("div");n.style.position="absolute",i.style.position="static",n.style.zIndex="1055",n.appendChild(i),this._document.body.appendChild(n)}this._applyCustomDropdownClass(this.dropdownClass)}_applyCustomDropdownClass(e,i){let n=this.container==="body"?this._bodyContainer:this._nativeElement;n&&(i&&n.classList.remove(i),e&&n.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))}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=G({type:t,selectors:[["","ngbDropdown",""]],contentQueries:function(i,n,s){if(i&1&&(Ae(s,Ir,5),Ae(s,Xi,5)),i&2){let r;oe(r=se())&&(n._menu=r.first),oe(r=se())&&(n._anchor=r.first)}},hostVars:2,hostBindings:function(i,n){i&2&&W("show",n.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:[Ve]})}}return t})();var Br=(()=>{class t{constructor(){this._ngbConfig=c(Lt),this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Fe=class{constructor(o,e,i){this.nodes=o,this.viewRef=e,this.componentRef=i}},fi=class{constructor(o){this._componentType=o,this._windowRef=null,this._contentRef=null,this._document=c(be),this._applicationRef=c(Ai),this._injector=c(te),this._viewContainerRef=c(Jt),this._ngZone=c(ce)}open(o,e,i=!1){this._windowRef||(this._contentRef=this._getContentRef(o,e),this._windowRef=this._viewContainerRef.createComponent(this._componentType,{injector:this._injector,projectableNodes:this._contentRef.nodes}));let{nativeElement:n}=this._windowRef.location,s=new Y;Ye(()=>{s.next(),s.complete()},{injector:this._injector,phase:ve.MixedReadWrite});let r=s.pipe(mn(()=>_e(this._ngZone,n,({classList:a})=>a.add("show"),{animation:i,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:r}}close(o=!1){return this._windowRef?_e(this._ngZone,this._windowRef.location.nativeElement,({classList:e})=>e.remove("show"),{animation:o,runningTransition:"stop"}).pipe(Ot(()=>{this._windowRef?.destroy(),this._contentRef?.viewRef?.destroy(),this._windowRef=null,this._contentRef=null})):Ct(void 0)}_getContentRef(o,e){if(o)if(o instanceof ft){let i=o.createEmbeddedView(e);return this._applicationRef.attachView(i),new Fe([i.rootNodes],i)}else return new Fe([[this._document.createTextNode(`${o}`)]]);else return new Fe([])}},Fr=(()=>{class t{constructor(){this._document=c(be)}hide(){let e=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),i=this._document.body,n=i.style,{overflow:s,paddingRight:r}=n;if(e>0){let a=parseFloat(window.getComputedStyle(i).paddingRight);n.paddingRight=`${a+e}px`}return n.overflow="hidden",()=>{e>0&&(n.paddingRight=r),n.overflow=s}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Hr=(()=>{class t{constructor(){this._nativeElement=c(Z).nativeElement,this._zone=c(ce),this._injector=c(te)}ngOnInit(){Ye(()=>_e(this._zone,this._nativeElement,(e,i)=>{i&&gi(e),e.classList.add("show")},{animation:this.animation,runningTransition:"continue"}),{injector:this._injector,phase:ve.MixedReadWrite})}hide(){return _e(this._zone,this._nativeElement,({classList:e})=>e.remove("show"),{animation:this.animation,runningTransition:"stop"})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=le({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(i,n){i&2&&(Ze("modal-backdrop"+(n.backdropClass?" "+n.backdropClass:"")),W("show",!n.animation)("fade",n.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[ue],decls:0,vars:0,template:function(i,n){},encapsulation:2})}}return t})(),_i=class{update(o){}close(o){}dismiss(o){}},Vr=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],Lr=["animation","backdropClass"],en=class{_applyWindowOptions(o,e){Vr.forEach(i=>{hi(e[i])&&(o[i]=e[i])})}_applyBackdropOptions(o,e){Lr.forEach(i=>{hi(e[i])&&(o[i]=e[i])})}update(o){this._applyWindowOptions(this._windowCmptRef.instance,o),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,o)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(L(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(L(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(o,e,i,n){this._windowCmptRef=o,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=n,this._closed=new Y,this._dismissed=new Y,this._hidden=new Y,o.instance.dismissEvent.subscribe(s=>{this.dismiss(s)}),this.result=new Promise((s,r)=>{this._resolve=s,this._reject=r}),this.result.then(null,()=>{})}close(o){this._windowCmptRef&&(this._closed.next(o),this._resolve(o),this._removeModalElements())}_dismiss(o){this._dismissed.next(o),this._reject(o),this._removeModalElements()}dismiss(o){if(this._windowCmptRef)if(!this._beforeDismiss)this._dismiss(o);else{let e=this._beforeDismiss();Ls(e)?e.then(i=>{i!==!1&&this._dismiss(o)},()=>{}):e!==!1&&this._dismiss(o)}}_removeModalElements(){let o=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():Ct(void 0);o.subscribe(()=>{let{nativeElement:i}=this._windowCmptRef.location;i.parentNode.removeChild(i),this._windowCmptRef.destroy(),this._contentRef?.viewRef?.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){let{nativeElement:i}=this._backdropCmptRef.location;i.parentNode.removeChild(i),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Kt(o,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}},tn=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}(tn||{}),Gr=(()=>{class t{constructor(){this._document=c(be),this._elRef=c(Z),this._zone=c(ce),this._injector=c(te),this._closed$=new Y,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new C,this.shown=new Y,this.hidden=new Y}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,Ye(()=>this._show(),{injector:this._injector,phase:ve.MixedReadWrite})}ngOnDestroy(){this._disableEventHandling()}hide(){let{nativeElement:e}=this._elRef,i={animation:this.animation,runningTransition:"stop"},n=_e(this._zone,e,()=>e.classList.remove("show"),i),s=_e(this._zone,this._dialogEl.nativeElement,()=>{},i),r=Kt(n,s);return r.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),r}_show(){let e={animation:this.animation,runningTransition:"continue"},i=_e(this._zone,this._elRef.nativeElement,(s,r)=>{r&&gi(s),s.classList.add("show")},e),n=_e(this._zone,this._dialogEl.nativeElement,()=>{},e);Kt(i,n).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){let{nativeElement:e}=this._elRef;this._zone.runOutsideAngular(()=>{z(e,"keydown").pipe(L(this._closed$),Te(n=>n.key==="Escape")).subscribe(n=>{this.keyboard?requestAnimationFrame(()=>{n.defaultPrevented||this._zone.run(()=>this.dismiss(tn.ESC))}):this.backdrop==="static"&&this._bumpBackdrop()});let i=!1;z(this._dialogEl.nativeElement,"mousedown").pipe(L(this._closed$),Ot(()=>i=!1),Ni(()=>z(e,"mouseup").pipe(L(this._closed$),Mt(1))),Te(({target:n})=>e===n)).subscribe(()=>{i=!0}),z(e,"click").pipe(L(this._closed$)).subscribe(({target:n})=>{e===n&&(this.backdrop==="static"?this._bumpBackdrop():this.backdrop===!0&&!i&&this._zone.run(()=>this.dismiss(tn.BACKDROP_CLICK))),i=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){let{nativeElement:e}=this._elRef;if(!e.contains(document.activeElement)){let i=e.querySelector("[ngbAutofocus]"),n=lo(e)[0];(i||n||e).focus()}}_restoreFocus(){let e=this._document.body,i=this._elWithFocus,n;i&&i.focus&&e.contains(i)?n=i:n=e,this._zone.runOutsideAngular(()=>{setTimeout(()=>n.focus()),this._elWithFocus=null})}_bumpBackdrop(){this.backdrop==="static"&&_e(this._zone,this._elRef.nativeElement,({classList:e})=>(e.add("modal-static"),()=>e.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=le({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(i,n){if(i&1&&_t(Os,7),i&2){let s;oe(s=se())&&(n._dialogEl=s.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(i,n){i&2&&(Ne("aria-modal",!0)("aria-labelledby",n.ariaLabelledBy)("aria-describedby",n.ariaDescribedBy),Ze("modal d-block"+(n.windowClass?" "+n.windowClass:"")),W("fade",n.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:[ue],ngContentSelectors:nn,decls:4,vars:2,consts:[["dialog",""],["role","document"],[1,"modal-content"]],template:function(i,n){i&1&&(Yt(),M(0,"div",1,0)(2,"div",2),Zt(3),E()()),i&2&&Ze("modal-dialog"+(n.size?" modal-"+n.size:"")+(n.centered?" modal-dialog-centered":"")+n.fullscreenClass+(n.scrollable?" modal-dialog-scrollable":"")+(n.modalDialogClass?" "+n.modalDialogClass:""))},styles:[`ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden} +`],encapsulation:2})}}return t})(),Wr=(()=>{class t{constructor(){this._applicationRef=c(Ai),this._injector=c(te),this._environmentInjector=c(xi),this._document=c(be),this._scrollBar=c(Fr),this._activeWindowCmptHasChanged=new Y,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new C;let e=c(ce);this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){let i=this._windowCmpts[this._windowCmpts.length-1];co(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,n){let s=n.container instanceof HTMLElement?n.container:hi(n.container)?this._document.querySelector(n.container):this._document.body;if(!s)throw new Error(`The specified modal container "${n.container||"body"}" was not found in the DOM.`);this._hideScrollBar();let r=new _i;e=n.injector||e;let a=e.get(xi,null)||this._environmentInjector,l=this._getContentRef(e,a,i,r,n),d=n.backdrop!==!1?this._attachBackdrop(s):void 0,u=this._attachWindowComponent(s,l.nodes),f=new en(u,l,d,n.beforeDismiss);return this._registerModalRef(f),this._registerWindowCmpt(u),f.hidden.pipe(Mt(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(this._document.body.classList.remove("modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),r.close=p=>{f.close(p)},r.dismiss=p=>{f.dismiss(p)},r.update=p=>{f.update(p)},f.update(n),this._modalRefs.length===1&&this._document.body.classList.add("modal-open"),d&&d.instance&&d.changeDetectorRef.detectChanges(),u.changeDetectorRef.detectChanges(),f}get activeInstances(){return this._activeInstances}dismissAll(e){this._modalRefs.forEach(i=>i.dismiss(e))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(e){let i=ei(Hr,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(i.hostView),e.appendChild(i.location.nativeElement),i}_attachWindowComponent(e,i){let n=ei(Gr,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:i});return this._applicationRef.attachView(n.hostView),e.appendChild(n.location.nativeElement),n}_getContentRef(e,i,n,s,r){return n?n instanceof ft?this._createFromTemplateRef(n,s):wt(n)?this._createFromString(n):this._createFromComponent(e,i,n,s,r):new Fe([])}_createFromTemplateRef(e,i){let n={$implicit:i,close(r){i.close(r)},dismiss(r){i.dismiss(r)}},s=e.createEmbeddedView(n);return this._applicationRef.attachView(s),new Fe([s.rootNodes],s)}_createFromString(e){let i=this._document.createTextNode(`${e}`);return new Fe([[i]])}_createFromComponent(e,i,n,s,r){let a=te.create({providers:[{provide:_i,useValue:s}],parent:e}),l=ei(n,{environmentInjector:i,elementInjector:a}),d=l.location.nativeElement;return r.scrollable&&d.classList.add("component-host-scrollable"),this._applicationRef.attachView(l.hostView),new Fe([[d]],l.hostView,l)}_setAriaHidden(e){let i=e.parentElement;i&&e!==this._document.body&&(Array.from(i.children).forEach(n=>{n!==e&&n.nodeName!=="SCRIPT"&&(this._ariaHiddenValues.set(n,n.getAttribute("aria-hidden")),n.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 n=this._modalRefs.indexOf(e);n>-1&&(this._modalRefs.splice(n,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())})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),oh=(()=>{class t{constructor(){this._injector=c(te),this._modalStack=c(Wr),this._config=c(Br)}open(e,i={}){let n=ht(Oi(ht({},this._config),{animation:this._config.animation}),i);return this._modalStack.open(this._injector,e,n)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(e){this._modalStack.dismissAll(e)}hasOpenModals(){return this._modalStack.hasOpenModals()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var $r={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]};function jr(t){let o=(t||"").trim();if(o.length===0)return[];let e=o.split(/\s+/).map(n=>n.split(":")).map(n=>$r[n[0]]||n),i=e.filter(n=>n.includes("manual"));if(i.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(i.length===1&&e.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return i.length?[]:e}function Ur(t,o,e,i,n,s=0,r=0){let a=jr(o);if(a.length===0)return()=>{};let l=new Set,d=[],u;function f(h,_){t.addEventListener(h,_),d.push(()=>t.removeEventListener(h,_))}function p(h,_){clearTimeout(u),_>0?u=setTimeout(h,_):h()}for(let[h,_]of a)_?(f(h,()=>{l.add(h),p(()=>l.size>0&&i(),s)}),f(_,()=>{l.delete(h),p(()=>l.size===0&&n(),r)})):f(h,()=>e()?p(n,r):p(i,s));return()=>d.forEach(h=>h())}var zr=(()=>{class t{constructor(){this._ngbConfig=c(Lt),this.autohide=!0,this.delay=5e3,this.ariaLive="polite"}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Kr=(t,o)=>{let{classList:e}=t;if(o)e.add("fade");else{e.add("show");return}return gi(t),e.add("show","showing"),()=>{e.remove("showing")}},Qr=({classList:t})=>(t.add("showing"),()=>{t.remove("show","showing")}),Jr=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=G({type:t,selectors:[["","ngbToastHeader",""]],standalone:!0})}}return t})(),sh=(()=>{class t{constructor(e){this.ariaLive=e,this._config=c(zr),this._zone=c(ce),this._injector=c(te),this._element=c(Z),this.animation=this._config.animation,this.delay=this._config.delay,this.autohide=this._config.autohide,this.contentHeaderTpl=null,this.shown=new C,this.hidden=new C,this.ariaLive??=this._config.ariaLive}ngAfterContentInit(){Ye(()=>{this._init(),this.show()},{phase:ve.MixedReadWrite,injector:this._injector})}ngOnChanges(e){"autohide"in e&&(this._clearTimeout(),this._init())}hide(){this._clearTimeout();let e=_e(this._zone,this._element.nativeElement,Qr,{animation:this.animation,runningTransition:"stop"});return e.subscribe(()=>{this.hidden.emit()}),e}show(){let e=_e(this._zone,this._element.nativeElement,Kr,{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)}static{this.\u0275fac=function(i){return new(i||t)(Sn("aria-live"))}}static{this.\u0275cmp=le({type:t,selectors:[["ngb-toast"]],contentQueries:function(i,n,s){if(i&1&&Ae(s,Jr,7,ft),i&2){let r;oe(r=se())&&(n.contentHeaderTpl=r.first)}},hostAttrs:["role","alert","aria-atomic","true",1,"toast"],hostVars:3,hostBindings:function(i,n){i&2&&(Ne("aria-live",n.ariaLive),W("fade",n.animation))},inputs:{animation:"animation",delay:"delay",autohide:"autohide",header:"header"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbToast"],standalone:!0,features:[Ve,ue],ngContentSelectors:nn,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,n){i&1&&(Yt(),P(0,Es,2,1,"ng-template",null,0,Rt)(2,xs,3,1,"div",1),M(3,"div",2),Zt(4),E()),i&2&&(y(2),ne(n.contentHeaderTpl||n.header?2:-1))},dependencies:[At],styles:[`ngb-toast{display:block}ngb-toast .toast-header .close{margin-left:auto;margin-bottom:.25rem} +`],encapsulation:2})}}return t})();var qr=(()=>{class t{constructor(){this._ngbConfig=c(Lt),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}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Yr=0,Zr=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=le({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(i,n){i&2&&(Re("id",n.id),Ze("tooltip"+(n.tooltipClass?" "+n.tooltipClass:"")),W("fade",n.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},standalone:!0,features:[ue],ngContentSelectors:nn,decls:3,vars:0,consts:[["data-popper-arrow","",1,"tooltip-arrow"],[1,"tooltip-inner"]],template:function(i,n){i&1&&(Yt(),xe(0,"div",0),M(1,"div",1),Zt(2),E())},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})}}return t})(),rh=(()=>{class t{constructor(){this._config=c(qr),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 C,this.hidden=new C,this._nativeElement=c(Z).nativeElement,this._ngZone=c(ce),this._document=c(be),this._changeDetector=c(Ge),this._injector=c(te),this._ngbTooltipWindowId=`ngb-tooltip-${Yr++}`,this._popupService=new fi(Zr),this._windowRef=null,this._positioning=Di()}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$:n}=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:s=>this.popperOptions(wi([0,6])(s))}),Promise.resolve().then(()=>{this._positioning.update()}),this._afterRenderRef=Nt(()=>{this._positioning.update()},{phase:ve.MixedReadWrite,injector:this._injector})}),yi(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement],[this._nativeElement]),n.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._afterRenderRef?.destroy(),this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return this._windowRef!=null}ngOnInit(){this._unregisterListenersFn=Ur(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}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=G({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:[Ve]})}}return t})();var Xr=(()=>{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=Vt(this.result),n=Array.isArray(this.term)?this.term:[this.term],s=d=>this.accentSensitive?d:Jn(d),r=n.map(d=>Gs(s(Vt(d)))).filter(d=>d),a=this.accentSensitive?i:Jn(i),l=r.length?a.split(new RegExp(`(${r.join("|")})`,"gmi")):[i];if(this.accentSensitive)this.parts=l;else{let d=0;this.parts=l.map(u=>i.substring(d,d+=u.length))}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=le({type:t,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term",accentSensitive:"accentSensitive"},standalone:!0,features:[Ve,ue],decls:2,vars:0,consts:[[3,"class"]],template:function(i,n){i&1&&Me(0,Ps,2,1,null,null,qt),i&2&&Oe(n.parts)},styles:[`.ngb-highlight{font-weight:700} +`],encapsulation:2,changeDetection:0})}}return t})(),ea=new wn("live announcer delay",{providedIn:"root",factory:()=>100});function io(t,o=!1){let e=t.body.querySelector("#ngb-live");return e==null&&o&&(e=t.createElement("div"),e.setAttribute("id","ngb-live"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),e.classList.add("visually-hidden"),t.body.appendChild(e)),e}var ta=(()=>{class t{constructor(){this._document=c(be),this._delay=c(ea)}ngOnDestroy(){let e=io(this._document);e&&e.parentElement.removeChild(e)}say(e){let i=io(this._document,!0),n=this._delay;if(i!=null){i.textContent="";let s=()=>i.textContent=e;n===null?s():setTimeout(s,n)}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ia=(()=>{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}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=O({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),na=(()=>{class t{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=Vt,this.selectEvent=new C,this.activeChangeEvent=new C}hasActive(){return this.activeIdx>-1&&this.activeIdx=0?this.id+"-"+this.activeIdx:void 0)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=le({type:t,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(i,n){i&1&&X("mousedown",function(r){return r.preventDefault()}),i&2&&(Re("id",n.id),Ze("dropdown-menu show"+(n.popupClass?" "+n.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:[ue],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,n){i&1&&(P(0,Is,1,2,"ng-template",null,0,Rt),Me(2,Fs,2,9,"button",1,qt)),i&2&&(y(2),Oe(n.results))},dependencies:[Xr,At],encapsulation:2})}}return t})(),oa=0,ah=(()=>{class t{constructor(){this._nativeElement=c(Z).nativeElement,this._config=c(ia),this._live=c(ta),this._document=c(be),this._ngZone=c(ce),this._changeDetector=c(Ge),this._injector=c(te),this._popupService=new fi(na),this._positioning=Di(),this._subscription=null,this._closed$=new Y,this._inputValueBackup=null,this._inputValueForSelectOnExact=null,this._valueChanges$=z(this._nativeElement,"input").pipe(qe(e=>e.target.value)),this._resubscribeTypeahead$=new _n(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 C,this.activeDescendant=null,this.popupId=`ngb-typeahead-${oa++}`,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();hi(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(wi([0,2])(i))}),this._afterRenderRef=Nt(()=>{this._positioning.update()},{phase:ve.MixedReadWrite,injector:this._injector}))}),yi(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._nativeElement,this._windowRef.location.nativeElement])}}_closePopup(){this._popupService.close().subscribe(()=>{this._positioning.destroy(),this._afterRenderRef?.destroy(),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):Vt(e)}_writeInputValue(e){this._nativeElement.value=Vt(e)}_subscribeToUserInput(){let e=this._valueChanges$.pipe(Ot(i=>{this._inputValueBackup=this.showHint?i:null,this._inputValueForSelectOnExact=this.selectOnExact?i:null,this._onChange(this.editable?i:void 0)}),this.ngbTypeahead?this.ngbTypeahead:()=>Ct([]));this._subscription=this._resubscribeTypeahead$.pipe(Ni(()=>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 n=i?i.length:0;this._live.say(n===0?"No results available":`${n} result${n===1?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275dir=G({type:t,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox"],hostVars:7,hostBindings:function(i,n){i&1&&X("blur",function(){return n.handleBlur()})("keydown",function(r){return n.handleKeyDown(r)}),i&2&&(Re("autocomplete",n.autocomplete),Ne("aria-autocomplete",n.showHint?"both":"list")("aria-activedescendant",n.activeDescendant)("aria-owns",n.isPopupOpen()?n.popupId:null)("aria-expanded",n.isPopupOpen()),W("open",n.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:[xt([{provide:ti,useExisting:pt(()=>t),multi:!0}]),Ve]})}}return t})();function dh(t){return t!==null}function uh(t){return typeof t=="string"&&t.length>0}function hh(t){return o=>!t(o)}function ph(t){return o=>o.length>=t}function fh(t){return!!t}function _h(t){return o=>o instanceof t}function gh(t,o,e){return e.indexOf(t)===o}export{Ku as a,qs as b,Qu as c,mi as d,Ys as e,bi as f,uo as g,to as h,Ju as i,th as j,ho as k,ih as l,Ir as m,nh as n,po as o,_i as p,oh as q,sh as r,rh as s,ah as t,dh as u,uh as v,hh as w,ph as x,fh as y,_h as z,gh as A}; diff --git a/public/apps/webapp-schulverwaltung/chunk-MGID7RWQ.js b/public/apps/webapp-schulverwaltung/chunk-MGID7RWQ.js deleted file mode 100644 index 3011f844..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-MGID7RWQ.js +++ /dev/null @@ -1 +0,0 @@ -import{q as b}from"./chunk-W7ASLXRM.js";import{b as l}from"./chunk-SOHFFTKU.js";import{$b as m,Ac as n,Dd as d,Fc as f,O as s,Vc as u,W as p,Z as o,dc as a,zc as c}from"./chunk-XTHSYQMN.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-5RDJZAUT.js b/public/apps/webapp-schulverwaltung/chunk-MIRGHONI.js similarity index 84% rename from public/apps/webapp-schulverwaltung/chunk-5RDJZAUT.js rename to public/apps/webapp-schulverwaltung/chunk-MIRGHONI.js index 18715c36..db1cd06e 100644 --- a/public/apps/webapp-schulverwaltung/chunk-5RDJZAUT.js +++ b/public/apps/webapp-schulverwaltung/chunk-MIRGHONI.js @@ -1 +1 @@ -import{a as s,b as o,jc as u,kc as l}from"./chunk-XTHSYQMN.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}; +import{a as s,b as o,mc as u,nc as l}from"./chunk-IFJN5CDK.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-NL5E3FC5.js b/public/apps/webapp-schulverwaltung/chunk-NL5E3FC5.js new file mode 100644 index 00000000..d1d7d31a --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-NL5E3FC5.js @@ -0,0 +1 @@ +import{M as I,O as i,P as p,k as m,l as x,n as c,o as f,x as l}from"./chunk-IFJN5CDK.js";function C(t,o,n){return f([t,o]).pipe(l(([r,a])=>a),p(([r,a])=>{let e=n?r?.get(n)||null:r;return e?e.statusChanges.pipe(i(e.status),c(()=>h(e))):x([])}),i([]),I(1))}function y(t,o){return t.pipe(c(n=>n.get(o)||null))}function j(t,o){return y(t,o).pipe(p(n=>n?n.valueChanges:m))}function h(t){return t?Object.keys(t.errors||{}).map(o=>({error:o,params:t.errors&&t.errors[o]instanceof Object?t.errors[o]:null})):[]}function w(t){return o=>t(...o)}var b=Math.pow(10,8)*24*60*60*1e3,T=-b,W=6048e5,E=864e5,H=6e4,z=36e5,O=1e3;var D=3600;var d=D*24,Q=d*7,M=d*365.2425,Y=M/12,V=Y*3,u=Symbol.for("constructDateFrom");function s(t,o){return typeof t=="function"?t(o):t&&typeof t=="object"&&u in t?t[u](o):t instanceof Date?new t.constructor(o):new Date(o)}function P(t,o){return s(o||t,t)}function G(t,...o){let n=s.bind(null,t||o.find(r=>typeof r=="object"));return o.map(n)}export{C as a,y as b,j as c,W as d,E as e,H as f,z as g,O as h,s as i,P as j,G as k,w as l}; diff --git a/public/apps/webapp-schulverwaltung/chunk-NTSKCSYH.js b/public/apps/webapp-schulverwaltung/chunk-NTSKCSYH.js new file mode 100644 index 00000000..1c20b201 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-NTSKCSYH.js @@ -0,0 +1 @@ +import{a as F}from"./chunk-OFB4XAK2.js";import{a as G,e as u}from"./chunk-KK2SHN2W.js";import{Ac as m,Bc as U,Cc as a,D as V,Dc as x,Ec as h,Fd as s,Gc as A,Hc as l,Ic as o,M as I,Mc as C,Nc as _,O as S,P as n,Pc as v,S as O,Tc as d,X as g,Yc as $,_ as f,f as T,gc as j,n as c,yc as P,zc as R}from"./chunk-IFJN5CDK.js";function M(e){var r=Object.create(Object.getPrototypeOf(e));return Object.assign(r,e),r}function k(e,r,t){t===void 0&&(t=e.name);var i=M(e);return i.validate=r,i.decode=function(p){return r(p,_(i))},i.name=t,i}function y(e,r,t){return t===void 0&&(t="withFallback("+e.name+")"),k(e,function(i,p){return P(function(){return m(r)})(e.validate(i,p))},t)}var q=o({Key:a,Value:a}),D=o({Id:a,Settings:C(l(q))}),b=d.pipe(o({mail:y(h,!1),gui:y(h,!1),phoneMobile:y(h,!1)})),E=new U("NotificationTypesInactive",e=>Array.isArray(e)&&e.every(r=>typeof r=="string"),(e,r)=>typeof e=="string"?m(e.split(";").filter(Boolean)):R(e,r),e=>e.join(";")),z=function(e){return e.Grid="grid",e.List="list",e}(z||{}),w=d.pipe(o({presenceControl:A({grid:null,list:null})})),Q=o({eventId:v(x),group:v(F.props.Key)}),N=d.pipe(C(l(Q))),Y=o({AccessInfo:o({Roles:l(a),Permissions:l(a)})});var L=(()=>{class e extends G{constructor(t,i){super(t,i,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)),c(({AccessInfo:t})=>t))}static{this.\u0275fac=function(i){return new(i||e)(f(j),f($))}}static{this.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var tt=100,H="presenceControlViewMode",W="presenceControlGroupView",B="notification",J="notificationTypesInactive",vt=(()=>{class e{constructor(t){this.settingsRestService=t,this.refetch$=new T,this.settings$=this.refetch$.pipe(S(null),V(tt),n(()=>this.settingsRestService.getUserSettingsCst()),c(i=>i.Settings),I(1)),this.accessInfo$=this.settingsRestService.getAccessInfo().pipe(I(1))}refetch(){this.refetch$.next()}getSetting(t){return this.settings$.pipe(c(i=>i.find(p=>p.Key===t)?.Value??null))}saveSetting(t,i){return this.settingsRestService.updateUserSettingsCst(this.buildSettings(t,i)).pipe(O(()=>this.refetch$.next()))}getPresenceControlViewMode(){return this.getSetting(H).pipe(u('{"presenceControl":"grid"}'),n(s(w)),c(({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(c(({Roles:t,Permissions:i})=>[...t,...i]),S(null))}buildSettings(t,i){return{Id:"Cst",Settings:[{Key:t,Value:i}]}}static{this.\u0275fac=function(i){return new(i||e)(f(L))}}static{this.\u0275prov=g({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();export{z as a,vt as b}; diff --git a/public/apps/webapp-schulverwaltung/chunk-NYTDIO5P.js b/public/apps/webapp-schulverwaltung/chunk-NYTDIO5P.js deleted file mode 100644 index 2ea88289..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-NYTDIO5P.js +++ /dev/null @@ -1 +0,0 @@ -import{t as B,x as z}from"./chunk-C56YGDXA.js";import{$ as I,$a as $,$c as w,Ab as s,Bb as d,Bd as D,C as v,G as g,Ga as y,Gd as H,Ha as E,Hd as K,I as f,Ia as p,O as _,Sa as r,Sb as P,Ta as o,Vb as k,Ya as O,Yc as F,_a as b,dd as N,f as m,ga as T,ha as M,ia as S,jb as c,m as h,rd as V,tb as x,ua as l,w as C}from"./chunk-XTHSYQMN.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-OFB4XAK2.js b/public/apps/webapp-schulverwaltung/chunk-OFB4XAK2.js new file mode 100644 index 00000000..a4d01bb2 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-OFB4XAK2.js @@ -0,0 +1 @@ +import{Cc as t,Dc as n,Ic as o,Kc as r}from"./chunk-IFJN5CDK.js";var i=o({Key:r([n,t]),Value:t});export{i as a}; diff --git a/public/apps/webapp-schulverwaltung/chunk-PSXDSPKS.js b/public/apps/webapp-schulverwaltung/chunk-OGCDITJ2.js similarity index 52% rename from public/apps/webapp-schulverwaltung/chunk-PSXDSPKS.js rename to public/apps/webapp-schulverwaltung/chunk-OGCDITJ2.js index 3c9d74eb..3690d396 100644 --- a/public/apps/webapp-schulverwaltung/chunk-PSXDSPKS.js +++ b/public/apps/webapp-schulverwaltung/chunk-OGCDITJ2.js @@ -1,2 +1,2 @@ -import{v as b}from"./chunk-C56YGDXA.js";import{a as g}from"./chunk-UX5TA32W.js";import{A as f,Fd as E,_ as i,ac as p,cc as m,j as t,l as u,qc as d}from"./chunk-XTHSYQMN.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}; +import{v as b}from"./chunk-LGOOC47H.js";import{a as g}from"./chunk-B6WYZ7BT.js";import{$ as i,B as f,Id as E,dc as p,fc as d,k as t,m as u,tc as m}from"./chunk-IFJN5CDK.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(m),s=i(g),a=i(E);return r=>{if(r instanceof d&&!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 v(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 v(r){let c=a.instant("global.rest-errors.conflict-message"),l=H(r);s.error(l.length>0?l.join(` +`):c,a.instant("global.rest-errors.conflict-title"))}function H(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-OOFOFPYV.js b/public/apps/webapp-schulverwaltung/chunk-OOFOFPYV.js deleted file mode 100644 index f451bf81..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-OOFOFPYV.js +++ /dev/null @@ -1 +0,0 @@ -import{a as oi}from"./chunk-MGID7RWQ.js";import{a as di,b as pi}from"./chunk-RQFEXCIP.js";import{a as mi}from"./chunk-4EXGKTN3.js";import{a as ai}from"./chunk-JV3CBBGP.js";import"./chunk-U4HODSW3.js";import{a as tt,b as zt,c as qt,d as Yt,e as Kt,f as We,g as ze,h as Jt,i as Qt,j as Xt,k as Zt,l as ei,m as Ie,o as ti,p as me,s as ni,u as ri,v as qe}from"./chunk-W7ASLXRM.js";import"./chunk-PSXDSPKS.js";import"./chunk-C7XT5XXE.js";import"./chunk-YMJC6QZX.js";import{a as Nt}from"./chunk-Y4QYVF5K.js";import"./chunk-HII3S2DL.js";import{a as li}from"./chunk-K3EEKOGY.js";import{a as ci}from"./chunk-XLPJMZ3E.js";import"./chunk-24AFRN2G.js";import{a as Wt,d as ii}from"./chunk-RFO4NYUO.js";import"./chunk-5RDJZAUT.js";import"./chunk-DB66EACG.js";import{P as Vt,Y as si,t as jt}from"./chunk-ZK2MNT7Z.js";import{a as Ce,c as At,e as ye}from"./chunk-AW7CSGKI.js";import{a as Ut,b as Ue}from"./chunk-FTDG26ID.js";import{a as Q,b as Ht,c as Se}from"./chunk-SOHFFTKU.js";import{f as Ot,g as Gt,i as $t,j as Ft,p as Ve,u as Ne}from"./chunk-C56YGDXA.js";import{a as He}from"./chunk-UX5TA32W.js";import{$ as C,$a as u,$c as De,A as ot,Ab as l,B as dt,Bb as c,Bd as Dt,C as lt,Cb as G,E as ne,Eb as se,Fd as ie,G as K,Ga as f,Gb as bt,Gd as k,Hd as P,I as Ge,Ia as p,Id as Lt,J as pt,Ja as re,L as J,N as ct,O as D,Q as de,Qb as ae,Rb as ce,Sa as o,Sb as R,Ta as d,Ua as E,Va as W,Vb as j,Vc as _e,W as ge,Wa as z,Wb as $e,Ya as M,Yc as Be,Z as U,_a as _,_c as xe,a as B,ab as ht,ad as yt,b as H,ba as mt,bb as vt,ca as ut,cb as le,dc as Ct,dd as St,e as ee,ed as It,f as L,fd as Le,g as Ze,ga as fe,gd as Tt,ha as I,ia as T,ib as A,id as wt,jb as m,jd as Et,k as Y,ka as gt,kb as x,l as at,lb as h,m as b,mb as et,n as te,nd as Ae,oc as ve,od as je,pc as Fe,pd as kt,qa as ft,qc as Re,qd as Pt,ra as X,rc as oe,rd as be,sb as pe,sd as Mt,ta as ke,tb as y,ua as a,ub as _t,v as Oe,va as v,vb as O,w as Ee,wb as Pe,xb as he,yd as Rt,zb as xt,zd as Bt}from"./chunk-XTHSYQMN.js";var Ji=i=>[i,"tests"];function Qi(i,n){if(i&1&&(o(0,"span"),m(1),l(2,"date"),E(3,"wbr"),m(4),l(5,"date"),d()),i&2){let s=u();a(),h("",G(2,2,s.event.dateFrom,"dd.MM.yyyy"),"\u2013"),a(3),x(G(5,5,s.event.dateTo,"dd.MM.yyyy"))}}function Xi(i,n){if(i&1&&(o(0,"a",10)(1,"i",11),m(2,"arrow_right_alt"),d(),o(3,"span",12),m(4),d()()),i&2){let s=u(2);p("routerLink",O(2,Ji,s.event.id)),a(4),x(s.event.evaluationText)}}function Zi(i,n){if(i&1&&(o(0,"a",13)(1,"i",11),m(2,"arrow_right_alt"),d(),o(3,"span",12),m(4),d()()),i&2){let s=u(2);p("href",s.event.evaluationLink,ke),a(4),h("",s.event.evaluationText," ")}}function en(i,n){if(i&1&&(o(0,"div",7),f(1,Xi,5,4,"a",8)(2,Zi,5,2,"a",9),d()),i&2){let s=u();a(),p("ngIf",!s.event.evaluationLink),a(),p("ngIf",s.event.evaluationLink)}}var ui=(()=>{let n=class n{constructor(){this.withRatings=!0}};n.\u0275fac=function(t){return new(t||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(t,r){t&1&&(o(0,"div",0)(1,"a",1),m(2),d()(),o(3,"div",2),f(4,Qi,6,8,"span",3),d(),o(5,"div",4),m(6),o(7,"span",5),m(8),l(9,"translate"),d()(),f(10,en,3,2,"div",6)),t&2&&(a(),p("href",r.event.detailLink,ke),a(),x(r.event.designation),a(2),p("ngIf",r.event.dateFrom&&r.event.dateTo),a(2),h(" ",r.event.studentCount," "),a(2),x(c(9,6,r.event.studentCount===1?"events.registration":"events.registrations")),a(2),p("ngIf",r.withRatings&&r.event.evaluationText))},dependencies:[R,oe,$e,P,k],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 i=n;return i})();var tn=10300,nn=10260,rn=10250,sn=14030,an=10350;function Ye(i){let{HasEvaluationStarted:n,EvaluationUntil:s,HasTestGrading:e}=i.EvaluationStatusRef;if(n===!0&&(i.StatusId===sn||i.StatusId===an))return{value:Z.Rating};if(n===!0&&e===!1){if(s)return{value:Z.RatingUntil};if(i.StatusId===tn)return{value:Z.IntermediateRating}}return n===!1&&e===!0&&i.StatusId!==nn&&i.StatusId!==rn?{value:Z.Tests}:n===!0&&e===!0?s?{value:Z.Tests,label:Z.RatingUntil}:{value:Z.Tests,label:Z.IntermediateRating}:null}function gi(i){return i.EvaluationStatusRef.HasEvaluationStarted===!0}function fi(i){return i.EvaluationStatusRef.HasReviewOfEvaluationStarted===!0&&!!i.FinalGrades?.length}function Ke(i){let n=i.Classes?i.Classes.map(s=>s.Number).join(", "):null;return n?i.Designation+", "+n:i.Designation}var Z=function(i){return i.Rating="rating",i.RatingUntil="rating-until",i.IntermediateRating="intermediate-rating",i.Tests="add-tests",i}(Z||{}),Te=(()=>{let n=class n{constructor(e,t,r,g,w,S){this.coursesRestService=e,this.eventsRestService=t,this.studyClassRestService=r,this.loadingService=g,this.translate=w,this.settings=S,this.loading$=this.loadingService.loading$,this.searchFields$=new L(["designation"]),this.searchSubject$=new L(""),this.search$=this.searchSubject$.asObservable(),this.roles$=new L(null),this.isClassTeacher$=this.roles$.pipe(b(F=>Nt(F,"ClassTeacherRole")),J(1)),this.withStudyCourses$=new L(!1),this.unratedCourses$=this.roles$.pipe(D(this.loadUnratedCourses.bind(this)),J(1)),this.studyCourses$=this.withStudyCourses$.pipe(D(this.loadStudyCourses.bind(this)),J(1)),this.formativeAssessments$=this.isClassTeacher$.pipe(D(this.loadFormativeAssessments.bind(this)),J(1)),this.studyClasses$=this.isClassTeacher$.pipe(D(this.loadStudyClasses.bind(this)),J(1)),this.events$=this.getEvents().pipe(J(1)),this.filteredEvents$=te([this.events$,this.searchFields$,this.search$]).pipe(b(ye(di)))}setSearch(e){this.searchSubject$.next(e)}setRoles(e){this.roles$.next(e)}setWithStudyCourses(e){this.withStudyCourses$.next(e)}setSearchFields(e){this.searchFields$.next(e)}getEntries(e=!1){return this.filteredEvents$.pipe(b(t=>e?t.filter(r=>r.evaluationText):t))}getEvents(){return this.loadingService.load(te([this.unratedCourses$,this.studyCourses$,this.formativeAssessments$,this.studyClasses$]),{stopOnFirstValue:!0}).pipe(b(ye(this.createAndSortEvents.bind(this))))}loadUnratedCourses(e){return this.coursesRestService.getExpandedCourses(e).pipe(b(t=>t.filter(r=>!fi(r))))}loadStudyCourses(e){return e?this.eventsRestService.getStudyCourseEvents():Y([])}loadFormativeAssessments(e){return e?this.studyClassRestService.getActiveFormativeAssessments():Y([])}loadStudyClasses(e){return e?this.studyClassRestService.getActive():Y([])}createAndSortEvents(e,t,r,g){let w=g.filter(S=>!r.map(F=>F.Id).includes(S.Id));return[...this.createFromCourses(e),...this.createFromStudyCourses(t),...this.createFromAssessments(r),...this.createFromStudyClasses(w)].sort((S,F)=>S.designation.localeCompare(F.designation))}createFromCourses(e){return e.map(t=>{let r=Ye(t);return{id:t.Id,designation:Ke(t),detailLink:this.buildLink(t.Id,"eventdetail"),studentCount:t.AttendanceRef.StudentCount||0,dateFrom:t.DateFrom,dateTo:t.DateTo,state:r?.value||null,evaluationText:this.getEvaluationText(r,t.EvaluationStatusRef.EvaluationUntil),evaluationLink:this.getEvaluationLink(r?.value,t)}})}createFromStudyCourses(e){return e.map(t=>({id:t.Id,designation:t.Designation,detailLink:this.buildLink(t.Id,"eventdetail"),studentCount:t.StudentCount,state:null}))}createFromAssessments(e){return this.createFromStudyClasses(e).map(r=>H(B({},r),{state:Z.Rating,evaluationText:this.translate.instant("events.state.rating"),evaluationLink:this.buildLink(r.id,"evaluation")}))}createFromStudyClasses(e){return e.map(t=>({id:t.Id,designation:t.Number,detailLink:this.buildLink(t.Id,"eventdetail"),studentCount:t.StudentCount,state:null}))}getEvaluationText(e,t){let r=e?.label||e?.value;return r?this.translate.instant(`events.state.${r}`)+(r===Z.RatingUntil?` ${t?jt(t,"dd.MM.yyyy"):""}`:""):""}getEvaluationLink(e,t){return e&&e!==Z.Tests?this.buildLink(t.Id,"evaluation"):null}buildLink(e,t){return(this.settings.eventlist[t]??"").replace(":id",String(e))}};n.\u0275fac=function(t){return new(t||n)(U(me),U(oi),U(mi),U(Ue),U(ie),U(_e))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"});let i=n;return i})();var ln=i=>({events:i});function pn(i,n){i&1&&(o(0,"div",12),m(1),l(2,"translate"),d()),i&2&&(a(),h(" ",c(2,1,"events.rating")," "))}function cn(i,n){if(i&1&&E(0,"bkd-events-list-entry",13),i&2){let s=n.$implicit,e=u(4);p("event",s)("withRatings",e.withRatings)}}function mn(i,n){if(i&1&&(W(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,pn,3,3,"div",10),d(),f(12,cn,1,2,"bkd-events-list-entry",11),z()),i&2){let s=u(2).bkdLet,e=u();a(3),x(c(4,5,"events.designation")),a(3),x(c(7,7,"events.date")),a(3),h(" ",c(10,9,"events.registrations")," "),a(2),p("ngIf",e.withRatings),a(),p("ngForOf",s.events)}}function un(i,n){i&1&&(o(0,"p",14),m(1),l(2,"translate"),d()),i&2&&(a(),x(c(2,1,"events.no-events")))}function gn(i,n){if(i&1&&(W(0),f(1,mn,13,11,"ng-container",5)(2,un,3,3,"ng-template",null,1,se),z()),i&2){let s=A(3),e=u().bkdLet;a(),p("ngIf",(e.events==null?null:e.events.length)>0)("ngIfElse",s)}}function fn(i,n){i&1&&E(0,"bkd-spinner")}function hn(i,n){if(i&1){let s=M();o(0,"div",3)(1,"bkd-resettable-input",4),l(2,"async"),l(3,"translate"),l(4,"translate"),_("valueChange",function(t){I(s);let r=u();return T(r.state.setSearch(t))}),d(),f(5,gn,4,2,"ng-container",5),l(6,"async"),f(7,fn,1,0,"ng-template",null,0,se),d()}if(i&2){let s=n.bkdLet,e=A(8),t=u();a(),p("value",c(2,6,t.state.search$))("placeholder",c(3,8,"events.search-by"))("label",c(4,10,"events.search"))("disabled",!s.events),a(4),p("ngIf",c(6,12,t.state.loading$)===!1)("ngIfElse",e)}}var hi=["designation"],vn=[...hi,"evaluationText"],Je=(()=>{let n=class n{constructor(e,t){this.state=e,this.storage=t,this.withStudyCourses=!1,this.withRatings=!0,this.state.setRoles(this.storage.getPayload()?.roles??null)}ngOnChanges(e){e.withStudyCourses&&this.state.setWithStudyCourses(e.withStudyCourses.currentValue),e.withRatings&&this.state.setSearchFields(e.withRatings.currentValue?vn:hi)}};n.\u0275fac=function(t){return new(t||n)(v(Te),v(Lt))},n.\u0275cmp=C({type:n,selectors:[["bkd-events-list"]],inputs:{withStudyCourses:"withStudyCourses",withRatings:"withRatings"},standalone:!0,features:[fe,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(t,r){t&1&&(f(0,hn,9,14,"div",2),l(1,"async")),t&2&&p("bkdLet",O(3,ln,c(1,1,r.state.getEntries(r.withRatings))))},dependencies:[Q,pi,R,ce,Se,j,P,k,ui],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 i=n;return i})();var vi=(()=>{let n=class n{constructor(){}};n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=C({type:n,selectors:[["bkd-events-current"]],standalone:!0,features:[y],decls:4,vars:5,consts:[[3,"withStudyCourses","withRatings"]],template:function(t,r){t&1&&(o(0,"h1"),m(1),l(2,"translate"),d(),E(3,"bkd-events-list",0)),t&2&&(a(),x(c(2,3,"events.current.title")),a(2),p("withStudyCourses",!0)("withRatings",!1))},dependencies:[Je,P,k]});let i=n;return i})();var _i=(()=>{let n=class n{constructor(){}};n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=C({type:n,selectors:[["bkd-events-tests"]],standalone:!0,features:[y],decls:4,vars:4,consts:[[3,"withRatings"]],template:function(t,r){t&1&&(o(0,"h1"),m(1),l(2,"translate"),d(),E(3,"bkd-events-list",0)),t&2&&(a(),x(c(2,2,"events.title")),a(2),p("withRatings",!0))},dependencies:[Je,P,k]});let i=n;return i})();var xi=(()=>{let n=class n{constructor(){}};n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=C({type:n,selectors:[["bkd-events"]],standalone:!0,features:[pe([Te,Vt]),y],decls:1,vars:0,template:function(t,r){t&1&&E(0,"router-outlet")},dependencies:[Fe]});let i=n;return i})();function bi(i){return n=>{let s=Number(n.value);return s<=i?{greaterThan:{value:s,greaterThanValue:i}}:null}}function nt(i){return i.map(({finalGrade:n})=>n).filter(_n)}function _n(i){return i!==null}function Si(i,n,s,e){return i?.map(t=>({student:t,finalGrade:bn(t,s,e),grades:xn(t,n)}))}function xn(i,n){return n.map(s=>{if(s.Results===void 0||s.Results?.length===0)return{kind:"no-result",test:s};let e=s.Results?.find(t=>t.StudentId===i.Id);return e!==void 0?{kind:"grade",result:e,test:s}:{kind:"no-result",test:s}})}function bn(i,n,s){let e=n.find(r=>r.StudentId===i.Id),t=s.find(r=>r.StudentId===i.Id);return e?{id:e.Id,average:Cn(e),finalGradeId:e.GradeId,freeHandGrade:t?Number(t.Grade):null,canGrade:e.CanGrade}:null}function Cn(i){return i.AverageTestResult===0?null:i.AverageTestResult}var Ii=({key:i,ascending:n})=>(s,e)=>{let t=n?1:-1;switch(i){case"FullName":return t*s.student.FullName.localeCompare(e.student.FullName);case"FinalGrade":return!s.finalGrade?.finalGradeId||!e.finalGrade?.finalGradeId?t*-1:t*Ci(s.finalGrade.finalGradeId,e.finalGrade.finalGradeId);case"TestsMean":return!s.finalGrade?.average||!e.finalGrade?.average?t*-1:t*Ci(s.finalGrade.average,e.finalGrade.average)}return t*yn(i,s,e)},yn=(i,n,s)=>{let e=n.grades.filter(yi).find(r=>r.test.Id===i.Id),t=s.grades.filter(yi).find(r=>r.test.Id===i.Id);return i.IsPointGrading&&e?.result.GradeId===t?.result.GradeId?(e?.result.Points??0)-(t?.result.Points??0):((e?.result.GradeId??Number.POSITIVE_INFINITY)-(t?.result.GradeId??Number.POSITIVE_INFINITY))*-1};function Ci(i,n){return i===n?0:is.average).filter(s=>s!=null&&s!==0).map(Number);return tt(n)}function Ei(i,n){let s=i.map(t=>t.freeHandGrade).filter(t=>!!t),e=i.map(t=>t.finalGradeId).filter(t=>t!==null).map(t=>n.find(r=>r.Key===t)).filter(t=>t!==void 0).map(t=>t?.Value).filter(t=>t!==void 0).map(Number).filter(t=>!isNaN(t));return tt([...e,...s])}function rt(i,n){return[...n.filter(s=>s.Id!==i?.Id),i].filter(s=>s!=null)}function ki({id:i,selectedGradeId:n},s){return s.map(e=>e.Id!==i?e:H(B({},e),{GradeId:n}))}function Pi(i,n){switch(n.type){case"reset":return n.payload;case"updateResult":return i?H(B({},i),{Tests:qt(n.payload.testResult,i.Tests||[],n.payload.ignore),Gradings:n.payload.grading?rt(n.payload.grading,i.Gradings||[]):i.Gradings}):null;case"deleteResult":return i?H(B({},i),{Tests:Yt(n.payload.testId,n.payload.studentId,i.Tests||[]),Gradings:n.payload.grading?rt(n.payload.grading,i.Gradings||[]):i.Gradings||[]}):null;case"toggle-test-state":return i?H(B({},i),{Tests:Kt(n.payload,i.Tests||[])}):null;case"final-grade-overwritten":return i?H(B({},i),{Gradings:ki({id:n.payload.id,selectedGradeId:n.payload.selectedGradeId},i.Gradings||[])}):null;case"replace-grades":return i?H(B({},i),{Gradings:n.payload}):null;case"delete-test":return i?H(B({},i),{Tests:Jt(n.payload,i.Tests||[])}):null;default:return i}}var Mi=(()=>{let n=class n extends Ht{constructor(e,t){super(e,t,ti,"Gradings")}updateGrade(e,t){return this.http.put(`${this.baseUrl}/${e}`,{GradeId:t}).pipe(b(()=>e))}};n.\u0275fac=function(t){return new(t||n)(U(Ct),U(_e))},n.\u0275prov=ge({token:n,factory:n.\u0275fac,providedIn:"root"});let i=n;return i})();var st={onlyMine:!1,hidePublished:!1},V=(()=>{let n=class n{constructor(e,t,r,g,w){this.coursesRestService=e,this.gradingScalesRestService=t,this.gradingsRestService=r,this.loadingService=g,this.sortService=w,this.action$=new Ze(1),this.loading$=this.loadingService.loading$,this._courseId$=new Ze(1),this.courseId$=this._courseId$.asObservable(),this.fetchedCourse$=this._courseId$.pipe(D(S=>this.loadingService.load(this.coursesRestService.getExpandedCourse(S))),J(1)),this.course$=Oe(this.action$,this.fetchedCourse$.pipe(Ee(Ne),b(S=>({type:"reset",payload:S})))).pipe(pt(Pi,null),Ee(Ne),J(1)),this.tests$=this.course$.pipe(b(S=>S.Tests||[]),b(Qt)),this.hasTests$=this.tests$.pipe(b(S=>S.length>0)),this.filterSubject$=new L(st),this.filter$=this.filterSubject$.asObservable(),this.expandedHeaderSubject$=new L(!1),this.expandedHeader$=this.expandedHeaderSubject$.asObservable(),this.filteredTests$=te([this.tests$,this.filter$]).pipe(b(([S,F])=>S.filter(q=>(!F.onlyMine||q.IsOwner)&&(!F.hidePublished||!q.IsPublished)))),this.sorting$=this.sortService.sorting$,this.studentGrades$=te([this.course$,this.filteredTests$,this.sorting$]).pipe(b(ye(this.toStudentGrades.bind(this)))),this.canSetFinalGrade$=this.course$.pipe(b(gi)),this.gradingScaleIds$=this.course$.pipe(b(S=>Bt([...(S.Tests??[]).map(F=>F.GradingScaleId),S.GradingScaleId]).filter(Ne)),K(Rt),J(1)),this.gradingScales$=this.gradingScaleIds$.pipe(D(S=>this.gradingScalesRestService.getGradingScales(S)),J(1)),this.UNDEFINED_GRADINGSCALE_ID=-1,this.gradingScalesOptions$=this.gradingScales$.pipe(b(S=>S.map(F=>{let q=F?.Id||this.UNDEFINED_GRADINGSCALE_ID,we=F?.Grades.map(Me=>({Key:Me.Id,Value:Me.Designation}))||[];return{id:q,options:we}}).reduce((F,q)=>H(B({},F),{[q.id]:q.options}),{})),J(1)),this.meanOfStudentGradesForCourse$=this.studentGrades$.pipe(b(S=>wi(nt(S)))),this.meanOfFinalGradesForCourse$=te([this.gradingScalesOptions$,this.studentGrades$]).pipe(D(ye(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,t=[],r){return Si(e.ParticipatingStudents??[],t,e.Gradings??[],e.FinalGrades??[]).sort(Ii(r))}setSorting(e){this.sortService.setSorting(e)}getSortingChar$(e){return this.sortService.getSortingChar$(e)}sortBy(e){this.sortService.toggleSorting(e)}toggleHeader(e){this.expandedHeaderSubject$.next(e)}optimisticallyUpdateGrade(e){return this.course$.pipe(ne(1),b(t=>{let{originalResult:r,updatedResult:g}=this.buildOptimisticResultUpdate(t,e);return this.updateTestResult(g,null),r}))}saveGrade(e,t){this.course$.pipe(ne(1),D(r=>this.coursesRestService.updateTestResult(r.Id,e).pipe(ot(g=>(t&&this.updateTestResult(B({},t),null),at(()=>g)))))).subscribe(({testResult:r,grading:g})=>this.updateOrDeleteTestResult(e.testId,e.studentId,r,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:t}){this.gradingsRestService.updateGrade(e,t).subscribe(()=>{this.action$.next({type:"final-grade-overwritten",payload:{id:e,selectedGradeId:t}})})}setAveragesAsFinalGrades(e){this.coursesRestService.setAverageAsFinalGrade(e).subscribe(t=>this.action$.next({type:"replace-grades",payload:t.Gradings}))}buildOptimisticResultUpdate(e,t){let r=zt(e,t.testId,t.studentId),g=r?B({},r):{Id:"",TestId:t.testId,StudentId:t.studentId,CourseRegistrationId:0,GradeId:null,GradeValue:null,GradeDesignation:null,Points:null};return g.GradeId="gradeId"in t?t.gradeId:r?.GradeId??null,g.Points="points"in t?t.points:r?.Points??null,{originalResult:r,updatedResult:g}}updateOrDeleteTestResult(e,t,r,g,w){r?this.updateTestResult(r,g,w):this.deleteTestResult(e,t,g)}updateTestResult(e,t,r){this.action$.next({type:"updateResult",payload:{testResult:e,grading:t??null,ignore:r}})}deleteTestResult(e,t,r){this.action$.next({type:"deleteResult",payload:{testId:e,studentId:t,grading:r}})}toggleTestPublishedState(e){this.action$.next({type:"toggle-test-state",payload:e})}gradingOptions$(e){return e===null?Y(null):this.gradingScalesOptions$.pipe(b(t=>t[e]),J(1))}meanOfOverwrittenGradesForCourse(e,t){return this.course$.pipe(b(r=>{if(r.GradingScaleId===null||e[r.GradingScaleId]===void 0)return null;let g=e[r.GradingScaleId];return Ei(nt(t),g)}))}};n.\u0275fac=function(t){return new(t||n)(U(me),U(ni),U(Mi),U(Ue),U(ci))},n.\u0275prov=ge({token:n,factory:n.\u0275fac});let i=n;return i})();var Tn=i=>({formGroup:i}),wn=i=>["/events",i,"tests"];function En(i,n){if(i&1&&(o(0,"div",31),m(1),l(2,"translate"),d()),i&2){let s=n.$implicit;a(),h(" ",G(2,1,"global.validation-errors."+s.error,s.params)," ")}}function kn(i,n){if(i&1&&(o(0,"div",31),m(1),l(2,"translate"),d()),i&2){let s=n.$implicit;a(),h(" ",G(2,1,"global.validation-errors."+s.error,s.params)," ")}}function Pn(i,n){if(i&1&&(o(0,"div",31),m(1),l(2,"translate"),d()),i&2){let s=n.$implicit;a(),h(" ",G(2,1,"global.validation-errors."+s.error,s.params)," ")}}function Mn(i,n){if(i&1&&(o(0,"div",31),m(1),l(2,"translate"),d()),i&2){let s=n.$implicit;a(),h(" ",G(2,1,"global.validation-errors."+s.error,s.params)," ")}}function On(i,n){if(i&1&&(o(0,"div",31),m(1),l(2,"translate"),d()),i&2){let s=n.$implicit;a(),h(" ",G(2,1,"global.validation-errors."+s.error,s.params)," ")}}function Gn(i,n){if(i&1&&(W(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,Mn,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,On,3,4,"div",8),l(21,"async"),d()()()(),o(22,"div",39),gt(),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()()(),z()),i&2){let s,e,t=u(3);a(5),x(c(6,11,"tests.form.max-points")),a(3),re("is-invalid",((s=c(9,13,t.maxPointsErrors$))==null?null:s.length)||!1),a(2),p("ngForOf",c(11,15,t.maxPointsErrors$)),a(5),x(c(16,17,"tests.form.max-points-adjusted")),a(3),re("is-invalid",((e=c(19,19,t.maxPointsAdjustedErrors$))==null?null:e.length)||!1),a(2),p("ngForOf",c(21,21,t.maxPointsAdjustedErrors$)),a(5),h(" ",c(26,23,"tests.form.math.grade")," "),a(7),h(" ",c(33,25,"tests.form.math.points")," "),a(7),x(c(40,27,"tests.form.math.max-points"))}}function $n(i,n){i&1&&(o(0,"div",40)(1,"span",41),m(2,"Loading..."),d()())}function Fn(i,n){if(i&1){let s=M();o(0,"form",3),_("ngSubmit",function(){I(s);let t=u(2);return T(t.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,En,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(){I(s);let t=A(20);return T(t.toggle())}),d(),f(23,kn,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,Pn,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,Gn,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,$n,3,0,"div",30),d()()()}if(i&2){let s,e,t,r=u().bkdLet,g=u();p("formGroup",r.formGroup),a(4),x(c(5,29,"tests.form.designation")),a(2),re("is-invalid",((s=c(7,31,g.designationErrors$))==null?null:s.length)||!1),p("placeholder",c(8,33,"tests.form.designation-placeholder")),a(3),p("ngForOf",c(10,35,g.designationErrors$)),a(4),x(c(14,37,"tests.form.date")),a(3),p("id",g.componentId),a(3),re("is-invalid",((e=c(21,39,g.dateErrors$))==null?null:e.length)||!1),p("placeholder",c(22,41,"shared.date-select.default-placeholder")),a(4),p("ngForOf",c(24,43,g.dateErrors$)),a(4),x(c(28,45,"tests.form.weight")),a(5),x(c(33,47,"tests.form.factor")),a(3),re("is-invalid",((t=c(36,49,g.weightErrors$))==null?null:t.length)||!1),a(2),p("ngForOf",c(38,51,g.weightErrors$)),a(4),x(c(42,53,"tests.form.grading-type")),a(3),p("value",!1),a(2),x(c(47,55,"tests.form.grades")),a(3),p("value",!0),a(2),x(c(52,57,"tests.form.points")),a(2),p("ngIf",r.formGroup.get("isPointGrading").value),a(2),p("disabled",g.saving)("routerLink",O(65,wn,c(56,59,g.courseId$))),a(2),h(" ",c(58,61,"tests.form.cancel")," "),a(2),p("disabled",g.saving),a(),h(" ",c(61,63,"tests.form.save")," "),a(2),p("ngIf",g.saving)}}function Rn(i,n){if(i&1&&(W(0),f(1,Fn,63,67,"form",2),z()),i&2){let s=n.bkdLet;a(),p("ngIf",s.formGroup)}}var Qe=(()=>{let n=class n{constructor(e,t,r){this.fb=e,this.translate=t,this.testStateService=r,this.test=null,this.saving=!1,this.save=new X,this.componentId=Dt("bkd-tests-edit-form"),this.formGroup=this.createFormGroup(),this.submitted$=new L(!1),this.destroy$=new ee,this.designationErrors$=Ce(Y(this.formGroup),this.submitted$,"designation"),this.dateErrors$=Ce(Y(this.formGroup),this.submitted$,"date"),this.maxPointsErrors$=Ce(Y(this.formGroup),this.submitted$,"maxPoints"),this.maxPointsAdjustedErrors$=Ce(Y(this.formGroup),this.submitted$,"maxPointsAdjusted"),this.weightErrors$=Ce(Y(this.formGroup),this.submitted$,"weight"),this.courseId$=this.testStateService.courseId$}ngOnInit(){this.test&&this.setInitialValues(this.test),At(Y(this.formGroup),"isPointGrading").pipe(de(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:["",xe.required],date:[null,xe.required],weight:[1,xe.compose([xe.required,bi(0)])],isPointGrading:[!1],maxPoints:[{value:null,disabled:!0},xe.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"),t=this.formGroup.get("maxPointsAdjusted");this.formGroup.get("isPointGrading")?.value?(e?.enable(),t?.enable()):(e?.reset({value:this.test?.MaxPoints,disabled:!0}),t?.reset({value:this.test?.MaxPointsAdjusted,disabled:!0}))}};n.\u0275fac=function(t){return new(t||n)(v(Pt),v(ie),v(V))},n.\u0275cmp=C({type:n,selectors:[["bkd-tests-edit-form"]],inputs:{test:"test",saving:"saving"},outputs:{save:"save"},standalone:!0,features:[pe([{provide:Ot,useClass:Ft},{provide:Gt,useClass:li}]),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(t,r){t&1&&f(0,Rn,2,1,"ng-container",1),t&2&&p("bkdLet",O(1,Tn,r.formGroup))},dependencies:[Q,R,be,It,Be,Le,Tt,De,yt,kt,je,Ae,Mt,wt,Et,ce,$t,oe,j,P,k],styles:["#factor[_ngcontent-%COMP%], #max-points[_ngcontent-%COMP%], #max-points-adjusted[_ngcontent-%COMP%]{width:5em}"]});let i=n;return i})();var Dn=(i,n)=>({courseId:i,saving:n});function Ln(i,n){if(i&1){let s=M();o(0,"div",1)(1,"bkd-tests-edit-form",2),_("save",function(t){I(s);let r=u();return T(r.save(t))}),d()()}if(i&2){let s=n.bkdLet;a(),p("saving",s.saving)}}var Gi=(()=>{let n=class n{constructor(e,t,r,g,w){this.route=e,this.courseService=t,this.toastService=r,this.translate=g,this.router=w,this.saving$=new L(!1),this.courseId$=this.route.paramMap.pipe(b(S=>Number(S.get("id"))),K())}save(e){this.saving$.next(!0);let{designation:t,date:r,weight:g,isPointGrading:w,maxPoints:S,maxPointsAdjusted:F}=e;this.courseId$.pipe(D(q=>this.courseService.add(q,r,t,g,w,S,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(t){return new(t||n)(v(ve),v(me),v(He),v(ie),v(Re))},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(t,r){t&1&&(o(0,"h1"),m(1),l(2,"translate"),d(),f(3,Ln,2,1,"div",0),l(4,"async"),l(5,"async")),t&2&&(a(),x(c(2,2,"tests.add-title")),a(2),p("bkdLet",Pe(8,Dn,c(4,4,r.courseId$),c(5,6,r.saving$))))},dependencies:[Q,Qe,j,P,k]});let i=n;return i})();var $i=(()=>{let n=class n{constructor(e){this.activeModal=e}get canDeleteTest(){return(this.test?.Results?.filter(t=>t.GradeId!==null||t.GradeValue!==null||t.Points!==null)||[]).length===0}};n.\u0275fac=function(t){return new(t||n)(v(Ve))},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(t,r){t&1&&(o(0,"div",0)(1,"p",1),m(2),l(3,"translate"),d()(),o(4,"div",2)(5,"button",3),_("click",function(){return r.activeModal.dismiss()}),o(6,"span",4),m(7),l(8,"translate"),d()(),o(9,"button",5),_("click",function(){return r.activeModal.close(r.canDeleteTest?r.test:null)}),o(10,"span",6),m(11),l(12,"translate"),d()()()),t&2&&(a(2),h(" ",c(3,4,r.canDeleteTest?"tests.form.confirm":"tests.form.delete-not-allowed")," "),a(3),p("hidden",!r.canDeleteTest),a(2),h(" ",c(8,6,"tests.dialog.no")," "),a(4),h(" ",c(12,8,r.canDeleteTest?"tests.dialog.yes":"tests.dialog.ok")," "))},dependencies:[P,k]});let i=n;return i})();var Vn=(i,n,s)=>({courseId:i,test:n,saving:s}),Hn=i=>({test:i});function Nn(i,n){if(i&1){let s=M();W(0),o(1,"div",4)(2,"h1"),m(3),l(4,"translate"),d(),o(5,"button",5),_("click",function(){I(s);let t=u().bkdLet,r=u();return T(r.openDeleteModal(t.test))}),o(6,"i",6),m(7,"delete"),d()()(),o(8,"bkd-tests-edit-form",7),_("save",function(t){I(s);let r=u(2);return T(r.save(t))}),d(),z()}if(i&2){let s=u().bkdLet;a(3),h(" ",G(4,3,"tests.edit-title",O(6,Hn,s.test.Designation))," "),a(5),p("test",s.test)("saving",s.saving)}}function Un(i,n){i&1&&E(0,"bkd-spinner")}function Wn(i,n){if(i&1&&(o(0,"div",2),f(1,Nn,9,8,"ng-container",3),l(2,"async"),f(3,Un,1,0,"ng-template",null,0,se),d()),i&2){let s=A(4),e=u();a(),p("ngIf",c(2,2,e.state.loading$)===!1)("ngIfElse",s)}}var Fi=(()=>{let n=class n{constructor(e,t,r,g,w,S,F){this.state=e,this.courseService=t,this.route=r,this.toastService=g,this.translate=w,this.router=S,this.modalService=F,this.saving$=new L(!1),this.testId$=this.route.paramMap.pipe(b(q=>Number(q.get("testId"))),K()),this.test$=te([this.state.tests$,this.testId$]).pipe(b(([q,we])=>q.find(Me=>Me.Id===we)))}openDeleteModal(e){let t=this.modalService.open($i);t.componentInstance.test=e,t.result.then(r=>{r&&this.courseService.delete(e.CourseId,e.Id).subscribe(this.onDeleteSuccess.bind(this))},()=>{})}save(e){this.saving$.next(!0);let{designation:t,date:r,weight:g,isPointGrading:w,maxPoints:S,maxPointsAdjusted:F}=e;te([this.state.courseId$,this.testId$]).pipe(ne(1),D(([q,we])=>this.courseService.update(q,we,t,r,g,w,S,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(ne(1)).subscribe(e=>this.router.navigate(["events",e,"tests"]))}};n.\u0275fac=function(t){return new(t||n)(v(V),v(me),v(ve),v(He),v(ie),v(Re),v(qe))},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(t,r){t&1&&(f(0,Wn,5,4,"div",1),l(1,"async"),l(2,"async"),l(3,"async")),t&2&&p("bkdLet",he(7,Vn,c(1,1,r.state.courseId$),c(2,3,r.test$),c(3,5,r.saving$)))},dependencies:[Q,R,Qe,Se,j,P,k]});let i=n;return i})();var zn=i=>({designation:i}),Ri=(()=>{let n=class n{constructor(e){this.activeModal=e}};n.\u0275fac=function(t){return new(t||n)(v(Ve))},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(t,r){t&1&&(o(0,"div",0)(1,"p",1),m(2),l(3,"translate"),d()(),o(4,"div",2)(5,"button",3),_("click",function(){return r.activeModal.dismiss()}),m(6),l(7,"translate"),d(),o(8,"button",4),_("click",function(){return r.activeModal.close(!0)}),m(9),l(10,"translate"),d()()),t&2&&(a(2),h(" ",G(3,3,r.test.IsPublished?"tests.publishing.unpublish":"tests.publishing.publish",O(10,zn,r.test.Designation))," "),a(4),h(" ",c(7,6,"tests.publishing.cancel")," "),a(3),h(" ",c(10,8,"tests.publishing.confirm")," "))},dependencies:[P,k],encapsulation:2});let i=n;return i})();var qn=i=>({maxPoints:i});function Yn(i,n){if(i&1&&(o(0,"div",8),m(1),l(2,"translate"),d()),i&2){let s=u(2);a(),h(" ",G(2,1,"global.validation-errors.invalidPoints",O(4,qn,s.maxPoints))," ")}}function Kn(i,n){if(i&1){let s=M();o(0,"div",5)(1,"input",6,0),_("ngModelChange",function(){I(s);let t=A(2),r=u();return T(r.onPointsChange(t.value))}),d(),f(3,Yn,3,6,"div",7),d()}if(i&2){let s=A(2),e=u();a(),re("is-invalid",s.errors),le("max",e.maxPoints),le("tabindex",e.tabIndex),p("disabled",e.grade.test.IsPublished)("ngModel",e.grade.kind==="grade"?e.grade.result.Points:null),a(2),p("ngIf",s.errors)}}var Jn=1250,Bi=(()=>{let n=class n{constructor(e){this.state=e,this.maxPoints=0,this.pointsSubject$=new ee,this.gradeSubject$=new ee,this.gradingScaleDisabledSubject$=new L(!0),this.gradingScaleDisabled$=this.gradingScaleDisabledSubject$.asObservable(),this.destroy$=new ee}ngOnInit(){this.gradingScaleDisabledSubject$.next(this.disableGradingScale()),this.maxPoints=Ti(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(t=>this.state.optimisticallyUpdateGrade(t).pipe(b(r=>({params:t,originalResult:r})))),lt(Jn),de(this.destroy$)).subscribe(({params:t,originalResult:r})=>this.state.saveGrade(t,r))}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(t){return new(t||n)(v(V))},n.\u0275cmp=C({type:n,selectors:[["bkd-grade"]],inputs:{grade:"grade",student:"student",tabIndex:"tabIndex",gradeOptions:"gradeOptions"},standalone:!0,features:[fe,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(t,r){t&1&&(o(0,"div",1)(1,"div",2),f(2,Kn,4,7,"div",3),o(3,"bkd-select",4),l(4,"async"),_("valueChange",function(w){return r.onGradeChange(w)}),d()()()),t&2&&(a(2),p("ngIf",r.grade.test.IsPointGrading),a(),p("options",r.gradeOptions)("allowEmpty",!0)("value",r.grade.kind==="grade"?r.grade.result.GradeId:null)("disabled",c(4,6,r.gradingScaleDisabled$))("tabindex",r.tabIndex))},dependencies:[R,be,Be,Le,De,je,Ae,St,Ie,j,P,k],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 i=n;return i})();function Qn(i,n){if(i&1&&(o(0,"span",3),m(1),d()),i&2){let s=u();a(),x(s.calculatePointsAverage(s.test))}}var Di=(()=>{let n=class n{constructor(e){this.locale=e}calculatePointsAverage(e){return this.safeAverage(e,2,We)}calculateGradeAverage(e){return this.safeAverage(e,3,ze)}safeAverage(e,t,r){try{return ei(r(e),this.locale,t)}catch{return Xt}}};n.\u0275fac=function(t){return new(t||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(t,r){t&1&&(o(0,"div",0),f(1,Qn,2,1,"span",1),o(2,"span",2),m(3),d()()),t&2&&(a(),p("ngIf",r.test.IsPointGrading),a(2),x(r.calculateGradeAverage(r.test)))},dependencies:[R],styles:[".average-points[_ngcontent-%COMP%]{min-width:4.5em}@media (min-width: 576px){.average-points[_ngcontent-%COMP%]{min-width:6em}}"]});let i=n;return i})();var Li=(()=>{let n=class n{constructor(){this.disabled=!1,this.width="13ch",this.gradeIdSelected=new X}onGradeChange(e){this.gradeId?.valueOf()!==void 0&&this.gradeIdSelected.emit({id:this.gradeId?.valueOf(),selectedGradeId:e})}};n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=C({type:n,selectors:[["bkd-grade-select"]],inputs:{options:"options",valueId:"valueId",gradeId:"gradeId",disabled:"disabled",width:"width"},outputs:{gradeIdSelected:"gradeIdSelected"},standalone:!0,features:[y],decls:1,vars:5,consts:[["data-testid","grade-select",3,"valueChange","options","allowEmpty","value","disabled","width"]],template:function(t,r){t&1&&(o(0,"bkd-select",0),_("valueChange",function(w){return r.onGradeChange(w)}),d()),t&2&&p("options",r.options)("allowEmpty",!0)("value",r.valueId)("disabled",r.disabled)("width",r.width)},dependencies:[Ie]});let i=n;return i})();var Xn=576,Ai=(()=>{let n=class n{constructor(e,t){this.portal=e,this.state=t,this.destroy$=new ee,this.handleWindowScroll=()=>{this.updateStickyVisibility(),this.updateStickyTopOffset()},this.handleWindowResize=()=>{this.updateStickyWidth(),this.updateStickyVisibility(),this.updateStickyTopOffset()},this.handleTableScroll=()=>{this.updateStickyLeftOffset()}}ngOnInit(){te([this.state.filteredTests$,this.state.expandedHeader$]).pipe(de(this.destroy$)).subscribe(()=>setTimeout(()=>this.updateStickyWidth()))}ngAfterViewInit(){this.handleWindowScroll(),this.handleTableScroll(),this.handleWindowResize(),this.window.addEventListener("scroll",this.handleWindowScroll),this.getTableScrollContainer()?.addEventListener("scroll",this.handleTableScroll),this.window.addEventListener("resize",this.handleWindowResize)}ngOnDestroy(){this.window.removeEventListener("scroll",this.handleWindowScroll),this.getTableScrollContainer()?.removeEventListener("scroll",this.handleTableScroll),this.window.removeEventListener("resize",this.handleWindowResize)}get window(){return this.portal.window??window}getTableScrollContainer(){return document.querySelector(".table-responsive-wrapper")??null}updateStickyVisibility(){if(this.isSmallBreakpointDown())return;let e=this.inlineHeader.getTop()+this.getIframeScrollY();this.stickyHeader.shown=this.getScrollTop()>e}updateStickyTopOffset(){this.isSmallBreakpointDown()||this.stickyHeader.setTopOffset(this.portal.inIframe?this.getScrollTop():0)}updateStickyLeftOffset(){this.isSmallBreakpointDown()||this.stickyHeader.setLeftOffset(this.inlineHeader.getLeft())}updateStickyWidth(){this.isSmallBreakpointDown()||(this.stickyHeader.setWidth(this.inlineHeader.getWidth()),this.stickyHeader.setColumnWidths(this.inlineHeader.getColumnWidths()),this.stickyHeader.setStickyColumnHeights(this.inlineHeader.getStickyColumnsHeights()))}getScrollTop(){return this.window.scrollY-this.portal.getIframeTop()}getIframeScrollY(){return window.scrollY}isSmallBreakpointDown(){return window.innerWidth({"btn-primary":i,"btn-outline-secondary":n}),Vi=(()=>{let n=class n{constructor(){this.filter=st,this.filterChange=new X}showOnlyMine(){this.filterChange.next(H(B({},this.filter),{onlyMine:!0}))}showAll(){this.filterChange.next(H(B({},this.filter),{onlyMine:!1}))}onHidePublishedChange(e){let t=(e.target&&e.target instanceof HTMLInputElement&&e.target?.checked)??!1;this.filterChange.next(H(B({},this.filter),{hidePublished:t}))}};n.\u0275fac=function(t){return new(t||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(t,r){t&1&&(o(0,"div",0)(1,"button",1),_("click",function(){return r.showAll()}),m(2),l(3,"translate"),d(),o(4,"button",2),_("click",function(){return r.showOnlyMine()}),m(5),l(6,"translate"),d()(),o(7,"div",3)(8,"div",4)(9,"input",5),_("change",function(w){return r.onHidePublishedChange(w)}),d(),o(10,"label",6),m(11),l(12,"translate"),d()()()),t&2&&(a(),p("ngClass",Pe(12,ji,!r.filter.onlyMine,r.filter.onlyMine)),a(),h(" ",c(3,6,"tests.all-tests")," "),a(2),p("ngClass",Pe(15,ji,r.filter.onlyMine,!r.filter.onlyMine)),a(),h(" ",c(6,8,"tests.owned-tests")," "),a(4),p("checked",r.filter.hidePublished),a(2),h(" ",c(12,10,"tests.hide-published")," "))},dependencies:[ae,be,P,k],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 i=n;return i})();var Zn=["*"],Hi=(()=>{let n=class n{};n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=C({type:n,selectors:[["bkd-preserve-line-height"]],standalone:!0,features:[y],ngContentSelectors:Zn,decls:3,vars:0,template:function(t,r){t&1&&(ht(),o(0,"div"),vt(1),m(2,"\xA0"),d())},encapsulation:2});let i=n;return i})();var Ni=(()=>{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(t){return new(t||n)(v(ie,16))},n.\u0275pipe=ut({name:"testSummaryShort",type:n,pure:!0,standalone:!0});let i=n;return i})();var er=i=>[i,"edit"];function tr(i,n){i&1&&(o(0,"i",12),m(1,"edit"),d())}function ir(i,n){if(i&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,tr,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()()),i&2){let s=u();a(3),x(G(4,5,s.test.Date,"dd.MM.yyyy")),a(2),p("routerLink",O(10,er,s.test.Id)),a(),p("ngIf",s.test.IsOwner&&s.test.IsPublished===!1),a(2),h(" ",c(9,8,s.test)," "),a(3),x(s.test.Owner)}}function nr(i,n){if(i&1){let s=M();o(0,"div",13)(1,"a",14),l(2,"translate"),_("click",function(){I(s);let t=u();return T(t.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(){I(s);let t=u();return T(t.toggleHeader())}),d()()}if(i&2){let s=u();a(),le("title",c(2,3,"tests.edit")),a(5),x(c(7,5,"tests.published")),a(2),p("expanded",s.expanded)}}function rr(i,n){if(i&1){let s=M();o(0,"div",13)(1,"a",17),l(2,"translate"),_("click",function(){I(s);let t=u();return T(t.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(){I(s);let t=u();return T(t.toggleHeader())}),d()()}if(i&2){let s=u();a(),le("title",c(2,3,"tests.publish")),a(5),x(c(7,5,"tests.not-published")),a(2),p("expanded",s.expanded)}}var Ui=(()=>{let n=class n{constructor(){this.toggle=new X,this.publish=new X,this.unpublish=new X}toggleHeader(){this.toggle.emit(!this.expanded)}publishTest(){this.publish.emit(this.test)}unpublishTest(){this.unpublish.emit(this.test)}};n.\u0275fac=function(t){return new(t||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(t,r){if(t&1){let g=M();o(0,"div",1)(1,"div",2),_("click",function(){return I(g),T(r.toggleHeader())}),o(2,"div",3),m(3),d(),E(4,"bkd-caret",4),d(),o(5,"div",5),f(6,ir,12,12,"div",6)(7,nr,9,7,"div",7)(8,rr,9,7,"ng-template",null,0,se),d()()}if(t&2){let g=A(9);a(2),p("ngClass",r.expanded?"expanded":"collapsed"),a(),h(" ",r.test.Designation," "),a(),p("expanded",r.expanded),a(2),p("ngIf",r.expanded),a(),p("ngIf",r.test.IsPublished)("ngIfElse",g)}},dependencies:[ae,Wt,R,Hi,oe,$e,P,k,Ni],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: 811px){.test-designation[_ngcontent-%COMP%]{display:inherit!important}.test-status[_ngcontent-%COMP%]{order:initial}.expand-mobile[_ngcontent-%COMP%]{display:none!important}}"]});let i=n;return i})();var sr=["bkdTestEditGradesHeader",""],ar=(i,n,s)=>({tests:i,filter:n,expanded:s}),or=i=>({selected:i});function dr(i,n){if(i&1){let s=M();o(0,"th",13)(1,"bkd-test-table-header",14),_("toggle",function(t){I(s);let r=u(2);return T(r.state.toggleHeader(t))})("publish",function(t){I(s);let r=u(2);return T(r.publish.emit(t))})("unpublish",function(t){I(s);let r=u(2);return T(r.unpublish.emit(t))}),d()()}if(i&2){let s=n.$implicit,e=u().bkdLet,t=u();p("ngClass",s.Id===(t.selectedTest==null?null:t.selectedTest.Id)?"selected":""),a(),p("test",s)("expanded",e.expanded)}}function lr(i,n){if(i&1){let s=M();o(0,"th",15)(1,"bkd-test-table-header",14),_("toggle",function(t){I(s);let r=u(2);return T(r.state.toggleHeader(t))})("publish",function(t){I(s);let r=u(2);return T(r.publish.emit(t))})("unpublish",function(t){I(s);let r=u(2);return T(r.unpublish.emit(t))}),d()()}if(i&2){let s=n.$implicit,e=u().bkdLet,t=u();p("ngClass",s.Id===(t.selectedTest==null?null:t.selectedTest.Id)?"selected":""),a(),p("test",s)("expanded",e.expanded)}}function pr(i,n){if(i&1){let s=M();o(0,"div",19)(1,"span",18),_("click",function(){I(s);let t=u().$implicit,r=u(2);return T(r.state.sortBy(t))}),m(2),l(3,"translate"),d()()}i&2&&(a(2),h("",c(3,1,"tests.points")," "))}function cr(i,n){if(i&1){let s=M();o(0,"th",16)(1,"div",7),f(2,pr,4,3,"div",17),o(3,"div",8)(4,"span",18),_("click",function(){let t=I(s).$implicit,r=u(2);return T(r.state.sortBy(t))}),m(5),l(6,"translate"),d()(),o(7,"div",9),m(8),l(9,"async"),d()()()}if(i&2){let s=n.$implicit,e=u(2);p("ngClass",s.Id===(e.selectedTest==null?null:e.selectedTest.Id)?"selected":""),a(2),p("ngIf",s.IsPointGrading),a(3),x(c(6,4,"tests.grade")),a(3),h(" ",c(9,6,e.state.getSortingChar$(s))," ")}}function mr(i,n){if(i&1){let s=M();W(0),o(1,"tr",1)(2,"th",2)(3,"bkd-test-table-filter",3),_("filterChange",function(t){I(s);let r=u();return T(r.state.setFilter(t))}),d()(),f(4,dr,2,3,"th",4)(5,lr,2,3,"th",5),d(),o(6,"tr")(7,"th",6),_("click",function(){I(s);let t=u();return T(t.state.sortBy("FullName"))}),o(8,"div",7)(9,"div",8),m(10),l(11,"translate"),d(),o(12,"div",9),m(13),l(14,"async"),d()()(),o(15,"th",10),_("click",function(){I(s);let t=u();return T(t.state.sortBy("FinalGrade"))}),o(16,"div",7)(17,"div",8),m(18),l(19,"translate"),d(),o(20,"div",9),m(21),l(22,"async"),d()()(),o(23,"th",11),_("click",function(){I(s);let t=u();return T(t.state.sortBy("TestsMean"))}),o(24,"div",7)(25,"div",8),m(26),l(27,"translate"),d(),o(28,"div",9),m(29),l(30,"async"),d()()(),f(31,cr,10,8,"th",12),d(),z()}if(i&2){let s=n.bkdLet,e=u();a(3),p("filter",s.filter),a(),p("ngForOf",s.tests),a(),p("ngForOf",s.tests),a(5),h(" ",c(11,11,"tests.student.name")," "),a(3),h(" ",c(14,13,e.state.getSortingChar$("FullName"))," "),a(2),p("ngClass",O(23,or,e.selectedTest===void 0)),a(3),h(" ",c(19,15,"tests.grade")," "),a(3),h(" ",c(22,17,e.state.getSortingChar$("FinalGrade"))," "),a(5),h(" ",c(27,19,"tests.mean")," "),a(3),h(" ",c(30,21,e.state.getSortingChar$("TestsMean"))," "),a(2),p("ngForOf",s.tests)}}var Wi=(()=>{let n=class n{set shown(e){let t=this.element.nativeElement.classList;e?t.add("shown"):t.remove("shown")}constructor(e,t){this.state=e,this.element=t,this.sticky=!1,this.publish=new X,this.unpublish=new X}getTop(){return this.element.nativeElement.getBoundingClientRect().top}getLeft(){return this.element.nativeElement.getBoundingClientRect().left}setTopOffset(e){this.element.nativeElement.style.top=`${e}px`}setLeftOffset(e){this.element.nativeElement.style.left=`${e}px`}getWidth(){return this.element.nativeElement.getBoundingClientRect().width}setWidth(e){this.element.nativeElement.style.width=`${e}px`}getColumnWidths(){return this.getRowsAndColumns().map(e=>e.map(t=>t.getBoundingClientRect().width))}setColumnWidths(e){let t=this.getRowsAndColumns();if(t.length!==e.length||!t.every((r,g)=>r.length===e[g].length))throw new Error("Given column widths do not match number of header rows/columns");t.forEach((r,g)=>r.forEach((w,S)=>{w.style.width=`${e[g][S]}px`,w.style.minWidth=`${e[g][S]}px`}))}getStickyColumnsHeights(){return this.getRowsAndColumns(".sticky").map(e=>e.map(t=>t.getBoundingClientRect().height))}setStickyColumnHeights(e){let t=this.getRowsAndColumns(".sticky");if(t.length!==e.length||!t.every((r,g)=>r.length===e[g].length))throw new Error("Given column heights do not match number of sticky header columns");t.forEach((r,g)=>r.forEach((w,S)=>{w.style.height=`${e[g][S]}px`})),this.getRows().forEach((r,g)=>{let w=e[g].reduce((S,F)=>Math.max(S,F),0);r.style.height=`${w}px`})}getRowsAndColumns(e){return this.getRows().map(t=>Array.from(t.querySelectorAll(`th:not(.header-mobile)${e??""}`)))}getRows(){return Array.from(this.element.nativeElement.querySelectorAll("tr"))}};n.\u0275fac=function(t){return new(t||n)(v(V),v(ft))},n.\u0275cmp=C({type:n,selectors:[["thead","bkdTestEditGradesHeader",""]],hostVars:2,hostBindings:function(t,r){t&2&&re("sticky",r.sticky)},inputs:{selectedTest:"selectedTest",sticky:"sticky",shown:"shown"},outputs:{publish:"publish",unpublish:"unpublish"},standalone:!0,features:[y],attrs:sr,decls:4,vars:11,consts:[[4,"bkdLet"],[1,"header-collapsible"],["colspan","3",1,"desktop","sticky"],[3,"filterChange","filter"],["container","body","class","test-grade grade test-info-desktop",3,"ngClass",4,"ngFor","ngForOf"],["container","body","class","test-grade header-mobile test-info-mobile","colspan","3",3,"ngClass",4,"ngFor","ngForOf"],[1,"student-name",3,"click"],[1,"d-flex"],[1,"column-title"],[1,"sort-direction","ms-1"],[1,"student-grade","desktop",3,"click","ngClass"],[1,"border-end","student-average","desktop",3,"click"],["container","body","class","test-grade",3,"ngClass",4,"ngFor","ngForOf"],["container","body",1,"test-grade","grade","test-info-desktop",3,"ngClass"],[3,"toggle","publish","unpublish","test","expanded"],["container","body","colspan","3",1,"test-grade","header-mobile","test-info-mobile",3,"ngClass"],["container","body",1,"test-grade",3,"ngClass"],["class","column-title me-3 point-input-container",4,"ngIf"],[3,"click"],[1,"column-title","me-3","point-input-container"]],template:function(t,r){t&1&&(f(0,mr,32,25,"ng-container",0),l(1,"async"),l(2,"async"),l(3,"async")),t&2&&p("bkdLet",he(7,ar,c(1,1,r.state.filteredTests$),c(2,3,r.state.filter$),c(3,5,r.state.expandedHeader$)))},dependencies:[Q,j,ae,ce,R,P,k,Vi,Ui],styles:["[_nghost-%COMP%]{--student-name-column-width: 225px;--student-grade-column-width: 147px;--student-average-column-width: 100px;--test-grade-column-width: 300px;--point-input-size: 4em;--student-grade-column-offset: var(--student-name-column-width);--student-average-column-offset: calc( var(--student-grade-column-offset) + var(--student-grade-column-width) );--test-columns-offset: calc( var(--student-average-column-offset) + var(--student-average-column-width) )}[_nghost-%COMP%] #stickyHeader[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .scroll-test-table[_ngcontent-%COMP%]{display:table-caption;overflow-y:auto;height:auto}@media (min-width: 1000px){[_nghost-%COMP%]{--student-name-column-width: 275px}}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:1rem}td[_ngcontent-%COMP%]{vertical-align:middle}@media (min-width: 576px){[_nghost-%COMP%]{--point-input-size: 5em}}tr[_ngcontent-%COMP%]:not(.header-collapsible) th.test-grade[_ngcontent-%COMP%], td.test-grade[_ngcontent-%COMP%], th.student-grade[_ngcontent-%COMP%], td.student-grade[_ngcontent-%COMP%]{width:calc(var(--point-input-size) + 13ch + 3rem)}@media (max-width: 810px){.desktop[_ngcontent-%COMP%]:not(.selected), .student-grade[_ngcontent-%COMP%]:not(.selected), .student-average[_ngcontent-%COMP%], .test-grade[_ngcontent-%COMP%]:not(.selected){display:none}table[_ngcontent-%COMP%], tbody[_ngcontent-%COMP%], thead[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}th[_ngcontent-%COMP%], tr[_ngcontent-%COMP%]{display:flex;width:100%}.student-name[_ngcontent-%COMP%]{flex:1;display:block}.test-grade[_ngcontent-%COMP%]{flex:none;display:block}}@media (min-width: 811px){.mobile[_ngcontent-%COMP%]{display:none}.student-name[_ngcontent-%COMP%]{width:var(--student-name-column-width);min-width:var(--student-name-column-width);max-width:var(--student-name-column-width)}.student-grade[_ngcontent-%COMP%]{width:var(--student-grade-column-width);min-width:var(--student-grade-column-width);max-width:var(--student-grade-column-width)}.student-average[_ngcontent-%COMP%]{width:var(--student-average-column-width);min-width:var(--student-average-column-width);max-width:var(--student-average-column-width)}.test-grade[_ngcontent-%COMP%]{min-width:var(--test-grade-column-width);max-width:var(--test-grade-column-width)}th.sticky[_ngcontent-%COMP%], td.sticky[_ngcontent-%COMP%]{position:sticky;left:0;background-color:#fff}th.sticky.student-grade[_ngcontent-%COMP%], td.sticky.student-grade[_ngcontent-%COMP%]{left:var(--student-grade-column-offset)}th.sticky.student-average[_ngcontent-%COMP%], td.sticky.student-average[_ngcontent-%COMP%]{left:var(--student-average-column-offset)}}@media (max-width: 1200px){[_nghost-%COMP%]{--student-average-column-width: 1px}.student-average[_ngcontent-%COMP%]{padding:0;overflow:hidden}}@media (min-width: 1201px){.student-average-inline[_ngcontent-%COMP%]{display:none}}.sticky[_nghost-%COMP%]{position:fixed;top:0;left:0;z-index:1000;display:none}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}tr[_ngcontent-%COMP%] th.test-info-desktop[_ngcontent-%COMP%]{display:none!important}@media (min-width: 811px){.sticky.shown[_nghost-%COMP%]{display:table-header-group}tr[_ngcontent-%COMP%] th.test-info-mobile[_ngcontent-%COMP%]{display:none!important}tr[_ngcontent-%COMP%] th.test-info-desktop[_ngcontent-%COMP%]{display:table-cell!important}tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:none;padding-top:.25rem;padding-bottom:.25rem;border-top:initial}.sticky[_nghost-%COMP%]{margin-left:var(--test-columns-offset)}.sticky[_nghost-%COMP%] th.sticky[_ngcontent-%COMP%]{position:fixed}}"],changeDetection:0});let i=n;return i})();var ur=(i,n,s)=>({tests:i,hasTests:n,studentGrades:s}),zi=i=>({selected:i}),gr=i=>["student",i,"grades"],fr=i=>({"visible-on-mobile":i});function hr(i,n){if(i&1){let s=M();o(0,"bkd-grade-select",24),l(1,"async"),l(2,"async"),_("gradeIdSelected",function(t){I(s);let r=u(3);return T(r.state.overwriteFinalGrade(t))}),d()}if(i&2){let s=u().$implicit,e=u(2);p("options",c(1,4,e.state.gradingOptionsForCourse$()))("valueId",s.finalGrade.finalGradeId)("gradeId",s.finalGrade.id)("disabled",c(2,6,e.isEditFinalGradesAllowed(s))===!1)}}function vr(i,n){if(i&1&&(o(0,"div"),m(1),d()),i&2){let s=u().$implicit;a(),h(" ",s.finalGrade.freeHandGrade," ")}}function _r(i,n){if(i&1&&(o(0,"td",25),E(1,"bkd-grade",26),l(2,"async"),d()),i&2){let s=n.$implicit,e=n.index,t=u(),r=t.$implicit,g=t.index,w=u(2);p("ngClass",w.selectedTest!==void 0&&s.test.Id===w.selectedTest.Id?"selected":""),a(),p("grade",s)("gradeOptions",c(2,5,w.state.gradingOptionsForTest$(s.test)))("student",r.student)("tabIndex",(1+e)*1e3+g)}}function xr(i,n){if(i&1&&(o(0,"tr")(1,"td",17)(2,"a",18)(3,"div"),m(4),d(),o(5,"div",11),m(6),l(7,"translate"),l(8,"decimalOrDash"),d()()(),o(9,"td",19),f(10,hr,3,8,"bkd-grade-select",20)(11,vr,2,1,"div",21),d(),o(12,"td",22),m(13),l(14,"decimalOrDash"),d(),f(15,_r,3,7,"td",23),d()),i&2){let s=n.$implicit,e=u(2);a(2),p("routerLink",O(18,gr,s.student.Id)),a(2),x(s.student.FullName),a(2),et(" ",c(7,10,"tests.mean"),": ",G(8,12,s.finalGrade==null?null:s.finalGrade.average,"1-3")," "),a(3),p("ngClass",O(20,zi,e.selectedTest===void 0)),a(),p("ngIf",s.finalGrade&&!s.finalGrade.freeHandGrade),a(),p("ngIf",s.finalGrade&&s.finalGrade.freeHandGrade),a(2),h(" ",G(14,15,s.finalGrade==null?null:s.finalGrade.average,"1-3")," "),a(2),p("ngForOf",s.grades)("ngForTrackBy",e.trackGradeOf(s.student))}}function br(i,n){if(i&1&&(o(0,"td",25),E(1,"bkd-average-grades",27),d()),i&2){let s=n.$implicit,e=u(2);p("ngClass",s.Id===(e.selectedTest==null?null:e.selectedTest.Id)||s.Id===(e.selectedTest==null?null:e.selectedTest.Id)?"selected":""),a(),p("test",s)}}function Cr(i,n){if(i&1){let s=M();o(0,"button",28),_("click",function(){I(s);let t=u(2);return T(t.setAverageAsFinalGrade())}),m(1),l(2,"translate"),d()}if(i&2){let s=u().bkdLet,e=u();p("ngClass",O(4,fr,!s.hasTests||!e.selectedTest)),a(),h(" ",c(2,2,"tests.set-final-grade")," ")}}function yr(i,n){if(i&1){let s=M();W(0),o(1,"div",3)(2,"table",4)(3,"thead",5,0),_("publish",function(t){I(s);let r=u();return T(r.publish(t))})("unpublish",function(t){I(s);let r=u();return T(r.unpublish(t))}),d(),o(5,"thead",6,1),_("publish",function(t){I(s);let r=u();return T(r.publish(t))})("unpublish",function(t){I(s);let r=u();return T(r.unpublish(t))}),d(),o(7,"tbody",7),f(8,xr,16,22,"tr",8),o(9,"tr")(10,"td",9)(11,"div",10)(12,"div"),m(13),l(14,"translate"),d(),o(15,"div",11),m(16),l(17,"translate"),l(18,"async"),l(19,"decimalOrDash"),d()()(),o(20,"td",12),m(21),l(22,"async"),l(23,"decimalOrDash"),d(),o(24,"td",13),m(25),l(26,"async"),l(27,"decimalOrDash"),d(),f(28,br,2,2,"td",14),d()()(),o(29,"div",15),f(30,Cr,3,6,"button",16),l(31,"async"),d()(),z()}if(i&2){let s=n.bkdLet,e=A(4),t=A(6),r=u();a(2),p("inlineHeader",e)("stickyHeader",t),a(),p("selectedTest",r.selectedTest),a(2),p("sticky",!0)("selectedTest",r.selectedTest),a(3),p("ngForOf",s.studentGrades)("ngForTrackBy",r.trackStudentGrade),a(5),x(c(14,15,"tests.average")),a(3),et(" ",c(17,17,"tests.mean"),": ",G(19,21,c(18,19,r.state.meanOfStudentGradesForCourse$),"1-3")," "),a(4),p("ngClass",O(36,zi,r.selectedTest===void 0)),a(),h(" ",G(23,26,c(22,24,r.state.meanOfFinalGradesForCourse$),"1-3")," "),a(4),h(" ",G(27,31,c(26,29,r.state.meanOfStudentGradesForCourse$),"1-3")," "),a(3),p("ngForOf",s.tests),a(2),p("ngIf",c(31,34,r.state.canSetFinalGrade$))}}var qi=(()=>{let n=class n{constructor(e,t){this.state=e,this.modalService=t}ngOnInit(){this.state.setSorting({key:"FullName",ascending:!0})}setAverageAsFinalGrade(){this.state.course$.pipe(ne(1)).subscribe(e=>this.state.setAveragesAsFinalGrades({CourseIds:[e.Id]}))}isEditFinalGradesAllowed(e){return this.state.course$.pipe(b(t=>!!(Ye(t)?.value&&e.finalGrade?.canGrade)))}publish(e){let t=this.openModal(e);this.onCloseModal(t,()=>this.state.publish(e))}unpublish(e){let t=this.openModal(e);this.onCloseModal(t,()=>this.state.unpublish(e))}trackStudentGrade(e){return e}trackGradeOf(e){return function(t,r){return`${e.Id}_${r.test.Id}`}}calculatePointsAverage(e){return this.safeAverage(e,We)}calculateGradeAverage(e){return this.safeAverage(e,ze)}safeAverage(e,t){try{return t(e).toString()}catch{return"\u2013"}}openModal(e){let t=this.modalService.open(Ri);return t.componentInstance.test=e,t}onCloseModal(e,t){e.result.then(r=>{r&&t()},()=>{})}};n.\u0275fac=function(t){return new(t||n)(v(V),v(qe))},n.\u0275cmp=C({type:n,selectors:[["bkd-test-edit-grades"]],inputs:{selectedTest:"selectedTest"},standalone:!0,features:[pe([Te]),y],decls:4,vars:11,consts:[["inlineHeader",""],["stickyHeader",""],[4,"bkdLet"],[1,"table-responsive-wrapper"],["bkdTestEditGradesHeaderSticky","",1,"table","table-hover","h-100",3,"inlineHeader","stickyHeader"],["bkdTestEditGradesHeader","",2,"display","block",3,"publish","unpublish","selectedTest"],["id","stickyHeader","bkdTestEditGradesHeader","",3,"publish","unpublish","sticky","selectedTest"],["id","scrollTestTable",1,"scroll-test-table"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"sticky","student-name"],[1,"d-flex","flex-column"],[1,"student-average-inline"],[1,"desktop","sticky","student-grade",3,"ngClass"],[1,"desktop","border-end","sticky","student-average"],["class","test-grade",3,"ngClass",4,"ngFor","ngForOf"],[1,"action-buttons"],["data-testId","apply-average-button","class","apply-average-button btn btn-primary m-3","type","button",3,"ngClass","click",4,"ngIf"],[1,"student-name"],[3,"routerLink"],[1,"student-grade",3,"ngClass"],[3,"options","valueId","gradeId","disabled","gradeIdSelected",4,"ngIf"],[4,"ngIf"],[1,"border-end","sticky","student-average"],["class","test-grade",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],[3,"gradeIdSelected","options","valueId","gradeId","disabled"],[1,"test-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(t,r){t&1&&(f(0,yr,32,38,"ng-container",2),l(1,"async"),l(2,"async"),l(3,"async")),t&2&&p("bkdLet",he(7,ur,c(1,1,r.state.filteredTests$),c(2,3,r.state.hasTests$),c(3,5,r.state.studentGrades$)))},dependencies:[Q,ae,ce,R,oe,Li,Bi,Di,j,P,k,Zt,Ai,Wi],styles:["[_nghost-%COMP%]{--student-name-column-width: 225px;--student-grade-column-width: 147px;--student-average-column-width: 100px;--test-grade-column-width: 300px;--point-input-size: 4em;--student-grade-column-offset: var(--student-name-column-width);--student-average-column-offset: calc( var(--student-grade-column-offset) + var(--student-grade-column-width) );--test-columns-offset: calc( var(--student-average-column-offset) + var(--student-average-column-width) )}[_nghost-%COMP%] #stickyHeader[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .scroll-test-table[_ngcontent-%COMP%]{display:table-caption;overflow-y:auto;height:auto}@media (min-width: 1000px){[_nghost-%COMP%]{--student-name-column-width: 275px}}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:1rem}td[_ngcontent-%COMP%]{vertical-align:middle}@media (min-width: 576px){[_nghost-%COMP%]{--point-input-size: 5em}}tr[_ngcontent-%COMP%]:not(.header-collapsible) th.test-grade[_ngcontent-%COMP%], td.test-grade[_ngcontent-%COMP%], th.student-grade[_ngcontent-%COMP%], td.student-grade[_ngcontent-%COMP%]{width:calc(var(--point-input-size) + 13ch + 3rem)}@media (max-width: 810px){.desktop[_ngcontent-%COMP%]:not(.selected), .student-grade[_ngcontent-%COMP%]:not(.selected), .student-average[_ngcontent-%COMP%], .test-grade[_ngcontent-%COMP%]:not(.selected){display:none}table[_ngcontent-%COMP%], tbody[_ngcontent-%COMP%], thead[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}th[_ngcontent-%COMP%], tr[_ngcontent-%COMP%]{display:flex;width:100%}.student-name[_ngcontent-%COMP%]{flex:1;display:block}.test-grade[_ngcontent-%COMP%]{flex:none;display:block}}@media (min-width: 811px){.mobile[_ngcontent-%COMP%]{display:none}.student-name[_ngcontent-%COMP%]{width:var(--student-name-column-width);min-width:var(--student-name-column-width);max-width:var(--student-name-column-width)}.student-grade[_ngcontent-%COMP%]{width:var(--student-grade-column-width);min-width:var(--student-grade-column-width);max-width:var(--student-grade-column-width)}.student-average[_ngcontent-%COMP%]{width:var(--student-average-column-width);min-width:var(--student-average-column-width);max-width:var(--student-average-column-width)}.test-grade[_ngcontent-%COMP%]{min-width:var(--test-grade-column-width);max-width:var(--test-grade-column-width)}th.sticky[_ngcontent-%COMP%], td.sticky[_ngcontent-%COMP%]{position:sticky;left:0;background-color:#fff}th.sticky.student-grade[_ngcontent-%COMP%], td.sticky.student-grade[_ngcontent-%COMP%]{left:var(--student-grade-column-offset)}th.sticky.student-average[_ngcontent-%COMP%], td.sticky.student-average[_ngcontent-%COMP%]{left:var(--student-average-column-offset)}}@media (max-width: 1200px){[_nghost-%COMP%]{--student-average-column-width: 1px}.student-average[_ngcontent-%COMP%]{padding:0;overflow:hidden}}@media (min-width: 1201px){.student-average-inline[_ngcontent-%COMP%]{display:none}}tbody[_ngcontent-%COMP%] td.student-name[_ngcontent-%COMP%]{padding-right:0}tbody[_ngcontent-%COMP%] td.student-name[_ngcontent-%COMP%], tbody[_ngcontent-%COMP%] td.student-name[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}tbody[_ngcontent-%COMP%] td.student-name[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}tbody[_ngcontent-%COMP%] td.student-name[_ngcontent-%COMP%] a[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child{text-decoration:underline}tbody[_ngcontent-%COMP%] td.student-name[_ngcontent-%COMP%] a[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child:hover{text-decoration-color:#ea161f}.student-average-inline[_ngcontent-%COMP%]{color:#4e4e4ef2;font-size:.875rem;line-height:1}@media (min-width: 811px){.table-responsive-wrapper[_ngcontent-%COMP%]{display:block;overflow-x:auto}table[_ngcontent-%COMP%]{border-collapse:separate;border-spacing:0}.action-buttons[_ngcontent-%COMP%]{position:sticky;left:0}}@media (max-width: 810px){.apply-average-button[_ngcontent-%COMP%]:not(.visible-on-mobile){display:none!important}}"]});let i=n;return i})();var Sr=()=>["/events"],Ir=i=>({count:i});function Tr(i,n){if(i&1&&(o(0,"div",8),m(1),l(2,"translate"),d()),i&2){let s=u();a(),h(" ",G(2,1,s.course.ParticipatingStudents.length===1?"courses.registration":"courses.registrations",O(4,Ir,s.course.ParticipatingStudents.length))," ")}}var Yi=(()=>{let n=class n{constructor(e){this.reportsService=e,this.course$=new L(null),this.reports$=this.course$.pipe(b(t=>t?.Id),K(),D(t=>t?this.reportsService.getCourseReports(t):Y([])),ct([]))}ngOnChanges(e){e.course&&this.course$.next(e.course.currentValue)}getDesignation(){return Ke(this.course)}};n.\u0275fac=function(t){return new(t||n)(v(ii))},n.\u0275cmp=C({type:n,selectors:[["bkd-tests-header"]],inputs:{course:"course"},standalone:!0,features:[fe,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(t,r){t&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,Tr,3,6,"div",7),d()),t&2&&(p("link",_t(6,Sr)),a(5),p("reports",c(6,4,r.reports$)),a(5),x(r.getDesignation()),a(),p("ngIf",r.course.ParticipatingStudents))},dependencies:[si,oe,Ut,R,j,P,k],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 i=n;return i})();var wr=(i,n,s,e,t,r)=>({course:i,tests:n,hasTests:s,testOptions:e,selectedTestId:t,selectedTest:r}),Er=i=>({"visible-on-mobile":i});function kr(i,n){if(i&1){let s=M();W(0),o(1,"bkd-select",7),_("valueChange",function(t){I(s);let r=u(3);return T(t&&r.testSelected(t))}),d(),E(2,"bkd-test-edit-grades",8),z()}if(i&2){let s=u(2).bkdLet;a(),p("options",s.testOptions)("value",s.selectedTestId)("allowEmpty",!1),a(),p("selectedTest",s.selectedTest)}}function Pr(i,n){if(i&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()()),i&2){let s=u(2).bkdLet,e=u();le("href",c(1,3,e.buildLinkToRatingOverview()),ke),p("ngClass",O(7,Er,!s.hasTests||!s.selectedTest)),a(5),x(c(6,5,"tests.link-to-rating-overview"))}}function Mr(i,n){if(i&1&&(W(0),E(1,"bkd-tests-header",5),f(2,kr,3,4,"ng-container",4)(3,Pr,7,9,"a",6),l(4,"async"),z()),i&2){let s=u().bkdLet,e=u(),t=A(9);a(),p("course",s.course),a(),p("ngIf",s.tests.length>0)("ngIfElse",t),a(),p("ngIf",c(4,4,e.state.canSetFinalGrade$))}}function Or(i,n){if(i&1&&(W(0),f(1,Mr,5,6,"ng-container",4),l(2,"async"),z()),i&2){let s=u(),e=A(11);a(),p("ngIf",c(2,2,s.state.loading$)===!1)("ngIfElse",e)}}function Gr(i,n){i&1&&(o(0,"p",12),m(1),l(2,"translate"),d()),i&2&&(a(),x(c(2,1,"tests.no-tests")))}function $r(i,n){i&1&&E(0,"bkd-spinner")}var Ki=(()=>{let n=class n{constructor(e,t,r){this.settings=e,this.state=t,this.translate=r,this.selectTest$=new ee,this.testOptions$=this.state.tests$.pipe(b(g=>[{Key:-1,Value:this.translate.instant("tests.grade")},...g.map(w=>({Key:w.Id,Value:w.Designation}))]),K()),this.selectedTestId$=Oe(this.selectTest$,this.state.tests$.pipe(ne(1),b(g=>g[0]?.Id))).pipe(K()),this.selectedTest$=this.selectedTestId$.pipe(D(g=>this.state.tests$.pipe(b(w=>w.find(S=>S.Id===g)))),K())}testSelected(e){this.selectTest$.next(e)}buildLinkToRatingOverview(){return this.state.course$.pipe(ne(1),b(e=>this.settings.eventlist.evaluation.replace(":id",String(e.Id))))}};n.\u0275fac=function(t){return new(t||n)(v(_e),v(V),v(ie))},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"],["width","100%",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(t,r){t&1&&(o(0,"div",2),f(1,Or,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,Gr,3,3,"ng-template",null,0,se)(10,$r,1,0,"ng-template",null,1,se),d()),t&2&&(a(),p("bkdLet",xt(13,wr,c(2,1,r.state.course$),c(3,3,r.state.tests$),c(4,5,r.state.hasTests$),c(5,7,r.testOptions$),c(6,9,r.selectedTestId$),c(7,11,r.selectedTest$))))},dependencies:[Q,R,Yi,Ie,qi,ae,Se,j,P,k],styles:[".tests-dropdown[_ngcontent-%COMP%]{display:block;padding:1rem 0}@media (min-width: 811px){.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: 810px){a.rating-overview[_ngcontent-%COMP%]:not(.visible-on-mobile){display:none!important}}"]});let i=n;return i})();var Xe=(()=>{let n=class n{constructor(e,t){this.state=e,this.route=t,this.courseId$=this.route.paramMap.pipe(b(r=>Number(r.get("id"))),K()),this.destroy$=new ee}ngOnInit(){this.courseId$.pipe(de(this.destroy$)).subscribe(e=>this.state.setCourseId(e))}ngOnDestroy(){this.destroy$.next()}};n.\u0275fac=function(t){return new(t||n)(v(V),v(ve))},n.\u0275cmp=C({type:n,selectors:[["bkd-tests"]],standalone:!0,features:[pe([V]),y],decls:1,vars:0,template:function(t,r){t&1&&E(0,"router-outlet")},dependencies:[Fe]});let i=n;return i})();var kd=[{path:"",component:xi,children:[{path:"",component:_i},{path:"current",component:vi},{path:":id",component:Xe,children:[{path:"tests",component:Ki}]},{path:":id/tests/:testId/edit",component:Xe,children:[{path:"",component:Fi}]},{path:":id/tests/add",component:Xe,children:[{path:"",component:Gi}]},{path:":id/tests",children:[ai]}]}];export{kd as EVENTS_ROUTES}; diff --git a/public/apps/webapp-schulverwaltung/chunk-PMU42JF5.js b/public/apps/webapp-schulverwaltung/chunk-PMU42JF5.js deleted file mode 100644 index de8bed9b..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-PMU42JF5.js +++ /dev/null @@ -1 +0,0 @@ -import{p as X,r as Z,s as te,t as ie,w as re}from"./chunk-W7ASLXRM.js";import"./chunk-Y4QYVF5K.js";import"./chunk-HII3S2DL.js";import{d as ee}from"./chunk-RFO4NYUO.js";import{a as K,b as W}from"./chunk-FTDG26ID.js";import{a as z,c as Q}from"./chunk-SOHFFTKU.js";import{A as w,u as _}from"./chunk-C56YGDXA.js";import{$ as g,$a as O,Ab as d,Bb as p,Ga as j,Gd as k,Hd as R,Ia as f,Id as Y,L as B,O as T,Sa as C,Sb as J,Ta as S,Ua as l,Va as A,Vb as M,Vc as V,W as L,Wa as N,Z as m,g as E,jb as b,kb as $,m as a,n as F,pc 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-XTHSYQMN.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-RET26MIW.js b/public/apps/webapp-schulverwaltung/chunk-RET26MIW.js new file mode 100644 index 00000000..07bbbd25 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-RET26MIW.js @@ -0,0 +1 @@ +import{b as x}from"./chunk-MIRGHONI.js";import{l as P}from"./chunk-NL5E3FC5.js";import{Bd as F,C as g,D as d,F as f,H as m,K as p,M as h,R as u,X as b,f as a,g as l,n as i,o as c,w as r,x as $,ya as S,zd as y}from"./chunk-IFJN5CDK.js";var I="page",T=(()=>{class n{constructor(e,s,v,E,R){this.location=e,this.loadingService=s,this.sortService=v,this.settings=E,this.loading$=this.loadingService.loading$,this.loadingPage$=this.loadingService.loading(I),this.sorting$=this.sortService.sorting$,this.filter$=new l(this.getInitialFilter()),this.isFilterValid$=this.filter$.pipe(i(this.isValidFilter.bind(this))),this.validFilter$=this.filter$.pipe($(this.isValidFilter.bind(this)),m(F),h(1)),this.resetEntries$=new a,this.nextPage$=new a,this.page$=r(this.nextPage$.pipe(i(()=>"next")),r(this.resetEntries$,this.validFilter$,this.sorting$).pipe(i(()=>"reset"))).pipe(p((t,o)=>o==="next"?t+1:0,0)),this.offset$=this.page$.pipe(i(t=>t*this.settings.paginationLimit)),this.pageResult$=c([this.validFilter$,this.sorting$,this.offset$]).pipe(d(10),g(P(this.loadEntries.bind(this))),h(1)),this.entries$=r(r(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(p(this.entriesActionReducer.bind(this),[]),h(1)),this.total$=this.pageResult$.pipe(i(({total:t})=>t)),this.hasMore$=this.pageResult$.pipe(i(({offset:t,total:o})=>tthis.location.replaceState(R,t)),this.sortService.setSorting(this.getInitialSorting())}ngOnDestroy(){this.destroy$.next()}setFilter(e){this.filter$.next(y(e))}nextPage(){this.hasMore$.pipe(f(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{this.\u0275fac=function(s){S()}}static{this.\u0275prov=b({token:n,factory:n.\u0275fac})}}return n})();export{I as a,T as b}; diff --git a/public/apps/webapp-schulverwaltung/chunk-RFO4NYUO.js b/public/apps/webapp-schulverwaltung/chunk-RFO4NYUO.js deleted file mode 100644 index 46065148..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-RFO4NYUO.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as d,Ac as R,Cc as b,Cd as G,Ec as w,Fc as y,Hc as L,Ia as j,Id as N,Mc as p,Nc as O,O as C,Rc as B,Sa as g,Ta as f,Ua as D,Vc as E,W as M,Z as m,a as v,ab as F,b as A,bb as T,dc as k,jb as U,k as S,kb as $,m as P,n as x,tb as h,td as I,ua as u,xd as z,zc as a}from"./chunk-XTHSYQMN.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-RG5AZKMH.js b/public/apps/webapp-schulverwaltung/chunk-RG5AZKMH.js new file mode 100644 index 00000000..46118706 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-RG5AZKMH.js @@ -0,0 +1 @@ +import{a as ri}from"./chunk-UHRBN2L7.js";import{a as oi,b as li}from"./chunk-32LHGY5Z.js";import{a as ci}from"./chunk-FJXQ6CD7.js";import{a as ai}from"./chunk-IYFH2F7I.js";import"./chunk-2D2UAYZL.js";import{a as tt,b as Wt,c as zt,d as qt,e as Yt,f as Ue,g as We,h as Kt,i as Jt,j as Qt,k as Xt,l as Zt,m as Te,o as ei,p as ce,s as ii,u as ni,v as ze}from"./chunk-IMBPAJBQ.js";import"./chunk-OGCDITJ2.js";import"./chunk-DKLN3NRY.js";import"./chunk-7FRZV7VF.js";import{a as Vt}from"./chunk-Y4QYVF5K.js";import"./chunk-OFB4XAK2.js";import{a as di}from"./chunk-VKWEQ6GU.js";import{a as pi}from"./chunk-2U5ENDJH.js";import"./chunk-VUPOI3TG.js";import{a as Ut,d as ti}from"./chunk-WACRWBCS.js";import"./chunk-MIRGHONI.js";import"./chunk-YUHFF3NM.js";import{L as jt,U as si,p as At}from"./chunk-VGJCKFZL.js";import{a as xe,c as Lt,l as ye}from"./chunk-NL5E3FC5.js";import{a as Nt,b as Ne}from"./chunk-UGBTF4Z2.js";import{a as Ht,b as Se}from"./chunk-KK2SHN2W.js";import{f as Mt,g as Ot,i as Gt,j as $t,p as je,u as Ve}from"./chunk-LGOOC47H.js";import{a as He}from"./chunk-B6WYZ7BT.js";import{$c as Re,Ab as y,B as dt,Bb as fe,Bd as Ft,C as lt,Cb as F,Cd as Rt,D as pt,Db as et,Ed as Bt,F as ne,Gb as o,H as J,Ha as I,Hb as p,Ib as O,Id as ie,J as Oe,Jd as P,K as ct,Kd as k,Ld as Dt,M as Q,Ma as m,Mb as Ct,Na as se,O as mt,P as L,R as oe,Ra as w,Ta as ge,Ua as W,Va as z,Wa as a,Wb as ae,X as ue,Xa as r,Ya as E,Yc as _e,Zb as j,_ as U,_b as Ge,a as D,aa as x,ab as $,b as V,bd as Ce,ca as ut,cb as _,cd as Be,da as ht,db as h,dd as xt,eb as vt,f as ee,fb as _t,g as A,gb as de,gc as bt,gd as yt,h as Xe,ha as he,hd as St,ia as S,id as De,ja as T,jd as Tt,l as K,la as gt,ld as wt,m as ot,mb as le,md as It,n as b,nb as c,o as te,ob as C,pb as f,qa as X,qb as Ze,qd as Le,rc as ve,rd as Ae,sc as $e,sd as Et,ta as ft,tc as Fe,td as Pt,uc as re,ud as be,va as Pe,vd as kt,w as Me,wa as s,wb as R,x as Ee,xa as v,xb as q,yb as B,zb as pe}from"./chunk-IFJN5CDK.js";var Ki=t=>[t,"tests"];function Ji(t,l){if(t&1&&(a(0,"span"),c(1),o(2,"date"),E(3,"wbr"),c(4),o(5,"date"),r()),t&2){let e=h();s(),f("",O(2,2,e.event.dateFrom,"dd.MM.yyyy"),"\u2013"),s(3),C(O(5,5,e.event.dateTo,"dd.MM.yyyy"))}}function Qi(t,l){if(t&1&&(a(0,"a",6)(1,"i",8),c(2,"arrow_right_alt"),r(),a(3,"span",9),c(4),r()()),t&2){let e=h(2);m("routerLink",F(2,Ki,e.event.id)),s(4),C(e.event.evaluationText)}}function Xi(t,l){if(t&1&&(a(0,"a",7)(1,"i",8),c(2,"arrow_right_alt"),r(),a(3,"span",9),c(4),r()()),t&2){let e=h(2);m("href",e.event.evaluationLink,Pe),s(4),f("",e.event.evaluationText," ")}}function Zi(t,l){if(t&1&&(a(0,"div",5),I(1,Qi,5,4,"a",6)(2,Xi,5,2,"a",7),r()),t&2){let e=h();s(),w(e.event.evaluationLink?-1:1),s(),w(e.event.evaluationLink?2:-1)}}var mi=(()=>{class t{constructor(){this.withRatings=!0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=x({type:t,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"],[1,"registrations"],[1,"registrations-label"],[1,"rating"],[1,"d-flex",3,"routerLink"],[1,"d-flex",3,"href"],[1,"material-icons"],[1,"ps-1"]],template:function(i,n){i&1&&(a(0,"div",0)(1,"a",1),c(2),r()(),a(3,"div",2),I(4,Ji,6,8,"span"),r(),a(5,"div",3),c(6),a(7,"span",4),c(8),o(9,"translate"),r()(),I(10,Zi,3,2,"div",5)),i&2&&(s(),m("href",n.event.detailLink,Pe),s(),C(n.event.designation),s(2),w(n.event.dateFrom&&n.event.dateTo?4:-1),s(2),f(" ",n.event.studentCount," "),s(2),C(p(9,6,n.event.studentCount===1?"events.registration":"events.registrations")),s(2),w(n.withRatings&&n.event.evaluationText?10:-1))},dependencies:[re,Ge,k,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}}']})}}return t})();var en=10300,tn=10260,nn=10250,sn=14030,an=10350;function qe(t){let{HasEvaluationStarted:l,EvaluationUntil:e,HasTestGrading:i}=t.EvaluationStatusRef;if(l===!0&&(t.StatusId===sn||t.StatusId===an))return{value:Z.Rating};if(l===!0&&i===!1){if(e)return{value:Z.RatingUntil};if(t.StatusId===en)return{value:Z.IntermediateRating}}return l===!1&&i===!0&&t.StatusId!==tn&&t.StatusId!==nn?{value:Z.Tests}:l===!0&&i===!0?e?{value:Z.Tests,label:Z.RatingUntil}:{value:Z.Tests,label:Z.IntermediateRating}:null}function ui(t){return t.EvaluationStatusRef.HasEvaluationStarted===!0}function hi(t){return t.EvaluationStatusRef.HasReviewOfEvaluationStarted===!0&&!!t.FinalGrades?.length}function Ye(t){let l=t.Classes?t.Classes.map(e=>e.Number).join(", "):null;return l?t.Designation+", "+l:t.Designation}var Z=function(t){return t.Rating="rating",t.RatingUntil="rating-until",t.IntermediateRating="intermediate-rating",t.Tests="add-tests",t}(Z||{}),we=(()=>{class t{constructor(e,i,n,d,u,g){this.coursesRestService=e,this.eventsRestService=i,this.studyClassRestService=n,this.loadingService=d,this.translate=u,this.settings=g,this.loading$=this.loadingService.loading$,this.searchFields$=new A(["designation"]),this.searchSubject$=new A(""),this.search$=this.searchSubject$.asObservable(),this.roles$=new A(null),this.isClassTeacher$=this.roles$.pipe(b(M=>Vt(M,"ClassTeacherRole")),Q(1)),this.withStudyCourses$=new A(!1),this.unratedCourses$=this.roles$.pipe(L(this.loadUnratedCourses.bind(this)),Q(1)),this.studyCourses$=this.withStudyCourses$.pipe(L(this.loadStudyCourses.bind(this)),Q(1)),this.formativeAssessments$=this.isClassTeacher$.pipe(L(this.loadFormativeAssessments.bind(this)),Q(1)),this.studyClasses$=this.isClassTeacher$.pipe(L(this.loadStudyClasses.bind(this)),Q(1)),this.events$=this.getEvents().pipe(Q(1)),this.filteredEvents$=te([this.events$,this.searchFields$,this.search$]).pipe(b(ye(oi)))}setSearch(e){this.searchSubject$.next(e)}setRoles(e){this.roles$.next(e)}setWithStudyCourses(e){this.withStudyCourses$.next(e)}setSearchFields(e){this.searchFields$.next(e)}getEntries(e=!1){return this.filteredEvents$.pipe(b(i=>e?i.filter(n=>n.evaluationText):i))}getEvents(){return this.loadingService.load(te([this.unratedCourses$,this.studyCourses$,this.formativeAssessments$,this.studyClasses$]),{stopOnFirstValue:!0}).pipe(b(ye(this.createAndSortEvents.bind(this))))}loadUnratedCourses(e){return this.coursesRestService.getExpandedCourses(e).pipe(b(i=>i.filter(n=>!hi(n))))}loadStudyCourses(e){return e?this.eventsRestService.getStudyCourseEvents():K([])}loadFormativeAssessments(e){return e?this.studyClassRestService.getActiveFormativeAssessments():K([])}loadStudyClasses(e){return e?this.studyClassRestService.getActive():K([])}createAndSortEvents(e,i,n,d){let u=d.filter(g=>!n.map(M=>M.Id).includes(g.Id));return[...this.createFromCourses(e),...this.createFromStudyCourses(i),...this.createFromAssessments(n),...this.createFromStudyClasses(u)].sort((g,M)=>g.designation.localeCompare(M.designation))}createFromCourses(e){return e.map(i=>{let n=qe(i);return{id:i.Id,designation:Ye(i),detailLink:this.buildLink(i.Id,"eventdetail"),studentCount:i.AttendanceRef.StudentCount||0,dateFrom:i.DateFrom,dateTo:i.DateTo,state:n?.value||null,evaluationText:this.getEvaluationText(n,i.EvaluationStatusRef.EvaluationUntil),evaluationLink:this.getEvaluationLink(n?.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(n=>V(D({},n),{state:Z.Rating,evaluationText:this.translate.instant("events.state.rating"),evaluationLink:this.buildLink(n.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 n=e?.label||e?.value;return n?this.translate.instant(`events.state.${n}`)+(n===Z.RatingUntil?` ${i?At(i,"dd.MM.yyyy"):""}`:""):""}getEvaluationLink(e,i){return e&&e!==Z.Tests?this.buildLink(i.Id,"evaluation"):null}buildLink(e,i){return(this.settings.eventlist[i]??"").replace(":id",String(e))}static{this.\u0275fac=function(i){return new(i||t)(U(ce),U(ri),U(ci),U(Ne),U(ie),U(_e))}}static{this.\u0275prov=ue({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var dn=(t,l)=>l.id,ln=()=>[];function pn(t,l){t&1&&E(0,"bkd-spinner")}function cn(t,l){t&1&&(a(0,"div",7),c(1),o(2,"translate"),r()),t&2&&(s(),f(" ",p(2,1,"events.rating")," "))}function mn(t,l){if(t&1&&E(0,"bkd-events-list-entry",8),t&2){let e=l.$implicit,i=h(3);m("event",e)("withRatings",i.withRatings)}}function un(t,l){if(t&1&&(a(0,"div",3)(1,"div",4),c(2),o(3,"translate"),r(),a(4,"div",5),c(5),o(6,"translate"),r(),a(7,"div",6),c(8),o(9,"translate"),r(),I(10,cn,3,3,"div",7),r(),W(11,mn,1,2,"bkd-events-list-entry",8,dn)),t&2){let e=h(2),i=B(0);s(2),C(p(3,4,"events.designation")),s(3),C(p(6,6,"events.date")),s(3),f(" ",p(9,8,"events.registrations")," "),s(2),w(e.withRatings?10:-1),s(),z(i)}}function hn(t,l){t&1&&(a(0,"p",2),c(1),o(2,"translate"),r()),t&2&&(s(),C(p(2,1,"events.no-events")))}function gn(t,l){if(t&1&&I(0,un,13,10)(1,hn,3,3,"p",2),t&2){h();let e=B(0);w(e.length>0?0:1)}}var gi=["designation"],fn=[...gi,"evaluationText"],Ke=(()=>{class t{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),e.withRatings&&this.state.setSearchFields(e.withRatings.currentValue?fn:gi)}static{this.\u0275fac=function(i){return new(i||t)(v(we),v(Dt))}}static{this.\u0275cmp=x({type:t,selectors:[["bkd-events-list"]],inputs:{withStudyCourses:"withStudyCourses",withRatings:"withRatings"},standalone:!0,features:[he,y],decls:10,vars:17,consts:[[1,"bkd-container"],[1,"d-flex","search",3,"valueChange","value","placeholder","label","disabled"],[1,"mt-3"],[1,"event-header"],[1,"designation"],[1,"date"],[1,"registrations"],[1,"rating"],[3,"event","withRatings"]],template:function(i,n){if(i&1){let d=$();R(0),o(1,"async"),a(2,"div",0)(3,"bkd-resettable-input",1),o(4,"async"),o(5,"translate"),o(6,"translate"),_("valueChange",function(g){return S(d),T(n.state.setSearch(g))}),r(),I(7,pn,1,0,"bkd-spinner"),o(8,"async"),I(9,gn,2,1),r()}if(i&2){let d,u=q((d=p(1,5,n.state.getEntries(n.withRatings)))!==null&&d!==void 0?d:fe(16,ln));s(3),m("value",p(4,8,n.state.search$))("placeholder",p(5,10,"events.search-by"))("label",p(6,12,"events.search"))("disabled",!u),s(4),w(p(8,14,n.state.loading$)?7:9)}},dependencies:[li,Se,j,k,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}}']})}}return t})();var fi=(()=>{class t{constructor(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=x({type:t,selectors:[["bkd-events-current"]],standalone:!0,features:[y],decls:4,vars:5,consts:[[3,"withStudyCourses","withRatings"]],template:function(i,n){i&1&&(a(0,"h1"),c(1),o(2,"translate"),r(),E(3,"bkd-events-list",0)),i&2&&(s(),C(p(2,3,"events.current.title")),s(2),m("withStudyCourses",!0)("withRatings",!1))},dependencies:[Ke,k,P]})}}return t})();var vi=(()=>{class t{constructor(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=x({type:t,selectors:[["bkd-events-tests"]],standalone:!0,features:[y],decls:4,vars:4,consts:[[3,"withRatings"]],template:function(i,n){i&1&&(a(0,"h1"),c(1),o(2,"translate"),r(),E(3,"bkd-events-list",0)),i&2&&(s(),C(p(2,2,"events.title")),s(2),m("withRatings",!0))},dependencies:[Ke,k,P]})}}return t})();var _i=(()=>{class t{constructor(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=x({type:t,selectors:[["bkd-events"]],standalone:!0,features:[pe([we,jt]),y],decls:1,vars:0,template:function(i,n){i&1&&E(0,"router-outlet")},dependencies:[$e]})}}return t})();function Ci(t){return l=>{let e=Number(l.value);return e<=t?{greaterThan:{value:e,greaterThanValue:t}}:null}}function nt(t){return t.map(({finalGrade:l})=>l).filter(vn)}function vn(t){return t!==null}function yi(t,l,e,i){return t?.map(n=>({student:n,finalGrade:Cn(n,e,i),grades:_n(n,l)}))}function _n(t,l){return l.map(e=>{if(e.Results===void 0||e.Results?.length===0)return{kind:"no-result",test:e};let i=e.Results?.find(n=>n.StudentId===t.Id);return i!==void 0?{kind:"grade",result:i,test:e}:{kind:"no-result",test:e}})}function Cn(t,l,e){let i=l.find(d=>d.StudentId===t.Id),n=e.find(d=>d.StudentId===t.Id);return i?{id:i.Id,average:bn(i),finalGradeId:i.GradeId,freeHandGrade:n?Number(n.Grade):null,canGrade:i.CanGrade}:null}function bn(t){return t.AverageTestResult===0?null:t.AverageTestResult}var Si=({key:t,ascending:l})=>(e,i)=>{let n=l?1:-1;switch(t){case"FullName":return n*e.student.FullName.localeCompare(i.student.FullName);case"FinalGrade":return!e.finalGrade?.finalGradeId||!i.finalGrade?.finalGradeId?n*-1:n*bi(e.finalGrade.finalGradeId,i.finalGrade.finalGradeId);case"TestsMean":return!e.finalGrade?.average||!i.finalGrade?.average?n*-1:n*bi(e.finalGrade.average,i.finalGrade.average)}return n*xn(t,e,i)},xn=(t,l,e)=>{let i=l.grades.filter(xi).find(d=>d.test.Id===t.Id),n=e.grades.filter(xi).find(d=>d.test.Id===t.Id);return t.IsPointGrading&&i?.result.GradeId===n?.result.GradeId?(i?.result.Points??0)-(n?.result.Points??0):((i?.result.GradeId??Number.POSITIVE_INFINITY)-(n?.result.GradeId??Number.POSITIVE_INFINITY))*-1};function bi(t,l){return t===l?0:te.average).filter(e=>e!=null&&e!==0).map(Number);return tt(l)}function Ii(t,l){let e=t.map(n=>n.freeHandGrade).filter(n=>!!n),i=t.map(n=>n.finalGradeId).filter(n=>n!==null).map(n=>l.find(d=>d.Key===n)).filter(n=>n!==void 0).map(n=>n?.Value).filter(n=>n!==void 0).map(Number).filter(n=>!isNaN(n));return tt([...i,...e])}function st(t,l){return[...l.filter(e=>e.Id!==t?.Id),t].filter(e=>e!=null)}function Ei({id:t,selectedGradeId:l},e){return e.map(i=>i.Id!==t?i:V(D({},i),{GradeId:l}))}function Pi(t,l){switch(l.type){case"reset":return l.payload;case"updateResult":return t?V(D({},t),{Tests:zt(l.payload.testResult,t.Tests||[],l.payload.ignore),Gradings:l.payload.grading?st(l.payload.grading,t.Gradings||[]):t.Gradings}):null;case"deleteResult":return t?V(D({},t),{Tests:qt(l.payload.testId,l.payload.studentId,t.Tests||[]),Gradings:l.payload.grading?st(l.payload.grading,t.Gradings||[]):t.Gradings||[]}):null;case"toggle-test-state":return t?V(D({},t),{Tests:Yt(l.payload,t.Tests||[])}):null;case"final-grade-overwritten":return t?V(D({},t),{Gradings:Ei({id:l.payload.id,selectedGradeId:l.payload.selectedGradeId},t.Gradings||[])}):null;case"replace-grades":return t?V(D({},t),{Gradings:l.payload}):null;case"delete-test":return t?V(D({},t),{Tests:Kt(l.payload,t.Tests||[])}):null;default:return t}}var ki=(()=>{class t extends Ht{constructor(e,i){super(e,i,ei,"Gradings")}updateGrade(e,i){return this.http.put(`${this.baseUrl}/${e}`,{GradeId:i}).pipe(b(()=>e))}static{this.\u0275fac=function(i){return new(i||t)(U(bt),U(_e))}}static{this.\u0275prov=ue({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var at={onlyMine:!1,hidePublished:!1},H=(()=>{class t{constructor(e,i,n,d,u){this.coursesRestService=e,this.gradingScalesRestService=i,this.gradingsRestService=n,this.loadingService=d,this.sortService=u,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(L(g=>this.loadingService.load(this.coursesRestService.getExpandedCourse(g))),Q(1)),this.course$=Me(this.action$,this.fetchedCourse$.pipe(Ee(Ve),b(g=>({type:"reset",payload:g})))).pipe(ct(Pi,null),Ee(Ve),Q(1)),this.tests$=this.course$.pipe(b(g=>g.Tests||[]),b(Jt)),this.hasTests$=this.tests$.pipe(b(g=>g.length>0)),this.filterSubject$=new A(at),this.filter$=this.filterSubject$.asObservable(),this.expandedHeaderSubject$=new A(!1),this.expandedHeader$=this.expandedHeaderSubject$.asObservable(),this.filteredTests$=te([this.tests$,this.filter$]).pipe(b(([g,M])=>g.filter(Y=>(!M.onlyMine||Y.IsOwner)&&(!M.hidePublished||!Y.IsPublished)))),this.sorting$=this.sortService.sorting$,this.studentGrades$=te([this.course$,this.filteredTests$,this.sorting$]).pipe(b(ye(this.toStudentGrades.bind(this)))),this.canSetFinalGrade$=this.course$.pipe(b(ui)),this.gradingScaleIds$=this.course$.pipe(b(g=>Rt([...(g.Tests??[]).map(M=>M.GradingScaleId),g.GradingScaleId]).filter(Ve)),J(Ft),Q(1)),this.gradingScales$=this.gradingScaleIds$.pipe(L(g=>this.gradingScalesRestService.getGradingScales(g)),Q(1)),this.UNDEFINED_GRADINGSCALE_ID=-1,this.gradingScalesOptions$=this.gradingScales$.pipe(b(g=>g.map(M=>{let Y=M?.Id||this.UNDEFINED_GRADINGSCALE_ID,Ie=M?.Grades.map(ke=>({Key:ke.Id,Value:ke.Designation}))||[];return{id:Y,options:Ie}}).reduce((M,Y)=>V(D({},M),{[Y.id]:Y.options}),{})),Q(1)),this.meanOfStudentGradesForCourse$=this.studentGrades$.pipe(b(g=>wi(nt(g)))),this.meanOfFinalGradesForCourse$=te([this.gradingScalesOptions$,this.studentGrades$]).pipe(L(ye(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(L(e=>this.gradingOptions$(e.GradingScaleId)))}toStudentGrades(e,i=[],n){return yi(e.ParticipatingStudents??[],i,e.Gradings??[],e.FinalGrades??[]).sort(Si(n))}setSorting(e){this.sortService.setSorting(e)}getSortingChar$(e){return this.sortService.getSortingChar$(e)}sortBy(e){this.sortService.toggleSorting(e)}toggleHeader(e){this.expandedHeaderSubject$.next(e)}optimisticallyUpdateGrade(e){return this.course$.pipe(ne(1),b(i=>{let{originalResult:n,updatedResult:d}=this.buildOptimisticResultUpdate(i,e);return this.updateTestResult(d,null),n}))}saveGrade(e,i){this.course$.pipe(ne(1),L(n=>this.coursesRestService.updateTestResult(n.Id,e).pipe(dt(d=>(i&&this.updateTestResult(D({},i),null),ot(()=>d)))))).subscribe(({testResult:n,grading:d})=>this.updateOrDeleteTestResult(e.testId,e.studentId,n,d,"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 n=Wt(e,i.testId,i.studentId),d=n?D({},n):{Id:"",TestId:i.testId,StudentId:i.studentId,CourseRegistrationId:0,GradeId:null,GradeValue:null,GradeDesignation:null,Points:null};return d.GradeId="gradeId"in i?i.gradeId:n?.GradeId??null,d.Points="points"in i?i.points:n?.Points??null,{originalResult:n,updatedResult:d}}updateOrDeleteTestResult(e,i,n,d,u){n?this.updateTestResult(n,d,u):this.deleteTestResult(e,i,d)}updateTestResult(e,i,n){this.action$.next({type:"updateResult",payload:{testResult:e,grading:i??null,ignore:n}})}deleteTestResult(e,i,n){this.action$.next({type:"deleteResult",payload:{testId:e,studentId:i,grading:n}})}toggleTestPublishedState(e){this.action$.next({type:"toggle-test-state",payload:e})}gradingOptions$(e){return e===null?K(null):this.gradingScalesOptions$.pipe(b(i=>i[e]),Q(1))}meanOfOverwrittenGradesForCourse(e,i){return this.course$.pipe(b(n=>{if(n.GradingScaleId===null||e[n.GradingScaleId]===void 0)return null;let d=e[n.GradingScaleId];return Ii(nt(i),d)}))}static{this.\u0275fac=function(i){return new(i||t)(U(ce),U(ii),U(ki),U(Ne),U(pi))}}static{this.\u0275prov=ue({token:t,factory:t.\u0275fac})}}return t})();var Tn=t=>["/events",t,"tests"];function wn(t,l){if(t&1&&(a(0,"div",7),c(1),o(2,"translate"),r()),t&2){let e=l.$implicit;s(),f(" ",O(2,1,"global.validation-errors."+e.error,e.params)," ")}}function In(t,l){if(t&1&&(a(0,"div",7),c(1),o(2,"translate"),r()),t&2){let e=l.$implicit;s(),f(" ",O(2,1,"global.validation-errors."+e.error,e.params)," ")}}function En(t,l){if(t&1&&(a(0,"div",7),c(1),o(2,"translate"),r()),t&2){let e=l.$implicit;s(),f(" ",O(2,1,"global.validation-errors."+e.error,e.params)," ")}}function Pn(t,l){if(t&1&&(a(0,"div",7),c(1),o(2,"translate"),r()),t&2){let e=l.$implicit;s(),f(" ",O(2,1,"global.validation-errors."+e.error,e.params)," ")}}function kn(t,l){if(t&1&&(a(0,"div",7),c(1),o(2,"translate"),r()),t&2){let e=l.$implicit;s(),f(" ",O(2,1,"global.validation-errors."+e.error,e.params)," ")}}function Mn(t,l){if(t&1&&(a(0,"div",29)(1,"div",30)(2,"div",16)(3,"label",31),c(4),o(5,"translate"),r(),a(6,"div",32),E(7,"input",33),o(8,"async"),W(9,Pn,3,4,"div",7,ge),o(11,"async"),r()()(),a(12,"div",30)(13,"div",16)(14,"label",34),c(15),o(16,"translate"),r(),a(17,"div",32),E(18,"input",35),o(19,"async"),W(20,kn,3,4,"div",7,ge),o(22,"async"),r()()()(),a(23,"div",36),gt(),a(24,"math")(25,"mi"),c(26),o(27,"translate"),r(),a(28,"mo"),c(29,"="),r(),a(30,"mfrac")(31,"mrow")(32,"mi"),c(33),o(34,"translate"),r(),a(35,"mo"),c(36,"\xD7"),r(),a(37,"mn"),c(38,"5"),r()(),a(39,"mi"),c(40),o(41,"translate"),r()(),a(42,"mo"),c(43,"+"),r(),a(44,"mn"),c(45,"1"),r()()()),t&2){let e,i,n=h(2);s(4),C(p(5,9,"tests.form.max-points")),s(3),se("is-invalid",((e=p(8,11,n.maxPointsErrors$))==null?null:e.length)||!1),s(2),z(p(11,13,n.maxPointsErrors$)),s(6),C(p(16,15,"tests.form.max-points-adjusted")),s(3),se("is-invalid",((i=p(19,17,n.maxPointsAdjustedErrors$))==null?null:i.length)||!1),s(2),z(p(22,19,n.maxPointsAdjustedErrors$)),s(6),f(" ",p(27,21,"tests.form.math.grade")," "),s(7),f(" ",p(34,23,"tests.form.math.points")," "),s(7),C(p(41,25,"tests.form.math.max-points"))}}function On(t,l){t&1&&(a(0,"div",28)(1,"span",37),c(2,"Loading..."),r()())}function Gn(t,l){if(t&1){let e=$();a(0,"form",2),_("ngSubmit",function(){S(e);let n=h();return T(n.onSubmit())}),a(1,"div",3)(2,"div",4)(3,"label",5),c(4),o(5,"translate"),r(),E(6,"input",6),o(7,"async"),o(8,"translate"),W(9,wn,3,4,"div",7,ge),o(11,"async"),r(),a(12,"div",8)(13,"label",9),c(14),o(15,"translate"),r(),a(16,"div",10)(17,"span",11)(18,"i",12),c(19,"calendar_today"),r()(),a(20,"input",13,0),o(22,"async"),o(23,"translate"),_("click",function(){S(e);let n=le(21);return T(n.toggle())}),r(),W(24,In,3,4,"div",7,ge),o(26,"async"),r()()(),a(27,"div",14)(28,"label",15),c(29),o(30,"translate"),r(),a(31,"div",4)(32,"div",16)(33,"label",17),c(34),o(35,"translate"),r(),a(36,"div",18),E(37,"input",19),o(38,"async"),W(39,En,3,4,"div",7,ge),o(41,"async"),r()()()(),a(42,"div")(43,"label",15),c(44),o(45,"translate"),r(),a(46,"div",20),E(47,"input",21),a(48,"label",22),c(49),o(50,"translate"),r()(),a(51,"div",20),E(52,"input",23),a(53,"label",24),c(54),o(55,"translate"),r()(),I(56,Mn,46,27),r(),a(57,"div",25)(58,"button",26),o(59,"async"),c(60),o(61,"translate"),r(),a(62,"button",27),c(63),o(64,"translate"),I(65,On,3,0,"div",28),r()()()}if(t&2){let e,i,n,d,u=h();m("formGroup",u.formGroup),s(4),C(p(5,26,"tests.form.designation")),s(2),se("is-invalid",((e=p(7,28,u.designationErrors$))==null?null:e.length)||!1),m("placeholder",p(8,30,"tests.form.designation-placeholder")),s(3),z(p(11,32,u.designationErrors$)),s(5),C(p(15,34,"tests.form.date")),s(3),m("id",u.componentId),s(3),se("is-invalid",((i=p(22,36,u.dateErrors$))==null?null:i.length)||!1),m("placeholder",p(23,38,"shared.date-select.default-placeholder")),s(4),z(p(26,40,u.dateErrors$)),s(5),C(p(30,42,"tests.form.weight")),s(5),C(p(35,44,"tests.form.factor")),s(3),se("is-invalid",((n=p(38,46,u.weightErrors$))==null?null:n.length)||!1),s(2),z(p(41,48,u.weightErrors$)),s(5),C(p(45,50,"tests.form.grading-type")),s(3),m("value",!1),s(2),C(p(50,52,"tests.form.grades")),s(3),m("value",!0),s(2),C(p(55,54,"tests.form.points")),s(2),w((d=u.formGroup.get("isPointGrading"))!=null&&d.value?56:-1),s(2),m("disabled",u.saving)("routerLink",F(62,Tn,p(59,56,u.courseId$))),s(2),f(" ",p(61,58,"tests.form.cancel")," "),s(2),m("disabled",u.saving),s(),f(" ",p(64,60,"tests.form.save")," "),s(2),w(u.saving?65:-1)}}var Je=(()=>{class t{constructor(e,i,n){this.fb=e,this.translate=i,this.testStateService=n,this.test=null,this.saving=!1,this.save=new X,this.componentId=Bt("bkd-tests-edit-form"),this.formGroup=this.createFormGroup(),this.submitted$=new A(!1),this.destroy$=new ee,this.designationErrors$=xe(K(this.formGroup),this.submitted$,"designation"),this.dateErrors$=xe(K(this.formGroup),this.submitted$,"date"),this.maxPointsErrors$=xe(K(this.formGroup),this.submitted$,"maxPoints"),this.maxPointsAdjustedErrors$=xe(K(this.formGroup),this.submitted$,"maxPointsAdjusted"),this.weightErrors$=xe(K(this.formGroup),this.submitted$,"weight"),this.courseId$=this.testStateService.courseId$}ngOnInit(){this.test&&this.setInitialValues(this.test),Lt(K(this.formGroup),"isPointGrading").pipe(oe(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:["",Ce.required],date:[null,Ce.required],weight:[1,Ce.compose([Ce.required,Ci(0)])],isPointGrading:[!1],maxPoints:[{value:null,disabled:!0},Ce.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}))}static{this.\u0275fac=function(i){return new(i||t)(v(Pt),v(ie),v(H))}}static{this.\u0275cmp=x({type:t,selectors:[["bkd-tests-edit-form"]],inputs:{test:"test",saving:"saving"},outputs:{save:"save"},standalone:!0,features:[pe([{provide:Mt,useClass:$t},{provide:Ot,useClass:di}]),y],decls:1,vars:1,consts:[["dp","ngbDatepicker"],[3,"formGroup"],[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"],[1,"invalid-feedback"],[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"],[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"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[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"],[1,"visually-hidden"]],template:function(i,n){i&1&&I(0,Gn,66,64,"form",1),i&2&&w(n.formGroup?0:-1)},dependencies:[be,St,Re,De,Tt,Be,xt,Et,Ae,Le,kt,wt,It,Gt,re,j,k,P],styles:["#factor[_ngcontent-%COMP%], #max-points[_ngcontent-%COMP%], #max-points-adjusted[_ngcontent-%COMP%]{width:5em}"]})}}return t})();var Oi=(()=>{class t{constructor(e,i,n,d,u){this.route=e,this.courseService=i,this.toastService=n,this.translate=d,this.router=u,this.saving$=new A(!1),this.courseId$=this.route.paramMap.pipe(b(g=>Number(g.get("id"))),J())}save(e){this.saving$.next(!0);let{designation:i,date:n,weight:d,isPointGrading:u,maxPoints:g,maxPointsAdjusted:M}=e;this.courseId$.pipe(L(Y=>this.courseService.add(Y,n,i,d,u,g,M)),Oe(()=>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=>void this.router.navigate(["events",e,"tests"]))}static{this.\u0275fac=function(i){return new(i||t)(v(ve),v(ce),v(He),v(ie),v(Fe))}}static{this.\u0275cmp=x({type:t,selectors:[["bkd-tests-add"]],standalone:!0,features:[y],decls:6,vars:6,consts:[[1,"bkd-container","bkd-container-limited"],[3,"save","saving"]],template:function(i,n){i&1&&(a(0,"h1"),c(1),o(2,"translate"),r(),a(3,"div",0)(4,"bkd-tests-edit-form",1),o(5,"async"),_("save",function(u){return n.save(u)}),r()()),i&2&&(s(),C(p(2,2,"tests.add-title")),s(3),m("saving",p(5,4,n.saving$)))},dependencies:[Je,j,k,P]})}}return t})();var Gi=(()=>{class t{constructor(e){this.activeModal=e}get canDeleteTest(){return(this.test?.Results?.filter(i=>i.GradeId!==null||i.GradeValue!==null||i.Points!==null)||[]).length===0}static{this.\u0275fac=function(i){return new(i||t)(v(je))}}static{this.\u0275cmp=x({type:t,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,n){i&1&&(a(0,"div",0)(1,"p",1),c(2),o(3,"translate"),r()(),a(4,"div",2)(5,"button",3),_("click",function(){return n.activeModal.dismiss()}),a(6,"span",4),c(7),o(8,"translate"),r()(),a(9,"button",5),_("click",function(){return n.activeModal.close(n.canDeleteTest?n.test:null)}),a(10,"span",6),c(11),o(12,"translate"),r()()()),i&2&&(s(2),f(" ",p(3,4,n.canDeleteTest?"tests.form.confirm":"tests.form.delete-not-allowed")," "),s(3),m("hidden",!n.canDeleteTest),s(2),f(" ",p(8,6,"tests.dialog.no")," "),s(4),f(" ",p(12,8,n.canDeleteTest?"tests.dialog.yes":"tests.dialog.ok")," "))},dependencies:[k,P]})}}return t})();var Bn=t=>({test:t});function Dn(t,l){t&1&&E(0,"bkd-spinner")}function Ln(t,l){if(t&1){let e=$();a(0,"div",1)(1,"h1"),c(2),o(3,"translate"),r(),a(4,"button",2),_("click",function(){S(e);let n=h(),d=B(0);return T(n.openDeleteModal(d))}),a(5,"i",3),c(6,"delete"),r()()(),a(7,"bkd-tests-edit-form",4),_("save",function(n){S(e);let d=h();return T(d.save(n))}),r()}if(t&2){h();let e=B(0),i=B(2);s(2),f(" ",O(3,3,"tests.edit-title",F(6,Bn,e.Designation))," "),s(5),m("test",e)("saving",i)}}var $i=(()=>{class t{constructor(e,i,n,d,u,g,M){this.state=e,this.courseService=i,this.route=n,this.toastService=d,this.translate=u,this.router=g,this.modalService=M,this.saving$=new A(!1),this.testId$=this.route.paramMap.pipe(b(Y=>Number(Y.get("testId"))),J()),this.test$=te([this.state.tests$,this.testId$]).pipe(b(([Y,Ie])=>Y.find(ke=>ke.Id===Ie)))}openDeleteModal(e){let i=this.modalService.open(Gi);i.componentInstance.test=e,i.result.then(n=>{n&&this.courseService.delete(e.CourseId,e.Id).subscribe(this.onDeleteSuccess.bind(this))},()=>{})}save(e){this.saving$.next(!0);let{designation:i,date:n,weight:d,isPointGrading:u,maxPoints:g,maxPointsAdjusted:M}=e;te([this.state.courseId$,this.testId$]).pipe(ne(1),L(([Y,Ie])=>this.courseService.update(Y,Ie,i,n,d,u,g,M)),Oe(()=>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(ne(1)).subscribe(e=>void this.router.navigate(["events",e,"tests"]))}static{this.\u0275fac=function(i){return new(i||t)(v(H),v(ce),v(ve),v(He),v(ie),v(Fe),v(ze))}}static{this.\u0275cmp=x({type:t,selectors:[["bkd-tests-edit"]],standalone:!0,features:[y],decls:8,vars:9,consts:[[1,"bkd-container","bkd-container-limited"],[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,n){if(i&1&&(R(0),o(1,"async"),R(2),o(3,"async"),a(4,"div",0),I(5,Dn,1,0,"bkd-spinner"),o(6,"async"),I(7,Ln,8,8),r()),i&2){let d=q(p(1,1,n.test$));s(2),q(p(3,4,n.saving$)),s(3),w(p(6,7,n.state.loading$)?5:d?7:-1)}},dependencies:[Je,Se,j,k,P]})}}return t})();var An=t=>({designation:t}),Fi=(()=>{class t{constructor(e){this.activeModal=e}static{this.\u0275fac=function(i){return new(i||t)(v(je))}}static{this.\u0275cmp=x({type:t,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,n){i&1&&(a(0,"div",0)(1,"p",1),c(2),o(3,"translate"),r()(),a(4,"div",2)(5,"button",3),_("click",function(){return n.activeModal.dismiss()}),c(6),o(7,"translate"),r(),a(8,"button",4),_("click",function(){return n.activeModal.close(!0)}),c(9),o(10,"translate"),r()()),i&2&&(s(2),f(" ",O(3,3,n.test.IsPublished?"tests.publishing.unpublish":"tests.publishing.publish",F(10,An,n.test.Designation))," "),s(4),f(" ",p(7,6,"tests.publishing.cancel")," "),s(3),f(" ",p(10,8,"tests.publishing.confirm")," "))},dependencies:[k,P],encapsulation:2})}}return t})();var jn=t=>({maxPoints:t});function Hn(t,l){if(t&1&&(a(0,"div",6),c(1),o(2,"translate"),r()),t&2){let e=h(2);s(),f(" ",O(2,1,"global.validation-errors.invalidPoints",F(4,jn,e.maxPoints))," ")}}function Vn(t,l){if(t&1){let e=$();a(0,"div",3)(1,"input",5,0),_("ngModelChange",function(){S(e);let n=le(2),d=h();return T(d.onPointsChange(n.value))}),r(),I(3,Hn,3,6,"div",6),r()}if(t&2){let e=le(2),i=h();s(),se("is-invalid",e.errors),de("max",i.maxPoints),de("tabindex",i.tabIndex),m("disabled",i.grade.test.IsPublished)("ngModel",i.grade.kind==="grade"?i.grade.result.Points:null),s(2),w(e.errors?3:-1)}}var Nn=1250,Ri=(()=>{class t{constructor(e){this.state=e,this.maxPoints=0,this.pointsSubject$=new ee,this.gradeSubject$=new ee,this.gradingScaleDisabledSubject$=new A(!0),this.gradingScaleDisabled$=this.gradingScaleDisabledSubject$.asObservable(),this.destroy$=new ee}ngOnInit(){this.gradingScaleDisabledSubject$.next(this.disableGradingScale()),this.maxPoints=Ti(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(lt(i=>this.state.optimisticallyUpdateGrade(i).pipe(b(n=>({params:i,originalResult:n})))),pt(Nn),oe(this.destroy$)).subscribe(({params:i,originalResult:n})=>this.state.saveGrade(i,n))}disableGradingScale(){return this.grade.test.IsPublished?!0:this.grade.kind==="no-result"?!1:this.grade.result.Points!=null&&this.grade.test.IsPointGrading}static{this.\u0275fac=function(i){return new(i||t)(v(H))}}static{this.\u0275cmp=x({type:t,selectors:[["bkd-grade"]],inputs:{grade:"grade",student:"student",tabIndex:"tabIndex",gradeOptions:"gradeOptions"},standalone:!0,features:[he,y],decls:5,vars:8,consts:[["points","ngModel"],[1,"d-flex","flex-column","w-100"],[1,"d-flex","flex-row"],[1,"point-input-container","me-2","me-md-3"],["data-testid","grade-select",1,"grade-select",3,"valueChange","options","allowEmpty","value","disabled","tabindex"],["type","number","step","0.01","min","0","data-testid","point-input",1,"form-control",3,"ngModelChange","max","disabled","tabindex","ngModel"],["data-testid","validation-error-message",1,"invalid-feedback"]],template:function(i,n){i&1&&(a(0,"div",1)(1,"div",2),I(2,Vn,4,7,"div",3),a(3,"bkd-select",4),o(4,"async"),_("valueChange",function(u){return n.onGradeChange(u)}),r()()()),i&2&&(s(2),w(n.grade.test.IsPointGrading?2:-1),s(),m("options",n.gradeOptions)("allowEmpty",!0)("value",n.grade.kind==="grade"?n.grade.result.GradeId:null)("disabled",p(4,6,n.gradingScaleDisabled$))("tabindex",n.tabIndex))},dependencies:[be,Re,De,Be,Ae,Le,yt,Te,j,k,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}}"]})}}return t})();function Un(t,l){if(t&1&&(a(0,"span",1),c(1),r()),t&2){let e=h();s(),C(e.calculatePointsAverage(e.test))}}var Bi=(()=>{class t{constructor(e){this.locale=e}calculatePointsAverage(e){return this.safeAverage(e,2,Ue)}calculateGradeAverage(e){return this.safeAverage(e,3,We)}safeAverage(e,i,n){try{return Zt(n(e),this.locale,i)}catch{return Qt}}static{this.\u0275fac=function(i){return new(i||t)(v(Ct))}}static{this.\u0275cmp=x({type:t,selectors:[["bkd-average-grades"]],inputs:{test:"test"},standalone:!0,features:[y],decls:4,vars:2,consts:[[1,"d-flex","flex-row","w-100"],["data-testid","average-points",1,"mr-2","mr-md-3","average-points"],["data-testid","average-grade"]],template:function(i,n){i&1&&(a(0,"div",0),I(1,Un,2,1,"span",1),a(2,"span",2),c(3),r()()),i&2&&(s(),w(n.test.IsPointGrading?1:-1),s(2),C(n.calculateGradeAverage(n.test)))},styles:[".average-points[_ngcontent-%COMP%]{min-width:4.5em}@media (min-width: 576px){.average-points[_ngcontent-%COMP%]{min-width:6em}}"]})}}return t})();var Di=(()=>{class t{constructor(){this.disabled=!1,this.width="13ch",this.gradeIdSelected=new X}onGradeChange(e){this.gradeId?.valueOf()!==void 0&&this.gradeIdSelected.emit({id:this.gradeId?.valueOf(),selectedGradeId:e})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=x({type:t,selectors:[["bkd-grade-select"]],inputs:{options:"options",valueId:"valueId",gradeId:"gradeId",disabled:"disabled",width:"width"},outputs:{gradeIdSelected:"gradeIdSelected"},standalone:!0,features:[y],decls:1,vars:5,consts:[["data-testid","grade-select",3,"valueChange","options","allowEmpty","value","disabled","width"]],template:function(i,n){i&1&&(a(0,"bkd-select",0),_("valueChange",function(u){return n.onGradeChange(u)}),r()),i&2&&m("options",n.options)("allowEmpty",!0)("value",n.valueId)("disabled",n.disabled)("width",n.width)},dependencies:[Te]})}}return t})();var Wn=576,Li=(()=>{class t{constructor(e,i){this.portal=e,this.state=i,this.destroy$=new ee,this.handleWindowScroll=()=>{this.updateStickyVisibility(),this.updateStickyTopOffset()},this.handleWindowResize=()=>{this.updateStickyWidth(),this.updateStickyVisibility(),this.updateStickyTopOffset()},this.handleTableScroll=()=>{this.updateStickyLeftOffset()}}ngOnInit(){te([this.state.filteredTests$,this.state.expandedHeader$]).pipe(oe(this.destroy$)).subscribe(()=>setTimeout(()=>this.updateStickyWidth()))}ngAfterViewInit(){this.handleWindowScroll(),this.handleTableScroll(),this.handleWindowResize(),this.window.addEventListener("scroll",this.handleWindowScroll),this.getTableScrollContainer()?.addEventListener("scroll",this.handleTableScroll),this.window.addEventListener("resize",this.handleWindowResize)}ngOnDestroy(){this.window.removeEventListener("scroll",this.handleWindowScroll),this.getTableScrollContainer()?.removeEventListener("scroll",this.handleTableScroll),this.window.removeEventListener("resize",this.handleWindowResize)}get window(){return this.portal.window??window}getTableScrollContainer(){return document.querySelector(".table-responsive-wrapper")??null}updateStickyVisibility(){if(this.isSmallBreakpointDown())return;let e=this.inlineHeader.getTop()+this.getIframeScrollY();this.stickyHeader.shown=this.getScrollTop()>e}updateStickyTopOffset(){this.isSmallBreakpointDown()||this.stickyHeader.setTopOffset(this.portal.inIframe?this.getScrollTop():0)}updateStickyLeftOffset(){this.isSmallBreakpointDown()||this.stickyHeader.setLeftOffset(this.inlineHeader.getLeft())}updateStickyWidth(){this.isSmallBreakpointDown()||(this.stickyHeader.setWidth(this.inlineHeader.getWidth()),this.stickyHeader.setColumnWidths(this.inlineHeader.getColumnWidths()),this.stickyHeader.setStickyColumnHeights(this.inlineHeader.getStickyColumnsHeights()))}getScrollTop(){return this.window.scrollY-this.portal.getIframeTop()}getIframeScrollY(){return window.scrollY}isSmallBreakpointDown(){return window.innerWidth({"btn-primary":t,"btn-outline-secondary":l}),ji=(()=>{class t{constructor(){this.filter=at,this.filterChange=new X}showOnlyMine(){this.filterChange.next(V(D({},this.filter),{onlyMine:!0}))}showAll(){this.filterChange.next(V(D({},this.filter),{onlyMine:!1}))}onHidePublishedChange(e){let i=(e.target&&e.target instanceof HTMLInputElement&&e.target?.checked)??!1;this.filterChange.next(V(D({},this.filter),{hidePublished:i}))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=x({type:t,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,n){i&1&&(a(0,"div",0)(1,"button",1),_("click",function(){return n.showAll()}),c(2),o(3,"translate"),r(),a(4,"button",2),_("click",function(){return n.showOnlyMine()}),c(5),o(6,"translate"),r()(),a(7,"div",3)(8,"div",4)(9,"input",5),_("change",function(u){return n.onHidePublishedChange(u)}),r(),a(10,"label",6),c(11),o(12,"translate"),r()()()),i&2&&(s(),m("ngClass",et(12,Ai,!n.filter.onlyMine,n.filter.onlyMine)),s(),f(" ",p(3,6,"tests.all-tests")," "),s(2),m("ngClass",et(15,Ai,n.filter.onlyMine,!n.filter.onlyMine)),s(),f(" ",p(6,8,"tests.owned-tests")," "),s(4),m("checked",n.filter.hidePublished),s(2),f(" ",p(12,10,"tests.hide-published")," "))},dependencies:[ae,be,k,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}"]})}}return t})();var zn=["*"],Hi=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=x({type:t,selectors:[["bkd-preserve-line-height"]],standalone:!0,features:[y],ngContentSelectors:zn,decls:3,vars:0,template:function(i,n){i&1&&(vt(),a(0,"div"),_t(1),c(2,"\xA0"),r())},encapsulation:2})}}return t})();var Vi=(()=>{class t{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{this.\u0275fac=function(i){return new(i||t)(v(ie,16))}}static{this.\u0275pipe=ht({name:"testSummaryShort",type:t,pure:!0,standalone:!0})}}return t})();var qn=t=>[t,"edit"];function Yn(t,l){t&1&&(a(0,"i",9),c(1,"edit"),r())}function Kn(t,l){if(t&1&&(a(0,"div",5)(1,"div",7)(2,"bkd-preserve-line-height"),c(3),o(4,"date"),r(),a(5,"a",8),I(6,Yn,2,0,"i",9),r()(),a(7,"bkd-preserve-line-height"),c(8),o(9,"testSummaryShort"),r(),a(10,"bkd-preserve-line-height"),c(11),r()()),t&2){let e=h();s(3),C(O(4,5,e.test.Date,"dd.MM.yyyy")),s(2),m("routerLink",F(10,qn,e.test.Id)),s(),w(e.test.IsOwner&&e.test.IsPublished===!1?6:-1),s(2),f(" ",p(9,8,e.test)," "),s(3),C(e.test.Owner)}}function Jn(t,l){if(t&1){let e=$();a(0,"div",6)(1,"a",10),o(2,"translate"),_("click",function(){S(e);let n=h();return T(n.unpublishTest())}),a(3,"i",11),c(4,"lock"),r(),a(5,"span"),c(6),o(7,"translate"),r()(),a(8,"bkd-caret",12),_("click",function(){S(e);let n=h();return T(n.emitToggleHeader())}),r()()}if(t&2){let e=h();s(),de("title",p(2,3,"tests.edit")),s(5),C(p(7,5,"tests.published")),s(2),m("expanded",e.expanded)}}function Qn(t,l){if(t&1){let e=$();a(0,"div",6)(1,"a",13),o(2,"translate"),_("click",function(){S(e);let n=h();return T(n.publishTest())}),a(3,"i",11),c(4,"lock_open"),r(),a(5,"span"),c(6),o(7,"translate"),r()(),a(8,"bkd-caret",12),_("click",function(){S(e);let n=h();return T(n.emitToggleHeader())}),r()()}if(t&2){let e=h();s(),de("title",p(2,3,"tests.publish")),s(5),C(p(7,5,"tests.not-published")),s(2),m("expanded",e.expanded)}}var Ni=(()=>{class t{constructor(){this.toggleHeader=new X,this.publish=new X,this.unpublish=new X}emitToggleHeader(){this.toggleHeader.emit(!this.expanded)}publishTest(){this.publish.emit(this.test)}unpublishTest(){this.unpublish.emit(this.test)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=x({type:t,selectors:[["bkd-test-table-header"]],inputs:{test:"test",expanded:"expanded"},outputs:{toggleHeader:"toggleHeader",publish:"publish",unpublish:"unpublish"},standalone:!0,features:[y],decls:9,vars:5,consts:[[1,"d-flex","flex-column","h-100","justify-content-between"],["role","button",1,"test-designation","d-flex","flex-row","my-3","align-items-end","justify-content-between",3,"click"],[3,"ngClass"],[1,"align-self-start",3,"expanded"],[1,"d-flex","flex-column"],[1,"d-flex","flex-column","mb-3"],[1,"d-flex","align-items-center","justify-content-between","test-status"],[1,"d-flex","flex-row","justify-content-between"],[1,"btn","btn-link","p-0","edit",3,"routerLink"],[1,"material-icons"],[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,n){i&1&&(a(0,"div",0)(1,"div",1),_("click",function(){return n.emitToggleHeader()}),a(2,"div",2),c(3),r(),E(4,"bkd-caret",3),r(),a(5,"div",4),I(6,Kn,12,12,"div",5)(7,Jn,9,7,"div",6)(8,Qn,9,7,"div",6),r()()),i&2&&(s(2),m("ngClass",n.expanded?"expanded":"collapsed"),s(),f(" ",n.test.Designation," "),s(),m("expanded",n.expanded),s(2),w(n.expanded?6:-1),s(),w(n.test.IsPublished?7:8))},dependencies:[ae,Ut,Hi,re,Ge,k,P,Vi],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: 811px){.test-designation[_ngcontent-%COMP%]{display:inherit!important}.test-status[_ngcontent-%COMP%]{order:initial}.expand-mobile[_ngcontent-%COMP%]{display:none!important}}"]})}}return t})();var Xn=["bkdTestEditGradesHeader",""],rt=(t,l)=>l.Id,Zn=t=>({selected:t});function es(t,l){if(t&1){let e=$();a(0,"th",3)(1,"bkd-test-table-header",12),_("toggleHeader",function(n){S(e);let d=h();return T(d.state.toggleHeader(n))})("publish",function(n){S(e);let d=h();return T(d.publish.emit(n))})("unpublish",function(n){S(e);let d=h();return T(d.unpublish.emit(n))}),r()()}if(t&2){let e=l.$implicit,i=h(),n=B(4);m("ngClass",e.Id===(i.selectedTest==null?null:i.selectedTest.Id)?"selected":""),s(),m("test",e)("expanded",n)}}function ts(t,l){if(t&1){let e=$();a(0,"th",4)(1,"bkd-test-table-header",12),_("toggleHeader",function(n){S(e);let d=h();return T(d.state.toggleHeader(n))})("publish",function(n){S(e);let d=h();return T(d.publish.emit(n))})("unpublish",function(n){S(e);let d=h();return T(d.unpublish.emit(n))}),r()()}if(t&2){let e=l.$implicit,i=h(),n=B(4);m("ngClass",e.Id===(i.selectedTest==null?null:i.selectedTest.Id)?"selected":""),s(),m("test",e)("expanded",n)}}function is(t,l){if(t&1){let e=$();a(0,"div",13)(1,"span",14),_("click",function(){S(e);let n=h().$implicit,d=h();return T(d.state.sortBy(n))}),c(2),o(3,"translate"),r()()}t&2&&(s(2),f("",p(3,1,"tests.points")," "))}function ns(t,l){if(t&1){let e=$();a(0,"th",11)(1,"div",6),I(2,is,4,3,"div",13),a(3,"div",7)(4,"span",14),_("click",function(){let n=S(e).$implicit,d=h();return T(d.state.sortBy(n))}),c(5),o(6,"translate"),r()(),a(7,"div",8),c(8),o(9,"async"),r()()()}if(t&2){let e=l.$implicit,i=h();m("ngClass",e.Id===(i.selectedTest==null?null:i.selectedTest.Id)?"selected":""),s(2),w(e.IsPointGrading?2:-1),s(3),C(p(6,4,"tests.grade")),s(3),f(" ",p(9,6,i.state.getSortingChar$(e))," ")}}var Ui=(()=>{class t{set shown(e){let i=this.element.nativeElement.classList;e?i.add("shown"):i.remove("shown")}constructor(e,i){this.state=e,this.element=i,this.sticky=!1,this.publish=new X,this.unpublish=new X}getTop(){return this.element.nativeElement.getBoundingClientRect().top}getLeft(){return this.element.nativeElement.getBoundingClientRect().left}setTopOffset(e){this.element.nativeElement.style.top=`${e}px`}setLeftOffset(e){this.element.nativeElement.style.left=`${e}px`}getWidth(){return this.element.nativeElement.getBoundingClientRect().width}setWidth(e){this.element.nativeElement.style.width=`${e}px`}getColumnWidths(){return this.getRowsAndColumns().map(e=>e.map(i=>i.getBoundingClientRect().width))}setColumnWidths(e){let i=this.getRowsAndColumns();if(i.length!==e.length||!i.every((n,d)=>n.length===e[d].length))throw new Error("Given column widths do not match number of header rows/columns");i.forEach((n,d)=>n.forEach((u,g)=>{u.style.width=`${e[d][g]}px`,u.style.minWidth=`${e[d][g]}px`}))}getStickyColumnsHeights(){return this.getRowsAndColumns(".sticky").map(e=>e.map(i=>i.getBoundingClientRect().height))}setStickyColumnHeights(e){let i=this.getRowsAndColumns(".sticky");if(i.length!==e.length||!i.every((n,d)=>n.length===e[d].length))throw new Error("Given column heights do not match number of sticky header columns");i.forEach((n,d)=>n.forEach((u,g)=>{u.style.height=`${e[d][g]}px`})),this.getRows().forEach((n,d)=>{let u=e[d].reduce((g,M)=>Math.max(g,M),0);n.style.height=`${u}px`})}getRowsAndColumns(e){return this.getRows().map(i=>Array.from(i.querySelectorAll(`th:not(.header-mobile)${e??""}`)))}getRows(){return Array.from(this.element.nativeElement.querySelectorAll("tr"))}static{this.\u0275fac=function(i){return new(i||t)(v(H),v(ft))}}static{this.\u0275cmp=x({type:t,selectors:[["thead","bkdTestEditGradesHeader",""]],hostVars:2,hostBindings:function(i,n){i&2&&se("sticky",n.sticky)},inputs:{selectedTest:"selectedTest",sticky:"sticky",shown:"shown"},outputs:{publish:"publish",unpublish:"unpublish"},standalone:!0,features:[y],attrs:Xn,decls:40,vars:29,consts:[[1,"header-collapsible"],["colspan","3",1,"desktop","sticky"],[3,"filterChange","filter"],["container","body",1,"test-grade","grade","test-info-desktop",3,"ngClass"],["container","body","colspan","3",1,"test-grade","header-mobile","test-info-mobile",3,"ngClass"],[1,"student-name",3,"click"],[1,"d-flex"],[1,"column-title"],[1,"sort-direction","ms-1"],[1,"student-grade","desktop",3,"click","ngClass"],[1,"border-end","student-average","desktop",3,"click"],["container","body",1,"test-grade",3,"ngClass"],[3,"toggleHeader","publish","unpublish","test","expanded"],[1,"column-title","me-3","point-input-container"],[3,"click"]],template:function(i,n){if(i&1){let d=$();R(0),o(1,"async"),R(2),o(3,"async"),R(4),o(5,"async"),a(6,"tr",0)(7,"th",1)(8,"bkd-test-table-filter",2),_("filterChange",function(g){return S(d),T(n.state.setFilter(g))}),r()(),W(9,es,2,3,"th",3,rt),W(11,ts,2,3,"th",4,rt),r(),a(13,"tr")(14,"th",5),_("click",function(){return S(d),T(n.state.sortBy("FullName"))}),a(15,"div",6)(16,"div",7),c(17),o(18,"translate"),r(),a(19,"div",8),c(20),o(21,"async"),r()()(),a(22,"th",9),_("click",function(){return S(d),T(n.state.sortBy("FinalGrade"))}),a(23,"div",6)(24,"div",7),c(25),o(26,"translate"),r(),a(27,"div",8),c(28),o(29,"async"),r()()(),a(30,"th",10),_("click",function(){return S(d),T(n.state.sortBy("TestsMean"))}),a(31,"div",6)(32,"div",7),c(33),o(34,"translate"),r(),a(35,"div",8),c(36),o(37,"async"),r()()(),W(38,ns,10,8,"th",11,rt),r()}if(i&2){let d=p(1,8,n.state.filteredTests$),u=p(3,10,n.state.filter$);s(4),q(p(5,12,n.state.expandedHeader$)),s(4),m("filter",u),s(),z(d),s(2),z(d),s(6),f(" ",p(18,15,"tests.student.name")," "),s(3),f(" ",p(21,17,n.state.getSortingChar$("FullName"))," "),s(2),m("ngClass",F(27,Zn,n.selectedTest===void 0)),s(3),f(" ",p(26,19,"tests.grade")," "),s(3),f(" ",p(29,21,n.state.getSortingChar$("FinalGrade"))," "),s(5),f(" ",p(34,23,"tests.mean")," "),s(3),f(" ",p(37,25,n.state.getSortingChar$("TestsMean"))," "),s(2),z(d)}},dependencies:[j,ae,k,P,ji,Ni],styles:["[_nghost-%COMP%]{--student-name-column-width: 225px;--student-grade-column-width: 147px;--student-average-column-width: 100px;--test-grade-column-width: 300px;--point-input-size: 4em;--student-grade-column-offset: var(--student-name-column-width);--student-average-column-offset: calc( var(--student-grade-column-offset) + var(--student-grade-column-width) );--test-columns-offset: calc( var(--student-average-column-offset) + var(--student-average-column-width) )}[_nghost-%COMP%] #stickyHeader[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .scroll-test-table[_ngcontent-%COMP%]{display:table-caption;overflow-y:auto;height:auto}@media (min-width: 1000px){[_nghost-%COMP%]{--student-name-column-width: 275px}}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:1rem}td[_ngcontent-%COMP%]{vertical-align:middle}@media (min-width: 576px){[_nghost-%COMP%]{--point-input-size: 5em}}tr[_ngcontent-%COMP%]:not(.header-collapsible) th.test-grade[_ngcontent-%COMP%], td.test-grade[_ngcontent-%COMP%], th.student-grade[_ngcontent-%COMP%], td.student-grade[_ngcontent-%COMP%]{width:calc(var(--point-input-size) + 13ch + 3rem)}@media (max-width: 810px){.desktop[_ngcontent-%COMP%]:not(.selected), .student-grade[_ngcontent-%COMP%]:not(.selected), .student-average[_ngcontent-%COMP%], .test-grade[_ngcontent-%COMP%]:not(.selected){display:none}table[_ngcontent-%COMP%], tbody[_ngcontent-%COMP%], thead[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}th[_ngcontent-%COMP%], tr[_ngcontent-%COMP%]{display:flex;width:100%}.student-name[_ngcontent-%COMP%]{flex:1;display:block}.test-grade[_ngcontent-%COMP%]{flex:none;display:block}}@media (min-width: 811px){.mobile[_ngcontent-%COMP%]{display:none}.student-name[_ngcontent-%COMP%]{width:var(--student-name-column-width);min-width:var(--student-name-column-width);max-width:var(--student-name-column-width)}.student-grade[_ngcontent-%COMP%]{width:var(--student-grade-column-width);min-width:var(--student-grade-column-width);max-width:var(--student-grade-column-width)}.student-average[_ngcontent-%COMP%]{width:var(--student-average-column-width);min-width:var(--student-average-column-width);max-width:var(--student-average-column-width)}.test-grade[_ngcontent-%COMP%]{min-width:var(--test-grade-column-width);max-width:var(--test-grade-column-width)}th.sticky[_ngcontent-%COMP%], td.sticky[_ngcontent-%COMP%]{position:sticky;left:0;background-color:#fff}th.sticky.student-grade[_ngcontent-%COMP%], td.sticky.student-grade[_ngcontent-%COMP%]{left:var(--student-grade-column-offset)}th.sticky.student-average[_ngcontent-%COMP%], td.sticky.student-average[_ngcontent-%COMP%]{left:var(--student-average-column-offset)}}@media (max-width: 1200px){[_nghost-%COMP%]{--student-average-column-width: 1px}.student-average[_ngcontent-%COMP%]{padding:0;overflow:hidden}}@media (min-width: 1201px){.student-average-inline[_ngcontent-%COMP%]{display:none}}.sticky[_nghost-%COMP%]{position:fixed;top:0;left:0;z-index:1000;display:none}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}tr[_ngcontent-%COMP%] th.test-info-desktop[_ngcontent-%COMP%]{display:none!important}@media (min-width: 811px){.sticky.shown[_nghost-%COMP%]{display:table-header-group}tr[_ngcontent-%COMP%] th.test-info-mobile[_ngcontent-%COMP%]{display:none!important}tr[_ngcontent-%COMP%] th.test-info-desktop[_ngcontent-%COMP%]{display:table-cell!important}tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:none;padding-top:.25rem;padding-bottom:.25rem;border-top:initial}.sticky[_nghost-%COMP%]{margin-left:var(--test-columns-offset)}.sticky[_nghost-%COMP%] th.sticky[_ngcontent-%COMP%]{position:fixed}}"],changeDetection:0})}}return t})();var ss=(t,l)=>l.student.Id,as=(t,l)=>l.Id,rs=(t,l)=>l.id,Wi=t=>({selected:t}),os=t=>["student",t,"grades"],ds=t=>({"visible-on-mobile":t});function ls(t,l){if(t&1){let e=$();a(0,"bkd-grade-select",20),o(1,"async"),o(2,"async"),_("gradeIdSelected",function(n){S(e);let d=h(2);return T(d.state.overwriteFinalGrade(n))}),r()}if(t&2){let e=h().$implicit,i=h();m("options",p(1,4,i.state.gradingOptionsForCourse$()))("valueId",e.finalGrade.finalGradeId)("gradeId",e.finalGrade.id)("disabled",p(2,6,i.isEditFinalGradesAllowed(e))===!1)}}function ps(t,l){if(t&1&&(a(0,"div"),c(1),r()),t&2){let e=h().$implicit;s(),f(" ",e.finalGrade.freeHandGrade," ")}}function cs(t,l){if(t&1&&(R(0),a(1,"td",12),E(2,"bkd-grade",21),o(3,"async"),r()),t&2){let e=l.$implicit,i=l.$index,n=h(),d=n.$implicit,u=n.$index,g=h(),M=e.grade;s(),m("ngClass",g.selectedTest!==void 0&&M.test.Id===g.selectedTest.Id?"selected":""),s(),m("grade",M)("gradeOptions",p(3,5,g.state.gradingOptionsForTest$(M.test)))("student",d.student)("tabIndex",(1+i)*1e3+u)}}function ms(t,l){if(t&1&&(a(0,"tr")(1,"td",15)(2,"a",16)(3,"div"),c(4),r(),a(5,"div",9),c(6),o(7,"translate"),o(8,"decimalOrDash"),r()()(),a(9,"td",17),I(10,ls,3,8,"bkd-grade-select",18)(11,ps,2,1,"div"),r(),a(12,"td",19),c(13),o(14,"decimalOrDash"),r(),W(15,cs,4,7,"td",12,rs),r()),t&2){let e=l.$implicit,i=h();s(2),m("routerLink",F(16,os,e.student.Id)),s(2),C(e.student.FullName),s(2),Ze(" ",p(7,8,"tests.mean"),": ",O(8,10,e.finalGrade==null?null:e.finalGrade.average,"1-3")," "),s(3),m("ngClass",F(18,Wi,i.selectedTest===void 0)),s(),w(e.finalGrade&&!e.finalGrade.freeHandGrade?10:-1),s(),w(e.finalGrade&&e.finalGrade.freeHandGrade?11:-1),s(2),f(" ",O(14,13,e.finalGrade==null?null:e.finalGrade.average,"1-3")," "),s(2),z(i.getGrades(e))}}function us(t,l){if(t&1&&(a(0,"td",12),E(1,"bkd-average-grades",22),r()),t&2){let e=l.$implicit,i=h();m("ngClass",e.Id===(i.selectedTest==null?null:i.selectedTest.Id)||e.Id===(i.selectedTest==null?null:i.selectedTest.Id)?"selected":""),s(),m("test",e)}}function hs(t,l){if(t&1){let e=$();a(0,"button",23),_("click",function(){S(e);let n=h();return T(n.setAverageAsFinalGrade())}),c(1),o(2,"translate"),r()}if(t&2){let e=h(),i=B(2);m("ngClass",F(4,ds,!i||!e.selectedTest)),s(),f(" ",p(2,2,"tests.set-final-grade")," ")}}var zi=(()=>{class t{constructor(e,i){this.state=e,this.modalService=i}ngOnInit(){this.state.setSorting({key:"FullName",ascending:!0})}setAverageAsFinalGrade(){this.state.course$.pipe(ne(1)).subscribe(e=>this.state.setAveragesAsFinalGrades({CourseIds:[e.Id]}))}isEditFinalGradesAllowed(e){return this.state.course$.pipe(b(i=>!!(qe(i)?.value&&e.finalGrade?.canGrade)))}getGrades(e){return e.grades.flatMap(i=>({id:`${e.student.Id}-${i.test.Id}`,grade:i}))}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))}calculatePointsAverage(e){return this.safeAverage(e,Ue)}calculateGradeAverage(e){return this.safeAverage(e,We)}safeAverage(e,i){try{return i(e).toString()}catch{return"\u2013"}}openModal(e){let i=this.modalService.open(Fi);return i.componentInstance.test=e,i}onCloseModal(e,i){e.result.then(n=>{n&&i()},()=>{})}static{this.\u0275fac=function(i){return new(i||t)(v(H),v(ze))}}static{this.\u0275cmp=x({type:t,selectors:[["bkd-test-edit-grades"]],inputs:{selectedTest:"selectedTest"},standalone:!0,features:[pe([we]),y],decls:39,vars:42,consts:[["inlineHeader",""],["stickyHeader",""],[1,"table-responsive-wrapper"],["bkdTestEditGradesHeaderSticky","",1,"table","table-hover","h-100",3,"inlineHeader","stickyHeader"],["bkdTestEditGradesHeader","",2,"display","block",3,"publish","unpublish","selectedTest"],["id","stickyHeader","bkdTestEditGradesHeader","",3,"publish","unpublish","sticky","selectedTest"],["id","scrollTestTable",1,"scroll-test-table"],[1,"sticky","student-name"],[1,"d-flex","flex-column"],[1,"student-average-inline"],[1,"desktop","sticky","student-grade",3,"ngClass"],[1,"desktop","border-end","sticky","student-average"],[1,"test-grade",3,"ngClass"],[1,"action-buttons"],["data-testId","apply-average-button","type","button",1,"apply-average-button","btn","btn-primary","m-3",3,"ngClass"],[1,"student-name"],[3,"routerLink"],[1,"student-grade",3,"ngClass"],[3,"options","valueId","gradeId","disabled"],[1,"border-end","sticky","student-average"],[3,"gradeIdSelected","options","valueId","gradeId","disabled"],[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,n){if(i&1){let d=$();R(0),o(1,"async"),R(2),o(3,"async"),R(4),o(5,"async"),a(6,"div",2)(7,"table",3)(8,"thead",4,0),_("publish",function(g){return S(d),T(n.publish(g))})("unpublish",function(g){return S(d),T(n.unpublish(g))}),r(),a(10,"thead",5,1),_("publish",function(g){return S(d),T(n.publish(g))})("unpublish",function(g){return S(d),T(n.unpublish(g))}),r(),a(12,"tbody",6),W(13,ms,17,20,"tr",null,ss),a(15,"tr")(16,"td",7)(17,"div",8)(18,"div"),c(19),o(20,"translate"),r(),a(21,"div",9),c(22),o(23,"translate"),o(24,"async"),o(25,"decimalOrDash"),r()()(),a(26,"td",10),c(27),o(28,"async"),o(29,"decimalOrDash"),r(),a(30,"td",11),c(31),o(32,"async"),o(33,"decimalOrDash"),r(),W(34,us,2,2,"td",12,as),r()()(),a(36,"div",13),I(37,hs,3,6,"button",14),o(38,"async"),r()()}if(i&2){let d=le(9),u=le(11),g=p(1,12,n.state.filteredTests$);s(2),q(p(3,14,n.state.hasTests$));let M=p(5,17,n.state.studentGrades$);s(5),m("inlineHeader",d)("stickyHeader",u),s(),m("selectedTest",n.selectedTest),s(2),m("sticky",!0)("selectedTest",n.selectedTest),s(3),z(M),s(6),C(p(20,19,"tests.average")),s(3),Ze(" ",p(23,21,"tests.mean"),": ",O(25,25,p(24,23,n.state.meanOfStudentGradesForCourse$),"1-3")," "),s(4),m("ngClass",F(40,Wi,n.selectedTest===void 0)),s(),f(" ",O(29,30,p(28,28,n.state.meanOfFinalGradesForCourse$),"1-3")," "),s(4),f(" ",O(33,35,p(32,33,n.state.meanOfStudentGradesForCourse$),"1-3")," "),s(3),z(g),s(3),w(p(38,38,n.state.canSetFinalGrade$)?37:-1)}},dependencies:[ae,re,Di,Ri,Bi,j,k,P,Xt,Li,Ui],styles:["[_nghost-%COMP%]{--student-name-column-width: 225px;--student-grade-column-width: 147px;--student-average-column-width: 100px;--test-grade-column-width: 300px;--point-input-size: 4em;--student-grade-column-offset: var(--student-name-column-width);--student-average-column-offset: calc( var(--student-grade-column-offset) + var(--student-grade-column-width) );--test-columns-offset: calc( var(--student-average-column-offset) + var(--student-average-column-width) )}[_nghost-%COMP%] #stickyHeader[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .scroll-test-table[_ngcontent-%COMP%]{display:table-caption;overflow-y:auto;height:auto}@media (min-width: 1000px){[_nghost-%COMP%]{--student-name-column-width: 275px}}th[_ngcontent-%COMP%], td[_ngcontent-%COMP%]{padding:1rem}td[_ngcontent-%COMP%]{vertical-align:middle}@media (min-width: 576px){[_nghost-%COMP%]{--point-input-size: 5em}}tr[_ngcontent-%COMP%]:not(.header-collapsible) th.test-grade[_ngcontent-%COMP%], td.test-grade[_ngcontent-%COMP%], th.student-grade[_ngcontent-%COMP%], td.student-grade[_ngcontent-%COMP%]{width:calc(var(--point-input-size) + 13ch + 3rem)}@media (max-width: 810px){.desktop[_ngcontent-%COMP%]:not(.selected), .student-grade[_ngcontent-%COMP%]:not(.selected), .student-average[_ngcontent-%COMP%], .test-grade[_ngcontent-%COMP%]:not(.selected){display:none}table[_ngcontent-%COMP%], tbody[_ngcontent-%COMP%], thead[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}th[_ngcontent-%COMP%], tr[_ngcontent-%COMP%]{display:flex;width:100%}.student-name[_ngcontent-%COMP%]{flex:1;display:block}.test-grade[_ngcontent-%COMP%]{flex:none;display:block}}@media (min-width: 811px){.mobile[_ngcontent-%COMP%]{display:none}.student-name[_ngcontent-%COMP%]{width:var(--student-name-column-width);min-width:var(--student-name-column-width);max-width:var(--student-name-column-width)}.student-grade[_ngcontent-%COMP%]{width:var(--student-grade-column-width);min-width:var(--student-grade-column-width);max-width:var(--student-grade-column-width)}.student-average[_ngcontent-%COMP%]{width:var(--student-average-column-width);min-width:var(--student-average-column-width);max-width:var(--student-average-column-width)}.test-grade[_ngcontent-%COMP%]{min-width:var(--test-grade-column-width);max-width:var(--test-grade-column-width)}th.sticky[_ngcontent-%COMP%], td.sticky[_ngcontent-%COMP%]{position:sticky;left:0;background-color:#fff}th.sticky.student-grade[_ngcontent-%COMP%], td.sticky.student-grade[_ngcontent-%COMP%]{left:var(--student-grade-column-offset)}th.sticky.student-average[_ngcontent-%COMP%], td.sticky.student-average[_ngcontent-%COMP%]{left:var(--student-average-column-offset)}}@media (max-width: 1200px){[_nghost-%COMP%]{--student-average-column-width: 1px}.student-average[_ngcontent-%COMP%]{padding:0;overflow:hidden}}@media (min-width: 1201px){.student-average-inline[_ngcontent-%COMP%]{display:none}}tbody[_ngcontent-%COMP%] td.student-name[_ngcontent-%COMP%]{padding-right:0}tbody[_ngcontent-%COMP%] td.student-name[_ngcontent-%COMP%], tbody[_ngcontent-%COMP%] td.student-name[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}tbody[_ngcontent-%COMP%] td.student-name[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}tbody[_ngcontent-%COMP%] td.student-name[_ngcontent-%COMP%] a[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child{text-decoration:underline}tbody[_ngcontent-%COMP%] td.student-name[_ngcontent-%COMP%] a[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child:hover{text-decoration-color:#ea161f}.student-average-inline[_ngcontent-%COMP%]{color:#4e4e4ef2;font-size:.875rem;line-height:1}@media (min-width: 811px){.table-responsive-wrapper[_ngcontent-%COMP%]{display:block;overflow-x:auto}table[_ngcontent-%COMP%]{border-collapse:separate;border-spacing:0}.action-buttons[_ngcontent-%COMP%]{position:sticky;left:0}}@media (max-width: 810px){.apply-average-button[_ngcontent-%COMP%]:not(.visible-on-mobile){display:none!important}}"]})}}return t})();var gs=()=>["/events"],fs=t=>({count:t});function vs(t,l){if(t&1&&(a(0,"div",7),c(1),o(2,"translate"),r()),t&2){let e=h();s(),f(" ",O(2,1,e.course.ParticipatingStudents.length===1?"courses.registration":"courses.registrations",F(4,fs,e.course.ParticipatingStudents.length))," ")}}var qi=(()=>{class t{constructor(e){this.reportsService=e,this.course$=new A(null),this.reports$=this.course$.pipe(b(i=>i?.Id),J(),L(i=>i?this.reportsService.getCourseReports(i):K([])),mt([]))}ngOnChanges(e){e.course&&this.course$.next(e.course.currentValue)}getDesignation(){return Ye(this.course)}static{this.\u0275fac=function(i){return new(i||t)(v(ti))}}static{this.\u0275cmp=x({type:t,selectors:[["bkd-tests-header"]],inputs:{course:"course"},standalone:!0,features:[he,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"],[1,"additional-info"]],template:function(i,n){i&1&&(a(0,"bkd-backlink",0)(1,"div",1)(2,"a",2)(3,"i",3),c(4,"add"),r()(),E(5,"bkd-reports-link",4),o(6,"async"),E(7,"div",5),r()(),a(8,"div",6)(9,"h1"),c(10),r(),I(11,vs,3,6,"div",7),r()),i&2&&(m("link",fe(6,gs)),s(5),m("reports",p(6,4,n.reports$)),s(5),C(n.getDesignation()),s(),w(n.course.ParticipatingStudents?11:-1))},dependencies:[si,re,Nt,j,k,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}"]})}}return t})();var _s=()=>[],Cs=t=>({"visible-on-mobile":t});function bs(t,l){t&1&&E(0,"bkd-spinner")}function xs(t,l){if(t&1){let e=$();a(0,"bkd-select",4),_("valueChange",function(n){S(e);let d=h(2);return T(n&&d.testSelected(n))}),r(),E(1,"bkd-test-edit-grades",5)}if(t&2){h(2);let e=B(6),i=B(8),n=B(10);m("options",e)("value",i)("allowEmpty",!1),s(),m("selectedTest",n)}}function ys(t,l){t&1&&(a(0,"p",2),c(1),o(2,"translate"),r()),t&2&&(s(),C(p(2,1,"tests.no-tests")))}function Ss(t,l){if(t&1&&(a(0,"a",3),o(1,"async"),a(2,"i",6),c(3,"arrow_right_alt"),r(),a(4,"span",7),c(5),o(6,"translate"),r()()),t&2){let e=h(2),i=B(4),n=B(10);de("href",p(1,3,e.buildLinkToRatingOverview()),Pe),m("ngClass",F(7,Cs,!i||!n)),s(5),C(p(6,5,"tests.link-to-rating-overview"))}}function Ts(t,l){if(t&1&&(E(0,"bkd-tests-header",1),I(1,xs,2,4)(2,ys,3,3,"p",2)(3,Ss,7,9,"a",3),o(4,"async")),t&2){let e=h(),i=B(0),n=B(2);m("course",i),s(),w(n.length>0?1:2),s(2),w(p(4,3,e.state.canSetFinalGrade$)?3:-1)}}var Yi=(()=>{class t{constructor(e,i,n){this.settings=e,this.state=i,this.translate=n,this.selectTest$=new ee,this.testOptions$=this.state.tests$.pipe(b(d=>[{Key:-1,Value:this.translate.instant("tests.grade")},...d.map(u=>({Key:u.Id,Value:u.Designation}))]),J()),this.selectedTestId$=Me(this.selectTest$,this.state.tests$.pipe(ne(1),b(d=>d[0]?.Id))).pipe(J()),this.selectedTest$=this.selectedTestId$.pipe(L(d=>this.state.tests$.pipe(b(u=>u.find(g=>g.Id===d)))),J())}testSelected(e){this.selectTest$.next(e)}buildLinkToRatingOverview(){return this.state.course$.pipe(ne(1),b(e=>this.settings.eventlist.evaluation.replace(":id",String(e.Id))))}static{this.\u0275fac=function(i){return new(i||t)(v(_e),v(H),v(ie))}}static{this.\u0275cmp=x({type:t,selectors:[["bkd-tests-list"]],standalone:!0,features:[y],decls:16,vars:22,consts:[[1,"bkd-container"],[3,"course"],[1,"mt-3","px-3"],[1,"rating-overview","d-flex","justify-content-end","pe-3","border-top","pt-3",3,"ngClass","href"],["width","100%",1,"tests-dropdown",3,"valueChange","options","value","allowEmpty"],[3,"selectedTest"],[1,"material-icons","fw-bold"],[1,"ps-1"]],template:function(i,n){if(i&1&&(R(0),o(1,"async"),R(2),o(3,"async"),R(4),o(5,"async"),R(6),o(7,"async"),R(8),o(9,"async"),R(10),o(11,"async"),a(12,"div",0),I(13,bs,1,0,"bkd-spinner"),o(14,"async"),I(15,Ts,5,5),r()),i&2){let d;q(p(1,1,n.state.course$)),s(2),q((d=p(3,4,n.state.tests$))!==null&&d!==void 0?d:fe(21,_s)),s(2),q(p(5,7,n.state.hasTests$)),s(2),q(p(7,10,n.testOptions$)),s(2),q(p(9,13,n.selectedTestId$)),s(2),q(p(11,16,n.selectedTest$)),s(3),w(p(14,19,n.state.loading$)?13:15)}},dependencies:[qi,Te,zi,ae,Se,j,k,P],styles:[".tests-dropdown[_ngcontent-%COMP%]{display:block;padding:1rem 0}@media (min-width: 811px){.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: 810px){a.rating-overview[_ngcontent-%COMP%]:not(.visible-on-mobile){display:none!important}}"]})}}return t})();var Qe=(()=>{class t{constructor(e,i){this.state=e,this.route=i,this.courseId$=this.route.paramMap.pipe(b(n=>Number(n.get("id"))),J()),this.destroy$=new ee}ngOnInit(){this.courseId$.pipe(oe(this.destroy$)).subscribe(e=>this.state.setCourseId(e))}ngOnDestroy(){this.destroy$.next()}static{this.\u0275fac=function(i){return new(i||t)(v(H),v(ve))}}static{this.\u0275cmp=x({type:t,selectors:[["bkd-tests"]],standalone:!0,features:[pe([H]),y],decls:1,vars:0,template:function(i,n){i&1&&E(0,"router-outlet")},dependencies:[$e]})}}return t})();var cd=[{path:"",component:_i,children:[{path:"",component:vi},{path:"current",component:fi},{path:":id",component:Qe,children:[{path:"tests",component:Yi}]},{path:":id/tests/:testId/edit",component:Qe,children:[{path:"",component:$i}]},{path:":id/tests/add",component:Qe,children:[{path:"",component:Oi}]},{path:":id/tests",children:[ai]}]}];export{cd as EVENTS_ROUTES}; diff --git a/public/apps/webapp-schulverwaltung/chunk-RQFEXCIP.js b/public/apps/webapp-schulverwaltung/chunk-RQFEXCIP.js deleted file mode 100644 index ff3e0e76..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-RQFEXCIP.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as m,$a as y,Ga as h,Ha as v,Ia as s,Ja as _,Sa as r,Sb as E,Ta as l,Ya as C,_a as p,ha as b,ia as f,jb as c,ra as g,tb as k,ua as u,ud as x}from"./chunk-XTHSYQMN.js";function z(e,t,a){return a?e.filter(S(t,a)):e}function S(e,t){let a=I(t);return o=>e.some(n=>w(o[n],a))}function w(e,t){return e?I(String(e)).includes(t):!1}function I(e){return x(e.toLowerCase())}function T(e,t){if(e&1){let a=C();r(0,"button",5),p("click",function(){b(a);let n=y();return f(n.valueChange.emit(""))}),r(1,"i",2),c(2,"clear"),l()()}}var j=(()=>{let t=class t{constructor(){this.value="",this.disabled=!1,this.valueChange=new g}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=m({type:t,selectors:[["bkd-resettable-input"]],inputs:{value:"value",disabled:"disabled",placeholder:"placeholder",label:"label"},outputs:{valueChange:"valueChange"},standalone:!0,features:[k],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(n,i){n&1&&(r(0,"div",0)(1,"span",1)(2,"i",2),c(3,"search"),l()(),r(4,"input",3),p("keyup",function(d){return i.valueChange.emit(d.target==null?null:d.target.value)}),l(),h(5,T,3,0,"button",4),l()),n&2&&(u(4),_("has-value",i.value),s("value",i.value)("disabled",i.disabled),v("placeholder",i.placeholder)("aria-label",i.label),u(),s("ngIf",i.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 e=t;return e})();export{z as a,j as b}; diff --git a/public/apps/webapp-schulverwaltung/chunk-RU74B4AX.js b/public/apps/webapp-schulverwaltung/chunk-RU74B4AX.js new file mode 100644 index 00000000..1499d1ad --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-RU74B4AX.js @@ -0,0 +1 @@ +import{p as A}from"./chunk-VGJCKFZL.js";import{a as B}from"./chunk-KK2SHN2W.js";import{a as V}from"./chunk-B6WYZ7BT.js";import{Cc as D,Dc as R,Gd as b,Ic as S,Id as x,P as m,S as w,T as P,Wc as Y,X as M,Yc as $,_ as d,a as p,b as h,ca as j,gc as z,ha as U,k as W,l as g,n as u,p as O,qa as T,ra as F,t as K,ta as k,x as N,xa as y}from"./chunk-IFJN5CDK.js";function _(t,e,o,i){let n=window&&!!window.document&&window.document.documentElement,r=n&&e?window:o;if(t&&(r=t&&n&&typeof t=="string"?tt(t,o.nativeElement,i):t,!r))throw new Error("ngx-infinite-scroll {resolveContainerElement()}: selector for");return r}function tt(t,e,o){return(o?window.document:e).querySelector(t)}function E(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"},v=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,o){return!!(t&&e||!o&&e)}function rt({windowElement:t,axis:e}){return lt({axis:e,isWindow:st(t)},t)}function lt(t,e){let o=t.isWindow||e&&!e.nativeElement?e:e.nativeElement;return h(p({},t),{container:o})}function st(t){return["Window","global"].some(o=>Object.prototype.toString.call(t).includes(o))}function I(t,e){return t?e.document.documentElement:null}function G(t,e){let o=ft(e);return e.isWindow?ct(o,t,e):at(o,t,e)}function ct(t,e,o){let{axis:i,container:n,isWindow:r}=o,{offsetHeightKey:l,clientHeightKey:c}=X(i),a=t+q(I(r,n),i,r),s=L(e.nativeElement,r,l,c),f=ut(e.nativeElement,i,r)+s;return{height:t,scrolled:a,totalToScroll:f,isWindow:r}}function at(t,e,o){let{axis:i,container:n}=o,r=n[i.scrollTopKey()],l=n[i.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:o}){let{offsetHeightKey:i,clientHeightKey:n}=X(o);return L(t,e,i,n)}function L(t,e,o,i){if(isNaN(t[o])){let n=I(e,t);return n?n[i]:0}else return t[o]}function ut(t,e,o){let i=e.topKey();if(t.getBoundingClientRect)return t.getBoundingClientRect()[i]+q(t,e,o)}function q(t,e,o){let i=e.pageYOffsetKey(),n=e.scrollTopKey(),r=e.offsetTopKey();return isNaN(window.pageYOffset)?I(o,t)[n]:t.ownerDocument?t.ownerDocument.defaultView[i]:t[r]}function dt(t,e={down:0,up:0},o){let i,n;if(t.totalToScroll<=0)return!1;let r=t.isWindow?t.scrolled:t.height+t.scrolled;if(o)i=(t.totalToScroll-r)/t.totalToScroll,n=(e?.down?e.down:0)/10;else{let c=t.scrolled+(t.totalToScroll-r);i=t.scrolled/c,n=(e?.up?e.up:0)/10}return i<=n}function pt(t,e){return tg(G(i,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=K(t.container,"scroll");return t.throttle&&(e=e.pipe(P(t.throttle,void 0,{leading:!0,trailing:!0}))),e}function St(t,e,o){let{scrollDown:i,fire:n}=ht(t,e,o);return{scrollDown:i,fire:n,stats:e}}var H={DOWN:"[NGX_ISE] DOWN",UP:"[NGX_ISE] UP"};function wt(t){let{scrollDown:e,stats:{scrolled:o}}=t;return{type:e?H.DOWN:H.UP,payload:{currentScrollPosition:o}}}var Nt=(()=>{class t{constructor(o,i){this.element=o,this.zone=i,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:i,infiniteScrollDistance:n}){let r=E(o),l=E(i),c=E(n),a=!l&&!this.infiniteScrollDisabled||l&&!i.currentValue||c;(r||l||c)&&(this.destroyScroller(),a&&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:i}){let n=o===H.DOWN?this.scrolled:this.scrolledUp;Tt(n)&&this.zone.run(()=>n.emit(i))}destroyScroller(){this.disposeScroller&&this.disposeScroller.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(y(k),y(F))}}static{this.\u0275dir=j({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"},standalone:!0,features:[U]})}}return t})();function Tt(t){return t.observed??t.observers.length>0}function Ut(t){return Object.keys(t).reduce((e,o)=>{let i=yt(t[o]);return i?h(p({},e),{[o]:i}):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=(()=>{class t extends B{constructor(o,i,n,r){super(o,i,Z,"EducationalEvents"),this.translate=n,this.toastService=r,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(i=>i.map(n=>({Key:n.Id,Value:`${n.Designation} (${n.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(i=>i.length===0?(this.toastService.error(this.translate.instant("global.rest-errors.notfound-message"),this.translate.instant("global.rest-errors.notfound-title")),W):g({Key:i[0].Id,Value:`${i[0].Designation} (${i[0].Number})`})))}static{this.\u0275fac=function(i){return new(i||t)(d(z),d($),d(x),d(V))}}static{this.\u0275prov=M({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();export{Ut as a,Nt as b,qt as c}; diff --git a/public/apps/webapp-schulverwaltung/chunk-S2U6O7J2.js b/public/apps/webapp-schulverwaltung/chunk-S2U6O7J2.js deleted file mode 100644 index 79048fb4..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-S2U6O7J2.js +++ /dev/null @@ -1,2 +0,0 @@ -import{b as Te}from"./chunk-KDAC4GJ5.js";import{b as xe}from"./chunk-Y4QYVF5K.js";import"./chunk-HII3S2DL.js";import{a as Se,c as Me}from"./chunk-SOHFFTKU.js";import{a as be}from"./chunk-UX5TA32W.js";import{$ as g,$a as _,$c as $,Ab as u,Bb as f,Bd as ve,Fd as Ce,G as z,Ga as h,Gd as E,Ha as T,Hb as oe,Hd as P,I as B,Ia as l,Id as _e,Ja as U,L,M as H,O as I,Q as N,Rb as O,Sa as p,Sb as w,T as A,Ta as a,Ua as b,V as Y,Vb as se,Vc as ae,W as J,Wc as le,Xc as pe,Z as V,_a as X,a as D,ad as ce,b as R,dd as de,e as K,ed as me,f as W,id as ue,jb as y,jd as fe,k as j,kb as S,lb as k,m as M,pb as Z,pc as re,qb as ee,qd as ge,ra as Q,rb as te,rd as G,sb as ie,sd as he,tb as v,ua as r,v as q,va as C,wb as ne,zd as ye}from"./chunk-XTHSYQMN.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-SCJZRDJE.js b/public/apps/webapp-schulverwaltung/chunk-SCJZRDJE.js new file mode 100644 index 00000000..101707d6 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-SCJZRDJE.js @@ -0,0 +1 @@ +import{t as N,x as z}from"./chunk-LGOOC47H.js";import{$c as F,Ab as P,D as _,Ed as D,Gb as l,H as u,Ha as g,Hb as p,J as h,Jd as H,Kd as K,La as O,Ma as f,P as T,Ra as y,Wa as a,Xa as o,Zb as k,aa as I,ab as $,cb as C,cd as w,db as x,g as m,gd as V,ha as M,ia as S,ja as E,n as c,nb as d,ud as B,wa as r,x as v}from"./chunk-IFJN5CDK.js";function A(n,s){if(n&1){let e=$();a(0,"button",6),C("click",function(t){S(e);let b=x();return E(b.modelChange(t))}),a(1,"i",2),d(2,"clear"),o()()}}function j(n,s){n&1&&(a(0,"div",5)(1,"div",7)(2,"span",8),d(3,"Loading..."),o()()())}var q=300,U=3,oe=(()=>{class n{constructor(){this.selectedItem$=new m(null),this.placeholder="shared.typeahead.default-placeholder",this.valueChange=this.selectedItem$.pipe(c(e=>e?e.Key:null),u()),this.componentId=D("bkd-typeahead-"),this.loading$=new m(!1),this.search=e=>e.pipe(G(U,q),T(this.fetchItems.bind(this)))}ngOnChanges(e){e.value&&e.value.currentValue&&e.value.currentValue!==this.selectedItemKey&&this.fetchItem(e.value.currentValue).subscribe(i=>{this.modelChange(i)})}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(h(()=>this.loading$.next(!1)))}fetchItem(e){return this.loading$.next(!0),this.typeaheadService.getTypeaheadItemByKey(e).pipe(h(()=>this.loading$.next(!1)))}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=I({type:n,selectors:[["bkd-typeahead"]],inputs:{typeaheadService:"typeaheadService",placeholder:"placeholder",value:"value",additionalHttpParams:"additionalHttpParams"},outputs:{valueChange:"valueChange"},standalone:!0,features:[M,P],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"],["type","button",1,"btn","btn-link","text-decoration-none"],[1,"spinner-container"],["type","button",1,"btn","btn-link","text-decoration-none",3,"click"],["role","status",1,"spinner-border","spinner-border-sm"],[1,"visually-hidden"]],template:function(i,t){i&1&&(a(0,"div",0)(1,"span",1)(2,"i",2),d(3,"search"),o()(),a(4,"input",3),l(5,"async"),l(6,"translate"),l(7,"translate"),C("ngModelChange",function(L){return t.modelChange(L)}),o(),g(8,A,3,0,"button",4),o(),g(9,j,4,0,"div",5),l(10,"async")),i&2&&(r(),f("id",t.componentId),r(3),f("ngbTypeahead",t.search)("inputFormatter",t.format)("resultFormatter",t.format)("ngModel",p(5,10,t.selectedItem$)),O("placeholder",p(6,12,t.placeholder))("aria-label",p(7,14,t.placeholder))("aria-describedby",t.componentId),r(4),y(t.value?8:-1),r(),y(p(10,16,t.loading$)?9:-1))},dependencies:[N,B,F,w,V,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})}}return n})();function G(n,s){return e=>e.pipe(_(s),c(R),u(),v(z(n)))}function R(n){return n.trim().toLowerCase()}export{oe as a}; diff --git a/public/apps/webapp-schulverwaltung/chunk-SOH5T2AJ.js b/public/apps/webapp-schulverwaltung/chunk-SOH5T2AJ.js deleted file mode 100644 index f095d647..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-SOH5T2AJ.js +++ /dev/null @@ -1 +0,0 @@ -import{t as A}from"./chunk-ZK2MNT7Z.js";import{b as B}from"./chunk-SOHFFTKU.js";import{a as V}from"./chunk-UX5TA32W.js";import{Ac as R,Ba as k,Dd as b,Fc as S,Fd as x,O as m,R as w,S as P,Tc as Y,Vc as $,W as M,Z as d,a as p,b as h,ba as j,dc 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,zc as D}from"./chunk-XTHSYQMN.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-SOHFFTKU.js b/public/apps/webapp-schulverwaltung/chunk-SOHFFTKU.js deleted file mode 100644 index 6a6ef3cf..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-SOHFFTKU.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as w,A as g,Ca as y,Cd as L,D as x,Dd as I,N as p,O as o,Sa as O,T as b,Ta as C,ba as v,cc 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-XTHSYQMN.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-SVAHLOZE.js b/public/apps/webapp-schulverwaltung/chunk-SVAHLOZE.js deleted file mode 100644 index f4485c4c..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-SVAHLOZE.js +++ /dev/null @@ -1 +0,0 @@ -import{a as je,b as Be}from"./chunk-RQFEXCIP.js";import{b as xe,d as Me,e as Ee}from"./chunk-C7XT5XXE.js";import{b as we}from"./chunk-YMJC6QZX.js";import"./chunk-Y4QYVF5K.js";import"./chunk-HII3S2DL.js";import{a as U}from"./chunk-DZZC2YX2.js";import{H as ke,I as Ae,J as Oe,O as $e,P as x,T as Pe,V as Ie,X as Fe,Y as Le,a as fe}from"./chunk-ZK2MNT7Z.js";import{e as J}from"./chunk-AW7CSGKI.js";import{b as De}from"./chunk-FTDG26ID.js";import{a as Se,c as Te}from"./chunk-SOHFFTKU.js";import{x as ye,y as Ce}from"./chunk-C56YGDXA.js";import"./chunk-UX5TA32W.js";import{$ as P,$a as u,Ab as l,Bb as p,Cb as D,E as y,Eb as G,Fd as he,Ga as C,Gd as _e,Hd as ve,Ia as g,Ja as ie,L,O as j,Q as H,Rb as le,Sa as c,Sb as pe,Ta as a,Ua as A,Va as W,Vb as V,W as ne,Wa as Y,Wb as de,Ya as B,Z as w,_a as I,e as $,f as z,ha as M,ia as E,ib as N,j as Z,jb as d,kb as S,lb as T,m,mb as se,n as k,oc as me,pc as ge,qc as ue,rc as be,sb as re,tb as F,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-XTHSYQMN.js";var ze=["studentFullName","studyClassNumber"],O=(()=>{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 z(""),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 z({primarySortKey:"date",ascending:!1}),this.sortCriteria$=this.sortCriteriaSubject$.asObservable(),this.sortedEntries$=k([this.entries$,this.sortCriteria$]).pipe(m(J(Ae))),this.filteredEntries$=k([this.sortedEntries$,this.search$]).pipe(m(([_,v])=>je(_,ze,v)),L(1)),this.currentDetail=null}getUnconfirmedAbsences(e,t){return this.entries$.pipe(m(r=>{let b=r.find(_=>_.dateString===e&&_.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(y(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(){k([this.unconfirmedAbsences$.pipe(y(1)),this.selectionService.selectedIds$.pipe(y(1))]).pipe(m(J(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"),_=t.map(K=>$e(K)).join("%0D%0A"),v=`${this.translate.instant("open-absences.detail.mail.body")}%0D%0A${_}`;return v.length>=1600&&(v=`${v.substring(0,1500)}%0D%0A${this.translate.instant("open-absences.detail.mail.bodyToLargeForEmailTo")}`),`${r}?subject=${b}&body=${v}`}loadUnconfirmedAbsences(){return this.loadingService.load(this.lessonPresencesService.getListOfUnconfirmed())}};i.\u0275fac=function(t){return new(t||i)(w(Ee),w(x),w(De),w(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,_,v,K){this.router=e,this.route=t,this.openAbsencesService=r,this.presenceTypesService=b,this.personService=_,this.selectionService=v,this.scrollPosition=K,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$=k([this.absences$,this.selectionService.selection$]).pipe(m(([f,q])=>f.length===q.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$=k([this.studentEmail$,this.allUnconfirmedAbsencesForStudent$]).pipe(m(([f,q])=>this.openAbsencesService.buildMailToString(f,q))),this.destroy$=new $}ngOnInit(){this.selectionService.clearNonLessonPresences(),this.route.paramMap.pipe(H(this.destroy$)).subscribe(e=>this.openAbsencesService.currentDetail={date:String(e.get("date")),personId:Number(e.get("personId"))}),this.hasAbsences$.pipe(H(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(y(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(O),h(Pe),h(we),h(x),h(U))},i.\u0275cmp=P({type:i,selectors:[["bkd-open-absences-detail"]],standalone:!0,features:[F],decls:6,vars:10,consts:[[3,"link"],[3,"absences$","selectionService","confirmLink","displayEmail","mailTo$"]],template:function(t,r){t&1&&(c(0,"div"),A(1,"bkd-backlink",0),c(2,"h1"),d(3),l(4,"async"),a()(),A(5,"bkd-student-dossier-absences",1)),t&2&&(o(),g("link",oe(9,We)),o(2),S(p(4,7,r.studentFullName$)),o(2),g("absences$",r.absences$)("selectionService",r.selectionService)("confirmLink","/open-absences/confirm")("displayEmail",!0)("mailTo$",r.mailTo$))},dependencies:[Le,Fe,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 Je(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),l(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(" ",p(2,3,"open-absences.list.header."+s)," "),o(3),S(t.getSortDirectionCharacter(e.sortCriteria,s))}}function Qe(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),l(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),l(13,"translate"),a(),c(14,"div",24),d(15),l(16,"translate"),a(),c(17,"div",25),d(18),l(19,"bkdDaysDifference"),a(),c(20,"div",26),d(21),l(22,"date"),a()()()}if(n&2){let s=i.$implicit,e=u(4);o(3),g("checked",p(5,9,e.selectionService.isSelected$(s))),o(4),g("routerLink",ce(22,Ge,s.studentId,s.dateString)),o(),S(s.studentFullName),o(2),T(" ",s.studyClassNumber," "),o(2),T(" ",D(13,11,e.getLessonsCountKey(s),R(25,X,s.lessonsCount))," "),o(3),se(" ",s.studyClassNumber,", ",D(16,14,e.getLessonsCountKey(s),R(27,X,s.lessonsCount))," "),o(3),T(" ",p(19,17,s.date)," "),o(3),S(D(22,19,s.date,"dd.MM.yyyy"))}}function Xe(n,i){if(n&1){let s=B();W(0),c(1,"div")(2,"bkd-resettable-input",5),l(3,"async"),l(4,"translate"),l(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),l(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()(),C(17,Je,5,5,"div",14),a(),C(18,Qe,23,29,"div",15),a(),Y()}if(n&2){let s=u(2).bkdLet,e=u();o(2),g("value",p(3,9,e.openAbsencesService.search$))("placeholder",p(4,11,"open-absences.search-by-name-or-class"))("label",p(5,13,"open-absences.search")),o(6),T(" ",D(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 Ze(n,i){n&1&&(c(0,"p",27),d(1),l(2,"translate"),a()),n&2&&(o(),S(p(2,1,"open-absences.noEntries")))}function et(n,i){if(n&1&&(W(0),C(1,Xe,19,20,"ng-container",4),l(2,"async"),C(3,Ze,3,3,"ng-template",null,1,G),Y()),n&2){let s,e=N(4),t=u().bkdLet,r=u();o(),g("ngIf",((s=(s=p(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 tt(n,i){n&1&&A(0,"bkd-spinner")}function nt(n,i){if(n&1&&(c(0,"div"),C(1,et,5,4,"ng-container",4),l(2,"async"),C(3,tt,1,0,"ng-template",null,0,G),a()),n&2){let s=N(4),e=u();o(),g("ngIf",p(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(y(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(O),h(x),h(U))},i.\u0275cmp=P({type:i,selectors:[["bkd-open-absences-list"]],standalone:!0,features:[F],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),l(2,"translate"),a(),C(3,nt,5,4,"div",3),l(4,"async"),l(5,"async"),l(6,"async")),t&2&&(o(),S(p(2,2,"open-absences.title")),o(2),g("bkdLet",ae(10,Ye,p(4,4,r.selectionService.selection$),p(5,6,r.openAbsencesService.filteredEntries$),p(6,8,r.openAbsencesService.sortCriteria$))))},dependencies:[Se,pe,Be,be,le,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([O,x,{provide:xe,useExisting:O}]),F],decls:1,vars:0,template:function(t,r){t&1&&A(0,"router-outlet")},dependencies:[ge],changeDetection:0});let n=i;return n})();var Vt=[{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{Vt as OPEN_ABSENCES_ROUTES}; diff --git a/public/apps/webapp-schulverwaltung/chunk-U4HODSW3.js b/public/apps/webapp-schulverwaltung/chunk-U4HODSW3.js deleted file mode 100644 index fa9e77f8..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-U4HODSW3.js +++ /dev/null @@ -1,2 +0,0 @@ -import{a as G}from"./chunk-PSXDSPKS.js";import{a as de,b as fe}from"./chunk-YMJC6QZX.js";import{c as ue,d as he}from"./chunk-24AFRN2G.js";import{d as M,e as X}from"./chunk-AW7CSGKI.js";import{b as ge}from"./chunk-FTDG26ID.js";import{b as H,d as ee}from"./chunk-SOHFFTKU.js";import{u as W}from"./chunk-C56YGDXA.js";import{$ as E,$a as l,Ab as h,Ac as J,Bb as _,Cb as N,Fc as $,Ga as P,Gd as ce,Hd as le,Ia as s,Id as me,Ja as ae,Mc as v,Nc as U,O as z,Sa as u,Sb as R,Ta as f,Tb as oe,Ua as c,Va as m,Vc as B,W as k,Wa as d,Wb as pe,Z as S,bc as O,ca as ie,db as x,dc 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,rc as se,ta as C,tb as A,ua as o,va as Q,w as ne,zc as g}from"./chunk-XTHSYQMN.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-U7WLOWUT.js b/public/apps/webapp-schulverwaltung/chunk-U7WLOWUT.js new file mode 100644 index 00000000..5419b63d --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-U7WLOWUT.js @@ -0,0 +1 @@ +import{a as Le,b as Fe,c as Ve,d as Ne,e as Oe}from"./chunk-2D2UAYZL.js";import"./chunk-OGCDITJ2.js";import{b as De}from"./chunk-7FRZV7VF.js";import"./chunk-OFB4XAK2.js";import"./chunk-VUPOI3TG.js";import{b as Ae,d as Re}from"./chunk-WACRWBCS.js";import"./chunk-YUHFF3NM.js";import{a as Z}from"./chunk-NL5E3FC5.js";import{a as $e}from"./chunk-UGBTF4Z2.js";import{b as Be}from"./chunk-KK2SHN2W.js";import{a as Se,b as Pe,c as Me,d as we,e as Ee,u as Te}from"./chunk-LGOOC47H.js";import{a as ke}from"./chunk-B6WYZ7BT.js";import{$c as fe,Ab as g,B as X,F as W,Gb as a,Ha as u,Hb as s,Ib as k,Id as Ie,J as ee,Jd as L,Kd as F,La as re,M as H,Ma as y,Na as ae,O as te,P as T,Ra as _,Ta as Y,Ua as $,Va as B,Wa as r,X as ie,Xa as o,Ya as c,Zb as D,_ as ne,_b as U,aa as x,ab as E,bd as ue,cb as w,cd as _e,db as m,dd as ye,g as R,gb as A,h as J,ha as oe,hd as ve,ia as P,ja as M,l as G,ld as Ce,m as K,mb as S,md as he,n as I,nb as l,ob as C,pb as f,qb as le,rb as pe,sc as se,tc as me,td as xe,uc as ce,ud as ge,vd as be,wa as n,wb as O,x as Q,xa as b,xb as j,yb as v,zb as de}from"./chunk-IFJN5CDK.js";var q="no_access",N=(()=>{class e{constructor(t){this.profileService=t,this.reset$=new R(void 0),this.rawProfile$=this.reset$.pipe(T(()=>this.loadProfile()),H(1)),this.profile$=this.rawProfile$.pipe(I(i=>i===q?null:i)),this.noAccess$=this.rawProfile$.pipe(I(i=>i===q)),this.loading$=this.profileService.loading$}reset(){this.reset$.next()}loadProfile(){return this.profileService.getMyProfile().pipe(X(t=>t.status===403?G(q):K(()=>t)))}static{this.\u0275fac=function(i){return new(i||e)(ne(Le))}}static{this.\u0275prov=ie({token:e,factory:e.\u0275fac})}}return e})();function Ke(e,d){if(e&1&&(r(0,"div"),l(1),o()),e&2){m(2);let t=v(2);n(),f(" ",t.AddressLine2," ")}}function Qe(e,d){if(e&1&&(r(0,"div",5),l(1),a(2,"translate"),o()),e&2){let t=d.$implicit;n(),f(" ",k(2,1,"global.validation-errors."+t.error,t.params)," ")}}function Xe(e,d){if(e&1&&(r(0,"div",13),l(1),a(2,"translate"),o()),e&2){let t=d.$implicit;n(),f(" ",k(2,1,"global.validation-errors."+t.error,t.params)," ")}}function et(e,d){e&1&&(r(0,"div",18)(1,"span",19),l(2,"Loading..."),o()())}function tt(e,d){if(e&1){let t=E();r(0,"form",2),w("ngSubmit",function(){P(t);let p=m();return M(p.onSubmit())}),r(1,"div",3)(2,"p"),l(3),a(4,"translate"),o(),r(5,"address",4)(6,"div"),l(7),o(),u(8,Ke,2,1,"div"),r(9,"div"),l(10),o()()(),$(11,Qe,3,4,"div",5,Y),a(13,"async"),r(14,"div",3)(15,"label",6),l(16),a(17,"translate"),o(),c(18,"input",7),o(),r(19,"div",3)(20,"label",8),l(21),a(22,"translate"),o(),c(23,"input",9),r(24,"small",10),l(25),a(26,"translate"),o()(),r(27,"div",3)(28,"label",11),l(29),a(30,"translate"),o(),c(31,"input",12),a(32,"async"),$(33,Xe,3,4,"div",13,Y),a(35,"async"),r(36,"small",14),l(37),a(38,"translate"),o()(),r(39,"div",15)(40,"button",16),a(41,"async"),w("click",function(){P(t);let p=m();return M(p.cancel())}),l(42),a(43,"translate"),o(),r(44,"button",17),a(45,"async"),l(46),a(47,"translate"),u(48,et,3,0,"div",18),a(49,"async"),o()()()}if(e&2){let t,i=m(),p=v(0),h=v(2);y("formGroup",p),n(3),C(s(4,18,"my-profile.edit.address-changes-remark")),n(4),C(h.AddressLine1),n(),_(h.AddressLine2?8:-1),n(2),le("",h.Zip||""," ",h.Location,""),n(),B(s(13,20,i.formErrors$)),n(5),f(" ",s(17,22,"my-profile.edit.fields.phone-private")," "),n(5),f(" ",s(22,24,"my-profile.edit.fields.phone-mobile")," "),n(4),C(s(26,26,"my-profile.edit.fields.phone-mobile-hint")),n(4),f(" ",s(30,28,"my-profile.edit.fields.email2")," "),n(2),ae("is-invalid",((t=(t=s(32,30,i.email2Errors$))==null?null:t.length)!==null&&t!==void 0?t:0)>0),n(2),B(s(35,32,i.email2Errors$)),n(4),C(s(38,34,"my-profile.edit.fields.email2-hint")),n(3),y("disabled",s(41,36,i.saving$)),n(2),f(" ",s(43,38,"my-profile.edit.cancel")," "),n(2),y("disabled",s(45,40,i.saving$)),n(2),f(" ",s(47,42,"my-profile.edit.save")," "),n(2),_(s(49,44,i.saving$)?48:-1)}}var He=(()=>{class e{constructor(t,i,p,h,z,qe){this.fb=t,this.router=i,this.toastService=p,this.translate=h,this.profileService=z,this.personsService=qe,this.student$=this.profileService.profile$.pipe(Q(Te),I(({student:Je})=>Je)),this.formGroup$=this.student$.pipe(I(this.createFormGroup.bind(this)),H(1)),this.saving$=new R(!1),this.submitted$=new R(!1),this.formErrors$=Z(this.formGroup$,this.submitted$),this.email2Errors$=Z(this.formGroup$,this.submitted$,"email2")}cancel(){this.navigateBack()}onSubmit(){this.submitted$.next(!0),this.formGroup$.pipe(W(1)).subscribe(t=>{if(t.valid){let{phonePrivate:i,phoneMobile:p,email2:h}=t.value;this.save(i?.trim()||null,p?.trim()||null,h||null)}})}createFormGroup(t){return this.fb.group({phonePrivate:[t.PhonePrivate],phoneMobile:[t.PhoneMobile],email2:[t.Email2,ue.email]})}save(t,i,p){this.saving$.next(!0),this.student$.pipe(W(1),T(h=>this.personsService.update(h.Id,t,i,p)),ee(()=>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{this.\u0275fac=function(i){return new(i||e)(b(xe),b(me),b(ke),b(Ie),b(N),b(De))}}static{this.\u0275cmp=x({type:e,selectors:[["bkd-my-profile-edit"]],standalone:!0,features:[g],decls:9,vars:10,consts:[[1,"bkd-container","bkd-container-limited"],[3,"formGroup"],[3,"ngSubmit","formGroup"],[1,"mb-3"],[1,"text-muted"],[1,"alert","alert-danger"],["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"],[1,"invalid-feedback"],["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"],["role","status",1,"spinner-border","spinner-border-sm","align-middle"],[1,"visually-hidden"]],template:function(i,p){if(i&1&&(O(0),a(1,"async"),O(2),a(3,"async"),r(4,"div",0)(5,"h1"),l(6),a(7,"translate"),o(),u(8,tt,50,46,"form",1),o()),i&2){let h=j(s(1,2,p.formGroup$));n(2);let z=j(s(3,5,p.student$));n(4),C(s(7,8,"my-profile.edit.title")),n(2),_(h&&z?8:-1)}},dependencies:[ge,ve,fe,_e,ye,be,Ce,he,D,F,L],changeDetection:0})}}return e})();var Ue=(()=>{class e{constructor(){}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=x({type:e,selectors:[["bkd-my-profile-address"]],inputs:{address:"address"},standalone:!0,features:[g],decls:2,vars:1,template:function(i,p){i&1&&(r(0,"address"),l(1),o()),i&2&&(n(),C(p.address))},styles:["[_nghost-%COMP%]{padding:1rem}address[_ngcontent-%COMP%]{white-space:pre-wrap}"],changeDetection:0})}}return e})();var ze=(()=>{class e{constructor(){}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=x({type:e,selectors:[["bkd-my-profile-entry"]],inputs:{label:"label",value:"value"},standalone:!0,features:[g],decls:6,vars:4,consts:[[1,"row"],[1,"col-md-6"]],template:function(i,p){i&1&&(r(0,"dl",0)(1,"dt",1),l(2),a(3,"translate"),o(),r(4,"dd",1),l(5),o()()),i&2&&(n(2),C(s(3,2,p.label)),n(3),C(p.value))},dependencies:[F,L],styles:["dl[_ngcontent-%COMP%]{padding:0 1rem}dt[_ngcontent-%COMP%]{font-weight:400;color:#00000080}"],changeDetection:0})}}return e})();function it(e,d){if(e&1&&(r(0,"span"),l(1),o()),e&2){let t=m(2);n(),f("(",t.student.Gender,")")}}function nt(e,d){if(e&1&&(r(0,"div",0)(1,"div",2),c(2,"bkd-avatar",3),r(3,"div",4),l(4),u(5,it,2,1,"span"),r(6,"div",5),l(7),a(8,"date"),o()()(),c(9,"bkd-reports-link",6),a(10,"async"),o()),e&2){let t=m();n(2),y("studentId",t.student.Id),n(2),pe(" ",t.student.LastName," ",t.student.FirstName," ",t.student.MiddleName," "),n(),_(t.student.Gender?5:-1),n(2),f(" ",k(8,7,t.student.Birthdate,"dd.MM.yyyy")," "),n(2),y("reports",s(10,10,t.reports$))}}function ot(e,d){if(e&1&&(r(0,"div",1),l(1),o()),e&2){let t=m();n(),C(t.student.Email)}}var We=(()=>{class e{constructor(t){this.reportsService=t,this.studentId$=new J(1),this.reports$=this.studentId$.pipe(T(i=>i?this.reportsService.getPersonMasterDataReports(i):G([])),te([]))}ngOnChanges(t){t.student&&this.studentId$.next(t.student.currentValue?.Id||null)}static{this.\u0275fac=function(i){return new(i||e)(b(Re))}}static{this.\u0275cmp=x({type:e,selectors:[["bkd-my-profile-header"]],inputs:{student:"student"},standalone:!0,features:[oe,g],decls:2,vars:2,consts:[[1,"avatar-person"],[1,"email"],[1,"d-flex"],[1,"me-3","avatar","large",3,"studentId"],[1,"person"],[1,"birthdate"],[3,"reports"]],template:function(i,p){i&1&&u(0,nt,11,12,"div",0)(1,ot,2,1,"div",1),i&2&&(_(p.student?0:-1),n(),_(p.student?1:-1))},dependencies:[Oe,$e,D,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})}}return e})();var rt=(e,d)=>d.apprenticeshipContract.Id,at=(e,d)=>d.Id;function lt(e,d){e&1&&c(0,"bkd-spinner")}function pt(e,d){e&1&&(r(0,"p",7),l(1),a(2,"translate"),o()),e&2&&(n(),f(" ",s(2,1,"shared.profile.substitution-profile")," "))}function dt(e,d){e&1&&(r(0,"p",8),l(1),a(2,"translate"),o()),e&2&&(n(),f(" ",s(2,1,"shared.profile.no-profile")," "))}function st(e,d){if(e&1&&(u(0,pt,3,3,"p",7),a(1,"async"),u(2,dt,3,3,"p",8)),e&2){let t=m();_(s(1,1,t.profileService.noAccess$)?0:2)}}function mt(e,d){if(e&1&&c(0,"bkd-my-profile-entry",12),e&2){m(2);let t=v(0);A("value",t.student.SocialSecurityNumber)}}function ct(e,d){if(e&1&&c(0,"bkd-my-profile-entry",13),e&2){m(2);let t=v(0);A("value",t.student.HomeTown||t.student.Nationality)}}function ft(e,d){if(e&1&&c(0,"bkd-my-profile-entry",14),e&2){m(2);let t=v(0);A("value",t.student.NativeLanguage)}}function ut(e,d){if(e&1&&c(0,"bkd-my-profile-entry",15),e&2){m(2);let t=v(0);A("value",t.stayPermitValue)}}function _t(e,d){if(e&1&&(c(0,"bkd-my-profile-entry",16),a(1,"date")),e&2){m(2);let t=v(0);A("value",k(1,1,t.student.StayPermitExpiry,"mediumDate"))}}function yt(e,d){if(e&1&&(r(0,"div",24)(1,"a",25),a(2,"translate"),r(3,"i",26),l(4,"edit"),o()(),c(5,"bkd-student-dossier-address",27),o()),e&2){m(2);let t=v(0);n(),re("aria-label",s(2,2,"my-profile.edit.title")),n(4),y("student",t.student)}}function vt(e,d){if(e&1&&c(0,"bkd-my-profile-address",28),e&2){m(3);let t=v(0);y("address",t.student.CorrespondenceAddress)}}function Ct(e,d){if(e&1){let t=E();r(0,"div",18,1)(2,"div",19)(3,"bkd-student-dossier-entry-header",20),w("click",function(){P(t);let p=S(1);return M(p.toggle())}),l(4),a(5,"translate"),o()(),r(6,"div",21)(7,"div",22),u(8,vt,1,1,"ng-template"),o()()()}if(e&2){let t=S(1);n(3),y("opened",!t.collapsed),n(),f(" ",s(5,2,"shared.profile.correspondence-address")," ")}}function ht(e,d){if(e&1&&c(0,"bkd-my-profile-address",28),e&2){m(3);let t=v(0);y("address",t.student.BillingAddress)}}function xt(e,d){if(e&1){let t=E();r(0,"div",18,2)(2,"div",19)(3,"bkd-student-dossier-entry-header",20),w("click",function(){P(t);let p=S(1);return M(p.toggle())}),l(4),a(5,"translate"),o()(),r(6,"div",21)(7,"div",22),u(8,ht,1,1,"ng-template"),o()()()}if(e&2){let t=S(1);n(3),y("opened",!t.collapsed),n(),f(" ",s(5,2,"shared.profile.billing-address")," ")}}function gt(e,d){if(e&1&&c(0,"bkd-student-dossier-legal-representative",29),e&2){let t=d.$implicit;y("person",t)}}function bt(e,d){if(e&1&&$(0,gt,1,1,"bkd-student-dossier-legal-representative",29,at),e&2){m(3);let t=v(0);B(t.legalRepresentativePersons)}}function St(e,d){if(e&1){let t=E();r(0,"div",18,3)(2,"div",19)(3,"bkd-student-dossier-entry-header",20),w("click",function(){P(t);let p=S(1);return M(p.toggle())}),l(4),a(5,"translate"),o()(),r(6,"div",21)(7,"div",22),u(8,bt,2,0,"ng-template"),o()()()}if(e&2){let t=S(1);n(3),y("opened",!t.collapsed),n(),f(" ",s(5,2,"shared.profile.legal-representation")," ")}}function Pt(e,d){if(e&1&&l(0),e&2){let t=m().$index;f(" ",t+1," ")}}function Mt(e,d){if(e&1&&c(0,"bkd-student-dossier-apprenticeship-company",30),e&2){let t=m().$implicit;y("company",t)}}function wt(e,d){if(e&1){let t=E();r(0,"div",23,4)(2,"div",19)(3,"bkd-student-dossier-entry-header",20),w("click",function(){P(t);let p=S(1);return M(p.toggle())}),l(4),a(5,"translate"),u(6,Pt,1,1),o()(),r(7,"div",21)(8,"div",22),u(9,Mt,1,1,"ng-template"),o()()()}if(e&2){let t=S(1);m(2);let i=v(0);n(3),y("opened",!t.collapsed),n(),f(" ",s(5,3,"shared.profile.apprenticeship-company")," "),n(2),_(i.apprenticeshipCompanies.length>1?6:-1)}}function Et(e,d){if(e&1){let t=E();c(0,"bkd-my-profile-header",9),r(1,"div",10)(2,"div",11),u(3,mt,1,1,"bkd-my-profile-entry",12)(4,ct,1,1,"bkd-my-profile-entry",13)(5,ft,1,1,"bkd-my-profile-entry",14)(6,ut,1,1,"bkd-my-profile-entry",15)(7,_t,2,4,"bkd-my-profile-entry",16),o(),r(8,"div",17)(9,"div",18,0)(11,"div",19)(12,"bkd-student-dossier-entry-header",20),w("click",function(){P(t);let p=S(10);return M(p.toggle())}),l(13),a(14,"translate"),o()(),r(15,"div",21)(16,"div",22),u(17,yt,6,4,"ng-template"),o()()(),u(18,Ct,9,4,"div",18)(19,xt,9,4,"div",18)(20,St,9,4,"div",18),$(21,wt,10,5,"div",23,rt),o()()}if(e&2){let t=S(10);m();let i=v(0);y("student",i.student),n(3),_(i.student.SocialSecurityNumber?3:-1),n(),_(i.student.HomeTown||i.student.Nationality?4:-1),n(),_(i.student.NativeLanguage?5:-1),n(),_(i.stayPermitValue?6:-1),n(),_(i.student.StayPermitExpiry?7:-1),n(5),y("opened",!t.collapsed),n(),f(" ",s(14,11,"shared.profile.student-address")," "),n(5),_(i.student.CorrespondenceAddress?18:-1),n(),_(i.student.BillingAddress?19:-1),n(),_(i.legalRepresentativePersons.length>0?20:-1),n(),B(i.apprenticeshipCompanies)}}var Ye=(()=>{class e{constructor(t){this.profileService=t}static{this.\u0275fac=function(i){return new(i||e)(b(N))}}static{this.\u0275cmp=x({type:e,selectors:[["bkd-my-profile-show"]],standalone:!0,features:[g],decls:10,vars:9,consts:[["studentAddress","ngbAccordionItem"],["correspondenceAddress","ngbAccordionItem"],["billingAddress","ngbAccordionItem"],["legalRepresentatives","ngbAccordionItem"],["apprenticeshipCompanies","ngbAccordionItem"],[1,"bkd-container","bkd-container-limited"],["data-testid","profile-title"],["data-testid","profile-substitution"],["data-testid","profile-none"],[3,"student"],["data-testid","profile-content",1,"profile-content"],[1,"profile-entries","pt-3"],["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"],["ngbAccordion",""],["ngbAccordionItem",""],["ngbAccordionHeader",""],[3,"click","opened"],["ngbAccordionCollapse",""],["ngbAccordionBody",""],[3,"ngbAccordionItem"],[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"],[1,"profile-entry",3,"person"],[1,"profile-entry",3,"company"]],template:function(i,p){if(i&1&&(O(0),a(1,"async"),r(2,"div",5)(3,"h1",6),l(4),a(5,"translate"),o(),u(6,lt,1,0,"bkd-spinner"),a(7,"async"),u(8,st,3,3)(9,Et,23,13),o()),i&2){let h=j(s(1,2,p.profileService.profile$));n(4),C(s(5,5,"my-profile.title")),n(2),_(s(7,7,p.profileService.loading$)?6:h?9:8)}},dependencies:[We,ze,Ee,we,Me,Ae,Pe,Se,ce,Fe,Ue,Ne,Ve,Be,D,U,F,L],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 e})();var Ze=(()=>{class e{constructor(){}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=x({type:e,selectors:[["bkd-my-profile"]],standalone:!0,features:[de([N]),g],decls:1,vars:0,template:function(i,p){i&1&&c(0,"router-outlet")},dependencies:[se],changeDetection:0})}}return e})();var Ci=[{path:"",component:Ze,children:[{path:"",component:Ye},{path:"edit",component:He}]}];export{Ci as MY_PROFILE_ROUTES}; diff --git a/public/apps/webapp-schulverwaltung/chunk-UA2MEY3S.js b/public/apps/webapp-schulverwaltung/chunk-UA2MEY3S.js new file mode 100644 index 00000000..a212dcf6 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-UA2MEY3S.js @@ -0,0 +1 @@ +import{F as s,M as p,P as f,Q as d,R as n,X as g,_ as h,ac as S,f as c,l,n as a,oc as v,p as u,pc as m,qc as P,tc as $,x as e}from"./chunk-IFJN5CDK.js";var I=(()=>{class o{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 c,this.activationEnd$=this.router.events.pipe(e(R)),this.navigationEnd$=this.router.events.pipe(e(C)),this.navigationStart$=this.router.events.pipe(e(y)),this.scrollPosition$=this.navigationStart$.pipe(a(this.getScrollPosition.bind(this))),this.route$=this.activationEnd$.pipe(s(1)).pipe(u(r=>[l(r),this.navigationEnd$.pipe(f(()=>this.activationEnd$.pipe(s(1))))]),d(),a(r=>r.snapshot),p(1)),this.scrollPosition$.pipe(n(this.destroy$)).subscribe(r=>this.currentScrollPosition=r),this.route$.pipe(n(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(s(1),n(this.destroy$),e(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}static{this.\u0275fac=function(i){return new(i||o)(h($),h(S))}}static{this.\u0275prov=g({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();function R(o){return o instanceof P}function y(o){return o instanceof v}function C(o){return o instanceof m}export{I as a}; diff --git a/public/apps/webapp-schulverwaltung/chunk-UB7PUXB6.js b/public/apps/webapp-schulverwaltung/chunk-UB7PUXB6.js new file mode 100644 index 00000000..7a955dab --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-UB7PUXB6.js @@ -0,0 +1 @@ +import{a as ye,b as ge,c as Ee}from"./chunk-RU74B4AX.js";import{a as fe}from"./chunk-SCJZRDJE.js";import{a as xe}from"./chunk-FJXQ6CD7.js";import{a as ve}from"./chunk-IYFH2F7I.js";import"./chunk-2D2UAYZL.js";import"./chunk-IMBPAJBQ.js";import"./chunk-OGCDITJ2.js";import{b as se,e as N}from"./chunk-DKLN3NRY.js";import"./chunk-7FRZV7VF.js";import"./chunk-Y4QYVF5K.js";import"./chunk-OFB4XAK2.js";import{a as be,b as he}from"./chunk-RET26MIW.js";import{a as Ce}from"./chunk-UA2MEY3S.js";import{a as Se}from"./chunk-2U5ENDJH.js";import{d as me}from"./chunk-VUPOI3TG.js";import{d as _e}from"./chunk-WACRWBCS.js";import"./chunk-MIRGHONI.js";import"./chunk-YUHFF3NM.js";import{L as le,P as ce}from"./chunk-VGJCKFZL.js";import"./chunk-NL5E3FC5.js";import{a as de,b as ue}from"./chunk-UGBTF4Z2.js";import{b as pe}from"./chunk-KK2SHN2W.js";import{s as re}from"./chunk-LGOOC47H.js";import"./chunk-B6WYZ7BT.js";import{Ab as A,Bb as Y,Cb as H,F as U,Gb as s,Ha as f,Hb as l,Jd as D,Kd as V,La as K,M as G,Ma as v,P as O,R as X,Ra as b,Sb as Z,Ua as F,Va as w,Wa as o,Wb as ee,X as z,Xa as r,Ya as k,Yc as oe,Zb as te,_ as E,aa as x,ab as I,cb as h,db as p,ia as L,ja as P,n as q,nb as m,ob as y,pb as C,qa as J,rc as ie,sc as ne,tb as R,ub as B,uc as ae,vb as $,wa as a,wb as j,xa as _,xb as M,yb as S,zb as Q}from"./chunk-IFJN5CDK.js";var ke=(()=>{class e{constructor(t,i,n){this.studentsService=t,this.educationalEventsService=i,this.studyClassesService=n,this.filter={student:null,educationalEvent:null,studyClass:null},this.filterChange=new J,this.classesHttpFilter={params:{fields:"IsActive","filter.IsActive":"=true"}}}show(){this.filterChange.emit(this.filter)}static{this.\u0275fac=function(i){return new(i||e)(_(me),_(Ee),_(xe))}}static{this.\u0275cmp=x({type:e,selectors:[["bkd-evaluate-absences-header"]],inputs:{filter:"filter"},outputs:{filterChange:"filterChange"},standalone:!0,features:[A],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,n){i&1&&(o(0,"div",0)(1,"div",1)(2,"label",2),m(3),s(4,"translate"),r(),o(5,"bkd-typeahead",3),$("valueChange",function(d){return B(n.filter.student,d)||(n.filter.student=d),d}),r()(),o(6,"div",1)(7,"label",2),m(8),s(9,"translate"),r(),o(10,"bkd-typeahead",3),$("valueChange",function(d){return B(n.filter.educationalEvent,d)||(n.filter.educationalEvent=d),d}),r()(),o(11,"div",1)(12,"label",2),m(13),s(14,"translate"),r(),o(15,"bkd-typeahead",4),$("valueChange",function(d){return B(n.filter.studyClass,d)||(n.filter.studyClass=d),d}),r()(),o(16,"div",5)(17,"button",6),h("click",function(){return n.show()}),m(18),s(19,"translate"),r()()()),i&2&&(a(3),y(l(4,11,"evaluate-absences.header.student")),a(2),v("typeaheadService",n.studentsService),R("value",n.filter.student),a(3),y(l(9,13,"evaluate-absences.header.module-instance")),a(2),v("typeaheadService",n.educationalEventsService),R("value",n.filter.educationalEvent),a(3),y(l(14,15,"evaluate-absences.header.study-class")),a(2),v("typeaheadService",n.studyClassesService),R("value",n.filter.studyClass),v("additionalHttpParams",n.classesHttpFilter),a(3),C(" ",l(19,17,"evaluate-absences.header.show")," "))},dependencies:[fe,V,D],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:1rem 1rem 1rem 0;border-bottom:1px solid #dee2e6}"],changeDetection:0})}}return e})();var g=(()=>{class e extends he{constructor(t,i,n,u,d){super(t,i,d,n,"/evaluate-absences"),this.lessonPresenceService=u,this.queryParamsString$.pipe(X(this.destroy$)).subscribe(T=>this.confirmBackLinkParams={returnparams:T})}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,n){return this.loadingService.load(this.lessonPresenceService.getStatistics(t,i,n),be)}buildParamsFromFilter(t){return ye(t)}static{this.\u0275fac=function(i){return new(i||e)(E(Z),E(ue),E(oe),E(N),E(Se))}}static{this.\u0275prov=z({token:e,factory:e.\u0275fac})}}return e})();var Te=(e,c)=>c.key,we=(e,c)=>c.StudentRef.Id,Re=()=>[],Be=e=>["student",e,"absences"],$e=e=>({returnparams:e});function je(e,c){e&1&&k(0,"bkd-spinner")}function Me(e,c){if(e&1){let t=I();o(0,"th",9),h("click",function(){let n=L(t).$implicit,u=p(4);return P(u.state.sortService.toggleSorting(n.key))}),o(1,"div",10)(2,"div",11),s(3,"translate"),m(4),s(5,"translate"),r(),o(6,"div",12),m(7),s(8,"async"),r()()()}if(e&2){let t=c.$implicit,i=p(4);v("ngClass",t.label),a(2),v("ngbTooltip",l(3,4,"evaluate-absences.list.header."+t.label)),a(2),C(" ",l(5,6,"evaluate-absences.list.header."+t.label)," "),a(3),C(" ",l(8,8,i.state.sortService.getSortingChar$(t.key))," ")}}function De(e,c){if(e&1&&(o(0,"a",13),s(1,"async"),m(2),r()),e&2){let t=p().$implicit,i=p().$implicit,n=p(5);v("routerLink",H(5,Be,i.StudentRef.Id))("queryParams",H(7,$e,l(1,3,n.profileReturnParams$))),a(2),C(" ",i[t.key]," ")}}function Ve(e,c){if(e&1&&m(0),e&2){let t=p().$implicit,i=p().$implicit;C(" ",i[t.key]," ")}}function Ne(e,c){if(e&1&&(o(0,"td"),s(1,"translate"),f(2,De,3,9,"a",13)(3,Ve,1,1),r()),e&2){let t=c.$implicit;K("data-label",l(1,2,"evaluate-absences.list.header."+t.label)),a(2),b(t.key==="StudentFullName"?2:3)}}function Oe(e,c){if(e&1&&(o(0,"tr"),F(1,Ne,4,4,"td",null,Te),r()),e&2){let t=p(5);a(),w(t.columns)}}function He(e,c){if(e&1&&(o(0,"tbody"),F(1,Oe,3,0,"tr",null,we),r()),e&2){p(4);let t=S(0);a(),w(t)}}function We(e,c){e&1&&k(0,"bkd-spinner",7)}function qe(e,c){if(e&1){let t=I();o(0,"button",14),h("click",function(){L(t);let n=p(4);return P(n.state.nextPage())}),m(1),s(2,"translate"),r()}e&2&&(a(),C(" ",l(2,1,"global.pagination.load-more")," "))}function Ue(e,c){if(e&1){let t=I();o(0,"div",2)(1,"div",3),k(2,"bkd-reports-link",4),s(3,"async"),r(),o(4,"table",5),h("scrolled",function(){L(t);let n=p(3);return P(n.onScroll())}),o(5,"thead")(6,"tr"),F(7,Me,9,10,"th",6,Te),r()(),f(9,He,3,0,"tbody"),r(),f(10,We,1,0,"bkd-spinner",7)(11,qe,3,3,"button",8),r()}if(e&2){let t,i=p(3),n=S(0),u=S(2),d=S(4);a(2),v("reports",(t=l(3,4,i.reports$))!==null&&t!==void 0?t:Y(6,Re)),a(5),w(i.columns),a(2),b(n&&n.length>0?9:-1),a(),b(d?10:-1),a(),b(u&&!d?11:-1)}}function Ge(e,c){e&1&&(o(0,"p",1),m(1),s(2,"translate"),r()),e&2&&(a(),C(" ",l(2,1,"evaluate-absences.no-entries")," "))}function Xe(e,c){if(e&1&&f(0,Ue,12,7,"div",2)(1,Ge,3,3,"p",1),e&2){p(2);let t=S(0),i=S(4);b(t&&t.length>0||i?0:1)}}function ze(e,c){if(e&1&&(f(0,je,1,0,"bkd-spinner"),s(1,"async"),f(2,Xe,2,1)),e&2){let t=p();b(l(1,1,t.state.loading$)?0:2)}}function Je(e,c){e&1&&(o(0,"p",1),m(1),s(2,"translate"),r()),e&2&&(a(),y(l(2,1,"evaluate-absences.no-filter")))}var Le=(()=>{class e{constructor(t,i,n,u,d,T){this.state=t,this.scrollPosition=i,this.route=n,this.presenceTypesService=u,this.reportsService=d,this.lessonPresencesService=T,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(q(Ke)),this.profileReturnParams$=this.state.queryParamsString$}ngOnInit(){this.filterFromParams$.pipe(U(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(O(t=>this.lessonPresencesService.getLessonRefs(t)),O(t=>t.length>0?this.reportsService.getEvaluateAbsencesReports(this.getReportRecordIds(t)):[]),G(1))}getReportRecordIds(t){return t.map(i=>`${i.LessonRef.Id}_${i.RegistrationRef.Id}`)}static{this.\u0275fac=function(i){return new(i||e)(_(g),_(Ce),_(ie),_(ce),_(_e),_(N))}}static{this.\u0275cmp=x({type:e,selectors:[["bkd-evaluate-absences-list"]],standalone:!0,features:[A],decls:14,vars:18,consts:[[3,"filterChange","filter"],[1,"mt-3"],[1,"py-3"],[1,"buttons"],[1,"mb-2",3,"reports"],["infiniteScroll","",1,"table","table-striped","table-fixed",3,"scrolled"],["scope","col",3,"ngClass"],[1,"inline"],["type","button",1,"btn","btn-outline-secondary","btn-sm","d-block","mx-auto"],["scope","col",3,"click","ngClass"],[1,"d-flex"],[1,"column-title",3,"ngbTooltip"],[1,"sort-direction"],[1,"student",3,"routerLink","queryParams"],["type","button",1,"btn","btn-outline-secondary","btn-sm","d-block","mx-auto",3,"click"]],template:function(i,n){if(i&1){let u=I();j(0),s(1,"async"),j(2),s(3,"async"),j(4),s(5,"async"),o(6,"h1"),m(7),s(8,"translate"),r(),o(9,"bkd-evaluate-absences-header",0),s(10,"async"),h("filterChange",function(T){return L(u),P(n.state.setFilter(T))}),r(),f(11,ze,3,3),s(12,"async"),f(13,Je,3,3,"p",1)}i&2&&(M(l(1,3,n.state.entries$)),a(2),M(l(3,6,n.state.hasMore$)),a(2),M(l(5,9,n.state.loadingPage$)),a(3),y(l(8,12,"evaluate-absences.title")),a(2),v("filter",l(10,14,n.filterFromParams$)),a(2),b(l(12,16,n.state.isFilterValid$)?11:13))},dependencies:[ke,de,ge,ee,re,ae,pe,te,V,D],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 e})();function Ke(e){return{student:e.student?Number(e.student):null,educationalEvent:e.educationalEvent?Number(e.educationalEvent):null,studyClass:e.studyClass?Number(e.studyClass):null}}var Pe=(()=>{class e{constructor(t){this.state=t}static{this.\u0275fac=function(i){return new(i||e)(_(g))}}static{this.\u0275cmp=x({type:e,selectors:[["bkd-evaluate-absences"]],standalone:!0,features:[Q([g,{provide:se,useExisting:g},le]),A],decls:1,vars:0,template:function(i,n){i&1&&k(0,"router-outlet")},dependencies:[ne],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return e})();var Mt=[{path:"",component:Pe,children:[{path:"",component:Le,data:{restoreScrollPositionFrom:["/evaluate-absences/student/:id"]}},ve]}];export{Mt as EVALUATE_ABSENCES_ROUTES}; diff --git a/public/apps/webapp-schulverwaltung/chunk-UGBTF4Z2.js b/public/apps/webapp-schulverwaltung/chunk-UGBTF4Z2.js new file mode 100644 index 00000000..60b3b222 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-UGBTF4Z2.js @@ -0,0 +1 @@ +import{d as W}from"./chunk-KK2SHN2W.js";import{k as j,l as z,m as P,n as q,o as A}from"./chunk-LGOOC47H.js";import{Ab as V,Ed as B,H as w,Ha as R,J as v,K as x,La as S,Ma as m,Na as F,O as k,Ra as u,S as I,Ua as U,Va as E,Wa as a,X as y,Xa as l,aa as D,ab as M,cb as N,db as s,f as h,h as _,ia as L,ja as T,n as d,nb as p,pb as O,r as C,va as $,wa as o}from"./chunk-IFJN5CDK.js";var G=(e,r)=>r.id;function H(e,r){if(e&1&&(a(0,"a",2)(1,"i",3),p(2,"description"),l()()),e&2){let t=s();F("disabled",t.disableIfUnavailable&&t.reports.length===0),m("href",t.reports.length>0&&t.reports[0].url,$)}}function J(e,r){if(e&1){let t=M();a(0,"button",7),N("click",function(){let i=L(t).$implicit,c=s(2);return T(c.openReport(i))}),p(1),l()}if(e&2){let t=r.$implicit;o(),O(" ",t.title," ")}}function K(e,r){if(e&1&&(a(0,"div",1)(1,"a",4)(2,"i",3),p(3,"description"),l()(),a(4,"div",5),U(5,J,2,1,"button",6,G),l()()),e&2){let t=s();o(),m("id",t.dropdownId),o(3),S("aria-labelledby",t.dropdownId),o(),E(t.reports)}}var et=(()=>{class e{constructor(){this.reports=[],this.disableIfUnavailable=!1,this.dropdownId=B("reports-link-dropdown")}openReport(t){window.open(t.url,"_blank")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=D({type:e,selectors:[["bkd-reports-link"]],inputs:{reports:"reports",disableIfUnavailable:"disableIfUnavailable"},standalone:!0,features:[V],decls:2,vars:2,consts:[["target","_blank",1,"btn","btn-primary","btn-icon",3,"href","disabled"],["ngbDropdown","",1,"d-inline-block"],["target","_blank",1,"btn","btn-primary","btn-icon",3,"href"],[1,"material-icons"],["ngbDropdownToggle","",1,"btn","btn-primary","btn-icon","d-flex","align-items-center",3,"id"],["ngbDropdownMenu",""],["ngbDropdownItem",""],["ngbDropdownItem","",3,"click"]],template:function(n,i){n&1&&R(0,H,3,3,"a",0)(1,K,7,2,"div",1),n&2&&(u(i.reports.length===1||i.reports.length===0&&i.disableIfUnavailable?0:-1),o(),u(i.reports.length>1?1:-1))},dependencies:[A,q,P,z,j],styles:["a[_ngcontent-%COMP%]{text-decoration:none;color:#fff}"]})}}return e})();var f="default",at=(()=>{class e{constructor(){this.action$=new h,this.loadingCounts$=C(this.action$.pipe(x((t,{action:n,context:i})=>{switch(n){case"increment":return t[i]=(t[i]||0)+1,t;case"decrement":return t[i]=Math.max(0,(t[i]||0)-1),t;default:return t}},{}),k({})),{connector:()=>new _(1)}),this.loading$=this.loading(),this.loadingCountsSub=this.loadingCounts$.connect()}ngOnDestroy(){this.loadingCountsSub.unsubscribe()}loading(t=f){return this.loadingCounts$.pipe(d(n=>n[t]),d(Q),w())}load(t,n=f){let i=typeof n=="string"?n:n.context||f,c=typeof n=="object"&&n.stopOnFirstValue||!1,b=this.decrementLoadingCount(i),g=!0;function X(){g&&(b(),g=!1)}return t.pipe(W(this.incrementLoadingCount(i)),c?I(X):v(b))}incrementLoadingCount(t){return()=>this.action$.next({action:"increment",context:t})}decrementLoadingCount(t){return()=>this.action$.next({action:"decrement",context:t})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Q(e){return(e||0)!==0}export{et as a,at as b}; diff --git a/public/apps/webapp-schulverwaltung/chunk-UHRBN2L7.js b/public/apps/webapp-schulverwaltung/chunk-UHRBN2L7.js new file mode 100644 index 00000000..c77c931f --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-UHRBN2L7.js @@ -0,0 +1 @@ +import{q as l}from"./chunk-IMBPAJBQ.js";import{a as d}from"./chunk-KK2SHN2W.js";import{Cc as a,Dc as o,Gd as u,Ic as c,P as n,X as s,Yc as f,_ as i,cc as p,gc as m}from"./chunk-IFJN5CDK.js";var b=c({Id:o,Designation:a,StudentCount:o});var C=(()=>{class r extends d{constructor(t,e){super(t,e,b,"Events")}getStudyCourseEvents(){let t=new p().set("filter.EventTypeId=","1");return this.getList({params:t})}getSubscriptionDetailsDefinitions(t){return this.http.get(`${this.baseUrl}/${t}/SubscriptionDetails`).pipe(n(u(l)))}static{this.\u0275fac=function(e){return new(e||r)(i(m),i(f))}}static{this.\u0275prov=s({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{C as a}; diff --git a/public/apps/webapp-schulverwaltung/chunk-UP3NEN2H.js b/public/apps/webapp-schulverwaltung/chunk-UP3NEN2H.js deleted file mode 100644 index 5893cb82..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-UP3NEN2H.js +++ /dev/null @@ -1 +0,0 @@ -import{b as v}from"./chunk-5RDJZAUT.js";import{e as P}from"./chunk-AW7CSGKI.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,wd as x,yd as y}from"./chunk-XTHSYQMN.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-UX5TA32W.js b/public/apps/webapp-schulverwaltung/chunk-UX5TA32W.js deleted file mode 100644 index eea1df71..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-UX5TA32W.js +++ /dev/null @@ -1 +0,0 @@ -import{E as n,W as c,f as r,yd as o}from"./chunk-XTHSYQMN.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-V5KICZUB.js b/public/apps/webapp-schulverwaltung/chunk-V5KICZUB.js new file mode 100644 index 00000000..e1099f32 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-V5KICZUB.js @@ -0,0 +1 @@ +import{a as Fe,b as je}from"./chunk-32LHGY5Z.js";import{b as Se,d as Pe,e as Me}from"./chunk-DKLN3NRY.js";import{b as Te}from"./chunk-7FRZV7VF.js";import"./chunk-Y4QYVF5K.js";import"./chunk-OFB4XAK2.js";import{a as H}from"./chunk-UA2MEY3S.js";import{D as xe,E as Ae,F as ke,K as Oe,L as y,P as $e,R as Ee,T as Le,U as De,a as he}from"./chunk-VGJCKFZL.js";import{l as X}from"./chunk-NL5E3FC5.js";import{b as we}from"./chunk-UGBTF4Z2.js";import{b as Ie}from"./chunk-KK2SHN2W.js";import{x as ve,y as ye}from"./chunk-LGOOC47H.js";import"./chunk-B6WYZ7BT.js";import{Ab as L,Bb as B,Cb as q,Db as le,F as _,Gb as a,Ha as D,Hb as l,Ib as N,Id as fe,Jd as Ce,Kd as _e,M as V,Ma as C,Na as re,P as R,R as G,Ra as U,Ta as oe,Ua as J,Va as Q,Wa as c,X as se,Xa as o,Ya as x,Zb as z,_ as w,_b as de,aa as O,ab as F,cb as M,db as f,f as k,g as Y,ia as $,ja as P,k as te,mb as ce,n as b,nb as u,o as S,ob as v,pb as E,qb as ae,rc as me,sc as ue,tc as be,uc as ge,w as ne,wa as s,wb as j,x as ie,xa as h,xb as K,yb as I,zb as pe}from"./chunk-IFJN5CDK.js";var ze=["studentFullName","studyClassNumber"],A=(()=>{class n{constructor(e,t,i,r){this.lessonPresencesService=e,this.selectionService=t,this.loadingService=i,this.translate=r,this.loading$=this.loadingService.loading$,this.search$=new Y(""),this.updateUnconfirmedAbsences$=new k,this.unconfirmedAbsences$=ne(this.loadUnconfirmedAbsences(),this.updateUnconfirmedAbsences$).pipe(V(1)),this.entries$=this.unconfirmedAbsences$.pipe(b(xe),V(1)),this.sortCriteriaSubject$=new Y({primarySortKey:"date",ascending:!1}),this.sortCriteria$=this.sortCriteriaSubject$.asObservable(),this.sortedEntries$=S([this.entries$,this.sortCriteria$]).pipe(b(X(Ae))),this.filteredEntries$=S([this.sortedEntries$,this.search$]).pipe(b(([d,p])=>Fe(d,ze,p)),V(1)),this.currentDetail=null}getUnconfirmedAbsences(e,t){return this.entries$.pipe(b(i=>{let r=i.find(d=>d.dateString===e&&d.studentId===t);return r?r.absences:[]}))}getAllUnconfirmedAbsencesForStudent(e){return this.entries$.pipe(b(t=>t.filter(i=>i.studentId===e).reduce((i,r)=>i.concat(r.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(b(X(ke))).subscribe(e=>{this.selectionService.clear(),this.updateUnconfirmedAbsences$.next(e)})}buildMailToString(e,t){let i=e.Email,r=this.translate.instant("open-absences.detail.mail.subject"),d=t.map(T=>Oe(T)).join("%0D%0A"),p=`${this.translate.instant("open-absences.detail.mail.body")}%0D%0A${d}`;return p.length>=1600&&(p=`${p.substring(0,1500)}%0D%0A${this.translate.instant("open-absences.detail.mail.bodyToLargeForEmailTo")}`),`${i}?subject=${r}&body=${p}`}loadUnconfirmedAbsences(){return this.loadingService.load(this.lessonPresencesService.getListOfUnconfirmed())}static{this.\u0275fac=function(t){return new(t||n)(w(Me),w(y),w(we),w(fe))}}static{this.\u0275prov=se({token:n,factory:n.\u0275fac})}}return n})();var We=()=>["/open-absences"],Ve=(()=>{class n{constructor(e,t,i,r,d,p,T){this.router=e,this.route=t,this.openAbsencesService=i,this.presenceTypesService=r,this.personService=d,this.selectionService=p,this.scrollPosition=T,this.absences$=this.route.paramMap.pipe(R(this.getAbsencesForParams.bind(this))),this.hasAbsences$=this.absences$.pipe(b(ve(1))),this.studentFullName$=this.absences$.pipe(b(m=>m[0]&&m[0].StudentFullName||null)),this.allSelected$=S([this.absences$,this.selectionService.selection$]).pipe(b(([m,W])=>m.length===W.length)),this.studentEmail$=this.absences$.pipe(b(m=>m[0]&&m[0].StudentRef.Id||null),R(m=>m?this.personService.getByIdWithEmailInfos(m):te)),this.allUnconfirmedAbsencesForStudent$=this.route.paramMap.pipe(R(this.getAbsencesForStudentParam.bind(this))),this.mailTo$=S([this.studentEmail$,this.allUnconfirmedAbsencesForStudent$]).pipe(b(([m,W])=>this.openAbsencesService.buildMailToString(m,W))),this.destroy$=new k}ngOnInit(){this.selectionService.clearNonLessonPresences(),this.route.paramMap.pipe(G(this.destroy$)).subscribe(e=>this.openAbsencesService.currentDetail={date:String(e.get("date")),personId:Number(e.get("personId"))}),this.hasAbsences$.pipe(G(this.destroy$),ie(he(ye))).subscribe(()=>void 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(b(t=>e.TypeRef.Id&&t.find(i=>i.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")))}static{this.\u0275fac=function(t){return new(t||n)(h(be),h(me),h(A),h($e),h(Te),h(y),h(H))}}static{this.\u0275cmp=O({type:n,selectors:[["bkd-open-absences-detail"]],standalone:!0,features:[L],decls:6,vars:10,consts:[[3,"link"],[3,"absences$","selectionService","confirmLink","displayEmail","mailTo$"]],template:function(t,i){t&1&&(c(0,"div"),x(1,"bkd-backlink",0),c(2,"h1"),u(3),a(4,"async"),o()(),x(5,"bkd-student-dossier-absences",1)),t&2&&(s(),C("link",B(9,We)),s(2),v(l(4,7,i.studentFullName$)),s(2),C("absences$",i.absences$)("selectionService",i.selectionService)("confirmLink","/open-absences/confirm")("displayEmail",!0)("mailTo$",i.mailTo$))},dependencies:[De,Le,z],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 n})();var Ye=(n,g)=>g.id,Re=()=>[],ee=n=>({count:n}),Ge=(n,g)=>["detail",n,g];function Je(n,g){if(n&1&&(c(0,"div",2)(1,"div",5),u(2),a(3,"translate"),o(),c(4,"a",6)(5,"i",7),u(6,"edit"),o()()()),n&2){f();let e=I(0);s(2),E(" ",N(3,3,"open-absences.selected",q(6,ee,e.length))," "),s(2),re("disabled",e.length===0)}}function Qe(n,g){n&1&&x(0,"bkd-spinner")}function Xe(n,g){n&1&&(c(0,"p",3),u(1),a(2,"translate"),o()),n&2&&(s(),v(l(2,1,"open-absences.noEntries")))}function Ze(n,g){if(n&1&&(c(0,"span",13),u(1),o()),n&2){let e=f().$implicit,t=f(2),i=I(4);s(),v(t.getSortDirectionCharacter(i,e))}}function et(n,g){if(n&1){let e=F();c(0,"div",12),M("click",function(){let i=$(e).$implicit,r=f(2);return P(r.openAbsencesService.toggleSort(i))}),u(1),a(2,"translate"),D(3,Ze,2,1,"span",13),o()}if(n&2){let e=g.$implicit;f(2);let t=I(4);C("className",e),s(),E(" ",l(2,3,"open-absences.list.header."+e)," "),s(2),U(t?3:-1)}}function tt(n,g){if(n&1){let e=F();c(0,"div")(1,"div",14)(2,"div",15),M("click",function(i){$(e);let r=ce(4),d=f(2);return P(d.onCheckboxCellClick(i,r))}),c(3,"input",10,0),a(5,"async"),M("change",function(){let i=$(e).$implicit,r=f(2);return P(r.selectionService.toggle(i))}),o()(),c(6,"div",16)(7,"a",17),u(8),o()(),c(9,"div",18),u(10),o(),c(11,"div",19),u(12),a(13,"translate"),o(),c(14,"div",20),u(15),a(16,"translate"),o(),c(17,"div",21),u(18),a(19,"bkdDaysDifference"),o(),c(20,"div",22),u(21),a(22,"date"),o()()()}if(n&2){let e=g.$implicit,t=f(2);s(3),C("checked",l(5,9,t.selectionService.isSelected$(e))),s(4),C("routerLink",le(22,Ge,e.studentId,e.dateString)),s(),v(e.studentFullName),s(2),E(" ",e.studyClassNumber," "),s(2),E(" ",N(13,11,t.getLessonsCountKey(e),q(25,ee,e.lessonsCount))," "),s(3),ae(" ",e.studyClassNumber,", ",N(16,14,t.getLessonsCountKey(e),q(27,ee,e.lessonsCount))," "),s(3),E(" ",l(19,17,e.date)," "),s(3),v(N(22,19,e.date,"dd.MM.yyyy"))}}function nt(n,g){if(n&1){let e=F();c(0,"div",4)(1,"div",8)(2,"div",9)(3,"input",10),M("change",function(i){$(e);let r=f();return P(r.onToggleAll(i.currentTarget==null?null:i.currentTarget.checked))}),o()(),J(4,et,4,5,"div",11,oe),o(),J(6,tt,23,29,"div",null,Ye),o()}if(n&2){let e=f(),t=I(0),i=I(2);s(3),C("checked",t.length===i.length),s(),Q(e.primarySortKeys),s(2),Q(i)}}var Ue=(()=>{class n{constructor(e,t,i){this.openAbsencesService=e,this.selectionService=t,this.scrollPosition=i,this.primarySortKeys=["name","date"],this.destroy$=new k}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"}`}static{this.\u0275fac=function(t){return new(t||n)(h(A),h(y),h(H))}}static{this.\u0275cmp=O({type:n,selectors:[["bkd-open-absences-list"]],standalone:!0,features:[L],decls:22,vars:29,consts:[["checkbox",""],[1,"d-flex","header-search",3,"valueChange","value","placeholder","label"],[1,"d-flex","align-items-center","justify-content-between","mt-1"],[1,"mt-3"],[1,"content"],[1,"selection-count","ps-1"],["routerLink","/open-absences/confirm",1,"edit","btn","btn-primary","btn-edit","mt-1","mb-2"],[1,"material-icons"],[1,"absence-header"],[1,"checkbox"],["type","checkbox",1,"form-check-input",3,"change","checked"],[3,"className"],[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"]],template:function(t,i){if(t&1){let r=F();j(0),a(1,"async"),j(2),a(3,"async"),j(4),a(5,"async"),j(6),a(7,"async"),c(8,"h1"),u(9),a(10,"translate"),o(),c(11,"div")(12,"div")(13,"bkd-resettable-input",1),a(14,"async"),a(15,"translate"),a(16,"translate"),M("valueChange",function(p){return $(r),P(i.openAbsencesService.search$.next(p))}),o(),D(17,Je,7,8,"div",2),o(),D(18,Qe,1,0,"bkd-spinner"),a(19,"async"),D(20,Xe,3,3,"p",3)(21,nt,8,1,"div",4),o()}if(t&2){let r,d,p;K((r=l(1,6,i.selectionService.selection$))!==null&&r!==void 0?r:B(27,Re)),s(2);let T=K((d=l(3,9,i.openAbsencesService.filteredEntries$))!==null&&d!==void 0?d:B(28,Re));s(2),K(l(5,12,i.openAbsencesService.sortCriteria$));let m=((p=(p=l(7,15,i.openAbsencesService.sortedEntries$))==null?null:p.length)!==null&&p!==void 0?p:0)===0||T.length===0;s(5),v(l(10,17,"open-absences.title")),s(4),C("value",l(14,19,i.openAbsencesService.search$))("placeholder",l(15,21,"open-absences.search-by-name-or-class"))("label",l(16,23,"open-absences.search")),s(4),U(m?-1:17),s(),U(l(19,25,i.openAbsencesService.loading$)?18:m?20:21)}},dependencies:[je,ge,Ie,z,de,_e,Ce,Ee],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 n})();var Ke=(()=>{class n{constructor(){}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=O({type:n,selectors:[["bkd-open-absences"]],standalone:!0,features:[pe([A,y,{provide:Se,useExisting:A}]),L],decls:1,vars:0,template:function(t,i){t&1&&x(0,"router-outlet")},dependencies:[ue],changeDetection:0})}}return n})();var Vt=[{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:Pe}]}];export{Vt as OPEN_ABSENCES_ROUTES}; diff --git a/public/apps/webapp-schulverwaltung/chunk-VGJCKFZL.js b/public/apps/webapp-schulverwaltung/chunk-VGJCKFZL.js new file mode 100644 index 00000000..a3f3993b --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-VGJCKFZL.js @@ -0,0 +1,2 @@ +import{d as le,e as mt,i as C,j as l,k as ft}from"./chunk-NL5E3FC5.js";import{a as ht}from"./chunk-UGBTF4Z2.js";import{a as pt,b as gt}from"./chunk-KK2SHN2W.js";import{u as dt,w as lt,z as _e}from"./chunk-LGOOC47H.js";import{Ab as oe,Cc as at,Dc as Se,Dd as ce,Ec as F,F as G,Gb as f,H as te,Ha as _,Hb as h,Ib as K,Ic as st,Id as ut,Jd as ue,K as Ne,Kd as de,M as T,Ma as B,Na as He,O as W,P as ve,Pc as ct,Q as Ye,Ra as P,Ua as Ve,Va as Ge,Wa as m,X as D,Xa as p,Ya as Te,Yc as L,Zb as it,_ as S,_b as ot,a as Me,aa as ne,ab as ie,b as Fe,cb as X,da as Be,db as b,eb as Qe,f as Le,fb as Ue,g as Ae,gb as Xe,gc as ae,h as V,ha as je,hb as Je,ia as Q,ja as U,jb as Ke,kb as ze,l as Ee,lb as Ze,mb as et,n as c,nb as y,o as We,ob as J,pb as I,qb as Ce,r as $e,uc as se,va as qe,wa as u,wb as tt,x as Re,xa as re,xb as nt,yb as rt}from"./chunk-IFJN5CDK.js";var yt=function(e){return function(n){return!e(n)}};function zt(e){return!e}function Zt(e){return!!(e&&e.IsComment)}function en(e){return!!(e&&e.IsIncident)}function me(e){return!!(e&&(e.IsAbsence||e.IsDispensation||e.IsHalfDay))}function Pe(e,n){return!!(e&&n&&e.Id===n.absencePresenceTypeId)}function De(e,n){return!!(e&&n&&n===e.checkableAbsenceStateId)}function bt(e,n,t){return!!(zt(n)&&e.ConfirmationStateId===null||Zt(n)||en(n)||me(n)&&e.ConfirmationStateId===t.unconfirmedAbsenceStateId||De(t,e.ConfirmationStateId))}function pr(e,n){return e?.IsAbsence?n.unconfirmedAbsenceStateId:null}var v=function(e){return e.Present="present",e.Unapproved="unapproved",e.Absent="absent",e}(v||{});function tn(e){switch(e){case v.Absent:return"cancel";case v.Unapproved:return"help";default:return"check_circle"}}var fe=class{constructor(n,t,r,i){this.lessonPresence=n,this.presenceType=t,this.precedingAbsences=r,this.confirmationState=i,this.studentFullName=n.StudentFullName}get id(){return`${this.lessonPresence.LessonRef.Id}-${this.lessonPresence.StudentRef.Id}`}get presenceCategory(){return De(this.settings,this.confirmationState&&Number(this.confirmationState.Key))?v.Unapproved:me(this.presenceType)?v.Absent:v.Present}get nextPresenceCategory(){return this.presenceCategory===v.Absent?v.Present:v.Absent}getNextPresenceType(n){switch(this.nextPresenceCategory){case v.Absent:return this.presenceCategory===v.Unapproved?this.presenceType:n.find(t=>Pe(t,this.settings))||null;default:return null}}get canChangePresenceType(){return bt(this.lessonPresence,this.presenceType,this.settings)}get canChangeIncident(){return!me(this.presenceType)}get showDesignation(){return!this.canChangePresenceType||this.presenceCategory===v.Absent&&!Pe(this.presenceType,this.settings)||this.presenceCategory===v.Unapproved}get presenceCategoryIcon(){return tn(this.presenceCategory)}get settings(){return window.schulverwaltung.settings}};function xt(e,n,t){let r=l(e,t?.in);return isNaN(n)?C(t?.in||e,NaN):(n&&r.setDate(r.getDate()+n),r)}var nn={};function A(){return nn}function O(e,n){let t=A(),r=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??t.weekStartsOn??t.locale?.options?.weekStartsOn??0,i=l(e,n?.in),o=i.getDay(),a=(o=o.getTime()?r+1:t.getTime()>=d.getTime()?r:r-1}function ke(e){let n=l(e),t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),+e-+t}function z(e,n){let t=l(e,n?.in);return t.setHours(0,0,0,0),t}function he(e,n,t){let[r,i]=ft(t?.in,e,n),o=z(r),a=z(i),d=+o-ke(o),x=+a-ke(a);return Math.round((d-x)/mt)}function wt(e,n){let t=pe(e,n),r=C(n?.in||e,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),$(r)}function vt(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Tt(e){return!(!vt(e)&&typeof e!="number"||isNaN(+l(e)))}function Ct(e,n){let t=l(e,n?.in);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}var rn={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"}},St=(e,n,t)=>{let r,i=rn[e];return typeof i=="string"?r=i:n===1?r=i.one:r=i.other.replace("{{count}}",n.toString()),t?.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function ge(e){return(n={})=>{let t=n.width?String(n.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}var on={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},an={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},sn={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},_t={date:ge({formats:on,defaultWidth:"full"}),time:ge({formats:an,defaultWidth:"full"}),dateTime:ge({formats:sn,defaultWidth:"full"})};var cn={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Pt=(e,n,t,r)=>cn[e];function j(e){return(n,t)=>{let r=t?.context?String(t.context):"standalone",i;if(r==="formatting"&&e.formattingValues){let a=e.defaultFormattingWidth||e.defaultWidth,d=t?.width?String(t.width):a;i=e.formattingValues[d]||e.formattingValues[a]}else{let a=e.defaultWidth,d=t?.width?String(t.width):e.defaultWidth;i=e.values[d]||e.values[a]}let o=e.argumentCallback?e.argumentCallback(n):n;return i[o]}}var un={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},dn={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ln={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"]},mn={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"]},fn={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"}},pn={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"}},hn=(e,n)=>{let t=Number(e),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},Dt={ordinalNumber:hn,era:j({values:un,defaultWidth:"wide"}),quarter:j({values:dn,defaultWidth:"wide",argumentCallback:e=>e-1}),month:j({values:ln,defaultWidth:"wide"}),day:j({values:mn,defaultWidth:"wide"}),dayPeriod:j({values:fn,defaultWidth:"wide",formattingValues:pn,defaultFormattingWidth:"wide"})};function q(e){return(n,t={})=>{let r=t.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=n.match(i);if(!o)return null;let a=o[0],d=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],x=Array.isArray(d)?yn(d,g=>g.test(a)):gn(d,g=>g.test(a)),k;k=e.valueCallback?e.valueCallback(x):x,k=t.valueCallback?t.valueCallback(k):k;let w=n.slice(a.length);return{value:k,rest:w}}}function gn(e,n){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&n(e[t]))return t}function yn(e,n){for(let t=0;t{let r=n.match(e.matchPattern);if(!r)return null;let i=r[0],o=n.match(e.parsePattern);if(!o)return null;let a=e.valueCallback?e.valueCallback(o[0]):o[0];a=t.valueCallback?t.valueCallback(a):a;let d=n.slice(i.length);return{value:a,rest:d}}}var bn=/^(\d+)(th|st|nd|rd)?/i,xn=/\d+/i,wn={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},vn={any:[/^b/i,/^(a|c)/i]},Tn={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Cn={any:[/1/i,/2/i,/3/i,/4/i]},Sn={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},_n={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},Dn={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]},kn={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},In={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}},It={ordinalNumber:kt({matchPattern:bn,parsePattern:xn,valueCallback:e=>parseInt(e,10)}),era:q({matchPatterns:wn,defaultMatchWidth:"wide",parsePatterns:vn,defaultParseWidth:"any"}),quarter:q({matchPatterns:Tn,defaultMatchWidth:"wide",parsePatterns:Cn,defaultParseWidth:"any",valueCallback:e=>e+1}),month:q({matchPatterns:Sn,defaultMatchWidth:"wide",parsePatterns:_n,defaultParseWidth:"any"}),day:q({matchPatterns:Pn,defaultMatchWidth:"wide",parsePatterns:Dn,defaultParseWidth:"any"}),dayPeriod:q({matchPatterns:kn,defaultMatchWidth:"any",parsePatterns:In,defaultParseWidth:"any"})};var Ie={code:"en-US",formatDistance:St,formatLong:_t,formatRelative:Pt,localize:Dt,match:It,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ot(e,n){let t=l(e,n?.in);return he(t,Ct(t))+1}function Mt(e,n){let t=l(e,n?.in),r=+$(t)-+wt(t);return Math.round(r/le)+1}function ye(e,n){let t=l(e,n?.in),r=t.getFullYear(),i=A(),o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=C(n?.in||e,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);let d=O(a,n),x=C(n?.in||e,0);x.setFullYear(r,0,o),x.setHours(0,0,0,0);let k=O(x,n);return+t>=+d?r+1:+t>=+k?r:r-1}function Ft(e,n){let t=A(),r=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??t.firstWeekContainsDate??t.locale?.options?.firstWeekContainsDate??1,i=ye(e,n),o=C(n?.in||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),O(o,n)}function Lt(e,n){let t=l(e,n?.in),r=+O(t,n)-+Ft(t,n);return Math.round(r/le)+1}function s(e,n){let t=e<0?"-":"",r=Math.abs(e).toString().padStart(n,"0");return t+r}var M={y(e,n){let t=e.getFullYear(),r=t>0?t:1-t;return s(n==="yy"?r%100:r,n.length)},M(e,n){let t=e.getMonth();return n==="M"?String(t+1):s(t+1,2)},d(e,n){return s(e.getDate(),n.length)},a(e,n){let t=e.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(e,n){return s(e.getHours()%12||12,n.length)},H(e,n){return s(e.getHours(),n.length)},m(e,n){return s(e.getMinutes(),n.length)},s(e,n){return s(e.getSeconds(),n.length)},S(e,n){let t=n.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,t-3));return s(i,n.length)}};var H={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Oe={G:function(e,n,t){let r=e.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});case"GGGG":default:return t.era(r,{width:"wide"})}},y:function(e,n,t){if(n==="yo"){let r=e.getFullYear(),i=r>0?r:1-r;return t.ordinalNumber(i,{unit:"year"})}return M.y(e,n)},Y:function(e,n,t,r){let i=ye(e,r),o=i>0?i:1-i;if(n==="YY"){let a=o%100;return s(a,2)}return n==="Yo"?t.ordinalNumber(o,{unit:"year"}):s(o,n.length)},R:function(e,n){let t=pe(e);return s(t,n.length)},u:function(e,n){let t=e.getFullYear();return s(t,n.length)},Q:function(e,n,t){let r=Math.ceil((e.getMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return s(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,n,t){let r=Math.ceil((e.getMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return s(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,n,t){let r=e.getMonth();switch(n){case"M":case"MM":return M.M(e,n);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(e,n,t){let r=e.getMonth();switch(n){case"L":return String(r+1);case"LL":return s(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(e,n,t,r){let i=Lt(e,r);return n==="wo"?t.ordinalNumber(i,{unit:"week"}):s(i,n.length)},I:function(e,n,t){let r=Mt(e);return n==="Io"?t.ordinalNumber(r,{unit:"week"}):s(r,n.length)},d:function(e,n,t){return n==="do"?t.ordinalNumber(e.getDate(),{unit:"date"}):M.d(e,n)},D:function(e,n,t){let r=Ot(e);return n==="Do"?t.ordinalNumber(r,{unit:"dayOfYear"}):s(r,n.length)},E:function(e,n,t){let r=e.getDay();switch(n){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});case"EEEE":default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(e,n,t,r){let i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(o);case"ee":return s(o,2);case"eo":return t.ordinalNumber(o,{unit:"day"});case"eee":return t.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(i,{width:"short",context:"formatting"});case"eeee":default:return t.day(i,{width:"wide",context:"formatting"})}},c:function(e,n,t,r){let i=e.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(o);case"cc":return s(o,n.length);case"co":return t.ordinalNumber(o,{unit:"day"});case"ccc":return t.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(i,{width:"narrow",context:"standalone"});case"cccccc":return t.day(i,{width:"short",context:"standalone"});case"cccc":default:return t.day(i,{width:"wide",context:"standalone"})}},i:function(e,n,t){let r=e.getDay(),i=r===0?7:r;switch(n){case"i":return String(i);case"ii":return s(i,n.length);case"io":return t.ordinalNumber(i,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});case"iiii":default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(e,n,t){let i=e.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,n,t){let r=e.getHours(),i;switch(r===12?i=H.noon:r===0?i=H.midnight:i=r/12>=1?"pm":"am",n){case"b":case"bb":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,n,t){let r=e.getHours(),i;switch(r>=17?i=H.evening:r>=12?i=H.afternoon:r>=4?i=H.morning:i=H.night,n){case"B":case"BB":case"BBB":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,n,t){if(n==="ho"){let r=e.getHours()%12;return r===0&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return M.h(e,n)},H:function(e,n,t){return n==="Ho"?t.ordinalNumber(e.getHours(),{unit:"hour"}):M.H(e,n)},K:function(e,n,t){let r=e.getHours()%12;return n==="Ko"?t.ordinalNumber(r,{unit:"hour"}):s(r,n.length)},k:function(e,n,t){let r=e.getHours();return r===0&&(r=24),n==="ko"?t.ordinalNumber(r,{unit:"hour"}):s(r,n.length)},m:function(e,n,t){return n==="mo"?t.ordinalNumber(e.getMinutes(),{unit:"minute"}):M.m(e,n)},s:function(e,n,t){return n==="so"?t.ordinalNumber(e.getSeconds(),{unit:"second"}):M.s(e,n)},S:function(e,n){return M.S(e,n)},X:function(e,n,t){let r=e.getTimezoneOffset();if(r===0)return"Z";switch(n){case"X":return Et(r);case"XXXX":case"XX":return R(r);case"XXXXX":case"XXX":default:return R(r,":")}},x:function(e,n,t){let r=e.getTimezoneOffset();switch(n){case"x":return Et(r);case"xxxx":case"xx":return R(r);case"xxxxx":case"xxx":default:return R(r,":")}},O:function(e,n,t){let r=e.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+At(r,":");case"OOOO":default:return"GMT"+R(r,":")}},z:function(e,n,t){let r=e.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+At(r,":");case"zzzz":default:return"GMT"+R(r,":")}},t:function(e,n,t){let r=Math.trunc(+e/1e3);return s(r,n.length)},T:function(e,n,t){return s(+e,n.length)}};function At(e,n=""){let t=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?t+String(i):t+String(i)+n+s(o,2)}function Et(e,n){return e%60===0?(e>0?"-":"+")+s(Math.abs(e)/60,2):R(e,n)}function R(e,n=""){let t=e>0?"-":"+",r=Math.abs(e),i=s(Math.trunc(r/60),2),o=s(r%60,2);return t+i+n+o}var Wt=(e,n)=>{switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},$t=(e,n)=>{switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},On=(e,n)=>{let t=e.match(/(P+)(p+)?/)||[],r=t[1],i=t[2];if(!i)return Wt(e,n);let o;switch(r){case"P":o=n.dateTime({width:"short"});break;case"PP":o=n.dateTime({width:"medium"});break;case"PPP":o=n.dateTime({width:"long"});break;case"PPPP":default:o=n.dateTime({width:"full"});break}return o.replace("{{date}}",Wt(r,n)).replace("{{time}}",$t(i,n))},Rt={p:$t,P:On};var Mn=/^D+$/,Fn=/^Y+$/,Ln=["D","DD","YY","YYYY"];function Nt(e){return Mn.test(e)}function Yt(e){return Fn.test(e)}function Bt(e,n,t){let r=An(e,n,t);if(console.warn(r),Ln.includes(e))throw new RangeError(r)}function An(e,n,t){let r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${n}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var En=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Wn=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$n=/^'([^]*?)'?$/,Rn=/''/g,Nn=/[a-zA-Z]/;function E(e,n,t){let r=A(),i=t?.locale??r.locale??Ie,o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,d=l(e,t?.in);if(!Tt(d))throw new RangeError("Invalid time value");let x=n.match(Wn).map(w=>{let g=w[0];if(g==="p"||g==="P"){let we=Rt[g];return we(w,i.formatLong)}return w}).join("").match(En).map(w=>{if(w==="''")return{isToken:!1,value:"'"};let g=w[0];if(g==="'")return{isToken:!1,value:Yn(w)};if(Oe[g])return{isToken:!0,value:w};if(g.match(Nn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:w}});i.localize.preprocessor&&(x=i.localize.preprocessor(d,x));let k={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return x.map(w=>{if(!w.isToken)return w.value;let g=w.value;(!t?.useAdditionalWeekYearTokens&&Yt(g)||!t?.useAdditionalDayOfYearTokens&&Nt(g))&&Bt(g,n,String(e));let we=Oe[g[0]];return we(d,g,i.localize,k)}).join("")}function Yn(e){let n=e.match($n);return n?n[1].replace(Rn,"'"):e}function lo(e,n,t){return xt(e,-n,t)}var N=class{constructor(n){if(this.absences=n,n.length===0)throw new Error("Absences array is empty");this.date=z(this.absences[0].LessonDateTimeFrom),this.dateString=E(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}get id(){return`${this.dateString}-${this.studentId}`}};function yo(e,n){return e===null&&n===null||e!==null&&n!==null&&e.LessonRef.Id===n.LessonRef.Id&&e.EventDesignation===n.EventDesignation&&e.StudyClassNumber===n.StudyClassNumber&&e.TeacherInformation===n.TeacherInformation&&e.LessonDateTimeFrom.getTime()===n.LessonDateTimeFrom.getTime()&&e.LessonDateTimeTo.getTime()===n.LessonDateTimeTo.getTime()}function Bn(e,n){return e?n.filter(t=>e.lessons.map(r=>r.LessonRef.Id).indexOf(t.LessonRef.Id)>=0).sort(Hn):[]}function jn(e,n,t){return ce(e.filter(r=>r.StudentRef.Id===n.StudentRef.Id&&r.LessonRef.From&&r.LessonRef.From.toDateString()===t?.LessonDateTimeFrom.toDateString()&&r.LessonRef.Fromqn(e,o,t,r,i))}function qn(e,n,t,r,i){let o=null;n.TypeRef.Id&&(o=t.find(x=>x.Id===n.TypeRef.Id)||null);let a=jn(i,n,e),d;return n.ConfirmationStateId&&(d=r.find(x=>x.Key===n.ConfirmationStateId)),new fe(n,o,a,d)}function jt(e,n){let t=e.LessonDateTimeFrom.getTime(),r=n.LessonDateTimeFrom.getTime();return t-r===0?e.LessonDateTimeTo.getTime()-n.LessonDateTimeTo.getTime():t-r}function Hn(e,n){return e.StudentFullName.localeCompare(n.StudentFullName)}function Vn(e,n){return e.LessonRef.From&&e.LessonRef.To&&n.LessonRef.From&&n.LessonRef.To?e.LessonRef.From.getTime()-n.LessonRef.From.getTime()===0?e.LessonRef.To.getTime()-n.LessonRef.To.getTime():e.LessonRef.From.getTime()-n.LessonRef.From.getTime():0}var be=class extends Error{constructor(n,t){super(`TypeScript thought we could never end up here +${t}`)}};function Po(e){let n=Qn(e);return Object.keys(n).reduce((t,r)=>(Object.keys(n[r]).forEach(i=>{t=[...t,new N(n[r][i].sort(jt))]}),t),[])}function Do(e,n){return[...e].sort(Gn(n))}function xe(e){return e.reduce((n,t)=>n.concat(t.absences),[])}function ko(e,n){return e.filter(t=>!n.some(({lessonIds:r,personId:i})=>r.includes(t.LessonRef.Id)&&i===t.StudentRef.Id))}function Io(e,n){return ce([...e,...n],"Id")}function Gn(e){return(n,t)=>{switch(e.primarySortKey){case"date":{let r=n.date.getTime(),i=t.date.getTime();return r===i?n.studentFullName.localeCompare(t.studentFullName):e.ascending?r-i:i-r}case"name":{let r=e.ascending?n.studentFullName.localeCompare(t.studentFullName):t.studentFullName.localeCompare(n.studentFullName);return r===0?t.date.getTime()-n.date.getTime():r}default:throw new be(e.primarySortKey,"Unhandled sort criteria")}}}function Qn(e){return e.reduce((n,t)=>{let r=E(t.LessonDateTimeFrom,"yyyy-MM-dd"),i=t.StudentRef.Id;return n[r]||(n[r]={}),n[r][i]||(n[r][i]=[]),n[r][i].push(t),n},{})}var Z=function(e){return e.ToggleSelection="TOGGLE",e.ClearSelection="CLEAR",e}(Z||{}),qt=(()=>{class e{constructor(){this.action$=new Le,this.selection$=$e(this.action$.pipe(Ne(this.reduceSelection.bind(this),[]),W([])),{connector:()=>new V(1)}),this.selectionSub=this.selection$.connect()}ngOnDestroy(){this.selectionSub.unsubscribe()}toggle(t){this.action$.next({type:Z.ToggleSelection,payload:t})}clear(t=null){this.action$.next({type:Z.ClearSelection,payload:t})}isSelected$(t){return this.selection$.pipe(c(r=>r.includes(t)),te())}reduceSelection(t,r){switch(r.type){case Z.ToggleSelection:return t.includes(r.payload)?t.filter(i=>i!==r.payload):[...t,r.payload];case Z.ClearSelection:return r.payload||[];default:return t}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac})}}return e})();function Eo(e){let n=e.reduce((t,r)=>(t[r.StudentRef.Id]||(t[r.StudentRef.Id]=[]),t[r.StudentRef.Id].push(r.LessonRef.Id),t),{});return Object.keys(n).map(t=>({personIds:[Number(t)],lessonIds:n[t]}))}function Ht(e){let n={};return e.forEach(t=>{n[t.StudentRef.Id]||(n[t.StudentRef.Id]={}),n[t.StudentRef.Id][String(t.TypeRef.Id)]||(n[t.StudentRef.Id][String(t.TypeRef.Id)]=[]),n[t.StudentRef.Id][String(t.TypeRef.Id)].push(t.LessonRef.Id)}),Object.keys(n).reduce((t,r)=>[...t,...Object.keys(n[r]).map(i=>({personId:Number(r),presenceTypeId:i==="null"?null:Number(i),lessonIds:n[r][String(i)]}))],[])}function Wo(e){return e.slice().sort((n,t)=>n.LessonDateTimeFrom.getTime()-t.LessonDateTimeFrom.getTime())}function $o(e){return`${e.EventDesignation}, ${E(e.LessonDateTimeFrom,"dd.MM.yyyy")}, ${E(e.LessonDateTimeFrom,"HH:mm")}-${E(e.LessonDateTimeTo,"HH:mm")}`}var Qo=(()=>{class e extends qt{constructor(t){super(),this.settings=t,this.selectedIds$=this.selection$.pipe(c(ee),c(({openAbsencesEntries:r,lessonPresences:i})=>Ht([...xe(r),...i])),T(1)),this.selectedLessons$=this.selection$.pipe(c(ee),c(({openAbsencesEntries:r,lessonPresences:i})=>[...xe(r),...i]),T(1)),this.selectedWithoutPresenceType$=this.selection$.pipe(c(ee),c(({openAbsencesEntries:r,lessonPresences:i})=>[...xe(r),...i].filter(o=>o.TypeRef.Id===this.settings.absencePresenceTypeId)))}clearNonOpenAbsencesEntries(){this.selection$.pipe(G(1),c(ee)).subscribe(({openAbsencesEntries:t})=>this.clear(t))}clearNonLessonPresences(){this.selection$.pipe(G(1),c(ee)).subscribe(({lessonPresences:t})=>this.clear(t))}static{this.\u0275fac=function(r){return new(r||e)(S(L))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac})}}return e})();function ee(e){return{openAbsencesEntries:e.filter(_e(N)),lessonPresences:e.filter(yt(_e(N)))}}function Vt(e){return e.slice().sort((n,t)=>n.Sort-t.Sort)}function Xo(e){return e.map(n=>({Key:n.Id,Value:n.Designation||""}))}function Jo(e,n){return e.map(t=>Object.assign(t,{Group:n}))}var Gt=st({Id:Se,Active:F,Designation:ct(at),IsAbsence:F,IsComment:F,IsDispensation:F,IsIncident:F,IsHalfDay:F,NeedsConfirmation:F,Sort:Se});var Qt=(()=>{class e extends pt{constructor(t,r){super(t,r,Gt,"PresenceTypes")}static{this.\u0275fac=function(r){return new(r||e)(S(ae),S(L))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Ut=(()=>{class e{constructor(t,r){this.restService=t,this.settings=r,this.presenceTypes$=this.loadPresenceTypes().pipe(T(1)),this.activePresenceTypes$=this.presenceTypes$.pipe(c(this.filterActiveTypes.bind(this)),T(1)),this.confirmationTypes$=this.presenceTypes$.pipe(c(this.filterConfirmationTypes.bind(this)),T(1)),this.incidentTypes$=this.presenceTypes$.pipe(c(this.filterIncidentTypes.bind(this)),T(1)),this.displayedTypes$=this.presenceTypes$.pipe(c(this.filterDisplayedTypes.bind(this)),T(1)),this.halfDayActive$=this.presenceTypes$.pipe(c(this.isHalfDayActive.bind(this)),W(!1),te(),T(1))}getPresenceType(t){return this.presenceTypes$.pipe(c(r=>{let i=r.find(o=>o.Id===t);if(!i)throw new Error("presence type not found");return i}))}loadPresenceTypes(){return this.restService.getList().pipe(c(Vt))}filterActiveTypes(t){return t.filter(r=>r.Active)}filterConfirmationTypes(t){return t.filter(r=>r.NeedsConfirmation&&r.Active&&r.Id!==this.settings.absencePresenceTypeId)}filterIncidentTypes(t){return t.filter(r=>r.IsIncident&&r.Active)}filterDisplayedTypes(t){return t.filter(r=>r.Id!==this.settings.absencePresenceTypeId)}isHalfDayActive(t){return!!t.find(r=>r.Id===this.settings.halfDayPresenceTypeId)?.Active}static{this.\u0275fac=function(r){return new(r||e)(S(Qt),S(L))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ua=(()=>{class e{constructor(t,r){this.http=t,this.settings=r}editLessonPresences(t,r,i,o,a){let d={LessonIds:t,PersonIds:r};return i!==void 0&&(d.PresenceTypeId=i),o!==void 0&&(d.ConfirmationValue=o),this.http.put(`${this.settings.apiUrl}/LessonPresences/Edit`,d,a).pipe(c(()=>{}))}removeLessonPresences(t,r,i){return this.http.put(`${this.settings.apiUrl}/LessonPresences/Reset`,{LessonIds:t,PersonIds:r,WithComment:!0},i).pipe(c(()=>{}))}confirmLessonPresences(t,r,i,o){let a={LessonIds:t,PersonIds:r,AbsenceTypeId:i,ConfirmationValue:o};return this.http.put(`${this.settings.apiUrl}/LessonAbsences/Confirm`,a).pipe(c(()=>{}))}static{this.\u0275fac=function(r){return new(r||e)(S(ae),S(L))}}static{this.\u0275prov=D({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Jt=(()=>{class e{constructor(t){this.translate=t}transform(t){if(!t)return"";let r=he(t,new Date);return this.translate.instant(`shared.daysDifference.${this.getKey(r)}`,{count:Math.abs(r)})}getKey(t){return t===0?"today":t===1?"tomorrow":t===-1?"yesterday":t>0?"in":"ago"}static{this.\u0275fac=function(r){return new(r||e)(re(ut,16))}}static{this.\u0275pipe=Be({name:"bkdDaysDifference",type:e,pure:!0,standalone:!0})}}return e})();function fa(e){return e.length===0}function Kt(e){return Array.isArray(e)}var Kn=["checkbox"],zn=(e,n)=>n.Id;function Zn(e,n){e&1&&Te(0,"bkd-spinner",2)}function er(e,n){if(e&1&&Te(0,"bkd-reports-link",13),e&2){let t=b(4);B("reports",t.reports)("disableIfUnavailable",!0)}}function tr(e,n){if(e&1&&(m(0,"a",14),f(1,"async"),m(2,"i",12),y(3,"mail"),p()()),e&2){let t=b(4);Je("href","mailto:",h(1,2,t.mailTo$),"",qe)}}function nr(e,n){if(e&1&&(m(0,"div",15),y(1),p()),e&2){let t=b(4);u(),I(" ",t.defaultAbsenceSelectionMessage," ")}}function rr(e,n){if(e&1){let t=ie();m(0,"div",6),X("click",function(i){Q(t);let o=et(3),a=b(3);return U(a.onRowClick(i,o))}),m(1,"div",7)(2,"input",8,0),f(4,"async"),X("change",function(i){Q(t);let o=b(3);return U(o.toggleAll(i.target==null?null:i.target.checked))}),p()(),m(5,"div",9),y(6),f(7,"translate"),p(),m(8,"div",10)(9,"a",11),f(10,"async"),m(11,"i",12),y(12,"edit"),p()(),_(13,er,1,2,"bkd-reports-link",13)(14,tr,4,4,"a",14),p(),_(15,nr,2,1,"div",15),f(16,"async"),p()}if(e&2){let t,r,i=b(3);u(2),B("checked",h(4,8,i.allSelected$)),u(4),J(h(7,10,"open-absences.detail.all")),u(3),He("disabled",((t=h(10,12,i.selectionService==null?null:i.selectionService.selection$))==null?null:t.length)===0),Xe("routerLink",i.confirmLink),u(4),P(i.reports?13:-1),u(),P(i.displayEmail?14:-1),u(),P(i.defaultAbsenceSelectionMessage&&((r=h(16,14,i.selectionService==null?null:i.selectionService.selectedWithoutPresenceType$))!=null&&r.length)?15:-1)}}function ir(e,n){if(e&1){let t=ie();m(0,"div",7)(1,"input",8,1),f(3,"async"),X("change",function(){Q(t);let i=b().$implicit,o=b(3);return U(o.selectionService==null?null:o.selectionService.toggle(i))}),p()()}if(e&2){let t=b().$implicit,r=b(3);u(),B("checked",h(3,1,r.selectionService==null?null:r.selectionService.isSelected$(t)))}}function or(e,n){if(e&1&&y(0),e&2){let t=b().$implicit;I(" , ",t.StudyClassNumber," ")}}function ar(e,n){if(e&1&&(m(0,"div",20),y(1),p()),e&2){b();let t=rt(12);u(),I(" ",t," ")}}function sr(e,n){e&1&&(m(0,"div",21),y(1),f(2,"translate"),p()),e&2&&(u(),I(" ",h(2,1,"my-absences.show.confirm-presence-type")," "))}function cr(e,n){if(e&1){let t=ie();m(0,"div",16),X("click",function(i){let o=Q(t).$index,a=b(3);return U(a.onRowClick(i,o))}),_(1,ir,4,3,"div",7),f(2,"async"),m(3,"div",17),y(4),_(5,or,1,1),p(),m(6,"div",18),y(7),f(8,"date"),f(9,"date"),p(),m(10,"div",19),y(11),p(),tt(12),f(13,"async"),_(14,ar,2,1,"div",20)(15,sr,3,3,"div",21),m(16,"div",22),y(17),f(18,"date"),p(),m(19,"div",23),y(20),f(21,"bkdDaysDifference"),p(),m(22,"div",24),y(23),f(24,"date"),f(25,"bkdDaysDifference"),p()()}if(e&2){let t=n.$implicit,r=b(3);u(),P(h(2,12,r.editable$)?1:-1),u(3),I(" ",t.EventDesignation," "),u(),P(t.StudyClassNumber?5:-1),u(2),Ce(" ",K(8,14,t.LessonDateTimeFrom,"HH:mm"),"\u2013",K(9,17,t.LessonDateTimeTo,"HH:mm")," "),u(4),I(" ",t.TeacherInformation," "),u();let i=nt(h(13,20,r.getPresenceTypeDesignation(t)));u(2),P(i?14:-1),u(),P(r.displayPresenceType&&!i&&r.defaultAbsenceSelectionMessage?15:-1),u(2),I(" ",K(18,23,t.LessonDateTimeFrom,"dd.MM.yyyy")," "),u(3),I(" ",h(21,26,t.LessonDateTimeFrom)," "),u(3),Ce(" ",K(24,28,t.LessonDateTimeFrom,"dd.MM.yyyy"),", ",h(25,31,t.LessonDateTimeFrom)," ")}}function ur(e,n){if(e&1&&(_(0,rr,17,16,"div",4),f(1,"async"),Ve(2,cr,26,33,"div",5,zn),f(4,"async")),e&2){let t=b(2);P(h(1,1,t.editable$)?0:-1),u(2),Ge(h(4,3,t.lessonPresences$))}}function dr(e,n){e&1&&(m(0,"p",3),y(1),f(2,"translate"),p()),e&2&&(u(),J(h(2,1,"shared.profile.no-absences")))}function lr(e,n){if(e&1&&(_(0,ur,5,5),f(1,"async"),_(2,dr,3,3,"p",3)),e&2){let t,r=b();P(((t=(t=h(1,1,r.lessonPresences$))==null?null:t.length)!==null&&t!==void 0?t:0)>0?0:2)}}var _a=(()=>{class e{constructor(t){this.presenceTypesService=t,this.selectionService=null,this.displayPresenceType=!0,this.defaultAbsenceSelectionMessage=null,this.reports=null,this.confirmLink="confirm",this.displayEmail=!1,this.lessonPresences$$=new V(1),this.lessonPresences$=this.lessonPresences$$.pipe(Ye(),W(null),T(1)),this.loading$=this.lessonPresences$.pipe(c(lt(Kt))),this.selectionService$=new V(1),this.editable$=this.selectionService$.pipe(c(()=>!0),W(!1)),this.displayPresenceType$=new Ae(!0),this.allSelected$=We([this.lessonPresences$.pipe(Re(dt)),this.selectionService$.pipe(ve(r=>r.selection$))]).pipe(c(([r,i])=>r.length===i.length))}ngOnChanges(t){t.absences$&&this.lessonPresences$$.next(t.absences$.currentValue),t.selectionService&&t.selectionService.currentValue&&(t.selectionService.currentValue.clear(),this.selectionService$.next(t.selectionService.currentValue)),t.displayPresenceType&&this.displayPresenceType$.next(t.displayPresenceType.currentValue)}toggleAll(t){t?this.lessonPresences$.pipe(G(1)).subscribe(r=>this.selectionService?.clear(r)):this.selectionService?.clear()}onRowClick(t,r){if(this.checkboxes.length===0)return;let i;typeof r=="number"?i=this.checkboxes.toArray()[r].nativeElement:i=r,t.target!==i&&!t.target.closest(".buttons")&&i.click()}getPresenceTypeDesignation(t){return this.displayPresenceType$.pipe(ve(r=>r?this.presenceTypesService.displayedTypes$:Ee([])),c(r=>t.TypeRef.Id&&r.find(i=>i.Id===t.TypeRef.Id)?.Designation||null))}static{this.\u0275fac=function(r){return new(r||e)(re(Ut))}}static{this.\u0275cmp=ne({type:e,selectors:[["bkd-student-dossier-absences"]],viewQuery:function(r,i){if(r&1&&Ke(Kn,5),r&2){let o;ze(o=Ze())&&(i.checkboxes=o)}},inputs:{absences$:"absences$",selectionService:"selectionService",displayPresenceType:"displayPresenceType",defaultAbsenceSelectionMessage:"defaultAbsenceSelectionMessage",reports:"reports",confirmLink:"confirmLink",displayEmail:"displayEmail",mailTo$:"mailTo$"},standalone:!0,features:[je,oe],decls:3,vars:3,consts:[["allCheckbox",""],["checkbox",""],[1,"inline","d-block","mb-3"],[1,"mx-3"],[1,"absence-all"],[1,"absence-entry"],[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"],[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"],[1,"lesson-class"],[1,"time","pe-2"],[1,"teacher"],[1,"presence-type"],[1,"presence-type","confirm"],[1,"date"],[1,"days-ago"],[1,"date-days-ago"]],template:function(r,i){r&1&&(_(0,Zn,1,0,"bkd-spinner",2),f(1,"async"),_(2,lr,3,3)),r&2&&P(h(1,1,i.loading$)?0:2)},dependencies:[se,ht,gt,it,ot,de,ue,Jt],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 e})();var mr=["*"],Ia=(()=>{class e{constructor(){this.link=[]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=ne({type:e,selectors:[["bkd-backlink"]],inputs:{link:"link",params:"params"},standalone:!0,features:[oe],ngContentSelectors:mr,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(r,i){r&1&&(Qe(),m(0,"div",0)(1,"a",1)(2,"span",2),y(3,"arrow_back"),p(),m(4,"span",3),y(5),f(6,"translate"),p()(),Ue(7),p()),r&2&&(u(),B("routerLink",i.link)("queryParams",i.params),u(4),J(h(6,3,"global.back")))},dependencies:[se,de,ue],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 e})();export{yt as a,xt as b,A as c,O as d,$ as e,ke as f,z as g,Ie as h,Mt as i,ye as j,Lt as k,Rt as l,Nt as m,Yt as n,Bt as o,E as p,lo as q,Zt as r,en as s,me as t,bt as u,pr as v,v as w,tn as x,fe as y,yo as z,bo as A,qn as B,jt as C,Po as D,Do as E,ko as F,Io as G,qt as H,Eo as I,Wo as J,$o as K,Qo as L,Vt as M,Xo as N,Jo as O,Ut as P,ua as Q,Jt as R,fa as S,_a as T,Ia as U}; diff --git a/public/apps/webapp-schulverwaltung/chunk-VJ6UATSE.js b/public/apps/webapp-schulverwaltung/chunk-VJ6UATSE.js deleted file mode 100644 index 9e9f2af4..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-VJ6UATSE.js +++ /dev/null @@ -1 +0,0 @@ -import{a as Cn,b as vn}from"./chunk-673RVEOB.js";import{a as me,b as we}from"./chunk-KDAC4GJ5.js";import{b as bn}from"./chunk-ZROJU7EX.js";import{a as yn}from"./chunk-MGID7RWQ.js";import{a as Pn,b as xn}from"./chunk-RQFEXCIP.js";import{a as _n}from"./chunk-JV3CBBGP.js";import{e as fn}from"./chunk-U4HODSW3.js";import{q as gn,v as Ie}from"./chunk-W7ASLXRM.js";import{a as at}from"./chunk-PSXDSPKS.js";import{b as Jt,e as ze}from"./chunk-C7XT5XXE.js";import{a as rn}from"./chunk-YMJC6QZX.js";import"./chunk-Y4QYVF5K.js";import"./chunk-HII3S2DL.js";import{a as In}from"./chunk-DZZC2YX2.js";import{a as Sn}from"./chunk-K3EEKOGY.js";import{a as pt,d as un}from"./chunk-24AFRN2G.js";import{a as cn}from"./chunk-RFO4NYUO.js";import{a as an,b as pn}from"./chunk-5RDJZAUT.js";import"./chunk-DB66EACG.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 Qe}from"./chunk-ZK2MNT7Z.js";import{d as st,e as ae}from"./chunk-AW7CSGKI.js";import{b as pe}from"./chunk-FTDG26ID.js";import{a as ce,b as Ke,c as xe,g as ln,h as dn,i as mn}from"./chunk-SOHFFTKU.js";import{f as Rt,g as Nt,h as He,i as Gt,j as Ut,k as Ht,m as qt,n as Wt,o as Ee,p as se,u as zt,w as We}from"./chunk-C56YGDXA.js";import{a as Pe}from"./chunk-UX5TA32W.js";import{$ as L,$a as u,$c as Vt,A as ht,Ab as l,B as _t,Bb as m,C as nt,Cb as U,Dd as Qt,E as D,Eb as _e,Fd as Q,G as Ve,Ga as v,Gd as F,Hd as j,Ia as g,Id as Kt,J as Ct,Ja as K,K as vt,Ka as Pt,L as B,La as Re,Lc as Ft,M as it,Mb as Et,N as Ae,O as T,Q as q,Qb as Dt,Rb as N,Sa as c,Sb as ie,Ta as p,Ua as W,Va as Z,Vb as oe,Vc as H,W as R,Wa as ee,Wb as Ce,Ya as M,Yc as jt,Z as y,_a as b,a as ue,ad as ve,b as ge,bc as ot,bd as be,db as z,dc as Ne,dd as At,e as $,ed as ye,f as fe,fb as St,g as Te,ga as bt,gb as xt,ha as P,hb as It,ia as S,ib as te,jb as d,k as J,kb as w,la as yt,lb as x,m as f,mb as wt,n as O,nb as Mt,ob as kt,oc as Ge,pc as Bt,r as $e,ra as Y,rc as Ue,rd as re,sb as he,t as ft,tb as E,td as rt,ua as s,ub as Ot,v as X,va as _,vb as ne,w as Le,wb as Tt,xb as $t,yb as Lt,yd as qe,zd as De}from"./chunk-XTHSYQMN.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 Je=(()=>{let i=class i extends nn{};i.\u0275fac=(()=>{let e;return function(o){return(e||(e=yt(i)))(o||i)}})(),i.\u0275prov=R({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(),z("id","group-",e,""),g("checked",r.id===t.selected.id)("value",r.id),s(),z("for","group-",e,""),s(),x(" ",r.label," ")}}var Be=function(n){return n.Select="select",n.Assign="assign",n}(Be||{}),$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===Be.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)(_(se),_(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:[re,ye,ve,be,N,j,F]});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:Qe(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 Ye(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 Ke{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(Ne),y(H))},i.\u0275prov=R({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})();var Ze=(()=>{let i=class i extends Ke{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(Ne),y(H))},i.\u0275prov=R({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})();var Fn="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 Te,this.lessonPresences$=new Te,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$=X(this.selectGroup$,this.savedGroup$).pipe(Ae(this.defaultGroup),B(1)),this.loading$=this.loadingService.loading(Fn),this.subscriptionDetailsDefinitions$=this.selectedLesson$.pipe(f(C=>C?.getEventIds()||[]),T(C=>$e(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),Ae(!0))]).pipe(T(([C,k,V])=>C&&k?this.loadSubscriptionDetailsForLesson(C,V):J([])),f(C=>Tn(C,this.settings)),B(1)),this.subscriptionDetailPersonIds$=O([this.group$,this.subscriptionDetails$]).pipe(f(([C,k])=>k.filter(V=>V.Value===C).map(V=>V.IdPerson)),Ae([]))}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(ae(On)))}reloadSubscriptionDetails(){this.reloadSubscriptionDetails$.next(void 0)}loadSubscriptionDetailsForLesson(e,t=!0){return this.loadingService.load($e(De(e.getEventIds()).map(o=>this.subscriptionDetailsService.getListForEvent(o))),t?void 0:Fn).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(Ze),y(pe),y(H))},i.\u0275prov=R({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,V,Me,ke){this.userSettings=e,this.lessonPresencesService=t,this.lessonTeacherService=o,this.presenceTypesService=a,this.groupService=h,this.dropDownItemsService=C,this.loadingService=k,this.storageService=V,this.settings=Me,this.location=ke,this.selectedDateSubject$=new fe(new Date),this.selectedDate$=this.selectedDateSubject$.asObservable().pipe(f(Xt),Ve(qe)),this.viewModeSubject$=new $,this.viewMode$=X(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(Ve((I,Oe)=>qe(I,Oe))),dn(this.settings.lessonPresencesRefreshTime)),this.lessons$]).pipe(f(([I,Oe])=>Oe.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$=X(mn(this.selectedLesson$,this.reloadLessonPresences$).pipe(T(I=>I?this.loadLessonPresencesByLesson(I):J([]))),this.updateLessonPresences$).pipe(B(1)),this.presenceTypes$=this.loadPresenceTypes().pipe(B(1)),this.reloadStudentIdsWithUnconfirmedAbsences$=new $,this.studentIdsWithUnconfirmedAbsences$=X(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=>De(I.map(Oe=>Oe.StudentRef.Id))),B(1)),this.otherTeachersAbsences$=this.studentIds$.pipe(Ve(qe),T(I=>I.length>0?this.lessonTeacherService.loadOtherTeachersLessonAbsences(this.getMyself(),I):J([])),B(1)),this.groupsAvailability$=this.groupService.groupsAvailability$,this.presenceControlEntries$=O([this.selectedLesson$,this.lessonPresences$,this.presenceTypes$,this.absenceConfirmationStates$,this.otherTeachersAbsences$]).pipe(f(ae(en))),this.presenceControlEntriesByGroup$=O([this.groupService.group$,this.presenceControlEntries$,this.groupService.subscriptionDetailPersonIds$]).pipe(f(ae(bn)),B(1)),this.presentCount$=this.presenceControlEntriesByGroup$.pipe(f(Ye("present"))),this.absentCount$=this.presenceControlEntriesByGroup$.pipe(f(Ye("absent"))),this.unapprovedCount$=this.presenceControlEntriesByGroup$.pipe(f(Ye("unapproved"))),this.absentPrecedingCount$=this.presenceControlEntriesByGroup$.pipe(f(En())),this.queryParamsString$=O([this.selectedDate$,this.selectedLesson$,this.viewMode$]).pipe(f(ae(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=>De(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)),Le(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(ze),y(Dn),y(Se),y(de),y(rn),y(pe),y(Kt),y(H),y(Et))},i.\u0275prov=R({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();Z(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()(),ee()}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&&(Z(0),v(1,ui,13,8,"ng-container",16),ee()),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=te(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),K("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,V,Me){this.route=e,this.state=t,this.selectionService=o,this.groupService=a,this.userSettings=h,this.subscriptionDetailService=C,this.toastService=k,this.translate=V,this.modalService=Me,this.primarySortKeys=["name","group"],this.backlinkQueryParams$=this.route.queryParams.pipe(f(({returnparams:ke})=>ke),f(an)),this.eventIds$=this.state.selectedLesson$.pipe(f(ke=>ke?.getEventIds()||[])),this.sortCriteriaSubject$=new fe({primarySortKey:"name",ascending:!1}),this.sortCriteria$=this.sortCriteriaSubject$.asObservable(),this.sortedEntries$=O([this.groupService.getSubscriptionDetailsForStudents(),this.sortCriteria$]).pipe(f(ae(kn))),this.selected=[]}ngOnInit(){this.selectionService.selection$.subscribe(e=>this.selected=e)}selectGroup(){this.openGroupModal(Be.Select,this.selectCallback.bind(this))}assignGroup(){this.openGroupModal(Be.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){$e(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)(_(Ge),_(G),_(Je),_(de),_(we),_(Ze),_(Pe),_(Q),_(Ie))},i.\u0275cmp=L({type:i,selectors:[["bkd-presence-control-group"]],standalone:!0,features:[he([Je]),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:[ce,hn,N,ie,xe,oe,j,F],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(),z("id","lesson-presence-",e,""),g("checked",r.selected),s(),K("fw-bold",t.isCurrentLesson(r)),z("for","lesson-presence-",e,""),s(),Re("",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)(_(se))},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:[re,ye,ve,be,N,ce,Ce,j,F],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 et=(()=>{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(V=>V.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(ze),y(pe),y(H))},i.\u0275prov=R({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)(_(se))},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:[N,Ce,j,F,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",ne(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),K("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 Y,this.changeIncident=new Y,this.entry$=new Te(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",ne(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:[ie,fn,ce,xe,Ue,oe,j,F],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 Fi(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);K("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 ji(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,Fi,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",ne(12,Ei,r.selectedLesson.id))("queryParams",ne(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();K("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=Ee.prototype._positionMenu;Ee.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 Y,this.selectDateChange=new Y,this.searchChange=new Y,this.viewModeChange=new Y,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:V})=>C==="bottom-start"?[(window.innerWidth-V.width)/2-k.x,0]:[]}),h))})}};i.\u0275fac=function(t){return new(t||i)(_(G),_(de),_(He))},i.\u0275cmp=L({type:i,selectors:[["bkd-presence-control-header"]],viewQuery:function(t,o){if(t&1&&St(Ee,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([He,{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=te(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,ji,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,re,jt,Vt,At,ie,Ee,Wt,qt,N,Ht,cn,xn,Dt,Ue,oe,Ce,j,F],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(),z("id","incident-",e,""),g("checked",r.id===t.selected.id)("value",r.id),s(),z("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)(_(se),_(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:[re,ye,ve,be,N,j,F],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||{}),tt=(()=>{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),Le(We(ct)),_t(this.performUpdates.bind(this))),this.stateUpdates$=X(this.pendingUpdates$,this.revertUpdates$).pipe(nt(Ui),Le(We(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):J(null)).pipe(T(h=>this.restService.editLessonPresences([e],t,h?.Id,Qe(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}))),J(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(We(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=R({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",ne(13,Wi,m(4,11,t.state.queryParamsString$)))}}function Ki(n,i){if(n&1&&(Z(0),c(1,"div"),l(2,"async"),v(3,Qi,5,15,"bkd-presence-control-entry",6),p(),ee()),n&2){let r=u(3).bkdLet,e=u();s(),Re("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&&(Z(0),v(1,Ki,4,6,"ng-container",4)(2,zi,3,3,"ng-template",null,2,_e),ee()),n&2){let r=te(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();Z(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),ee()}if(n&2){let r=te(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&&(Z(0),v(1,Yi,12,25,"ng-container",4),l(2,"async"),v(3,Zi,1,0,"ng-template",null,0,_e),ee()),n&2){let r=te(4),e=u();s(),g("ngIf",m(2,2,e.state.loading$)===!1)("ngIfElse",r)}}var to=["studentFullName"],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(([V,Me])=>Pn(V,to,Me)),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(Ft(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),_(et),_(tt),_(Se),_(Ie),_(In),_(Ge))},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:[ce,ie,Wn,N,qn,xe,oe,j,F],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),_(tt))},i.\u0275cmp=L({type:i,selectors:[["bkd-presence-control"]],standalone:!0,features:[he([G,et,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-VKWEQ6GU.js b/public/apps/webapp-schulverwaltung/chunk-VKWEQ6GU.js new file mode 100644 index 00000000..c2209d8e --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-VKWEQ6GU.js @@ -0,0 +1 @@ +import{b as _,c as O,d as M,e as Y,f as I,h as Yr,i as Ir,j as Er,k as Hr,l as hr,m as qr,n as Lr,o as yr,p as vr}from"./chunk-VGJCKFZL.js";import{f as Mr,g as _r,h as Or,i as d,j as w}from"./chunk-NL5E3FC5.js";import{g as Nr}from"./chunk-LGOOC47H.js";import{X as Tr,ma as kr}from"./chunk-IFJN5CDK.js";function Qr(){return Object.assign({},O())}function Rr(o,r){let t=w(o,r?.in).getDay();return t===0?7:t}function Fr(o,r){let t=Vr(r)?new r(0):d(r,0);return t.setFullYear(o.getFullYear(),o.getMonth(),o.getDate()),t.setHours(o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()),t}function Vr(o){return typeof o=="function"&&o.prototype?.constructor===o}var Zr=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=Zr;subPriority=-1;constructor(r,t){super(),this.context=r||(e=>d(t,e))}set(r,t){return t.timestampIsSet?r:d(r,Fr(r,this.context))}};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,l=t[5]?parseInt(t[5],10):0;return{value:e*(s*_r+i*Mr+l*Or),rest:r.slice(t[0].length)}}function v(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 Q(o,r){let t=r>0,e=t?r:1-r,s;if(e<=50)s=o||100;else{let i=e+50,l=Math.trunc(i/100)*100,y=o>=i%100;s=o+l-(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 l=Q(e.year,s);return r.setFullYear(l,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=Q(e.year,i);return r.setFullYear(y,0,s.firstWeekContainsDate),r.setHours(0,0,0,0),M(r,s)}let l=!("era"in t)||t.era===1?e.year:1-e.year;return r.setFullYear(l,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=d(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,t?.in),s=Hr(e,t)-r;return e.setDate(e.getDate()-s*7),w(e,t?.in)}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,t){let e=w(o,t?.in),s=Ir(e,t)-r;return e.setDate(e.getDate()-s*7),e}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 Kr=[31,28,31,30,31,30,31,31,30,31,30,31],$r=[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<=$r[i]:t>=1&&t<=Kr[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,t?.in),l=i.getDay(),dr=(r%7+7)%7,D=7-s,N=r<0||r>6?r-(l+D)%7:(dr+D)%7-(l+D)%7;return _(i,N,t)}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=l=>{let y=Math.floor((l-1)/7)*7;return(l+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=l=>{let y=Math.floor((l-1)/7)*7;return(l+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,t){let e=w(o,t?.in),s=Rr(e,t),i=r-s;return _(e,i,t)}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:d(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:d(r,r.getTime()-I(r)-e)}incompatibleTokens=["t","T","X"]};var fr=class extends n{priority=40;parse(r){return v(r)}set(r,t,e){return[d(r,e*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var lr=class extends n{priority=20;parse(r){return v(r)}set(r,t,e){return[d(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 jr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ur=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Jr=/^'([^]*?)'?$/,Sr=/''/g,re=/\S/,ee=/[a-zA-Z]/;function Xr(o,r,t,e){let s=()=>d(e?.in||t,NaN),i=Qr(),l=e?.locale??i.locale??Yr,y=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,dr=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(!r)return o?s():w(t,e?.in);let D={firstWeekContainsDate:y,weekStartsOn:dr,locale:l},N=[new q(e?.in,t)],zr=r.match(Ur).map(m=>{let f=m[0];if(f in hr){let b=hr[f];return b(m,l.formatLong)}return m}).join("").match(jr),wr=[];for(let m of zr){!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:Dr}=b;if(Array.isArray(Dr)){let gr=wr.find(Pr=>Dr.includes(Pr.token)||Pr.token===f);if(gr)throw new RangeError(`The format string mustn't contain \`${gr.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,l.match,D);if(!xr)return s();N.push(xr.setter),o=xr.rest}else{if(f.match(ee))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");if(m==="''"?m="'":f==="'"&&(m=te(m)),o.indexOf(m)===0)o=o.slice(m.length);else return s()}}if(o.length>0&&re.test(o))return s();let Ar=N.map(m=>m.priority).sort((m,f)=>f-m).filter((m,f,b)=>b.indexOf(m)===f).map(m=>N.filter(f=>f.priority===m).sort((f,b)=>b.subPriority-f.subPriority)).map(m=>m[0]),g=w(t,e?.in);if(isNaN(+g))return s();let br={};for(let m of Ar){if(!m.validate(g,D))return s();let f=m.set(g,br,D);Array.isArray(f)?(g=f[0],Object.assign(br,f[1])):g=f}return g}function te(o){return o.match(Jr)[1].replace(Sr,"'")}var Fs=(()=>{class o extends Nr{parse(t){let e=t?Xr(t,"dd.MM.yyyy",new Date):null;return e?{year:e.getFullYear(),month:e.getMonth(),day:e.getDay()}:null}format(t){return t?vr(new Date(t.year,t.month-1,t.day),"dd.MM.yyyy"):""}static{this.\u0275fac=(()=>{let t;return function(s){return(t||(t=kr(o)))(s||o)}})()}static{this.\u0275prov=Tr({token:o,factory:o.\u0275fac})}}return o})();export{Fs as a}; diff --git a/public/apps/webapp-schulverwaltung/chunk-VUPOI3TG.js b/public/apps/webapp-schulverwaltung/chunk-VUPOI3TG.js new file mode 100644 index 00000000..50e5140b --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-VUPOI3TG.js @@ -0,0 +1 @@ +import{c as H}from"./chunk-WACRWBCS.js";import{b as F}from"./chunk-YUHFF3NM.js";import{a as j}from"./chunk-KK2SHN2W.js";import{Cc as r,Dc as i,Ec as S,Fd as D,Gd as c,Ic as s,Jc as A,Lc as C,P as a,Pc as n,Qc as E,Rc as p,Uc as m,Wc as $,X as L,Yc as x,_ as y,a as u,cc as I,da as R,gc as v,n as b,xa as T}from"./chunk-IFJN5CDK.js";var z=(()=>{class o{constructor(t){this.i18n=t}transform(t,e){switch(this.i18n.detectLanguage()){case"fr-CH":return Array.from(e).map(g=>t=t.replace(g," ".concat(g))),t;default:return t}}static{this.\u0275fac=function(e){return new(e||o)(T(F,16))}}static{this.\u0275pipe=R({name:"addSpace",type:o,pure:!0,standalone:!0})}}return o})();var k=s({Id:i,JobTrainer:n(i),ApprenticeshipManagerId:i,ContractDateFrom:n(m),ContractDateTo:n(m)});var N=s({Id:i,RepresentativeId:i,RepresentativeAfterMajority:S});var B=s({Id:i}),G=A({HRef:n(r)}),J=A({From:m,To:m,EventNumber:r,EventDesignation:r,Designation:n(r)}),P=C([B,G,J]),U=s({Id:r,LessonRef:P,StudentRef:p,TypeRef:p,Type:n(r),ConfirmationState:n(r),ConfirmationStateId:i,Comment:n(r),StudentFullName:r,RegistrationId:i,HRef:r});var M=s({Id:r,LessonRef:p,StudentRef:p,TypeRef:p,Type:n(r),Comment:n(r),StudentFullName:r,HRef:r});var w=s({LessonRef:p,StudentRef:p,TypeRef:p,Comment:n(r),StudentFullName:r,Type:n(r),RegistrationId:i,HRef:r});var O=s({Id:i,From:m,To:m,EventId:i,EventNumber:r,EventDesignation:r,EventLocation:n(r),EventManagerInformation:E(r)});var h=class extends j{constructor(f,t,e,d,g,K="Id"){super(f,t,e,d),this.labelAttr=g,this.keyAttr=K,this.typeaheadCodec=s($(this.codec.props,[this.keyAttr,this.labelAttr]))}getTypeaheadItems(f,t){let e={params:{fields:[this.keyAttr,this.labelAttr].join(","),[`filter.${this.labelAttr}`]:`~*${f}*`}};return this.http.get(`${this.baseUrl}/`,t?this.mergeHttpParams(e,t):e).pipe(a(c(this.typeaheadCodec)),b(d=>d.map(g=>({Key:g[this.keyAttr],Value:g[this.labelAttr]}))))}getTypeaheadItemByKey(f){return this.http.get(`${this.baseUrl}/${f}`,{params:{fields:[this.keyAttr,this.labelAttr].join(",")}}).pipe(a(D(this.typeaheadCodec)),b(t=>({Key:t[this.keyAttr],Value:t[this.labelAttr]})))}mergeHttpParams(f,t){let e={params:u(u({},f.params),t.params)};return t.params.fields&&(e.params.fields=f.params.fields.concat(",",t.params.fields)),e}};var St=(()=>{class o extends h{constructor(t,e){super(t,e,H,"Students","FullName")}getLegalRepresentatives(t,e){return this.http.get(`${this.baseUrl}/${t}/LegalRepresentatives`,{params:e}).pipe(a(c(N)))}getCurrentApprenticeshipContracts(t,e){return this.http.get(`${this.baseUrl}/${t}/ApprenticeshipContracts/Current`,e).pipe(a(c(k)))}getLessonAbsences(t,e){return this.http.get(`${this.baseUrl}/${t}/LessonAbsences`,{params:e}).pipe(a(c(U)))}getLessonIncidents(t,e){return this.http.get(`${this.baseUrl}/${t}/LessonIncidents`,{params:e}).pipe(a(c(w)))}getLessonDispensations(t,e){return this.http.get(`${this.baseUrl}/${t}/LessonDispensations`,{params:e}).pipe(a(c(M)))}getTimetableEntries(t,e={}){return e instanceof I||(e=new I({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(a(c(O)))}static{this.\u0275fac=function(e){return new(e||o)(y(v),y(x))}}static{this.\u0275prov=L({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();export{U as a,O as b,h as c,St as d,z as e}; diff --git a/public/apps/webapp-schulverwaltung/chunk-W2RRBYQG.js b/public/apps/webapp-schulverwaltung/chunk-W2RRBYQG.js new file mode 100644 index 00000000..7dc281c2 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-W2RRBYQG.js @@ -0,0 +1,2 @@ +import{b as ne}from"./chunk-NTSKCSYH.js";import{a as Ze}from"./chunk-SCJZRDJE.js";import{a as Ye}from"./chunk-IYFH2F7I.js";import"./chunk-2D2UAYZL.js";import{p as We}from"./chunk-IMBPAJBQ.js";import"./chunk-OGCDITJ2.js";import{e as te}from"./chunk-DKLN3NRY.js";import{b as qe}from"./chunk-7FRZV7VF.js";import"./chunk-Y4QYVF5K.js";import"./chunk-OFB4XAK2.js";import{b as Ge,d as z,e as Ke}from"./chunk-VUPOI3TG.js";import"./chunk-WACRWBCS.js";import"./chunk-MIRGHONI.js";import"./chunk-YUHFF3NM.js";import{L as Ve,b as ze,g as me,p as Ue,q as He}from"./chunk-VGJCKFZL.js";import"./chunk-NL5E3FC5.js";import"./chunk-UGBTF4Z2.js";import{a as ee,b as ie}from"./chunk-KK2SHN2W.js";import{u as Ne}from"./chunk-LGOOC47H.js";import"./chunk-B6WYZ7BT.js";import{$a as de,Ab as S,Bb as j,Cc as Oe,Cd as we,Dc as Le,Dd as Be,Gb as o,Gd as je,Ha as p,Hb as r,Ib as R,Ic as X,Jd as k,Kb as Me,Kd as E,La as se,Ld as Fe,M as v,Ma as f,Na as ve,O as fe,P as T,Ra as m,S as _e,Ua as ye,Va as Se,Wa as c,X as F,Xa as d,Ya as _,Yb as Ie,Yc as I,Zb as L,_ as D,_b as J,a as K,aa as y,ab as xe,b as W,cb as N,cc as pe,d as ue,da as Ce,db as u,eb as Te,fb as De,g as re,gc as Q,h as be,ia as Y,ja as Z,ka as ge,l as O,lc as ke,mb as ce,n as h,nb as l,o as V,ob as $,pb as P,qb as le,rb as Pe,sc as Ee,tc as Ae,uc as Re,va as w,wa as a,wb as B,xa as g,xb as G,yb as q,zb as $e}from"./chunk-IFJN5CDK.js";var bt=["*"];function ft(e,s){e&1&&de(0)}function _t(e,s){if(e&1&&(c(0,"a",1),p(1,ft,1,0,"ng-container",3),d()),e&2){let t=u(),i=ce(3);f("routerLink",t.link)("queryParams",t.linkParams),a(),f("ngTemplateOutlet",i)}}function Ct(e,s){e&1&&de(0)}function gt(e,s){if(e&1&&(c(0,"a",2),p(1,Ct,1,0,"ng-container",3),d()),e&2){let t=u(),i=ce(3);f("href",t.externalLink,w),a(),f("ngTemplateOutlet",i)}}function vt(e,s){if(e&1&&(c(0,"span",5),l(1),d()),e&2){let t=u(2);a(),$(t.count)}}function yt(e,s){e&1&&(ge(),c(0,"svg",6),_(1,"path",7),d())}function St(e,s){if(e&1&&(c(0,"span",4),l(1),o(2,"translate"),d(),c(3,"div"),De(4),p(5,vt,2,1,"span",5)(6,yt,2,0,":svg:svg",6),d()),e&2){let t=u();a(),$(r(2,2,t.label)),a(4),m(t.hasCount(t.count)?5:6)}}var Je=(()=>{class e{constructor(){}hasCount(t){return typeof t=="number"&&t>=0}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=y({type:e,selectors:[["bkd-dashboard-action"]],inputs:{label:"label",count:"count",link:"link",linkParams:"linkParams",externalLink:"externalLink"},standalone:!0,features:[S],ngContentSelectors:bt,decls:4,vars:2,consts:[["actionContent",""],[3,"routerLink","queryParams"],[3,"href"],[4,"ngTemplateOutlet"],[1,"label"],[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(i,n){i&1&&(Te(),p(0,_t,2,3,"a",1)(1,gt,2,2,"a",2)(2,St,7,4,"ng-template",null,0,Me)),i&2&&(m(n.externalLink?-1:0),a(),m(n.externalLink?1:-1))},dependencies:[Re,Ie,E,k],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 Qe=(()=>{class e{constructor(){}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=y({type:e,selectors:[["bkd-dashboard-deadline"]],inputs:{count:"count"},standalone:!0,features:[S],decls:3,vars:8,template:function(i,n){i&1&&(l(0),o(1,"translate"),o(2,"addSpace")),i&2&&Pe("",r(1,3,"dashboard.actions.deadline"),"",R(2,5,": ",":"),"",n.count,` +`)},dependencies:[E,k,Ke],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 Xe=X({Id:Le,Holder:Oe});var et=(()=>{class e extends ee{constructor(t,i){super(t,i,Xe,"TeacherSubstitutions")}getTeacherSubstitution(t){return this.getList({params:{"filter.Id":`=${t}`}}).pipe(h(i=>i[0]||null))}static{this.\u0275fac=function(i){return new(i||e)(D(Q),D(I))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Mt=["LessonTeacherRole","ClassTeacherRole","TeacherRole","AbsenceAdministratorRole"],It=["LessonTeacherRole","TeacherRole","StudentRole","SubstituteAdministratorRole"],kt=["LessonTeacherRole","StudentRole"],A=(()=>{class e{constructor(t,i,n,b,x,U,H,ut){this.settingsService=t,this.lessonPresencesService=i,this.studentsService=n,this.courseService=b,this.teacherSubstitutionService=x,this.personService=U,this.storageService=H,this.settings=ut,this.rolesAndPermissions$=this.settingsService.getRolesAndPermissions(),this.userId$=new be(1),this.lessonAbsences$=this.userId$.pipe(T(C=>this.studentsService.getLessonAbsences(C)),v(1)),this.lessonIncidents$=this.userId$.pipe(T(C=>this.studentsService.getLessonIncidents(C)),v(1)),this.loading$=this.rolesAndPermissions$.pipe(h(C=>C==null)),this.hasSearch$=this.rolesAndPermissions$.pipe(h(this.hasRoles(Mt))),this.hasActions$=this.rolesAndPermissions$.pipe(h(this.hasRoles(It))),this.hasTimetable$=this.rolesAndPermissions$.pipe(h(this.hasRoles(kt))),this.hasLessonTeacherRole$=this.rolesAndPermissions$.pipe(h(this.hasRoles(["LessonTeacherRole"])),v(1)),this.hasTeacherRole$=this.rolesAndPermissions$.pipe(h(this.hasRoles(["TeacherRole"])),v(1)),this.hasStudentRole$=this.rolesAndPermissions$.pipe(h(this.hasRoles(["StudentRole"])),v(1)),this.hasSubstituteAdministratorRole$=this.rolesAndPermissions$.pipe(h(this.hasRoles(["SubstituteAdministratorRole"])),v(1)),this.editAbsencesCount$=this.hasLessonTeacherRole$.pipe(T(C=>C?this.lessonPresencesService.checkableAbsencesCount():O(!1)),v(1)),this.openAbsencesCount$=this.rolesAndPermissions$.pipe(h(this.hasRoles(["LessonTeacherRole","ClassTeacherRole"])),T(C=>C?this.lessonPresencesService.getListOfUnconfirmed():O([])),h(C=>C.length),v(1)),this.myAbsencesCount$=this.hasStudentRole$.pipe(T(C=>C?this.getMyAbsences():O([])),h(this.getMyAbsencesCount.bind(this)),v(1)),this.coursesToRateCount$=this.courseService.getNumberOfCoursesForRating().pipe(fe(0),v(1)),this.hasPresenceControl$=this.hasLessonTeacherRole$.pipe(T(C=>C?this.lessonPresencesService.hasLessonsLessonTeacher():O(!1)),v(1)),this.hasOpenAbsences$=this.openAbsencesCount$.pipe(h(C=>C>0),v(1)),this.editAbsencesParams$=this.getFullName().pipe(h(C=>({confirmationStates:this.settings.checkableAbsenceStateId,teacher:C})),v(1));let he=this.storageService.getPayload()?.id_person;he&&this.userId$.next(Number(he))}hasRoles(t){return i=>(i??[]).some(n=>t.includes(n))}getMyAbsences(){return V([this.userId$,this.lessonAbsences$,this.lessonIncidents$]).pipe(T(([t,i,n])=>this.loadTimetableEntries(t,i,n).pipe(h(b=>[...i,...n].map(x=>this.withTimetableEntry(x,b)).filter(Ne)))))}getMyAbsencesCount(t){return t?.filter(i=>("ConfirmationStateId"in i?i.ConfirmationStateId:null)===this.settings.unconfirmedAbsenceStateId).length||0}getFullName(){let t=Number(this.storageService.getPayload()?.substitution_id)||null;return t?this.teacherSubstitutionService.getTeacherSubstitution(t).pipe(h(i=>i?.Holder)):this.personService.getMyself().pipe(h(i=>i.FullName))}withTimetableEntry(t,i){return i.find(n=>n.Id===t.LessonRef.Id)?t:null}loadTimetableEntries(t,i,n){return this.studentsService.getTimetableEntries(t,{"filter.Id":`;${[...i,...n].map(b=>b.LessonRef.Id).join(";")}`})}static{this.\u0275fac=function(i){return new(i||e)(D(ne),D(te),D(z),D(We),D(et),D(qe),D(Fe),D(I))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac})}}return e})();var Et=()=>["/presence-control"],At=()=>["/edit-absences"],Rt=()=>["/open-absences"],Ot=()=>["/events"],Lt=()=>["/my-absences","report"],wt=()=>["/my-absences"];function Bt(e,s){e&1&&_(0,"bkd-dashboard-action",0),e&2&&f("label","dashboard.actions.presence-control")("link",j(2,Et))}function jt(e,s){if(e&1&&(_(0,"bkd-dashboard-action",1),o(1,"async"),o(2,"async")),e&2){let t=u();f("label","dashboard.actions.edit-absences")("link",j(8,At))("linkParams",r(1,4,t.dashboardService.editAbsencesParams$))("count",r(2,6,t.dashboardService.editAbsencesCount$))}}function Ft(e,s){if(e&1&&(_(0,"bkd-dashboard-action",2),o(1,"async")),e&2){let t=u();f("label","dashboard.actions.open-absences")("link",j(5,Rt))("count",r(1,3,t.dashboardService.openAbsencesCount$))}}function Nt(e,s){if(e&1&&(_(0,"bkd-dashboard-deadline",4),o(1,"async")),e&2){let t=u(2);f("count",r(1,1,t.dashboardService.coursesToRateCount$))}}function zt(e,s){if(e&1&&(c(0,"bkd-dashboard-action",0),p(1,Nt,2,3,"bkd-dashboard-deadline",4),o(2,"async"),d()),e&2){let t,i=u();f("label","dashboard.actions.tests")("link",j(5,Ot)),a(),m((t=r(2,3,i.dashboardService.coursesToRateCount$))!==null&&t!==void 0&&t?1:-1)}}function Ut(e,s){e&1&&_(0,"bkd-dashboard-action",0),e&2&&f("label","dashboard.actions.my-absences-report")("link",j(2,Lt))}function Ht(e,s){if(e&1&&(_(0,"bkd-dashboard-action",2),o(1,"async")),e&2){let t=u();f("label","dashboard.actions.my-absences")("link",j(5,wt))("count",r(1,3,t.dashboardService.myAbsencesCount$))}}function Vt(e,s){if(e&1&&_(0,"bkd-dashboard-action",3),e&2){let t=u();f("label","dashboard.actions.substitutions")("externalLink",t.substitutionsAdminLink)}}var it=(()=>{class e{constructor(t,i){this.dashboardService=t,this.settings=i}get substitutionsAdminLink(){return this.settings.dashboard.substitutionsAdminLink}static{this.\u0275fac=function(i){return new(i||e)(g(A),g(I))}}static{this.\u0275cmp=y({type:e,selectors:[["bkd-dashboard-actions"]],standalone:!0,features:[S],decls:15,vars:23,consts:[[3,"label","link"],[3,"label","link","linkParams","count"],[3,"label","link","count"],[3,"label","externalLink"],[3,"count"]],template:function(i,n){i&1&&(p(0,Bt,1,3,"bkd-dashboard-action",0),o(1,"async"),p(2,jt,3,9,"bkd-dashboard-action",1),o(3,"async"),o(4,"async"),p(5,Ft,2,6,"bkd-dashboard-action",2),o(6,"async"),p(7,zt,3,6,"bkd-dashboard-action",0),o(8,"async"),p(9,Ut,1,3,"bkd-dashboard-action",0),o(10,"async"),p(11,Ht,2,6,"bkd-dashboard-action",2),o(12,"async"),p(13,Vt,1,2,"bkd-dashboard-action",3),o(14,"async")),i&2&&(m(r(1,7,n.dashboardService.hasPresenceControl$)?0:-1),a(2),m(r(3,9,n.dashboardService.hasLessonTeacherRole$)&&r(4,11,n.dashboardService.editAbsencesParams$)?2:-1),a(3),m(r(6,13,n.dashboardService.hasOpenAbsences$)?5:-1),a(2),m(r(8,15,n.dashboardService.hasTeacherRole$)?7:-1),a(2),m(r(10,17,n.dashboardService.hasStudentRole$)?9:-1),a(2),m(r(12,19,n.dashboardService.hasStudentRole$)?11:-1),a(2),m(r(14,21,n.dashboardService.hasSubstituteAdministratorRole$)?13:-1))},dependencies:[Je,Qe,L],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:.5rem}"]})}}return e})();var nt=(()=>{class e{constructor(t,i){this.studentsRestService=t,this.router=i}navigateToDossier(t){return ue(this,null,function*(){let i=Number(t);yield this.router.navigate(["dashboard","student",i,"addresses"])})}static{this.\u0275fac=function(i){return new(i||e)(g(z),g(Ae))}}static{this.\u0275cmp=y({type:e,selectors:[["bkd-dashboard-search"]],standalone:!0,features:[S],decls:1,vars:2,consts:[[3,"valueChange","typeaheadService","placeholder"]],template:function(i,n){i&1&&(c(0,"bkd-typeahead",0),N("valueChange",function(x){return x&&n.navigateToDossier(x)}),d()),i&2&&f("typeaheadService",n.studentsRestService)("placeholder","dashboard.search.placeholder")},dependencies:[Ze],styles:["[_nghost-%COMP%]{display:block;padding:.75rem;background:#f7e9d2}"]})}}return e})();var at=(()=>{class e{constructor(t){this.sanitizer=t}transform(t,i){switch(i){case"html":return this.sanitizer.bypassSecurityTrustHtml(t);case"style":return this.sanitizer.bypassSecurityTrustStyle(t);case"script":return this.sanitizer.bypassSecurityTrustScript(t);case"url":return this.sanitizer.bypassSecurityTrustUrl(t);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(t);default:throw new Error(`Invalid safe type specified: ${i}`)}}static{this.\u0275fac=function(i){return new(i||e)(g(ke,16))}}static{this.\u0275pipe=Ce({name:"safe",type:e,pure:!0,standalone:!0})}}return e})();function ot(e){return{id:dt(e.EventId,e.Id),from:e.From,until:e.To,eventId:e.EventId,subject:e.EventDesignation,room:e.EventLocation||void 0,teacher:e.EventManagerInformation||void 0}}function rt(e){let s=e.reduce((t,i)=>{let n=dt(i.EventRef.Id,i.LessonRef.Id);return W(K({},t),{[n]:[...t[n]??[],i.StudyClassNumber]})},{});return Object.keys(s).reduce((t,i)=>W(K({},t),{[i]:we([...s[i]].sort())}),{})}function st(e,s){return e.map(t=>W(K({},t),{studyClass:s[t.id]?.join(", ")}))}function dt(e,s){return`${e}-${s}`}var Gt=(e,s)=>s.id;function qt(e,s){e&1&&(c(0,"th"),l(1),o(2,"translate"),d()),e&2&&(a(),P(" ",r(2,1,"dashboard.timetable.table.teacher")," "))}function Kt(e,s){if(e&1&&(c(0,"a",3),l(1),c(2,"span",8),l(3),d()()),e&2){let t=u().$implicit,i=u(2);f("href",i.buildLink(t.eventId),w),a(),P(" ",t.subject,""),a(2),P(", ",t.studyClass,"")}}function Wt(e,s){if(e&1&&l(0),e&2){let t=u().$implicit;P(" ",t.subject," ")}}function Yt(e,s){if(e&1&&(c(0,"td",4),l(1),o(2,"translate"),d()),e&2){let t=u().$implicit;a(),le(" ",r(2,2,"dashboard.timetable.table.study-class"),": ",t.studyClass," ")}}function Zt(e,s){if(e&1&&(c(0,"td",5),l(1),d()),e&2){let t=u().$implicit;a(),P(" ",t.teacher," ")}}function Jt(e,s){e&1&&(c(0,"span",7),l(1),o(2,"translate"),d()),e&2&&(a(),$(r(2,1,"dashboard.timetable.table.room")))}function Qt(e,s){if(e&1&&(c(0,"tr")(1,"td",1),l(2),o(3,"date"),o(4,"date"),d(),c(5,"td",2),p(6,Kt,4,3,"a",3),o(7,"async"),p(8,Wt,1,1),d(),p(9,Yt,3,4,"td",4),o(10,"async"),p(11,Zt,2,1,"td",5),o(12,"async"),c(13,"td",6),p(14,Jt,3,3,"span",7),l(15),d()()),e&2){let t=s.$implicit,i=u(2);a(2),le(" ",R(3,7,t.from,"HH:mm"),"\u2013",R(4,10,t.until,"HH:mm")," "),a(4),m(r(7,13,i.isTeacher$)?6:8),a(3),m(r(10,15,i.isTeacher$)?9:-1),a(2),m(r(12,17,i.isStudent$)?11:-1),a(3),m(t.room?14:-1),a(),P(" ",t.room," ")}}function Xt(e,s){if(e&1&&(c(0,"table",0)(1,"thead")(2,"tr")(3,"th"),l(4),o(5,"translate"),d(),c(6,"th"),l(7),o(8,"translate"),d(),p(9,qt,3,3,"th"),o(10,"async"),c(11,"th"),l(12),o(13,"translate"),d()()(),c(14,"tbody"),ye(15,Qt,16,19,"tr",null,Gt),d()()),e&2){let t=u();a(4),$(r(5,4,"dashboard.timetable.table.time")),a(3),$(r(8,6,"dashboard.timetable.table.subject")),a(2),m(r(10,8,t.isStudent$)?9:-1),a(3),P(" ",r(13,10,"dashboard.timetable.table.room")," "),a(3),Se(t.entries)}}function ei(e,s){e&1&&(c(0,"p"),l(1),o(2,"translate"),d()),e&2&&(a(),$(r(2,1,"dashboard.timetable.no-entries")))}var ct=(()=>{class e{constructor(t,i){this.dashboardService=t,this.settings=i,this.entries=[],this.isStudent$=this.dashboardService.hasStudentRole$,this.isTeacher$=this.dashboardService.hasLessonTeacherRole$}buildLink(t){return this.settings.eventlist.eventdetail.replace(":id",String(t))}static{this.\u0275fac=function(i){return new(i||e)(g(A),g(I))}}static{this.\u0275cmp=y({type:e,selectors:[["bkd-dashboard-timetable-table"]],inputs:{entries:"entries"},standalone:!0,features:[S],decls:2,vars:1,consts:[[1,"table"],[1,"time"],[1,"subject"],["target","_parent",3,"href"],[1,"study-class"],[1,"teacher"],[1,"room"],[1,"room-label"],[1,"subject-study-class"]],template:function(i,n){i&1&&p(0,Xt,17,12,"table",0)(1,ei,3,3,"p"),i&2&&m(n.entries.length>0?0:1)},dependencies:[L,J,E,k],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})();var ti=X({}),lt=(()=>{class e extends ee{constructor(t,i){super(t,i,ti,"Teachers")}getTimetableEntries(t,i={}){let n=i instanceof pe?i:new pe({fromObject:i});return n=n.set("fields","Id,From,To,EventId,EventNumber,EventDesignation,EventLocation"),this.http.get(`${this.baseUrl}/${t}/TimetableEntries/CurrentSemester`,{params:n}).pipe(T(je(Ge)))}static{this.\u0275fac=function(i){return new(i||e)(D(Q),D(I))}}static{this.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function ni(e,s){e&1&&(c(0,"a",6),o(1,"safe"),l(2),o(3,"translate"),d()),e&2&&(f("href",R(1,2,s,"url"),w),a(2),P(" ",r(3,5,"dashboard.timetable.subscribe-calendar")," "))}function ai(e,s){e&1&&_(0,"bkd-spinner")}function oi(e,s){e&1&&(c(0,"a",8),o(1,"safe"),l(2),o(3,"translate"),d()),e&2&&(f("href",R(1,2,s,"url"),w),a(2),P(" ",r(3,5,"dashboard.timetable.subscribe-calendar")," "))}function ri(e,s){if(e&1&&(_(0,"bkd-dashboard-timetable-table",7),p(1,oi,4,7,"a",8),o(2,"async")),e&2){let t,i=u(),n=q(18);f("entries",n),a(),m((t=r(2,2,i.getSubscribeCalendarUrl()))?1:-1,t)}}var si="cal",pt=(()=>{class e{constructor(t,i,n,b,x){this.teachersService=t,this.studentsService=i,this.lessonPresencesService=n,this.userSettings=b,this.dashboardService=x,this.userId$=this.dashboardService.userId$,this.isTeacher$=this.dashboardService.hasLessonTeacherRole$,this.isStudent$=this.dashboardService.hasStudentRole$,this.date$=new re(me(new Date)),this.loading$=new re(!0),this.timetableEntries$=this.loadTimetableEntries()}gotoToday(){this.loading$.next(!0),this.date$.next(me(new Date))}gotoPreviousDay(){this.loading$.next(!0),this.date$.next(He(this.date$.getValue(),1))}gotoNextDay(){this.loading$.next(!0),this.date$.next(ze(this.date$.getValue(),1))}getSubscribeCalendarUrl(){return this.userSettings.getSetting(si)}loadTimetableEntries(){return V([this.isTeacher$,this.isStudent$]).pipe(T(([t,i])=>t?this.fetchTimetableEntries("teacher"):i?this.fetchTimetableEntries("student"):O([])),_e(()=>this.loading$.next(!1)),v(1))}fetchTimetableEntries(t){return V([this.userId$,this.date$]).pipe(T(([i,n])=>{let b={"filter.From":`=${Ue(n,"yyyy-MM-dd")}`,sort:"From,To"};return t==="teacher"?this.teachersService.getTimetableEntries(i,b):this.studentsService.getTimetableEntries(i,b)}),h(i=>i.map(ot)),h(i=>Be(i,n=>n.id)),T(i=>t==="teacher"?this.loadStudyClasses().pipe(h(n=>st(i,n))):O(i)))}loadStudyClasses(){return this.date$.pipe(T(t=>this.lessonPresencesService.getLessonStudyClassesByDate(t)),h(rt))}static{this.\u0275fac=function(i){return new(i||e)(g(lt),g(z),g(te),g(ne),g(A))}}static{this.\u0275cmp=y({type:e,selectors:[["bkd-dashboard-timetable"]],standalone:!0,features:[S],decls:23,vars:24,consts:[[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",1,"btn","btn-secondary","subscribe-calendar-header",3,"href"],[3,"entries"],["target","_parent",1,"btn","btn-secondary","subscribe-calendar-bottom",3,"href"]],template:function(i,n){if(i&1){let b=xe();c(0,"div",0)(1,"button",1),N("click",function(){return Y(b),Z(n.gotoToday())}),l(2),o(3,"translate"),d(),c(4,"button",2),o(5,"translate"),N("click",function(){return Y(b),Z(n.gotoPreviousDay())}),c(6,"span",3),l(7,"chevron_left"),d()(),c(8,"button",4),o(9,"translate"),N("click",function(){return Y(b),Z(n.gotoNextDay())}),c(10,"span",3),l(11,"chevron_right"),d()(),c(12,"div",5),l(13),o(14,"async"),o(15,"date"),d(),p(16,ni,4,7,"a",6),o(17,"async"),d(),B(18),o(19,"async"),p(20,ai,1,0,"bkd-spinner"),o(21,"async"),p(22,ri,3,4)}if(i&2){let b;a(2),P(" ",r(3,6,"dashboard.timetable.today")," "),a(2),se("aria-label",r(5,8,"dashboard.timetable.previousDay")),a(4),se("aria-label",r(9,10,"dashboard.timetable.nextDay")),a(5),$(R(15,14,r(14,12,n.date$),"E, dd. MMMM yyyy")),a(3),m((b=r(17,17,n.getSubscribeCalendarUrl()))?16:-1,b),a(2),G(r(19,19,n.timetableEntries$)),a(2),m(r(21,22,n.loading$)?20:22)}},dependencies:[ct,ie,L,J,E,k,at],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})();function di(e,s){e&1&&_(0,"bkd-spinner")}function ci(e,s){e&1&&(c(0,"p"),l(1),o(2,"translate"),d()),e&2&&(a(),P(" ",r(2,1,"dashboard.no-access")," "))}function li(e,s){e&1&&(c(0,"div")(1,"h2"),l(2),o(3,"translate"),d(),_(4,"bkd-dashboard-search"),d()),e&2&&(a(2),$(r(3,1,"dashboard.search.title")))}function pi(e,s){e&1&&(c(0,"div")(1,"h2"),l(2),o(3,"translate"),d(),_(4,"bkd-dashboard-actions"),d()),e&2&&(a(2),$(r(3,1,"dashboard.actions.title")))}function mi(e,s){if(e&1&&(c(0,"div",1),p(1,li,5,3,"div")(2,pi,5,3,"div"),d()),e&2){u();let t=q(2),i=q(4);a(),m(t?1:-1),a(),m(i?2:-1)}}function hi(e,s){e&1&&(c(0,"div",2)(1,"h2"),l(2),o(3,"translate"),d(),_(4,"bkd-dashboard-timetable"),d()),e&2&&(a(2),$(r(3,1,"dashboard.timetable.title")))}var mt=(()=>{class e{constructor(t){this.dashboardService=t}static{this.\u0275fac=function(i){return new(i||e)(g(A))}}static{this.\u0275cmp=y({type:e,selectors:[["bkd-dashboard-layout"]],standalone:!0,features:[S],decls:17,vars:19,consts:[[1,"columns"],[1,"search-actions-column"],[1,"timetable-column"]],template:function(i,n){if(i&1&&(B(0),o(1,"async"),B(2),o(3,"async"),B(4),o(5,"async"),B(6),o(7,"async"),c(8,"div")(9,"h1"),l(10),o(11,"translate"),d(),p(12,di,1,0,"bkd-spinner")(13,ci,3,3,"p"),c(14,"div",0),p(15,mi,3,2,"div",1)(16,hi,5,3,"div",2),d()()),i&2){let b=r(1,7,n.dashboardService.loading$);a(2);let x=G(r(3,9,n.dashboardService.hasSearch$));a(2);let U=G(r(5,12,n.dashboardService.hasActions$)),H=r(7,15,n.dashboardService.hasTimetable$);a(5),ve("visually-hidden",b||x||U||H),a(),P(" ",r(11,17,"dashboard.heading")," "),a(2),m(b?12:-1),a(),m(!b&&!x&&!U&&!H?13:-1),a(2),m(x||U?15:-1),a(),m(H?16:-1)}},dependencies:[ie,nt,it,pt,L,E,k],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 ht=(()=>{class e{constructor(){}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=y({type:e,selectors:[["bkd-dashboard"]],standalone:!0,features:[$e([A,Ve]),S],decls:1,vars:0,template:function(i,n){i&1&&_(0,"router-outlet")},dependencies:[Ee],changeDetection:0})}}return e})();var $n=[{path:"",component:ht,children:[{path:"",component:mt},Ye]}];export{$n as DASHBOARD_ROUTES}; diff --git a/public/apps/webapp-schulverwaltung/chunk-W7ASLXRM.js b/public/apps/webapp-schulverwaltung/chunk-W7ASLXRM.js deleted file mode 100644 index 87629e69..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-W7ASLXRM.js +++ /dev/null @@ -1,2 +0,0 @@ -import{a as _e}from"./chunk-Y4QYVF5K.js";import{a as Te}from"./chunk-HII3S2DL.js";import{b as Ge,c as Ee,d as Pe}from"./chunk-RFO4NYUO.js";import{b as we}from"./chunk-FTDG26ID.js";import{a as _t,b as dt}from"./chunk-SOHFFTKU.js";import{A as Tt,a as Ie,b as be,c as Se,d as ve,e as xe,p as Ce,q as ye,u as yt}from"./chunk-C56YGDXA.js";import{$,$a as v,$c as vt,Ab as g,Ac as a,Bb as b,Bc as R,C as Dt,Cb as K,Cd as ot,Db as Zt,Dd as z,Eb as nt,Ec as E,Fc as C,Fd as Ct,G as Jt,Ga as T,Gb as te,Gc as St,Gd as k,Hd as j,Ia as m,Ic as Ot,J as Qt,Ja as Ft,L as Mt,Mc as o,O as G,Ob as ee,Q as Rt,Rb as rt,Rc as at,Sa as p,Sb as O,Ta as l,Tb as ie,Tc as se,Ua as et,Va as ft,Vb as H,Vc as q,W as F,Wa as ht,Wb as ne,Xb as re,Ya as it,Yc as ae,Z as y,_a as A,_c as kt,a as L,b as U,c as Kt,ca as Y,cb as It,cd as oe,dc as st,dd as de,e as mt,f as N,fd as le,g as pt,ga as W,ha as Z,hd as pe,ia as tt,ib as V,jb as u,k as $t,kb as w,kd as ce,l as qt,lb as x,ld as ue,m as I,md as me,n as ct,nd as ge,od as fe,r as gt,ra as Yt,rd as xt,sd as he,tb as M,ua as d,v as zt,va as D,vb as bt,w as Xt,zc as c}from"./chunk-XTHSYQMN.js";var ai=i=>({width:i});function oi(i,e){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 di(i,e){if(i&1&&(p(0,"option",3),u(1),l()),i&2){let r=e.$implicit;m("ngValue",r),d(),x(" ",r.Value," ")}}var $e=(()=>{let e=class e{constructor(){this.options=[],this.allowEmpty=!0,this.emptyLabel="",this.value=null,this.disabled=!1,this.tabindex=0,this.width="auto",this.valueChange=new Yt,this.options$=new N([]),this.rawValue$=new N(null),this.value$=ct([this.rawValue$,this.options$]).pipe(I(([t,n])=>n&&n.find(s=>s.Key===t)||null))}ngOnChanges(t){t.value&&this.rawValue$.next(t.value.currentValue),t.options&&this.options$.next(t.options.currentValue)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=$({type:e,selectors:[["bkd-select"]],inputs:{options:"options",allowEmpty:"allowEmpty",emptyLabel:"emptyLabel",value:"value",disabled:"disabled",tabindex:"tabindex",width:"width"},outputs:{valueChange:"valueChange"},standalone:!0,features:[W,M],decls:5,vars:10,consts:[[1,"form-select",3,"ngModelChange","tabindex","ngStyle","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(_){return s.valueChange.emit(_&&_.Key)}),T(2,oi,3,4,"option",1)(3,di,2,2,"option",2),u(4,` > -`),l()),n&2&&(It("tabindex",s.tabindex),m("ngStyle",bt(8,ai,s.width))("disabled",s.disabled)("ngModel",b(1,6,s.value$)),d(2),m("ngIf",s.allowEmpty),d(),m("ngForOf",s.options))},dependencies:[xt,ue,me,ce,vt,de,O,rt,H,ie,j,k],changeDetection:0});let i=e;return i})();var De=C({Id:a,Designation:c,StudentCount:a,Number:c});var jt=C({Id:c,TestId:a,CourseRegistrationId:a,GradeId:o(a),GradeValue:o(a),GradeDesignation:o(c),Points:o(a),StudentId:a});var Me=C({Id:a,CourseId:a,Date:at,Designation:c,Weight:a,WeightPercent:a,IsPointGrading:R,MaxPoints:o(a),MaxPointsAdjusted:o(a),IsPublished:R,IsOwner:R,Owner:o(c),GradingScaleId:o(a),Results:o(E(jt))});var Re=C({Id:a}),Fe=St({HRef:o(c)}),li=St({HasEvaluationStarted:R,EvaluationUntil:o(at),HasReviewOfEvaluationStarted:R,HasTestGrading:R,Id:a}),pi=Ot([Re,Fe,li]),ci=St({Id:a,StudentCount:a}),ui=Ot([Re,Fe,ci]),mi=C({Grade:c,AverageTestResult:a,Id:a,StudentId:a}),Bt=C({AverageTestResult:a,CanGrade:R,EventId:a,GradeId:o(a),GradeValue:o(a),Id:a,StudentId:a}),lt=C({HRef:c,Id:a,Number:c,Designation:c,DateFrom:o(at),DateTo:o(at),StatusId:a,GradingScaleId:o(a),FinalGrades:o(E(mi)),Gradings:o(E(Bt)),Tests:o(E(Me)),EvaluationStatusRef:pi,AttendanceRef:ui,ParticipatingStudents:o(E(Ee)),Classes:o(E(De))}),Oe=C({TestResults:E(jt),Gradings:E(Bt)}),ke=C({Gradings:E(Bt)});var Gt=(()=>{let e=class e extends dt{constructor(t,n){super(t,n,lt,"Courses"),this.statusCodec=C(se(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(z(this.statusCodec)),I(t=>t.filter(n=>n.EvaluationStatusRef.HasEvaluationStarted===!0)),I(t=>t.length))}getExpandedCourses(t){return _e(t,"TeacherRole")?this.http.get(`${this.baseUrl}/?expand=EvaluationStatusRef,AttendanceRef,Classes,FinalGrades&filter.StatusId=;${this.settings.eventlist.statusfilter}`,{headers:{"X-Role-Restriction":"TeacherRole"}}).pipe(G(z(lt))):$t([])}getExpandedCourse(t){return this.http.get(`${this.baseUrl}/${t}?expand=ParticipatingStudents,EvaluationStatusRef,Tests,Gradings,FinalGrades,Classes`).pipe(G(ot(lt)))}getExpandedCoursesForDossier(){return this.http.get(`${this.baseUrl}/?expand=Tests,Gradings,FinalGrades,EvaluationStatusRef,ParticipatingStudents,Classes&filter.StatusId=;${this.settings.eventlist.statusfilter}`).pipe(G(z(lt)))}getExpandedCoursesForStudent(){return this.http.get(`${this.baseUrl}/?expand=Tests,Gradings,FinalGrades&filter.StatusId=;${this.settings.eventlist.statusfilter}`,{headers:{"X-Role-Restriction":"StudentRole"}}).pipe(G(z(lt)))}add(t,n,s,f,_,B,h){let S={Tests:[{Date:n,Designation:s,Weight:f,IsPointGrading:_,MaxPoints:B,MaxPointsAdjusted:h}]};return this.http.put(`${this.baseUrl}/${t}/Tests/New`,S).pipe(I(()=>{}))}update(t,n,s,f,_,B,h,S){let Q={Tests:[{Id:n,Designation:s,Date:f,Weight:_,IsPointGrading:B,MaxPoints:h,MaxPointsAdjusted:S}]};return this.http.put(`${this.baseUrl}/${t}/Tests/Update`,Q).pipe(I(()=>{}))}delete(t,n){let s={TestIds:[n]};return this.http.put(`${this.baseUrl}/${t}/Tests/Delete`,s).pipe(I(()=>n))}updateTestResult(t,n){let S=n,{studentId:s,testId:f}=S,_=Kt(S,["studentId","testId"]),B={StudentIds:[s],TestId:f},h="gradeId"in _?U(L({},B),{GradeId:_.gradeId}):U(L({},B),{Points:_.points});return this.http.put(`${this.baseUrl}/${t}/SetTestResult`,h).pipe(G(ot(Oe)),G(({TestResults:Q,Gradings:Wt})=>Q.length<=1&&Wt.length===1?$t({courseId:t,testResult:Q[0]??null,grading:Wt[0]}):qt(()=>new Error("`TestResults` or `Gradings` does not contain a single value"))))}setAverageAsFinalGrade(t){return this.http.put(`${this.baseUrl}/SetAverageTestResult`,t).pipe(G(ot(ke)))}publishTest(t){let n={TestIds:[t]};return this.http.put(`${this.baseUrl}/PublishTest`,n).pipe(I(()=>t))}unpublishTest(t){let n={TestIds:[t]};return this.http.put(`${this.baseUrl}/UnpublishTest`,n).pipe(I(()=>t))}};e.\u0275fac=function(n){return new(n||e)(y(st),y(q))},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function Ne(i){return i.length===0?0:Nt(i.map(({value:e,weight:r})=>e*r))/Nt(i.map(({weight:e})=>e))}function At(i){return i.length===0?0:Number(Nt(i)/i.length)}function Nt(i){return i.reduce(gi,0)}function gi(i,e){return i+e}function xn(i,e,r){return i?i.Tests?.reduce((t,n)=>t||n.Id===e&&n.Results?.find(s=>s.TestId===e&&s.StudentId===r)||null,null)??null:null}function Cn(i,e,r){return e.map(t=>t.Id===i.TestId?Ht(i,t,r):t)}function yn(i,e,r){return r.map(t=>t.Id===i?fi(e,t):t)}function Tn(i,e){return e.map(r=>r.Id===i?U(L({},r),{IsPublished:!r.IsPublished}):r)}function _n(i){let e=Ii(i);if(e.length===0)throw new Error("unable to calculate averages without results");return At(e)}function Vt(i){return i.MaxPointsAdjusted||i.MaxPoints}function Gn(i){let e=hi(i);if(e.length===0)throw new Error("unable to calculate averages without results");return At(e)}function J(i,e){return e.Results?.find(r=>r.StudentId===i)}function En(i,e){return e===null?null:e.filter(r=>r.Id!==i)}function Ht(i,e,r){let t=r&&e.Results?.find(s=>s.TestId===i.TestId&&s.StudentId===i.StudentId),n=e.Results?.filter(s=>!(s.TestId===i.TestId&&s.StudentId===i.StudentId))||[];return t&&r==="grade"?i.GradeId=t.GradeId:t&&r==="points"&&(i.Points=t.Points),U(L({},e),{Results:[...n,i]})}function Ve(i){return i.slice().sort((e,r)=>r.Date.getTime()-e.Date.getTime())}function Et(i,e){return e?.find(r=>r.Id===i.GradingScaleId)||null}function fi(i,e){return U(L({},e),{Results:e.Results?.filter(r=>r.StudentId!==i)||[]})}function hi(i){return i.Results?.filter(e=>e.GradeDesignation!==null).map(e=>Number(e.GradeDesignation)).filter(e=>!isNaN(e))||[]}function Ii(i){return i.Results?.map(e=>e.Points!==null?e.Points:Ae).filter(e=>e>Ae)||[]}var Ae=-1;var Lt=C({Id:c,SubscriptionId:a,VssId:a,EventId:a,DropdownItems:o(E(Te)),IdPerson:a,ShowAsRadioButtons:R,Value:o(c)}),He=C({Id:a,CurrentWorkProgressId:o(c||o(a)),EventId:o(a),PersonId:o(a),Status:c,StatusId:o(a),IsOkay:o(R),IsQueued:o(R),EventDesignation:o(c),EventInformation:o(c||a),EventNotes:o(c||a),CheckPersonalInformation:o(R),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(Lt)),HRef:o(c)});var Le=(()=>{let e=class e extends dt{constructor(t,n){super(t,n,Lt,"Subscriptions")}getIdSubscriptionsByStudentAndCourse(t,n){return this.http.get(`${this.settings.apiUrl}/Subscriptions/?filter.PersonId==${t}&filter.EventId=;${n}`).pipe(G(z(He)))}};e.\u0275fac=function(n){return new(n||e)(y(st),y(q))},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var Si=C({Id:a,Designation:c}),Ut=C({Id:a,Grades:E(Si)});var Ue=(()=>{let e=class e extends dt{constructor(t,n){super(t,n,Ut,"GradingScales")}getGradingScale(t){return this.http.get(`${this.baseUrl}/${t}`).pipe(G(ot(Ut)))}getGradingScales(t){return gt(t.map(this.getGradingScale.bind(this)))}};e.\u0275fac=function(n){return new(n||e)(y(st),y(q))},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var wt=(()=>{let e=class e{constructor(t,n,s,f,_,B){this.coursesRestService=t,this.subscriptionRestService=n,this.reportsService=s,this.loadingService=f,this.gradingScalesRestService=_,this.settings=B,this.studentId$=new pt(1),this.initialStudentCourses$=this.studentId$.pipe(Jt(),G(this.loadCourses.bind(this)),I(h=>h.sort((S,Q)=>S.Designation.localeCompare(Q.Designation))),Mt(1)),this.action$=new pt(1),this.studentCourses$=zt(this.action$,this.initialStudentCourses$.pipe(I(h=>({type:"initializeCourses",payload:h})))).pipe(Qt(this.coursesReducer.bind(this),[]),Mt(1)),this.loading$=this.loadingService.loading$,this.studentCourseIds$=this.studentCourses$.pipe(I(h=>h.flatMap(S=>S.Id))),this.idSubscriptions$=ct([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(yt))),this.gradingScaleIdsFromTests$=this.tests$.pipe(I(h=>[...h.map(S=>S.GradingScaleId)].filter(yt).filter(Tt))),this.gradingScaleIdsFromCourses$=this.studentCourses$.pipe(I(h=>h.flatMap(S=>S.GradingScaleId).filter(yt).filter(Tt))),this.gradingScaleIds$=ct([this.gradingScaleIdsFromCourses$,this.gradingScaleIdsFromTests$]).pipe(I(([h,S])=>h.concat(S).filter(Tt))),this.gradingScales$=this.gradingScaleIds$.pipe(G(h=>gt(h.map(S=>this.gradingScalesRestService.getGradingScale(S)))))}setStudentId(t){this.studentId$.next(t)}getFinalGradeForStudent(t,n){return t?.FinalGrades?.find(s=>s.StudentId===n)}getGradingForStudent(t,n){return t?.Gradings?.find(s=>s.StudentId===n)}getGradingScaleOfCourse(t,n){return n?.find(s=>s.Id===t.GradingScaleId)}getGradesForStudent(t,n,s){return t.Tests?.flatMap(f=>({value:Number(Et(f,s)?.Grades.find(B=>B.Id===J(n,f)?.GradeId)?.Designation),weight:f.Weight})).filter(({value:f})=>!!f)||[]}updateStudentCourses(t){this.action$.next({type:"updateCourses",payload:t})}loadCourses(t){return this.loadingService.load(this.coursesRestService.getExpandedCoursesForDossier().pipe(I(n=>n.filter(s=>s.ParticipatingStudents?.find(f=>f.Id===t)))))}coursesReducer(t,n){switch(n.type){case"initializeCourses":return n.payload;case"updateCourses":return this.updateCourses([...t],n.payload);default:return t}}updateCourses(t,n){return t.map(s=>U(L({},s),{Tests:s.Tests!==null?s.Tests.map(f=>f.Id===n.Id?n:f):null}))}};e.\u0275fac=function(n){return new(n||e)(y(Gt),y(Le),y(Pe),y(we),y(Ue),y(q))},e.\u0275prov=F({token:e,factory:e.\u0275fac});let i=e;return i})();var Ke=(()=>{let e=class e{constructor(){}get inIframe(){return window.parent!==window}get window(){return this.inIframe?window.parent:null}get document(){return this.window?.document.documentElement??null}querySelector(t){return this.window?.document?.querySelector("bkd-portal")?.shadowRoot?.querySelector(t)??null}getIframeElement(){return this.querySelector("bkd-content")?.shadowRoot?.querySelector("iframe")??null}getIframeTop(){return this.getIframeElement()?.offsetTop??0}getIFrameBottom(){let t=this.getIframeElement();return t?t.offsetTop+t.offsetHeight:0}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var qe=(()=>{let e=class e{constructor(t,n){this.modal=t,this.portal=n}open(...t){let n=this.modal.open(...t);return this.applyPortalOffsetAndMaxHeight(n),this.disablePortalScrolling(n),n}get activeInstances(){return this.modal.activeInstances}dismissAll(...t){return this.modal.dismissAll(...t)}hasOpenModals(...t){return this.modal.hasOpenModals(...t)}applyPortalOffsetAndMaxHeight(t){let n=this.getModalWindowElement(t);if(!n){console.warn("Trying to apply portal offset to , but element is not present!");return}this.portal.window&&(n.style.top=`${this.getModalIframeOffset()}px`,n.style.maxHeight=`${this.getModalHeight()}px`)}disablePortalScrolling(t){if(this.portal.window&&this.portal.document){let n=this.portal.window.innerWidth-this.portal.document.clientWidth;this.portal.document.style.paddingRight=`${n}px`,this.portal.document.style.overflow="hidden"}t.hidden.subscribe(()=>{this.portal.document&&(this.portal.document.style.paddingRight="0px",this.portal.document.style.overflow="auto")})}getModalWindowElement(t){return t._windowCmptRef?.instance?._elRef?.nativeElement??null}getModalIframeOffset(){return Math.max(this.getViewportTop()-this.portal.getIframeTop(),0)}getModalTop(){return Math.max(this.getViewportTop(),this.portal.getIframeTop())}getModalBottom(){return Math.min(this.getViewportBottom(),this.portal.getIFrameBottom())}getModalHeight(){return this.getModalBottom()-this.getModalTop()}getViewportTop(){return this.portal.window?.scrollY??0}getViewportBottom(){return this.getViewportTop()+this.getViewportHeight()}getViewportHeight(){return this.portal.window?.innerHeight??0}};e.\u0275fac=function(n){return new(n||e)(y(ye),y(Ke))},e.\u0275prov=F({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();function Pt(i,e,r){return e?e.Grade:Ti(i,r)||i?.GradeValue}function Ti(i,e){return e?.Grades.find(r=>r.Id===i?.GradeId)?.Designation}var _i="1-3",Xe="\u2013",Je=(()=>{let e=class e{constructor(t){this.locale=t}transform(t,n,s){let f=Number(t??null);return isNaN(f)?Xe:Gi(Number(t??null),s??this.locale,n)}};e.\u0275fac=function(n){return new(n||e)(D(te,16))},e.\u0275pipe=Y({name:"decimalOrDash",type:e,pure:!0,standalone:!0});let i=e;return i})();function Gi(i,e,r){return i===0?Xe:ee(i,e,`1.${Ei(r)}`)}function Ei(i){return i?String(i).includes("-")?String(i):`${i}-${i}`:_i}var Qe=(()=>{let e=class e{constructor(){}getGradeForStudent(){return Pt(this.grading,this.finalGrade,this.gradingScale)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=$({type:e,selectors:[["bkd-dossier-grades-final-grade"]],inputs:{finalGrade:"finalGrade",grading:"grading",gradingScale:"gradingScale",average:"average"},standalone:!0,features:[M],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),w(b(3,4,"dossier.grade")),d(4),w(s.getGradeForStudent()||"\u2013"),d(2),w(b(9,6,"dossier.average")),d(4),w(K(13,8,s.average,"1-3")))},dependencies:[j,k,Je],styles:[".final-entry[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:repeat(2,1fr)}span[_ngcontent-%COMP%]{margin-left:2em}"]});let i=e;return i})();var Ye=(()=>{let e=class e{constructor(t){this.translate=t}transform(t,n,s,f="tests.points"){return t.IsPointGrading&&(t.IsPublished||s)?`${J(n,t)?.Points||"\u2013"} / ${t.MaxPointsAdjusted||t.MaxPoints} ${this.translate.instant(f)}`:""}};e.\u0275fac=function(n){return new(n||e)(D(Ct,16))},e.\u0275pipe=Y({name:"bkdTestPoints",type:e,pure:!0,standalone:!0});let i=e;return i})();var Ze=(()=>{let e=class e{constructor(t){this.translate=t}transform(t){return`${this.translate.instant("tests.factor")} ${t.Weight} (${t.WeightPercent}%)`}};e.\u0275fac=function(n){return new(n||e)(D(Ct,16))},e.\u0275pipe=Y({name:"bkdTestWeight",type:e,pure:!0,standalone:!0});let i=e;return i})();var wi=i=>({maxPoints:i});function Pi(i,e){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",bt(4,wi,r.maxPoints))," ")}}function $i(i,e){if(i&1){let r=it();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 tt(s.onPointsChange(n.value))}),l()(),T(7,Pi,3,6,"div",14),l()}if(i&2){let r=v();d(2),w(b(3,8,"dossier.dialog.points")),d(2),Ft("is-invalid",r.pointsInput.errors),d(),Ft("is-invalid",r.pointsInput.errors),It("max",r.maxPoints),m("formControl",r.pointsInput),d(2),m("ngIf",r.pointsInput.errors)}}var ti=500,ei=(()=>{let e=class e{constructor(t,n){this.activeModal=t,this.courseService=n,this.maxPoints=0,this.gradeSubject$=new mt,this.pointsSubject$=new mt,this.closeButtonDisabled$=new N(!1),this.gradingScaleDisabled$=new N(!0),this.grade$=this.gradeSubject$.pipe(Dt(ti)),this.points$=this.pointsSubject$.pipe(Dt(ti),Xt(this.isValid.bind(this)),I(Number)),this.destroy$=new mt}ngOnInit(){this.maxPoints=Vt(this.test),this.pointsInput=new oe({value:this.points,disabled:!1},[kt.min(0),kt.pattern("[0-9]+([\\.][0-9]+)?"),this.maxPointValidator()]),this.gradingScaleDisabled$.next(this.test.IsPointGrading&&this.points>0),this.points$.pipe(Rt(this.destroy$)).subscribe(t=>this.updateTestResult({studentId:this.studentId,testId:this.test.Id,points:t})),this.grade$.pipe(Rt(this.destroy$)).subscribe(t=>this.updateTestResult({studentId:this.studentId,testId:this.test.Id,gradeId:t}))}onGradeChange(t){this.gradeSubject$.next(t)}onPointsChange(t){this.pointsSubject$.next(t),this.gradingScaleDisabled$.next(t.length>0)}updateTestResult(t){this.closeButtonDisabled$.next(!0),this.courseService.updateTestResult(this.test.CourseId,t).subscribe(({testResult:n})=>{this.gradeId=n?.GradeId??null,this.updatedTestResult=n,this.closeButtonDisabled$.next(!1)})}isValid(t){return t===""||isNaN(Number(t))?!1:!(Number(t)<0||Number(t)>this.maxPoints)}maxPointValidator(){return t=>Number(t.value)>Vt(this.test)?{customMax:!0}:null}};e.\u0275fac=function(n){return new(n||e)(D(Ce),D(Gt))},e.\u0275cmp=$({type:e,selectors:[["bkd-dossier-grades-edit"]],inputs:{test:"test",gradeId:"gradeId",gradeOptions:"gradeOptions",points:"points",studentId:"studentId"},standalone:!0,features:[M],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(),T(3,$i,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(_){return _&&s.onGradeChange(_)}),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),w(s.test.Designation),d(),m("ngIf",s.test.IsPointGrading),d(3),w(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,xt,ae,le,vt,fe,ge,he,pe,$e,H,j,k]});let i=e;return i})();function Di(i,e){if(i&1){let r=it();p(0,"a",11),A("click",function(){Z(r);let n=v().bkdLet,s=v();return tt(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),w(b(5,1,r.grading$))}}function Mi(i,e){if(i&1&&(p(0,"span",13),u(1),g(2,"async"),l()),i&2){let r=v(2);d(),w(b(2,1,r.grading$))}}function Ri(i,e){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 Fi(i,e){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),T(7,Di,6,3,"a",6)(8,Mi,3,3,"ng-template",null,0,nt),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(),T(19,Ri,3,3,"div",10),l()),i&2){let r=e.bkdLet,t=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",t),d(4),x(" ",b(12,11,r)," "),d(4),w(Zt(16,13,r,n.studentId,n.isEditable,"dossier.points")),d(3),x(" ",r.Owner," "),d(),m("ngIf",n.isEditable)}}var ii=(()=>{let e=class e{constructor(t,n){this.gradeService=t,this.modalService=n,this.test$=new pt(1),this.grading$=this.test$.pipe(I(this.getGrading.bind(this)))}ngOnChanges(t){t.test&&this.test$.next(this.test)}editGrading(t){let n=this.modalService.open(ei,{backdrop:"static"});n.componentInstance.test=t,n.componentInstance.gradeId=this.getGradeId(t),n.componentInstance.gradeOptions=e.mapToOptions(this.gradingScale),n.componentInstance.studentId=this.studentId,n.componentInstance.points=this.getPoints(t),n.result.then(s=>{s&&this.updateStudentGrade(s,t)},()=>{})}updateStudentGrade(t,n){let s=Ht(t,n);this.gradeService.updateStudentCourses(s)}getGrading(t){return this.gradingScale?.Grades.find(n=>n.Id===this.getGradeId(t))?.Designation||"\u2013"}getGradeId(t){return J(this.studentId,t)?.GradeId||null}getPoints(t){return J(this.studentId,t)?.Points||null}static mapToOptions(t){return t?.Grades.map(n=>({Key:n.Id,Value:n.Designation}))||null}};e.\u0275fac=function(n){return new(n||e)(D(wt),D(qe))},e.\u0275cmp=$({type:e,selectors:[["bkd-dossier-single-test"]],inputs:{test:"test",studentId:"studentId",gradingScale:"gradingScale",isEditable:"isEditable"},standalone:!0,features:[W,M],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&&(T(0,Fi,20,18,"div",1),g(1,"async")),n&2&&m("bkdLet",b(1,1,s.test$))},dependencies:[_t,O,H,ne,j,k,Ye,Ze],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=e;return i})();function Oi(i,e){if(i&1&&et(0,"bkd-dossier-single-test",5),i&2){let r=e.$implicit,t=v(3);m("test",r)("studentId",t.studentId)("gradingScale",t.getGradingScaleOfTest(r))("isEditable",t.isEditable)}}function ki(i,e){if(i&1&&(p(0,"div"),et(1,"bkd-dossier-grades-final-grade",3),T(2,Oi,1,4,"bkd-dossier-single-test",4),l()),i&2){let r=v().bkdLet,t=v();d(),m("finalGrade",t.decoratedCourse.finalGrade)("grading",t.decoratedCourse.grading)("gradingScale",t.decoratedCourse.gradingScale)("average",t.decoratedCourse.average),d(),m("ngForOf",r)}}function ji(i,e){i&1&&(p(0,"p",6),u(1),g(2,"translate"),l()),i&2&&(d(),x(" ",b(2,1,"dossier.no-tests")," "))}function Bi(i,e){if(i&1&&(ft(0),T(1,ki,3,5,"div",2)(2,ji,3,3,"ng-template",null,0,nt),ht()),i&2){let r=e.bkdLet,t=V(3);d(),m("ngIf",r.length>0)("ngIfElse",t)}}var ni=(()=>{let e=class e{ngOnChanges(t){t.decoratedCourse&&this.sortedTests$.next(this.sortedTests())}constructor(){this.sortedTests$=new N([])}sortedTests(){return this.decoratedCourse.course.Tests?Ve(this.decoratedCourse.course.Tests):[]}getGradingScaleOfTest(t){return Et(t,this.gradingScales)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=$({type:e,selectors:[["bkd-dossier-course-tests"]],inputs:{studentId:"studentId",decoratedCourse:"decoratedCourse",gradingScales:"gradingScales",isEditable:"isEditable"},standalone:!0,features:[W,M],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&&(T(0,Bi,4,2,"ng-container",1),g(1,"async")),n&2&&m("bkdLet",b(1,1,s.sortedTests$))},dependencies:[_t,O,Qe,rt,ii,H,j,k]});let i=e;return i})();function Ni(i,e){if(i&1&&(p(0,"span",2),u(1),l()),i&2){let r=v();d(),x(" (",r.grade,")")}}function Ai(i,e){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 ri=(()=>{let e=class e{constructor(){}get grade(){return this.getGradeForStudent()}getGradeForStudent(){return Pt(this.grading,this.finalGrade,this.gradingScale)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=$({type:e,selectors:[["bkd-dossier-grades-course-header"]],inputs:{designation:"designation",finalGrade:"finalGrade",grading:"grading",gradingScale:"gradingScale",average:"average"},standalone:!0,features:[M],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),T(1,Ni,2,1,"span",0)(2,Ai,3,4,"span",1)),n&2&&(w(s.designation),d(),m("ngIf",s.grade),d(),m("ngIf",!s.grade&&s.average))},dependencies:[O,re],styles:[".average[_ngcontent-%COMP%]{color:#00000080}"]});let i=e;return i})();function Vi(i,e){if(i&1&&et(0,"bkd-dossier-course-tests",11),i&2){let r=v().$implicit,t=v(2);m("decoratedCourse",r)("studentId",t.studentId)("gradingScales",t.gradingScales)("isEditable",t.isEditable)}}function Hi(i,e){if(i&1){let r=it();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 tt(n.toggle())}),et(6,"bkd-dossier-grades-course-header",8),l()(),p(7,"div",9)(8,"div",10),T(9,Vi,1,4,"ng-template"),l()()()()()}if(i&2){let r=e.$implicit,t=V(3);d(5),m("opened",!t.collapsed),d(),m("designation",r.course.Designation)("finalGrade",r.finalGrade)("grading",r.grading)("gradingScale",r.gradingScale)("average",r.average)}}function Li(i,e){if(i&1&&(ft(0),T(1,Hi,10,6,"div",3),g(2,"async"),ht()),i&2){let r=v();d(),m("ngForOf",b(2,2,r.decoratedCoursesSubject$))("ngForTrackBy",r.trackByCourseId)}}function Ui(i,e){i&1&&(p(0,"p",12),u(1),g(2,"translate"),l()),i&2&&(d(),x(" ",b(2,1,"dossier.no-courses")," "))}var Ur=(()=>{let e=class e{constructor(t){this.dossierGradeService=t,this.isEditable=!0,this.decoratedCoursesSubject$=new N([])}ngOnChanges(){this.decoratedCoursesSubject$.next(this.decorateCourses())}trackByCourseId(t,n){return n.course.Id}decorateCourses(){return this.courses?.map(t=>{let n=this.dossierGradeService.getFinalGradeForStudent(t,this.studentId),s=this.dossierGradeService.getGradesForStudent(t,this.studentId,this.gradingScales);return{course:t,finalGrade:n,grading:this.dossierGradeService.getGradingForStudent(t,this.studentId),gradingScale:this.dossierGradeService.getGradingScaleOfCourse(t,this.gradingScales),average:n?.AverageTestResult||Ne(s)}})}};e.\u0275fac=function(n){return new(n||e)(D(wt))},e.\u0275cmp=$({type:e,selectors:[["bkd-dossier-grades-view"]],inputs:{courses:"courses",studentId:"studentId",gradingScales:"gradingScales",isEditable:"isEditable"},standalone:!0,features:[W,M],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&&T(0,Li,3,4,"ng-container",2)(1,Ui,3,3,"ng-template",null,0,nt),n&2){let f,_=V(2);m("ngIf",((f=s.courses==null?null:s.courses.length)!==null&&f!==void 0?f:0)>0)("ngIfElse",_)}},dependencies:[O,rt,xe,ve,Se,Ge,ri,be,Ie,ni,H,j,k]});let i=e;return i})();export{At as a,xn as b,Cn as c,yn as d,Tn as e,_n as f,Gn as g,En as h,Ve as i,Xe as j,Je as k,Gi as l,$e as m,De as n,Bt as o,Gt as p,Lt as q,Le as r,Ue as s,wt as t,Ke as u,qe as v,Ur as w}; diff --git a/public/apps/webapp-schulverwaltung/chunk-WACRWBCS.js b/public/apps/webapp-schulverwaltung/chunk-WACRWBCS.js new file mode 100644 index 00000000..c8710162 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-WACRWBCS.js @@ -0,0 +1 @@ +import{Ab as f,Ad as I,Cc as s,Dc as h,Fc as R,Fd as _,Hc as k,Ic as b,Kc as w,Ld as z,Ma as M,P,Pc as a,Qc as E,Uc as L,Wa as u,X as x,Xa as g,Ya as j,Yc as O,_ as c,a as y,aa as m,b as v,eb as D,fb as F,gc as $,l as S,n as A,nb as T,o as C,ob as U,wa as d,wd as B}from"./chunk-IFJN5CDK.js";var G=(()=>{class o{constructor(){this.expanded=!1}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275cmp=m({type:o,selectors:[["bkd-caret"]],inputs:{expanded:"expanded"},standalone:!0,features:[f],decls:2,vars:1,consts:[["role","button",1,"d-flex","material-icons"]],template:function(e,r){e&1&&(u(0,"i",0),T(1),g()),e&2&&(d(),U(r.expanded?"expand_less":"expand_more"))},styles:["i[_ngcontent-%COMP%]:hover{color:#ea161f}"]})}}return o})();var q=["*"],W=(()=>{class o{constructor(){this.opened=!1}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275cmp=m({type:o,selectors:[["bkd-student-dossier-entry-header"]],inputs:{opened:"opened"},standalone:!0,features:[f],ngContentSelectors:q,decls:3,vars:1,consts:[[1,"m-0"],[1,"d-flex","align-items-center",3,"expanded"]],template:function(e,r){e&1&&(D(),u(0,"h5",0),F(1),g(),j(2,"bkd-caret",1)),e&2&&(d(2),M("expanded",r.opened))},dependencies:[G],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 o})();var K=b({Id:h,Title:s}),N=a(k(K));var lt=(()=>{class o{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,i)=>{let n=this.getReportUrl(r.type,"Anmeldung",r.id,t);return v(y({},r),{title:`Report ${i+1}`,url:n})})}getTeacherSubscriptionReports(t){return this.settings.testsBySubscriptionTeacherReports.map((r,i)=>{let n=this.getReportUrl(r.type,"Anmeldung",r.id,t);return v(y({},r),{title:`Report ${i+1}`,url:n})})}getAvailableReports(t,e,r){let i=I(e,p=>p.type),n=C(Object.keys(i).map(p=>this.getAvailableReportsForType(p,t,i[p].map(({id:l})=>l),r)));return this.mergeAvailableReports(n,e)}getAvailableReportsForType(t,e,r,i){return i.length===0?S([]):this.http.get(this.getReportAvailabilityUrl(t,e,r,i)).pipe(P(_(N)),A(n=>n?n.map(({Id:p,Title:l})=>({type:t,id:p,title:l,url:this.getReportUrl(t,e,p,i)})):[]))}mergeAvailableReports(t,e){return t.pipe(A(r=>{let i=B(r);return e.reduce((n,p)=>{let l=i.find(({id:X})=>X===p.id);return l?[...n,l]:n},[])}))}getReportUrl(t,e,r,i){let n=new URL(`${this.settings.apiUrl}/Files/${this.getReportTypePathPart(t)}/${e}/${r}`);return n.searchParams.set("ids",i.join(",")),n.searchParams.set("token",this.storageService.getAccessToken()??""),n.toString()}getReportAvailabilityUrl(t,e,r,i){let n=new URL(`${this.settings.apiUrl}/${this.getReportTypePathPart(t)}/AvailableReports/${e}`);return n.searchParams.set("ids",Array.isArray(r)?r.join(","):String(r)),n.searchParams.set("keys",i.join(",")),n.toString()}getReportTypePathPart(t){return`${t[0].toUpperCase()+t.slice(1)}Reports`}static{this.\u0275fac=function(e){return new(e||o)(c(O),c(z),c($))}}static{this.\u0275prov=x({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var ut=b({Id:h,AddressLine1:a(s),AddressLine2:E(s),Birthdate:a(L),DisplayEmail:a(s),FullName:s,Gender:w([R("M"),R("F"),R("X")]),Location:a(s),PhoneMobile:a(s),PhonePrivate:a(s),PostalCode:a(s)});export{G as a,W as b,ut as c,lt as d}; diff --git a/public/apps/webapp-schulverwaltung/chunk-WNMIKIML.js b/public/apps/webapp-schulverwaltung/chunk-WNMIKIML.js deleted file mode 100644 index 2b5ddc5b..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-WNMIKIML.js +++ /dev/null @@ -1,2 +0,0 @@ -import{c as Ue}from"./chunk-673RVEOB.js";import{b as J}from"./chunk-KDAC4GJ5.js";import{a as ze}from"./chunk-NYTDIO5P.js";import{a as Ne}from"./chunk-JV3CBBGP.js";import"./chunk-U4HODSW3.js";import{p as Fe}from"./chunk-W7ASLXRM.js";import"./chunk-PSXDSPKS.js";import{e as Y}from"./chunk-C7XT5XXE.js";import{b as we}from"./chunk-YMJC6QZX.js";import"./chunk-Y4QYVF5K.js";import"./chunk-HII3S2DL.js";import{c as U,d as je}from"./chunk-24AFRN2G.js";import"./chunk-RFO4NYUO.js";import"./chunk-5RDJZAUT.js";import"./chunk-DB66EACG.js";import{P as Le,c as Re,j as re,t as Ae,u as Oe}from"./chunk-ZK2MNT7Z.js";import"./chunk-AW7CSGKI.js";import"./chunk-FTDG26ID.js";import{a as W,b as Be,c as Z}from"./chunk-SOHFFTKU.js";import{u as Ee}from"./chunk-C56YGDXA.js";import"./chunk-UX5TA32W.js";import{$ as y,$a as b,Ab as r,Ac as De,Bb as c,Cb as O,Eb as L,Fc as $e,Ga as m,Gd as D,Ha as te,Hd as $,Ia as s,Id as Me,Ja as he,L as x,N as de,O as I,R as pe,Rb as ve,Sa as l,Sb as k,Ta as d,Ua as f,Ub as Se,Va as ie,Vb as B,Vc as w,W as V,Wa as ne,Wb as K,Xa as ae,Ya as be,Z as P,_a as z,ab as ue,bb as fe,ca as le,dc as Ce,f as ee,g as ce,ha as G,ia as q,ib as A,ic as xe,ja as me,jb as h,k as j,kb as T,lb as S,m as u,mb as oe,n as H,nb as ge,pc as Te,qc as Ie,rc as Pe,sb as _e,ta as F,tb as v,ua as o,ub as N,va as _,yb as ye,zc as ke}from"./chunk-XTHSYQMN.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-XLPJMZ3E.js b/public/apps/webapp-schulverwaltung/chunk-XLPJMZ3E.js deleted file mode 100644 index afd0ee6a..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-XLPJMZ3E.js +++ /dev/null @@ -1 +0,0 @@ -import{E as o,G as a,L as c,W as u,f as n,m as s,yd as p}from"./chunk-XTHSYQMN.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-XTHSYQMN.js b/public/apps/webapp-schulverwaltung/chunk-XTHSYQMN.js deleted file mode 100644 index e9452417..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-XTHSYQMN.js +++ /dev/null @@ -1,9 +0,0 @@ -var mx=Object.defineProperty,vx=Object.defineProperties;var yx=Object.getOwnPropertyDescriptors;var Vs=Object.getOwnPropertySymbols;var Zp=Object.prototype.hasOwnProperty,Kp=Object.prototype.propertyIsEnumerable;var qp=(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||={})Zp.call(e,r)&&qp(t,r,e[r]);if(Vs)for(var r of Vs(e))Kp.call(e,r)&&qp(t,r,e[r]);return t},$=(t,e)=>vx(t,yx(e));var Dx=(t,e)=>{var r={};for(var n in t)Zp.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&&Kp.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 tl=null;var el=1,nl=Symbol("SIGNAL");function V(t){let e=tl;return tl=t,e}function Yp(){return tl}var rl={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(!(ul(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===el)){if(!t.producerMustRecompute(t)&&!il(t)){t.dirty=!1,t.lastCleanEpoch=el;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=el}}function ol(t){return t&&(t.nextProducerIndex=0),V(t)}function Qp(t,e){if(V(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(ul(t))for(let r=t.nextProducerIndex;rt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function il(t){cl(t);for(let e=0;e0}function cl(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 Jp(t){Ix=t}function T(t){return typeof t=="function"}function Zr(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=Zr(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{Xp(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)Xp(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 ll=ie.EMPTY;function $s(t){return t instanceof ie||t&&"closed"in t&&T(t.remove)&&T(t.add)&&T(t.unsubscribe)}function Xp(t){T(t)?t():t.unsubscribe()}var Dt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Kr={setTimeout(t,e,...r){let{delegate:n}=Kr;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=Kr;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Hs(t){Kr.setTimeout(()=>{let{onUnhandledError:e}=Dt;if(e)e(t);else throw t})}function Kt(){}var eg=dl("C",void 0,void 0);function tg(t){return dl("E",void 0,t)}function ng(t){return dl("N",t,void 0)}function dl(t,e,r){return{kind:t,value:e,error:r}}var pr=null;function Yr(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 rg(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 Yt(e,r,n)}next(e){this.isStopped?hl(ng(e),this):this._next(e)}error(e){this.isStopped?hl(tg(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?hl(eg,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 fl(t,e){return xx.call(t,e)}var pl=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)}}},Yt=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&&fl(e.next,i),error:e.error&&fl(e.error,i),complete:e.complete&&fl(e.complete,i)}):o=e}this.destination=new pl(o)}};function zs(t){Dt.useDeprecatedSynchronousErrorHandling?rg(t):Hs(t)}function _x(t){throw t}function hl(t,e){let{onStoppedNotification:r}=Dt;r&&Kr.setTimeout(()=>r(t,e))}var Mx={closed:!0,next:Kt,error:_x,complete:Kt};var Qr=typeof Symbol=="function"&&Symbol.observable||"@@observable";function we(t){return t}function gl(...t){return ml(t)}function ml(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 Yt(r,n,o);return Yr(()=>{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=og(n),new n((o,i)=>{let s=new Yt({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)}[Qr](){return this}pipe(...r){return ml(r)(this)}toPromise(r){return r=og(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 og(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 vl(t){return T(t?.lift)}function S(t){return e=>{if(vl(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 yl(t,e,r,n,o)}var yl=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 Jr(){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 Xr=class extends P{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,vl(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 Jr()(this)}};var eo={schedule(t){let e=requestAnimationFrame,r=cancelAnimationFrame,{delegate:n}=eo;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}=eo;return(e?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:e}=eo;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var ig=Zr(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 ig}next(r){Yr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){Yr(()=>{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(){Yr(()=>{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?ll:(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:ll}};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;ssg(e)&&t()),e},clearImmediate(t){sg(t)}};var{setImmediate:Nx,clearImmediate:Ox}=ag,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 to=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)}};to.now=yi.now;var Mn=class extends to{constructor(e,r=to.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),ug=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=eo.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&&(eo.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 bl(t){return t[t.length-1]}function Tn(t){return T(bl(t))?t.pop():void 0}function Lt(t){return Qs(bl(t))?t.pop():void 0}function cg(t,e){return typeof bl(t)=="number"?t.pop():e}function dg(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 lg(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 fg(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 hg(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 lg=="function"?lg(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 no=t=>t&&typeof t.length=="number"&&typeof t!="function";function Js(t){return T(t?.then)}function Xs(t){return T(t[Qr])}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 fg(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(no(t))return kx(t);if(Js(t))return jx(t);if(ea(t))return pg(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[Qr]();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 pg(t){return new P(e=>{Bx(t,e).catch(r=>e.error(r))})}function Ux(t){return pg(oa(t))}function Bx(t,e){var r,n,o,i;return dg(this,void 0,void 0,function*(){try{for(r=hg(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 We(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=>We(n,t,()=>n.next(o),e),()=>We(n,t,()=>n.complete(),e),o=>We(n,t,()=>n.error(o),e)))})}function aa(t,e=0){return S((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function gg(t,e){return k(t).pipe(aa(e),sa(e))}function mg(t,e){return k(t).pipe(aa(e),sa(e))}function vg(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 yg(t,e){return new P(r=>{let n;return We(r,e,()=>{n=t[na](),We(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=>{We(r,e,()=>{let n=t[Symbol.asyncIterator]();We(r,e,()=>{n.next().then(o=>{o.done?r.complete():r.next(o.value)})},0,!0)})})}function Dg(t,e){return ua(oa(t),e)}function wg(t,e){if(t!=null){if(Xs(t))return gg(t,e);if(no(t))return vg(t,e);if(Js(t))return mg(t,e);if(ea(t))return ua(t,e);if(ra(t))return yg(t,e);if(ia(t))return Dg(t,e)}throw ta(t)}function te(t,e){return e?wg(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 Qt=Zr(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function bg(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 ro(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(ro(r)):i}function Kx(t,e,r=we){return n=>{Cg(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 Cg(t,e,r){t?We(r,t,e):e()}function Eg(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)=>Eg(n,o,t,r)))}function An(t=1/0){return le(we,t)}function Ig(){return An(1)}function tt(...t){return Ig()(te(t,Lt(t)))}function Jt(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=Jt(()=>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(ro(e)):o}var Jx=["addListener","removeListener"],Xx=["addEventListener","removeEventListener"],e0=["on","off"];function Cl(t,e,r,n){if(T(r)&&(n=r,r=void 0),n)return Cl(t,e,r).pipe(ro(n));let[o,i]=r0(t)?Xx.map(s=>a=>t[s](e,a,r)):t0(t)?Jx.map(xg(t,e)):n0(t)?e0.map(xg(t,e)):[];if(!o&&no(t))return le(s=>Cl(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 xg(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 Xt(t=0,e,r=ug){let n=-1;return e!=null&&(Qs(e)?r=e:n=e),new P(o=>{let i=bg(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),Xt(t,t,e)}function i0(...t){let e=Lt(t),r=cg(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 _g(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 _g(()=>Xt(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 Mg(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 Tg(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 Sg(){return S((t,e)=>{t.subscribe(_(e,Kt))})}function Ei(t){return N(()=>t)}function El(t,e){return e?r=>tt(e.pipe(xe(1),Sg()),r.pipe(El(t))):le((r,n)=>k(t(r,n)).pipe(xe(1),Ei(r)))}function d0(t,e=wt){let r=Xt(t,e);return El(()=>r)}function Ag(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 Qt}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 Qt))}function oo(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 Il(t,e){let r=arguments.length>=2;return n=>n.pipe(t?ke((o,i)=>t(o,i,n)):we,oo(1),r?On(e):ha(()=>new Qt))}function pa(t,e){return S(Mg(t,e,arguments.length>=2,!0))}function _l(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=xl(p,o))}),v.subscribe(m),!s&&c>0&&(s=new Yt({next:A=>v.next(A),error:A=>{d=!0,f(),a=xl(h,r,A),v.error(A)},complete:()=>{l=!0,f(),a=xl(h,n),v.complete()}}),k(g).subscribe(s))})(i)}}function xl(t,e,...r){if(e===!0){t();return}if(e===!1)return;let n=new Yt({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,_l({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(),Kt)),!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 Ng(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=Xt(t,e);return Ng(()=>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))},Kt));r.subscribe(_(n,u=>{if(a){let c=[u,...i];n.next(e?e(...c):c)}}))})}var Cm="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 Em(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 $l(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 Im(t)?t():t}function Im(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 Og(t,_m)||Og(t,Mm)}function xm(t){return eu(t)!==null}function Og(t,e){return t.hasOwnProperty(e)?t[e]:null}function C0(t){let e=t&&(t[_m]||t[Mm]);return e||null}function Rg(t){return t&&(t.hasOwnProperty(Pg)||t.hasOwnProperty(E0))?t[Pg]:null}var _m=J({\u0275prov:J}),Pg=J({\u0275inj:J}),Mm=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 Tm(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}),Fg=J({__NG_ENV_ID__:J});function Ze(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():Ze(t)}function S0(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new C(-200,t)}function Qd(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||{}),Hl;function Sm(){return Hl}function qe(t){let e=Hl;return Hl=t,e}function Am(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;Qd(t,"Injector")}var A0={},Mi=A0,zl="__NG_DI_FLAG__",Aa="ngTempTokenPath",N0="ngTokenPath",O0=/\n/gm,R0="\u0275",Lg="__source",uo;function P0(){return uo}function Pn(t){let e=uo;return uo=t,e}function F0(t,e=j.Default){if(uo===void 0)throw new C(-203,!1);return uo===null?Am(t,void 0,e):uo.get(t,e&j.Optional?null:void 0,e)}function x(t,e=j.Default){return(Sm()||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 Gl(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=Nm(Em("Optional"),8);var Jd=Nm(Em("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)?Xd(r,e):e(r))}function Om(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 Ml(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+=jg(i,o),o=""),n=s,i=i||!Ct(n);r++}return o!==""&&(e+=jg(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=Hm(t),r=$(D({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Fm.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||Ke,_:null,schemas:t.schemas||null,tView:null,id:""});zm(r);let n=t.dependencies;return r.directiveDefs=Ug(n,!1),r.pipeDefs=Ug(n,!0),r.id=i_(r),r})}function r_(t){return kn(t)||tf(t)}function o_(t){return t!==null}function Mt(t){return Li(()=>({type:t.type,bootstrap:t.bootstrap||Ke,declarations:t.declarations||Ke,imports:t.imports||Ke,exports:t.exports||Ke,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Vg(t,e){if(t==null)return en;let r={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],i,s,a=fo.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),e?(r[i]=a!==fo.None?[n,a]:n,e[i]=s):r[i]=n}return r}function H(t){return Li(()=>{let e=Hm(t);return zm(e),e})}function Io(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 tf(t){return t[x0]||null}function Um(t){return t[_0]||null}function Bm(t){let e=kn(t)||tf(t)||Um(t);return e!==null?e.standalone:!1}function $m(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 Hm(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||en,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Ke,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Vg(t.inputs,e),outputs:Vg(t.outputs),debugInfo:null}}function zm(t){t.features?.forEach(e=>e(t))}function Ug(t,e){if(!t)return null;let r=e?Um: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:Gm(!0,t),\u0275fromNgModule:!0}}function Gm(t,...e){let r=[],n=new Set,o,i=s=>{r.push(s)};return Xd(e,s=>{let a=s;ql(a,i,[],n)&&(o||=[],o.push(a))}),o!==void 0&&Wm(o,i),r}function Wm(t,e){for(let r=0;r{e(i,n)})}}function ql(t,e,r,n){if(t=Ne(t),!t)return!1;let o=null,i=Rg(t),s=!i&&kn(t);if(!i&&!s){let u=t.ngModule;if(i=Rg(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)ql(c,e,r,n)}}else if(i){if(i.imports!=null&&!a){n.add(o);let c;try{Xd(i.imports,l=>{ql(l,e,r,n)&&(c||=[],c.push(l))})}finally{}c!==void 0&&Wm(c,e)}if(!a){let c=wr(o)||(()=>new o);e({provide:o,useFactory:c,deps:Ke},o),e({provide:Pm,useValue:o,multi:!0},o),e({provide:lo,useValue:()=>x(o),multi:!0},o)}let u=i.providers;if(u!=null&&!a){let c=t;nf(u,l=>{e(l,c)})}}else return!1;return o!==t&&t.providers!==void 0}function nf(t,e){for(let r of t)Tm(r)&&(r=r.\u0275providers),Array.isArray(r)?nf(r,e):e(r)}var a_=J({provide:String,useValue:J});function qm(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 ho(t){return typeof t=="function"}function l_(t){return!!t.useClass}var ou=new E(""),Ea={},d_={},Tl;function iu(){return Tl===void 0&&(Tl=new Oa),Tl}var Ye=class{},Si=class extends Ye{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,Kl(e,s=>this.processProvider(s)),this.records.set(Rm,io(void 0,this)),o.has("environment")&&this.records.set(Ye,io(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(Pm,Ke,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=qe(void 0),o;try{return e()}finally{Pn(r),qe(n)}}get(e,r=Mi,n=j.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(Fg))return e[Fg](this);n=tu(n);let o,i=Pn(this),s=qe(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=io(Zl(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{qe(s),Pn(i)}}resolveInjectorInitializers(){let e=V(null),r=Pn(this),n=qe(void 0),o;try{let i=this.get(lo,Ke,j.Self);for(let s of i)s()}finally{Pn(r),qe(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=ho(e)?e:Ne(e&&e.provide),n=h_(e);if(!ho(e)&&e.multi===!0){let o=this.records.get(r);o||(o=io(void 0,Ea,!0),o.factory=()=>Gl(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 Zl(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(qm(t))return io(void 0,t.useValue);{let e=Zm(t);return io(e,Ea)}}function Zm(t,e,r){let n;if(ho(t)){let o=Ne(t);return wr(o)||Zl(o)}else if(qm(t))n=()=>Ne(t.useValue);else if(c_(t))n=()=>t.useFactory(...Gl(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(...Gl(t.deps));else return wr(o)||Zl(o)}return n}function io(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 Kl(t,e){for(let r of t)Array.isArray(r)?Kl(r,e):r&&Tm(r)?Kl(r.\u0275providers,e):e(r)}function Tt(t,e){t instanceof Si&&t.assertNotDestroyed();let r,n=Pn(t),o=qe(void 0);try{return e()}finally{Pn(n),qe(o)}}function Km(){return Sm()!==void 0||P0()!=null}function K6(t){if(!Km())throw new C(-203,!1)}function v_(t){return typeof t=="function"}var sn=0,R=1,O=2,Ve=3,xt=4,Xe=5,po=6,Ra=7,Oe=8,go=9,$t=10,ae=11,Ai=12,Bg=13,xo=14,Qe=15,br=16,so=17,tn=18,su=19,Ym=20,Fn=21,Sl=22,dt=23,Ee=25,Qm=1;var Cr=7,Pa=8,mo=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[Qm]=="object"}function an(t){return Array.isArray(t)&&t[Qm]===!0}function rf(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 Yl(t){return(t[O]&512)!==0}var Ql=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function Jm(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function nt(){return Xm}function Xm(t){return t.type.prototype.ngOnChanges&&(t.setInput=D_),y_}nt.ngInherit=!0;function y_(){let t=tv(this),e=t?.current;if(e){let r=t.previous;if(r===en)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=tv(t)||w_(t,{previous:en,current:null}),a=s.current||(s.current={}),u=s.previous,c=u[i];a[i]=new Ql(c&&c.currentValue,r,u===en),Jm(t,e,o,r)}var ev="__ngSimpleChanges__";function tv(t){return t[ev]||null}function w_(t,e){return t[ev]=e}var $g=null;var Vt=function(t,e,r){$g?.(t,e,r)},nv="svg",rv="math";function Ht(t){for(;Array.isArray(t);)t=t[sn];return t}function ov(t,e){return Ht(e[t])}function ft(t,e){return Ht(e[t.index])}function of(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[sn]}function b_(t){return(t[O]&4)===4}function sf(t){return(t[O]&128)===128}function C_(t){return an(t[Ve])}function Vn(t,e){return e==null?null:t[e]}function iv(t){t[so]=0}function sv(t){t[O]&1024||(t[O]|=1024,sf(t)&&lu(t))}function E_(t,e){for(;t>0;)e=e[xo],t--;return e}function Ni(t){return!!(t[O]&9216||t[dt]?.dirty)}function Jl(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,!sf(e)));)e=Er(e)}function av(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 an(e)?e[Ve]:e}var F={lFrame:mv(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var uv=!1;function x_(){return F.lFrame.elementDepthCount}function __(){F.lFrame.elementDepthCount++}function M_(){F.lFrame.elementDepthCount--}function cv(){return F.bindingsEnabled}function lv(){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=dv();for(;t!==null&&t.type===64;)t=t.parent;return t}function dv(){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 af(){return F.lFrame.isParent}function uf(){F.lFrame.isParent=!1}function N_(){return F.lFrame.contextLView}function fv(){return uv}function Hg(t){uv=t}function un(){let t=F.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function cf(){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,Xl(e)}function F_(){return F.lFrame.currentDirectiveIndex}function Xl(t){F.lFrame.currentDirectiveIndex=t}function L_(t){let e=F.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function hv(){return F.lFrame.currentQueryIndex}function lf(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 pv(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[xo],o.type&10))break;if(o===null)return!1;e=o,t=i}let n=F.lFrame=gv();return n.currentTNode=e,n.lView=t,!0}function df(t){let e=gv(),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 gv(){let t=F.lFrame,e=t===null?null:t.child;return e===null?mv(t):e}function mv(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 vv(){let t=F.lFrame;return F.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var yv=vv;function ff(){let t=vv();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 of(t.tView,t.selectedIndex)}function J6(){F.lFrame.currentNamespace=nv}function X6(){F.lFrame.currentNamespace=rv}function V_(){return F.lFrame.currentNamespace}var Dv=!0;function du(){return Dv}function fu(t){Dv=t}function U_(t,e,r){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(n){let s=Xm(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[so]+=65536),(a>14>16&&(t[O]&3)===e&&(t[O]+=16384,zg(a,i)):zg(a,i)}var co=-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 bv(t){return t!==co}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[xo],r--;return n}var ed=!0;function ja(t){let e=ed;return ed=t,e}var W_=256,Cv=W_-1,Ev=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&Cv,i=1<>Ev)]|=i}function Va(t,e){let r=Iv(t,e);if(r!==-1)return r;let n=e[R];n.firstCreatePass&&(t.injectorIndex=e.length,Nl(n.data,t),Nl(e,null),Nl(n.blueprint,null));let o=hf(t,e),i=t.injectorIndex;if(bv(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 Nl(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Iv(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function hf(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=Sv(o),n===null)return co;if(r++,o=o[xo],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return co}function td(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?qe(s.injectImpl):null,l=pv(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&&qe(c),ja(a),s.resolving=!1,yv()}}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&Cv:J_:e}function Gg(t,e,r){let n=1<>Ev)]&n)}function Wg(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 Mv(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]||nd(e),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let i=o[Sa]||nd(o);if(i&&i!==r)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function nd(t){return Im(t)?()=>{let e=nd(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=Tv(i,s,r,n|j.Self,Ut);if(a!==Ut)return a;let u=i.parent;if(!u){let c=s[Ym];if(c){let l=c.get(r,Ut,n);if(l!==Ut)return l}u=Sv(s),s=s[xo]}i=u}return o}function Sv(t){let e=t[R],r=e.type;return r===2?e.declTNode:r===1?t[Xe]:null}function pf(t){return K_(Pe(),t)}function qg(t,e=null,r=null,n){let o=Av(t,e,r,n);return o.resolveInjectorInitializers(),o}function Av(t,e=null,r=null,n,o=new Set){let i=[r||Ke,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 qg({name:""},r,e,"");{let n=e.name??"";return qg({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(Rm)}),yr.__NG_ELEMENT_ID__=-1;var nn=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 Ol(t){return t[tM]}var rn=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&&Ol(e);for(;r&&Ol(r);)r=Ol(r);return r||null}},Nv=new E("",{providedIn:"root",factory:()=>y(rn).handleError.bind(void 0)}),Ov=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=nM,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),rd=class extends Ov{constructor(e){super(),this._lView=e}onDestroy(e){return av(this._lView,e),()=>I_(this._lView,e)}};function nM(){return new rd(M())}function rM(){return _o(Pe(),M())}function _o(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 od=class extends se{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,Km()&&(this.destroyRef=y(Ov,{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=od;function iM(){return this._results[Symbol.iterator]()}var id=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 Rv(t){return(t.flags&128)===128}var Pv=new Map,sM=0;function aM(){return sM++}function uM(t){Pv.set(t[su],t)}function cM(t){Pv.delete(t[su])}var Zg="__ngContext__";function Un(t,e){Ln(e)?(t[Zg]=e[su],uM(e)):t[Zg]=e}function Fv(t){return kv(t[Ai])}function Lv(t){return kv(t[xt])}function kv(t){for(;t!==null&&!an(t);)t=t[xt];return t}var sd;function jv(t){sd=t}function lM(){if(sd!==void 0)return sd;if(typeof document<"u")return document;throw new C(210,!1)}var gf=new E("",{providedIn:"root",factory:()=>dM}),dM="ng",mf=new E(""),cn=new E("",{providedIn:"platform",factory:()=>"unknown"});var e5=new E(""),vf=new E("",{providedIn:"root",factory:()=>lM().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var fM="h",hM="b";var pM=()=>null;function yf(t,e,r=!1){return pM(t,e,r)}var Vv=!1,gM=new E("",{providedIn:"root",factory:()=>Vv});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 Kg(t){return vM()?.createScriptURL(t)||t}var on=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Cm})`}},ad=class extends on{getTypeName(){return"HTML"}},ud=class extends on{getTypeName(){return"Style"}},cd=class extends on{getTypeName(){return"Script"}},ld=class extends on{getTypeName(){return"URL"}},dd=class extends on{getTypeName(){return"ResourceURL"}};function At(t){return t instanceof on?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 ${Cm})`)}return r===e}function yM(t){return t instanceof on&&t.getTypeName()||null}function Uv(t){return new ad(t)}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 DM(t){let e=new hd(t);return wM()?new fd(e):e}var fd=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}}},hd=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 Gv=ln("area,br,col,hr,img,wbr"),Wv=ln("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),qv=ln("rp,rt"),CM=Bi(qv,Wv),EM=Bi(Wv,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(qv,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")),Yg=Bi(Gv,EM,IM,CM),Zv=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(Zv,xM,_M),TM=ln("script,style,template"),pd=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=Qg(e).toLowerCase();if(!Yg.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=Qg(e).toLowerCase();Yg.hasOwnProperty(r)&&!Gv.hasOwnProperty(r)&&(this.buf.push(""))}chars(e){this.buf.push(Jg(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 Kv(e);return e}function NM(t){let e=t.firstChild;if(e&&SM(t,e))throw Kv(e);return e}function Qg(t){let e=t.nodeName;return typeof e=="string"?e:"FORM"}function Kv(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 Jg(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 Yv(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 pd().sanitizeChildren(Xg(r)||r);return pu(a)}finally{if(r){let n=Xg(r)||r;for(;n.firstChild;)n.removeChild(n.firstChild)}}}function Xg(t){return"content"in t&&PM(t)?t.content:null}function PM(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var Gt=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}(Gt||{});function FM(t){let e=Jv();return e?e.sanitize(Gt.URL,t)||"":zn(t,"URL")?At(t):gu(Ze(t))}function LM(t){let e=Jv();if(e)return Kg(e.sanitize(Gt.RESOURCE_URL,t)||"");if(zn(t,"ResourceURL"))return Kg(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 Qv(t,e,r){return kM(e,r)(t)}function Jv(){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 Xv(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 Df(t,e){return $M(t,e)}function ao(t,e,r,n,o){if(n!=null){let i,s=!1;an(n)?i=n:Ln(n)&&(s=!0,n=n[sn]);let a=Ht(n);t===0&&r!==null?o==null?oy(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 ey(t,e,r){return t.createElement(e,r)}function WM(t,e){ty(t,e),e[sn]=null,e[Xe]=null}function qM(t,e,r,n,o,i){n[sn]=o,n[Xe]=e,yu(t,n,r,1,o,i)}function ty(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 Rl(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)&&Rl(e[R],e),e=e[Ve];e===null&&(e=t),Ln(e)&&Rl(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[tn];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 Rl(t,e){if(e[O]&256)return;let r=V(null);try{e[O]&=-129,e[O]|=256,e[dt]&&sl(e[dt]),QM(t,e),YM(t,e),e[R].type===1&&e[ae].destroy();let n=e[br];if(n!==null&&an(e[Ve])){n!==e[Ve]&&wf(n,e);let o=e[tn];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 oy(t,e,r){t.appendChild(e,r)}function em(t,e,r,n,o){n!==null?Ua(t,e,r,n,o):oy(t,e,r)}function XM(t,e,r,n){t.removeChild(e,r,n)}function bf(t,e){return t.parentNode(e)}function eT(t,e){return t.nextSibling(e)}function iy(t,e,r){return nT(t,e,r)}function tT(t,e,r){return t.type&40?ft(t,r):null}var nT=tT,tm;function vu(t,e,r,n){let o=ry(t,n,e),i=e[ae],s=n.parent||e[Xe],a=iy(s,n,e);if(o!=null)if(Array.isArray(r))for(let u=0;uEe&&ly(t,e,Ee,!1),Vt(s?2:0,o),r(n,o)}finally{Ir(i),Vt(s?3:1,o)}}function Ef(t,e,r){if(rf(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=Dy(e);o.push(r),t.firstCreatePass&&wy(t).push(n,o.length-1)}function mT(t,e,r,n,o,i){let s=e?e.injectorIndex:-1,a=0;return lv()&&(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 nm(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=fo.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?rm(n,r,c,a,u):rm(n,r,c,a)}return n}function rm(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({},rl),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=Er(t.lView);for(;e&&!xy(e[R]);)e=Er(e);e&&sv(e)},consumerOnSignalRead(){this.lView[dt]=this}});function xy(t){return t.type!==2}var zT=100;function _y(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&&by(t,s),s}finally{i||(o.end?.(),n.inlineEffectRunner?.flush())}}function GT(t,e){let r=fv();try{Hg(!0),yd(t,e);let n=0;for(;Ni(t);){if(n===zT)throw new C(103,!1);n++,yd(t,1)}}finally{Hg(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(),df(e);let a=!0,u=null,c=null;i||(xy(t)?(c=jT(e),u=ol(c)):Yp()===null?(a=!1,c=$T(e),u=ol(c)):e[dt]&&(sl(e[dt]),e[dt]=null));try{iv(e),O_(t.bindingStartIndex),r!==null&&hy(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),Al(e,0)}if(s||qT(e),My(e,0),t.contentQueries!==null&&yy(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),Al(e,1)}cT(t,e);let d=t.components;d!==null&&Sy(e,d,0);let f=t.viewQuery;if(f!==null&&vd(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),Al(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Sl]){for(let h of e[Sl])h();e[Sl]=null}i||(e[O]&=-73)}catch(l){throw i||lu(e),l}finally{c!==null&&(Qp(c,u),a&&UT(c)),ff()}}function My(t,e){for(let r=Fv(t);r!==null;r=Lv(r))for(let n=je;n-1&&(Oi(e,n),Na(r,n))}this._attachedToViewContainer=!1}mu(this._lView[R],this._lView)}onDestroy(e){av(this._lView,e)}markForCheck(){Af(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[O]&=-129}reattach(){Jl(this._lView),this._lView[O]|=128}detectChanges(){this._lView[O]|=1024,_y(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Yl(this._lView),r=this._lView[br];r!==null&&!e&&wf(r,this._lView),ty(this._lView[R],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=e;let r=Yl(this._lView),n=this._lView[br];n!==null&&!r&&ny(n,this._lView),Jl(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,_o(t,e)):null}var r5=new RegExp(`^(\\d+)*(${hM}|${fM})*(.*)`);var JT=()=>null;function yo(t,e){return JT(t,e)}var Ri=class{},Ay=new E("",{providedIn:"root",factory:()=>!1});var Ny=new E(""),Dd=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 wd=class{resolveComponentFactory(e){throw XT(e)}},Gf=class Gf{};Gf.NULL=new wd;var Do=Gf,wo=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})(),Pl={};var om=new Set;function zi(t){om.has(t)||(om.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function Oy(t){let e=!0;return setTimeout(()=>{e&&(e=!1,t())}),typeof It.requestAnimationFrame=="function"&&It.requestAnimationFrame(()=>{e&&(e=!1,t())}),()=>{e=!1}}function im(t){let e=!0;return queueMicrotask(()=>{e&&t()}),()=>{e=!1}}function sm(...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,sm,sm);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 Nf(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(()=>{Oy(()=>{t.callbackScheduled=!1,bd(t),t.isCheckStableRunning=!0,Nf(t),t.isCheckStableRunning=!1})}),bd(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 am(t),r.invokeTask(o,i,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),um(t)}},onInvoke:(r,n,o,i,s,a,u)=>{try{return am(t),r.invoke(o,i,s,a,u)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!aS(a)&&e(),um(t)}},onHasTask:(r,n,o,i)=>{r.hasTask(o,i),n===o&&(i.change=="microTask"?(t._hasPendingMicrotasks=i.microTask,bd(t),Nf(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 bd(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function am(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function um(t){t._nesting--,Nf(t)}var Cd=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 Ry(t,"__ignore_ng_zone__")}function aS(t){return Ry(t,"__scheduler_tick__")}function Ry(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var Py=(()=>{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&&uy(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 Ly(t,M())}var vS=dn,Fy=class extends vS{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return _o(this._hostTNode,this._hostLView)}get injector(){return new Dr(this._hostTNode,this._hostLView)}get parentInjector(){let e=hf(this._hostTNode,this._hostLView);if(bv(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=lm(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=yo(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},i,s);return this.insertImpl(a,o,vo(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 bo(kn(e)),c=n||this.parentInjector;if(!i&&u.ngModule==null){let g=(s?c:this.parentInjector).get(Ye,null);g&&(i=g)}let l=kn(u.componentType??{}),d=yo(this._lContainer,l?.id??null),f=d?.firstChild??null,h=u.create(c,o,f,i);return this.insertImpl(h.hostView,a,vo(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 Fy(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(),Om(Fl(s),i,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=lm(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=Oi(this._lContainer,r);n&&(Na(Fl(this._lContainer),r),mu(n[R],n))}detach(e){let r=this._adjustIndex(e,-1),n=Oi(this._lContainer,r);return n&&Na(Fl(this._lContainer),r)!=null?new Mr(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function lm(t){return t[Pa]}function Fl(t){return t[Pa]||(t[Pa]=[])}function Ly(t,e){let r,n=e[t.index];return an(n)?r=n:(r=vy(n,e,null,t),e[t.index]=r,bu(e,r)),DS(r,e,t,n),new Fy(r,t,e)}function yS(t,e){let r=t[ae],n=r.createComment(""),o=ft(e,t),i=bf(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 xd=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},_d=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 Vy(t,e,r){t.queries===null&&(t.queries=new Md),t.queries.track(new Td(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 Of(t,e){return t.queries.getByIndex(e)}function OS(t,e){let r=t[R],n=Of(r,e);return n.crossesNgTemplate?Sd(r,t,e,[]):ky(r,t,n,e)}function RS(t){return typeof t=="function"&&t[nl]!==void 0}function Uy(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===en?{}:t===Ke?[]: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:en,outputs:en}:{directive:Ne(o.directive),inputs:dm(o.inputs),outputs:dm(o.outputs)});r.hostDirectives===null?(r.findHostDirectiveDefs=By,r.hostDirectives=n):r.hostDirectives.unshift(...n)};return e.ngInherit=!0,e}function By(t,e,r){if(t.hostDirectives!==null)for(let n of t.hostDirectives){let o=tf(n.directive);US(o.declaredInputs,n.inputs),By(o,e,r),r.set(o,n),e.push(o)}}function dm(t){if(t===void 0||t.length===0)return en;let e={};for(let r=0;rr()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},Nd=class extends Pi{constructor(e){super(),this.moduleType=e}create(e){return new Ad(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:Do,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 Pf(t,e,r=null){return new Wa({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}function $y(t){return Ff(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 Od(t){return t|2}function Eo(t){return(t&131068)>>2}function Ll(t,e){return t&-131069|e<<2}function JS(t){return(t&1)===1}function Rd(t){return t|1}function XS(t,e,r,n,o,i){let s=i?e.classBindings:e.styleBindings,a=Sr(s),u=Eo(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]=Ll(t[f+1],n)),t[a+1]=QS(t[a+1],n)}else t[n+1]=Ca(a,0),a!==0&&(t[a+1]=Ll(t[a+1],n)),a=n;else t[n+1]=Ca(u,0),a===0?a=n:t[u+1]=Ll(t[u+1],n),u=n;c&&(t[n+1]=Od(t[n+1])),fm(t,l,n,!0),fm(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]=Rd(r[n+1]))}function fm(t,e,r,n){let o=t[r+1],i=e===null,s=n?Sr(o):Eo(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?Rd(c):Od(c)),s=n?Sr(c):Eo(c)}a&&(t[r+1]=n?Od(o):Rd(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(Je(n,o,e)){let i=ce(),s=Ui();wu(i,s,n,t,e,n[ae],r,!1)}return sA}function Pd(t,e,r,n,o){let i=e.inputs,s=o?"class":"style";Tf(t,r,i[s],s,n)}function Iu(t,e){return aA(t,e,null,!0),Iu}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&&Je(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&&Je(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=$l(u,r||"")),Pd(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=kl(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=kl(o,t,e,r,n),i===null){let u=cA(t,e,n);u!==void 0&&Array.isArray(u)&&(u=kl(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(Eo(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?Ke:void 0);let h=d?Ml(f,n):l===n?f:void 0;if(c&&!Za(h)&&(h=Ml(u,n)),Za(h)&&(a=h,s))return a;let p=t[o+1];o=s?Sr(p):Eo(p)}if(e!==null){let u=i?e.residualClasses:e.residualStyles;u!=null&&(a=Ml(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=kf(n,t,e,r);Zy(ru,qy,o,!0)}function u5(){return M()[Qe][Oe]}var Fd=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 jl(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=jl(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=jl(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??=gm(t,i,s,r),Ld(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;)pm(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=jl(i,l,i,d,r);if(f!==0)f<0&&t.updateValue(i,d),i++,c=u.next();else{n??=new Ka,o??=gm(t,i,s,r);let h=r(i,d);if(Ld(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;)pm(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 Ld(t,e,r,n){return e!==void 0&&e.has(n)?(t.attach(r,e.get(n)),e.delete(n),!0):!1}function pm(t,e,r,n,o){if(Ld(t,e,n,r(n,o)))t.updateValue(n,o);else{let i=t.create(n,o);t.attach(n,i)}}function gm(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(Je(r,n,t)){let a=V(null);try{if(i!==void 0&&Ey(i,s),t!==-1){let u=Ee+t,c=Ya(r,u),l=Ud(r[R],u),d=yo(c,l.tView.ssrId),f=$i(r,l,e,{dehydratedView:d});Hi(c,f,s,vo(l,d))}}finally{V(a)}}else if(i!==void 0){let a=Cy(i,s);a!==void 0&&(a[Oe]=e)}}var kd=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 jd=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[Qe][Oe]):s,A=new jd(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 Vd=class extends Fd{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[po];this.needsIndexUpdate||=e!==this.length,Hi(this.lContainer,r,e,vo(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,vA(this.lContainer,e)}create(e,r){let n=yo(this.lContainer,this.templateTNode.tView.ssrId),o=$i(this.hostLView,this.templateTNode,new kd(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),ey(n,o,V_()));function bA(t,e,r,n,o){let i=e.consts,s=Vn(i,n),a=Mo(e,t,8,"ng-container",s);s!==null&&Ha(a,s,!0);let u=Vn(i,o);return Mf(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)&&(If(o,n,s),Ef(o,s,n)),r!=null&&xf(n,s),tD}function nD(){let t=Pe(),e=ce();return af()?uf():(t=t.parent,Ar(t,!1)),e.firstCreatePass&&(hu(e,t),rf(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(Je(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=mm(e);if(r)return r;let n=e.split("-")[0];if(r=mm(n),r)return r;if(n==="en")return _A;throw new C(701,!1)}function mm(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&&wy(t),l=e[Oe],d=Dy(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=ym(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=ym(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;Af(s,5);let a=vm(e,r,n,i),u=o.__ngNextListenerFn__;for(;u;)a=vm(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?Mo(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=kf(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){Uy(e)&&(e=e());let n=M(),o=Nr();if(Je(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=Uy(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);Bd(r,n.data,n.blueprint,o,!0),Bd(e,n.data,n.blueprint,o,!1)}}function Bd(t,e,r,n,o){if(t=Ne(t),Array.isArray(t))for(let i=0;i>20;if(ho(t)||!t.multi){let h=new xr(c,o,w),p=Ul(u,e,o?l:l+f,d);p===-1?(td(Va(a,s),i,u),Vl(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=Ul(u,e,l+f,d),p=Ul(u,e,l,l+f),g=h>=0&&r[h],m=p>=0&&r[p];if(o&&!m||!o&&!g){td(Va(a,s),i,u);let v=WA(o?GA:zA,r.length,o,n,c);!o&&m&&(r[p].providerFactory=v),Vl(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);Vl(i,t,h>-1?h:p,v)}!o&&n&&m&&r[p].componentProviders++}}}function Vl(t,e,r,n){let o=ho(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 Ul(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=Gm(!1,n.type),i=o.length>0?Pf([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(Ye))});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=un()+t,o=M();return o[n]===Me?To(o,n,r?e.call(r):e()):Hy(o,n)}function E5(t,e,r,n){return fD(M(),un(),t,e,r,n)}function I5(t,e,r,n,o){return hD(M(),un(),t,e,r,n,o)}function x5(t,e,r,n,o,i){return ZA(M(),un(),t,e,r,n,o,i)}function _5(t,e,r,n,o,i,s){return pD(M(),un(),t,e,r,n,o,i,s)}function M5(t,e,r,n,o,i,s,a,u){let c=un()+t,l=M(),d=Lf(l,c,r,n,o,i);return Co(l,c+4,s,a)||d?To(l,c+6,u?e.call(u,r,n,o,i,s,a):e(r,n,o,i,s,a)):Hy(l,c+6)}function xu(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 Je(t,s,o)?To(t,s+1,i?n.call(i,o):n(o)):xu(t,s+1)}function hD(t,e,r,n,o,i,s){let a=e+r;return Co(t,a,o,i)?To(t,a+2,s?n.call(s,o,i):n(o,i)):xu(t,a+2)}function ZA(t,e,r,n,o,i,s,a){let u=e+r;return zy(t,u,o,i,s)?To(t,u+3,a?n.call(a,o,i,s):n(o,i,s)):xu(t,u+3)}function pD(t,e,r,n,o,i,s,a,u){let c=e+r;return Lf(t,c,o,i,s,a)?To(t,c+4,u?n.call(u,o,i,s,a):n(o,i,s,a)):xu(t,c+4)}function T5(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=qe(w);try{let u=ja(!1),c=i();return ja(u),FA(r,M(),o,c),c}finally{qe(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 S5(t,e,r){let n=t+Ee,o=M(),i=cu(o,n);return Vf(o,n)?fD(o,un(),e,i.transform,r,i):i.transform(r)}function A5(t,e,r,n){let o=t+Ee,i=M(),s=cu(i,o);return Vf(i,o)?hD(i,un(),e,s.transform,r,n,s):s.transform(r,n)}function N5(t,e,r,n,o,i){let s=t+Ee,a=M(),u=cu(a,s);return Vf(a,s)?pD(a,un(),e,u.transform,r,n,o,i,u):u.transform(r,n,o,i)}function Vf(t,e){return t[R].data[e].pure}function O5(t,e){return Eu(t,e)}var _u=(()=>{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 Uf(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(Uf(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})(),Mu=new E("");function YA(){Jp(()=>{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 Rr=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=y(Nv),this.afterRenderEffectManager=y(Py),this.zonelessEnabled=y(Ay),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(Ye)}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&&Bm(n),p=!1;throw new C(405,p)}let a;i?a=n:a=this._injector.get(Do).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let u=QA(a)?void 0:this._injector.get(Bn),c=o||a.selector,l=a.create(nn.NULL,[],c,u),d=l.location.nativeElement,f=l.injector.get(gD,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Bl(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(wo,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;Bl(this._views,o),o.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let o=this._injector.get(Mu,[]);[...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),()=>Bl(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 Bl(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function eN(t,e,r,n){if(!r&&!Ni(t))return;_y(t,e,r&&!n?0:1)}var Hd=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},Bf=(()=>{let e=class e{compileModuleSync(n){return new Nd(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let o=this.compileModuleSync(n),i=$m(n),s=Xv(i.declarations).reduce((a,u)=>{let c=kn(u);return c&&a.push(new bo(c)),a},[]);return new Hd(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(Rr)}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:lo,multi:!0,useFactory:()=>{let r=y(tN,{optional:!0});return()=>r.initialize()}},{provide:lo,multi:!0,useFactory:()=>{let r=y(iN);return()=>{r.initialize()}}},{provide:Nv,useFactory:rN},e===!0?{provide:Ny,useValue:!0}:[]]}function rN(){let t=y(pe),e=y(rn);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(Rr),this.taskService=y(Hn),this.ngZone=y(pe),this.zonelessEnabled=y(Ay),this.disableScheduling=y(Ny,{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 Cd||!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?im:Oy;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,im(()=>{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 nn.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(mf,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[Qe];return new Mr(n,e)}return null}var zd=class{constructor(){}supports(e){return $y(e)}create(e){return new Gd(e)}},hN=(t,e)=>e,Gd=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 Wd(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}},Wd=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}},qd=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 qd,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 Dm(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 Yd(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))}},Yd=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 wm(){return new $f([new zd])}var $f=(()=>{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||wm()),deps:[[e,new Jd,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:wm});let t=e;return t})();function bm(){return new Hf([new Zd])}var Hf=(()=>{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||bm()),deps:[[e,new Jd,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:bm});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(rn,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(Rr);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 zf(t){let e=V(null);try{return t()}finally{V(e)}}function R5(t,e){let r=kn(t),n=e.elementInjector||iu();return new bo(r).create(n,e.projectableNodes,e.hostElement,e.environmentInjector)}var MD=null;function mn(){return MD}function TD(t){MD??=t}var Lu=class{};var Ue=new E(""),ih=(()=>{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 ih{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 sh(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 sh(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(ih),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=sh(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(ih),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=sh,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 He=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}(He||{}),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 Tu(t,e){let r=ot(t);return pt(r[ue.DateFormat],e)}function Su(t,e){let r=ot(t);return pt(r[ue.TimeFormat],e)}function Au(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"?Wf(n):[Wf(n[0]),Wf(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 Wf(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))?)?$/,Nu={},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 ku(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(Nu[r]??={},Nu[r][e])return Nu[r][e];let n="";switch(e){case"shortDate":n=Tu(t,it.Short);break;case"mediumDate":n=Tu(t,it.Medium);break;case"longDate":n=Tu(t,it.Long);break;case"fullDate":n=Tu(t,it.Full);break;case"shortTime":n=Su(t,it.Short);break;case"mediumTime":n=Su(t,it.Medium);break;case"longTime":n=Su(t,it.Long);break;case"fullTime":n=Su(t,it.Full);break;case"short":let o=fn(t,"shortTime"),i=fn(t,"shortDate");n=Ou(Au(t,it.Short),[o,i]);break;case"medium":let s=fn(t,"mediumTime"),a=fn(t,"mediumDate");n=Ou(Au(t,it.Medium),[s,a]);break;case"long":let u=fn(t,"longTime"),c=fn(t,"longDate");n=Ou(Au(t,it.Long),[u,c]);break;case"full":let l=fn(t,"fullTime"),d=fn(t,"fullDate");n=Ou(Au(t,it.Full),[l,d]);break}return n&&(Nu[r][e]=n),n}function Ou(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=He.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,Fu=4;function PN(t){let e=ku(t,RN,1).getDay();return ku(t,0,1+(e<=Fu?Fu:Fu+7)-e)}function PD(t){let e=t.getDay(),r=e===0?-3:Fu-e;return ku(t.getFullYear(),t.getMonth(),t.getDate()+r)}function qf(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 Pu(t,e=!1){return function(r,n){let i=PD(r).getFullYear();return Ot(i,t,pn(n,st.MinusSign),e)}}var Zf={};function FN(t){if(Zf[t])return Zf[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=Pu(1);break;case"YY":e=Pu(2,!0);break;case"YYY":e=Pu(3);break;case"YYYY":e=Pu(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,He.Standalone);break;case"LLLL":e=ne(W.Months,X.Wide,He.Standalone);break;case"LLLLL":e=ne(W.Months,X.Narrow,He.Standalone);break;case"w":e=qf(1);break;case"ww":e=qf(2);break;case"W":e=qf(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,He.Standalone);break;case"cccc":e=ne(W.Days,X.Wide,He.Standalone);break;case"ccccc":e=ne(W.Days,X.Narrow,He.Standalone);break;case"cccccc":e=ne(W.Days,X.Short,He.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,He.Standalone,!0);break;case"bbbb":e=ne(W.DayPeriods,X.Wide,He.Standalone,!0);break;case"bbbbb":e=ne(W.DayPeriods,X.Narrow,He.Standalone,!0);break;case"B":case"BB":case"BBB":e=ne(W.DayPeriods,X.Abbreviated,He.Format,!0);break;case"BBBB":e=ne(W.DayPeriods,X.Wide,He.Format,!0);break;case"BBBBB":e=ne(W.DayPeriods,X.Narrow,He.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=Ru(gn.Short);break;case"ZZZZZ":e=Ru(gn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Ru(gn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Ru(gn.Long);break;default:return null}return Zf[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 ku(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,ju=".",Wi="0",BN=";",$N=",",Kf="#";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=Yf(z)),U!=null&&(d=Yf(U)),me!=null?f=Yf(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(ju)!==-1?o.split(ju):[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(Kf));for(let l=0;l-1&&(e=e.replace(ju,"")),(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 Yf(t){let e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function J5(t,e,r){return rD(t,e,r)}function Vu(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 Qf=/\s+/,ID=[],X5=(()=>{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(Qf):ID}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Qf):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(Qf).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 Jf=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}},e9=(()=>{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 Jf(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($f))},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 t9=(()=>{let e=class e{constructor(n,o){this._viewContainer=n,this._context=new Xf,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})(),Xf=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 n9=(()=>{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(Hf),w(rt))},e.\u0275dir=H({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let t=e;return t})(),r9=(()=>{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 ah(t,e){return new C(2100,!1)}var eh=class{createSubscription(e,r){return zf(()=>e.subscribe({next:r,error:n=>{throw n}}))}dispose(e){zf(()=>e.unsubscribe())}},th=class{createSubscription(e,r){return e.then(r,n=>{throw n})}dispose(e){}},KN=new th,YN=new eh,o9=(()=>{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(Uf(n))return YN;throw ah(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=Io({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var QN="mediumDate",JN=new E(""),XN=new E(""),i9=(()=>{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 ah(e,a.message)}}};e.\u0275fac=function(o){return new(o||e)(w(Gi,16),w(JN,24),w(XN,24))},e.\u0275pipe=Io({name:"date",type:e,pure:!0,standalone:!0});let t=e;return t})();var s9=(()=>{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 ah(e,s.message)}}};e.\u0275fac=function(o){return new(o||e)(w(Gi,16))},e.\u0275pipe=Io({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})(),uh="browser",rO="server";function oO(t){return t===uh}function Uu(t){return t===rO}var iO=(()=>{let e=class e{};e.\u0275prov=b({token:e,providedIn:"root",factory:()=>oO(y(cn))?new nh(y(Ue),window):new rh});let t=e;return t})(),nh=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 rh=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},So=class{};var Ki=class{},$u=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 lh=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 Bu(t){return`${t}`}var Kn=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new lh,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(Bu):[Bu(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(Bu(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(Bu(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}},dh=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 dh,!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}},Hu=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 ch(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,ch(i,o))}post(n,o,i={}){return this.request("POST",n,ch(i,o))}put(n,o,i={}){return this.request("PUT",n,ch(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(fh,{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(hh,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 Hu({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 qr=()=>i.next({type:Yn.DownloadProgress,total:p?+p:void 0,loaded:v,partialText:z});U?U.run(qr):qr()}}}));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})(),fh=class{};function hh(){}function vO(t){t.then(hh,hh)}function yO(t,e){return e(t)}function DO(t,e,r){return(n,o)=>Tt(r,()=>e(n,i=>t(i,o)))}var ph=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(ph),...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($u),x(Ye))},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 Hu({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}),zu=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=Vu(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(zu).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 w9(...t){let e=[hO,zD,HD,{provide:Ki,useExisting:HD},{provide:$u,useFactory:()=>y(mO,{optional:!0})??y(zD)},{provide:ph,useValue:SO,multi:!0},{provide:WD,useValue:!0},{provide:zu,useClass:TO}];for(let r of t)e.push(...r.\u0275providers);return ji(e)}function b9(t){return AO(qD.Interceptors,t.map(e=>({provide:ph,useValue:e,multi:!0})))}var vh=class extends Lu{constructor(){super(...arguments),this.supportsDOMEvents=!0}},yh=class t extends vh{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 Vu(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})(),Dh=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(Dh),x(pe))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),Gu=class{constructor(e){this._doc=e}},gh="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=Uu(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[${gh}="${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(gh),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(gh,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(gf),x(vf,8),x(cn))},e.\u0275prov=b({token:e,factory:e.\u0275fac});let t=e;return t})(),mh={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"},bh=/%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(bh,t)}function VO(t){return PO.replace(bh,t)}function ew(t,e){return e.map(r=>r.replace(bh,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=Uu(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 Wu?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 Wu(c,l,o,this.appId,d,a,u,f);break;case Bt.ShadowDom:return new wh(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(gf),x(kO),x(Ue),x(cn),x(pe),x(vf))},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(mh[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=mh[o];i?e.setAttributeNS(i,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let o=mh[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 wh=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)}},Wu=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 Gu{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 Gu{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 B9(t,e){return DD(D({rootComponent:t},zO(e)))}function zO(t){return{appProviders:[...KO,...t?.providers??[]],platformProviders:ZO}}function GO(){yh.makeCurrent()}function WO(){return new rn}function qO(){return jv(document),document}var ZO=[{provide:cn,useValue:uh},{provide:mf,useValue:GO,multi:!0},{provide:Ue,useFactory:qO,deps:[]}];var KO=[{provide:ou,useValue:"root"},{provide:rn,useFactory:WO,deps:[]},{provide:Dh,useClass:UO,multi:!0,deps:[Ue,pe,cn]},{provide:Dh,useClass:HO,multi:!0,deps:[Ue]},ZD,JD,QD,{provide:wo,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 Gt.NONE:return o;case Gt.HTML:return zn(o,"HTML")?At(o):Yv(this._doc,String(o)).toString();case Gt.STYLE:return zn(o,"Style")?At(o):o;case Gt.SCRIPT:if(zn(o,"Script"))return At(o);throw new C(5200,!1);case Gt.URL:return zn(o,"URL")?At(o):gu(String(o));case Gt.RESOURCE_URL:if(zn(o,"ResourceURL"))return At(o);throw new C(5201,!1);default:throw new C(5202,!1)}}bypassSecurityTrustHtml(n){return Uv(n)}bypassSecurityTrustStyle(n){return Bv(n)}bypassSecurityTrustScript(n){return $v(n)}bypassSecurityTrustUrl(n){return Hv(n)}bypassSecurityTrustResourceUrl(n){return zv(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"),_h=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 _h(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 Wt(t,e)}function hw(t,e,r){if(!Lr(t.segments,e.segments)||!Ku(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!(!Lr(o,r)||e.hasChildren()||!Ku(o,r,n))}else if(t.segments.length===r.length){if(!Lr(t.segments,r)||!Ku(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!Lr(t.segments,o)||!Ku(t.segments,o,n)||!t.children[L]?!1:gw(t.children[L],e,i,n)}}function Ku(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 Yu(this)}},Fr=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 Lr(t,e)&&t.every((r,n)=>Wt(r.parameters,e[n].parameters))}function Lr(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 Xh=(()=>{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 Sh(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 Yu(t){return t.segments.map(e=>vw(e)).join("/")}function ts(t,e){if(!t.hasChildren())return Yu(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?`${Yu(t)}/${r[0]}`:`${Yu(t)}/(${r.join("//")})`}}function mw(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function qu(t){return mw(t).replace(/%3B/gi,";")}function aR(t){return encodeURI(t)}function Th(t){return mw(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Qu(t){return decodeURIComponent(t)}function rw(t){return Qu(t.replace(/\+/g,"%20"))}function vw(t){return`${Th(t.path)}${uR(t.parameters)}`}function uR(t){return Object.entries(t).map(([e,r])=>`;${Th(e)}=${Th(r)}`).join("")}function cR(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(o=>`${qu(r)}=${qu(o)}`).join("&"):`${qu(r)}=${qu(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var lR=/^[^\/()?;#]+/;function Ch(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 Sh=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=Ch(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(e),new Fr(Qu(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=Ch(this.remaining);o&&(n=o,this.capture(n))}e[Qu(r)]=Qu(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=Ch(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 Eh(o,o,o,r,n);let i=DR(e);if(i.toRoot())return Eh(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 Eh(o,s.segmentGroup,a,r,n)}function Ju(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function cs(t){return typeof t=="object"&&t!=null&&t.outlets}function Eh(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 Xu=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&Ju(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 Xu(!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 Xu(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=Ju(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 Ah(t,e,r){let n=t.segments.slice(0,e),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=Ah(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&&Wt(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||{}),Nh=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Nh||{}),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}')`}},kr=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})`}},ec=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})`}},Oh=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})`}},Rh=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})`}},Ph=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})`}},Fh=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})`}},Lh=class{constructor(e){this.route=e,this.type=Le.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},kh=class{constructor(e){this.route=e,this.type=Le.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},jh=class{constructor(e){this.snapshot=e,this.type=Le.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Vh=class{constructor(e){this.snapshot=e,this.type=Le.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Uh=class{constructor(e){this.snapshot=e,this.type=Le.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Bh=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 $h=class{constructor(e){this.injector=e,this.outlet=null,this.route=null,this.children=new ac(this.injector),this.attachRef=null}},ac=(()=>{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 $h(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(Ye))},e.\u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),tc=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=Hh(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=Hh(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=zh(e,this._root);return r.length<2?[]:r[r.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return zh(e,this._root).map(r=>r.value)}};function Hh(t,e){if(t===e.value)return e;for(let r of e.children){let n=Hh(t,r);if(n)return n}return null}function zh(t,e){if(t===e.value)return[e];for(let r of e.children){let n=zh(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 nc=class extends tc{constructor(e,r){super(e),this.snapshot=r,ep(this,e)}toString(){return this.snapshot.toString()}};function Iw(t){let e=xR(t),r=new Se([new Fr("",{})]),n=new Se({}),o=new Se({}),i=new Se({}),s=new Se(""),a=new jr(r,n,i,s,o,L,t,e.root);return a.snapshot=e.root,new nc(new at(a,[]),e)}function xR(t){let e={},r={},n={},o="",i=new Ro([],e,n,o,r,L,t,null,{});return new oc("",new at(i,[]))}var jr=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 rc(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}')`}},oc=class extends tc{constructor(e,r){super(r),this.url=e,ep(this,r)}toString(){return xw(this._root)}};function ep(t,e){e.value._routerState=t,e.children.forEach(r=>ep(t,r))}function xw(t){let e=t.children.length>0?` { ${t.children.map(xw).join(", ")} } `:"";return`${t.value}${e}`}function Ih(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,Wt(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),Wt(e.params,r.params)||t.paramsSubject.next(r.params),eR(e.url,r.url)||t.urlSubject.next(r.url),Wt(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Gh(t,e){let r=Wt(t.params,e.params)&&oR(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||Gh(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(ac),this.location=y(dn),this.changeDetector=y(Nt),this.inputBinder=y(tp,{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 Wh(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})(),Wh=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===jr?this.route:e===ac?this.childContexts:this.parent.get(e,r)}},tp=new E("");function MR(t,e,r){let n=hs(t,e._root,r?r._root:void 0);return new nc(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 jr(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 ic(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=Vm({type:e,selectors:[["ng-component"]],standalone:!0,features:[dD],decls:1,vars:0,template:function(o,i){o&1&&jf(0,"router-outlet")},dependencies:[_R],encapsulation:2});let t=e;return t})();function OR(t,e){return t.providers&&!t._injector&&(t._injector=Pf(t.providers,e,`Route: ${t.path}`)),t._injector??e}function np(t){let e=t.children&&t.children.map(np),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 qh(e,o.targetRouterState,o.currentRouterState,r,n).activate(t),o)),qh=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),Ih(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 Bh(i.value.snapshot))}),e.children.length&&this.forwardEvent(new Vh(e.value.snapshot))}activateRoutes(e,r,n){let o=e.value,i=r?r.value:null;if(Ih(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),Ih(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)}},sc=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"&&!xm(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 sc(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 sc(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!Lr(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Lr(t.url,e.url)||!Wt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Gh(t,e)||!Wt(t.queryParams,e.queryParams);case"paramsChange":default:return!Gh(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 Qt||t?.name==="EmptyError"}var Zu=Symbol("INITIAL_VALUE");function ko(){return be(t=>da(t.map(e=>e.pipe(xe(1),ga(Zu)))).pipe(N(e=>{for(let r of e)if(r!==!0){if(r===Zu)return Zu;if(r===!1||GR(r))return r}return!0}),ke(e=>e!==Zu),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 Uh(t)),I(!0)}function YR(t,e){return t!==null&&e&&e(new jh(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=>Jt(()=>{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=>Jt(()=>{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 gl(Ce(e=>{if(typeof e!="boolean")throw ic(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 Zh=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}},Kh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function oP(t,e,r,n,o){let i=rp(t,e,r);return i.matched?(n=OR(e,n),tP(n,e,r,o).pipe(N(s=>s===!0?i:D({},Kh)))):I(i)}function rp(t,e,r){if(e.path==="**")return iP(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?D({},Kh):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let o=(e.matcher||XO)(r,t,e);if(!o)return D({},Kh);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(uc(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=>uc(t,e,n)&&Rt(n)!==L)}function cP(t,e,r){return r.some(n=>uc(t,e,n))}function uc(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||!uc(e,r,t))?!1:rp(e,t,r).matched}function dP(t,e,r){return e.length===0&&!t.children[r]}var Yh=class{};function fP(t,e,r,n,o,i,s="emptyOnly"){return new Qh(t,e,r,n,o,s,i).recognize()}var hP=31,Qh=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 Zh(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 oc("",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),Il(),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 Yh):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}=rp(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=rc(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=rc(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=rc(u,u.parent,t).resolve,I(void 0))),Ce(()=>a++),oo(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=rc(t,t.parent,r).resolve,null)))}function DP(t,e,r,n){let o=Mh(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 ic(new as,a);i[s]=a}))),oo(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 xh(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})(),op=new E("",{providedIn:"root",factory:()=>({})}),ip=new E(""),CP=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=y(Bf)}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 Xr(o,()=>new se).pipe(Jr());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 Xr(s,()=>new se).pipe(Jr());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(ip,[],{optional:!0,self:!0}).flat()),{routes:s.map(np),injector:i}}))}function IP(t){return t&&typeof t=="object"&&"default"in t}function Fw(t){return IP(t)?t.default:t}var sp=(()=>{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(Ye),this.urlSerializer=y(Xh),this.rootContexts=y(ac),this.location=y(qi),this.inputBindingEnabled=y(tp,{optional:!0})!==null,this.titleStrategy=y(Pw),this.options=y(op,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=y(sp),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 Lh(i)),o=i=>this.events.next(new kh(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 kr(c.id,this.urlSerializer.serialize(c.rawUrl),f,Nh.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 ec(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 kr(c.id,this.urlSerializer.serialize(c.extractedUrl),f,Nh.IgnoredByUrlHandlingStrategy)),c.resolve(!1),Ae}}),Ce(c=>{let l=new Oh(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 ic(this.urlSerializer,c.guardsResult);let l=new Rh(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)),xh(c=>{if(c.guards.canActivateChecks.length)return I(c).pipe(Ce(l=>{let d=new Ph(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 Fh(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),xh(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))}),xh(()=>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}=ic(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})(),Jh=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 Jh{};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(Xh),this.options=y(op,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=y(sp),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 kr)this.rawUrlTree=o.initialUrl;else if(n instanceof ec){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 kr),N(r=>r instanceof Dn||r instanceof kr?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"},cc=(()=>{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(_u),this.stateManager=y(Lw),this.options=y(op,{optional:!0})||{},this.pendingTasks=y(Hn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=y(TP),this.urlSerializer=y(Xh),this.location=y(qi),this.urlHandlingStrategy=y(sp),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(ip,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!y(tp,{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(np),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:Qv(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(cc),w(jr),pf("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&&Or("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:[Rf,nt]});let t=e;return t})(),u7=(()=>{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(cc),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 c7(t,...e){return ji([{provide:ip,multi:!0,useValue:t},[],{provide:jr,useFactory:BP,deps:[cc]},{provide:Mu,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(nn);return e=>{let r=t.get(Rr);if(e!==r.components[0])return;let n=t.get(cc),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 l7(){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 ap(t)+`T${ws(t.getHours())}:${ws(t.getMinutes())}:${ws(t.getSeconds())}`}function ap(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 up(t){return function(e,r){return t.map(e,function(){return r})}}function zw(t){var e=up(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 dc=$w,bs=Hw,Ww=lc(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 cp="Either";var QP=function(t){return function(e){return he(e)?e:bs(t(e.right))}},Zw={URI:cp,map:qw},O7=lc(2,up(Zw)),R7=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:cp,map:qw,ap:YP,chain:Ww};var tF={URI:cp,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,fc=rF;var P7=lc(2,Gw(eF));var F7={fromEither:tF.fromEither};var oF=function(t){return function(e){return he(e)?t(e.left):e}},L7=oF;var lp=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?Br(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?Br(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?Br(l):Y(c)},hc(n)?Z:function(i){for(var s=Vo({},i),a=0;a0?Br(l):Y(c)},hc(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?Br(s):Y(Yw(n,i))},t.length===0?Z:function(n){return Yw(n,t.map(function(o){return o.encode(n)}))},t)}var q7=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 Z7(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=ze(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=hp(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 K7=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 Y7=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 Q7=new WF;function fb(t,e,r){return r===void 0&&(r="(".concat(t.name," | ").concat(pp(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 J7=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 X7=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 eZ=new ZF;var tZ=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=gp("JsonArray",function(){return db(mp)}),YF=gp("JsonRecord",function(){return Bo(ee,mp)}),mp=Is([ab,ge,ee,Es,KF,YF],"Json"),hb=new B("JsonFromString",mp.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 aZ(t){return Is([Es,Cs,t])}var uZ=mt({Id:ge,HRef:_s(ee)});var cZ=mt({Id:_s(ge),HRef:_s(ee)});var lZ=ee.pipe(hb,"JsonFromUnknown"),dZ=new B("LocalDateTimeFromString",t=>t instanceof Date,(t,e)=>Xn(ee.validate(t,e),lp(r=>{let n=kw(r);return isNaN(n.getTime())?de(t,e):Y(n)})),t=>Vw(t)),fZ=new B("LocalDateTimeFromString",t=>t instanceof Date,(t,e)=>Xn(ee.validate(t,e),lp(r=>{let n=jw(r);return isNaN(n.getTime())?de(t,e):Y(n)})),t=>ap(t));function pZ(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||{}),$r=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:ze(ee),types:ze(ee)}),e1=mt({substitutionsAdminLink:ee}),wZ=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:ze($r),studentConfirmationReports:ze($r),evaluateAbsencesReports:ze($r),myAbsencesReports:ze($r),testsByCourseReports:ze($r),testsBySubscriptionStudentReports:ze($r),testsBySubscriptionTeacherReports:ze($r),subscriptionDetailGroupId:ge,headerRoleRestriction:Bo(ee,ee),notificationTypes:JF,notificationTypesAssignments:ze(XF),eventlist:Bo(ee,ee),dashboard:e1,preventStudentAbsenceAfterLessonStart:ze(ee)});var bZ=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:[$e([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:[$e([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 gc(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 gc;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 gc(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 Cp(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 Ep(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 vp(t){return t?Array.isArray(t)?t:[t]:[]}function mc(t,e){return Array.isArray(t)?t.includes(e):t===e}function yb(t,e){let r=vp(e);return vp(t).forEach(o=>{mc(r,o)||r.push(o)}),r}function Db(t,e){return vp(e).filter(r=>!mc(t,r))}var vc=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=Cp(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Ep(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 vc{get formDirective(){return null}get path(){return null}},qt=class extends vc{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},yc=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"},jZ=$(D({},h1),{"[class.ng-submitted]":"isSubmitted"}),VZ=(()=>{let e=class e extends yc{constructor(n){super(n)}};e.\u0275fac=function(o){return new(o||e)(w(qt,2))},e.\u0275dir=H({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(o,i){o&2&&Iu("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})(),UZ=(()=>{let e=class e extends yc{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&&Iu("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",pc="INVALID",$o="PENDING",Ts="DISABLED",nr=class{},Dc=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}},yp=class extends nr{constructor(e){super(),this.source=e}},Dp=class extends nr{constructor(e){super(),this.source=e}};function Ip(t){return(Ec(t)?t.validators:t)||null}function p1(t){return Array.isArray(t)?Cp(t):t||null}function xp(t,e){return(Ec(e)?e.asyncValidators:t)||null}function g1(t){return Array.isArray(t)?Ep(t):t||null}function Ec(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===pc}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 mc(this._rawValidators,e)}hasAsyncValidator(e){return mc(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 Dc(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 Dc(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?pc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus($o)?$o:this._anyControlsHaveStatus(pc)?pc: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){Ec(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(Ip(r),xp(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 wp=class extends Wo{};var Hr=new E("CallSetDisabledState",{providedIn:"root",factory:()=>Ps}),Ps="always";function $b(t,e){return[...e.path,t]}function Os(t,e,r=Ps){_p(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 wc(t,e,r=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Cc(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function bc(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 _p(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();bc(e._rawValidators,o),bc(e._rawAsyncValidators,o)}function Cc(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 bc(e._rawValidators,n),bc(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,_p(t,e)}function w1(t,e){return Cc(t,e)}function Mp(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 Tp(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({},Cp(n),Ep(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(Hr,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:[$e([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(Ip(r),xp(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}),Ec(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}},$Z=zo,x1=t=>t instanceof zo;var _1={provide:qt,useExisting:Re(()=>M1)},Cb=Promise.resolve(),M1=(()=>{let e=class e extends qt{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=Tp(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),Mp(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(Hr,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:[$e([_1]),Ie,nt]});let t=e;return t})(),HZ=(()=>{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:[$e([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(Hr,{optional:!0})??Ps}ngOnInit(){this._control=this._injector.get(qt),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(nn))},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:[$e([A1]),Ie]});let t=e;return t})();var Sp=new E(""),R1={provide:qt,useExisting:Re(()=>P1)},P1=(()=>{let e=class e extends qt{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=Tp(this,i)}ngOnChanges(n){if(this._isControlChanged(n)){let o=n.form.previousValue;o&&wc(o,this,!1),Os(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Mp(n,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&wc(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(Sp,8),w(Hr,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:[$e([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&&(Cc(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){wc(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 yp(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 Dp(this.form))}_updateDomValue(){this.directives.forEach(n=>{let o=n.control,i=this.form.get(n.path);o!==i&&(wc(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(){_p(this.form,this),this._oldForm&&Cc(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(o){return new(o||e)(w(rr,10),w(Rs,10),w(Hr,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:[$e([F1]),Ie,nt]});let t=e;return t})();var k1={provide:qt,useExisting:Re(()=>j1)},j1=(()=>{let e=class e extends qt{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=Tp(this,s)}ngOnChanges(n){this._added||this._setUpControl(),Mp(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(Sp,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:[$e([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:[$e([V1]),Ie]});let t=e;return t})(),zZ=(()=>{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:[$e([B1]),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(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 Ap=(()=>{let e=class e{constructor(){this._validator=gc}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):gc,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 Ap{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&&Or("max",i._enabled?i.max:null)},inputs:{max:"max"},features:[$e([H1]),Ie]});let t=e;return t})(),G1={provide:rr,useExisting:Re(()=>W1),multi:!0},W1=(()=>{let e=class e extends Ap{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&&Or("min",i._enabled?i.min:null)},inputs:{min:"min"},features:[$e([G1]),Ie]});let t=e;return t})(),q1={provide:rr,useExisting:Re(()=>Z1),multi:!0};var Z1=(()=>{let e=class e extends Ap{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&&Or("required",i._enabled?"":null)},inputs:{required:"required"},features:[$e([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})(),bp=class extends Go{constructor(e,r,n){super(Ip(r),xp(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 wp(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 bp(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 WZ=(()=>{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 qZ=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Hr,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})(),ZZ=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:Sp,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Hr,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 xc=xL;var _L=ye["__core-js_shared__"],_c=_L;var sC=function(){var t=/[^.]+$/.exec(_c&&_c.keys&&_c.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=xc(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=Sc,u=new Tc}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)&&!xc(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 Uc=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+"]",Lp="["+SV+"]",kp="\\ud83c[\\udffb-\\udfff]",OV="(?:"+Lp+"|"+kp+")",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+Lp+"?",Lp,hE,pE,NV].join("|")+")",kV=RegExp(kp+"(?="+kp+")|"+LV+FV,"g");function jV(t){return t.match(kV)||[]}var vE=jV;function VV(t){return Uc(t)?vE(t):lE(t)}var yE=VV;function UV(t){return function(e){e=yt(e);var r=Uc(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 Tc: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:fc(P$,F$)};var Up=class extends Error{constructor(){super(...arguments),this.name="DecodeError"}};function L$(t){return e=>Xn(t.decode(e),fc(r=>Sn(()=>new Up(ux.report(dc(r)).join(` -`))),r=>I(r)))}function Uoe(t){return L$(ze(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 Jc(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{Bp(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})(),Xc=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new G;onLangChange=new G;onDefaultLangChange=new G},$p=new E("USE_STORE"),Hp=new E("USE_DEFAULT_LANG"),zp=new E("DEFAULT_LANGUAGE"),Gp=new E("USE_EXTEND"),Wp=(()=>{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(Jt(()=>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(Jt(()=>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(Xc),x(gi),x(vi),x(mi),x(js),x(Hp),x($p),x(Gp),x(zp))};static \u0275prov=b({token:t,factory:t.\u0275fac})}return t})();var Qoe=(()=>{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(Jc(r,this.lastKey)&&Jc(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(Wp,16),w(Nt,16))};static \u0275pipe=Io({name:"translate",type:t,pure:!1});static \u0275prov=b({token:t,factory:t.\u0275fac})}return t})(),Joe=(()=>{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},Xc,{provide:$p,useValue:r.isolate},{provide:Hp,useValue:r.useDefaultLang},{provide:Gp,useValue:r.extend},{provide:zp,useValue:r.defaultLanguage},Wp]}}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:$p,useValue:r.isolate},{provide:Hp,useValue:r.useDefaultLang},{provide:Gp,useValue:r.extend},{provide:zp,useValue:r.defaultLanguage},Wp]}}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",tie=(()=>{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,Jt as p,Qx as q,Ci as r,Cl as s,Xt 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,Tg as C,On as D,xe as E,d0 as F,Ag as G,p0 as H,Rn as I,pa as J,_l 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 _,Vm as $,Mt as aa,H as ba,Io as ca,s_ as da,Ye as ea,K6 as fa,nt as ga,Y6 as ha,Q6 as ia,J6 as ja,X6 as ka,Fe as la,pf as ma,nn as na,rn as oa,Ov 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,wo as ya,rt as za,zi as Aa,pe as Ba,dn as Ca,Ie as Da,i5 as Ea,Rf as Fa,zS as Ga,Or as Ha,sA as Ia,Iu 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,jf 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,$e 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,Rr as Fb,Gi as Gb,Nt as Hb,Wn as Ib,pN as Jb,R5 as Kb,Ue as Lb,qi as Mb,SN as Nb,zN as Ob,J5 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,nO as Yb,iO as Zb,vn as _b,Kn as $b,jD as ac,dh as bc,Zn as cc,hO as dc,w9 as ec,b9 as fc,ZD as gc,B9 as hc,YO as ic,L as jc,as as kc,ls as lc,Dn as mc,Bh as nc,jr as oc,_R as pc,cc as qc,cw as rc,u7 as sc,c7 as tc,l7 as uc,L7 as vc,de as wc,Y as xc,B as yc,ee as zc,ge as Ac,ab as Bc,$7 as Cc,H7 as Dc,ze as Ec,mt as Fc,G7 as Gc,Is as Hc,W7 as Ic,Z7 as Jc,X7 as Kc,jw as Lc,_s as Mc,aZ as Nc,uZ as Oc,cZ as Pc,lZ as Qc,dZ as Rc,fZ as Sc,pZ as Tc,wZ as Uc,bZ as Vc,bn as Wc,n1 as Xc,_b as Yc,rr as Zc,mb as _c,VZ as $c,UZ as ad,I1 as bd,$Z as cd,M1 as dd,HZ as ed,S1 as fd,O1 as gd,P1 as hd,L1 as id,j1 as jd,qb as kd,zZ as ld,GZ as md,z1 as nd,W1 as od,Z1 as pd,WZ as qd,qZ as rd,ZZ as sd,DL as td,jp as ud,RU as vd,C2 as wd,E$ as xd,x$ as yd,Pk as zd,M$ as Ad,A$ as Bd,L$ as Cd,Uoe as Dd,gi as Ed,Wp as Fd,Qoe as Gd,Joe as Hd,tie as Id}; diff --git a/public/apps/webapp-schulverwaltung/chunk-YHQTYVFP.js b/public/apps/webapp-schulverwaltung/chunk-YHQTYVFP.js new file mode 100644 index 00000000..6d4fc35f --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-YHQTYVFP.js @@ -0,0 +1,2 @@ +import{b as Fe}from"./chunk-NTSKCSYH.js";import{b as Te}from"./chunk-Y4QYVF5K.js";import"./chunk-OFB4XAK2.js";import{b as ke}from"./chunk-KK2SHN2W.js";import{a as _e}from"./chunk-B6WYZ7BT.js";import{Ab as g,Cd as Ce,Ed as Se,Gb as d,H as J,Ha as b,Hb as m,Id as Me,J as B,Jd as P,Kd as G,La as x,Ld as xe,M as L,Ma as f,N as Q,Na as U,Nb as re,P as $,R as I,Ra as C,Ta as te,U as A,Ua as T,Va as k,W as X,Wa as r,X as Z,Xa as s,Ya as y,Yc as pe,Zb as le,Zc as de,_ as V,_c as me,a as D,aa as u,b as R,cb as ie,cd as O,db as F,dd as ue,f as z,g as H,gd as fe,hd as he,l as j,ld as ge,md as ye,n as M,nb as h,ob as S,pb as N,qa as ee,sc as ce,tb as ne,td as ve,ub as oe,ud as E,vb as se,vd as be,w as Y,wa as o,wb as K,xa as v,xb as W,yb as q,zb as ae}from"./chunk-IFJN5CDK.js";var Ne=(()=>{class t{constructor(){this.id=null,this.label=null,this.disabled=!1,this.value=!1,this.valueChange=new ee,this.fallbackId=Se("bkd-switch")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=u({type:t,selectors:[["bkd-switch"]],inputs:{id:"id",label:"label",disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange"},standalone:!0,features:[g],decls:3,vars:5,consts:[["type","checkbox",3,"ngModelChange","disabled","ngModel"]],template:function(i,n){if(i&1&&(r(0,"input",0),ie("ngModelChange",function(l){return n.valueChange.emit(l)}),s(),r(1,"label"),h(2),s()),i&2){let a,l;f("disabled",n.disabled)("ngModel",n.value),x("id",(a=n.id)!==null&&a!==void 0?a:n.fallbackId),o(),x("for",(l=n.id)!==null&&l!==void 0?l:n.fallbackId),o(),S(n.label)}},dependencies:[E,me,O,fe],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 t})();function Re(t,p){if(t&1&&(r(0,"div"),h(1),s()),t&2){let e=p.$implicit;o(),N(" ",e," ")}}function je(t,p){if(t&1&&(r(0,"div",3),T(1,Re,2,1,"div",null,te),s()),t&2){let e=F();o(),k(e.descriptionLines)}}var we=(()=>{class t{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(` +`):[]}writeValue(e){this._value=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}static{this.\u0275fac=function(i){return new(i||t)(v(re))}}static{this.\u0275cmp=u({type:t,selectors:[["bkd-my-settings-notifications-toggle"]],inputs:{id:"id",label:"label",description:"description",disabled:"disabled"},standalone:!0,features:[ae([{provide:de,useExisting:X(()=>t),multi:!0}]),g],decls:5,vars:6,consts:[[1,"d-flex","align-items-center"],[1,"flex-fill"],[3,"valueChange","id","value","disabled"],[1,"form-text"]],template:function(i,n){i&1&&(r(0,"div",0)(1,"label",1),h(2),s(),r(3,"bkd-switch",2),se("valueChange",function(l){return oe(n.value,l)||(n.value=l),l}),s()(),b(4,je,3,0,"div",3)),i&2&&(o(),x("for",n.id),o(),N(" ",n.label," "),o(),f("id",n.id),ne("value",n.value),f("disabled",n.disabled),o(),C(n.description?4:-1))},dependencies:[Ne],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var $e=(()=>{class t{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 Ce(this.settings.notificationTypesAssignments.reduce((e,{roles:i,types:n})=>this.hasAnyRole(i)?[...e,...n]:e,[]))}hasAnyRole(e){return this.currentRoles===null&&(this.currentRoles=Te(this.storage.getPayload()?.roles)),this.currentRoles.some(i=>e.includes(i))}static{this.\u0275fac=function(i){return new(i||t)(V(pe),V(xe))}}static{this.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ie=(t,p)=>p.key;function Ae(t,p){t&1&&(r(0,"div",2),y(1,"bkd-spinner",5),s())}function Ve(t,p){if(t&1&&(y(0,"bkd-my-settings-notifications-toggle",7),d(1,"async"),d(2,"async")),t&2){let e=p.$implicit,i=p.$index;U("mt-4",i>0),f("id","notification-channels-"+e.key)("label",m(1,6,e.label))("description",m(2,8,e.description))("formControlName",e.key)}}function Ue(t,p){if(t&1&&(r(0,"form",3),T(1,Ve,3,10,"bkd-my-settings-notifications-toggle",6,Ie),s()),t&2){let e=F(),i=q(0);f("formGroup",i),o(),k(e.channelsSettings)}}function Ke(t,p){if(t&1&&(y(0,"bkd-my-settings-notifications-toggle",7),d(1,"async"),d(2,"async")),t&2){let e=p.$implicit,i=p.$index;U("mt-4",i>0),f("id","notification-types-"+e.key)("label",m(1,6,e.label))("description",m(2,8,e.description))("formControlName",e.key)}}function We(t,p){if(t&1&&(r(0,"form",3),T(1,Ke,3,10,"bkd-my-settings-notifications-toggle",6,Ie),s()),t&2){let e=F(),i=q(2);f("formGroup",i),o(),k(e.typesSettings)}}var Oe=(()=>{class t{constructor(e,i,n,a,l){this.userSettings=e,this.formBuilder=i,this.toastService=n,this.translate=a,this.notificationTypes=l,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(c=>{let{label:_,description:Ge}=this.translate.currentLang==="fr-CH"?c.text.fr:c.text.de;return{key:c.key,label:j(_),description:j(Ge)}}),this.channelsValue$=this.userSettings.getNotificationChannels(),this.typesValue$=this.userSettings.getNotificationTypesInactive().pipe(M(this.typesArrayToRecord.bind(this))),this.channelsFormGroup$=this.channelsValue$.pipe(M(c=>this.createFormGroup(this.channelsSettings,c)),L(1)),this.allChannelsInactive$=Y(this.channelsValue$,this.channelsFormGroup$.pipe($(c=>c.valueChanges))).pipe(M(c=>Object.values(c).every(_=>!_)),J()),this.typesFormGroup$=this.typesValue$.pipe(A(this.allChannelsInactive$),M(([c,_])=>this.createFormGroup(this.typesSettings,c,!0,_)),L(1)),this.saving$=new H(!1),this.destroy$=new z}ngOnInit(){this.userSettings.refetch(),this.allChannelsInactive$.pipe(Q(1),A(this.typesFormGroup$),I(this.destroy$)).subscribe(([e,i])=>{Object.values(i.controls).forEach(n=>e?n.disable():n.enable())}),this.channelsFormGroup$.pipe(I(this.destroy$),$(e=>e.valueChanges)).subscribe(this.saveChannels.bind(this)),this.typesFormGroup$.pipe(I(this.destroy$),$(e=>e.valueChanges)).subscribe(this.saveTypes.bind(this))}ngOnDestroy(){this.destroy$.next()}createFormGroup(e,i,n=!1,a=!1){return this.formBuilder.group(e.reduce((l,{key:c})=>R(D({},l),{[c]:[{value:i[c]??n,disabled:a}]}),{}))}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((n,{key:a})=>R(D({},n),{[a]:!e.includes(a)}),{})}typesRecordToArray(e){return Object.keys(e).reduce((n,a)=>e[a]?n:[...n,a],[])}static{this.\u0275fac=function(i){return new(i||t)(v(Fe),v(ve),v(_e),v(Me),v($e))}}static{this.\u0275cmp=u({type:t,selectors:[["bkd-my-settings-notifications"]],standalone:!0,features:[g],decls:17,vars:17,consts:[[1,"pb-4"],[1,"m-0","pb-3","d-flex","align-items-stretch"],[1,"position-relative"],[3,"formGroup"],[1,"mt-4","form-text"],[1,"position-absolute","inline","small","d-inline-block","ms-2"],[3,"id","label","description","formControlName","mt-4"],[3,"id","label","description","formControlName"]],template:function(i,n){if(i&1&&(K(0),d(1,"async"),K(2),d(3,"async"),r(4,"div",0)(5,"h2",1)(6,"span"),h(7),d(8,"translate"),s(),b(9,Ae,2,0,"div",2),d(10,"async"),s(),b(11,Ue,3,1,"form",3),r(12,"p",4),h(13),d(14,"translate"),s(),y(15,"hr"),b(16,We,3,1,"form",3),s()),i&2){let a=W(m(1,5,n.channelsFormGroup$));o(2);let l=W(m(3,8,n.typesFormGroup$));o(5),S(m(8,11,"my-settings.notifications.title")),o(2),C(m(10,13,n.saving$)?9:-1),o(2),C(a?11:-1),o(2),N(" ",m(14,15,"my-settings.notifications.privacy-hint")," "),o(3),C(l?16:-1)}},dependencies:[ke,E,he,O,ue,be,ge,ye,we,le,G,P],styles:[".checkbox[_ngcontent-%COMP%] input.form-check-input[_ngcontent-%COMP%]{position:static!important;margin:0!important}"],changeDetection:0})}}return t})();var Ee=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=u({type:t,selectors:[["bkd-my-settings-show"]],standalone:!0,features:[g],decls:5,vars:3,consts:[[1,"bkd-container","bkd-container-limited"]],template:function(i,n){i&1&&(r(0,"div",0)(1,"h1"),h(2),d(3,"translate"),s(),y(4,"bkd-my-settings-notifications"),s()),i&2&&(o(2),S(m(3,1,"my-settings.title")))},dependencies:[Oe,G,P]})}}return t})();var Pe=(()=>{class t{constructor(){}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=u({type:t,selectors:[["bkd-my-settings"]],standalone:!0,features:[g],decls:1,vars:0,template:function(i,n){i&1&&y(0,"router-outlet")},dependencies:[ce],changeDetection:0})}}return t})();var wt=[{path:"",component:Pe,children:[{path:"",component:Ee}]}];export{wt as MY_SETTINGS_ROUTES}; diff --git a/public/apps/webapp-schulverwaltung/chunk-YMJC6QZX.js b/public/apps/webapp-schulverwaltung/chunk-YMJC6QZX.js deleted file mode 100644 index de078e87..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-YMJC6QZX.js +++ /dev/null @@ -1 +0,0 @@ -import{a as I}from"./chunk-HII3S2DL.js";import{b as E}from"./chunk-SOHFFTKU.js";import{Ac as y,Cc as l,Cd as j,Dd as m,Fc as d,Hc as P,L as u,Mc as i,Nc as f,O as n,Rc as b,Tc as S,Vc as g,W as p,Z as a,dc as c,m as h,zc as t}from"./chunk-XTHSYQMN.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-YUHFF3NM.js b/public/apps/webapp-schulverwaltung/chunk-YUHFF3NM.js new file mode 100644 index 00000000..a8c89659 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/chunk-YUHFF3NM.js @@ -0,0 +1 @@ +import{Id as g,Ld as u,Mb as s,X as o,_ as r}from"./chunk-IFJN5CDK.js";var i=["de-CH","fr-CH"],n=i[0];function f(){return[{provide:s,useFactory:t=>t.detectLanguage(),deps:[c]}]}var c=(()=>{class t{constructor(e,a){this.translate=e,this.storage=a}initialize(){this.translate.setDefaultLang(n),this.translate.use(this.detectLanguage())}detectLanguage(){return this.detectedLanguage||(this.detectedLanguage=this.getDocumentLanguage()||this.getStoredLanguage()||this.getBrowserLanguage()||n),this.detectedLanguage}getLocalizedLanguage(e){return e=i.find(a=>a===`${(e||"").toLowerCase()}-CH`),e||n}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&&i.find(a=>e===a.split("-")[0])||null}static{this.\u0275fac=function(a){return new(a||t)(r(g),r(u))}}static{this.\u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();export{f as a,c as b}; diff --git a/public/apps/webapp-schulverwaltung/chunk-ZK2MNT7Z.js b/public/apps/webapp-schulverwaltung/chunk-ZK2MNT7Z.js deleted file mode 100644 index 716b6e04..00000000 --- a/public/apps/webapp-schulverwaltung/chunk-ZK2MNT7Z.js +++ /dev/null @@ -1,2 +0,0 @@ -import{d}from"./chunk-AW7CSGKI.js";import{a as lt}from"./chunk-FTDG26ID.js";import{a as ut,b as dt,c as mt}from"./chunk-SOHFFTKU.js";import{u as st,w as ct,z as Pe}from"./chunk-C56YGDXA.js";import{$ as re,$a as x,Ab as m,Ac as De,Ad as de,Bb as h,Bc as L,Cb as z,E as V,Eb as ke,Fc as it,Fd as at,G as ne,Ga as T,Gd as le,Hd as me,Ia as b,J as Ne,Ja as Ve,L as I,Mc as ot,N as W,O as Te,P as Be,Rb as Ze,Sa as l,Sb as et,Ta as f,Ua as Se,Va as U,Vb as tt,Vc as F,W as D,Wa as X,Wb 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,dc as ce,e as Ee,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,rc as ue,ta as He,tb as se,ua as c,va as ie,w as Ye,zc as rt}from"./chunk-XTHSYQMN.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/index.html b/public/apps/webapp-schulverwaltung/index.html index 524264c8..517e9d41 100644 --- a/public/apps/webapp-schulverwaltung/index.html +++ b/public/apps/webapp-schulverwaltung/index.html @@ -8,11 +8,11 @@ - + - + diff --git a/public/apps/webapp-schulverwaltung/main-2CUS3PGY.js b/public/apps/webapp-schulverwaltung/main-2CUS3PGY.js new file mode 100644 index 00000000..1074cb00 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/main-2CUS3PGY.js @@ -0,0 +1 @@ +import{b as Ds}from"./chunk-OGCDITJ2.js";import{c as Ps}from"./chunk-MIRGHONI.js";import{a as As,b as Ms}from"./chunk-YUHFF3NM.js";import{r as Ss}from"./chunk-LGOOC47H.js";import{a as ye}from"./chunk-B6WYZ7BT.js";import{$ as H,Aa as Jt,Ab as X,B as Qt,Da as Yt,Fd as vs,Gb as pe,Ha as Xt,Hb as ge,Hd as Ts,Id as bs,Jd as Le,Kd as _e,Ld as ws,Ma as Fe,Oa as Zt,Ra as es,Rb as os,Sa as ts,Ta as ss,Ua as Re,V as v,Va as ke,Vb as at,Wa as U,X as W,Xa as Y,Xc as _s,Ya as is,Yc as Z,Z as Vt,Zb as as,_ as j,a as Ce,aa as J,ab as ns,c as qt,cb as rs,db as rt,ea as Ht,fc as ls,gc as cs,hc as us,ia as Gt,ic as hs,ja as xt,jc as ds,k as Ut,kc as fs,nb as oe,ob as ot,pb as Oe,ra as Ne,sa as Wt,sc as ms,tc as Ie,ua as nt,uc as ps,wa as q,wc as gs,xa as re,xc as ys,yd as Es}from"./chunk-IFJN5CDK.js";function vi(i){let e=i,t=Math.floor(Math.abs(i)),s=i.toString().replace(/^[^.]*\.?/,"").length;return t===1&&s===0?1:5}var Cs=["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",vi];function Ti(i){let e=i,t=Math.floor(Math.abs(i)),s=i.toString().replace(/^[^.]*\.?/,"").length,n=parseInt(i.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return t===0||t===1?1:n===0&&t!==0&&t%1e6===0&&s===0||!(n>=0&&n<=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",Ti];function bi(i,e){if(i&1&&(U(0,"i",3),oe(1),Y()),i&2){let t=rt().$implicit;q(),ot(t.icon)}}function wi(i,e){if(i&1){let t=ns();U(0,"ngb-toast",1),rs("hidden",function(){let n=Gt(t).$implicit,r=rt();return xt(r.toastService.remove(n))}),U(1,"div",2),Xt(2,bi,2,1,"i",3),U(3,"span"),oe(4),Y()()()}if(i&2){let t=e.$implicit;Zt(t.classname),Fe("header",t.header||"")("autohide",!0),q(2),es(t.icon?2:-1),q(2),ot(t.message)}}var Rs=(()=>{class i{constructor(t){this.toastService=t}static{this.\u0275fac=function(s){return new(s||i)(re(ye))}}static{this.\u0275cmp=J({type:i,selectors:[["bkd-toast"]],standalone:!0,features:[X],decls:3,vars:2,consts:[[3,"header","class","autohide"],[3,"hidden","header","autohide"],[1,"d-flex","gap-2"],[1,"material-icons"]],template:function(s,n){s&1&&(Re(0,wi,5,6,"ngb-toast",0,ss),pe(2,"async")),s&2&&ke(ge(2,0,n.toastService.toasts$))},dependencies:[Ss,as],styles:["[_nghost-%COMP%]{position:fixed;top:0;right:0;margin:.5em;z-index:1200}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{font-size:medium}"]})}}return i})();var ks=new Vt("Navigator API",{providedIn:"root",factory:()=>navigator});var Os=(()=>{class i{constructor(t,s,n,r){this.toastService=s,this.settings=n,this.navigator=r,t.initialize(),this.checkSettings()}checkSettings(){vs(_s)(this.settings).pipe(Qt(t=>(console.error(String(t)),this.toastService.error("Please check the contents of the settings.js file (see Console output for more details).","Invalid Settings"),Ut))).subscribe()}static{this.\u0275fac=function(s){return new(s||i)(re(Ms),re(ye),re(Z),re(ks))}}static{this.\u0275cmp=J({type:i,selectors:[["bkd-app"]],standalone:!0,features:[X],decls:2,vars:0,consts:[["aria-live","polite","aria-atomic","true"]],template:function(s,n){s&1&&is(0,"bkd-toast",0)(1,"router-outlet")},dependencies:[Rs,ms],styles:["[_nghost-%COMP%]{width:100%}"],changeDetection:0})}}return i})();var _=function(i){return i[i.State=0]="State",i[i.Transition=1]="Transition",i[i.Sequence=2]="Sequence",i[i.Group=3]="Group",i[i.Animate=4]="Animate",i[i.Keyframes=5]="Keyframes",i[i.Style=6]="Style",i[i.Trigger=7]="Trigger",i[i.Reference=8]="Reference",i[i.AnimateChild=9]="AnimateChild",i[i.AnimateRef=10]="AnimateRef",i[i.Query=11]="Query",i[i.Stagger=12]="Stagger",i}(_||{}),Q="*";function Is(i,e=null){return{type:_.Sequence,steps:i,options:e}}function lt(i){return{type:_.Style,styles:i,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}},ve=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,n=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(()=>{++n==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 n=s.totalTime?Math.min(1,t/s.totalTime):1;s.setPosition(n)})}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}},$e="!";function Ls(i){return new v(3e3,!1)}function Ai(){return new v(3100,!1)}function Mi(){return new v(3101,!1)}function Pi(i){return new v(3001,!1)}function Di(i){return new v(3003,!1)}function Ci(i){return new v(3004,!1)}function Ni(i,e){return new v(3005,!1)}function Fi(){return new v(3006,!1)}function Ri(){return new v(3007,!1)}function ki(i,e){return new v(3008,!1)}function Oi(i){return new v(3002,!1)}function Ii(i,e,t,s,n){return new v(3010,!1)}function Li(){return new v(3011,!1)}function $i(){return new v(3012,!1)}function zi(){return new v(3200,!1)}function Bi(){return new v(3202,!1)}function Ki(){return new v(3013,!1)}function ji(i){return new v(3014,!1)}function qi(i){return new v(3015,!1)}function Ui(i){return new v(3016,!1)}function Qi(i,e){return new v(3404,!1)}function Vi(i){return new v(3502,!1)}function Hi(i){return new v(3503,!1)}function Gi(){return new v(3300,!1)}function xi(i){return new v(3504,!1)}function Wi(i){return new v(3301,!1)}function Ji(i,e){return new v(3302,!1)}function Yi(i){return new v(3303,!1)}function Xi(i,e){return new v(3400,!1)}function Zi(i){return new v(3401,!1)}function en(i){return new v(3402,!1)}function tn(i,e){return new v(3505,!1)}function te(i){switch(i.length){case 0:return new ee;case 1:return i[0];default:return new ve(i)}}function Js(i,e,t=new Map,s=new Map){let n=[],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=i.normalizePropertyName(f,n),g){case $e:g=t.get(y);break;case Q:g=s.get(y);break;default:g=i.normalizeStyleValue(y,f,g,n);break}u.set(f,g)}),h||r.push(u),a=u,o=c}),n.length)throw Vi(n);return r}function Ft(i,e,t,s){switch(e){case"start":i.onStart(()=>s(t&&ct(t,"start",i)));break;case"done":i.onDone(()=>s(t&&ct(t,"done",i)));break;case"destroy":i.onDestroy(()=>s(t&&ct(t,"destroy",i)));break}}function ct(i,e,t){let s=t.totalTime,n=!!t.disabled,r=Rt(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,s??i.totalTime,n),o=i._data;return o!=null&&(r._data=o),r}function Rt(i,e,t,s,n="",r=0,o){return{element:i,triggerName:e,fromState:t,toState:s,phaseName:n,totalTime:r,disabled:!!o}}function O(i,e,t){let s=i.get(e);return s||i.set(e,s=t),s}function $s(i){let e=i.indexOf(":"),t=i.substring(1,e),s=i.slice(e+1);return[t,s]}var sn=typeof document>"u"?null:document.documentElement;function kt(i){let e=i.parentNode||i.host||null;return e===sn?null:e}function nn(i){return i.substring(1,6)=="ebkit"}var le=null,zs=!1;function rn(i){le||(le=on()||{},zs=le.style?"WebkitAppearance"in le.style:!1);let e=!0;return le.style&&!nn(i)&&(e=i in le.style,!e&&zs&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in le.style)),e}function on(){return typeof document<"u"?document.body:null}function Ys(i,e){for(;e;){if(e===i)return!0;e=kt(e)}return!1}function Xs(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let s=i.querySelector(e);return s?[s]:[]}var Ot=(()=>{class i{validateStyleProperty(t){return rn(t)}containsElement(t,s){return Ys(t,s)}getParentElement(t){return kt(t)}query(t,s,n){return Xs(t,s,n)}computeStyle(t,s,n){return n||""}animate(t,s,n,r,o,a=[],l){return new ee(n,r)}static{this.\u0275fac=function(s){return new(s||i)}}static{this.\u0275prov=W({token:i,factory:i.\u0275fac})}}return i})(),he=class{static{this.NOOP=new Ot}},de=class{};var an=1e3,Zs="{{",ln="}}",ei="ng-enter",pt="ng-leave",ze="ng-trigger",Ue=".ng-trigger",Bs="ng-animating",gt=".ng-animating";function G(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:yt(parseFloat(e[1]),e[2])}function yt(i,e){switch(e){case"s":return i*an;default:return i}}function Qe(i,e,t){return i.hasOwnProperty("duration")?i:cn(i,e,t)}function cn(i,e,t){let s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,n,r=0,o="";if(typeof i=="string"){let a=i.match(s);if(a===null)return e.push(Ls(i)),{duration:0,delay:0,easing:""};n=yt(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(r=yt(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else n=i;if(!t){let a=!1,l=e.length;n<0&&(e.push(Ai()),a=!0),r<0&&(e.push(Mi()),a=!0),a&&e.splice(l,0,Ls(i))}return{duration:n,delay:r,easing:o}}function un(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function V(i,e,t){e.forEach((s,n)=>{let r=It(n);t&&!t.has(n)&&t.set(n,i.style[r]),i.style[r]=s})}function ue(i,e){e.forEach((t,s)=>{let n=It(s);i.style[n]=""})}function Te(i){return Array.isArray(i)?i.length==1?i[0]:Is(i):i}function hn(i,e,t){let s=e.params||{},n=ti(i);n.length&&n.forEach(r=>{s.hasOwnProperty(r)||t.push(Pi(r))})}var _t=new RegExp(`${Zs}\\s*(.+?)\\s*${ln}`,"g");function ti(i){let e=[];if(typeof i=="string"){let t;for(;t=_t.exec(i);)e.push(t[1]);_t.lastIndex=0}return e}function we(i,e,t){let s=`${i}`,n=s.replace(_t,(r,o)=>{let a=e[o];return a==null&&(t.push(Di(o)),a=""),a.toString()});return n==s?i:n}var dn=/-+([a-z0-9])/g;function It(i){return i.replace(dn,(...e)=>e[1].toUpperCase())}function fn(i,e){return i===0||e===0}function mn(i,e,t){if(t.size&&e.length){let s=e[0],n=[];if(t.forEach((r,o)=>{s.has(o)||n.push(o),s.set(o,r)}),n.length)for(let r=1;ro.set(a,Lt(i,a)))}}return e}function k(i,e,t){switch(e.type){case _.Trigger:return i.visitTrigger(e,t);case _.State:return i.visitState(e,t);case _.Transition:return i.visitTransition(e,t);case _.Sequence:return i.visitSequence(e,t);case _.Group:return i.visitGroup(e,t);case _.Animate:return i.visitAnimate(e,t);case _.Keyframes:return i.visitKeyframes(e,t);case _.Style:return i.visitStyle(e,t);case _.Reference:return i.visitReference(e,t);case _.AnimateChild:return i.visitAnimateChild(e,t);case _.AnimateRef:return i.visitAnimateRef(e,t);case _.Query:return i.visitQuery(e,t);case _.Stagger:return i.visitStagger(e,t);default:throw Ci(e.type)}}function Lt(i,e){return window.getComputedStyle(i)[e]}var pn=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Ve=class extends de{normalizePropertyName(e,t){return It(e)}normalizeStyleValue(e,t,s,n){let r="",o=s.toString().trim();if(pn.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&&n.push(Ni(e,s))}return o+r}};var He="*";function gn(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(s=>yn(s,t,e)):t.push(i),t}function yn(i,e,t){if(i[0]==":"){let l=_n(i,t);if(typeof l=="function"){e.push(l);return}i=l}let s=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(qi(i)),e;let n=s[1],r=s[2],o=s[3];e.push(Ks(n,o));let a=n==He&&o==He;r[0]=="<"&&!a&&e.push(Ks(o,n))}function _n(i,e){switch(i){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 Be=new Set(["true","1"]),Ke=new Set(["false","0"]);function Ks(i,e){let t=Be.has(i)||Ke.has(i),s=Be.has(e)||Ke.has(e);return(n,r)=>{let o=i==He||i==n,a=e==He||e==r;return!o&&t&&typeof n=="boolean"&&(o=n?Be.has(i):Ke.has(i)),!a&&s&&typeof r=="boolean"&&(a=r?Be.has(e):Ke.has(e)),o&&a}}var si=":self",Sn=new RegExp(`s*${si}s*,?`,"g");function ii(i,e,t,s){return new St(i).build(e,t,s)}var js="",St=class{constructor(e){this._driver=e}build(e,t,s){let n=new Et(t);return this._resetContextStyleTimingState(n),k(this,Te(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector=js,e.collectedStyles=new Map,e.collectedStyles.set(js,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,n=t.depCount=0,r=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(Fi()),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,n+=l.depCount,o.push(l)}else t.errors.push(Ri())}),{type:_.Trigger,name:e.name,states:r,transitions:o,queryCount:s,depCount:n,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),n=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,o=n||{};s.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{ti(l).forEach(c=>{o.hasOwnProperty(c)||r.add(c)})})}),r.size&&t.errors.push(ki(e.name,[...r.values()]))}return{type:_.State,name:e.name,style:s,options:n?{params:n}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=k(this,Te(e.animation),t),n=gn(e.expr,t.errors);return{type:_.Transition,matchers:n,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:ce(e.options)}}visitSequence(e,t){return{type:_.Sequence,steps:e.steps.map(s=>k(this,s,t)),options:ce(e.options)}}visitGroup(e,t){let s=t.currentTime,n=0,r=e.steps.map(o=>{t.currentTime=s;let a=k(this,o,t);return n=Math.max(n,t.currentTime),a});return t.currentTime=n,{type:_.Group,steps:r,options:ce(e.options)}}visitAnimate(e,t){let s=bn(e.timings,t.errors);t.currentAnimateTimings=s;let n,r=e.styles?e.styles:lt({});if(r.type==_.Keyframes)n=this.visitKeyframes(r,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};s.easing&&(c.easing=s.easing),o=lt(c)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,n=l}return t.currentAnimateTimings=null,{type:_.Animate,timings:s,style:n,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],n=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of n)typeof a=="string"?a===Q?s.push(a):t.errors.push(Oi(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(Zs)>=0){r=!0;break}}}),{type:_.Style,styles:s,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,n=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!=n&&r>=h.startTime&&n<=h.endTime&&(t.errors.push(Ii(l,h.startTime,h.endTime,r,n)),u=!1),r=h.startTime),u&&c.set(l,{startTime:r,endTime:n}),t.options&&hn(a,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Li()),s;let n=1,r=0,o=[],a=!1,l=!1,c=0,h=e.steps.map(w=>{let A=this._makeStyleAst(w,t),C=A.offset!=null?A.offset:Tn(A.styles),P=0;return C!=null&&(r++,P=A.offset=C),l=l||P<0||P>1,a=a||P0&&r{let C=S>0?A==y?1:S*A:o[A],P=C*T;t.currentTime=f+g.delay+P,g.duration=P,this._validateStyleAst(w,t),w.offset=C,s.styles.push(w)}),s}visitReference(e,t){return{type:_.Reference,animation:k(this,Te(e.animation),t),options:ce(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:ce(e.options)}}visitAnimateRef(e,t){return{type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:ce(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,n=e.options||{};t.queryCount++,t.currentQuery=e;let[r,o]=En(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,O(t.collectedStyles,t.currentQuerySelector,new Map);let a=k(this,Te(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:_.Query,selector:r,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:ce(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Ki());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Qe(e.timings,t.errors,!0);return{type:_.Stagger,animation:k(this,Te(e.animation),t),timings:s,options:null}}};function En(i){let e=!!i.split(/\s*,\s*/).find(t=>t==si);return e&&(i=i.replace(Sn,"")),i=i.replace(/@\*/g,Ue).replace(/@\w+/g,t=>Ue+"-"+t.slice(1)).replace(/:animating/g,gt),[i,e]}function vn(i){return i?Ce({},i):null}var Et=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 Tn(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function bn(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let r=Qe(i,e).duration;return ut(r,0,"")}let t=i;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=ut(0,0,"");return r.dynamic=!0,r.strValue=t,r}let n=Qe(t,e);return ut(n.duration,n.delay,n.easing)}function ce(i){return i?(i=Ce({},i),i.params&&(i.params=vn(i.params))):i={},i}function ut(i,e,t){return{duration:i,delay:e,easing:t}}function $t(i,e,t,s,n,r,o=null,a=!1){return{type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:s,duration:n,delay:r,totalTime:n+r,easing:o,subTimeline:a}}var Ae=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()}},wn=1,An=":enter",Mn=new RegExp(An,"g"),Pn=":leave",Dn=new RegExp(Pn,"g");function ni(i,e,t,s,n,r=new Map,o=new Map,a,l,c=[]){return new vt().buildKeyframes(i,e,t,s,n,r,o,a,l,c)}var vt=class{buildKeyframes(e,t,s,n,r,o,a,l,c,h=[]){c=c||new Ae;let u=new Tt(e,t,c,n,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()):[$t(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 n=t.createSubContext(e.options),r=t.currentTimeline.currentTime,o=this._visitSubInstructions(s,n,n.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 n of e){let r=n?.delay;if(r){let o=typeof r=="number"?r:G(we(r,n?.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,n=t,r=e.options;if(r&&(r.params||r.delay)&&(n=t.createSubContext(r),n.transformIntoNewTimeline(),r.delay!=null)){n.previousNode.type==_.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Ge);let o=G(r.delay);n.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>k(this,o,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>s&&n.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],n=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),n=Math.max(n,a.currentTimeline.currentTime),s.push(a.currentTimeline)}),s.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(n),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,n=t.params?we(s,t.params,t.errors):s;return Qe(n,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),n=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),n.snapshotCurrentStyles());let r=e.style;r.type==_.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),n.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,n=t.currentAnimateTimings;!n&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=n&&n.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,n=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(n+r),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,n=e.options||{},r=n.delay?G(n.delay):0;r&&(t.previousNode.type===_.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ge);let o=s,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!n.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,n=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=n.currentTime-u+(n.startTime-s.currentTimeline.startTime)}},Ge={},Tt=class i{constructor(e,t,s,n,r,o,a,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=n,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ge,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new xe(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,n=this.options;s.duration!=null&&(n.duration=G(s.duration)),s.delay!=null&&(n.delay=G(s.delay));let r=s.params;if(r){let o=n.params;o||(o=this.options.params={}),Object.keys(r).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=we(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(n=>{s[n]=t[n]})}}return e}createSubContext(e=null,t,s){let n=t||this.element,r=new i(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,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=Ge,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let n={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new bt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,n,e.stretchStartingKeyframe);return this.timelines.push(r),n}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,n,r,o){let a=[];if(n&&a.push(this.element),e.length>0){e=e.replace(Mn,"."+this._enterClassName),e=e.replace(Dn,"."+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(ji(t)),a}},xe=class i{constructor(e,t,s,n){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=n,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 i(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+=wn,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,n){t&&this._previousKeyframe.set("easing",t);let r=n&&n.params||{},o=Cn(e,this._globalTimelineStyles);for(let[a,l]of o){let c=we(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 n=this._styleSummary.get(s);(!n||t.time>n.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((h,u)=>{h===$e?e.add(u):h===Q&&t.add(u)}),s||c.set("offset",l/this.duration),n.push(c)});let r=[...e.values()],o=[...t.values()];if(s){let a=n[0],l=new Map(a);a.set("offset",0),l.set("offset",1),n=[a,l]}return $t(this.element,n,r,o,this.duration,this.startTime,this.easing,!1)}},bt=class extends xe{constructor(e,t,s,n,r,o,a=!1){super(e,t,o.delay),this.keyframes=s,this.preStyleProps=n,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:n}=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",qs(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",qs(f/o)),r.push(S)}s=o,t=0,n="",e=r}return $t(this.element,e,this.preStyleProps,this.postStyleProps,s,t,n,!0)}};function qs(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function Cn(i,e){let t=new Map,s;return i.forEach(n=>{if(n==="*"){s??=e.keys();for(let r of s)t.set(r,Q)}else for(let[r,o]of n)t.set(r,o)}),t}function Us(i,e,t,s,n,r,o,a,l,c,h,u,S){return{type:0,element:i,triggerName:e,isRemovalTransition:n,fromState:t,fromStyles:r,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:S}}var ht={},We=class{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,n){return Nn(this.ast.matchers,e,t,s,n)}buildStyles(e,t,s){let n=this._stateStyles.get("*");return e!==void 0&&(n=this._stateStyles.get(e?.toString())||n),n?n.buildStyles(t,s):new Map}build(e,t,s,n,r,o,a,l,c,h){let u=[],S=this.ast.options&&this.ast.options.params||ht,y=a&&a.params||ht,f=this.buildStyles(s,y,u),g=l&&l.params||ht,T=this.buildStyles(n,g,u),w=new Set,A=new Map,C=new Map,P=n==="void",fe={params:ri(g,S),delay:this.ast.options?.delay},B=h?[]:ni(e,t,this.ast.animation,r,o,f,T,fe,c,u),N=0;return B.forEach(F=>{N=Math.max(F.duration+F.delay,N)}),u.length?Us(t,this._triggerName,s,n,P,f,T,[],[],A,C,N,u):(B.forEach(F=>{let se=F.element,me=O(A,se,new Set);F.preStyleProps.forEach(ie=>me.add(ie));let zt=O(C,se,new Set);F.postStyleProps.forEach(ie=>zt.add(ie)),se!==t&&w.add(se)}),Us(t,this._triggerName,s,n,P,f,T,B,[...w.values()],A,C,N))}};function Nn(i,e,t,s,n){return i.some(r=>r(e,t,s,n))}function ri(i,e){let t=Ce({},e);return Object.entries(i).forEach(([s,n])=>{n!=null&&(t[s]=n)}),t}var wt=class{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,n=ri(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((o,a)=>{o&&(o=we(o,n,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),s.set(a,o)})}),s}};function Fn(i,e,t){return new At(i,e,t)}var At=class{constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states=new Map,t.states.forEach(n=>{let r=n.options&&n.options.params||{};this.states.set(n.name,new wt(n.style,r,s))}),Qs(this.states,"true","1"),Qs(this.states,"false","0"),t.transitions.forEach(n=>{this.transitionFactories.push(new We(e,n,this.states))}),this.fallbackTransition=Rn(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,n){return this.transitionFactories.find(o=>o.match(e,t,s,n))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function Rn(i,e,t){let s=[(o,a)=>!0],n={type:_.Sequence,steps:[],options:null},r={type:_.Transition,animation:n,matchers:s,options:null,queryCount:0,depCount:0};return new We(i,r,e)}function Qs(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t))}var kn=new Ae,Mt=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=[],n=[],r=ii(this._driver,t,s,n);if(s.length)throw Hi(s);n.length&&void 0,this._animations.set(e,r)}_buildPlayer(e,t,s){let n=e.element,r=Js(this._normalizer,e.keyframes,t,s);return this._driver.animate(n,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let n=[],r=this._animations.get(e),o,a=new Map;if(r?(o=ni(this._driver,t,r,ei,pt,new Map,new Map,s,kn,n),o.forEach(h=>{let u=O(a,h.element,new Map);h.postStyleProps.forEach(S=>u.set(S,null))})):(n.push(Gi()),o=[]),n.length)throw xi(n);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 Wi(e);return t}listen(e,t,s,n){let r=Rt(t,"","","");return Ft(this._getPlayer(e),s,r,n),()=>{}}command(e,t,s,n){if(s=="register"){this.register(e,n[0]);return}if(s=="create"){let o=n[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(n[0]));break;case"destroy":this.destroy(e);break}}},Vs="ng-animate-queued",On=".ng-animate-queued",dt="ng-animate-disabled",In=".ng-animate-disabled",Ln="ng-star-inserted",$n=".ng-star-inserted",zn=[],oi={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Bn={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},$="__ng_removed",Me=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),n=s?e.value:e;if(this.value=jn(n),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(n=>{s[n]==null&&(s[n]=t[n])})}}},be="void",ft=new Me(be),Pt=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,n){if(!this._triggers.has(t))throw Ji(s,t);if(s==null||s.length==0)throw Yi(t);if(!qn(s))throw Xi(s,t);let r=O(this._elementListeners,e,[]),o={name:t,phase:s,callback:n};r.push(o);let a=O(this._engine.statesByElement,e,new Map);return a.has(t)||(L(e,ze),L(e,ze+"-"+t),a.set(t,ft)),()=>{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 Zi(e);return t}trigger(e,t,s,n=!0){let r=this._getTrigger(t),o=new Pe(this.id,t,e),a=this._engine.statesByElement.get(e);a||(L(e,ze),L(e,ze+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new Me(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=ft),!(c.value===be)&&l.value===c.value){if(!Vn(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(()=>{ue(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(!n)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,Vs),o.onStart(()=>{Se(e,Vs)})),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(n=>n.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,Ue,!0);s.forEach(n=>{if(n[$])return;let r=this._engine.fetchNamespacesByElement(n);r.size?r.forEach(o=>o.triggerLeaveAnimation(n,t,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(e,t,s,n){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,be,n);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 n=new Set;t.forEach(r=>{let o=r.name;if(n.has(o))return;n.add(o);let l=this._triggers.get(o).fallbackTransition,c=s.get(o)||ft,h=new Me(be),u=new Pe(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 n=!1;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)n=!0;else{let o=e;for(;o=o.parentNode;)if(s.statesByElement.get(o)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(e),n)s.markElementAsRemoved(this.id,e,!1,t);else{let r=e[$];(!r||r===oi)&&(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 n=s.player;if(n.destroyed)return;let r=s.element,o=this._elementListeners.get(r);o&&o.forEach(a=>{if(a.name==s.triggerName){let l=Rt(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,Ft(s.player,a.phase,l,a.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):t.push(s)}),this._queue=[],t.sort((s,n)=>{let r=s.transition.ast.depCount,o=n.transition.ast.depCount;return r==0||o==0?r-o:this._engine.driver.containsElement(s.element,n.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Dt=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=(n,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 Pt(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,n=this.namespacesByHostElement;if(s.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=n.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 n.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 n=this._namespaceLookup[e];n&&n.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let n=this._namespaceList.indexOf(s);n>=0&&this._namespaceList.splice(n,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 n of s.values())if(n.namespaceId){let r=this._fetchNamespace(n.namespaceId);r&&t.add(r)}}return t}trigger(e,t,s,n){if(je(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,n),!0}return!1}insertNode(e,t,s,n){if(!je(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)}n&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),L(e,dt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Se(e,dt))}removeNode(e,t,s){if(je(t)){let n=e?this._fetchNamespace(e):null;n?n.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,n,r){this.collectedLeaveElements.push(t),t[$]={namespaceId:e,setForRemoval:n,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,n,r){return je(t)?this._fetchNamespace(e).listen(t,s,n,r):()=>{}}_buildInstruction(e,t,s,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,n,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,Ue,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,gt,!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[$]=oi,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(dt)&&this.markElementAsDisabled(e,!1),this.driver.query(e,In,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,n)=>this._balanceNamespaceList(s,n)),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(n=>n())}):s.forEach(n=>n())}}reportError(e){throw en(e)}_flushAnimations(e,t){let s=new Ae,n=[],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,On,!0);for(let p=0;p{let p=ei+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 C=new Map,P=xs(S,Array.from(w));P.forEach((d,m)=>{let p=pt+g++;C.set(m,p),d.forEach(E=>L(E,p))}),e.push(()=>{y.forEach((d,m)=>{let p=f.get(m);d.forEach(E=>Se(E,p))}),P.forEach((d,m)=>{let p=C.get(m);d.forEach(E=>Se(E,p))}),T.forEach(d=>{this.processLeaveNode(d)})});let fe=[],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(fe.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 De=I.get(p.triggerName);De.value=ne,I.set(p.triggerName,De)}}E.destroy();return}}let K=!u||!this.driver.containsElement(u,M),R=C.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(()=>ue(M,b.fromStyles)),E.onDestroy(()=>V(M,b.toStyles)),n.push(E);return}if(p.isFallbackTransition){E.onStart(()=>ue(M,b.fromStyles)),E.onDestroy(()=>V(M,b.toStyles)),n.push(E);return}let jt=[];b.timelines.forEach(D=>{D.stretchStartingKeyframe=!0,this.disabledNodes.has(D.element)||jt.push(D)}),b.timelines=jt,s.append(M,b.timelines);let Ei={instruction:b,player:E,element:M};o.push(Ei),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((De,it)=>I.add(it))}}),b.postStyleProps.forEach((D,ne)=>{let I=c.get(ne);I||c.set(ne,I=new Set),D.forEach((De,it)=>I.add(it))})});if(B.length){let d=[];B.forEach(m=>{d.push(tn(m.triggerName,m.errors))}),fe.forEach(m=>m.destroy()),this.reportError(d)}let N=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,N))}),n.forEach(d=>{let m=d.element;this._getPreviousPlayers(m,!1,d.namespaceId,d.triggerName,null).forEach(E=>{O(N,m,[]).push(E),E.destroy()})});let se=T.filter(d=>Ws(d,l,c)),me=new Map;Gs(me,this.driver,A,c,Q).forEach(d=>{Ws(d,l,c)&&se.push(d)});let ie=new Map;y.forEach((d,m)=>{Gs(ie,this.driver,new Set(d),l,$e)}),se.forEach(d=>{let m=me.get(d),p=ie.get(d);me.set(d,new Map([...m?.entries()??[],...p?.entries()??[]]))});let st=[],Bt=[],Kt={};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),n.push(p);return}let M=Kt;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,N,r,ie,me);if(p.setRealPlayer(K),M===Kt)st.push(p);else{let R=this.playersByElement.get(M);R&&R.length&&(p.parentPlayer=te(R)),n.push(p)}}else ue(m,E.fromStyles),p.onDestroy(()=>V(m,E.toStyles)),Bt.push(p),h.has(m)&&n.push(p)}),Bt.forEach(d=>{let m=r.get(d.element);if(m&&m.length){let p=te(m);d.setRealPlayer(p)}}),n.forEach(d=>{d.parentPlayer?d.syncPlayerEvents(d.parentPlayer):d.destroy()});for(let d=0;d!K.destroyed);M.length?Un(this,m,M):this.processLeaveNode(m)}return T.length=0,st.forEach(d=>{this.players.push(d),d.onDone(()=>{d.destroy();let m=this.players.indexOf(d);this.players.splice(m,1)}),d.play()}),st}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,n,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==be;a.forEach(c=>{c.queued||!l&&c.triggerName!=n||o.push(c)})}}return(s||n)&&(o=o.filter(a=>!(s&&s!=a.namespaceId||n&&n!=a.triggerName))),o}_beforeAnimationBuild(e,t,s){let n=t.triggerName,r=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:n;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)})}ue(r,t.fromStyles)}_buildAnimation(e,t,s,n,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=Qn((s.get(g)||zn).map(N=>N.getRealPlayer())).filter(N=>{let F=N;return F.element?F.element===g:!1}),C=r.get(g),P=o.get(g),fe=Js(this._normalizer,f.keyframes,C,P),B=this._buildPlayer(f,fe,A);if(f.subTimeline&&n&&u.add(g),w){let N=new Pe(e,a,g);N.setRealPlayer(B),c.push(N)}return B});c.forEach(f=>{O(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>Kn(this.playersByQueriedElement,f.element,f))}),h.forEach(f=>L(f,Bs));let y=te(S);return y.onDestroy(()=>{h.forEach(f=>Se(f,Bs)),V(l,t.toStyles)}),u.forEach(f=>{O(n,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)}},Pe=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(n=>Ft(e,s,void 0,n))}),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 Kn(i,e,t){let s=i.get(e);if(s){if(s.length){let n=s.indexOf(t);s.splice(n,1)}s.length==0&&i.delete(e)}return s}function jn(i){return i??null}function je(i){return i&&i.nodeType===1}function qn(i){return i=="start"||i=="done"}function Hs(i,e){let t=i.style.display;return i.style.display=e??"none",t}function Gs(i,e,t,s,n){let r=[];t.forEach(l=>r.push(Hs(l)));let o=[];s.forEach((l,c)=>{let h=new Map;l.forEach(u=>{let S=e.computeStyle(c,u,n);h.set(u,S),(!S||S.length==0)&&(c[$]=Bn,o.push(c))}),i.set(c,h)});let a=0;return t.forEach(l=>Hs(l,r[a++])),o}function xs(i,e){let t=new Map;if(i.forEach(a=>t.set(a,[])),e.length==0)return t;let s=1,n=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:n.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(i,e){i.classList?.add(e)}function Se(i,e){i.classList?.remove(e)}function Un(i,e,t){te(t).onDone(()=>i.processLeaveNode(e))}function Qn(i){let e=[];return ai(i,e),e}function ai(i,e){for(let t=0;tn.add(r)):e.set(i,s),t.delete(i),!0}var Ee=class{constructor(e,t,s){this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(n,r)=>{},this._transitionEngine=new Dt(e.body,t,s),this._timelineEngine=new Mt(e.body,t,s),this._transitionEngine.onRemovalComplete=(n,r)=>this.onRemovalComplete(n,r)}registerTrigger(e,t,s,n,r){let o=e+"-"+n,a=this._triggerCache[o];if(!a){let l=[],c=[],h=ii(this._driver,r,l,c);if(l.length)throw Qi(n,l);c.length&&void 0,a=Fn(n,h,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,n,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,n){this._transitionEngine.insertNode(e,t,s,n)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,n){if(s.charAt(0)=="@"){let[r,o]=$s(s),a=n;this._timelineEngine.command(r,t,o,a)}else this._transitionEngine.trigger(e,t,s,n)}listen(e,t,s,n,r){if(s.charAt(0)=="@"){let[o,a]=$s(s);return this._timelineEngine.listen(o,t,a,r)}return this._transitionEngine.listen(e,t,s,n,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 Hn(i,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=mt(e[0]),e.length>1&&(s=mt(e[e.length-1]))):e instanceof Map&&(t=mt(e)),t||s?new Ct(i,t,s):null}var Ct=class i{static{this.initialStylesByElement=new WeakMap}constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let n=i.initialStylesByElement.get(e);n||i.initialStylesByElement.set(e,n=new Map),this._initialStyles=n}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&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(ue(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ue(this._element,this._endStyles),this._endStyles=null),V(this._element,this._initialStyles),this._state=3)}};function mt(i){let e=null;return i.forEach((t,s)=>{Gn(s)&&(e=e||new Map,e.set(s,t))}),e}function Gn(i){return i==="display"||i==="position"}var Je=class{constructor(e,t,s,n){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=n,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,n)=>{n!=="offset"&&e.set(n,this._finished?s:Lt(this.element,n))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},Ye=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Ys(e,t)}getParentElement(e){return kt(e)}query(e,t,s){return Xs(e,t,s)}computeStyle(e,t,s){return Lt(e,t)}animate(e,t,s,n,r,o=[]){let a=n==0?"both":"forwards",l={duration:s,delay:n,fill:a};r&&(l.easing=r);let c=new Map,h=o.filter(y=>y instanceof Je);fn(s,n)&&h.forEach(y=>{y.currentSnapshot.forEach((f,g)=>c.set(g,f))});let u=un(t).map(y=>new Map(y));u=mn(e,u,c);let S=Hn(e,u);return new Je(e,u,l,S)}};var qe="@",li="@.disabled",Xe=class{constructor(e,t,s,n){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=n,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,n=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,n)}removeChild(e,t,s){this.parentNode(t)&&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,n){this.delegate.setAttribute(e,t,s,n)}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,n){this.delegate.setStyle(e,t,s,n)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==qe&&t==li?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)}},Nt=class extends Xe{constructor(e,t,s,n,r){super(t,s,n,r),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==qe?t.charAt(1)=="."&&t==li?(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)==qe){let n=xn(e),r=t.slice(1),o="";return r.charAt(0)!=qe&&([r,o]=Wn(r)),this.engine.listen(this.namespaceId,n,r,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,s,a)})}return this.delegate.listen(e,t,s)}};function xn(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function Wn(i){let e=i.indexOf("."),t=i.substring(0,e),s=i.slice(e+1);return[t,s]}var Ze=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=(n,r)=>{r?.removeChild(null,n)}}createRenderer(e,t){let s="",n=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,h=c.get(n);if(!h){let u=()=>c.delete(n);h=new Xe(s,n,this.engine,u),c.set(n,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 Nt(this,o,n,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 n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(r=>{let[o,a]=r;o(a)}),this._animationCallbacksBuffer=[]})}),n.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 Yn=(()=>{class i extends Ee{constructor(t,s,n){super(t,s,n)}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(s){return new(s||i)(j(os),j(he),j(de))}}static{this.\u0275prov=W({token:i,factory:i.\u0275fac})}}return i})();function Xn(){return new Ve}function Zn(i,e,t){return new Ze(i,e,t)}var ci=[{provide:de,useFactory:Xn},{provide:Ee,useClass:Yn},{provide:Jt,useFactory:Zn,deps:[ds,Ee,Ne]}],er=[{provide:he,useFactory:()=>new Ye},{provide:nt,useValue:"BrowserAnimations"},...ci],Lr=[{provide:he,useClass:Ot},{provide:nt,useValue:"NoopAnimations"},...ci];function ui(){return Yt("NgEagerAnimations"),[...er]}var et=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 tr(i,e){if(i&1&&(U(0,"li")(1,"h2")(2,"a",1),oe(3),pe(4,"translate"),Y()()()),i&2){let t,s=e.$implicit;q(2),Fe("routerLink","/"+s.path),q(),Oe(" ",ge(4,2,((t=s.name)!==null&&t!==void 0?t:s.path)+".title")," ")}}var di=(()=>{class i{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{this.\u0275fac=function(s){return new(s||i)}}static{this.\u0275cmp=J({type:i,selectors:[["bkd-home"]],standalone:!0,features:[X],decls:3,vars:0,consts:[[1,"mt-3"],[3,"routerLink"]],template:function(s,n){s&1&&(U(0,"ul",0),Re(1,tr,5,4,"li",null,ts),Y()),s&2&&(q(),ke(n.sections))},dependencies:[ps,_e,Le],changeDetection:0})}}return i})();var fi=(()=>{class i{constructor(){}static{this.\u0275fac=function(s){return new(s||i)}}static{this.\u0275cmp=J({type:i,selectors:[["bkd-unauthenticated"]],standalone:!0,features:[X],decls:4,vars:3,consts:[[1,"bkd-container"],[1,"alert","alert-danger","my-3"]],template:function(s,n){s&1&&(U(0,"div",0)(1,"div",1),oe(2),pe(3,"translate"),Y()()),s&2&&(q(2),Oe(" ",ge(3,1,"unauthenticated.message")," "))},dependencies:[_e,Le],encapsulation:2})}}return i})();var tt=(()=>{class i{constructor(t){this.storage=t}get isAuthenticated(){return!!this.accessToken}get accessToken(){return this.storage.getAccessToken()}static{this.\u0275fac=function(s){return new(s||i)(j(ws))}}static{this.\u0275prov=W({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function z(){return()=>{let i=H(tt),e=H(Ie);return i.isAuthenticated?!0:(e.navigate(["/unauthenticated"]),!1)}}var mi=[{path:"dashboard",canActivate:[z()],loadChildren:()=>import("./chunk-W2RRBYQG.js").then(i=>i.DASHBOARD_ROUTES)},{path:"presence-control",canActivate:[z()],loadChildren:()=>import("./chunk-ARLUIMZU.js").then(i=>i.PRESENCE_CONTROL_ROUTES)},{path:"open-absences",canActivate:[z()],loadChildren:()=>import("./chunk-V5KICZUB.js").then(i=>i.OPEN_ABSENCES_ROUTES)},{path:"edit-absences",canActivate:[z()],loadChildren:()=>import("./chunk-JPWKYF5J.js").then(i=>i.EDIT_ABSENCES_ROUTES)},{path:"evaluate-absences",canActivate:[z()],loadChildren:()=>import("./chunk-UB7PUXB6.js").then(i=>i.EVALUATE_ABSENCES_ROUTES)},{path:"events",canActivate:[z()],loadChildren:()=>import("./chunk-RG5AZKMH.js").then(i=>i.EVENTS_ROUTES)},{path:"my-absences",canActivate:[z()],loadChildren:()=>import("./chunk-F4JHPOM5.js").then(i=>i.MY_ABSENCES_ROUTES)},{path:"my-profile",canActivate:[z()],loadChildren:()=>import("./chunk-U7WLOWUT.js").then(i=>i.MY_PROFILE_ROUTES)},{path:"my-grades",canActivate:[z()],loadChildren:()=>import("./chunk-3BIGM3Z4.js").then(i=>i.MY_GRADES_ROUTES)},{path:"my-settings",canActivate:[z()],loadChildren:()=>import("./chunk-YHQTYVFP.js").then(i=>i.MY_SETTINGS_ROUTES)},{path:"unauthenticated",component:fi},{path:"",component:di,pathMatch:"full"}];function pi(){return(i,e)=>{let t=H(tt),s=H(Z);if(i.url.startsWith(s.apiUrl)&&t.accessToken){let n=i.headers.set("Authorization",`Bearer ${t.accessToken}`);return e(i.clone({headers:n}))}return e(i)}}function gi(){return(i,e)=>{let t=H(Z);if(!i.headers.has("X-Role-Restriction")&&t.headerRoleRestriction){let s=sr();if(s&&t.headerRoleRestriction[s]){let n=i.headers.set("X-Role-Restriction",t.headerRoleRestriction[s]);return e(i.clone({headers:n}))}}return e(i)}}function sr(){let i=H(Ie),e=i.url?Ps(i.url):null;return e?Es(e):null}function yi(){return[{provide:Wt,useClass:ir}]}var ir=(()=>{class i{constructor(t,s,n){this.ngZone=t,this.translate=s,this.toastService=n}handleError(t){console.error(String(t)),t instanceof ls||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{this.\u0275fac=function(s){return new(s||i)(j(Ne),j(bs),j(ye))}}static{this.\u0275prov=W({token:i,factory:i.\u0275fac})}}return i})();function nr(i,e){return new et(i,`${e.scriptsAndAssetsPath}/assets/locales/`,".json")}var _i={providers:[gs(mi,ys()),us(hs([Ds(),pi(),gi()])),ui(),yi(),Ht(_e.forRoot({loader:{provide:Ts,useFactory:nr,deps:[cs,Z]}})),As()]};var Si={production:!0};Si.production&&void 0;at(Cs);at(Ns);fs(Os,_i).catch(i=>console.error(i)); diff --git a/public/apps/webapp-schulverwaltung/main.js b/public/apps/webapp-schulverwaltung/main.js deleted file mode 100644 index bb990ea0..00000000 --- a/public/apps/webapp-schulverwaltung/main.js +++ /dev/null @@ -1 +0,0 @@ -import{b as Ps}from"./chunk-PSXDSPKS.js";import{c as Ms}from"./chunk-5RDJZAUT.js";import{a as ws,b as As}from"./chunk-DB66EACG.js";import{r as _s}from"./chunk-C56YGDXA.js";import{a as _e}from"./chunk-UX5TA32W.js";import{$ as J,$a as ot,A as Ht,Aa as Zt,Ab as ge,Ba as ke,Bb as ye,Cd as Es,Ed as vs,Fd as Ts,Ga as be,Gd as $e,Hd as Se,Ia as oe,Id as bs,Ka as es,Lb as ns,Pb as lt,Rb as Ie,Sa as U,Sb as rs,Ta as Y,U as v,Ua as ts,Uc as ys,Vb as os,Vc as Z,W,Y as Gt,Ya as ss,Z as j,_ as H,_a as is,a as Re,c as Qt,cc as as,da as xt,dc as ls,ec as cs,fc as us,gc as hs,ha as Wt,hc as ds,ia as Jt,j as Vt,jb as ae,kb as at,lb as Oe,oa as Yt,pc as fs,qc as Le,rc as ms,sa as rt,tb as X,tc as ps,ua as q,uc as gs,va as re,vd as Ss,ya as Xt}from"./chunk-XTHSYQMN.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-WNMIKIML.js").then(n=>n.DASHBOARD_ROUTES)},{path:"presence-control",canActivate:[z()],loadChildren:()=>import("./chunk-VJ6UATSE.js").then(n=>n.PRESENCE_CONTROL_ROUTES)},{path:"open-absences",canActivate:[z()],loadChildren:()=>import("./chunk-SVAHLOZE.js").then(n=>n.OPEN_ABSENCES_ROUTES)},{path:"edit-absences",canActivate:[z()],loadChildren:()=>import("./chunk-GTCR4WGM.js").then(n=>n.EDIT_ABSENCES_ROUTES)},{path:"evaluate-absences",canActivate:[z()],loadChildren:()=>import("./chunk-ELVM3VWW.js").then(n=>n.EVALUATE_ABSENCES_ROUTES)},{path:"events",canActivate:[z()],loadChildren:()=>import("./chunk-OOFOFPYV.js").then(n=>n.EVENTS_ROUTES)},{path:"my-absences",canActivate:[z()],loadChildren:()=>import("./chunk-KNS2BM7M.js").then(n=>n.MY_ABSENCES_ROUTES)},{path:"my-profile",canActivate:[z()],loadChildren:()=>import("./chunk-7T3G7FUV.js").then(n=>n.MY_PROFILE_ROUTES)},{path:"my-grades",canActivate:[z()],loadChildren:()=>import("./chunk-PMU42JF5.js").then(n=>n.MY_GRADES_ROUTES)},{path:"my-settings",canActivate:[z()],loadChildren:()=>import("./chunk-S2U6O7J2.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/media/roboto-v30-latin-ext_latin-100.woff b/public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-100-FDBXK35P.woff similarity index 100% rename from public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-100.woff rename to public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-100-FDBXK35P.woff diff --git a/public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-300.woff b/public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-300-OLIJUZZX.woff similarity index 100% rename from public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-300.woff rename to public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-300-OLIJUZZX.woff diff --git a/public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-400.woff b/public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-400-66C7OQIV.woff similarity index 100% rename from public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-400.woff rename to public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-400-66C7OQIV.woff diff --git a/public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-500.woff b/public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-500-FSDH26ZJ.woff similarity index 100% rename from public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-500.woff rename to public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-500-FSDH26ZJ.woff diff --git a/public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-700.woff b/public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-700-G7TUGEUF.woff similarity index 100% rename from public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-700.woff rename to public/apps/webapp-schulverwaltung/media/roboto-v30-latin-ext_latin-700-G7TUGEUF.woff diff --git a/public/apps/webapp-schulverwaltung/polyfills-MH2GNY63.js b/public/apps/webapp-schulverwaltung/polyfills-MH2GNY63.js new file mode 100644 index 00000000..885d7788 --- /dev/null +++ b/public/apps/webapp-schulverwaltung/polyfills-MH2GNY63.js @@ -0,0 +1,2 @@ +var ce=globalThis;function te(e){return(ce.__Zone_symbol_prefix||"__zone_symbol__")+e}function Et(){let e=ce.performance;function t(L){e&&e.mark&&e.mark(L)}function c(L,s){e&&e.measure&&e.measure(L,s)}t("Zone");class n{static{this.__symbol__=te}static assertZonePatched(){if(ce.Promise!==O.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 s=n.current;for(;s.parent;)s=s.parent;return s}static get current(){return b.zone}static get currentTask(){return S}static __load_patch(s,i,o=!1){if(O.hasOwnProperty(s)){let E=ce[te("forceDuplicateZoneCheck")]===!0;if(!o&&E)throw Error("Already loaded patch: "+s)}else if(!ce["__Zone_disable_"+s]){let E="Zone:"+s;t(E),O[s]=i(ce,n,P),c(E,E)}}get parent(){return this._parent}get name(){return this._name}constructor(s,i){this._parent=s,this._name=i?i.name||"unnamed":"",this._properties=i&&i.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,i)}get(s){let i=this.getZoneWith(s);if(i)return i._properties[s]}getZoneWith(s){let i=this;for(;i;){if(i._properties.hasOwnProperty(s))return i;i=i._parent}return null}fork(s){if(!s)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,s)}wrap(s,i){if(typeof s!="function")throw new Error("Expecting function got: "+s);let o=this._zoneDelegate.intercept(this,s,i),E=this;return function(){return E.runGuarded(o,this,arguments,i)}}run(s,i,o,E){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,s,i,o,E)}finally{b=b.parent}}runGuarded(s,i=null,o,E){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,s,i,o,E)}catch(H){if(this._zoneDelegate.handleError(this,H))throw H}}finally{b=b.parent}}runTask(s,i,o){if(s.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(s.zone||K).name+"; Execution: "+this.name+")");let E=s,{type:H,data:{isPeriodic:ee=!1,isRefreshable:A=!1}={}}=s;if(s.state===W&&(H===G||H===m))return;let he=s.state!=j;he&&E._transitionTo(j,d);let _e=S;S=E,b={parent:b,zone:this};try{H==m&&s.data&&!ee&&!A&&(s.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,E,i,o)}catch(Q){if(this._zoneDelegate.handleError(this,Q))throw Q}}finally{let Q=s.state;if(Q!==W&&Q!==q)if(H==G||ee||A&&Q===k)he&&E._transitionTo(d,j,k);else{let Te=E._zoneDelegates;this._updateTaskCount(E,-1),he&&E._transitionTo(W,j,W),A&&(E._zoneDelegates=Te)}b=b.parent,S=_e}}scheduleTask(s){if(s.zone&&s.zone!==this){let o=this;for(;o;){if(o===s.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${s.zone.name}`);o=o.parent}}s._transitionTo(k,W);let i=[];s._zoneDelegates=i,s._zone=this;try{s=this._zoneDelegate.scheduleTask(this,s)}catch(o){throw s._transitionTo(q,k,W),this._zoneDelegate.handleError(this,o),o}return s._zoneDelegates===i&&this._updateTaskCount(s,1),s.state==k&&s._transitionTo(d,k),s}scheduleMicroTask(s,i,o,E){return this.scheduleTask(new T(B,s,i,o,E,void 0))}scheduleMacroTask(s,i,o,E,H){return this.scheduleTask(new T(m,s,i,o,E,H))}scheduleEventTask(s,i,o,E,H){return this.scheduleTask(new T(G,s,i,o,E,H))}cancelTask(s){if(s.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(s.zone||K).name+"; Execution: "+this.name+")");if(!(s.state!==d&&s.state!==j)){s._transitionTo($,d,j);try{this._zoneDelegate.cancelTask(this,s)}catch(i){throw s._transitionTo(q,$),this._zoneDelegate.handleError(this,i),i}return this._updateTaskCount(s,-1),s._transitionTo(W,$),s.runCount=-1,s}}_updateTaskCount(s,i){let o=s._zoneDelegates;i==-1&&(s._zoneDelegates=null);for(let E=0;EL.hasTask(i,o),onScheduleTask:(L,s,i,o)=>L.scheduleTask(i,o),onInvokeTask:(L,s,i,o,E,H)=>L.invokeTask(i,o,E,H),onCancelTask:(L,s,i,o)=>L.cancelTask(i,o)};class f{get zone(){return this._zone}constructor(s,i,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=s,this._parentDelegate=i,this._forkZS=o&&(o&&o.onFork?o:i._forkZS),this._forkDlgt=o&&(o.onFork?i:i._forkDlgt),this._forkCurrZone=o&&(o.onFork?this._zone:i._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:i._interceptZS),this._interceptDlgt=o&&(o.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this._zone:i._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:i._invokeZS),this._invokeDlgt=o&&(o.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this._zone:i._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:i._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this._zone:i._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:i._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this._zone:i._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:i._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this._zone:i._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:i._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this._zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let E=o&&o.onHasTask,H=i&&i._hasTaskZS;(E||H)&&(this._hasTaskZS=E?o:a,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,o.onScheduleTask||(this._scheduleTaskZS=a,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this._zone),o.onInvokeTask||(this._invokeTaskZS=a,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this._zone),o.onCancelTask||(this._cancelTaskZS=a,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this._zone))}fork(s,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,s,i):new n(s,i)}intercept(s,i,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,s,i,o):i}invoke(s,i,o,E,H){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,s,i,o,E,H):i.apply(o,E)}handleError(s,i){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,s,i):!0}scheduleTask(s,i){let o=i;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,s,i),o||(o=i);else if(i.scheduleFn)i.scheduleFn(i);else if(i.type==B)V(i);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(s,i,o,E){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,s,i,o,E):i.callback.apply(o,E)}cancelTask(s,i){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,s,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");o=i.cancelFn(i)}return o}hasTask(s,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,s,i)}catch(o){this.handleError(s,o)}}_updateTaskCount(s,i){let o=this._taskCounts,E=o[s],H=o[s]=E+i;if(H<0)throw new Error("More tasks executed then were scheduled.");if(E==0||H==0){let ee={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:s};this.hasTask(this._zone,ee)}}}class T{constructor(s,i,o,E,H,ee){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=s,this.source=i,this.data=E,this.scheduleFn=H,this.cancelFn=ee,!o)throw new Error("callback is not defined");this.callback=o;let A=this;s===G&&E&&E.useG?this.invoke=T.invokeTask:this.invoke=function(){return T.invokeTask.call(ce,A,this,arguments)}}static invokeTask(s,i,o){s||(s=this),J++;try{return s.runCount++,s.zone.runTask(s,i,o)}finally{J==1&&Y(),J--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(W,k)}_transitionTo(s,i,o){if(this._state===i||this._state===o)this._state=s,s==W&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${s}', expecting state '${i}'${o?" or '"+o+"'":""}, 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 g=te("setTimeout"),y=te("Promise"),N=te("then"),_=[],w=!1,M;function x(L){if(M||ce[y]&&(M=ce[y].resolve(0)),M){let s=M[N];s||(s=M.then),s.call(M,L)}else ce[g](L,0)}function V(L){J===0&&_.length===0&&x(Y),L&&_.push(L)}function Y(){if(!w){for(w=!0;_.length;){let L=_;_=[];for(let s=0;sb,onUnhandledError:F,microtaskDrainDone:F,scheduleMicroTask:V,showUncaughtError:()=>!n[te("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:F,patchMethod:()=>F,bindArguments:()=>[],patchThen:()=>F,patchMacroTask:()=>F,patchEventPrototype:()=>F,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>F,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>F,wrapWithCurrentZone:()=>F,filterProperties:()=>[],attachOriginToPatched:()=>F,_redefineProperty:()=>F,patchCallbacks:()=>F,nativeScheduleMicroTask:x},b={parent:null,zone:new n(null,null)},S=null,J=0;function F(){}return c("Zone","Zone"),n}function mt(){let e=globalThis,t=e[te("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(t||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=Et(),e.Zone}var be=Object.getOwnPropertyDescriptor,Ze=Object.defineProperty,xe=Object.getPrototypeOf,pt=Object.create,yt=Array.prototype.slice,$e="addEventListener",He="removeEventListener",Me=te($e),Le=te(He),ae="true",le="false",we=te("");function Be(e,t){return Zone.current.wrap(e,t)}function Ue(e,t,c,n,a){return Zone.current.scheduleMacroTask(e,t,c,n,a)}var Z=te,Se=typeof window<"u",ye=Se?window:void 0,X=Se&&ye||globalThis,kt="removeAttribute";function ze(e,t){for(let c=e.length-1;c>=0;c--)typeof e[c]=="function"&&(e[c]=Be(e[c],t+"_"+c));return e}function vt(e,t){let c=e.constructor.name;for(let n=0;n{let y=function(){return g.apply(this,ze(arguments,c+"."+a))};return fe(y,g),y})(f)}}}function rt(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var ot=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Oe=!("nw"in X)&&typeof X.process<"u"&&X.process.toString()==="[object process]",Ve=!Oe&&!ot&&!!(Se&&ye.HTMLElement),st=typeof X.process<"u"&&X.process.toString()==="[object process]"&&!ot&&!!(Se&&ye.HTMLElement),Ne={},bt=Z("enable_beforeunload"),Ke=function(e){if(e=e||X.event,!e)return;let t=Ne[e.type];t||(t=Ne[e.type]=Z("ON_PROPERTY"+e.type));let c=this||e.target||X,n=c[t],a;if(Ve&&c===ye&&e.type==="error"){let f=e;a=n&&n.call(this,f.message,f.filename,f.lineno,f.colno,f.error),a===!0&&e.preventDefault()}else a=n&&n.apply(this,arguments),e.type==="beforeunload"&&X[bt]&&typeof a=="string"?e.returnValue=a:a!=null&&!a&&e.preventDefault();return a};function Je(e,t,c){let n=be(e,t);if(!n&&c&&be(c,t)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;let a=Z("on"+t+"patched");if(e.hasOwnProperty(a)&&e[a])return;delete n.writable,delete n.value;let f=n.get,T=n.set,g=t.slice(2),y=Ne[g];y||(y=Ne[g]=Z("ON_PROPERTY"+g)),n.set=function(N){let _=this;if(!_&&e===X&&(_=X),!_)return;typeof _[y]=="function"&&_.removeEventListener(g,Ke),T&&T.call(_,null),_[y]=N,typeof N=="function"&&_.addEventListener(g,Ke,!1)},n.get=function(){let N=this;if(!N&&e===X&&(N=X),!N)return null;let _=N[y];if(_)return _;if(f){let w=f.call(this);if(w)return n.set.call(this,w),typeof N[kt]=="function"&&N.removeAttribute(t),w}return null},Ze(e,t,n),e[a]=!0}function it(e,t,c){if(t)for(let n=0;nfunction(T,g){let y=c(T,g);return y.cbIdx>=0&&typeof g[y.cbIdx]=="function"?Ue(y.name,g[y.cbIdx],y,a):f.apply(T,g)})}function fe(e,t){e[Z("OriginalDelegate")]=t}var Qe=!1,Ae=!1;function Pt(){try{let e=ye.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function Rt(){if(Qe)return Ae;Qe=!0;try{let e=ye.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Ae=!0)}catch{}return Ae}function et(e){return typeof e=="function"}function tt(e){return typeof e=="number"}var pe=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){pe=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{pe=!1}var Nt={useG:!0},ne={},ct={},at=new RegExp("^"+we+"(\\w+)(true|false)$"),lt=Z("propagationStopped");function ut(e,t){let c=(t?t(e):e)+le,n=(t?t(e):e)+ae,a=we+c,f=we+n;ne[e]={},ne[e][le]=a,ne[e][ae]=f}function St(e,t,c,n){let a=n&&n.add||$e,f=n&&n.rm||He,T=n&&n.listeners||"eventListeners",g=n&&n.rmAll||"removeAllListeners",y=Z(a),N="."+a+":",_="prependListener",w="."+_+":",M=function(k,d,j){if(k.isRemoved)return;let $=k.callback;typeof $=="object"&&$.handleEvent&&(k.callback=m=>$.handleEvent(m),k.originalDelegate=$);let q;try{k.invoke(k,d,[j])}catch(m){q=m}let B=k.options;if(B&&typeof B=="object"&&B.once){let m=k.originalDelegate?k.originalDelegate:k.callback;d[f].call(d,j.type,m,B)}return q};function x(k,d,j){if(d=d||e.event,!d)return;let $=k||d.target||e,q=$[ne[d.type][j?ae:le]];if(q){let B=[];if(q.length===1){let m=M(q[0],$,d);m&&B.push(m)}else{let m=q.slice();for(let G=0;G{throw G})}}}let V=function(k){return x(this,k,!1)},Y=function(k){return x(this,k,!0)};function K(k,d){if(!k)return!1;let j=!0;d&&d.useG!==void 0&&(j=d.useG);let $=d&&d.vh,q=!0;d&&d.chkDup!==void 0&&(q=d.chkDup);let B=!1;d&&d.rt!==void 0&&(B=d.rt);let m=k;for(;m&&!m.hasOwnProperty(a);)m=xe(m);if(!m&&k[a]&&(m=k),!m||m[y])return!1;let G=d&&d.eventNameToString,O={},P=m[y]=m[a],b=m[Z(f)]=m[f],S=m[Z(T)]=m[T],J=m[Z(g)]=m[g],F;d&&d.prepend&&(F=m[Z(d.prepend)]=m[d.prepend]);function L(r,u){return!pe&&typeof r=="object"&&r?!!r.capture:!pe||!u?r:typeof r=="boolean"?{capture:r,passive:!0}:r?typeof r=="object"&&r.passive!==!1?{...r,passive:!0}:r:{passive:!0}}let s=function(r){if(!O.isExisting)return P.call(O.target,O.eventName,O.capture?Y:V,O.options)},i=function(r){if(!r.isRemoved){let u=ne[r.eventName],v;u&&(v=u[r.capture?ae:le]);let R=v&&r.target[v];if(R){for(let p=0;pre.zone.cancelTask(re);r.call(ge,"abort",ie,{once:!0}),re.removeAbortListener=()=>ge.removeEventListener("abort",ie)}if(O.target=null,ke&&(ke.taskData=null),Fe&&(O.options.once=!0),!pe&&typeof re.options=="boolean"||(re.options=se),re.target=I,re.capture=Ie,re.eventName=D,z&&(re.originalDelegate=U),C?Ee.unshift(re):Ee.push(re),p)return I}};return m[a]=l(P,N,ee,A,B),F&&(m[_]=l(F,w,E,A,B,!0)),m[f]=function(){let r=this||e,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let v=arguments[2],R=v?typeof v=="boolean"?!0:v.capture:!1,p=arguments[1];if(!p)return b.apply(this,arguments);if($&&!$(b,p,r,arguments))return;let C=ne[u],I;C&&(I=C[R?ae:le]);let D=I&&r[I];if(D)for(let U=0;Ufunction(a,f){a[lt]=!0,n&&n.apply(a,f)})}function Ct(e,t){t.patchMethod(e,"queueMicrotask",c=>function(n,a){Zone.current.scheduleMicroTask("queueMicrotask",a[0])})}var Re=Z("zoneTask");function me(e,t,c,n){let a=null,f=null;t+=n,c+=n;let T={};function g(N){let _=N.data;_.args[0]=function(){return N.invoke.apply(this,arguments)};let w=a.apply(e,_.args);return tt(w)?_.handleId=w:(_.handle=w,_.isRefreshable=et(w.refresh)),N}function y(N){let{handle:_,handleId:w}=N.data;return f.call(e,_??w)}a=ue(e,t,N=>function(_,w){if(et(w[0])){let M={isRefreshable:!1,isPeriodic:n==="Interval",delay:n==="Timeout"||n==="Interval"?w[1]||0:void 0,args:w},x=w[0];w[0]=function(){try{return x.apply(this,arguments)}finally{let{handle:j,handleId:$,isPeriodic:q,isRefreshable:B}=M;!q&&!B&&($?delete T[$]:j&&(j[Re]=null))}};let V=Ue(t,w[0],M,g,y);if(!V)return V;let{handleId:Y,handle:K,isRefreshable:W,isPeriodic:k}=V.data;if(Y)T[Y]=V;else if(K&&(K[Re]=V,W&&!k)){let d=K.refresh;K.refresh=function(){let{zone:j,state:$}=V;return $==="notScheduled"?(V._state="scheduled",j._updateTaskCount(V,1)):$==="running"&&(V._state="scheduling"),d.call(this)}}return K??Y??V}else return N.apply(e,w)}),f=ue(e,c,N=>function(_,w){let M=w[0],x;tt(M)?(x=T[M],delete T[M]):(x=M?.[Re],x?M[Re]=null:x=M),x?.type?x.cancelFn&&x.zone.cancelTask(x):N.apply(e,w)})}function It(e,t){let{isBrowser:c,isMix:n}=t.getGlobalObjects();if(!c&&!n||!e.customElements||!("customElements"in e))return;let a=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];t.patchCallbacks(t,e.customElements,"customElements","define",a)}function Dt(e,t){if(Zone[t.symbol("patchEventTarget")])return;let{eventNames:c,zoneSymbolEventNames:n,TRUE_STR:a,FALSE_STR:f,ZONE_SYMBOL_PREFIX:T}=t.getGlobalObjects();for(let y=0;yf.target===e);if(!n||n.length===0)return t;let a=n[0].ignoreProperties;return t.filter(f=>a.indexOf(f)===-1)}function nt(e,t,c,n){if(!e)return;let a=ht(e,t,c);it(e,a,n)}function je(e){return Object.getOwnPropertyNames(e).filter(t=>t.startsWith("on")&&t.length>2).map(t=>t.substring(2))}function Lt(e,t){if(Oe&&!st||Zone[e.symbol("patchEvents")])return;let c=t.__Zone_ignore_on_properties,n=[];if(Ve){let a=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=Pt()?[{target:a,ignoreProperties:["error"]}]:[];nt(a,je(a),c&&c.concat(f),xe(a))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let a=0;a{let c=t[e.__symbol__("legacyPatch")];c&&c()}),e.__load_patch("timers",t=>{let c="set",n="clear";me(t,c,n,"Timeout"),me(t,c,n,"Interval"),me(t,c,n,"Immediate")}),e.__load_patch("requestAnimationFrame",t=>{me(t,"request","cancel","AnimationFrame"),me(t,"mozRequest","mozCancel","AnimationFrame"),me(t,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(t,c)=>{let n=["alert","prompt","confirm"];for(let a=0;afunction(N,_){return c.current.run(T,t,_,y)})}}),e.__load_patch("EventTarget",(t,c,n)=>{Mt(t,n),Dt(t,n);let a=t.XMLHttpRequestEventTarget;a&&a.prototype&&n.patchEventTarget(t,n,[a.prototype])}),e.__load_patch("MutationObserver",(t,c,n)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(t,c,n)=>{ve("IntersectionObserver")}),e.__load_patch("FileReader",(t,c,n)=>{ve("FileReader")}),e.__load_patch("on_property",(t,c,n)=>{Lt(n,t)}),e.__load_patch("customElements",(t,c,n)=>{It(t,n)}),e.__load_patch("XHR",(t,c)=>{N(t);let n=Z("xhrTask"),a=Z("xhrSync"),f=Z("xhrListener"),T=Z("xhrScheduled"),g=Z("xhrURL"),y=Z("xhrErrorBeforeScheduled");function N(_){let w=_.XMLHttpRequest;if(!w)return;let M=w.prototype;function x(P){return P[n]}let V=M[Me],Y=M[Le];if(!V){let P=_.XMLHttpRequestEventTarget;if(P){let b=P.prototype;V=b[Me],Y=b[Le]}}let K="readystatechange",W="scheduled";function k(P){let b=P.data,S=b.target;S[T]=!1,S[y]=!1;let J=S[f];V||(V=S[Me],Y=S[Le]),J&&Y.call(S,K,J);let F=S[f]=()=>{if(S.readyState===S.DONE)if(!b.aborted&&S[T]&&P.state===W){let s=S[c.__symbol__("loadfalse")];if(S.status!==0&&s&&s.length>0){let i=P.invoke;P.invoke=function(){let o=S[c.__symbol__("loadfalse")];for(let E=0;Efunction(P,b){return P[a]=b[2]==!1,P[g]=b[1],$.apply(P,b)}),q="XMLHttpRequest.send",B=Z("fetchTaskAborting"),m=Z("fetchTaskScheduling"),G=ue(M,"send",()=>function(P,b){if(c.current[m]===!0||P[a])return G.apply(P,b);{let S={target:P,url:P[g],isPeriodic:!1,args:b,aborted:!1},J=Ue(q,d,S,k,j);P&&P[y]===!0&&!S.aborted&&J.state===W&&J.invoke()}}),O=ue(M,"abort",()=>function(P,b){let S=x(P);if(S&&typeof S.type=="string"){if(S.cancelFn==null||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(c.current[B]===!0)return O.apply(P,b)})}}),e.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&vt(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(t,c)=>{function n(a){return function(f){ft(t,a).forEach(g=>{let y=t.PromiseRejectionEvent;if(y){let N=new y(a,{promise:f.promise,reason:f.rejection});g.invoke(N)}})}}t.PromiseRejectionEvent&&(c[Z("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),c[Z("rejectionHandledHandler")]=n("rejectionhandled"))}),e.__load_patch("queueMicrotask",(t,c,n)=>{Ct(t,n)})}function jt(e){e.__load_patch("ZoneAwarePromise",(t,c,n)=>{let a=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function T(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 g=n.symbol,y=[],N=t[g("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,_=g("Promise"),w=g("then"),M="__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(;y.length;){let h=y.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){V(l)}}};let x=g("unhandledPromiseRejectionHandler");function V(h){n.onUnhandledError(h);try{let l=c[x];typeof l=="function"&&l.call(this,h)}catch{}}function Y(h){return h&&h.then}function K(h){return h}function W(h){return A.reject(h)}let k=g("state"),d=g("value"),j=g("finally"),$=g("parentPromiseValue"),q=g("parentPromiseState"),B="Promise.then",m=null,G=!0,O=!1,P=0;function b(h,l){return r=>{try{L(h,l,r)}catch(u){L(h,!1,u)}}}let S=function(){let h=!1;return function(r){return function(){h||(h=!0,r.apply(null,arguments))}}},J="Promise resolved with itself",F=g("currentTaskTrace");function L(h,l,r){let u=S();if(h===r)throw new TypeError(J);if(h[k]===m){let v=null;try{(typeof r=="object"||typeof r=="function")&&(v=r&&r.then)}catch(R){return u(()=>{L(h,!1,R)})(),h}if(l!==O&&r instanceof A&&r.hasOwnProperty(k)&&r.hasOwnProperty(d)&&r[k]!==m)i(r),L(h,r[k],r[d]);else if(l!==O&&typeof v=="function")try{v.call(r,u(b(h,l)),u(b(h,!1)))}catch(R){u(()=>{L(h,!1,R)})()}else{h[k]=l;let R=h[d];if(h[d]=r,h[j]===j&&l===G&&(h[k]=h[q],h[d]=h[$]),l===O&&r instanceof Error){let p=c.currentTask&&c.currentTask.data&&c.currentTask.data[M];p&&f(r,F,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(let p=0;p{try{let C=h[d],I=!!r&&j===r[j];I&&(r[$]=C,r[q]=R);let D=l.run(p,void 0,I&&p!==W&&p!==K?[]:[C]);L(r,!0,D)}catch(C){L(r,!1,C)}},r)}let E="function ZoneAwarePromise() { [native code] }",H=function(){},ee=t.AggregateError;class A{static toString(){return E}static resolve(l){return l instanceof A?l:L(new this(null),G,l)}static reject(l){return L(new this(null),O,l)}static withResolvers(){let l={};return l.promise=new A((r,u)=>{l.resolve=r,l.reject=u}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new ee([],"All promises were rejected"));let r=[],u=0;try{for(let p of l)u++,r.push(A.resolve(p))}catch{return Promise.reject(new ee([],"All promises were rejected"))}if(u===0)return Promise.reject(new ee([],"All promises were rejected"));let v=!1,R=[];return new A((p,C)=>{for(let I=0;I{v||(v=!0,p(D))},D=>{R.push(D),u--,u===0&&(v=!0,C(new ee(R,"All promises were rejected")))})})}static race(l){let r,u,v=new this((C,I)=>{r=C,u=I});function R(C){r(C)}function p(C){u(C)}for(let C of l)Y(C)||(C=this.resolve(C)),C.then(R,p);return v}static all(l){return A.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof A?this:A).allWithCallback(l,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(l,r){let u,v,R=new this((D,U)=>{u=D,v=U}),p=2,C=0,I=[];for(let D of l){Y(D)||(D=this.resolve(D));let U=C;try{D.then(z=>{I[U]=r?r.thenCallback(z):z,p--,p===0&&u(I)},z=>{r?(I[U]=r.errorCallback(z),p--,p===0&&u(I)):v(z)})}catch(z){v(z)}p++,C++}return p-=2,p===0&&u(I),R}constructor(l){let r=this;if(!(r instanceof A))throw new Error("Must be an instanceof Promise.");r[k]=m,r[d]=[];try{let u=S();l&&l(u(b(r,G)),u(b(r,O)))}catch(u){L(r,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return A}then(l,r){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||A);let v=new u(H),R=c.current;return this[k]==m?this[d].push(R,v,l,r):o(this,R,v,l,r),v}catch(l){return this.then(null,l)}finally(l){let r=this.constructor?.[Symbol.species];(!r||typeof r!="function")&&(r=A);let u=new r(H);u[j]=j;let v=c.current;return this[k]==m?this[d].push(v,u,l,l):o(this,v,u,l,l),u}}A.resolve=A.resolve,A.reject=A.reject,A.race=A.race,A.all=A.all;let he=t[_]=t.Promise;t.Promise=A;let _e=g("thenPatched");function Q(h){let l=h.prototype,r=a(l,"then");if(r&&(r.writable===!1||!r.configurable))return;let u=l.then;l[w]=u,h.prototype.then=function(v,R){return new A((C,I)=>{u.call(this,C,I)}).then(v,R)},h[_e]=!0}n.patchThen=Q;function Te(h){return function(l,r){let u=h.apply(l,r);if(u instanceof A)return u;let v=u.constructor;return v[_e]||Q(v),u}}return he&&(Q(he),ue(t,"fetch",h=>Te(h))),Promise[c.__symbol__("uncaughtPromiseErrors")]=y,A})}function Zt(e){e.__load_patch("toString",t=>{let c=Function.prototype.toString,n=Z("OriginalDelegate"),a=Z("Promise"),f=Z("Error"),T=function(){if(typeof this=="function"){let _=this[n];if(_)return typeof _=="function"?c.call(_):Object.prototype.toString.call(_);if(this===Promise){let w=t[a];if(w)return c.call(w)}if(this===Error){let w=t[f];if(w)return c.call(w)}}return c.call(this)};T[n]=c,Function.prototype.toString=T;let g=Object.prototype.toString,y="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?y:g.call(this)}})}function xt(e,t,c,n,a){let f=Zone.__symbol__(n);if(t[f])return;let T=t[f]=t[n];t[n]=function(g,y,N){return y&&y.prototype&&a.forEach(function(_){let w=`${c}.${n}::`+_,M=y.prototype;try{if(M.hasOwnProperty(_)){let x=e.ObjectGetOwnPropertyDescriptor(M,_);x&&x.value?(x.value=e.wrapWithCurrentZone(x.value,w),e._redefineProperty(y.prototype,_,x)):M[_]&&(M[_]=e.wrapWithCurrentZone(M[_],w))}else M[_]&&(M[_]=e.wrapWithCurrentZone(M[_],w))}catch{}}),T.call(t,g,y,N)},e.attachOriginToPatched(t[n],T)}function $t(e){e.__load_patch("util",(t,c,n)=>{let a=je(t);n.patchOnProperties=it,n.patchMethod=ue,n.bindArguments=ze,n.patchMacroTask=wt;let f=c.__symbol__("BLACK_LISTED_EVENTS"),T=c.__symbol__("UNPATCHED_EVENTS");t[T]&&(t[f]=t[T]),t[f]&&(c[f]=c[T]=t[f]),n.patchEventPrototype=Ot,n.patchEventTarget=St,n.isIEOrEdge=Rt,n.ObjectDefineProperty=Ze,n.ObjectGetOwnPropertyDescriptor=be,n.ObjectCreate=pt,n.ArraySlice=yt,n.patchClass=ve,n.wrapWithCurrentZone=Be,n.filterProperties=ht,n.attachOriginToPatched=fe,n._redefineProperty=Object.defineProperty,n.patchCallbacks=xt,n.getGlobalObjects=()=>({globalSources:ct,zoneSymbolEventNames:ne,eventNames:a,isBrowser:Ve,isMix:st,isNode:Oe,TRUE_STR:ae,FALSE_STR:le,ZONE_SYMBOL_PREFIX:we,ADD_EVENT_LISTENER_STR:$e,REMOVE_EVENT_LISTENER_STR:He})})}function Ht(e){jt(e),Zt(e),$t(e)}var dt=mt();Ht(dt);At(dt);var Bt=":";var Ge=class{visitText(t,c){return t.value}visitContainer(t,c){return`[${t.children.map(n=>n.visit(this)).join(", ")}]`}visitIcu(t,c){let n=Object.keys(t.cases).map(a=>`${a} {${t.cases[a].visit(this)}}`);return`{${t.expression}, ${t.type}, ${n.join(", ")}}`}visitTagPlaceholder(t,c){return t.isVoid?``:`${t.children.map(n=>n.visit(this)).join(", ")}`}visitPlaceholder(t,c){return t.value?`${t.value}`:``}visitIcuPlaceholder(t,c){return`${t.value.visit(this)}`}visitBlockPlaceholder(t,c){return`${t.children.map(n=>n.visit(this)).join(", ")}`}},Vt=new Ge;var _t;(function(e){e[e.Little=0]="Little",e[e.Big=1]="Big"})(_t||(_t={}));function Ut(e,t){for(let c=1,n=1;c",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.ng-select-container{background:#fff;border-color:hsl(0,0%,70%) #ccc hsl(0,0%,85%)}.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:rgba(0,0,0,0) rgba(0,0,0,0) #999;border-width:0 5px 5px}.ng-select.ng-select-opened>.ng-select-container .ng-arrow:hover{border-color:rgba(0,0,0,0) rgba(0,0,0,0) #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 hsl(0,0%,90%)}.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 rgb(183.6,218.88,255)}[dir=rtl] .ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.left{border-left:1px solid rgb(183.6,218.88,255);border-right:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon.right{border-left:1px solid rgb(183.6,218.88,255)}[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 rgb(183.6,218.88,255)}.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 rgba(0,0,0,0) rgba(0,0,0,0);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-FDBXK35P.woff") format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:url("./media/roboto-v30-latin-ext_latin-300-OLIJUZZX.woff") format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:url("./media/roboto-v30-latin-ext_latin-400-66C7OQIV.woff") format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:500;src:url("./media/roboto-v30-latin-ext_latin-500-FSDH26ZJ.woff") format("woff")}@font-face{font-family:Roboto;font-style:normal;font-weight:700;src:url("./media/roboto-v30-latin-ext_latin-700-G7TUGEUF.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,mi,mo,mn{font-size:1rem}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} diff --git a/public/apps/webapp-schulverwaltung/styles.css b/public/apps/webapp-schulverwaltung/styles.css deleted file mode 100644 index 662d32f7..00000000 --- a/public/apps/webapp-schulverwaltung/styles.css +++ /dev/null @@ -1 +0,0 @@ -@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,mi,mo,mn{font-size:1rem}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}