dealposbooks 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/3rdpartylicenses.txt +26 -26
  2. package/assets/scss/fonts/montserrat/Montserrat-Bold.woff2 +0 -0
  3. package/assets/scss/fonts/montserrat/Montserrat-Italic.woff2 +0 -0
  4. package/assets/scss/fonts/montserrat/Montserrat-Regular.woff2 +0 -0
  5. package/assets/scss/fonts/montserrat/Montserrat-SemiBold.woff2 +0 -0
  6. package/assets/scss/layouts/_layout.scss +6 -6
  7. package/assets/scss/layouts/_sidebar.scss +8 -6
  8. package/assets/scss/style.scss +20 -8
  9. package/assets/scss/variables/_variables.scss +12 -51
  10. package/{chunk-7X454BGN.js → chunk-25PFXJAK.js} +1 -1
  11. package/{chunk-4Z6KFX2O.js → chunk-2ODJIB2A.js} +2 -2
  12. package/chunk-2RWUYFYR.js +1 -0
  13. package/chunk-3GWDCNXX.js +397 -0
  14. package/{chunk-7RH6F4PN.js → chunk-4ANSU2AT.js} +3 -1
  15. package/{chunk-UZFJYFH2.js → chunk-52HZNWBM.js} +4 -2
  16. package/{chunk-2QCAOSMO.js → chunk-63UNI6LK.js} +1 -1
  17. package/chunk-7LG2CFYI.js +1 -0
  18. package/{chunk-33RD6RQS.js → chunk-AH4LZWJY.js} +1 -1
  19. package/chunk-AKBPKNCH.js +1 -0
  20. package/chunk-AOB6BRGQ.js +1 -0
  21. package/{chunk-YUFMXLRG.js → chunk-ATVC2UCR.js} +1 -1
  22. package/chunk-AWY6AD76.js +1 -0
  23. package/chunk-B4JAAGJX.js +1 -0
  24. package/chunk-BGKS3L73.js +246 -0
  25. package/{chunk-URKXDZJE.js → chunk-C66O26ZI.js} +1 -1
  26. package/chunk-C6Q5SG76.js +1 -0
  27. package/chunk-DOKYUX3G.js +1 -0
  28. package/{chunk-6TJIZZK6.js → chunk-E6EWXQXJ.js} +1 -1
  29. package/{chunk-EE4WG35V.js → chunk-E6QGADC5.js} +6 -2
  30. package/chunk-EN5MVYJQ.js +180 -0
  31. package/chunk-EP22HTZC.js +300 -0
  32. package/chunk-FJ7O4K2Y.js +1 -0
  33. package/chunk-FVXLQNAC.js +193 -0
  34. package/chunk-G52TDPSD.js +297 -0
  35. package/chunk-GCTIPWTU.js +1 -0
  36. package/chunk-GMTXOQ6X.js +1 -0
  37. package/chunk-GRTIJ77T.js +1 -0
  38. package/chunk-HG23WDL5.js +1660 -0
  39. package/chunk-I4HDCL3W.js +1 -0
  40. package/{chunk-MQJQRREL.js → chunk-I7MT7OUB.js} +1 -1
  41. package/chunk-ISXV3FIH.js +1 -0
  42. package/{chunk-QUR72LET.js → chunk-JFAO2CIB.js} +1 -1
  43. package/chunk-JQNCWTZN.js +1 -0
  44. package/{chunk-ONU5ICNZ.js → chunk-JT2WCR5Q.js} +1 -1
  45. package/chunk-JXNLXEJT.js +1 -0
  46. package/chunk-K36WQVFR.js +1 -0
  47. package/{chunk-U2S74ZLK.js → chunk-KFHCGO62.js} +1 -1
  48. package/chunk-LCATVZKP.js +141 -0
  49. package/chunk-LJMMN36O.js +1 -0
  50. package/{chunk-I72ECAQH.js → chunk-MNPBLC23.js} +1 -1
  51. package/chunk-NQ24E7JY.js +1 -0
  52. package/chunk-NTDTN5DF.js +1 -0
  53. package/{chunk-2XZW23PQ.js → chunk-O7OAT4UO.js} +1 -1
  54. package/chunk-OHVHLILJ.js +1 -0
  55. package/chunk-OJWZH7AB.js +301 -0
  56. package/{chunk-D5U6AOFB.js → chunk-PG4QL7N2.js} +1 -1
  57. package/{chunk-2LKTSMUI.js → chunk-PNAWRNGD.js} +7 -7
  58. package/chunk-QJ2XA575.js +1 -0
  59. package/chunk-RJYIKNTI.js +1 -0
  60. package/chunk-RR5AUWZO.js +1 -0
  61. package/chunk-RSHFIZV3.js +7 -0
  62. package/chunk-SQKLMC5H.js +231 -0
  63. package/chunk-T3ZCO6EC.js +1 -0
  64. package/chunk-T7R7C3RX.js +1 -0
  65. package/chunk-TJSPXPO6.js +59 -0
  66. package/chunk-TNXHYK2R.js +7 -0
  67. package/chunk-TTG6XQNP.js +1 -0
  68. package/chunk-UC2RR4WT.js +210 -0
  69. package/chunk-UOFRXQI7.js +1 -0
  70. package/{chunk-M4ZOPGSP.js → chunk-UVBFYB2X.js} +1 -1
  71. package/chunk-WCQQSWYQ.js +616 -0
  72. package/{chunk-ZT4NOONZ.js → chunk-WTRMIJHX.js} +1 -1
  73. package/chunk-Z4SGDPGH.js +821 -0
  74. package/chunk-ZNN2E36Y.js +1 -0
  75. package/index.html +3 -3
  76. package/main-F2OQVLJM.js +1 -0
  77. package/package.json +1 -1
  78. package/styles-GUJHQHWA.css +1 -0
  79. package/chunk-3ROVFYLI.js +0 -189
  80. package/chunk-3UAQZJAG.js +0 -180
  81. package/chunk-7KARVIIN.js +0 -1
  82. package/chunk-A3I2VQNX.js +0 -141
  83. package/chunk-A3MXO6MA.js +0 -1
  84. package/chunk-B5ZO2I4D.js +0 -2
  85. package/chunk-BP2JJ6HZ.js +0 -160
  86. package/chunk-BWO4PVAG.js +0 -301
  87. package/chunk-C4WUUVLC.js +0 -1
  88. package/chunk-CH2GYE5J.js +0 -1
  89. package/chunk-DF2QDC4T.js +0 -1
  90. package/chunk-DKWZOSVY.js +0 -59
  91. package/chunk-EEJWF26F.js +0 -1
  92. package/chunk-EQDQRRRY.js +0 -1
  93. package/chunk-F7FJPDUV.js +0 -1
  94. package/chunk-FDDNZH4H.js +0 -1633
  95. package/chunk-FYNIFRG5.js +0 -1
  96. package/chunk-HKMI4ZYY.js +0 -393
  97. package/chunk-HU6SF3HD.js +0 -1
  98. package/chunk-IWUDRSTJ.js +0 -235
  99. package/chunk-KJWN47PL.js +0 -1
  100. package/chunk-MVGPOIFT.js +0 -1
  101. package/chunk-OHEAUNEW.js +0 -1
  102. package/chunk-P4OJNULI.js +0 -1
  103. package/chunk-PCJXJ6O4.js +0 -370
  104. package/chunk-PFXPLNMA.js +0 -1
  105. package/chunk-PQTHPF23.js +0 -7
  106. package/chunk-PV6INEW2.js +0 -1
  107. package/chunk-QPA73UD5.js +0 -616
  108. package/chunk-RFZOXUTS.js +0 -1
  109. package/chunk-RIUEIX64.js +0 -1
  110. package/chunk-UPDO63XT.js +0 -1
  111. package/chunk-UQ3SWGEA.js +0 -1
  112. package/chunk-WZKSD7XN.js +0 -284
  113. package/chunk-X2CQD76I.js +0 -208
  114. package/chunk-YX7446ZM.js +0 -1
  115. package/chunk-Z53S4NM2.js +0 -736
  116. package/main-U76NYT5G.js +0 -1
  117. package/styles-OZO2XDGZ.css +0 -1
@@ -1,30 +1,4 @@
1
1
 
2
- --------------------------------------------------------------------------------
3
- Package: @angular/animations
4
- License: "MIT"
5
-
6
- The MIT License
7
-
8
- Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
9
-
10
- Permission is hereby granted, free of charge, to any person obtaining a copy
11
- of this software and associated documentation files (the "Software"), to deal
12
- in the Software without restriction, including without limitation the rights
13
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
- copies of the Software, and to permit persons to whom the Software is
15
- furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in
18
- all copies or substantial portions of the Software.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
- THE SOFTWARE.
27
-
28
2
  --------------------------------------------------------------------------------
29
3
  Package: primeng
30
4
  License: "SEE LICENSE IN LICENSE.md"
@@ -107,6 +81,32 @@ The term “Software” includes all source and object code, in whole and/or par
107
81
  9. **Indemnification:** Licensee hereby warrants to hold Licensor harmless and indemnify Licensor for any lawsuit brought against it in regards to Licensee’s use of The Software in means that violate, breach or otherwise circumvent this license, Licensor's intellectual property rights or Licensor's title in The Software. Licensor shall promptly notify Licensee in case of such legal action and request Licensee’s consent prior to any settlement in relation to such lawsuit or claim.
108
82
  10. **Governing Law, Jurisdiction:** Licensee hereby agrees not to initiate class-action lawsuits against Licensor in relation to this license and to compensate Licensor for any legal fees, cost or attorney fees should any claim brought by Licensee against Licensor be denied, in part or in full.
109
83
 
84
+ --------------------------------------------------------------------------------
85
+ Package: @angular/animations
86
+ License: "MIT"
87
+
88
+ The MIT License
89
+
90
+ Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
91
+
92
+ Permission is hereby granted, free of charge, to any person obtaining a copy
93
+ of this software and associated documentation files (the "Software"), to deal
94
+ in the Software without restriction, including without limitation the rights
95
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
96
+ copies of the Software, and to permit persons to whom the Software is
97
+ furnished to do so, subject to the following conditions:
98
+
99
+ The above copyright notice and this permission notice shall be included in
100
+ all copies or substantial portions of the Software.
101
+
102
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
103
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
104
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
105
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
106
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
107
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
108
+ THE SOFTWARE.
109
+
110
110
  --------------------------------------------------------------------------------
111
111
  Package: @angular/platform-browser
112
112
  License: "MIT"
@@ -14,7 +14,7 @@
14
14
  position: relative;
15
15
  height: 100vh;
16
16
  transition: 0.5s ease 0s;
17
- background-color: #f9fafb;
17
+ background-color: #f3f3f3;
18
18
  }
19
19
 
20
20
  .page-wrapper > .container-fluid {
@@ -314,11 +314,11 @@ $left-part-width: 260px;
314
314
  }
315
315
  }
316
316
 
317
- &.show-sidebar {
318
- .left-sidebar {
319
- left: 0;
320
- }
321
- }
317
+ // &.show-sidebar {
318
+ // .left-sidebar {
319
+ // left: 0;
320
+ // }
321
+ // }
322
322
 
323
323
  &[data-layout='vertical'] {
324
324
  .topbar .top-navbar {
@@ -1,5 +1,5 @@
1
1
  // Sidebar
2
- $sidebar-link-padding: 8px 15px;
2
+ $sidebar-link-padding: 15px 15px;
3
3
  $sidebar-icon-size: 20px;
4
4
  $sidebar-first-level-padding: 0 0 0 0;
5
5
  $sidebar-first-level-link-padding: 8px 15px;
@@ -18,7 +18,7 @@ Main sidebar
18
18
  top: 0px;
19
19
  z-index: 99;
20
20
 
21
- background: $theme-light;
21
+ background: #202123;
22
22
 
23
23
  box-shadow: $shadow;
24
24
  transition: 0.2s ease-in;
@@ -64,7 +64,7 @@ sidebar navigation
64
64
  margin-bottom: 5px;
65
65
 
66
66
  .sidebar-link {
67
- color: $sidebar-text;
67
+ color: #fff;
68
68
 
69
69
  padding: $sidebar-link-padding;
70
70
  display: flex;
@@ -121,6 +121,7 @@ sidebar navigation
121
121
  height: 30px;
122
122
  display: flex;
123
123
  align-items: center;
124
+ justify-content: center;
124
125
  }
125
126
  }
126
127
 
@@ -137,6 +138,7 @@ sidebar navigation
137
138
 
138
139
  .sidebar-item.active > .sidebar-link {
139
140
  opacity: 1;
141
+ // background: $green;
140
142
  // color: #fff;
141
143
  }
142
144
 
@@ -155,7 +157,7 @@ sidebar navigation
155
157
  > .sidebar-link {
156
158
  opacity: 1;
157
159
  color: #fff;
158
- background: $themecolor;
160
+ background: $green;
159
161
  border-radius: $border-radius;
160
162
  }
161
163
 
@@ -164,7 +166,7 @@ sidebar navigation
164
166
  > .sidebar-link {
165
167
  // opacity: 0.8; // Bisa disesuaikan
166
168
  color: #000;
167
- background: #fff;
169
+ background: $green;
168
170
  }
169
171
  }
170
172
  }
@@ -179,7 +181,7 @@ sidebar navigation
179
181
  white-space: nowrap;
180
182
  line-height: 26px;
181
183
  margin-top: 24px;
182
- color: $sidebar-text;
184
+ color: $sidebar-alt;
183
185
  text-transform: uppercase;
184
186
  opacity: 0.4;
185
187
  font-weight: 500;
@@ -108,19 +108,19 @@
108
108
 
109
109
  // primeng
110
110
  .p-datatable-thead > tr > th {
111
- background-color: #2175d0 !important;
112
- color: #fff !important;
111
+ background-color: #f6f6f6 !important;
112
+ color: #333 !important;
113
113
  }
114
114
  .p-dialog {
115
115
  overflow: hidden;
116
116
  border: none !important;
117
117
 
118
- &::before {
119
- content: '';
120
- background-color: #2175d0;
121
- height: 5px;
122
- width: 100%;
123
- }
118
+ // &::before {
119
+ // content: '';
120
+ // background-color: #2175d0;
121
+ // height: 5px;
122
+ // width: 100%;
123
+ // }
124
124
  }
125
125
 
126
126
  .p-dialog-header-actions {
@@ -143,3 +143,15 @@
143
143
  flex-direction: column;
144
144
  justify-content: space-between;
145
145
  }
146
+
147
+ .custom-scrollbar-thumb {
148
+ background-color: var(
149
+ --scrollbar-thumb-color,
150
+ #0d6efd
151
+ ); /* fallback to blue */
152
+ border-radius: 10px;
153
+ }
154
+
155
+ .custom-scrollbar-track {
156
+ background-color: var(--scrollbar-track-color, #f1f1f1);
157
+ }
@@ -1,39 +1,7 @@
1
1
  // ----------------------------------------------
2
2
  // Variables Style
3
3
  // ----------------------------------------------
4
- @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&family=Roboto+Slab:wght@400;700&display=swap');
5
-
6
- // $font-path: '/assets/scss/fonts'; // Update this to the correct path where your fonts are stored
7
-
8
- // @mixin font-face($name, $weight: normal, $style: normal) {
9
- // @font-face {
10
- // font-family: 'Montserrat';
11
- // src: url('#{$font-path}/#{$name}.woff2') format('woff2');
12
- // font-weight: $weight;
13
- // font-style: $style;
14
- // }
15
- // }
16
-
17
- // // Include each font variation
18
- // @include font-face('Montserrat-Thin', 100);
19
- // @include font-face('Montserrat-ExtraLight', 200);
20
- // @include font-face('Montserrat-Light', 300);
21
- // @include font-face('Montserrat-Regular', 400);
22
- // @include font-face('Montserrat-Medium', 500);
23
- // @include font-face('Montserrat-SemiBold', 600);
24
- // @include font-face('Montserrat-Bold', 700);
25
- // @include font-face('Montserrat-ExtraBold', 800);
26
- // @include font-face('Montserrat-Black', 900);
27
-
28
- // @include font-face('Montserrat-ThinItalic', 100, italic);
29
- // @include font-face('Montserrat-ExtraLightItalic', 200, italic);
30
- // @include font-face('Montserrat-LightItalic', 300, italic);
31
- // @include font-face('Montserrat-Italic', 400, italic);
32
- // @include font-face('Montserrat-MediumItalic', 500, italic);
33
- // @include font-face('Montserrat-SemiBoldItalic', 600, italic);
34
- // @include font-face('Montserrat-BoldItalic', 700, italic);
35
- // @include font-face('Montserrat-ExtraBoldItalic', 800, italic);
36
- // @include font-face('Montserrat-BlackItalic', 900, italic);
4
+ @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
37
5
 
38
6
  // colors
39
7
  $white: #fff !default;
@@ -57,7 +25,7 @@ $pink: #e83e8c !default;
57
25
  $red: #ef5350 !default;
58
26
  $orange: #fb8c00 !default;
59
27
  $yellow: #ffb22b !default;
60
- $green: #0acc95 !default;
28
+ $green: #0a8754 !default;
61
29
  $teal: #20c997 !default;
62
30
  $cyan: #26c6da !default;
63
31
  $text-muted: $gray-500 !default;
@@ -186,29 +154,22 @@ $btn-font-size: 14px !default;
186
154
  $btn-border-radius-lg: 60px !default;
187
155
 
188
156
  // Font Family
189
- $font-family-sans-serif: 'Roboto Slab', sans-serif !default;
190
- $font-size-base: 0.875rem !default;
191
- $small-font-size: 12px !default;
192
-
193
- body,
194
- p {
195
- font-family: 'Roboto', sans-serif;
196
- }
197
- h1,
198
- h2,
199
- h3,
200
- h4,
201
- h5,
202
- h6 {
203
- font-family: 'Roboto Slab', serif;
204
- }
205
-
157
+ $font-size-base: 1rem;
158
+ // $font-weight-base: 300 !default;
159
+ $font-family-sans-serif: 'Montserrat', sans-serif !default;
160
+ $font-weight-light: 300 !default;
161
+ $font-weight-normal: 400 !default;
162
+ $font-weight-medium: 500 !default;
163
+ $font-weight-bold: 800 !default;
206
164
  $h1-font-size: 36px !default;
207
165
  $h2-font-size: 24px !default;
208
166
  $h3-font-size: 21px !default;
209
167
  $h4-font-size: 18px !default;
210
168
  $h5-font-size: 16px !default;
211
169
  $h6-font-size: 14px !default;
170
+ $headings-margin-bottom: 8px !default;
171
+ $headings-font-weight: 400 !default;
172
+ $headings-color: #455a64 !default;
212
173
 
213
174
  // Font Sizes
214
175
  $font-sizes: (
@@ -1,2 +1,2 @@
1
- import{a as gr,b as si,c as oi,d as U,e as ai,f as Be,g as ci,h as ui,i as Ve,j as Tt,u as li,w as mr,x as vr,y as Et}from"./chunk-C4WUUVLC.js";import{$a as kn,$b as Kn,$c as ii,Aa as An,Ab as wt,Ca as vt,Da as me,E as W,Ea as q,Eb as Xn,Fa as or,Gb as fr,Ha as Dn,Hb as Jn,Ia as ar,J as se,Ja as On,Jb as pr,K as Y,Lb as Fe,Ma as Pn,Mb as ze,N as rr,Na as cr,Nb as Zn,Nc as Rt,O as fe,Oa as Nn,Pa as ae,Qc as St,Ra as ur,S as pe,Sa as lr,T as Q,Ta as Un,Tc as ri,U as nr,Uc as ni,V as Sn,Va as _n,Vc as bt,W as bn,Wa as je,Xa as ve,Y as Tn,Ya as ye,Z as x,Za as xn,_ as En,_a as Ln,a as gn,aa as A,ab as jn,bb as $n,c as mn,cb as Fn,d as vn,da as E,db as zn,e as Qt,eb as ce,f as er,g as K,ga as R,h as j,ha as gt,hb as Bn,hc as Yn,ia as Cn,ja as C,k as H,ka as ir,la as v,lb as z,lc as Qn,m as O,ma as d,mb as Vn,n as p,na as ge,nb as $e,nc as ei,o as xe,oc as ti,p as yn,pa as Mn,q as wn,qa as oe,qb as qn,ra as $,rb as dr,sb as Gn,t as b,ta as mt,u as pt,v as _,vb as Hn,w as Le,x as Rn,xa as sr,xb as hr,y as tr,ya as In,yb as Wn,za as ke,zb as yt}from"./chunk-PQTHPF23.js";import{a as f,b as P,c as pn}from"./chunk-EQDQRRRY.js";var Ge=class{},It=class{},te=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(r){r?typeof r=="string"?this.lazyInit=()=>{this.headers=new Map,r.split(`
1
+ import{a as gr,b as si,c as oi,d as U,e as ai,f as Be,g as ci,h as ui,i as Ve,j as Tt,u as li,w as mr,x as vr,y as Et}from"./chunk-GRTIJ77T.js";import{$ as E,$a as zn,Aa as q,Ab as Xn,Ba as or,Cb as fr,D as W,Da as Dn,Db as Jn,Ea as ar,Fa as On,Fb as pr,Hb as Fe,I as se,Ia as Pn,Ib as ze,J as Y,Ja as cr,Jb as Zn,Jc as Rt,Ka as Nn,La as ae,M as rr,Mc as St,N as fe,Na as ur,Oa as lr,Pa as Un,Pc as ri,Q as pe,Qc as ni,R as Q,Ra as _n,Rc as bt,S as nr,Sa as je,T as Sn,Ta as ve,U as bn,Ua as ye,Va as xn,W as Tn,Wa as Ln,Wb as Kn,X as x,Xa as kn,Xc as ii,Y as En,Ya as jn,Z as A,Za as $n,_a as Fn,a as gn,ab as ce,c as mn,ca as R,d as vn,da as gt,db as Bn,dc as Yn,e as Qt,ea as Cn,f as er,fa as C,g as K,ga as ir,h as j,ha as v,hb as z,hc as Qn,ia as d,ib as Vn,ja as ge,jb as $e,jc as ei,k as H,kc as ti,l as O,la as Mn,m as p,ma as oe,mb as qn,n as xe,na as $,nb as dr,o as yn,ob as Gn,p as wn,pa as mt,rb as Hn,s as b,t as pt,ta as sr,tb as hr,u as _,ua as In,ub as Wn,v as Le,va as ke,vb as yt,w as Rn,wa as An,wb as wt,x as tr,ya as vt,za as me}from"./chunk-RSHFIZV3.js";import{a as f,b as P,c as pn}from"./chunk-C6Q5SG76.js";var Ge=class{},It=class{},te=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(r){r?typeof r=="string"?this.lazyInit=()=>{this.headers=new Map,r.split(`
2
2
  `).forEach(e=>{let n=e.indexOf(":");if(n>0){let i=e.slice(0,n),s=e.slice(n+1).trim();this.addHeaderEntry(i,s)}})}:typeof Headers<"u"&&r instanceof Headers?(this.headers=new Map,r.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(r).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(r){return this.init(),this.headers.has(r.toLowerCase())}get(r){this.init();let e=this.headers.get(r.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(r){return this.init(),this.headers.get(r.toLowerCase())||null}append(r,e){return this.clone({name:r,value:e,op:"a"})}set(r,e){return this.clone({name:r,value:e,op:"s"})}delete(r,e){return this.clone({name:r,value:e,op:"d"})}maybeSetNormalizedName(r,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,r)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(r=>this.applyUpdate(r)),this.lazyUpdate=null))}copyFrom(r){r.init(),Array.from(r.headers.keys()).forEach(e=>{this.headers.set(e,r.headers.get(e)),this.normalizedNames.set(e,r.normalizedNames.get(e))})}clone(r){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([r]),e}applyUpdate(r){let e=r.name.toLowerCase();switch(r.op){case"a":case"s":let n=r.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(r.name,e);let i=(r.op==="a"?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":let s=r.value;if(!s)this.headers.delete(e),this.normalizedNames.delete(e);else{let o=this.headers.get(e);if(!o)return;o=o.filter(c=>s.indexOf(c)===-1),o.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}break}}addHeaderEntry(r,e){let n=r.toLowerCase();this.maybeSetNormalizedName(r,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(r,e){let n=(Array.isArray(e)?e:[e]).map(s=>s.toString()),i=r.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(r,i)}forEach(r){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>r(this.normalizedNames.get(e),this.headers.get(e)))}};var wr=class{encodeKey(r){return di(r)}encodeValue(r){return di(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}};function xs(t,r){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let s=i.indexOf("="),[o,c]=s==-1?[r.decodeKey(i),""]:[r.decodeKey(i.slice(0,s)),r.decodeValue(i.slice(s+1))],a=e.get(o)||[];a.push(c),e.set(o,a)}),e}var Ls=/%(\d[a-f0-9])/gi,ks={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function di(t){return encodeURIComponent(t).replace(Ls,(r,e)=>ks[e]??r)}function Ct(t){return`${t}`}var ee=class t{map;encoder;updates=null;cloneFrom=null;constructor(r={}){if(this.encoder=r.encoder||new wr,r.fromString){if(r.fromObject)throw new E(2805,!1);this.map=xs(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(e=>{let n=r.fromObject[e],i=Array.isArray(n)?n.map(Ct):[Ct(n)];this.map.set(e,i)})):this.map=null}has(r){return this.init(),this.map.has(r)}get(r){this.init();let e=this.map.get(r);return e?e[0]:null}getAll(r){return this.init(),this.map.get(r)||null}keys(){return this.init(),Array.from(this.map.keys())}append(r,e){return this.clone({param:r,value:e,op:"a"})}appendAll(r){let e=[];return Object.keys(r).forEach(n=>{let i=r[n];Array.isArray(i)?i.forEach(s=>{e.push({param:n,value:s,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}set(r,e){return this.clone({param:r,value:e,op:"s"})}delete(r,e){return this.clone({param:r,value:e,op:"d"})}toString(){return this.init(),this.keys().map(r=>{let e=this.encoder.encodeKey(r);return this.map.get(r).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(r=>r!=="").join("&")}clone(r){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(r),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(r=>this.map.set(r,this.cloneFrom.map.get(r))),this.updates.forEach(r=>{switch(r.op){case"a":case"s":let e=(r.op==="a"?this.map.get(r.param):void 0)||[];e.push(Ct(r.value)),this.map.set(r.param,e);break;case"d":if(r.value!==void 0){let n=this.map.get(r.param)||[],i=n.indexOf(Ct(r.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(r.param,n):this.map.delete(r.param)}else{this.map.delete(r.param);break}}}),this.cloneFrom=this.updates=null)}};var Rr=class{map=new Map;set(r,e){return this.map.set(r,e),this}get(r){return this.map.has(r)||this.map.set(r,r.defaultValue()),this.map.get(r)}delete(r){return this.map.delete(r),this}has(r){return this.map.has(r)}keys(){return this.map.keys()}};function js(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function hi(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function fi(t){return typeof Blob<"u"&&t instanceof Blob}function pi(t){return typeof FormData<"u"&&t instanceof FormData}function $s(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var gi="Content-Type",mi="Accept",Si="X-Request-URL",bi="text/plain",Ti="application/json",Fs=`${Ti}, ${bi}, */*`,qe=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(r,e,n,i){this.url=e,this.method=r.toUpperCase();let s;if(js(this.method)||i?(this.body=n!==void 0?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),this.transferCache=s.transferCache),this.headers??=new te,this.context??=new Rr,!this.params)this.params=new ee,this.urlWithParams=e;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=e;else{let c=e.indexOf("?"),a=c===-1?"?":c<e.length-1?"&":"";this.urlWithParams=e+a+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||hi(this.body)||fi(this.body)||pi(this.body)||$s(this.body)?this.body:this.body instanceof ee?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||pi(this.body)?null:fi(this.body)?this.body.type||null:hi(this.body)?null:typeof this.body=="string"?bi:this.body instanceof ee?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Ti:null}clone(r={}){let e=r.method||this.method,n=r.url||this.url,i=r.responseType||this.responseType,s=r.transferCache??this.transferCache,o=r.body!==void 0?r.body:this.body,c=r.withCredentials??this.withCredentials,a=r.reportProgress??this.reportProgress,u=r.headers||this.headers,l=r.params||this.params,h=r.context??this.context;return r.setHeaders!==void 0&&(u=Object.keys(r.setHeaders).reduce((g,S)=>g.set(S,r.setHeaders[S]),u)),r.setParams&&(l=Object.keys(r.setParams).reduce((g,S)=>g.set(S,r.setParams[S]),l)),new t(e,n,o,{params:l,headers:u,context:h,reportProgress:a,responseType:i,withCredentials:c,transferCache:s})}},we=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}(we||{}),He=class{headers;status;statusText;url;ok;type;constructor(r,e=200,n="OK"){this.headers=r.headers||new te,this.status=r.status!==void 0?r.status:e,this.statusText=r.statusText||n,this.url=r.url||null,this.ok=this.status>=200&&this.status<300}},Sr=class t extends He{constructor(r={}){super(r)}type=we.ResponseHeader;clone(r={}){return new t({headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}},Re=class t extends He{body;constructor(r={}){super(r),this.body=r.body!==void 0?r.body:null}type=we.Response;clone(r={}){return new t({body:r.body!==void 0?r.body:this.body,headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}},At=class extends He{name="HttpErrorResponse";message;error;ok=!1;constructor(r){super(r,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${r.url||"(unknown url)"}`:this.message=`Http failure response for ${r.url||"(unknown url)"}: ${r.status} ${r.statusText}`,this.error=r.error||null}},zs=200,Bs=204;function yr(t,r){return{body:r,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 Vs=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,i={}){let s;if(e instanceof qe)s=e;else{let a;i.headers instanceof te?a=i.headers:a=new te(i.headers);let u;i.params&&(i.params instanceof ee?u=i.params:u=new ee({fromObject:i.params})),s=new qe(e,n,i.body!==void 0?i.body:null,{headers:a,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let o=p(s).pipe(Y(a=>this.handler.handle(a)));if(e instanceof qe||i.observe==="events")return o;let c=o.pipe(W(a=>a instanceof Re));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(b(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new E(2806,!1);return a.body}));case"blob":return c.pipe(b(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new E(2807,!1);return a.body}));case"text":return c.pipe(b(a=>{if(a.body!==null&&typeof a.body!="string")throw new E(2808,!1);return a.body}));case"json":default:return c.pipe(b(a=>a.body))}case"response":return c;default:throw new E(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new ee().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,i={}){return this.request("PATCH",e,yr(i,n))}post(e,n,i={}){return this.request("POST",e,yr(i,n))}put(e,n,i={}){return this.request("PUT",e,yr(i,n))}static \u0275fac=function(n){return new(n||t)(v(Ge))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var qs=new C("");function Gs(t,r){return r(t)}function Hs(t,r,e){return(n,i)=>$(e,()=>r(n,s=>t(s,i)))}var br=new C(""),Ei=new C(""),Ws=new C("",{providedIn:"root",factory:()=>!0});var vi=(()=>{class t extends Ge{backend;injector;chain=null;pendingTasks=d(vt);contributeToStability=d(Ws);constructor(e,n){super(),this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(br),...this.injector.get(Ei,[])]));this.chain=n.reduceRight((i,s)=>Hs(i,s,this.injector),Gs)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,i=>this.backend.handle(i)).pipe(pe(()=>this.pendingTasks.remove(n)))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(v(It),v(oe))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var Xs=/^\)\]\}',?\n/,Js=RegExp(`^${Si}:`,"m");function Zs(t){return"responseURL"in t&&t.responseURL?t.responseURL:Js.test(t.getAllResponseHeaders())?t.getResponseHeader(Si):null}var yi=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new E(-2800,!1);let n=this.xhrFactory;return(n.\u0275loadImpl?O(n.\u0275loadImpl()):p(null)).pipe(x(()=>new vn(s=>{let o=n.build();if(o.open(e.method,e.urlWithParams),e.withCredentials&&(o.withCredentials=!0),e.headers.forEach((w,y)=>o.setRequestHeader(w,y.join(","))),e.headers.has(mi)||o.setRequestHeader(mi,Fs),!e.headers.has(gi)){let w=e.detectContentTypeHeader();w!==null&&o.setRequestHeader(gi,w)}if(e.responseType){let w=e.responseType.toLowerCase();o.responseType=w!=="json"?w:"text"}let c=e.serializeBody(),a=null,u=()=>{if(a!==null)return a;let w=o.statusText||"OK",y=new te(o.getAllResponseHeaders()),N=Zs(o)||e.url;return a=new Sr({headers:y,status:o.status,statusText:w,url:N}),a},l=()=>{let{headers:w,status:y,statusText:N,url:he}=u(),M=null;y!==Bs&&(M=typeof o.response>"u"?o.responseText:o.response),y===0&&(y=M?zs:0);let _e=y>=200&&y<300;if(e.responseType==="json"&&typeof M=="string"){let Ps=M;M=M.replace(Xs,"");try{M=M!==""?JSON.parse(M):null}catch(Ns){M=Ps,_e&&(_e=!1,M={error:Ns,text:M})}}_e?(s.next(new Re({body:M,headers:w,status:y,statusText:N,url:he||void 0})),s.complete()):s.error(new At({error:M,headers:w,status:y,statusText:N,url:he||void 0}))},h=w=>{let{url:y}=u(),N=new At({error:w,status:o.status||0,statusText:o.statusText||"Unknown Error",url:y||void 0});s.error(N)},g=!1,S=w=>{g||(s.next(u()),g=!0);let y={type:we.DownloadProgress,loaded:w.loaded};w.lengthComputable&&(y.total=w.total),e.responseType==="text"&&o.responseText&&(y.partialText=o.responseText),s.next(y)},I=w=>{let y={type:we.UploadProgress,loaded:w.loaded};w.lengthComputable&&(y.total=w.total),s.next(y)};return o.addEventListener("load",l),o.addEventListener("error",h),o.addEventListener("timeout",h),o.addEventListener("abort",h),e.reportProgress&&(o.addEventListener("progress",S),c!==null&&o.upload&&o.upload.addEventListener("progress",I)),o.send(c),s.next({type:we.Sent}),()=>{o.removeEventListener("error",h),o.removeEventListener("abort",h),o.removeEventListener("load",l),o.removeEventListener("timeout",h),e.reportProgress&&(o.removeEventListener("progress",S),c!==null&&o.upload&&o.upload.removeEventListener("progress",I)),o.readyState!==o.DONE&&o.abort()}})))}static \u0275fac=function(n){return new(n||t)(v(Et))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Ci=new C(""),Ks="XSRF-TOKEN",Ys=new C("",{providedIn:"root",factory:()=>Ks}),Qs="X-XSRF-TOKEN",eo=new C("",{providedIn:"root",factory:()=>Qs}),Dt=class{},to=(()=>{class t{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,n,i){this.doc=e,this.platform=n,this.cookieName=i}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Tt(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)(v(U),v(ae),v(Ys))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function ro(t,r){let e=t.url.toLowerCase();if(!d(Ci)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return r(t);let n=d(Dt).getToken(),i=d(eo);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),r(t)}var Mi=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}(Mi||{});function no(t,r){return{\u0275kind:t,\u0275providers:r}}function Jc(...t){let r=[Vs,yi,vi,{provide:Ge,useExisting:vi},{provide:It,useFactory:()=>d(qs,{optional:!0})??d(yi)},{provide:br,useValue:ro,multi:!0},{provide:Ci,useValue:!0},{provide:Dt,useClass:to}];for(let e of t)r.push(...e.\u0275providers);return ge(r)}function Zc(t){return no(Mi.Interceptors,t.map(r=>({provide:br,useValue:r,multi:!0})))}var io=new C(""),so="b",oo="h",ao="s",co="st",uo="u",lo="rt",Mt=new C(""),ho=["GET","HEAD"];function fo(t,r){let g=d(Mt),{isCacheActive:e}=g,n=pn(g,["isCacheActive"]),{transferCache:i,method:s}=t;if(!e||i===!1||s==="POST"&&!n.includePostRequests&&!i||s!=="POST"&&!ho.includes(s)||!n.includeRequestsWithAuthHeaders&&po(t)||n.filter?.(t)===!1)return r(t);let o=d(lr);if(d(io,{optional:!0}))throw new E(2803,!1);let a=t.url,u=go(t,a),l=o.get(u,null),h=n.includeHeaders;if(typeof i=="object"&&i.includeHeaders&&(h=i.includeHeaders),l){let{[so]:S,[lo]:I,[oo]:w,[ao]:y,[co]:N,[uo]:he}=l,M=S;switch(I){case"arraybuffer":M=new TextEncoder().encode(S).buffer;break;case"blob":M=new Blob([S]);break}let _e=new te(w);return p(new Re({body:M,headers:_e,status:y,statusText:N,url:he}))}return r(t).pipe(A(S=>{S instanceof Re}))}function po(t){return t.headers.has("authorization")||t.headers.has("proxy-authorization")}function wi(t){return[...t.keys()].sort().map(r=>`${r}=${t.getAll(r)}`).join("&")}function go(t,r){let{params:e,method:n,responseType:i}=t,s=wi(e),o=t.serializeBody();o instanceof URLSearchParams?o=wi(o):typeof o!="string"&&(o="");let c=[n,i,r,o,s].join("|"),a=mo(c);return a}function mo(t){let r=0;for(let e of t)r=Math.imul(31,r)+e.charCodeAt(0)<<0;return r+=2147483648,r.toString()}function Ii(t){return[{provide:Mt,useFactory:()=>(On("NgHttpTransferCache"),f({isCacheActive:!0},t))},{provide:Ei,useValue:fo,multi:!0,deps:[lr,Mt]},{provide:Fe,multi:!0,useFactory:()=>{let r=d(ze),e=d(Mt);return()=>{r.whenStable().then(()=>{e.isCacheActive=!1})}}}]}var Er=class extends oi{supportsDOMEvents=!0},Cr=class t extends Er{static makeCurrent(){si(new t)}onAndCancel(r,e,n,i){return r.addEventListener(e,n,i),()=>{r.removeEventListener(e,n,i)}}dispatchEvent(r,e){r.dispatchEvent(e)}remove(r){r.remove()}createElement(r,e){return e=e||this.getDefaultDocument(),e.createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,e){return e==="window"?window:e==="document"?r:e==="body"?r.body:null}getBaseHref(r){let e=wo();return e==null?null:Ro(e)}resetBaseElement(){We=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return Tt(document.cookie,r)}},We=null;function wo(){return We=We||document.querySelector("base"),We?We.getAttribute("href"):null}function Ro(t){return new URL(t,document.baseURI).pathname}var So=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Mr=new C(""),Ui=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(i=>{i.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,i,s){return this._findPluginFor(n).addEventListener(e,n,i,s)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(s=>s.supports(e)),!n)throw new E(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(v(Mr),v(q))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Pt=class{_doc;constructor(r){this._doc=r}manager},Ot="ng-app-id";function Ai(t){for(let r of t)r.remove()}function Di(t,r){let e=r.createElement("style");return e.textContent=t,e}function bo(t,r,e,n){let i=t.head?.querySelectorAll(`style[${Ot}="${r}"],link[${Ot}="${r}"]`);if(i)for(let s of i)s.removeAttribute(Ot),s instanceof HTMLLinkElement?n.set(s.href.slice(s.href.lastIndexOf("/")+1),{usage:0,elements:[s]}):s.textContent&&e.set(s.textContent,{usage:0,elements:[s]})}function Ir(t,r){let e=r.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var _i=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,n,i,s={}){this.doc=e,this.appId=n,this.nonce=i,this.isServer=mr(s),bo(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let i of e)this.addUsage(i,this.inline,Di);n?.forEach(i=>this.addUsage(i,this.external,Ir))}removeStyles(e,n){for(let i of e)this.removeUsage(i,this.inline);n?.forEach(i=>this.removeUsage(i,this.external))}addUsage(e,n,i){let s=n.get(e);s?s.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(o=>this.addElement(o,i(e,this.doc)))})}removeUsage(e,n){let i=n.get(e);i&&(i.usage--,i.usage<=0&&(Ai(i.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Ai(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:i}]of this.inline)i.push(this.addElement(e,Di(n,this.doc)));for(let[n,{elements:i}]of this.external)i.push(this.addElement(e,Ir(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),this.isServer&&n.setAttribute(Ot,this.appId),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(v(U),v(cr),v(ur,8),v(ae))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Tr={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"},Or=/%COMP%/g;var xi="%COMP%",To=`_nghost-${xi}`,Eo=`_ngcontent-${xi}`,Co=!0,Mo=new C("",{providedIn:"root",factory:()=>Co});function Io(t){return Eo.replace(Or,t)}function Ao(t){return To.replace(Or,t)}function Li(t,r){return r.map(e=>e.replace(Or,t))}var Oi=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,n,i,s,o,c,a,u=null,l=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=o,this.platformId=c,this.ngZone=a,this.nonce=u,this.tracingService=l,this.platformIsServer=mr(c),this.defaultRenderer=new Xe(e,o,a,this.platformIsServer,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===je.ShadowDom&&(n=P(f({},n),{encapsulation:je.Emulated}));let i=this.getOrCreateRenderer(e,n);return i instanceof Nt?i.applyToHost(e):i instanceof Je&&i.applyStyles(),i}getOrCreateRenderer(e,n){let i=this.rendererByCompId,s=i.get(n.id);if(!s){let o=this.doc,c=this.ngZone,a=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,h=this.platformIsServer,g=this.tracingService;switch(n.encapsulation){case je.Emulated:s=new Nt(a,u,n,this.appId,l,o,c,h,g);break;case je.ShadowDom:return new Ar(a,u,e,n,o,c,this.nonce,h,g);default:s=new Je(a,u,n,l,o,c,h,g);break}i.set(n.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(v(Ui),v(_i),v(cr),v(Mo),v(U),v(ae),v(q),v(ur),v(Un,8))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Xe=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(r,e,n,i,s){this.eventManager=r,this.doc=e,this.ngZone=n,this.platformIsServer=i,this.tracingService=s}destroy(){}destroyNode=null;createElement(r,e){return e?this.doc.createElementNS(Tr[e]||e,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,e){(Pi(r)?r.content:r).appendChild(e)}insertBefore(r,e,n){r&&(Pi(r)?r.content:r).insertBefore(e,n)}removeChild(r,e){e.remove()}selectRootElement(r,e){let n=typeof r=="string"?this.doc.querySelector(r):r;if(!n)throw new E(-5104,!1);return e||(n.textContent=""),n}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,e,n,i){if(i){e=i+":"+e;let s=Tr[i];s?r.setAttributeNS(s,e,n):r.setAttribute(e,n)}else r.setAttribute(e,n)}removeAttribute(r,e,n){if(n){let i=Tr[n];i?r.removeAttributeNS(i,e):r.removeAttribute(`${n}:${e}`)}else r.removeAttribute(e)}addClass(r,e){r.classList.add(e)}removeClass(r,e){r.classList.remove(e)}setStyle(r,e,n,i){i&($e.DashCase|$e.Important)?r.style.setProperty(e,n,i&$e.Important?"important":""):r.style[e]=n}removeStyle(r,e,n){n&$e.DashCase?r.style.removeProperty(e):r.style[e]=""}setProperty(r,e,n){r!=null&&(r[e]=n)}setValue(r,e){r.nodeValue=e}listen(r,e,n,i){if(typeof r=="string"&&(r=gr().getGlobalEventTarget(this.doc,r),!r))throw new Error(`Unsupported event target ${r} for event ${e}`);let s=this.decoratePreventDefault(n);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(s=this.tracingService.wrapEventListener(r,e,s)),this.eventManager.addEventListener(r,e,s,i)}decoratePreventDefault(r){return e=>{if(e==="__ngUnwrap__")return r;(this.platformIsServer?this.ngZone.runGuarded(()=>r(e)):r(e))===!1&&e.preventDefault()}}};function Pi(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Ar=class extends Xe{sharedStylesHost;hostEl;shadowRoot;constructor(r,e,n,i,s,o,c,a,u){super(r,s,o,a,u),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=i.styles;l=Li(i.id,l);for(let g of l){let S=document.createElement("style");c&&S.setAttribute("nonce",c),S.textContent=g,this.shadowRoot.appendChild(S)}let h=i.getExternalStyles?.();if(h)for(let g of h){let S=Ir(g,s);c&&S.setAttribute("nonce",c),this.shadowRoot.appendChild(S)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}appendChild(r,e){return super.appendChild(this.nodeOrShadowRoot(r),e)}insertBefore(r,e,n){return super.insertBefore(this.nodeOrShadowRoot(r),e,n)}removeChild(r,e){return super.removeChild(null,e)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Je=class extends Xe{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(r,e,n,i,s,o,c,a,u){super(r,s,o,c,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i;let l=n.styles;this.styles=u?Li(u,l):l,this.styleUrls=n.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Nt=class extends Je{contentAttr;hostAttr;constructor(r,e,n,i,s,o,c,a,u){let l=i+"-"+n.id;super(r,e,n,s,o,c,a,u,l),this.contentAttr=Io(l),this.hostAttr=Ao(l)}applyToHost(r){this.applyStyles(),this.setAttribute(r,this.hostAttr,"")}createElement(r,e){let n=super.createElement(r,e);return super.setAttribute(n,this.contentAttr,""),n}},Do=(()=>{class t extends Pt{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,i,s){return e.addEventListener(n,i,s),()=>this.removeEventListener(e,n,i,s)}removeEventListener(e,n,i,s){return e.removeEventListener(n,i,s)}static \u0275fac=function(n){return new(n||t)(v(U))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Ni=["alt","control","meta","shift"],Oo={"\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"},Po={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},No=(()=>{class t extends Pt{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,i,s){let o=t.parseEventName(n),c=t.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>gr().onAndCancel(e,o.domEventName,c,s))}static parseEventName(e){let n=e.toLowerCase().split("."),i=n.shift();if(n.length===0||!(i==="keydown"||i==="keyup"))return null;let s=t._normalizeKey(n.pop()),o="",c=n.indexOf("code");if(c>-1&&(n.splice(c,1),o="code."),Ni.forEach(u=>{let l=n.indexOf(u);l>-1&&(n.splice(l,1),o+=u+".")}),o+=s,n.length!=0||s.length===0)return null;let a={};return a.domEventName=i,a.fullKey=o,a}static matchEventFullKeyCode(e,n){let i=Oo[e.key]||e.key,s="";return n.indexOf("code.")>-1&&(i=e.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Ni.forEach(o=>{if(o!==i){let c=Po[o];c(e)&&(s+=o+".")}}),s+=i,s===n)}static eventCallback(e,n,i){return s=>{t.matchEventFullKeyCode(s,e)&&i.runGuarded(()=>n(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(v(U))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function Su(t,r){return ri(f({rootComponent:t},Uo(r)))}function Uo(t){return{appProviders:[...jo,...t?.providers??[]],platformProviders:ko}}function _o(){Cr.makeCurrent()}function xo(){return new or}function Lo(){return Pn(document),document}var ko=[{provide:ae,useValue:li},{provide:Nn,useValue:_o,multi:!0},{provide:U,useFactory:Lo,deps:[]}];var jo=[{provide:Mn,useValue:"root"},{provide:or,useFactory:xo,deps:[]},{provide:Mr,useClass:Do,multi:!0,deps:[U,q,ae]},{provide:Mr,useClass:No,multi:!0,deps:[U]},Oi,_i,Ui,{provide:qn,useExisting:Oi},{provide:Et,useClass:So,deps:[]},[]];var ki=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(v(U))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var $o=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:function(n){let i=null;return n?i=new(n||t):i=v(Fo),i},providedIn:"root"})}return t})(),Fo=(()=>{class t extends $o{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case ce.NONE:return n;case ce.HTML:return ye(n,"HTML")?ve(n):zn(this._doc,String(n)).toString();case ce.STYLE:return ye(n,"Style")?ve(n):n;case ce.SCRIPT:if(ye(n,"Script"))return ve(n);throw new E(5200,!1);case ce.URL:return ye(n,"URL")?ve(n):Fn(String(n));case ce.RESOURCE_URL:if(ye(n,"ResourceURL"))return ve(n);throw new E(5201,!1);default:throw new E(5202,!1)}}bypassSecurityTrustHtml(e){return xn(e)}bypassSecurityTrustStyle(e){return Ln(e)}bypassSecurityTrustScript(e){return kn(e)}bypassSecurityTrustUrl(e){return jn(e)}bypassSecurityTrustResourceUrl(e){return $n(e)}static \u0275fac=function(n){return new(n||t)(v(U))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Dr=function(t){return t[t.NoHttpTransferCache=0]="NoHttpTransferCache",t[t.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",t[t.I18nSupport=2]="I18nSupport",t[t.EventReplay=3]="EventReplay",t[t.IncrementalHydration=4]="IncrementalHydration",t}(Dr||{});function bu(...t){let r=[],e=new Set,n=e.has(Dr.HttpTransferCacheOptions);for(let{\u0275providers:i,\u0275kind:s}of t)e.add(s),i.length&&r.push(i);return ge([[],ni(),e.has(Dr.NoHttpTransferCache)||n?[]:Ii({}),r])}var m="primary",ut=Symbol("RouteTitle"),xr=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e[0]:e}return null}getAll(r){if(this.has(r)){let e=this.params[r];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Me(t){return new xr(t)}function Bo(t,r,e){let n=e.path.split("/");if(n.length>t.length||e.pathMatch==="full"&&(r.hasChildren()||n.length<t.length))return null;let i={};for(let s=0;s<n.length;s++){let o=n[s],c=t[s];if(o[0]===":")i[o.substring(1)]=c;else if(o!==c.path)return null}return{consumed:t.slice(0,n.length),posParams:i}}function Vo(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;++e)if(!G(t[e],r[e]))return!1;return!0}function G(t,r){let e=t?Lr(t):void 0,n=r?Lr(r):void 0;if(!e||!n||e.length!=n.length)return!1;let i;for(let s=0;s<e.length;s++)if(i=e[s],!Xi(t[i],r[i]))return!1;return!0}function Lr(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Xi(t,r){if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;let e=[...t].sort(),n=[...r].sort();return e.every((i,s)=>n[s]===i)}else return t===r}function Ji(t){return t.length>0?t[t.length-1]:null}function ie(t){return yn(t)?t:Jn(t)?O(Promise.resolve(t)):p(t)}var qo={exact:Ki,subset:Yi},Zi={exact:Go,subset:Ho,ignored:()=>!0};function ji(t,r,e){return qo[e.paths](t.root,r.root,e.matrixParams)&&Zi[e.queryParams](t.queryParams,r.queryParams)&&!(e.fragment==="exact"&&t.fragment!==r.fragment)}function Go(t,r){return G(t,r)}function Ki(t,r,e){if(!le(t.segments,r.segments)||!xt(t.segments,r.segments,e)||t.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!t.children[n]||!Ki(t.children[n],r.children[n],e))return!1;return!0}function Ho(t,r){return Object.keys(r).length<=Object.keys(t).length&&Object.keys(r).every(e=>Xi(t[e],r[e]))}function Yi(t,r,e){return Qi(t,r,r.segments,e)}function Qi(t,r,e,n){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!le(i,e)||r.hasChildren()||!xt(i,e,n))}else if(t.segments.length===e.length){if(!le(t.segments,e)||!xt(t.segments,e,n))return!1;for(let i in r.children)if(!t.children[i]||!Yi(t.children[i],r.children[i],n))return!1;return!0}else{let i=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!le(t.segments,i)||!xt(t.segments,i,n)||!t.children[m]?!1:Qi(t.children[m],r,s,n)}}function xt(t,r,e){return r.every((n,i)=>Zi[e](t[i].parameters,n.parameters))}var J=class{root;queryParams;fragment;_queryParamMap;constructor(r=new T([],{}),e={},n=null){this.root=r,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Me(this.queryParams),this._queryParamMap}toString(){return Jo.serialize(this)}},T=class{segments;children;parent=null;constructor(r,e){this.segments=r,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Lt(this)}},ue=class{path;parameters;_parameterMap;constructor(r,e){this.path=r,this.parameters=e}get parameterMap(){return this._parameterMap??=Me(this.parameters),this._parameterMap}toString(){return ts(this)}};function Wo(t,r){return le(t,r)&&t.every((e,n)=>G(e.parameters,r[n].parameters))}function le(t,r){return t.length!==r.length?!1:t.every((e,n)=>e.path===r[n].path)}function Xo(t,r){let e=[];return Object.entries(t.children).forEach(([n,i])=>{n===m&&(e=e.concat(r(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==m&&(e=e.concat(r(i,n)))}),e}var Pe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>new Ie,providedIn:"root"})}return t})(),Ie=class{parse(r){let e=new jr(r);return new J(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(r){let e=`/${Ze(r.root,!0)}`,n=Yo(r.queryParams),i=typeof r.fragment=="string"?`#${Zo(r.fragment)}`:"";return`${e}${n}${i}`}},Jo=new Ie;function Lt(t){return t.segments.map(r=>ts(r)).join("/")}function Ze(t,r){if(!t.hasChildren())return Lt(t);if(r){let e=t.children[m]?Ze(t.children[m],!1):"",n=[];return Object.entries(t.children).forEach(([i,s])=>{i!==m&&n.push(`${i}:${Ze(s,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=Xo(t,(n,i)=>i===m?[Ze(t.children[m],!1)]:[`${i}:${Ze(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[m]!=null?`${Lt(t)}/${e[0]}`:`${Lt(t)}/(${e.join("//")})`}}function es(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ut(t){return es(t).replace(/%3B/gi,";")}function Zo(t){return encodeURI(t)}function kr(t){return es(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function kt(t){return decodeURIComponent(t)}function $i(t){return kt(t.replace(/\+/g,"%20"))}function ts(t){return`${kr(t.path)}${Ko(t.parameters)}`}function Ko(t){return Object.entries(t).map(([r,e])=>`;${kr(r)}=${kr(e)}`).join("")}function Yo(t){let r=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(i=>`${Ut(e)}=${Ut(i)}`).join("&"):`${Ut(e)}=${Ut(n)}`).filter(e=>e);return r.length?`?${r.join("&")}`:""}var Qo=/^[^\/()?;#]+/;function Pr(t){let r=t.match(Qo);return r?r[0]:""}var ea=/^[^\/()?;=#]+/;function ta(t){let r=t.match(ea);return r?r[0]:""}var ra=/^[^=?&#]+/;function na(t){let r=t.match(ra);return r?r[0]:""}var ia=/^[^&#]+/;function sa(t){let r=t.match(ia);return r?r[0]:""}var jr=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new T([],{}):new T([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(r.length>0||Object.keys(e).length>0)&&(n[m]=new T(r,e)),n}parseSegment(){let r=Pr(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new E(4009,!1);return this.capture(r),new ue(kt(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let e=ta(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let i=Pr(this.remaining);i&&(n=i,this.capture(n))}r[kt(e)]=kt(n)}parseQueryParam(r){let e=na(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let o=sa(this.remaining);o&&(n=o,this.capture(n))}let i=$i(e),s=$i(n);if(r.hasOwnProperty(i)){let o=r[i];Array.isArray(o)||(o=[o],r[i]=o),o.push(s)}else r[i]=s}parseParens(r){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Pr(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new E(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):r&&(s=m);let o=this.parseChildren();e[s]=Object.keys(o).length===1?o[m]:new T([],o),this.consumeOptional("//")}return e}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new E(4011,!1)}};function rs(t){return t.segments.length>0?new T([],{[m]:t}):t}function ns(t){let r={};for(let[n,i]of Object.entries(t.children)){let s=ns(i);if(n===m&&s.segments.length===0&&s.hasChildren())for(let[o,c]of Object.entries(s.children))r[o]=c;else(s.segments.length>0||s.hasChildren())&&(r[n]=s)}let e=new T(t.segments,r);return oa(e)}function oa(t){if(t.numberOfChildren===1&&t.children[m]){let r=t.children[m];return new T(t.segments.concat(r.segments),r.children)}return t}function de(t){return t instanceof J}function aa(t,r,e=null,n=null){let i=is(t);return ss(i,r,e,n)}function is(t){let r;function e(s){let o={};for(let a of s.children){let u=e(a);o[a.outlet]=u}let c=new T(s.url,o);return s===t&&(r=c),c}let n=e(t.root),i=rs(n);return r??i}function ss(t,r,e,n){let i=t;for(;i.parent;)i=i.parent;if(r.length===0)return Nr(i,i,i,e,n);let s=ca(r);if(s.toRoot())return Nr(i,i,new T([],{}),e,n);let o=ua(s,i,t),c=o.processChildren?Ye(o.segmentGroup,o.index,s.commands):as(o.segmentGroup,o.index,s.commands);return Nr(i,o.segmentGroup,c,e,n)}function jt(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function tt(t){return typeof t=="object"&&t!=null&&t.outlets}function Nr(t,r,e,n,i){let s={};n&&Object.entries(n).forEach(([a,u])=>{s[a]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let o;t===r?o=e:o=os(t,r,e);let c=rs(ns(o));return new J(c,s,i)}function os(t,r,e){let n={};return Object.entries(t.children).forEach(([i,s])=>{s===r?n[i]=e:n[i]=os(s,r,e)}),new T(t.segments,n)}var $t=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,e,n){if(this.isAbsolute=r,this.numberOfDoubleDots=e,this.commands=n,r&&n.length>0&&jt(n[0]))throw new E(4003,!1);let i=n.find(tt);if(i&&i!==Ji(n))throw new E(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function ca(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new $t(!0,0,t);let r=0,e=!1,n=t.reduce((i,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let c={};return Object.entries(s.outlets).forEach(([a,u])=>{c[a]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:c}]}if(s.segmentPath)return[...i,s.segmentPath]}return typeof s!="string"?[...i,s]:o===0?(s.split("/").forEach((c,a)=>{a==0&&c==="."||(a==0&&c===""?e=!0:c===".."?r++:c!=""&&i.push(c))}),i):[...i,s]},[]);return new $t(e,r,n)}var Te=class{segmentGroup;processChildren;index;constructor(r,e,n){this.segmentGroup=r,this.processChildren=e,this.index=n}};function ua(t,r,e){if(t.isAbsolute)return new Te(r,!0,0);if(!e)return new Te(r,!1,NaN);if(e.parent===null)return new Te(e,!0,0);let n=jt(t.commands[0])?0:1,i=e.segments.length-1+n;return la(e,i,t.numberOfDoubleDots)}function la(t,r,e){let n=t,i=r,s=e;for(;s>i;){if(s-=i,n=n.parent,!n)throw new E(4005,!1);i=n.segments.length}return new Te(n,!1,i-s)}function da(t){return tt(t[0])?t[0].outlets:{[m]:t}}function as(t,r,e){if(t??=new T([],{}),t.segments.length===0&&t.hasChildren())return Ye(t,r,e);let n=ha(t,r,e),i=e.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let s=new T(t.segments.slice(0,n.pathIndex),{});return s.children[m]=new T(t.segments.slice(n.pathIndex),t.children),Ye(s,0,i)}else return n.match&&i.length===0?new T(t.segments,{}):n.match&&!t.hasChildren()?$r(t,r,e):n.match?Ye(t,0,i):$r(t,r,e)}function Ye(t,r,e){if(e.length===0)return new T(t.segments,{});{let n=da(e),i={};if(Object.keys(n).some(s=>s!==m)&&t.children[m]&&t.numberOfChildren===1&&t.children[m].segments.length===0){let s=Ye(t.children[m],r,e);return new T(t.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(i[s]=as(t.children[s],r,o))}),Object.entries(t.children).forEach(([s,o])=>{n[s]===void 0&&(i[s]=o)}),new T(t.segments,i)}}function ha(t,r,e){let n=0,i=r,s={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(n>=e.length)return s;let o=t.segments[i],c=e[n];if(tt(c))break;let a=`${c}`,u=n<e.length-1?e[n+1]:null;if(i>0&&a===void 0)break;if(a&&u&&typeof u=="object"&&u.outlets===void 0){if(!zi(a,u,o))return s;n+=2}else{if(!zi(a,{},o))return s;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function $r(t,r,e){let n=t.segments.slice(0,r),i=0;for(;i<e.length;){let s=e[i];if(tt(s)){let a=fa(s.outlets);return new T(n,a)}if(i===0&&jt(e[0])){let a=t.segments[r];n.push(new ue(a.path,Fi(e[0]))),i++;continue}let o=tt(s)?s.outlets[m]:`${s}`,c=i<e.length-1?e[i+1]:null;o&&c&&jt(c)?(n.push(new ue(o,Fi(c))),i+=2):(n.push(new ue(o,{})),i++)}return new T(n,{})}function fa(t){let r={};return Object.entries(t).forEach(([e,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[e]=$r(new T([],{}),0,n))}),r}function Fi(t){let r={};return Object.entries(t).forEach(([e,n])=>r[e]=`${n}`),r}function zi(t,r,e){return t==e.path&&G(r,e.parameters)}var Qe="imperative",D=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}(D||{}),F=class{id;url;constructor(r,e){this.id=r,this.url=e}},Ae=class extends F{type=D.NavigationStart;navigationTrigger;restoredState;constructor(r,e,n="imperative",i=null){super(r,e),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},V=class extends F{urlAfterRedirects;type=D.NavigationEnd;constructor(r,e,n){super(r,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},k=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(k||{}),Ft=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Ft||{}),X=class extends F{reason;code;type=D.NavigationCancel;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},re=class extends F{reason;code;type=D.NavigationSkipped;constructor(r,e,n,i){super(r,e),this.reason=n,this.code=i}},rt=class extends F{error;target;type=D.NavigationError;constructor(r,e,n,i){super(r,e),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},zt=class extends F{urlAfterRedirects;state;type=D.RoutesRecognized;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Fr=class extends F{urlAfterRedirects;state;type=D.GuardsCheckStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},zr=class extends F{urlAfterRedirects;state;shouldActivate;type=D.GuardsCheckEnd;constructor(r,e,n,i,s){super(r,e),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Br=class extends F{urlAfterRedirects;state;type=D.ResolveStart;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Vr=class extends F{urlAfterRedirects;state;type=D.ResolveEnd;constructor(r,e,n,i){super(r,e),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},qr=class{route;type=D.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Gr=class{route;type=D.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Hr=class{snapshot;type=D.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Wr=class{snapshot;type=D.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Xr=class{snapshot;type=D.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Jr=class{snapshot;type=D.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Bt=class{routerEvent;position;anchor;type=D.Scroll;constructor(r,e,n){this.routerEvent=r,this.position=e,this.anchor=n}toString(){let r=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${r}')`}},nt=class{},De=class{url;navigationBehaviorOptions;constructor(r,e){this.url=r,this.navigationBehaviorOptions=e}};function pa(t,r){return t.providers&&!t._injector&&(t._injector=hr(t.providers,r,`Route: ${t.path}`)),t._injector??r}function B(t){return t.outlet||m}function ga(t,r){let e=t.filter(n=>B(n)===r);return e.push(...t.filter(n=>B(n)!==r)),e}function lt(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let r=t.parent;r;r=r.parent){let e=r.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Zr=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return lt(this.route?.snapshot)??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new dt(this.rootInjector)}},dt=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let i=this.getOrCreateContext(e);i.outlet=n,this.contexts.set(e,i)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Zr(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(v(oe))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Vt=class{_root;constructor(r){this._root=r}get root(){return this._root.value}parent(r){let e=this.pathFromRoot(r);return e.length>1?e[e.length-2]:null}children(r){let e=Kr(r,this._root);return e?e.children.map(n=>n.value):[]}firstChild(r){let e=Kr(r,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(r){let e=Yr(r,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return Yr(r,this._root).map(e=>e.value)}};function Kr(t,r){if(t===r.value)return r;for(let e of r.children){let n=Kr(t,e);if(n)return n}return null}function Yr(t,r){if(t===r.value)return[r];for(let e of r.children){let n=Yr(t,e);if(n.length)return n.unshift(r),n}return[]}var L=class{value;children;constructor(r,e){this.value=r,this.children=e}toString(){return`TreeNode(${this.value})`}};function be(t){let r={};return t&&t.children.forEach(e=>r[e.value.outlet]=e),r}var qt=class extends Vt{snapshot;constructor(r,e){super(r),this.snapshot=e,cn(this,r)}toString(){return this.snapshot.toString()}};function cs(t){let r=ma(t),e=new j([new ue("",{})]),n=new j({}),i=new j({}),s=new j({}),o=new j(""),c=new ne(e,n,s,o,i,m,t,r.root);return c.snapshot=r.root,new qt(new L(c,[]),r)}function ma(t){let r={},e={},n={},i="",s=new Ee([],r,n,i,e,m,t,null,{});return new Ht("",new L(s,[]))}var ne=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,e,n,i,s,o,c,a){this.urlSubject=r,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=s,this.outlet=o,this.component=c,this._futureSnapshot=a,this.title=this.dataSubject?.pipe(b(u=>u[ut]))??p(void 0),this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=s}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(b(r=>Me(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(b(r=>Me(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Gt(t,r,e="emptyOnly"){let n,{routeConfig:i}=t;return r!==null&&(e==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:f(f({},r.params),t.params),data:f(f({},r.data),t.data),resolve:f(f(f(f({},t.data),r.data),i?.data),t._resolvedData)}:n={params:f({},t.params),data:f({},t.data),resolve:f(f({},t.data),t._resolvedData??{})},i&&ls(i)&&(n.resolve[ut]=i.title),n}var Ee=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[ut]}constructor(r,e,n,i,s,o,c,a,u){this.url=r,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=o,this.component=c,this.routeConfig=a,this._resolve=u}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??=Me(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Me(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${e}')`}},Ht=class extends Vt{url;constructor(r,e){super(e),this.url=r,cn(this,e)}toString(){return us(this._root)}};function cn(t,r){r.value._routerState=t,r.children.forEach(e=>cn(t,e))}function us(t){let r=t.children.length>0?` { ${t.children.map(us).join(", ")} } `:"";return`${t.value}${r}`}function Ur(t){if(t.snapshot){let r=t.snapshot,e=t._futureSnapshot;t.snapshot=e,G(r.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),r.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),G(r.params,e.params)||t.paramsSubject.next(e.params),Vo(r.url,e.url)||t.urlSubject.next(e.url),G(r.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Qr(t,r){let e=G(t.params,r.params)&&Wo(t.url,r.url),n=!t.parent!=!r.parent;return e&&!n&&(!t.parent||Qr(t.parent,r.parent))}function ls(t){return typeof t.title=="string"||t.title===null}var va=new C(""),ya=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=m;activateEvents=new me;deactivateEvents=new me;attachEvents=new me;detachEvents=new me;routerOutletData=Dn(void 0);parentContexts=d(dt);location=d(Gn);changeDetector=d(St);inputBinder=d(Zt,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:i}=e.name;if(n)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(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new E(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new E(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new E(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new E(4013,!1);this._activatedRoute=e;let i=this.location,o=e.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,a=new en(e,c,i.injector,this.routerOutletData);this.activated=i.createComponent(o,{index:i.length,injector:a,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=wt({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[mt]})}return t})(),en=class t{route;childContexts;parent;outletData;__ngOutletInjector(r){return new t(this.route,this.childContexts,r,this.outletData)}constructor(r,e,n,i){this.route=r,this.childContexts=e,this.parent=n,this.outletData=i}get(r,e){return r===ne?this.route:r===dt?this.childContexts:r===va?this.outletData:this.parent.get(r,e)}},Zt=new C(""),Bi=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,i=pt([n.queryParams,n.params,n.data]).pipe(x(([s,o,c],a)=>(c=f(f(f({},s),o),c),a===0?p(c):Promise.resolve(c)))).subscribe(s=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let o=ii(n.component);if(!o){this.unsubscribeFromRouteData(e);return}for(let{templateName:c}of o.inputs)e.activatedComponentRef.setInput(c,s[c])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function wa(t,r,e){let n=it(t,r._root,e?e._root:void 0);return new qt(n,r)}function it(t,r,e){if(e&&t.shouldReuseRoute(r.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=r.value;let i=Ra(t,r,e);return new L(n,i)}else{if(t.shouldAttach(r.value)){let s=t.retrieve(r.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=r.value,o.children=r.children.map(c=>it(t,c)),o}}let n=Sa(r.value),i=r.children.map(s=>it(t,s));return new L(n,i)}}function Ra(t,r,e){return r.children.map(n=>{for(let i of e.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return it(t,n,i);return it(t,n)})}function Sa(t){return new ne(new j(t.url),new j(t.params),new j(t.queryParams),new j(t.fragment),new j(t.data),t.outlet,t.component,t)}var st=class{redirectTo;navigationBehaviorOptions;constructor(r,e){this.redirectTo=r,this.navigationBehaviorOptions=e}},ds="ngNavigationCancelingError";function Wt(t,r){let{redirectTo:e,navigationBehaviorOptions:n}=de(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=hs(!1,k.Redirect);return i.url=e,i.navigationBehaviorOptions=n,i}function hs(t,r){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[ds]=!0,e.cancellationCode=r,e}function ba(t){return fs(t)&&de(t.url)}function fs(t){return!!t&&t[ds]}var Ta=(t,r,e,n)=>b(i=>(new tn(r,i.targetRouterState,i.currentRouterState,e,n).activate(t),i)),tn=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,e,n,i,s){this.routeReuseStrategy=r,this.futureState=e,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=s}activate(r){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,r),Ur(this.futureState.root),this.activateChildRoutes(e,n,r)}deactivateChildRoutes(r,e,n){let i=be(e);r.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,i[o],n),delete i[o]}),Object.values(i).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(r,e,n){let i=r.value,s=e?e.value:null;if(i===s)if(i.component){let o=n.getContext(i.outlet);o&&this.deactivateChildRoutes(r,e,o.children)}else this.deactivateChildRoutes(r,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(r,e){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,e):this.deactivateRouteAndOutlet(r,e)}detachAndStoreRouteSubtree(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,s=be(r);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);if(n&&n.outlet){let o=n.outlet.detach(),c=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:o,route:r,contexts:c})}}deactivateRouteAndOutlet(r,e){let n=e.getContext(r.value.outlet),i=n&&r.value.component?n.children:e,s=be(r);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,e,n){let i=be(e);r.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],n),this.forwardEvent(new Jr(s.value.snapshot))}),r.children.length&&this.forwardEvent(new Wr(r.value.snapshot))}activateRoutes(r,e,n){let i=r.value,s=e?e.value:null;if(Ur(i),i===s)if(i.component){let o=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,e,o.children)}else this.activateChildRoutes(r,e,n);else if(i.component){let o=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let c=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),o.children.onOutletReAttached(c.contexts),o.attachRef=c.componentRef,o.route=c.route.value,o.outlet&&o.outlet.attach(c.componentRef,c.route.value),Ur(c.route.value),this.activateChildRoutes(r,null,o.children)}else o.attachRef=null,o.route=i,o.outlet&&o.outlet.activateWith(i,o.injector),this.activateChildRoutes(r,null,o.children)}else this.activateChildRoutes(r,null,n)}},Xt=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},Ce=class{component;route;constructor(r,e){this.component=r,this.route=e}};function Ea(t,r,e){let n=t._root,i=r?r._root:null;return Ke(n,i,e,[n.value])}function Ca(t){let r=t.routeConfig?t.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:t,guards:r}}function Ne(t,r){let e=Symbol(),n=r.get(t,e);return n===e?typeof t=="function"&&!Cn(t)?t:r.get(t):n}function Ke(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=be(r);return t.children.forEach(o=>{Ma(o,s[o.value.outlet],e,n.concat([o.value]),i),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,c])=>et(c,e.getContext(o),i)),i}function Ma(t,r,e,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let s=t.value,o=r?r.value:null,c=e?e.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let a=Ia(o,s,s.routeConfig.runGuardsAndResolvers);a?i.canActivateChecks.push(new Xt(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?Ke(t,r,c?c.children:null,n,i):Ke(t,r,e,n,i),a&&c&&c.outlet&&c.outlet.isActivated&&i.canDeactivateChecks.push(new Ce(c.outlet.component,o))}else o&&et(r,c,i),i.canActivateChecks.push(new Xt(n)),s.component?Ke(t,null,c?c.children:null,n,i):Ke(t,null,e,n,i);return i}function Ia(t,r,e){if(typeof e=="function")return e(t,r);switch(e){case"pathParamsChange":return!le(t.url,r.url);case"pathParamsOrQueryParamsChange":return!le(t.url,r.url)||!G(t.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qr(t,r)||!G(t.queryParams,r.queryParams);case"paramsChange":default:return!Qr(t,r)}}function et(t,r,e){let n=be(t),i=t.value;Object.entries(n).forEach(([s,o])=>{i.component?r?et(o,r.children.getContext(s),e):et(o,null,e):et(o,r,e)}),i.component?r&&r.outlet&&r.outlet.isActivated?e.canDeactivateChecks.push(new Ce(r.outlet.component,i)):e.canDeactivateChecks.push(new Ce(null,i)):e.canDeactivateChecks.push(new Ce(null,i))}function ht(t){return typeof t=="function"}function Aa(t){return typeof t=="boolean"}function Da(t){return t&&ht(t.canLoad)}function Oa(t){return t&&ht(t.canActivate)}function Pa(t){return t&&ht(t.canActivateChild)}function Na(t){return t&&ht(t.canDeactivate)}function Ua(t){return t&&ht(t.canMatch)}function ps(t){return t instanceof wn||t?.name==="EmptyError"}var _t=Symbol("INITIAL_VALUE");function Oe(){return x(t=>pt(t.map(r=>r.pipe(fe(1),Tn(_t)))).pipe(b(r=>{for(let e of r)if(e!==!0){if(e===_t)return _t;if(e===!1||_a(e))return e}return!0}),W(r=>r!==_t),fe(1)))}function _a(t){return de(t)||t instanceof st}function xa(t,r){return _(e=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return o.length===0&&s.length===0?p(P(f({},e),{guardsResult:!0})):La(o,n,i,t).pipe(_(c=>c&&Aa(c)?ka(n,s,t,r):p(c)),b(c=>P(f({},e),{guardsResult:c})))})}function La(t,r,e,n){return O(t).pipe(_(i=>Ba(i.component,i.route,e,r,n)),Q(i=>i!==!0,!0))}function ka(t,r,e,n){return O(r).pipe(Y(i=>Rn($a(i.route.parent,n),ja(i.route,n),za(t,i.path,e),Fa(t,i.route,e))),Q(i=>i!==!0,!0))}function ja(t,r){return t!==null&&r&&r(new Xr(t)),p(!0)}function $a(t,r){return t!==null&&r&&r(new Hr(t)),p(!0)}function Fa(t,r,e){let n=r.routeConfig?r.routeConfig.canActivate:null;if(!n||n.length===0)return p(!0);let i=n.map(s=>tr(()=>{let o=lt(r)??e,c=Ne(s,o),a=Oa(c)?c.canActivate(r,t):$(o,()=>c(r,t));return ie(a).pipe(Q())}));return p(i).pipe(Oe())}function za(t,r,e){let n=r[r.length-1],s=r.slice(0,r.length-1).reverse().map(o=>Ca(o)).filter(o=>o!==null).map(o=>tr(()=>{let c=o.guards.map(a=>{let u=lt(o.node)??e,l=Ne(a,u),h=Pa(l)?l.canActivateChild(n,t):$(u,()=>l(n,t));return ie(h).pipe(Q())});return p(c).pipe(Oe())}));return p(s).pipe(Oe())}function Ba(t,r,e,n,i){let s=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!s||s.length===0)return p(!0);let o=s.map(c=>{let a=lt(r)??i,u=Ne(c,a),l=Na(u)?u.canDeactivate(t,r,e,n):$(a,()=>u(t,r,e,n));return ie(l).pipe(Q())});return p(o).pipe(Oe())}function Va(t,r,e,n){let i=r.canLoad;if(i===void 0||i.length===0)return p(!0);let s=i.map(o=>{let c=Ne(o,t),a=Da(c)?c.canLoad(r,e):$(t,()=>c(r,e));return ie(a)});return p(s).pipe(Oe(),gs(n))}function gs(t){return mn(A(r=>{if(typeof r!="boolean")throw Wt(t,r)}),b(r=>r===!0))}function qa(t,r,e,n){let i=r.canMatch;if(!i||i.length===0)return p(!0);let s=i.map(o=>{let c=Ne(o,t),a=Ua(c)?c.canMatch(r,e):$(t,()=>c(r,e));return ie(a)});return p(s).pipe(Oe(),gs(n))}var ot=class{segmentGroup;constructor(r){this.segmentGroup=r||null}},at=class extends Error{urlTree;constructor(r){super(),this.urlTree=r}};function Se(t){return xe(new ot(t))}function Ga(t){return xe(new E(4e3,!1))}function Ha(t){return xe(hs(!1,k.GuardRejected))}var rn=class{urlSerializer;urlTree;constructor(r,e){this.urlSerializer=r,this.urlTree=e}lineralizeSegments(r,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return p(n);if(i.numberOfChildren>1||!i.children[m])return Ga(`${r.redirectTo}`);i=i.children[m]}}applyRedirectCommands(r,e,n,i,s){if(typeof e!="string"){let c=e,{queryParams:a,fragment:u,routeConfig:l,url:h,outlet:g,params:S,data:I,title:w}=i,y=$(s,()=>c({params:S,data:I,queryParams:a,fragment:u,routeConfig:l,url:h,outlet:g,title:w}));if(y instanceof J)throw new at(y);e=y}let o=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),r,n);if(e[0]==="/")throw new at(o);return o}applyRedirectCreateUrlTree(r,e,n,i){let s=this.createSegmentGroup(r,e.root,n,i);return new J(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(r,e){let n={};return Object.entries(r).forEach(([i,s])=>{if(typeof s=="string"&&s[0]===":"){let c=s.substring(1);n[i]=e[c]}else n[i]=s}),n}createSegmentGroup(r,e,n,i){let s=this.createSegments(r,e.segments,n,i),o={};return Object.entries(e.children).forEach(([c,a])=>{o[c]=this.createSegmentGroup(r,a,n,i)}),new T(s,o)}createSegments(r,e,n,i){return e.map(s=>s.path[0]===":"?this.findPosParam(r,s,i):this.findOrReturn(s,n))}findPosParam(r,e,n){let i=n[e.path.substring(1)];if(!i)throw new E(4001,!1);return i}findOrReturn(r,e){let n=0;for(let i of e){if(i.path===r.path)return e.splice(n),i;n++}return r}},nn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Wa(t,r,e,n,i){let s=ms(t,r,e);return s.matched?(n=pa(r,n),qa(n,r,e,i).pipe(b(o=>o===!0?s:f({},nn)))):p(s)}function ms(t,r,e){if(r.path==="**")return Xa(e);if(r.path==="")return r.pathMatch==="full"&&(t.hasChildren()||e.length>0)?f({},nn):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(r.matcher||Bo)(e,t,r);if(!i)return f({},nn);let s={};Object.entries(i.posParams??{}).forEach(([c,a])=>{s[c]=a.path});let o=i.consumed.length>0?f(f({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:o,positionalParamSegments:i.posParams??{}}}function Xa(t){return{matched:!0,parameters:t.length>0?Ji(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Vi(t,r,e,n){return e.length>0&&Ka(t,e,n)?{segmentGroup:new T(r,Za(n,new T(e,t.children))),slicedSegments:[]}:e.length===0&&Ya(t,e,n)?{segmentGroup:new T(t.segments,Ja(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new T(t.segments,t.children),slicedSegments:e}}function Ja(t,r,e,n){let i={};for(let s of e)if(Kt(t,r,s)&&!n[B(s)]){let o=new T([],{});i[B(s)]=o}return f(f({},n),i)}function Za(t,r){let e={};e[m]=r;for(let n of t)if(n.path===""&&B(n)!==m){let i=new T([],{});e[B(n)]=i}return e}function Ka(t,r,e){return e.some(n=>Kt(t,r,n)&&B(n)!==m)}function Ya(t,r,e){return e.some(n=>Kt(t,r,n))}function Kt(t,r,e){return(t.hasChildren()||r.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Qa(t,r,e){return r.length===0&&!t.children[e]}var sn=class{};function ec(t,r,e,n,i,s,o="emptyOnly"){return new on(t,r,e,n,i,o,s).recognize()}var tc=31,on=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,e,n,i,s,o,c){this.injector=r,this.configLoader=e,this.rootComponentType=n,this.config=i,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=c,this.applyRedirects=new rn(this.urlSerializer,this.urlTree)}noMatchError(r){return new E(4002,`'${r.segmentGroup}'`)}recognize(){let r=Vi(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(r).pipe(b(({children:e,rootSnapshot:n})=>{let i=new L(n,e),s=new Ht("",i),o=aa(n,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(r){let e=new Ee([],Object.freeze({}),Object.freeze(f({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),m,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,r,m,e).pipe(b(n=>({children:n,rootSnapshot:e})),se(n=>{if(n instanceof at)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof ot?this.noMatchError(n):n}))}processSegmentGroup(r,e,n,i,s){return n.segments.length===0&&n.hasChildren()?this.processChildren(r,e,n,s):this.processSegment(r,e,n,n.segments,i,!0,s).pipe(b(o=>o instanceof L?[o]:[]))}processChildren(r,e,n,i){let s=[];for(let o of Object.keys(n.children))o==="primary"?s.unshift(o):s.push(o);return O(s).pipe(Y(o=>{let c=n.children[o],a=ga(e,o);return this.processSegmentGroup(r,a,c,o,i)}),bn((o,c)=>(o.push(...c),o)),rr(null),Sn(),_(o=>{if(o===null)return Se(n);let c=vs(o);return rc(c),p(c)}))}processSegment(r,e,n,i,s,o,c){return O(e).pipe(Y(a=>this.processSegmentAgainstRoute(a._injector??r,e,a,n,i,s,o,c).pipe(se(u=>{if(u instanceof ot)return p(null);throw u}))),Q(a=>!!a),se(a=>{if(ps(a))return Qa(n,i,s)?p(new sn):Se(n);throw a}))}processSegmentAgainstRoute(r,e,n,i,s,o,c,a){return B(n)!==o&&(o===m||!Kt(i,s,n))?Se(i):n.redirectTo===void 0?this.matchSegmentAgainstRoute(r,i,n,s,o,a):this.allowRedirects&&c?this.expandSegmentAgainstRouteUsingRedirect(r,i,e,n,s,o,a):Se(i)}expandSegmentAgainstRouteUsingRedirect(r,e,n,i,s,o,c){let{matched:a,parameters:u,consumedSegments:l,positionalParamSegments:h,remainingSegments:g}=ms(e,i,s);if(!a)return Se(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>tc&&(this.allowRedirects=!1));let S=new Ee(s,u,Object.freeze(f({},this.urlTree.queryParams)),this.urlTree.fragment,qi(i),B(i),i.component??i._loadedComponent??null,i,Gi(i)),I=Gt(S,c,this.paramsInheritanceStrategy);S.params=Object.freeze(I.params),S.data=Object.freeze(I.data);let w=this.applyRedirects.applyRedirectCommands(l,i.redirectTo,h,S,r);return this.applyRedirects.lineralizeSegments(i,w).pipe(_(y=>this.processSegment(r,n,e,y.concat(g),o,!1,c)))}matchSegmentAgainstRoute(r,e,n,i,s,o){let c=Wa(e,n,i,r,this.urlSerializer);return n.path==="**"&&(e.children={}),c.pipe(x(a=>a.matched?(r=n._injector??r,this.getChildConfig(r,n,i).pipe(x(({routes:u})=>{let l=n._loadedInjector??r,{parameters:h,consumedSegments:g,remainingSegments:S}=a,I=new Ee(g,h,Object.freeze(f({},this.urlTree.queryParams)),this.urlTree.fragment,qi(n),B(n),n.component??n._loadedComponent??null,n,Gi(n)),w=Gt(I,o,this.paramsInheritanceStrategy);I.params=Object.freeze(w.params),I.data=Object.freeze(w.data);let{segmentGroup:y,slicedSegments:N}=Vi(e,g,S,u);if(N.length===0&&y.hasChildren())return this.processChildren(l,u,y,I).pipe(b(M=>new L(I,M)));if(u.length===0&&N.length===0)return p(new L(I,[]));let he=B(n)===s;return this.processSegment(l,u,y,N,he?m:s,!0,I).pipe(b(M=>new L(I,M instanceof L?[M]:[])))}))):Se(e)))}getChildConfig(r,e,n){return e.children?p({routes:e.children,injector:r}):e.loadChildren?e._loadedRoutes!==void 0?p({routes:e._loadedRoutes,injector:e._loadedInjector}):Va(r,e,n,this.urlSerializer).pipe(_(i=>i?this.configLoader.loadChildren(r,e).pipe(A(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):Ha(e))):p({routes:[],injector:r})}};function rc(t){t.sort((r,e)=>r.value.outlet===m?-1:e.value.outlet===m?1:r.value.outlet.localeCompare(e.value.outlet))}function nc(t){let r=t.value.routeConfig;return r&&r.path===""}function vs(t){let r=[],e=new Set;for(let n of t){if(!nc(n)){r.push(n);continue}let i=r.find(s=>n.value.routeConfig===s.value.routeConfig);i!==void 0?(i.children.push(...n.children),e.add(i)):r.push(n)}for(let n of e){let i=vs(n.children);r.push(new L(n.value,i))}return r.filter(n=>!e.has(n))}function qi(t){return t.data||{}}function Gi(t){return t.resolve||{}}function ic(t,r,e,n,i,s){return _(o=>ec(t,r,e,n,o.extractedUrl,i,s).pipe(b(({state:c,tree:a})=>P(f({},o),{targetSnapshot:c,urlAfterRedirects:a}))))}function sc(t,r){return _(e=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=e;if(!i.length)return p(e);let s=new Set(i.map(a=>a.route)),o=new Set;for(let a of s)if(!o.has(a))for(let u of ys(a))o.add(u);let c=0;return O(o).pipe(Y(a=>s.has(a)?oc(a,n,t,r):(a.data=Gt(a,a.parent,t).resolve,p(void 0))),A(()=>c++),nr(1),_(a=>c===o.size?p(e):H))})}function ys(t){let r=t.children.map(e=>ys(e)).flat();return[t,...r]}function oc(t,r,e,n){let i=t.routeConfig,s=t._resolve;return i?.title!==void 0&&!ls(i)&&(s[ut]=i.title),ac(s,t,r,n).pipe(b(o=>(t._resolvedData=o,t.data=Gt(t,t.parent,e).resolve,null)))}function ac(t,r,e,n){let i=Lr(t);if(i.length===0)return p({});let s={};return O(i).pipe(_(o=>cc(t[o],r,e,n).pipe(Q(),A(c=>{if(c instanceof st)throw Wt(new Ie,c);s[o]=c}))),nr(1),b(()=>s),se(o=>ps(o)?H:xe(o)))}function cc(t,r,e,n){let i=lt(r)??n,s=Ne(t,i),o=s.resolve?s.resolve(r,e):$(i,()=>s(r,e));return ie(o)}function _r(t){return x(r=>{let e=t(r);return e?O(e).pipe(b(()=>r)):p(r)})}var ws=(()=>{class t{buildTitle(e){let n,i=e.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(s=>s.outlet===m);return n}getResolvedTitleForRoute(e){return e.data[ut]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>d(uc),providedIn:"root"})}return t})(),uc=(()=>{class t extends ws{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(v(ki))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ft=new C("",{providedIn:"root",factory:()=>({})}),lc=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=Wn({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&Kn(0,"router-outlet")},dependencies:[ya],encapsulation:2})}return t})();function un(t){let r=t.children&&t.children.map(un),e=r?P(f({},t),{children:r}):f({},t);return!e.component&&!e.loadComponent&&(r||e.loadChildren)&&e.outlet&&e.outlet!==m&&(e.component=lc),e}var ct=new C(""),ln=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(Rt);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return p(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let n=ie(e.loadComponent()).pipe(b(Rs),A(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),pe(()=>{this.componentLoaders.delete(e)})),i=new er(n,()=>new K).pipe(Qt());return this.componentLoaders.set(e,i),i}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return p({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let s=dc(n,this.compiler,e,this.onLoadEndListener).pipe(pe(()=>{this.childrenLoaders.delete(n)})),o=new er(s,()=>new K).pipe(Qt());return this.childrenLoaders.set(n,o),o}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function dc(t,r,e,n){return ie(t.loadChildren()).pipe(b(Rs),_(i=>i instanceof Hn||Array.isArray(i)?p(i):O(r.compileModuleAsync(i))),b(i=>{n&&n(t);let s,o,c=!1;return Array.isArray(i)?(o=i,c=!0):(s=i.create(e).injector,o=s.get(ct,[],{optional:!0,self:!0}).flat()),{routes:o.map(un),injector:s}}))}function hc(t){return t&&typeof t=="object"&&"default"in t}function Rs(t){return hc(t)?t.default:t}var dn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>d(fc),providedIn:"root"})}return t})(),fc=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ss=new C(""),bs=new C("");function pc(t,r,e){let n=t.get(bs),i=t.get(U);return t.get(q).runOutsideAngular(()=>{if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let s,o=new Promise(u=>{s=u}),c=i.startViewTransition(()=>(s(),gc(t))),{onViewTransitionCreated:a}=n;return a&&$(t,()=>a({transition:c,from:r,to:e})),o})}function gc(t){return new Promise(r=>{_n({read:()=>setTimeout(r)},{injector:t})})}var Ts=new C(""),Yt=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new K;transitionAbortSubject=new K;configLoader=d(ln);environmentInjector=d(oe);destroyRef=d(An);urlSerializer=d(Pe);rootContexts=d(dt);location=d(Ve);inputBindingEnabled=d(Zt,{optional:!0})!==null;titleStrategy=d(ws);options=d(ft,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(dn);createViewTransition=d(Ss,{optional:!0});navigationErrorHandler=d(Ts,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>p(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new qr(i)),n=i=>this.events.next(new Gr(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;this.transitions?.next(P(f(f({},this.transitions.value),e),{id:n}))}setupNavigations(e,n,i){return this.transitions=new j({id:0,currentUrlTree:n,currentRawUrl:n,extractedUrl:this.urlHandlingStrategy.extract(n),urlAfterRedirects:this.urlHandlingStrategy.extract(n),rawUrl:n,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Qe,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(W(s=>s.id!==0),b(s=>P(f({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),x(s=>{let o=!1,c=!1;return p(s).pipe(x(a=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",k.SupersededByNewNavigation),H;this.currentTransition=s,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?P(f({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&l!=="reload"){let h="";return this.events.next(new re(a.id,this.urlSerializer.serialize(a.rawUrl),h,Ft.IgnoredSameUrlNavigation)),a.resolve(!1),H}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return p(a).pipe(x(h=>{let g=this.transitions?.getValue();return this.events.next(new Ae(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),g!==this.transitions?.getValue()?H:Promise.resolve(h)}),ic(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),A(h=>{s.targetSnapshot=h.targetSnapshot,s.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=P(f({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let g=new zt(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(g)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:h,extractedUrl:g,source:S,restoredState:I,extras:w}=a,y=new Ae(h,this.urlSerializer.serialize(g),S,I);this.events.next(y);let N=cs(this.rootComponentType).snapshot;return this.currentTransition=s=P(f({},a),{targetSnapshot:N,urlAfterRedirects:g,extras:P(f({},w),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=g,p(s)}else{let h="";return this.events.next(new re(a.id,this.urlSerializer.serialize(a.extractedUrl),h,Ft.IgnoredByUrlHandlingStrategy)),a.resolve(!1),H}}),A(a=>{let u=new Fr(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(u)}),b(a=>(this.currentTransition=s=P(f({},a),{guards:Ea(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),s)),xa(this.environmentInjector,a=>this.events.next(a)),A(a=>{if(s.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Wt(this.urlSerializer,a.guardsResult);let u=new zr(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(u)}),W(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",k.GuardRejected),!1)),_r(a=>{if(a.guards.canActivateChecks.length)return p(a).pipe(A(u=>{let l=new Br(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}),x(u=>{let l=!1;return p(u).pipe(sc(this.paramsInheritanceStrategy,this.environmentInjector),A({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(u,"",k.NoDataFromResolver)}}))}),A(u=>{let l=new Vr(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}))}),_r(a=>{let u=l=>{let h=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(l.routeConfig).pipe(A(g=>{l.component=g}),b(()=>{})));for(let g of l.children)h.push(...u(g));return h};return pt(u(a.targetSnapshot.root)).pipe(rr(null),fe(1))}),_r(()=>this.afterPreactivation()),x(()=>{let{currentSnapshot:a,targetSnapshot:u}=s,l=this.createViewTransition?.(this.environmentInjector,a.root,u.root);return l?O(l).pipe(b(()=>s)):p(s)}),b(a=>{let u=wa(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=s=P(f({},a),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,s}),A(()=>{this.events.next(new nt)}),Ta(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),fe(1),A({next:a=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new V(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{o=!0}}),En(this.transitionAbortSubject.pipe(A(a=>{throw a}))),pe(()=>{!o&&!c&&this.cancelNavigationTransition(s,"",k.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),se(a=>{if(this.destroyed)return s.resolve(!1),H;if(c=!0,fs(a))this.events.next(new X(s.id,this.urlSerializer.serialize(s.extractedUrl),a.message,a.cancellationCode)),ba(a)?this.events.next(new De(a.url,a.navigationBehaviorOptions)):s.resolve(!1);else{let u=new rt(s.id,this.urlSerializer.serialize(s.extractedUrl),a,s.targetSnapshot??void 0);try{let l=$(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(l instanceof st){let{message:h,cancellationCode:g}=Wt(this.urlSerializer,l);this.events.next(new X(s.id,this.urlSerializer.serialize(s.extractedUrl),h,g)),this.events.next(new De(l.redirectTo,l.navigationBehaviorOptions))}else throw this.events.next(u),a}catch(l){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(l)}}return H}))}))}cancelNavigationTransition(e,n,i){let s=new X(e.id,this.urlSerializer.serialize(e.extractedUrl),n,i);this.events.next(s),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==n?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function mc(t){return t!==Qe}var vc=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>d(yc),providedIn:"root"})}return t})(),an=class{shouldDetach(r){return!1}store(r,e){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,e){return r.routeConfig===e.routeConfig}},yc=(()=>{class t extends an{static \u0275fac=(()=>{let e;return function(i){return(e||(e=sr(t)))(i||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Es=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>d(wc),providedIn:"root"})}return t})(),wc=(()=>{class t extends Es{location=d(Ve);urlSerializer=d(Pe);options=d(ft,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=d(dn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new J;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=cs(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&e(n.url,n.state)})}handleRouterEvent(e,n){if(e instanceof Ae)this.stateMemento=this.createStateMemento();else if(e instanceof re)this.rawUrlTree=n.initialUrl;else if(e instanceof zt){if(this.urlUpdateStrategy==="eager"&&!n.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl);this.setBrowserUrl(n.targetBrowserUrl??i,n)}}else e instanceof nt?(this.currentUrlTree=n.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(n.finalUrl,n.initialUrl),this.routerState=n.targetRouterState,this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(n.targetBrowserUrl??this.rawUrlTree,n)):e instanceof X&&(e.code===k.GuardRejected||e.code===k.NoDataFromResolver)?this.restoreHistory(n):e instanceof rt?this.restoreHistory(n,!0):e instanceof V&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,n){let i=e instanceof J?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(i)||n.extras.replaceUrl){let s=this.browserPageId,o=f(f({},n.extras.state),this.generateNgRouterState(n.id,s));this.location.replaceState(i,"",o)}else{let s=f(f({},n.extras.state),this.generateNgRouterState(n.id,this.browserPageId+1));this.location.go(i,"",s)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.currentUrlTree===e.finalUrl&&s===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=sr(t)))(i||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Cs(t,r){t.events.pipe(W(e=>e instanceof V||e instanceof X||e instanceof rt||e instanceof re),b(e=>e instanceof V||e instanceof re?0:(e instanceof X?e.code===k.Redirect||e.code===k.SupersededByNewNavigation:!1)?2:1),W(e=>e!==2),fe(1)).subscribe(()=>{r()})}var Rc={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Sc={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Z=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(fr);stateManager=d(Es);options=d(ft,{optional:!0})||{};pendingTasks=d(vt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(Yt);urlSerializer=d(Pe);location=d(Ve);urlHandlingStrategy=d(dn);_events=new K;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(vc);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(ct,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(Zt,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new gn;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(i!==null&&s!==null){if(this.stateManager.handleRouterEvent(n,s),n instanceof X&&n.code!==k.Redirect&&n.code!==k.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof V)this.navigated=!0;else if(n instanceof De){let o=n.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),a=f({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||mc(i.source)},o);this.scheduleNavigation(c,Qe,null,a,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Tc(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Qe,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",n)},0)})}navigateToSyncWithBrowser(e,n,i){let s={replaceUrl:!0},o=i?.navigationId?i:null;if(i){let a=f({},i);delete a.navigationId,delete a.\u0275routerPageId,Object.keys(a).length!==0&&(s.state=a)}let c=this.parseUrl(e);this.scheduleNavigation(c,n,o,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(un),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:i,queryParams:s,fragment:o,queryParamsHandling:c,preserveFragment:a}=n,u=a?this.currentUrlTree.fragment:o,l=null;switch(c??this.options.defaultQueryParamsHandling){case"merge":l=f(f({},this.currentUrlTree.queryParams),s);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=s||null}l!==null&&(l=this.removeEmptyProps(l));let h;try{let g=i?i.snapshot:this.routerState.snapshot.root;h=is(g)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),h=this.currentUrlTree.root}return ss(h,e,l,u??null)}navigateByUrl(e,n={skipLocationChange:!1}){let i=de(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,Qe,null,n)}navigate(e,n={skipLocationChange:!1}){return bc(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,n){let i;if(n===!0?i=f({},Rc):n===!1?i=f({},Sc):i=n,de(e))return ji(this.currentUrlTree,e,i);let s=this.parseUrl(e);return ji(this.currentUrlTree,s,i)}removeEmptyProps(e){return Object.entries(e).reduce((n,[i,s])=>(s!=null&&(n[i]=s),n),{})}scheduleNavigation(e,n,i,s,o){if(this.disposed)return Promise.resolve(!1);let c,a,u;o?(c=o.resolve,a=o.reject,u=o.promise):u=new Promise((h,g)=>{c=h,a=g});let l=this.pendingTasks.add();return Cs(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:s,resolve:c,reject:a,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(h=>Promise.reject(h))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bc(t){for(let r=0;r<t.length;r++)if(t[r]==null)throw new E(4008,!1)}function Tc(t){return!(t instanceof nt)&&!(t instanceof De)}var Hi=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new K;constructor(e,n,i,s,o,c){this.router=e,this.route=n,this.tabIndexAttribute=i,this.renderer=s,this.el=o,this.locationStrategy=c;let a=o.nativeElement.tagName?.toLowerCase();this.isAnchorElement=a==="a"||a==="area",this.isAnchorElement?this.subscription=e.events.subscribe(u=>{u instanceof V&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(de(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,i,s,o){let c=this.urlTree;if(c===null||this.isAnchorElement&&(e!==0||n||i||s||o||typeof this.target=="string"&&this.target!="_self"))return!0;let a={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(c,a),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let n=this.href===null?null:Bn(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(e,n){let i=this.renderer,s=this.el.nativeElement;n!==null?i.setAttribute(s,e,n):i.removeAttribute(s,e)}get urlTree(){return this.routerLinkInput===null?null:de(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 \u0275fac=function(n){return new(n||t)(z(Z),z(ne),In("tabindex"),z(dr),z(ar),z(Be))};static \u0275dir=wt({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(n,i){n&1&&Yn("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),n&2&&Zn("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",bt],skipLocationChange:[2,"skipLocationChange","skipLocationChange",bt],replaceUrl:[2,"replaceUrl","replaceUrl",bt],routerLink:"routerLink"},features:[Xn,mt]})}return t})(),Vu=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new me;constructor(e,n,i,s,o){this.router=e,this.element=n,this.renderer=i,this.cdr=s,this.link=o,this.routerEventsSubscription=e.events.subscribe(c=>{c instanceof V&&this.update()})}ngAfterContentInit(){p(this.links.changes,p(null)).pipe(Le()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=O(e).pipe(Le()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){let n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&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!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let n=Ec(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let s=i.urlTree;return s?e.isActive(s,n):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(n){return new(n||t)(z(Z),z(ar),z(dr),z(St),z(Hi,8))};static \u0275dir=wt({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,i,s){if(n&1&&Qn(s,Hi,5),n&2){let o;ei(o=ti())&&(i.links=o)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[mt]})}return t})();function Ec(t){return!!t.paths}var Jt=class{},qu=(()=>{class t{preload(e,n){return n().pipe(se(()=>p(null)))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Cc=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,n,i,s,o){this.router=e,this.injector=i,this.preloadingStrategy=s,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(W(e=>e instanceof V),Y(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){let i=[];for(let s of n){s.providers&&!s._injector&&(s._injector=hr(s.providers,e,`Route: ${s.path}`));let o=s._injector??e,c=s._loadedInjector??o;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&i.push(this.preloadConfig(o,s)),(s.children||s._loadedRoutes)&&i.push(this.processRoutes(c,s.children??s._loadedRoutes))}return O(i).pipe(Le())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let i;n.loadChildren&&n.canLoad===void 0?i=this.loader.loadChildren(e,n):i=p(null);let s=i.pipe(_(o=>o===null?p(void 0):(n._loadedRoutes=o.routes,n._loadedInjector=o.injector,this.processRoutes(o.injector??e,o.routes))));if(n.loadComponent&&!n._loadedComponent){let o=this.loader.loadComponent(n);return O([s,o]).pipe(Le())}else return s})}static \u0275fac=function(n){return new(n||t)(v(Z),v(Rt),v(oe),v(Jt),v(ln))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),hn=new C(""),Ms=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,n,i,s,o={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=i,this.zone=s,this.options=o,o.scrollPositionRestoration||="disabled",o.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Ae?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof V?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof re&&e.code===Ft.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Bt&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Bt(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){Vn()};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function Gu(t,...r){return ge([{provide:ct,multi:!0,useValue:t},[],{provide:ne,useFactory:Is,deps:[Z]},{provide:Fe,multi:!0,useFactory:As},r.map(e=>e.\u0275providers)])}function Is(t){return t.routerState.root}function Ue(t,r){return{\u0275kind:t,\u0275providers:r}}function Hu(t={}){return Ue(4,[{provide:hn,useFactory:()=>{let e=d(vr),n=d(q),i=d(Yt),s=d(Pe);return new Ms(s,i,e,n,t)}}])}function As(){let t=d(ke);return r=>{let e=t.get(ze);if(r!==e.components[0])return;let n=t.get(Z),i=t.get(Ds);t.get(fn)===1&&n.initialNavigation(),t.get(Os,null,ir.Optional)?.setUpPreloading(),t.get(hn,null,ir.Optional)?.init(),n.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Ds=new C("",{factory:()=>new K}),fn=new C("",{providedIn:"root",factory:()=>1});function Mc(){return Ue(2,[{provide:fn,useValue:0},{provide:pr,multi:!0,deps:[ke],useFactory:r=>{let e=r.get(ai,Promise.resolve());return()=>e.then(()=>new Promise(n=>{let i=r.get(Z),s=r.get(Ds);Cs(i,()=>{n(!0)}),r.get(Yt).afterPreactivation=()=>(n(!0),s.closed?p(void 0):s),i.initialNavigation()}))}}])}function Ic(){return Ue(3,[{provide:pr,multi:!0,useFactory:()=>{let r=d(Z);return()=>{r.setUpLocationChangeListener()}}},{provide:fn,useValue:2}])}var Os=new C("");function Ac(t){return Ue(0,[{provide:Os,useExisting:Cc},{provide:Jt,useExisting:t}])}function Dc(){return Ue(8,[Bi,{provide:Zt,useExisting:Bi}])}function Oc(t){let r=[{provide:Ss,useValue:pc},{provide:bs,useValue:f({skipNextTransition:!!t?.skipInitialTransition},t)}];return Ue(9,r)}var Pc=[Ve,{provide:Pe,useClass:Ie},Z,dt,{provide:ne,useFactory:Is,deps:[Z]},ln,[]],Wu=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[Pc,[],{provide:ct,multi:!0,useValue:e},[],n?.errorHandler?{provide:Ts,useValue:n.errorHandler}:[],{provide:ft,useValue:n||{}},n?.useHash?Uc():_c(),Nc(),n?.preloadingStrategy?Ac(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?xc(n):[],n?.bindToComponentInputs?Dc().\u0275providers:[],n?.enableViewTransitions?Oc().\u0275providers:[],Lc()]}}static forChild(e){return{ngModule:t,providers:[{provide:ct,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=yt({type:t});static \u0275inj=gt({})}return t})();function Nc(){return{provide:hn,useFactory:()=>{let t=d(vr),r=d(q),e=d(ft),n=d(Yt),i=d(Pe);return e.scrollOffset&&t.setOffset(e.scrollOffset),new Ms(i,n,t,r,e)}}}function Uc(){return{provide:Be,useClass:ui}}function _c(){return{provide:Be,useClass:ci}}function xc(t){return[t.initialNavigation==="disabled"?Ic().\u0275providers:[],t.initialNavigation==="enabledBlocking"?Mc().\u0275providers:[]]}var Wi=new C("");function Lc(){return[{provide:Wi,useFactory:As},{provide:Fe,multi:!0,useExisting:Wi}]}export{ee as a,we as b,Re as c,At as d,Vs as e,Jc as f,Zc as g,Oi as h,Su as i,ki as j,$o as k,bu as l,ne as m,ya as n,Z as o,Hi as p,Vu as q,qu as r,Gu as s,Hu as t,Ac as u,Dc as v,Wu as w};